1 2019-09-11 Tom Tromey <tom@tromey.com>
3 * symfile-mem.c (symbol_file_add_from_memory): Use
5 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
6 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
8 2019-09-10 Tom Tromey <tromey@adacore.com>
10 * dwarf-index-write.c (write_psymbols): Extend error message.
11 (debug_names::insert): Add Ada code.
12 (debug_names::write_psymbols): Remove Ada check.
13 (debug_names) <m_string_obstack>: New member.
14 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
15 (gdb_index_symbol_name_matcher::matches): Remove.
16 (mapped_index_base::find_name_components_bounds): Add "lang"
18 (mapped_index_base::build_name_components): Also split names
19 according to Ada syntax.
20 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
21 type of "match_callback".
22 (check_match, check_find_bounds_finds)
23 (dw2_expand_symtabs_matching): Update.
24 (dw2_debug_names_iterator): Add new constructor.
25 (dw2_debug_names_map_matching_symbols): New function.
26 (dw2_debug_names_expand_symtabs_matching): Update.
27 (dwarf2_debug_names_functions): Use
28 dw2_debug_names_map_matching_symbols.
30 2019-09-10 Tom Tromey <tromey@adacore.com>
32 * dwarf2read.c (dw2_get_file_names_reader): Add the
33 CU's file name to the results.
35 2019-09-10 Tom Tromey <tromey@adacore.com>
37 * ada-lang.c (add_nonlocal_symbols): Combine calls to
38 map_matching_symbols. Update.
39 * dwarf2read.c (dw2_map_matching_symbols): Update.
40 * psymtab.c (match_partial_symbol): Change type; update.
41 (psym_map_matching_symbols): Likewise.
42 * symfile-debug.c (debug_qf_map_matching_symbols): Change
44 * symfile.h (struct quick_symbol_functions)
45 <map_matching_symbols>: Change "name" to be a lookup_name_info.
48 2019-09-10 Tom Tromey <tromey@adacore.com>
50 * psymtab.c (map_block): Remove.
51 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
52 * symtab.c (iterate_over_symbols_terminated): New function.
53 * symtab.c (iterate_over_symbols_terminated): Declare.
55 2019-09-10 Tom Tromey <tromey@adacore.com>
57 * ada-lang.c (ada_iterate_over_symbols): Return bool.
58 * language.h (struct language_defn) <la_iterate_over_symbols>:
60 * symtab.c (iterate_over_symbols): Return bool.
61 * symtab.h (iterate_over_symbols): Return bool.
63 2019-09-10 Tom Tromey <tromey@adacore.com>
65 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
66 (add_nonlocal_symbols): Update.
67 * dwarf2read.c (dw2_map_matching_symbols): Change type.
68 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
69 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
70 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
71 Change type of "callback". Remove "data".
74 2019-09-09 Ali Tamur <tamur@google.com>
76 * dwarf2read.c (comp_unit_head): Update comment.
77 (dwarf2_dwo_name): New function declaration.
78 (dwarf_unit_type_name): New function declaration.
79 (read_comp_unit_head): Add support for new compilation units,
80 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
81 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
82 (currently named as "signature") in their header. Also clarify error
84 (lookup_dwo_id): New function. Returns the dwo id of the given
86 (lookup_dwo_unit): Use the new lookup_dwo_id function.
87 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
89 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
90 (dwarf2_dwo_name): Get the dwo name if present.
91 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
94 2019-09-09 Tom Tromey <tom@tromey.com>
96 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
98 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
100 * python/python.c (do_start_initialization): Make progname_copy static,
101 to avoid a leak report.
103 2019-09-08 Tom Tromey <tom@tromey.com>
105 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
107 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
109 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
110 Change type to gdb::optional<block_enum>.
111 (dw2_symtab_iter_init): Change block_index parameter type
112 to gdb::optional<block_enum>.
113 (dw2_lookup_symbol): Change block_index parameter
115 (dw2_debug_names_lookup_symbol): Likewise.
116 * psymtab.c (psym_lookup_symbol): Likewise.
117 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
118 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
121 2019-09-06 Christian Biesinger <cbiesinger@google.com>
123 * defs.h (relocate_gdb_directory): Change int to bool in
124 signature and rename flag to relocatable.
125 * main.c (relocate_path): Likewise.
126 (relocate_gdb_directory): Likewise.
128 2019-09-06 Alan Modra <amodra@gmail.com>
130 * coffread.c (coff_symfile_read): Constify filename variable.
131 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
132 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
133 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
134 * solib.c (reload_shared_libraries_1): Likewise.
135 * symfile.c (reread_symbols): Likewise.
136 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
137 * solib-darwin.c (darwin_bfd_open): Likewise.
138 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
140 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
142 * psymtab.c (print_partial_symbols): Handle missing domain_enum
143 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
145 2019-09-03 Tom Tromey <tromey@adacore.com>
147 * ada-valprint.c (ada_val_print_num): Don't recurse for range
149 (has_negatives): Unbias a range type bound.
150 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
151 * gdbtypes.c (operator==): Handle new field.
152 (create_range_type): Add "bias" parameter.
153 (create_static_range_type, resolve_dynamic_range): Update.
154 * gdbtypes.h (struct range_bounds) <bias>: New member.
155 (create_range_type): Add bias parameter.
156 * printcmd.c (print_scalar_formatted): Unbias range types.
157 * value.c (unpack_long): Unbias range types.
158 (pack_long): Bias range types.
160 2019-09-02 Alan Hayward <alan.hayward@arm.com>
162 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
165 2019-09-02 Alan Hayward <alan.hayward@arm.com>
167 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
168 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
169 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
170 (compile_probe_arg): Likewise.
171 * probe.h (get_argument_count): Likewise.
172 * solib-svr4.c (solib_event_probe_action): Likewise.
173 * stap-probe.c (stap_probe::get_argument_count): Likewise.
175 2019-09-02 Alan Hayward <alan.hayward@arm.com>
177 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
179 (svr4_create_solib_event_breakpoints): ...from here.
181 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
183 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
184 suffix from warning message.
186 2019-08-30 Tom Tromey <tom@tromey.com>
188 * tui/tui-winsource.h (struct tui_source_window_base)
189 <refresh_all>: Don't declare.
190 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
192 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
193 tui_show_locator_content.
194 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
196 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
197 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
200 2019-08-30 Tom Tromey <tom@tromey.com>
202 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
204 2019-08-30 Tom Tromey <tom@tromey.com>
206 * tui/tui-stack.c (_initialize_tui_stack): Move later.
207 Remove unnecessary forward declarations.
209 2019-08-30 Tom Tromey <tom@tromey.com>
211 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
213 (tui_update_locator_fullname, tui_show_frame_info): Don't call
214 tui_show_locator_content.
216 2019-08-30 Tom Tromey <tom@tromey.com>
218 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
219 (tui_locator_window::rerender): Rewrite using body of previous
220 tui_show_locator_content.
222 2019-08-30 Tom Tromey <tom@tromey.com>
224 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
225 set_locator_fullname>: New methods.
226 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
227 Rename from tui_set_locator_fullname.
228 (tui_locator_window::set_locator_info): Rename from
229 tui_set_locator_info. Return bool.
230 (tui_update_locator_fullname, tui_show_frame_info): Update.
232 2019-08-30 Tom Tromey <tom@tromey.com>
234 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
236 2019-08-30 Tom Tromey <tom@tromey.com>
238 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
241 2019-08-30 Tom Tromey <tom@tromey.com>
243 * tui/tui-wingeneral.c (box_win): Assume win_info and
244 win_info->handle cannot be NULL.
246 2019-08-30 Tom Tromey <tom@tromey.com>
248 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
249 refresh_window>: Declare.
250 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
252 (tui_data_item_window::rerender): Rename from
253 tui_display_register.
254 (tui_data_item_window::refresh_window): New method.
255 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
258 2019-08-30 Tom Tromey <tom@tromey.com>
260 * tui/tui-regs.h (struct tui_data_window) <regs_content,
261 regs_column_count, current_group>: Move later. Now private.
262 <get_current_group>: New method.
263 * tui/tui-regs.c (tui_reg_command): Update.
264 * tui/tui-layout.c (tui_set_layout): Update.
266 2019-08-30 Tom Tromey <tom@tromey.com>
268 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
269 (tui_data_window::rerender): Don't call
270 check_and_display_highlight_if_needed.
271 (tui_data_window::refresh_all): Remove call to
274 2019-08-30 Tom Tromey <tom@tromey.com>
276 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
277 (tui_data_window::display_registers_from)
278 (tui_data_window::display_reg_element_at_line)
279 (tui_data_window::display_registers_from_line): Remove checks of
282 2019-08-30 Tom Tromey <tom@tromey.com>
284 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
286 * tui/tui-regs.c (tui_data_window::show_registers): Call
288 (tui_data_window::rerender): Rename from display_all_data.
289 (tui_data_window::rerender): Remove old implementation.
291 2019-08-30 Tom Tromey <tom@tromey.com>
293 * tui/tui-regs.c (tui_data_window::display_all_data): Change
295 * tui/tui-data.h (NO_DATA_STRING): Remove define.
297 2019-08-29 Bernhard Wodok <barto@gmx.net>
298 Sergio Durigan Junior <sergiodj@redhat.com>
301 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
303 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
305 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
306 when searching for types.
308 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
310 * f-lang.c (f_language_defn): Use f_print_typedef.
311 * f-lang.h (f_print_typedef): Declare.
312 * f-typeprint.c (f_print_typedef): Define.
314 2019-08-27 Christian Biesinger <cbiesinger@google.com>
316 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
318 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
320 * cli/cli-utils.c (info_print_options_defs): Delete.
321 (make_info_print_options_def_group): Delete.
322 (extract_info_print_options): Delete.
323 (info_print_command_completer): Delete.
324 (info_print_args_help): Add extra parameter, and optionally
325 include text about -n flag.
326 * cli/cli-utils.h (struct info_print_options): Delete.
327 (extract_info_print_options): Delete declaration.
328 (info_print_command_completer): Delete declaration.
329 (info_print_args_help): Add extra parameter, extend header
331 * python/python.c (gdbpy_rbreak): Pass additional parameter to
333 * stack.c (struct info_print_options): New type.
334 (info_print_options_defs): New file scoped variable.
335 (make_info_print_options_def_group): New static function.
336 (info_print_command_completer): New static function.
337 (info_locals_command): Update to use new local functions.
338 (info_args_command): Likewise.
339 (_initialize_stack): Add extra parameter to calls to
340 info_print_args_help.
341 * symtab.c (search_symbols): Add extra parameter, use this to
342 possibly excluse non-debug symbols.
343 (symtab_symbol_info): Add extra parameter, which is passed on to
345 (struct info_print_options): New type.
346 (info_print_options_defs): New file scoped variable.
347 (make_info_print_options_def_group): New static function.
348 (info_print_command_completer): New static function.
349 (info_variables_command): Update to use local functions, and pass
350 extra parameter through to symtab_symbol_info.
351 (info_functions_command): Likewise.
352 (info_types_command): Pass additional argument through to
354 (rbreak_command): Pass extra argument to search_symbols.
355 (_initialize_symtab): Add extra arguments for calls to
356 info_print_args_help, and update help text for 'info variables',
357 'whereis', and 'info functions' commands.
358 * symtab.h (search_symbols): Add extra argument to declaration.
359 * NEWS: Mention new flags.
361 2019-08-26 Christian Biesinger <cbiesinger@google.com>
363 * symtab.c (lookup_static_symbol): Call the new function (and move
364 it down to be next to lookup_global_symbol).
365 (struct global_sym_lookup_data): Add block_enum member and rename to...
366 (struct global_or_static_sym_lookup_data): ...this.
367 (lookup_symbol_global_iterator_cb): Pass block_index instead of
368 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
369 (lookup_symbol_global_or_static_iterator_cb): ...this.
370 (lookup_global_or_static_symbol): New function.
371 (lookup_global_symbol): Call new function.
373 2019-08-26 Tom de Vries <tdevries@suse.de>
376 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
377 when pc_probe.prob == NULL.
379 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
381 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
382 variable symbol_linkage to symbol_linkage_.
384 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
386 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
387 represent whether the symbol is static, dynamic, or we don't
390 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
392 * gdb/rx-tdep.c (rx_register_names): New.
393 (rx_register_name): Delete.
394 (rx_psw_type): Delete.
395 (rx_fpsw_type): Delete.
396 (rx_register_type): Delete.
397 (rx_gdbarch_init): Convert target-descriptions.
398 (_initialize_rx_tdep): Add initialize_tdesc_rx.
399 * gdb/features/Makefile: Add rx.xml.
400 * gdb/features/rx.xml: New.
401 * gdb/features/rx.c: Generated.
402 * gdb/NEWS: Mention target description support.
404 2019-08-22 Christian Biesinger <cbiesinger@google.com>
406 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
409 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
411 * configure.ac: Don't check for 'dlfcn.h' (moved to
412 gdbsupport/common.m4).
413 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
415 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
416 * compile/compile-c-support.c: Include
417 'gdbsupport/gdb-dlfcn.h'.
418 * gdbsupport/common.m4: Check for 'dlfcn.h'.
419 * gdb-dlfcn.c: Move to...
420 * gdbsupport/gdb-dlfcn.c: ... here.
421 * gdb-dlfcn.h: Move to...
422 * gdbsupport/gdb-dlfcn.h: ... here.
424 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
426 * nios2-tdep.c (struct reg_value): Improve comments. Make
427 the offset field signed.
429 2019-08-22 Christian Biesinger <cbiesinger@google.com>
431 * python/lib/gdb/__init__.py (_execute_file): New function.
432 * python/python.c (python_run_simple_file): Call gdb._execute_file
435 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
437 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
438 all uses as this was never set to anything but a zero value.
440 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
442 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
444 2019-08-21 Christian Biesinger <cbiesinger@google.com>
446 * tui/tui-data.h (tui_gen_win_info): Add an =default
447 move constructor, required by some GCC versions.
449 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
451 * go32-nat.c (go32_sysinfo): Add hygon_p.
453 2019-08-20 Tom Tromey <tom@tromey.com>
455 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
456 line_from_reg_element_no, first_reg_element_no_inline,
457 display_all_data, delete_data_content_windows,
458 erase_data_content>: Now private.
460 2019-08-20 Tom Tromey <tom@tromey.com>
462 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
463 (tui_unhighlight_win, tui_highlight_win)
464 (tui_win_info::make_window): Update.
465 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
467 2019-08-20 Tom Tromey <tom@tromey.com>
469 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
470 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
471 (MAX_PID_WIDTH): Move to tui-stack.c.
472 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
473 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
474 (MAX_PID_WIDTH): Move from tui-data.h.
476 2019-08-20 Tom Tromey <tom@tromey.com>
478 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
479 * tui/tui-wingeneral.c (box_win): Change type of win_info.
481 (tui_gen_win_info::make_window): Rename from tui_make_window.
482 (tui_win_info::make_window): New method.
483 (tui_gen_win_info::make_visible): Update.
484 * tui/tui-source.c (tui_source_window::set_contents): Update.
485 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
486 (tui_data_window::display_registers_from): Update.
487 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
488 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
492 (struct tui_win_info) <make_window>: Declare.
493 <can_box>: Now virtual.
495 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
496 * tui/tui-command.c (tui_cmd_window::resize): Update.
498 2019-08-20 Tom Tromey <tom@tromey.com>
500 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
501 * tui/tui-regs.c (tui_data_window::show_registers): Update.
502 (tui_data_window::check_register_values): Update.
504 2019-08-20 Tom Tromey <tom@tromey.com>
506 * tui/tui-regs.h (struct tui_data_window): Use
507 DISABLE_COPY_AND_ASSIGN.
508 <regs_content>: Change type, removing unique_ptr.
509 <tui_data_window>: Add move constructor.
510 * tui/tui-regs.c (tui_data_window::show_registers)
511 (tui_data_window::show_register_group)
512 (tui_data_window::display_registers_from)
513 (tui_data_window::display_registers_from)
514 (tui_data_window::first_data_item_displayed)
515 (tui_data_window::delete_data_content_windows)
516 (tui_data_window::rerender, tui_data_window::refresh_window)
517 (tui_data_window::check_register_values): Update.
519 2019-08-20 Tom Tromey <tom@tromey.com>
521 * tui/tui-regs.h (struct tui_data_window) <show_registers,
522 show_register_group>: Declare.
523 (tui_show_register_group): Don't declare.
524 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
526 (tui_data_window::show_register_group): Rename from
527 tui_show_register_group.
528 (tui_data_window::check_register_values, tui_reg_command):
530 * tui/tui-layout.c (tui_set_layout): Update.
532 2019-08-20 Tom Tromey <tom@tromey.com>
534 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
536 (tui_check_register_values): Don't declare.
537 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
538 from tui_check_register_values.
539 * tui/tui-hooks.c (tui_register_changed): Update.
541 2019-08-20 Tom Tromey <tom@tromey.com>
543 * tui/tui-regs.c (tui_reg_layout): Move later.
544 (tui_show_registers): Don't enable TUI mode or change layout.
546 2019-08-20 Tom Tromey <tom@tromey.com>
548 * tui/tui-regs.h (struct tui_data_item_window)
549 <~tui_data_item_window>: Remove.
550 <content>: Now a unique_xmalloc_ptr.
551 * tui/tui-regs.c (tui_register_format): Return a
553 (tui_get_register): Update.
554 (~tui_data_item_window): Remove.
555 (tui_data_window::display_registers_from, tui_display_register):
557 * tui/tui-io.h (tui_expand_tabs): Update.
558 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
559 Remove "col" parameter.
561 2019-08-20 Tom Tromey <tom@tromey.com>
563 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
565 * tui/tui-regs.c (~tui_data_item_window): Update.
567 2019-08-20 Tom Tromey <tom@tromey.com>
569 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
572 2019-08-20 Tom Tromey <tom@tromey.com>
574 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
576 2019-08-20 Tom Tromey <tom@tromey.com>
578 * tui/tui-source.h (struct tui_source_window): Update.
579 * tui/tui-regs.c (tui_show_registers): Update.
580 * tui/tui-disasm.h (struct tui_disasm_window): Update.
581 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
582 (NO_REGS_STRING): Remove defines.
584 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
586 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
587 unnecessary thread walk if remote doesn't support the packet.
589 2019-08-19 Tom Tromey <tromey@adacore.com>
591 * python/py-value.c (value_has_field): Fix indentation.
593 2019-08-19 Tom Tromey <tromey@adacore.com>
595 * printcmd.c (do_one_display, info_display_command): Update.
596 * block.h (contained_in): Return bool. Add allow_nested
598 * block.c (contained_in): Return bool. Add allow_nested
601 2019-08-19 Tom Tromey <tom@tromey.com>
603 * configure: Rebuild.
604 * configure.ac: Disallow the combination of -static-libstdc++ and
606 * source-cache.c (get_language_name): Handle rust.
607 (source_cache::get_source_lines): Ignore highlighting exceptions.
609 2019-08-16 Tom Tromey <tom@tromey.com>
611 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
612 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
613 (struct tui_source_window_base) <make_visible, refresh_window,
614 resize>: Remove methods.
615 <execution_info>: Remove field.
616 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
617 (tui_show_source_line, tui_source_window_base)
618 (~tui_source_window_base): Update.
619 (tui_source_window_base::resize)
620 (tui_source_window_base::make_visible)
621 (tui_source_window_base::refresh_window): Remove.
622 (tui_source_window_base::update_exec_info): Update.
623 * tui/tui-source.c (tui_source_window::set_contents): Update.
624 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
626 2019-08-16 Tom Tromey <tom@tromey.com>
628 * tui/tui-hooks.c (tui_remove_hooks): Don't set
629 deprecated_query_hook.
631 2019-08-16 Tom Tromey <tom@tromey.com>
633 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
634 (tui_update_source_windows_with_line): Update.
635 * tui/tui-source.h (struct tui_source_window)
636 <show_symtab_source>: Declare.
637 (tui_show_symtab_source): Don't declare.
638 * tui/tui-source.c (tui_show_symtab_source): Rename from
639 tui_show_symtab_source.
641 2019-08-16 Tom Tromey <tom@tromey.com>
643 * tui/tui-winsource.h (struct tui_source_window_base)
644 <set_contents>: Declare.
645 * tui/tui-winsource.c
646 (tui_source_window_base::update_source_window_as_is): Update.
647 * tui/tui-source.h (struct tui_source_window) <set_contents>:
649 (tui_set_source_content): Don't declare.
650 * tui/tui-source.c (tui_source_window::set_contents): Rename from
651 tui_set_source_content.
652 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
654 (tui_set_disassem_content): Don't declare.
655 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
656 tui_set_disassem_content.
658 2019-08-16 Tom Tromey <tom@tromey.com>
660 * tui/tui-winsource.h (struct tui_source_window_base)
661 <update_breakpoint_info>: Declare.
662 (tui_update_breakpoint_info): Don't declare.
663 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
664 (tui_update_all_breakpoint_info): Update.
665 (tui_source_window_base::update_breakpoint_info): Rename from
666 tui_update_breakpoint_info.
667 (tui_source_window_base::update_exec_info): Update.
669 2019-08-16 Tom Tromey <tom@tromey.com>
671 * tui/tui-winsource.h (struct tui_source_window_base)
672 <update_source_window>: Declare.
673 (tui_update_source_window): Don't declare.
674 * tui/tui-winsource.c
675 (tui_source_window_base::update_source_window): Rename from
676 tui_update_source_window.
677 (tui_source_window_base::rerender): Update.
678 * tui/tui-source.c (tui_source_window::maybe_update): Update.
679 * tui/tui-disasm.c (tui_show_disassem)
680 (tui_show_disassem_and_update_source)
681 (tui_disasm_window::maybe_update): Update.
683 2019-08-16 Tom Tromey <tom@tromey.com>
685 * tui/tui-winsource.h (struct tui_source_window_base)
686 <update_source_window_as_is>: Declare.
687 (tui_update_source_window_as_is): Don't declare.
688 * tui/tui-winsource.c (tui_update_source_window): Update
689 (tui_source_window_base::update_source_window_as_is): Rename from
690 tui_update_source_window_as_is.
691 (tui_source_window_base::refill): Update.
692 * tui/tui-source.c (tui_show_symtab_source): Update.
693 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
696 2019-08-16 Tom Tromey <tom@tromey.com>
698 * tui/tui-winsource.h (tui_update_source_window)
699 (tui_update_source_window_as_is): Remove "noerror" parameter.
700 * tui/tui-winsource.c (tui_update_source_window)
701 (tui_update_source_window_as_is): Remove "noerror" parameter.
702 (tui_update_source_windows_with_addr)
703 (tui_update_source_windows_with_line)
704 (tui_source_window_base::rerender)
705 (tui_source_window_base::refill): Update.
706 * tui/tui-source.h (tui_set_source_content)
707 (tui_show_symtab_source): Remove "noerror" parameter.
708 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
710 (tui_show_symtab_source): Likewise.
711 (tui_source_window::maybe_update): Update.
712 * tui/tui-disasm.c (tui_show_disassem)
713 (tui_show_disassem_and_update_source)
714 (tui_disasm_window::do_scroll_vertical)
715 (tui_disasm_window::maybe_update): Update.
717 2019-08-16 Tom Tromey <tom@tromey.com>
719 * tui/tui.c (tui_is_window_visible): Update.
720 * tui/tui-wingeneral.c (tui_make_window)
721 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
722 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
723 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
724 (tui_set_win_height_command, parse_scrolling_args): Update.
725 * tui/tui-source.c (tui_source_window::style_changed): Update.
726 * tui/tui-regs.c (tui_show_registers)
727 (tui_data_window::first_data_item_displayed)
728 (tui_data_window::delete_data_content_windows)
729 (tui_check_register_values, tui_reg_command): Update.
730 * tui/tui-disasm.c (tui_show_disassem): Update.
731 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
733 <is_visible>: Remove field.
734 * tui/tui-data.c (tui_next_win, tui_prev_win)
735 (tui_delete_invisible_windows): Update.
737 2019-08-16 Tom Tromey <tom@tromey.com>
739 * tui/tui-winsource.h (struct tui_source_window_base)
740 <m_has_locator>: Remove.
741 * tui/tui-layout.c (show_source_disasm_command, show_data)
742 (show_source_or_disasm_and_command): Update.
744 2019-08-16 Alan Hayward <alan.hayward@arm.com>
746 * NEWS (Other MI changes): New subsection.
747 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
748 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
749 * arch-utils.c (default_get_pc_address_flags): New function.
750 * arch-utils.h (default_get_pc_address_flags): New declaration.
751 * gdbarch.sh: Add get_pc_address_flags.
752 * gdbarch.c: Regenerate.
753 * gdbarch.h: Likewise.
754 * stack.c (print_pc): New function.
755 (print_frame_info) (print_frame): Call print_pc.
757 2019-08-16 Tom de Vries <tdevries@suse.de>
759 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
760 print_objfile_section_info.
762 2019-08-15 Tom Tromey <tom@tromey.com>
764 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
765 calling update_cmdwin_start_line.
766 * tui/tui-winsource.h (struct tui_source_window_base)
767 <do_make_visible_with_new_height, set_new_height>: Don't declare.
769 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
771 (tui_source_window_base::set_new_height): Remove.
772 (tui_source_window_base::rerender): Rename from
773 do_make_visible_with_new_height.
774 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
776 (tui_win_info::make_invisible_and_set_new_height)
777 (tui_win_info::make_visible_with_new_height): Remove.
778 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
780 * tui/tui-stack.c (tui_locator_window::rerender): New method.
781 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
782 do_make_visible_with_new_height>: Don't declare.
784 * tui/tui-regs.c (tui_data_window::rerender): Rename from
786 (tui_data_window::do_make_visible_with_new_height): Remove.
787 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
788 call tui_show_locator_content.
789 (tui_gen_win_info::resize): Call rerender.
790 (show_source_or_disasm_and_command): Don't call
791 tui_show_locator_content.
792 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
794 (struct tui_win_info) <rerender>: Declare.
795 <set_new_height, make_invisible_and_set_new_height,
796 make_visible_with_new_height>: Don't declare.
797 * tui/tui-data.c (tui_win_list::rerender): New method.
798 * tui/tui-command.h (struct tui_cmd_window)
799 <do_make_visible_with_new_height>: Don't declare.
801 (tui_cmd_window::do_make_visible_with_new_height): Remove.
803 2019-08-15 Tom Tromey <tromey@adacore.com>
805 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
806 * ada-lang.c (ada_enum_name): Likewise.
808 2019-08-15 Christian Biesinger <cbiesinger@google.com>
810 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
812 (GdbOutputErrorFile): Likewise.
813 (global scope): Adjust constructor calls to GdbOutput{,Error}File
815 (execute_unwinders): Rename to have a leading underscore.
816 (auto_load_packages): Likewise.
817 (global scope): Adjust call to auto_load_packages accordingly.
818 (GdbSetPythonDirectory): Likewise.
819 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
820 instead of execute_unwinders.
822 2019-08-15 Tom Tromey <tom@tromey.com>
824 * tui/tui-layout.c (show_layout, show_source_disasm_command)
825 (show_data): Don't change window visibility.
826 (tui_gen_win_info::resize): Remove special case for command
827 window. Use wresize, when available.
828 (show_source_or_disasm_and_command): Don't change window
830 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
831 <make_visible>: New method.
832 * tui/tui-command.c (tui_cmd_window::resize): New method.
834 2019-08-15 Tom Tromey <tom@tromey.com>
836 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
837 (struct tui_source_windows): New.
838 * tui/tui-winsource.c (tui_display_main): Update.
839 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
840 (new_height_ok, parse_scrolling_args): Update.
841 * tui/tui-layout.c (show_layout, show_data): Update.
842 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
843 (tui_add_to_source_windows): Don't declare.
844 * tui/tui-data.c (source_windows, tui_source_windows)
845 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
847 2019-08-15 Tom Tromey <tom@tromey.com>
849 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
851 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
852 * tui/tui-layout.c (show_source_disasm_command, show_data):
854 (tui_gen_win_info::resize): Rename.
855 (show_source_or_disasm_and_command): Update.
856 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
859 2019-08-15 Tom Tromey <tom@tromey.com>
861 * tui/tui-stack.c (tui_initialize_static_data): Remove.
862 * tui/tui-interp.c (tui_interp::init): Don't call
863 tui_initialize_static_data.
864 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
866 2019-08-15 Tom Tromey <tom@tromey.com>
868 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
869 examine tui_win_list.
871 2019-08-15 Tom Tromey <tom@tromey.com>
873 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
874 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
875 tui_clear_source_content.
876 (tui_clear_source_content): Remove.
877 (tui_source_window_base::do_erase_source_content): Hoist call to
879 * tui/tui-stack.c (tui_show_frame_info): Don't call
880 tui_clear_source_content.
882 2019-08-15 Tom Tromey <tom@tromey.com>
884 * tui/tui-winsource.h (struct tui_source_window_base)
885 <do_erase_source_content>: New method.
886 <erase_source_content>: New method.
887 (tui_erase_source_content): Don't declare.
888 * tui/tui-winsource.c (tui_clear_source_content): Update.
889 (tui_source_window_base::do_erase_source_content): Rename from
890 tui_erase_source_content.
891 (tui_source_window_base::show_source_content): Update.
892 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
893 * tui/tui-source.h (struct tui_source_window)
894 <erase_source_content>: New method.
895 * tui/tui-disasm.h (struct tui_disasm_window)
896 <erase_source_content>: New method.
898 2019-08-15 Tom Tromey <tom@tromey.com>
900 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
901 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
903 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
904 * tui/tui-source.c (tui_set_source_content): Update.
905 * tui/tui-disasm.c (tui_set_disassem_content): Update.
907 2019-08-15 Tom Tromey <tom@tromey.com>
909 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
910 * tui/tui-winsource.c (tui_line_is_displayed): Move to
912 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
914 * tui/tui-source.c (tui_source_window::line_is_displayed): New
916 (tui_source_window::maybe_update): Update.
918 2019-08-15 Tom Tromey <tom@tromey.com>
920 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
921 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
923 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
925 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
927 (tui_disasm_window::maybe_update): Update.
929 2019-08-15 Tom Tromey <tom@tromey.com>
931 * tui/tui-winsource.h (struct tui_source_window_base)
932 <maybe_update>: Declare.
933 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
935 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
937 * tui/tui-source.c (tui_source_window::maybe_update): New method.
938 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
940 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
942 2019-08-15 Tom Tromey <tom@tromey.com>
944 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
946 2019-08-15 Tom Tromey <tom@tromey.com>
948 * tui/tui-wingeneral.c: Include tui-stack.h.
949 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
950 (struct tui_locator_window): Move from tui-data.h.
951 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
952 (tui_initialize_static_data): Move from tui-data.c.
953 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
954 (struct tui_locator_window): Move to tui-stack.c.
955 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
956 (tui_initialize_static_data): Move to tui-stack.c.
958 2019-08-15 Tom Tromey <tom@tromey.com>
960 * tui/tui-layout.c (show_source_disasm_command)
961 (show_source_or_disasm_and_command): Use make_visible method, not
963 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
966 2019-08-15 Tom Tromey <tom@tromey.com>
968 * tui/tui-wingeneral.h (tui_make_window): Update.
969 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
971 (tui_gen_win_info::make_visible): Update.
972 * tui/tui-regs.c (tui_data_window::display_registers_from):
974 * tui/tui-layout.c (show_source_disasm_command)
975 (show_source_or_disasm_and_command): Update.
976 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
977 (enum tui_box): Remove.
978 (struct tui_win_info) <can_box>: New method.
979 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
982 2019-08-15 Tom de Vries <tdevries@suse.de>
984 * linux-nat-trad.c: Include gdbarch.h.
986 2019-08-14 Alan Hayward <alan.hayward@arm.com>
988 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
991 2019-08-14 Tom Tromey <tromey@adacore.com>
993 * darwin-nat.c: Include gdbarch.h.
994 * darwin-nat-info.c: Include gdbarch.h.
996 2019-08-13 Tom Tromey <tom@tromey.com>
998 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1000 * tui/tui-data.c (tui_initialize_static_data): Update.
1002 2019-08-13 Tom Tromey <tom@tromey.com>
1004 * tui/tui-winsource.h (struct tui_exec_info_window)
1005 <~tui_exec_info_window, maybe_allocate_content, get_content,
1007 (struct tui_source_window_base) <set_exec_info_content,
1008 show_exec_info_content>: Don't declare.
1009 * tui/tui-winsource.c
1010 (tui_exec_info_window::maybe_allocate_content): Remove.
1011 (tui_source_window_base::update_exec_info): Rename from
1012 set_exec_info_content.
1013 (tui_source_window_base::show_exec_info_content)
1014 (tui_source_window_base::update_exec_info): Remove.
1016 2019-08-13 Tom Tromey <tom@tromey.com>
1018 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1020 * tui/tui-winsource.c (tui_update_source_window_as_is)
1021 (tui_update_source_windows_with_addr, tui_erase_source_content):
1023 (tui_clear_exec_info_content): Remove.
1025 2019-08-13 Tom Tromey <tom@tromey.com>
1027 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1029 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1030 call tui_erase_exec_info_content.
1031 (tui_clear_exec_info_content): Rename from
1032 tui_erase_exec_info_content.
1033 (tui_clear_exec_info_content): Delete.
1035 2019-08-13 Tom Tromey <tom@tromey.com>
1037 * tui/tui-winsource.h (struct tui_source_window_base)
1038 <show_exec_info_content>: Declare.
1039 (tui_show_exec_info_content): Don't declare.
1040 * tui/tui-winsource.c
1041 (tui_source_window_base::show_exec_info_content): Rename from
1042 tui_show_exec_info_content.
1043 (tui_source_window_base::update_exec_info): Update.
1045 2019-08-13 Tom Tromey <tom@tromey.com>
1047 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1048 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1049 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1050 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1051 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1052 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1055 2019-08-13 Tom Tromey <tom@tromey.com>
1057 * tui/tui-winsource.h (struct tui_source_window_base)
1058 <update_exec_info>: Declare.
1059 (tui_update_exec_info): Don't declare.
1060 * tui/tui-winsource.c (tui_update_source_window_as_is)
1061 (tui_source_window_base::refresh_all)
1062 (tui_update_all_breakpoint_info): Update.
1063 (tui_source_window_base::update_exec_info): Rename from
1064 tui_update_exec_info.
1065 * tui/tui-stack.c (tui_show_frame_info): Update.
1067 2019-08-13 Tom Tromey <tom@tromey.com>
1069 * tui/tui-winsource.h (struct tui_source_window_base)
1070 <set_exec_info_content>: Declare.
1071 (tui_set_exec_info_content): Don't declare.
1072 * tui/tui-winsource.c
1073 (tui_source_window_base::set_exec_info_content): Rename from
1074 tui_set_exec_info_content.
1075 (tui_update_exec_info): Update.
1077 2019-08-13 Tom Tromey <tom@tromey.com>
1079 * tui/tui-winsource.h (struct tui_source_window_base)
1080 <show_source_content>: Declare.
1081 (tui_show_source_content): Don't declare.
1082 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1083 (tui_source_window_base::show_source_content): Rename from
1084 tui_show_source_content.
1085 (tui_source_window_base::refresh_all): Update.
1086 * tui/tui-layout.c (show_source_disasm_command)
1087 (show_source_or_disasm_and_command): Update.
1089 2019-08-13 Tom Tromey <tom@tromey.com>
1091 * tui/tui-winsource.c (tui_erase_source_content)
1092 (tui_show_source_content, tui_source_window_base::refresh_all):
1094 * tui/tui-wingeneral.h
1095 (tui_check_and_display_highlight_if_needed): Don't declare.
1096 * tui/tui-wingeneral.c
1097 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1098 check_and_display_highlight_if_needed.
1099 * tui/tui-win.c (tui_rehighlight_all)
1100 (tui_win_info::make_visible_with_new_height): Update.
1101 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1102 (tui_data_window::erase_data_content)
1103 (tui_data_window::display_all_data): Update.
1104 * tui/tui-data.h (struct tui_win_info)
1105 <check_and_display_highlight_if_needed>: Declare.
1107 2019-08-13 Tom Tromey <tom@tromey.com>
1109 * tui/tui-win.c (tui_resize_all): Call
1110 tui_delete_invisible_windows.
1111 * tui/tui-layout.c (show_layout): Call
1112 tui_delete_invisible_windows.
1113 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1114 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1116 2019-08-13 Tom Tromey <tom@tromey.com>
1118 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1119 tui_add_win_to_layout.
1121 2019-08-13 Tom Tromey <tom@tromey.com>
1123 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1124 * tui/tui-layout.c (tui_default_win_height): Now static.
1126 2019-08-13 Tom Tromey <tom@tromey.com>
1128 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1130 (show_source_disasm_command, show_source_or_disasm_and_command):
1131 Don't check current layout.
1133 2019-08-13 Tom Tromey <tom@tromey.com>
1135 * tui/tui-wingeneral.c (make_all_visible): Remove.
1136 (tui_make_all_invisible): Simplify.
1137 * tui/tui-layout.c (tui_make_all_invisible): Move from
1138 tui-wingeneral.c; simplify.
1139 (show_layout): Hoist call to tui_make_all_invisible.
1140 (show_data): Don't call tui_make_all_invisible.
1142 2019-08-13 Tom Tromey <tom@tromey.com>
1144 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1145 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1147 2019-08-13 Tom Tromey <tom@tromey.com>
1149 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1151 (show_source_disasm_command, show_data)
1152 (show_source_or_disasm_and_command): Don't use
1153 tui_set_current_layout_to.
1154 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1155 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1157 (tui_set_current_layout_to): Remove.
1159 2019-08-13 Tom Tromey <tom@tromey.com>
1161 * tui/tui-layout.c (tui_set_layout): Update.
1162 * tui/tui-data.h (struct tui_layout_def): Remove.
1163 (tui_layout_def): Don't declare.
1164 * tui/tui-data.c (layout_def): Remove.
1165 (tui_layout_def): Remove.
1167 2019-08-13 Tom Tromey <tom@tromey.com>
1169 * tui/tui-winsource.h (struct tui_source_window_base)
1170 <clear_detail>: No longer "override".
1171 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1172 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1173 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1174 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1176 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1178 2019-08-13 Tom Tromey <tromey@adacore.com>
1180 * tracepoint.c: Don't include readline.h or history.h.
1182 2019-08-12 Tom Tromey <tom@tromey.com>
1184 * configure: Rebuild.
1185 * configure.ac: Check for readline 7.
1186 * NEWS: Mention readline 7 requirement.
1189 2019-08-12 Tom Tromey <tom@tromey.com>
1191 * mingw-hdep.c (gdb_select): Remove readline hack.
1193 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1195 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1196 when the function fails.
1198 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1200 * s390-tdep.c (s390_type_align): New function.
1201 (s390_gdbarch_init): Set it as type_align gdbarch method.
1203 2019-08-09 Tom de Vries <tdevries@suse.de>
1206 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1207 pc_low with relocation offset.
1209 2019-08-07 Tom Tromey <tromey@adacore.com>
1211 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1212 (print_frame_args): Update.
1213 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1215 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1216 * frame.h (struct frame_arg): Add initializers.
1217 <error>: Now a unique_xmalloc_ptr.
1219 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1221 * NEWS: Expand the Pointer Authentication entry.
1222 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1223 (aarch64_frame_unmask_lr): ... to this.
1224 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1225 Call aarch64_frame_unmask_lr.
1226 * frame.c (struct frame_info): Add "masked" variable.
1227 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1228 (fprint_frame): Check for masked pc.
1229 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1231 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1232 * stack.c (print_frame): Check for masked pc.
1234 2019-08-06 Tom Tromey <tom@tromey.com>
1236 * stabsread.c (patch_block_stabs, read_one_struct_field)
1237 (read_enum_type): Use obstack_strndup.
1238 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1239 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1240 * dwarf2read.c (guess_full_die_structure_name)
1241 (anonymous_struct_prefix): Use obstack_strndup.
1242 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1243 * c-exp.y (yylex): Use obstack_strndup.
1244 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1245 (write_var_or_type): Use obstack_strndup.
1247 2019-08-06 Tom Tromey <tom@tromey.com>
1249 * symfile.c (reread_symbols): Use obstack_strdup.
1250 * stabsread.c (read_type): Use obstack_strdup.
1251 * gdb_obstack.h (obstack_strdup): New overload.
1252 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1253 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1254 (dwarf2_canonicalize_name): Use obstack_strdup.
1255 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1256 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1259 2019-08-06 Tom Tromey <tom@tromey.com>
1261 * gdb_obstack.h (obstack_strdup): Define.
1262 * gdb_obstack.c (obstack_strdup): Don't define.
1264 2019-08-06 Tom Tromey <tom@tromey.com>
1266 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1268 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1270 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1271 * stabsread.c (common_block_start): Use obstack_strdup.
1272 * objfiles.c (set_objfile_main_name, objfile): Use
1274 * namespace.c (add_using_directive): Use obstack_strdup.
1275 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1276 * jit.c (finalize_symtab): Use obstack_strdup.
1277 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1278 (guess_partial_die_structure_name, partial_die_info::fixup)
1279 (dwarf2_name): Use obstack_strdup.
1280 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1282 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1283 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1285 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1287 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1289 * unittests/help-doc-selftests.c: New file.
1290 * Makefile.in: Add the new file.
1292 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1294 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1295 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1296 the full first line, except when FOR_VALUE_PREFIX. In this case,
1297 the trailing '.' is not output, and the first character is uppercased.
1298 (print_help_for_command): Update call to print_doc_line.
1299 (print_doc_of_command): Likewise.
1300 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1301 * cli/cli-option.c (append_indented_doc): Do not append newline.
1302 (build_help_option): Append newline after first appended_indented_doc
1303 only if a second call is done.
1304 (build_help): Append 2 new lines before each option, except the first
1306 * compile/compile.c (_initialize_compile): Add new lines after
1307 %OPTIONS%, when not at the end of the help.
1308 Change help doc or code
1309 producing the help doc to respect the invariants.
1310 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1311 Also removed the new line after 'Options:', as all other commands
1312 do not put an empty line between 'Options:' and the first option.
1313 * printcmd.c (_initialize_printcmd): Likewise.
1314 * stack.c (_initialize_stack): Likewise.
1315 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1316 incorrectly telling COMMAND is optional.
1317 * ada-lang.c (_initialize_ada_language): Change help doc or code
1318 producing the help doc to respect the invariants.
1319 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1320 * breakpoint.c (_initialize_breakpoint): Likewise.
1321 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1322 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1323 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1324 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1325 _initialize_cli_style): Likewise.
1326 * corelow.c (core_target_info): Likewise.
1327 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1328 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1329 * filesystem.c (_initialize_filesystem): Likewise.
1330 * frame.c (_initialize_frame): Likewise.
1331 * gnu-nat.c (add_task_commands): Likewise.
1332 * infcall.c (_initialize_infcall): Likewise.
1333 * infcmd.c (_initialize_infcmd): Likewise.
1334 * interps.c (_initialize_interpreter): Likewise.
1335 * language.c (_initialize_language): Likewise.
1336 * linux-fork.c (_initialize_linux_fork): Likewise.
1337 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1338 * maint.c (_initialize_maint_cmds): Likewise.
1339 * memattr.c (_initialize_mem): Likewise.
1340 * printcmd.c (_initialize_printcmd): Likewise.
1341 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1343 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1344 * record-btrace.c (_initialize_record_btrace): Likewise.
1345 * record-full.c (_initialize_record_full): Likewise.
1346 * record.c (_initialize_record): Likewise.
1347 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1348 * regcache.c (_initialize_regcache): Likewise.
1349 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1350 _initialize_remote): Likewise.
1351 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1352 * serial.c (_initialize_serial): Likewise.
1353 * skip.c (_initialize_step_skip): Likewise.
1354 * source.c (_initialize_source): Likewise.
1355 * stack.c (_initialize_stack): Likewise.
1356 * symfile.c (_initialize_symfile): Likewise.
1357 * symtab.c (_initialize_symtab): Likewise.
1358 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1359 * top.c (init_main): Likewise.
1360 * tracefile-tfile.c (tfile_target_info): Likewise.
1361 * tracepoint.c (_initialize_tracepoint): Likewise.
1362 * tui/tui-win.c (_initialize_tui_win): Likewise.
1363 * utils.c (add_internal_problem_command): Likewise.
1364 * valprint.c (value_print_option_defs): Likewise.
1366 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1369 * configure.ac: Drop enable-libmcheck support.
1370 * configure, config.in: Rebuild.
1371 * libmcheck.m4: Remove.
1372 * acinclude.m4: Don't include it.
1373 * Makefile.in: Don't distribute it.
1374 * top.c (print_gdb_configuration): Don't mention it.
1376 2019-08-06 Tom Tromey <tom@tromey.com>
1378 * utils.c (set_output_style): Sometimes pass stream to
1380 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1381 * record-btrace.c (btrace_insn_history): Update.
1382 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1384 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1385 Update initializers.
1386 <m_uiout>: New field.
1388 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1389 Remove "uiout" parameter.
1390 (dump_insns): Update.
1391 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1392 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1394 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1396 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1397 (error_in_psymtab_expansion): Likewise.
1398 (lookup_symbol_via_quick_fns): Likewise.
1399 (basic_lookup_transparent_type_quick): Likewise.
1400 (basic_lookup_transparent_type_1): Likewise.
1402 2019-08-06 Tom Tromey <tromey@adacore.com>
1404 * source.c (last_source_error): Now bool.
1405 (print_source_lines_base): Make "noprint" bool. Only open
1406 source file when last_source_visited changes.
1408 2019-08-06 Tom Tromey <tromey@adacore.com>
1410 * annotate.c (annotate_source_line): Use g_source_cache.
1411 * source-cache.c (source_cache::get_plain_source_lines): Change
1412 parameters. Populate m_offset_cache.
1413 (source_cache::ensure): New method.
1414 (source_cache::get_line_charpos): New method.
1415 (extract_lines): Move lower. Change parameters.
1416 (source_cache::get_source_lines): Move lower.
1417 * source-cache.h (class source_cache): Update comment.
1418 <get_line_charpos>: New method.
1419 <get_source_lines>: Update comment.
1420 <clear>: Clear m_offset_cache.
1421 <get_plain_source_lines>: Change parameters.
1422 <ensure>: New method
1423 <m_offset_cache>: New member.
1424 * source.c (forget_cached_source_info_for_objfile): Update.
1425 (info_source_command): Use g_source_cache.
1426 (find_source_lines, open_source_file_with_line_charpos): Remove.
1427 (print_source_lines_base, search_command_helper): Use g_source_cache.
1428 * source.h (open_source_file_with_line_charpos): Don't declare.
1429 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1430 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1433 2019-08-06 Tom Tromey <tromey@adacore.com>
1435 * source-cache.c (source_cache::get_plain_source_lines):
1436 Remove "first_line" and "last_line" parameters.
1437 (source_cache::get_source_lines): Cache plain text.
1438 * source-cache.h (class source_cache)
1439 <get_plain_source_lines>: Update.
1441 2019-08-06 Tom Tromey <tromey@adacore.com>
1443 * source-cache.c (extract_lines): No longer a method.
1444 Changed type of parameter. Include final newline.
1445 (selftests::extract_lines_test): New function.
1446 (_initialize_source_cache): Likewise.
1447 * source-cache.h (class source_cache)
1448 <extract_lines>: Don't declare.
1450 2019-08-06 Tom Tromey <tromey@adacore.com>
1452 * breakpoint.c (init_breakpoint_sal): Update.
1453 (breakpoint): Update.
1454 * breakpoint.h (struct breakpoint) <filter>: Now a
1457 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1459 * NEWS: Mention dictionary access on blocks.
1460 * python/py-block.c (blpy_getitem): New function.
1461 (block_object_as_mapping): New struct.
1462 (block_object_type): Use new struct for tp_as_mapping field.
1464 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1466 * objfiles.h (objfile): Add a comment describing partial symbols.
1468 2019-08-05 Tom Tromey <tromey@adacore.com>
1470 * compile/compile.c (_initialize_compile): Use _(), not N_().
1471 * thread.c (_initialize_thread): Use _(), not N_().
1472 * stack.c (_initialize_stack): Use _(), not N_().
1473 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1475 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1477 * dwarf2read.c (struct dw2_symtab_iterator):
1478 <want_specific_block>: Remove.
1479 <block_index>: Change type to gdb::optional.
1480 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1481 change type of BLOCK_INDEX parameter to gdb::optional.
1482 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1483 (dw2_lookup_symbol): Don't pass argument for
1484 WANT_SPECIFIC_BLOCK.
1485 (dw2_expand_symtabs_for_function): Don't pass argument for
1486 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1487 (class dw2_debug_names_iterator)
1488 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1489 parameter, change BLOCK_INDEX type to gdb::optional.
1490 <m_want_specific_block>: Remove.
1491 <m_block_index>: Change type to gdb::optional.
1492 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1493 gdb::optional. Re-write in function of gdb::optional.
1494 (dw2_debug_names_lookup_symbol): Don't pass argument for
1495 WANT_SPECIFIC_BLOCK.
1496 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1497 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1500 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1502 * NEWS: Mention changes to "info sources" command.
1504 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1506 * symtab.c (filename_partial_match_opts): New struct type.
1507 (struct output_source_filename_data): New members
1508 regexp, c_regexp, partial_match.
1509 (output_source_filename): Use new members to decide to print file.
1510 (info_sources_option_defs): New variable.
1511 (make_info_sources_options_def_group, print_info_sources_header,
1512 info_sources_command_completer):
1514 (info_sources_command): Read new optional arguments.
1515 (_initialize_symtab): Update info sources help.
1517 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1519 * ada-lang.c (exception_support_info_v0): Renamed from...
1520 (default_exception_support_info): ... this. Create new
1522 (ada_has_this_exception_support): Look up catch_handlers_sym.
1523 (ada_exception_support_info_sniffer): Try v0 after default.
1525 2019-08-01 Tom Tromey <tromey@adacore.com>
1527 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1530 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1532 * s12z-tdep.c: Fix include path for s12z-opc.h.
1534 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1536 * NEWS: Require GNU make 3.82.
1538 2019-07-16 Tom Tromey <tom@tromey.com>
1540 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1543 2019-07-30 Tom Tromey <tromey@adacore.com>
1545 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1547 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1549 * printcmd.c (print_address_symbolic): Print negative offsets.
1550 (build_address_symbolic): Force signed arithmetic when computing
1553 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1555 PR/24474: Add a function to lookup static variables.
1556 * NEWS: Mention this new function.
1557 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1558 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1559 * python/python.c (python_GdbMethods): Add new function.
1561 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1563 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1564 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1565 (objfpy_lookup_static_symbol): New function.
1566 (objfile_object_methods): Add new functions.
1568 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1570 * NEWS: Mention 'set|show print frame-info'. Mention new
1571 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1572 backtrace argument. Mention that python frame filtering code
1573 is now consistent with what 'backtrace' command prints.
1575 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1577 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1579 (print_frame_info_auto, print_frame_info_source_line,
1580 print_frame_info_location, print_frame_info_source_and_location,
1581 print_frame_info_location_and_address, print_frame_info_short_location):
1583 (struct frame_print_options): New member print_frame_info.
1584 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1585 * stack.h (get_user_print_what_frame_info): New declaration.
1586 (frame_show_address): New declaration.
1587 * stack.c (print_frame_arguments_choices): New value 'presence'.
1588 (print_frame_info_auto, print_frame_info_source_line,
1589 print_frame_info_location, print_frame_info_source_and_location,
1590 print_frame_info_location_and_address, print_frame_info_short_location,
1591 print_frame_info_choices, print_frame_info_print_what): New definitions.
1592 (print_frame_args): Only print dots for args if print frame-arguments
1594 (frame_print_option_defs): New element for "frame-info".
1595 (get_user_print_what_frame_info): New function.
1596 (frame_show_address): Make non static. Move comment to stack.h.
1597 (print_frame_info_to_print_what): New function.
1598 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1599 to decide what to print.
1600 (backtrace_command_1): Handle the new print_frame_arguments_presence
1602 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1603 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1604 (py_print_frame): In non-mi mode, use LOCATION as default for
1605 print_what, similarly to frame information printed directly by
1606 backtrace command. Handle frame-info user option in non MI mode.
1608 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1610 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1611 Add case for debugging 32-bit target on 64-bit host. Revise
1614 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1616 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1617 instead of find_function_entry_range_from_pc.
1619 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1621 * stack.c (find_frame_funname): Remove code which preferred
1622 minsym over symtab sym in "certain pathological cases".
1624 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1625 parameter. Change type of "do_demangle" to bool.
1626 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1627 Pass suitable "prefer_sym_over_minsym" flag to
1628 build_address_symbolic(). Don't output "+" for negative offsets.
1629 * printcmd.c (print_address_symbolic): Update invocation of
1630 build_address_symbolic to include a "prefer_sym_over_minsym"
1632 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1633 Restrict cases in which use of minimal symbol is preferred to that
1634 of a found symbol. Update comments.
1636 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1637 for entry pc when entry pc is out of range for that FDE.
1639 2019-07-26 Brian Callahan <bcallah@openbsd.org>
1642 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1645 2019-07-25 Christian Biesinger <cbiesinger@google.com>
1647 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1648 this function's Python signature.
1651 2019-07-24 Christian Biesinger <cbiesinger@google.com>
1653 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1654 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1655 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1656 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1657 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1660 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1662 * h8300-tdep.c (h8300_register_name_common): New.
1663 h8300_register_name): Use h8300_register_name_common.
1664 (h8300s_register_name): Likewise.
1665 (h8300sx_register_name): Likewise.
1666 (h8300h_register_nam): New.
1667 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1670 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1672 * arm-tdep.c (arm_skip_cmse_entry): New function.
1673 (arm_is_sgstubs_section): New function.
1674 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1676 2019-07-22 Tom Tromey <tom@tromey.com>
1678 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1681 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1683 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1686 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1688 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1689 so that GDB doesn't match any msymbols when searching in the
1691 (print_symbol_info): Print using typedef_print or type_print based
1692 on the type of the symbol. Add updated FIXME comment moved from...
1693 (_initialize_symtab): ... move and update FIXME comment to above.
1695 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1697 * NEWS: Mention adding -q option to "info types".
1698 * symtab.c (struct info_types_options): New struct.
1699 (info_types_options_defs): New variable.
1700 (make_info_types_options_def_group): New function.
1701 (info_types_command): Use gdb::option framework to parse options.
1702 (info_types_command_completer): New function.
1703 (_initialize_symtab): Extend the help text on "info types" and
1704 register command completer.
1706 2019-07-21 Christian Biesinger <cbiesinger@google.com>
1708 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1709 (lookup_symbol_in_objfile): Change int to block_enum and add a
1710 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1712 2019-07-20 Christian Biesinger <cbiesinger@google.com>
1714 * MAINTAINERS (Write After Approval): Add self.
1716 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1718 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1719 instruction to the dummy code region.
1721 2019-07-19 Tom Tromey <tromey@adacore.com>
1723 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1724 (ARGSUSED, PARAMS, __func__): Remove rules.
1726 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1728 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1729 * features/arm/arm-with-iwmmxt.c: Remove.
1730 * features/arm/arm-with-iwmmxt.xml: Remove.
1731 * features/arm/arm-with-m-fpa-layout.c: Remove.
1732 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1733 * features/arm/arm-with-m-vfp-d16.c: Remove.
1734 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1735 * features/arm/arm-with-m.c: Remove.
1736 * features/arm/arm-with-m.xml: Remove.
1737 * features/arm/arm-with-neon.c: Remove.
1738 * features/arm/arm-with-neon.xml: Remove.
1739 * features/arm/arm-with-vfpv2.c: Remove.
1740 * features/arm/arm-with-vfpv2.xml: Remove.
1741 * features/arm/arm-with-vfpv3.c: Remove.
1742 * features/arm/arm-with-vfpv3.xml: Remove.
1744 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1746 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1748 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1750 * arch/aarch32.c (aarch32_create_target_description): Create
1751 target descriptions using features.
1752 * arch/arm.c (arm_create_target_description)
1753 (arm_create_mprofile_target_description): Likewise.
1754 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1756 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1758 * Makefile.in: Add new files.
1759 * aarch32-tdep.c: New file.
1760 * aarch32-tdep.h: New file.
1761 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1762 Call aarch32_read_description.
1763 * arch/aarch32.c: New file.
1764 * arch/aarch32.h: New file.
1765 * arch/arm.c (arm_create_target_description)
1766 (arm_create_mprofile_target_description): New function.
1767 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1768 (arm_create_target_description)
1769 (arm_create_mprofile_target_description): New declaration.
1770 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1771 read_description functions.
1772 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1774 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1775 * arm-tdep.c (tdesc_arm_list): New variable.
1776 (arm_register_g_packet_guesses): Call create description functions.
1777 (arm_read_description) (arm_read_mprofile_description): New
1779 * arm-tdep.h (arm_read_description)
1780 (arm_read_mprofile_description): Add declaration.
1781 * configure.tgt: Add new files.
1783 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1785 * top.c (new_ui_command): Open specified terminal just once.
1787 2019-07-18 Tom Tromey <tromey@adacore.com>
1789 * symtab.c (main_name): Constify return type.
1790 * symfile.c (set_initial_language): Update.
1791 * symtab.h (main_name): Constify return type.
1793 2019-07-17 Tom Tromey <tom@tromey.com>
1795 * tui/tui-winsource.c (tui_update_source_window)
1796 (tui_update_source_window_as_is)
1797 (tui_update_source_windows_with_line): Remove return.
1798 * tui/tui-disasm.c (tui_show_disassem)
1799 (tui_show_disassem_and_update_source): Remove return.
1800 * tui/tui.c (tui_reset): Remove return.
1801 * tui/tui-wingeneral.c
1802 (tui_check_and_display_highlight_if_needed): Remove return.
1804 2019-07-17 Tom Tromey <tom@tromey.com>
1806 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1808 2019-07-17 Tom Tromey <tom@tromey.com>
1810 * tui/tui-winsource.h (struct tui_exec_info_window)
1811 (struct tui_source_window_base): Move from tui-data.h.
1812 * tui/tui-winsource.c: Move many method definitions from
1813 elsewhere. Remove "structuring" comments.
1814 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1815 (tui_source_window_base::refresh_window): Move to
1817 * tui/tui-win.c (tui_source_window_base::refresh_all)
1818 (tui_source_window_base::update_tab_width)
1819 (tui_source_window_base::set_new_height)
1820 (tui_source_window_base::do_make_visible_with_new_height): Move to
1822 * tui/tui-source.h: Update.
1823 * tui/tui-source.c (tui_source_window_base::reset): Move to
1825 * tui/tui-disasm.h: Update.
1826 * tui/tui-data.h (struct tui_exec_info_window): Move to
1828 (struct tui_source_window_base): Likewise.
1829 * tui/tui-data.c (tui_source_window_base::clear_detail)
1830 (tui_source_window_base, ~tui_source_window_base): Move to
1833 2019-07-17 Tom Tromey <tom@tromey.com>
1835 * tui/tui-win.c (tui_resize_all)
1836 (tui_source_window_base::update_tab_width)
1837 (tui_adjust_win_heights): Update.
1838 (tui_win_info::make_invisible_and_set_new_height): Rename from
1839 make_invisible_and_set_new_height.
1840 * tui/tui-data.h (struct tui_win_info)
1841 <make_invisible_and_set_new_height>: New method.
1843 2019-07-17 Tom Tromey <tom@tromey.com>
1845 * tui/tui.c: Update.
1846 * tui/tui-source.h (struct tui_source_window): Move from
1848 * tui/tui-layout.c: Update.
1849 * tui/tui-disasm.c: Update.
1850 * tui/tui-data.h (struct tui_source_window): Move to
1853 2019-07-17 Tom Tromey <tom@tromey.com>
1855 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1857 * tui/tui-data.h (struct tui_disasm_window): Move to
1860 2019-07-17 Tom Tromey <tom@tromey.com>
1862 * tui/tui-regs.h (struct tui_data_item_window): Move from
1864 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1865 * tui/tui-data.h (struct tui_data_item_window): Move to
1867 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1869 2019-07-17 Tom Tromey <tom@tromey.com>
1871 * tui/tui.c: Update.
1872 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1873 (tui_cmd_window::max_height): Move to tui-command.c.
1874 * tui/tui-layout.c: Update.
1875 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1876 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1878 * tui/tui-command.h (struct tui_cmd_window): Move from
1880 * tui/tui-command.c: Remove "structuring" comments.
1881 (tui_cmd_window::clear_detail)
1882 (tui_cmd_window::do_make_visible_with_new_height)
1883 (tui_cmd_window::max_height): Move from elsewhere.
1885 2019-07-17 Tom Tromey <tom@tromey.com>
1887 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1889 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1890 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1892 2019-07-17 Tom Tromey <tom@tromey.com>
1894 * tui/tui.c: Update.
1895 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1897 * tui/tui-windata.h: Remove file.
1898 * tui/tui-windata.c: Remove file.
1899 * tui/tui-win.c (tui_data_window::set_new_height)
1900 (tui_data_window::do_make_visible_with_new_height): Move to
1902 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1903 * tui/tui-regs.c: Remove "structuring" comments.
1904 (tui_data_window::first_data_item_displayed)
1905 (tui_data_window::delete_data_content_windows)
1906 (tui_data_window::erase_data_content)
1907 (tui_data_window::display_all_data)
1908 (tui_data_window::refresh_all)
1909 (tui_data_window::do_scroll_vertical)
1910 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1911 (tui_data_window::do_make_visible_with_new_height)
1912 (tui_data_window::refresh_window): Move from elsewhere.
1913 (_initialize_tui_regs): Move to end of file.
1914 * tui/tui-layout.c: Update.
1915 * tui/tui-hooks.c: Update.
1916 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1917 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1919 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1921 2019-07-17 Tom Tromey <tom@tromey.com>
1923 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1926 2019-07-17 Tom Tromey <tom@tromey.com>
1928 * tui/tui-win.c (tui_source_window_base::set_new_height)
1929 (tui_source_window_base::do_make_visible_with_new_height): Use
1930 m_has_locator field directly.
1931 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1933 (struct tui_source_window_base) <has_locator>: Likewise.
1935 2019-07-17 Tom Tromey <tom@tromey.com>
1937 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1939 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1941 * tui/tui-win.c (tui_source_window_base::set_new_height)
1942 (tui_source_window_base::set_new_height)
1943 (make_invisible_and_set_new_height)
1944 (tui_source_window_base::do_make_visible_with_new_height)
1945 (tui_source_window_base::do_make_visible_with_new_height):
1947 * tui/tui-layout.c (show_source_disasm_command, show_data)
1948 (show_source_or_disasm_and_command): Update.
1949 * tui/tui-layout.c (show_layout): Update.
1951 2019-07-17 Tom Tromey <tom@tromey.com>
1953 * tui/tui-layout.c (make_data_window): Remove.
1954 (show_data): Unify creation and re-initialization cases.
1956 2019-07-17 Tom Tromey <tom@tromey.com>
1958 * tui/tui-layout.c (make_source_window, make_disasm_window):
1960 (show_data): Unify creation and re-initialization cases.
1962 2019-07-17 Tom Tromey <tom@tromey.com>
1964 * tui/tui-layout.c (make_command_window): Remove.
1965 (show_source_disasm_command, show_source_or_disasm_and_command):
1966 Unify creation and re-initialization cases.
1968 2019-07-17 Tom Tromey <tom@tromey.com>
1970 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1971 creation and re-initialization cases.
1973 2019-07-17 Tom Tromey <tom@tromey.com>
1975 * tui/tui-regs.c (tui_get_register): Return void.
1977 2019-07-17 Tom Tromey <tom@tromey.com>
1979 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1982 2019-07-17 Tom Tromey <tom@tromey.com>
1984 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1987 2019-07-17 Tom Tromey <tom@tromey.com>
1989 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1990 * tui/tui-regs.c (tui_reg_layout): New function.
1991 (tui_show_registers, tui_reg_command): Use it.
1992 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1993 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1995 (tui_layout_command): Remove.
1997 2019-07-17 Tom Tromey <tom@tromey.com>
1999 * tui/tui-layout.h (tui/tui-layout): Return void.
2000 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2002 2019-07-17 Tom Tromey <tom@tromey.com>
2004 * tui/tui-layout.c (show_source_disasm_command, show_data):
2006 (reset_locator): Remove.
2007 (show_source_or_disasm_and_command): Update.
2009 2019-07-17 Tom Tromey <tom@tromey.com>
2011 * tui/tui-source.c (tui_source_window_base::reset): Remove
2013 * tui/tui-layout.c (make_command_window, make_source_window)
2014 (make_disasm_window, make_data_window)
2015 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2016 (reset_locator, show_source_or_disasm_and_command): Update.
2017 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2019 (struct tui_source_window_base) <reset>: Likewise.
2021 2019-07-17 Tom Tromey <tom@tromey.com>
2023 * tui/tui-layout.c (show_source_disasm_command): Use
2025 (reset_locator): New function.
2026 (init_and_make_win): Remove.
2027 (show_source_or_disasm_and_command): Use reset_locator.
2029 2019-07-17 Tom Tromey <tom@tromey.com>
2031 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2033 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2035 * tui/tui-source.c (tui_source_window_base::reset): New method.
2036 * tui/tui-layout.c (make_command_window): Don't call
2038 (make_source_window, make_disasm_window): Don't call
2039 make_source_or_disasm_window.
2040 (make_data_window): Don't call init_and_make_win. Change calling
2042 (show_source_disasm_command, show_data): Simplify.
2043 (make_source_or_disasm_window): Remove.
2044 (show_source_or_disasm_and_command): Simplify.
2045 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2046 (struct tui_source_window_base) <reset>: Likewise.
2047 <execution_info>: Remove initializer.
2048 * tui/tui-data.c (tui_source_window_base): Initialize
2051 2019-07-17 Tom Tromey <tom@tromey.com>
2053 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2056 2019-07-17 Tom Tromey <tom@tromey.com>
2058 * tui/tui.c (tui_rl_other_window): Update.
2059 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2060 superclass method first. Always iterate over regs_content.
2061 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2063 * tui/tui-win.c (tui_set_focus_command): Update.
2065 2019-07-17 Tom Tromey <tom@tromey.com>
2067 * tui/tui-win.c (tui_set_focus_command): Rename from
2068 tui_set_focus. Call tui_enable.
2069 (tui_set_focus_command): Remove.
2071 2019-07-17 Tom Tromey <tom@tromey.com>
2073 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2075 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2077 (tui_data_window::refresh_window): Call refresh_window on data
2078 items. Always call superclass refresh_window.
2079 (tui_win_info::refresh): Remove.
2080 (tui_source_window_base::refresh_window): Update.
2081 (tui_refresh_all): Update.
2082 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2084 (show_source_or_disasm_and_command): Likewise.
2085 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2086 (struct tui_source_window_base) <refresh>: Likewise.
2088 2019-07-17 Tom Tromey <tom@tromey.com>
2090 * tui/tui-winsource.c (tui_clear_source_content)
2091 (tui_show_source_content): Update.
2092 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2093 whether content is empty.
2094 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2097 2019-07-17 Tom Tromey <tom@tromey.com>
2099 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2101 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2102 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2104 2019-07-17 Tom Tromey <tom@tromey.com>
2106 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2107 (struct tui_data_item_window): Update.
2109 2019-07-17 Tom Tromey <tom@tromey.com>
2111 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2112 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2115 2019-07-17 Tom Tromey <tom@tromey.com>
2117 * tui/tui-winsource.h (tui_erase_source_content)
2118 (tui_clear_source_content): Remove "display_prompt" parameter.
2119 * tui/tui-winsource.c (tui_update_source_window_as_is)
2120 (tui_update_source_windows_with_addr): Update.
2121 (tui_clear_source_content): Remove "display_prompt" parameter.
2122 (tui_erase_source_content): Likewise. Simplify.
2123 (tui_show_source_content): Update.
2124 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2125 * tui/tui-stack.c (tui_show_frame_info): Update.
2126 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2129 2019-07-17 Tom Tromey <tom@tromey.com>
2131 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2132 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2134 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2137 2019-07-17 Tom Tromey <tom@tromey.com>
2139 * tui/tui-winsource.c (tui_clear_source_content)
2140 (tui_show_source_content, tui_show_exec_info_content)
2141 (tui_clear_exec_info_content): Update.
2142 * tui/tui-stack.c (tui_show_locator_content): Update.
2143 (tui_show_frame_info): Update.
2144 * tui/tui-source.h (tui_source_window): Don't declare.
2145 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2146 from tui_source_is_displayed.
2147 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2149 (struct tui_source_window_base) <content_in_use>: New field. Now
2151 (struct tui_source_window) <showing_source_p>: New method.
2152 (TUI_SRC_WIN): Change cast.
2153 * tui/tui-data.c (tui_initialize_static_data): Update.
2155 2019-07-17 Tom Tromey <tom@tromey.com>
2157 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2159 * tui/tui-source.c (tui_source_window::location_matches_p): New
2161 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2163 * tui/tui-data.h (struct tui_source_window_base)
2164 <location_matches_p>: New method.
2165 (struct tui_source_window, struct tui_disasm_window)
2166 <location_matches_p>: Likewise.
2168 2019-07-17 Tom Tromey <tom@tromey.com>
2170 * tui/tui-win.c (tui_set_win_height_command): Rename from
2172 (tui_set_win_height_command): Remove.
2174 2019-07-17 Tom Tromey <tom@tromey.com>
2176 * tui/tui-source.c (tui_source_window): New constructor. Add
2178 (~tui_source_window): New destructor.
2179 (tui_source_window::style_changed): New method.
2180 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2181 (tui_attach_detach_observers): Update.
2182 * tui/tui-data.h (struct tui_source_window): Make constructor not
2183 inline. Add destructor.
2184 (struct tui_source_window) <style_changed>: New method.
2185 <m_observable>: New member.
2187 2019-07-17 Tom Tromey <tom@tromey.com>
2189 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2190 * tui/tui-win.c (tui_resize_all): Fix typo.
2192 2019-07-17 Tom Tromey <tom@tromey.com>
2194 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2195 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2196 (tui_refresh_all): Remove "list" parameter. Use foreach.
2197 * tui/tui-win.c (window_name_completer): Use foreach.
2198 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2199 (update_tab_width): Likewise.
2200 * tui/tui-layout.c (show_layout): Update.
2201 * tui/tui-data.h (class tui_window_iterator): New.
2202 (struct all_tui_windows): New.
2203 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2205 2019-07-17 Tom Tromey <tom@tromey.com>
2207 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2208 parameter. Don't reference globals.
2209 (tui_reg_command): Update.
2211 2019-07-17 Tom Tromey <tom@tromey.com>
2213 * tui/tui-regs.c (tui_show_registers): Simplify.
2215 2019-07-17 Tom Tromey <tom@tromey.com>
2217 * tui/tui-regs.c (tui_show_registers): Update.
2218 (tui_show_register_group): Add win_info parameter.
2220 2019-07-17 Tom Tromey <tom@tromey.com>
2222 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2223 Rename from tui_display_reg_element_at_line.
2224 (tui_data_window::display_registers_from_line): Update.
2225 * tui/tui-data.h (struct tui_data_window)
2226 <display_reg_element_at_line>: New method.
2228 2019-07-17 Tom Tromey <tom@tromey.com>
2230 * tui/tui-regs.h (tui_display_registers_from)
2231 (tui_display_registers_from_line): Don't declare.
2232 * tui/tui-windata.c (tui_data_window::display_all_data)
2233 (tui_data_window::refresh_all)
2234 (tui_data_window::do_scroll_vertical): Update.
2235 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2236 from tui_display_registers_from.
2237 (tui_display_reg_element_at_line): Update.
2238 (tui_data_window::display_registers_from_line): Rename from
2239 tui_display_registers_from_line.
2240 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2241 display_registers_from_line>: New methods.
2243 2019-07-17 Tom Tromey <tom@tromey.com>
2245 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2246 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2247 from tui_erase_data_content.
2248 (tui_data_window::display_all_data)
2249 (tui_data_window::refresh_all)
2250 (tui_data_window::do_scroll_vertical): Update.
2251 * tui/tui-regs.c (tui_show_registers): Update.
2252 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2255 2019-07-17 Tom Tromey <tom@tromey.com>
2257 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2260 (tui_data_window::delete_data_content_windows): Rename from
2261 tui_delete_data_content_windows.
2262 (tui_data_window::display_all_data)
2263 (tui_data_window::do_scroll_vertical): Update.
2264 * tui/tui-data.h (struct tui_data_window)
2265 <delete_data_content_windows>: New method.
2267 2019-07-17 Tom Tromey <tom@tromey.com>
2269 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2270 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2272 2019-07-17 Tom Tromey <tom@tromey.com>
2274 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2275 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2276 from tui_display_all_data.
2278 (tui_data_window::do_make_visible_with_new_height): Update.
2279 * tui/tui-regs.c (tui_show_registers): Update.
2280 * tui/tui-layout.c (tui_set_layout): Update.
2281 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2284 2019-07-17 Tom Tromey <tom@tromey.com>
2286 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2287 * tui/tui-windata.c (tui_display_data_from): Remove.
2288 (tui_data_window::refresh_all): Update.
2290 2019-07-17 Tom Tromey <tom@tromey.com>
2292 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2293 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2294 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2295 tui_display_registers_from_line.
2296 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2297 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2298 "force_display" parameter.
2300 2019-07-17 Tom Tromey <tom@tromey.com>
2302 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2304 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2305 Rename from tui_first_reg_element_no_inline.
2306 (tui_display_reg_element_at_line)
2307 (tui_display_registers_from_line): Update.
2308 * tui/tui-data.h (struct tui_data_window)
2309 <first_reg_element_no_inline>: New method.
2311 2019-07-17 Tom Tromey <tom@tromey.com>
2313 * tui/tui-windata.c (tui_display_data_from)
2314 (tui_data_window::do_scroll_vertical): Update.
2315 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2316 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2317 Rename from tui_line_from_reg_element_no.
2318 (tui_display_registers_from_line): Update.
2319 * tui/tui-data.h (struct tui_data_window)
2320 <line_from_reg_element_no>: New method.
2322 2019-07-17 Tom Tromey <tom@tromey.com>
2324 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2325 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2326 tui_last_regs_line_no.
2327 (tui_display_reg_element_at_line)
2328 (tui_display_registers_from_line): Update.
2329 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2332 2019-07-17 Tom Tromey <tom@tromey.com>
2335 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2336 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2337 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2338 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2339 (tui_update_breakpoint_info): Likewise.
2340 * tui/tui-hooks.c (tui_event_create_breakpoint)
2341 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2344 2019-07-17 Tom Tromey <tom@tromey.com>
2346 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2348 2019-07-17 Tom Tromey <tom@tromey.com>
2350 * tui/tui-winsource.c (tui_update_source_window_as_is)
2351 (tui_update_source_windows_with_addr): Update.
2352 * tui/tui-source.h (tui_set_source_content)
2353 (tui_show_symtab_source): Add "win_info" parameter.
2354 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2356 (tui_show_symtab_source): Likewise.
2358 2019-07-17 Tom Tromey <tom@tromey.com>
2360 * tui/tui-wingeneral.c
2361 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2363 2019-07-17 Tom Tromey <tom@tromey.com>
2365 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2366 (struct tui_cmd_window) <can_scroll>: New method.
2367 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2370 2019-07-17 Tom Tromey <tromey@adacore.com>
2372 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2373 do_field_signed>: Rename. Change type of "value".
2374 * ui-out.c (ui_out::field_signed): Rename from field_int.
2375 Change type of "value".
2376 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2378 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2379 do_field_int. Change type of "value".
2380 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2381 do_field_int. Change type of "value".
2382 * tracepoint.c (trace_status_mi, tfind_1)
2383 (print_one_static_tracepoint_marker): Update.
2384 * thread.c (print_thread_info_1, print_selected_thread_frame):
2386 * stack.c (print_frame, print_frame_info): Update.
2387 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2389 * source.c (print_source_lines_base): Update.
2390 * skip.c (info_skip_command): Update.
2391 * record-btrace.c (btrace_ui_out_decode_error)
2392 (btrace_call_history_src_line): Update.
2393 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2395 * progspace.c (print_program_space): Update.
2396 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2397 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2398 do_field_int. Change type of "value".
2399 * mi/mi-out.c (mi_ui_out::do_table_begin)
2400 (mi_ui_out::do_table_header): Update.
2401 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2403 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2404 (mi_cmd_data_list_changed_registers, output_register)
2405 (mi_cmd_data_read_memory, mi_load_progress)
2406 (mi_cmd_trace_frame_collected): Update.
2407 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2409 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2410 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2411 (mi_cmd_var_list_children, varobj_update_one): Update.
2412 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2413 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2414 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2415 * inferior.c (print_inferior): Update.
2416 * gdb_bfd.c (print_one_bfd): Update.
2417 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2419 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2420 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2421 do_field_int. Change type of "value".
2422 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2423 do_field_int. Change type of "value".
2424 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2425 (print_one_breakpoint_location, print_it_catch_fork)
2426 (print_one_catch_fork, print_it_catch_vfork)
2427 (print_one_catch_vfork, print_it_catch_solib)
2428 (print_it_catch_exec, print_it_ranged_breakpoint)
2429 (print_mention_watchpoint, print_mention_masked_watchpoint)
2430 (bkpt_print_it, update_static_tracepoint): Update.
2431 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2432 * break-catch-syscall.c (print_it_catch_syscall): Update.
2433 * ada-tasks.c (print_ada_task_info): Update.
2434 * ada-lang.c (print_it_exception, print_mention_exception):
2437 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2439 PR breakpoints/24541
2440 * gdbarch.c: Regenerate.
2441 * gdbarch.h: Regenerate.
2442 * gdbarch.sh: Adjust return type and parameter types for
2443 'stap_adjust_register'.
2444 (i386_stap_adjust_register): Adjust signature and return new
2446 * stap-probe.c (stap_parse_register_operand): Adjust use of
2447 'gdbarch_stap_adjust_register'.
2449 2019-07-17 Tom Tromey <tromey@adacore.com>
2451 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2453 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2455 (struct s390_process_info): Add initializers.
2456 (s390_add_process): Use new.
2457 (s390_linux_nat_target::low_forget_process): Use delete.
2458 (s390_linux_nat_target::low_new_fork)
2459 (s390_linux_nat_target::stopped_by_watchpoint)
2460 (s390_linux_nat_target::low_prepare_to_resume)
2461 (s390_linux_nat_target::insert_watchpoint)
2462 (s390_linux_nat_target::insert_hw_breakpoint)
2463 (s390_linux_nat_target::remove_watchpoint)
2464 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2466 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2468 * aarch64-fbsd-nat.c: Include regcache.h.
2469 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2471 (aarch64_fbsd_nat_target::fetch_registers)
2472 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2474 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2476 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2478 * fbsd-nat.c: Include gdbarch.h.
2480 2019-07-15 Tom Tromey <tromey@adacore.com>
2482 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2484 2019-07-15 Tom Tromey <tromey@adacore.com>
2486 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2487 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2488 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2489 * cli-out.c (cli_ui_out::do_field_int): New method.
2490 * ui-out.c (ui_out::field_unsigned): New method.
2491 * symfile.c (generic_load): Use field_unsigned.
2492 (print_transfer_performance): Likewise.
2493 * record-btrace.c (ui_out_field_uint): Remove.
2494 (btrace_call_history_insn_range, btrace_call_history): Use
2496 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2498 * ui-out.h (class ui_out) <field_unsigned>: New method.
2499 <do_field_unsigned>: Likewise.
2501 2019-07-15 Tom Tromey <tromey@adacore.com>
2503 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2504 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2505 * target.c (flash_erase_command): Use field_string.
2506 * infrun.c (print_signal_received_reason): Use field_string.
2507 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2508 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2510 * ada-tasks.c (print_ada_task_info): Use field_string.
2512 2019-07-15 Tom Tromey <tromey@adacore.com>
2514 * target.c (flash_erase_command): Use field_core_addr.
2515 * symfile.c (generic_load): Use field_core_addr.
2516 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2517 Use field_core_addr.
2518 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2521 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2523 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2524 value if its desired type is smaller than a CORE_ADDR and signed.
2526 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2528 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2529 of changes to field names, and use new is_reference field to
2530 decide if a property is a reference or not.
2531 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2533 (struct dwarf2_property_baton): Update header comment, rename
2534 'referenced_type' to 'property_type' and update comments.
2535 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2536 default property type, store in property baton, update to take
2537 accound of renamed field.
2538 (read_func_scope): Update call to attr_to_dynamic_prop.
2539 (read_array_type): Likewise.
2540 (dwarf2_per_cu_addr_sized_int_type): New function.
2541 (read_subrange_index_type): Move type finding code to
2542 dwarf2_per_cu_addr_sized_int_type.
2543 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2544 (dwarf2_per_cu_addr_type): New function.
2545 (set_die_type): Update calls to attr_to_dynamic_prop.
2547 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2549 * dwarf2read.c (read_subrange_index_type): New function.
2550 (read_subrange_type): Move code into new function and call it.
2551 * gdbtypes.c (create_range_type): Add some asserts.
2553 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2555 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2556 update return statements.
2557 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2558 declaration, and update comment to match.
2559 * gdbtypes.c (resolve_dynamic_array): Update call to
2560 dwarf2_evaluate_property to match new return type.
2562 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2564 * valarith.c (value_subscripted_rvalue): Change lowerbound
2565 parameter type from int to LONGEST.
2566 * value.h (value_subscripted_rvalue): Likewise in declaration.
2568 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2570 * cli/cli-utils.c (info_print_command_completer): New function.
2571 * cli/cli-utils.h: Add 'completer.h' include, and forward
2572 declaration for 'struct cmd_list_element'.
2573 (info_print_command_completer): Declare.
2574 * stack.c (_initialize_stack): Add completer for 'info locals' and
2576 * symtab.c (_initialize_symtab): Add completer for 'info
2577 variables' and 'info functions'.
2578 * NEWS: Mention completion for additional info commands.
2580 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2582 * cli/cli-utils.c (extract_info_print_args): Delete.
2583 (extract_arg_maybe_quoted): Delete.
2584 (info_print_options_defs): New variable.
2585 (make_info_print_options_def_group): New function.
2586 (extract_info_print_options): Define new function.
2587 * cli/cli-utils.h (extract_info_print_args): Delete.
2588 (struct info_print_options): New structure.
2589 (extract_info_print_options): Declare new function.
2590 * stack.c (info_locals_command): Update to use new
2591 extract_info_print_options, also add a header comment.
2592 (info_args_command): Likewise.
2593 * symtab.c (info_variables_command): Likewise.
2594 (info_functions_command): Likewise.
2596 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2598 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2599 to extract string arguments.
2600 * common/common-utils.c (extract_string_maybe_quoted): New function.
2601 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2603 2019-07-11 Tom Tromey <tromey@adacore.com>
2605 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2606 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2607 * top.h (gdbinit): Don't declare.
2608 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2610 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2611 * top.c (gdb_init): Don't call init_cli_cmds.
2613 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2615 2019-07-11 Tom Tromey <tromey@adacore.com>
2617 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2618 after it has been moved.
2620 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2622 * valops.c (value_must_coerce_to_target): Change return type to
2624 * value.h (value_must_coerce_to_target): Likewise.
2626 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
2628 * breakpoint.c (is_hardware_watchpoint): Remove
2629 forward-declaration.
2630 (is_masked_watchpoint): Change return type to bool.
2631 (is_tracepoint): Likewise.
2632 (is_breakpoint): Likewise.
2633 (is_hardware_watchpoint): Likewise.
2634 (is_watchpoint): Likewise.
2635 (is_no_memory_software_watchpoint): Likewise.
2636 (is_catchpoint): Likewise.
2637 (breakpoint_1): Make FILTER parameter's return type bool.
2638 is_masked_watchpoint): Change return type to bool.
2639 (save_breakpoints): Make FILTER parameter's return type bool.
2640 * breakpoint.h (is_breakpoint): Change return type to bool.
2641 (is_watchpoint): Likewise.
2642 (is_catchpoint): Likewise.
2643 (is_tracepoint): Likewise.
2645 2019-07-10 Tom Tromey <tom@tromey.com>
2647 * defs.h: Don't include gdbarch.h.
2648 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2649 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2650 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2651 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2652 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2653 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2654 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2655 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2656 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2657 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2658 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2659 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2660 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2661 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2662 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2663 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2664 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2665 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2666 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2667 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2668 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2669 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2670 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2671 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2672 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2673 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2674 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2676 2019-07-10 Tom Tromey <tromey@adacore.com>
2678 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2679 * breakpoint.c (init_ada_exception_breakpoint): Register as
2681 (print_one_breakpoint_location, print_one_breakpoint): Use
2682 is_ada_exception_catchpoint.
2683 * ada-lang.c (class ada_catchpoint_location): Pass
2684 bp_loc_software_breakpoint to bp_location constructor.
2685 (is_ada_exception_catchpoint): New function.
2687 2019-07-10 Tom Tromey <tromey@adacore.com>
2689 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2691 (struct arm_exidx_entry): New method operator<.
2692 (struct arm_exidx_data) <section_maps>: Change type.
2693 (arm_exidx_data_free): Remove.
2694 (arm_exidx_data_key): Change type. Move lower.
2695 (arm_exidx_new_objfile): Update.
2696 (arm_compare_exidx_entries): Remove.
2697 (arm_find_exidx_entry, _initialize_arm_tdep)
2699 2019-07-10 Tom Tromey <tromey@adacore.com>
2701 * solib-spu.c (ocl_program_data_key): Change type.
2702 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2705 2019-07-10 Tom Tromey <tromey@adacore.com>
2707 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2708 (struct solib_aix_inferior_data) <library_list>: Change type.
2709 (solib_aix_inferior_data_handle): Change type.
2710 (get_solib_aix_inferior_data): Update.
2711 (solib_aix_free_library_list): Remove.
2712 (library_list_start_library): Update.
2713 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2715 (solib_aix_get_library_list)
2716 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2717 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2719 2019-07-10 Tom Tromey <tromey@adacore.com>
2721 * solib-dsbt.c (struct dsbt_info): Add initializers.
2722 (solib_dsbt_pspace_data): Change type.
2723 (dsbt_pspace_data_cleanup): Remove.
2724 (get_dsbt_info, _initialize_dsbt_solib): Update.
2726 2019-07-10 Tom Tromey <tromey@adacore.com>
2728 * spu-tdep.c (spu_overlay_data): Change type.
2729 (spu_get_overlay_table, spu_overlay_new_objfile)
2730 (_initialize_spu_tdep): Update.
2732 2019-07-10 Tom Tromey <tromey@adacore.com>
2734 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2736 (dbx_objfile_data_key): Change type and declare later.
2737 (DBX_SYMFILE_INFO): Rewrite.
2738 * dbxread.c (dbx_objfile_data_key): Change type.
2739 (dbx_symfile_init): Update.
2740 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2741 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2742 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2744 2019-07-10 Tom Tromey <tromey@adacore.com>
2746 * jit.c (jit_program_space_key): Change type. Move lower.
2747 (get_jit_program_space_data): Update.
2748 (jit_program_space_data_cleanup): Remove.
2749 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2751 (struct jit_program_space_data): Add initializers.
2753 2019-07-10 Tom Tromey <tromey@adacore.com>
2755 * solib-darwin.c (struct darwin_info): Add initializers.
2756 (solib_darwin_pspace_data): Change type.
2757 (darwin_pspace_data_cleanup): Remove.
2758 (get_darwin_info, _initialize_darwin_solib): Update.
2760 2019-07-10 Tom Tromey <tromey@adacore.com>
2762 * remote-sim.c (struct sim_inferior_data): Add initializers,
2763 constructor, and destructor.
2764 (sim_inferior_data_key): Change type. Move lower.
2765 (check_for_duplicate_sim_descriptor): Update.
2766 (get_sim_inferior_data): Use new. Update.
2767 (~sim_inferior_data_cleanup): Rename from
2768 sim_inferior_data_cleanup. Simplify.
2769 (gdbsim_close_inferior, simulator_command)
2770 (sim_command_completer, _initialize_remote_sim): Update.
2771 (next_pid, INITIAL_PID): Move earlier.
2773 2019-07-10 Tom Tromey <tromey@adacore.com>
2775 * python/python-internal.h (create_thread_object): Return
2777 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2778 * python/py-inferior.c (struct threadlist_entry): Add
2780 <thread_obj>: Now a gdbpy_ref.
2781 (thread_to_thread_object): Update.
2782 (add_thread_object): Use new.
2783 (delete_thread_object): Use delete.
2784 (infpy_threads): Update.
2785 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2788 2019-07-10 Tom Tromey <tromey@adacore.com>
2790 * valops.c (value_cast): Specialize error message for Ada.
2792 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2794 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2796 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2798 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2799 bpstat_should_step): Return bool, adjust comments.
2800 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2801 bpstat_should_step): Likewise.
2803 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2805 * features/Makefile: Use feature target descriptions for Arm.
2806 * features/arm/arm-core.c: Generate new file.
2807 * features/arm/arm-fpa.c: Likewise.
2808 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2809 * features/arm/arm-m-profile.c: Likewise.
2810 * features/arm/arm-vfpv2.c: Likewise.
2811 * features/arm/arm-vfpv3.c: Likewise.
2812 * features/arm/xscale-iwmmxt.c: Likewise.
2813 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2815 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2817 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2820 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2822 * features/aarch64-pauth.c: Regenerate.
2824 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2826 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2828 (bpstat_what): Use false instead of 0.
2830 2019-07-09 Pedro Alves <palves@redhat.com>
2832 * break-catch-throw.c (is_exception_catchpoint): New.
2833 * breakpoint.c (print_one_breakpoint_location): New parameter
2834 'raw_loc'. Handle it. Use
2835 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2836 looking at the breakpoint's type.
2837 (print_one_breakpoint): If handling "maint info breakpoints", also
2838 print locations of exception catchpoints.
2839 * breakpoint.h (is_exception_catchpoint): Declare.
2841 2019-07-09 Pedro Alves <palves@redhat.com>
2843 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2845 (allocate_location_exception_catchpoint): New.
2846 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2847 (initialize_throw_catchpoint_ops): Install
2848 allocate_location_exception_catchpoint as allocate_location
2850 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2851 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2853 (breakpoint_address_is_meaningful): Delete.
2854 (bl_address_is_meaningful): New.
2855 (breakpoint_locations_match): Adjust comment.
2856 (bp_location_from_bp_type): New, factored out of...
2857 (bp_location::bp_location(breakpoint *)): ... this.
2858 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2860 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2861 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2862 breakpoint_address_is_meaningful.
2863 (bp_locations_compare): Adjust comment.
2864 (update_global_location_list): Use bl_address_is_meaningful
2865 instead of breakpoint_address_is_meaningful.
2866 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2868 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2869 * python/py-breakpoint.c (bppy_get_location): No longer check
2870 whether location is null.
2872 2019-07-09 Pedro Alves <palves@redhat.com>
2875 * breakpoint.c (print_one_breakpoint_location): Remove
2876 single-location assert.
2878 2019-07-09 Tom Tromey <tom@tromey.com>
2880 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2881 * configure: Rebuild.
2882 * configure.ac: Change common to gdbsupport.
2883 * gdbsupport: Rename from common.
2884 * acinclude.m4: Change common to gdbsupport.
2885 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2886 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2888 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2889 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2890 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2891 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2892 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2893 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2894 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2895 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2896 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2897 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2898 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2899 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2900 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2901 coff-pe-read.c, command.h, compile/compile-c-support.c,
2902 compile/compile-c.h, compile/compile-cplus-symbols.c,
2903 compile/compile-cplus-types.c, compile/compile-cplus.h,
2904 compile/compile-loc2c.c, compile/compile.c, completer.c,
2905 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2906 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2907 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2908 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2909 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2910 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2911 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2912 features/aarch64-core.c, features/aarch64-fpu.c,
2913 features/aarch64-pauth.c, features/aarch64-sve.c,
2914 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2915 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2916 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2917 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2918 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2919 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2920 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2921 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2922 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2923 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2924 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2925 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2926 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2927 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2928 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2929 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2930 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2931 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2932 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2933 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2934 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2935 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2936 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2937 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2938 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2939 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2940 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2941 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2942 minsyms.c, mips-linux-tdep.c, namespace.h,
2943 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2944 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2945 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2946 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2947 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2948 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2949 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2950 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2951 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2952 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2953 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2954 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2955 procfs.c, producer.c, progspace.h, psymtab.h,
2956 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2957 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2958 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2959 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2960 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2961 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2962 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2963 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2964 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2965 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2966 target-memory.c, target.c, target.h, target/waitstatus.c,
2967 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2968 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2969 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2970 unittests/array-view-selftests.c,
2971 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2972 unittests/common-utils-selftests.c,
2973 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2974 unittests/format_pieces-selftests.c,
2975 unittests/function-view-selftests.c,
2976 unittests/lookup_name_info-selftests.c,
2977 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2978 unittests/mkdir-recursive-selftests.c,
2979 unittests/observable-selftests.c,
2980 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2981 unittests/parse-connection-spec-selftests.c,
2982 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2983 unittests/scoped_fd-selftests.c,
2984 unittests/scoped_mmap-selftests.c,
2985 unittests/scoped_restore-selftests.c,
2986 unittests/string_view-selftests.c, unittests/style-selftests.c,
2987 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2988 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2989 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2990 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2991 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2992 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2994 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2996 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2998 (decode_digits_ordinary): Set explicit_line field in sal.
2999 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3000 symtab_and_line that was set on an explicit line number in
3001 assembler code. Do always update the recorded symtab and line if
3002 we do skip the prologue.
3004 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3006 * breakpoint.c (set_breakpoint_location_function): Remove
3007 explicit_loc parameter.
3008 (momentary_breakpoint_from_master): Update call to
3009 set_breakpoint_location_function.
3010 (add_location_to_breakpoint): Likewise.
3012 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3014 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3015 required features based on default bfd type when no specific bfd
3018 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3020 * NEWS: Mention that GDB printf and eval commands can now print
3021 C-style and Ada-style convenience var strings without
3022 calling the inferior.
3023 * printcmd.c (printf_c_string): Locally print GDB internal var
3024 instead of transiting via the inferior.
3025 (printf_wide_c_string): Likewise.
3027 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3029 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3031 2019-07-04 Tom Tromey <tom@tromey.com>
3034 * tui/tui-winsource.c (tui_clear_source_content): Update.
3035 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3036 (tui_update_breakpoint_info): Update.
3037 (tui_set_exec_info_content): Update.
3038 * tui/tui-source.c (tui_set_source_content_nil): Update.
3039 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3041 * tui/tui-data.h (enum tui_bp_flag): New.
3042 (tui_bp_flags): New enum flags type.
3043 (struct tui_source_element) <break_mode>: Change type. Rename
3045 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3046 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3048 * tui/tui-winsource.h: Fix comment.
3050 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3052 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3053 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3054 (store_fpregs_to_thread)
3055 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3056 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3057 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3058 (IWMMXT_REGS_SIZE): Add define.
3059 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3060 (fetch_vfp_regs, store_vfp_regs)
3061 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3062 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3064 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3066 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3068 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3069 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3070 (ARM_INT_REGISTER_SIZE): ...to this.
3071 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3072 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3073 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3074 (arm_linux_collect_gregset, supply_nwfpe_register)
3075 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3077 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3078 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3079 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3080 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3081 (arm_return_in_memory, arm_store_return_value)
3082 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3083 (arm_record_ld_st_multiple): Likewise.
3084 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3085 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3087 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3089 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3090 AARCH64_DISPLACED_MODIFIED_INSNS.
3091 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3092 (aarch64_displaced_step_copy_insn): Likewise.
3093 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3094 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3095 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3096 ARM_DISPLACED_MODIFIED_INSNS.
3097 * arm-tdep.c (arm_gdbarch_init): Likewise.
3098 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3099 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3100 (struct arm_displaced_step_closure): Use
3101 ARM_DISPLACED_MODIFIED_INSNS.
3103 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3105 * features/Makefile: Remove unused xml files.
3106 * features/aarch64.xml: Remove.
3107 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3108 * features/i386/amd64-avx-avx512.xml: Remove.
3109 * features/i386/amd64-avx-linux.xml: Remove.
3110 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3111 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3112 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3113 * features/i386/amd64-avx-mpx.xml: Remove.
3114 * features/i386/amd64-avx.xml: Remove.
3115 * features/i386/amd64-linux.xml: Remove.
3116 * features/i386/amd64-mpx-linux.xml: Remove.
3117 * features/i386/amd64-mpx.xml: Remove.
3118 * features/i386/amd64.xml: Remove.
3119 * features/i386/i386-avx-avx512-linux.xml: Remove.
3120 * features/i386/i386-avx-avx512.xml: Remove.
3121 * features/i386/i386-avx-linux.xml: Remove.
3122 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3123 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3124 * features/i386/i386-avx-mpx-linux.xml: Remove.
3125 * features/i386/i386-avx-mpx.xml: Remove.
3126 * features/i386/i386-avx.xml: Remove.
3127 * features/i386/i386-linux.xml: Remove.
3128 * features/i386/i386-mmx-linux.xml: Remove.
3129 * features/i386/i386-mmx.xml: Remove.
3130 * features/i386/i386-mpx-linux.xml: Remove.
3131 * features/i386/i386-mpx.xml: Remove.
3132 * features/i386/i386.xml: Remove.
3133 * features/i386/x32-avx-avx512-linux.xml: Remove.
3134 * features/i386/x32-avx-linux.xml: Remove.
3135 * features/i386/x32-linux.xml: Remove.
3137 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3139 * regformats/aarch64.dat: Remove.
3140 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3141 * regformats/i386/amd64-avx-linux.dat: Remove.
3142 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3143 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3144 * regformats/i386/amd64-linux.dat: Remove.
3145 * regformats/i386/amd64-mpx-linux.dat: Remove.
3146 * regformats/i386/amd64.dat: Remove.
3147 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3148 * regformats/i386/i386-avx-linux.dat: Remove.
3149 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3150 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3151 * regformats/i386/i386-linux.dat: Remove.
3152 * regformats/i386/i386-mmx-linux.dat: Remove.
3153 * regformats/i386/i386-mpx-linux.dat: Remove.
3154 * regformats/i386/i386.dat: Remove.
3155 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3156 * regformats/i386/x32-avx-linux.dat: Remove.
3157 * regformats/i386/x32-linux.dat: Remove.
3159 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3161 * aarch64-tdep.c: Remove xml self tests.
3162 * amd64-linux-tdep.c: Likewise.
3163 * amd64-tdep.c: Likewise.
3164 * i386-linux-tdep.c: Likewise.
3165 * i386-tdep.c: Likewise.
3167 2019-07-03 Pedro Alves <palves@redhat.com>
3170 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3171 (pipe_cmd_option_defs): New.
3172 (make_pipe_cmd_options_def_group): New.
3173 (pipe_command): Use gdb::option::process_options.
3174 (pipe_command_completer): New function.
3175 (_initialize_cli_cmds): Install completer for "pipe" command.
3177 2019-07-03 Pedro Alves <palves@redhat.com>
3179 * cli/cli-option.c (union option_value) <string>: New field.
3180 (struct option_def_and_value): Add ctor, move ctor, dtor and
3181 use DISABLE_COPY_AND_ASSIGN.
3182 (option_def_and_value::clear_value): New.
3183 (parse_option, save_option_value_in_ctx, get_val_type_str)
3184 (add_setshow_cmds_for_options): Handle var_string.
3185 * cli-option.h (union option_def::var_address) <string>: New
3187 (struct string_option_def): New.
3188 * maint-test-options.c (struct test_options_opts): Add default
3189 ctor and use DISABLE_COPY_AND_ASSIGN.
3190 <string_opt>: New field.
3191 (test_options_opts::~test_options_opts): New.
3192 (test_options_opts::dump): Also dump "-string".
3193 (test_options_option_defs): Install "string.
3195 2019-07-03 Pedro Alves <palves@redhat.com>
3197 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3198 option_value with a null enumeration.
3199 (complete_options): Save the option values in the context.
3200 (save_option_value_in_ctx): New, factored out from ...
3201 (process_options): ... here.
3202 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3204 * maint-test-options.c (test_options_opts::dump): New, factored
3206 (maintenance_test_options_command_mode): ... here.
3207 (maintenance_test_options_command_completion_result): Delete.
3208 (maintenance_test_options_command_completion_text): Update
3210 (maintenance_show_test_options_completion_result): Change
3211 prototype. Just print
3212 maintenance_test_options_command_completion_text.
3213 (save_completion_result): New.
3214 (maintenance_test_options_completer_mode): Pass options context to
3215 complete_options, and then save a dump.
3216 (_initialize_maint_test_options): Use add_cmd to install "maint
3217 show test-options-completion-result".
3219 2019-07-03 Pedro Alves <palves@redhat.com>
3221 * NEWS (New commands): Mention "with" and "maint with".
3222 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3223 (with_command, with_command_completer): New.
3224 (pipe_command): Adjust to new repeat_previous
3226 (_initialize_cli_cmds): Install the "with" command and its "w"
3228 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3230 * cli/cli-setshow.c (parse_cli_var_uinteger)
3231 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3232 argument strings for all var_types.
3233 (get_setshow_command_value_string): New, factored out from ...
3234 (do_show_command): ... this.
3235 * cli/cli-setshow.h: Include <string>.
3236 (get_setshow_command_value_string): Declare.
3237 * command.h (repeat_previous): Now returns const char *. Adjust
3239 * maint.c: Include "cli/cli-cmds.h".
3240 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3241 (_initialize_maint_cmds): Register the "maintenance with" command.
3242 * top.c (repeat_previous): Move bits from pipe_command here:
3243 Return the saved command line, if any; error out if there's no
3244 command to relaunch.
3246 2019-07-03 Pedro Alves <palves@redhat.com>
3248 * NEWS (New commands): Mention "maint set/show test-settings"
3249 instead of "maint test-settings".
3250 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3251 (maintenance_test_settings_set_list): Rename to ...
3252 (maintenance_set_test_settings_list): ... this.
3253 (maintenance_test_settings_show_list): Rename to ...
3254 (maintenance_show_test_settings_list): ... this.
3255 (maintenance_test_settings_cmd): Delete.
3256 (maintenance_test_settings_set_cmd): ...
3257 (maintenance_set_test_settings_cmd): ... this.
3258 (maintenance_test_settings_show_cmd): ...
3259 (maintenance_show_test_settings_cmd): ... this.
3260 (maintenance_test_settings_show_value_cmd):
3261 (maintenance_show_test_settings_value_cmd): ... this.
3262 (_initialize_maint_test_settings): No longer install the "maint
3263 test-settings" prefix command. Rename "maint test-settings set"
3264 to "maint set test-settings", and "maint test-settings show" to
3265 "maint show test-settings". Adjust all subcommands.
3267 2019-07-03 Pedro Alves <palves@redhat.com>
3269 * maint-test-settings.c: Fix file's intro comment. Replace all
3270 references to "test-options" with references to "test-settings",
3273 2019-07-03 Pedro Alves <palves@redhat.com>
3275 * maint-test-settings.c (maintenance_test_settings_xxx)
3276 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3278 (maintenance_test_settings_enums): Use them.
3279 (maintenance_test_settings_enum): Default to
3280 maintenance_test_settings_xxx.
3281 (_initialize_maint_test_settings): Initialize
3282 MAINTENANCE_TEST_SETTINGS_FILENAME.
3284 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3286 * breakpoint.h (remove_breakpoints_inf): Change return type to
3287 void, move function documentation here.
3288 * breakpoint.c (remove_breakpoints_inf): Change return type to
3289 void, move function documentation to header.
3291 2019-07-02 Pedro Alves <palves@redhat.com>
3293 * NEWS (Completion improvements): Mention "info threads".
3294 * thread.c (struct info_threads_opts, info_threads_option_defs)
3295 (make_info_threads_options_def_group): New.
3296 (info_threads_command): Use gdb::option::process_options.
3297 (info_threads_command_completer): New.
3298 (_initialize_thread): Use gdb::option::build_help to build the
3299 help text for "info threads".
3301 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3303 * defs.h (generic_load): Move from here...
3304 * symfile.h (generic_load): ... to here. Rename name parameter
3306 * symfile.c (generic_load): Add comment.
3308 2019-07-01 Tom Tromey <tromey@adacore.com>
3311 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3312 declaration of without_params. Fix formatting.
3314 2019-07-01 Tom Tromey <tromey@adacore.com>
3316 * ada-exp.y (find_primitive_type): Update.
3317 * ada-lang.h (ada_lookup_symbol): Update.
3318 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3320 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3322 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3324 PR breakpoints/24541
3325 * gdbarch.c: Regenerate.
3326 * gdbarch.h: Regenerate.
3327 * gdbarch.sh: Add 'stap_adjust_register'.
3328 * i386-tdep.c: Include '<unordered_set>'.
3329 (i386_stap_adjust_register): New function.
3330 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3331 * stap-probe.c (stap_parse_register_operand): Call
3332 'gdbarch_stap_adjust_register'.
3334 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3337 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3338 * python/python.c (do_start_initialization): Use 'xmalloc'
3339 instead of 'PyMem_Malloc'.
3341 2019-06-28 Tom Tromey <tromey@adacore.com>
3343 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3346 2019-06-27 Tom Tromey <tromey@adacore.com>
3348 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3350 (arm_find_mapping_symbol, arm_record_special_symbol)
3351 (_initialize_arm_tdep): Update.
3352 (arm_objfile_data_free): Remove.
3354 2019-06-27 Tom Tromey <tromey@adacore.com>
3356 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3357 to cp_print_static_field.
3359 2019-06-26 Tom Tromey <tromey@adacore.com>
3361 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3362 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3365 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3367 * features/aarch64-core.c (create_feature_aarch64_core):
3369 * features/aarch64-core.xml: Add cpsr flags.
3371 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3373 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3374 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3376 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3378 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3380 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3382 (arm_record_special_symbol): Don't insert new symbol in sorted
3383 position, push it at the end.
3385 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3387 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3388 (arm_mapping_symbol_s): Remove.
3389 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3390 (arm_mapping_symbol_vec): New typedef.
3391 (struct arm_per_objfile): Add constructor.
3392 <section_maps>: Change type to
3393 std::unique_ptr<arm_mapping_symbol_vec[]>.
3394 (arm_compare_mapping_symbols): Remove.
3395 (arm_find_mapping_symbol): Adjust to section_maps type change.
3396 (arm_objfile_data_free): Call delete on arm_per_objfile.
3397 (arm_record_special_symbol): Adjust to section_maps type change.
3398 Allocate arm_per_objfile with new.
3400 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3402 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3403 with the command prefix.
3405 2019-06-25 Tom Tromey <tom@tromey.com>
3407 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3408 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3410 2019-06-25 Tom Tromey <tom@tromey.com>
3412 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3414 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3417 2019-06-25 Tom Tromey <tom@tromey.com>
3419 * tui/tui-winsource.c
3420 (tui_source_window_base::set_is_exec_point_at): Add check against
3423 2019-06-25 Tom Tromey <tom@tromey.com>
3425 * tui/tui-source.c (tui_set_source_content): Don't check before
3427 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3429 2019-06-25 Tom Tromey <tom@tromey.com>
3431 * tui/tui-winsource.h (tui_update_source_window_as_is)
3432 (tui_alloc_source_buffer, tui_line_is_displayed)
3433 (tui_addr_is_displayed): Change type of win_info.
3434 * tui/tui-winsource.c (tui_update_source_window_as_is)
3435 (tui_clear_source_content, tui_show_source_line)
3436 (tui_show_source_content, tui_source_window_base::refill)
3437 (tui_source_window_base::set_is_exec_point_at)
3438 (tui_source_window_base::set_is_exec_point_at)
3439 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3440 (tui_alloc_source_buffer, tui_line_is_displayed)
3441 (tui_addr_is_displayed): Change type of win_info. Update.
3442 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3443 (tui_source_window_base::do_make_visible_with_new_height):
3445 * tui/tui-source.c (tui_set_source_content)
3446 (tui_set_source_content_nil)
3447 (tui_source_window::do_scroll_vertical): Update.
3448 * tui/tui-layout.c (show_layout): Update.
3449 * tui/tui-disasm.c (tui_set_disassem_content)
3450 (tui_disasm_window::do_scroll_vertical): Update.
3451 * tui/tui-data.h (tui_win_content): Remove.
3452 (struct tui_gen_win_info) <content, content_size>: Remove.
3453 (struct tui_source_element): Add initializers and destructor.
3454 (union tui_which_element, struct tui_win_element): Remove.
3455 (struct tui_source_window_base) <content>: New field.
3456 (struct tui_data_window): Remove destructor.
3457 (tui_alloc_content, tui_free_win_content)
3458 (tui_free_all_source_wins_content): Don't declare.
3459 * tui/tui-data.c (tui_initialize_static_data): Update.
3460 (init_content_element, tui_alloc_content): Remove.
3461 (~tui_gen_win_info): Update.
3462 (~tui_data_window, tui_free_all_source_wins_content)
3463 (tui_free_win_content, free_content, free_content_elements):
3466 2019-06-25 Tom Tromey <tom@tromey.com>
3468 * tui/tui-winsource.h (tui_clear_source_content)
3469 (tui_erase_source_content, tui_show_source_content): Change type
3471 * tui/tui-winsource.c (tui_clear_source_content)
3472 (tui_erase_source_content, tui_show_source_content): Change type
3474 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3475 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3477 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3479 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3481 2019-06-25 Tom Tromey <tom@tromey.com>
3483 * tui/tui-winsource.c (tui_clear_source_content)
3484 (tui_source_window_base::set_is_exec_point_at): Update.
3485 * tui/tui-source.c (tui_set_source_content_nil): Update.
3486 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3488 * tui/tui-data.c (init_content_element): Update.
3490 2019-06-25 Tom Tromey <tom@tromey.com>
3492 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3493 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3494 * tui/tui-layout.c (init_and_make_win): Update.
3495 * tui/tui.h (enum tui_win_type): Update.
3496 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3497 tui_win_is_auxillary.
3498 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3499 tui_win_is_auxillary.
3501 2019-06-25 Tom Tromey <tom@tromey.com>
3503 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3504 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3505 (tui_delete_data_content_windows, tui_display_all_data)
3506 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3508 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3509 * tui/tui-regs.c (tui_last_regs_line_no)
3510 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3511 (tui_show_registers): Update.
3512 (tui_show_register_group): Return void. Update.
3513 (tui_display_registers_from, tui_display_reg_element_at_line)
3514 (tui_display_registers_from_line, tui_check_register_values):
3516 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3518 (struct tui_data_window) <regs_content>: Now a std::vector.
3519 <regs_content_count>: Remove.
3520 (tui_add_content_elements, tui_free_data_content): Don't declare.
3521 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3522 (init_content_element): Remove DATA_WIN case. Add assert.
3523 (tui_add_content_elements): Remove.
3524 (tui_data_window): Update.
3525 (tui_free_data_content): Remove.
3526 (free_content_elements): Remove DATA_WIN case.
3528 2019-06-25 Tom Tromey <tom@tromey.com>
3530 * tui/tui-data.c (tui_data_item_window): Update.
3531 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3532 * tui/tui-windata.c (tui_display_all_data)
3533 (tui_display_data_from_line): Update.
3534 (tui_check_data_values): Remove.
3535 * tui/tui-regs.c (tui_show_register_group)
3536 (tui_display_reg_element_at_line): Update.
3537 * tui/tui-hooks.c (tui_register_changed)
3538 (tui_refresh_frame_and_register_information): Call
3539 tui_check_register_values.
3540 * tui/tui-data.h (struct tui_data_window) <data_content,
3541 data_content_count, data_type>: Remove.
3542 (enum tui_data_type): Remove.
3544 * tui/tui-data.c (tui_data_window::clear_detail)
3545 (~tui_data_window): Update.
3547 2019-06-25 Tom Tromey <tom@tromey.com>
3549 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3551 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3552 Rename from tui_first_data_item_displayed. Update.
3553 (tui_data_window::refresh_all)
3554 (tui_data_window::do_scroll_vertical): Update.
3555 * tui/tui-data.h (struct tui_data_window)
3556 <first_data_item_displayed>: Declare new method.
3558 2019-06-25 Tom Tromey <tom@tromey.com>
3560 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3561 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3563 (tui_initialize_static_data): ...here.
3565 2019-06-25 Tom Tromey <tom@tromey.com>
3567 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3568 (tui_display_registers_from, tui_check_register_values): Update.
3569 (tui_display_register): Remove win_info parameter; update.
3570 (tui_get_register): Change type of parameters.
3571 * tui/tui-data.h (struct tui_data_element): Remove.
3572 (union tui_which_element) <data>: Remove.
3573 <data_window>: Change type.
3574 (struct tui_data_item_window): New.
3575 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3577 (~tui_data_item_window): New destructor.
3578 (free_content_elements): Remove DATA_ITEM_WIN case.
3580 2019-06-25 Tom Tromey <tom@tromey.com>
3582 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3585 2019-06-25 Tom Tromey <tom@tromey.com>
3587 * tui/tui-data.h (struct tui_command_element): Remove.
3588 (union tui_which_element) <command>: Remove.
3589 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3591 (free_content_elements): Remove CMD_WIN case.
3593 2019-06-25 Tom Tromey <tom@tromey.com>
3595 * tui/tui-layout.c (tui_set_layout): Update.
3596 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3597 * tui/tui-data.c (layout_def): Update.
3599 2019-06-25 Tom Tromey <tom@tromey.com>
3601 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3602 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3603 (tui_source_window_base::set_new_height): Update.
3604 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3606 (tui_set_locator_fullname, tui_set_locator_info)
3607 (tui_show_frame_info): Update.
3608 * tui/tui-source.c (tui_set_source_content)
3609 (tui_source_is_displayed): Update.
3610 * tui/tui-layout.c (show_source_disasm_command, show_data)
3611 (show_source_or_disasm_and_command): Update.
3612 * tui/tui-disasm.c (tui_set_disassem_content)
3613 (tui_get_begin_asm_address): Update.
3614 * tui/tui-data.h (struct tui_locator_element): Remove.
3615 (union tui_which_element) <locator>: Remove.
3616 (struct tui_locator_window): New.
3617 (tui_locator_win_info_ptr): Change return type.
3618 * tui/tui-data.c (_locator): Change type.
3619 (tui_locator_win_info_ptr): Change return type.
3620 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3621 (tui_alloc_content): Add assert.
3623 2019-06-25 Tom Tromey <tom@tromey.com>
3625 * tui/tui-winsource.c
3626 (tui_exec_info_window::maybe_allocate_content): New method.
3627 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3628 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3629 (make_source_or_disasm_window): Add cast.
3630 * tui/tui-data.h (union tui_which_element) <simple_string>:
3632 (struct tui_source_info): New.
3633 (struct tui_source_window_base) <execution_info>: Change type.
3634 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3635 case, and add assert.
3636 (tui_alloc_content): Add assert.
3638 2019-06-25 Tom Tromey <tom@tromey.com>
3640 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3641 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3642 * tui/tui-data.c (tui_alloc_win_info): Remove.
3644 2019-06-25 Tom Tromey <tom@tromey.com>
3646 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3647 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3650 2019-06-25 Tom Tromey <tom@tromey.com>
3652 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3653 make_visible_with_new_height method.
3654 (tui_win_info::make_visible_with_new_height): New method.
3655 (tui_source_window_base::do_make_visible_with_new_height)
3656 (tui_data_window::do_make_visible_with_new_height)
3657 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3658 (make_visible_with_new_height): Remove.
3659 (tui_resize_all, tui_adjust_win_heights): Use
3660 make_visible_with_new_height method.
3661 * tui/tui-data.h (struct tui_win_info)
3662 <do_make_visible_with_new_height, make_visible_with_new_height>:
3664 (struct tui_source_window_base, struct tui_data_window)
3665 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3668 2019-06-25 Tom Tromey <tom@tromey.com>
3670 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3672 (update_tab_width): Call update_tab_width method.
3673 * tui/tui-data.h (struct tui_win_info)
3674 (struct tui_source_window_base) <update_tab_width>: New methods.
3676 2019-06-25 Tom Tromey <tom@tromey.com>
3678 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3680 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3682 (tui_gen_win_info::make_visible): Update.
3683 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3685 * tui/tui-data.h (enum tui_box): New enum.
3686 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3688 2019-06-25 Tom Tromey <tom@tromey.com>
3690 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3691 init_and_make_win for EXEC_INFO_WIN.
3692 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3694 (struct tui_win_info) <~tui_win_info>: Inline.
3695 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3697 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3698 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3700 (tui_initialize_static_data): Update.
3701 (~tui_gen_win_info): Handle more cleanup here.
3702 (~tui_source_window_base): Delete "execution_info".
3703 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3705 2019-06-25 Tom Tromey <tom@tromey.com>
3707 * tui/tui-layout.c (make_command_window): Don't set
3709 (show_source_disasm_command): Call the reset method.
3710 (show_data): Don't set can_highlight. Call the reset method.
3711 (tui_gen_win_info::reset): Rename from init_gen_win_info
3712 (init_and_make_win): Simplify. Return tui_gen_win_info.
3713 (show_source_or_disasm_and_command): Call the reset method.
3714 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3715 (struct tui_cmd_window): Set can_highlight.
3717 2019-06-25 Tom Tromey <tom@tromey.com>
3719 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3721 (tui_make_visible, tui_make_invisible): Rewrite.
3722 (tui_win_info::make_visible): Remove.
3723 (tui_source_window_base::make_visible): Update.
3724 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3725 method. Moved from...
3726 (struct tui_win_info) <make_visible>: ...here.
3728 2019-06-25 Tom Tromey <tom@tromey.com>
3730 * tui/tui-winsource.c
3731 (tui_source_window_base::do_scroll_horizontal): Remove direction
3733 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3734 direction parameter.
3735 * tui/tui-win.c (tui_win_info::forward_scroll)
3736 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3737 (tui_win_info::right_scroll): Update.
3738 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3739 direction parameter.
3740 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3741 direction parameter.
3742 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3743 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3744 Remove direction parameter.
3745 (struct tui_source_window_base, struct tui_source_window)
3746 (struct tui_disasm_window, struct tui_data_window)
3747 (struct tui_cmd_window): Update.
3749 2019-06-25 Tom Tromey <tom@tromey.com>
3751 * tui/tui-winsource.h (tui_set_exec_info_content)
3752 (tui_show_exec_info_content, tui_erase_exec_info_content)
3753 (tui_clear_exec_info_content, tui_update_exec_info): Change
3754 argument to tui_source_window_base.
3755 * tui/tui-winsource.c (tui_set_exec_info_content)
3756 (tui_show_exec_info_content, tui_erase_exec_info_content)
3757 (tui_clear_exec_info_content, tui_update_exec_info): Change
3758 argument to tui_source_window_base.
3760 2019-06-25 Tom Tromey <tom@tromey.com>
3762 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3763 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3765 2019-06-25 Tom Tromey <tom@tromey.com>
3767 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3770 2019-06-25 Tom Tromey <tom@tromey.com>
3772 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3774 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3776 * tui/tui-source.c (tui_set_source_content): Update.
3777 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3779 2019-06-25 Tom Tromey <tom@tromey.com>
3781 * tui/tui-win.c (window_name_completer, tui_set_focus)
3782 (tui_all_windows_info): Use name method.
3783 * tui/tui-data.h (struct tui_gen_win_info)
3784 (struct tui_source_window, struct tui_disasm_window)
3785 (struct tui_data_window, struct tui_cmd_window) <name>: New
3787 (tui_win_name): Don't declare.
3788 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3789 (tui_win_name): Remove.
3791 2019-06-25 Tom Tromey <tom@tromey.com>
3793 * tui/tui-winsource.h (tui_update_source_window)
3794 (tui_update_source_window_as_is): Change parameter type.
3795 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3796 to be a tui_source_window_base.
3797 (tui_update_source_window_as_is): Likewise.
3798 * tui/tui-win.c (make_visible_with_new_height): Update.
3800 2019-06-25 Tom Tromey <tom@tromey.com>
3802 * tui/tui-winsource.c (tui_erase_source_content)
3803 (tui_show_source_content, tui_show_exec_info_content)
3804 (tui_erase_exec_info_content): Use refresh_window method.
3805 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3806 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3807 from tui_refresh_win.
3808 (tui_data_window::refresh_window): New method.
3809 (tui_win_info::refresh, tui_source_window_base::refresh)
3810 (tui_refresh_all): Use refresh_window method.
3811 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3813 * tui/tui-regs.c (tui_display_register): Call refresh_window
3815 * tui/tui-layout.c (show_source_disasm_command)
3816 (show_source_or_disasm_and_command): Call refresh_window method.
3817 * tui/tui-data.h (struct tui_gen_win_info)
3818 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3821 2019-06-25 Tom Tromey <tom@tromey.com>
3823 * tui/tui.c (tui_rl_other_window, tui_enable)
3824 (tui_is_window_visible, tui_get_command_dimension): Update.
3825 * tui/tui-winsource.c (tui_update_source_window_as_is)
3826 (tui_clear_source_content, tui_erase_source_content)
3827 (tui_show_source_line, tui_source_window_base::refill)
3828 (tui_source_window_base::do_scroll_horizontal)
3829 (tui_source_window_base::set_is_exec_point_at)
3830 (tui_update_breakpoint_info, tui_set_exec_info_content)
3831 (tui_alloc_source_buffer, tui_line_is_displayed)
3832 (tui_addr_is_displayed): Update.
3833 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3834 (tui_check_and_display_highlight_if_needed)
3835 (tui_win_info::make_visible, tui_win_info::refresh)
3836 (tui_refresh_all): Update.
3837 * tui/tui-windata.c (tui_first_data_item_displayed)
3838 (tui_delete_data_content_windows, tui_erase_data_content)
3839 (tui_display_all_data, tui_data_window::refresh_all)
3840 (tui_check_data_values): Update.
3841 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3842 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3843 (tui_win_info::backward_scroll, tui_refresh_all_win)
3844 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3845 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3846 (tui_source_window_base::set_new_height)
3847 (tui_data_window::set_new_height)
3848 (make_invisible_and_set_new_height)
3849 (make_visible_with_new_height, new_height_ok)
3850 (parse_scrolling_args): Update.
3851 * tui/tui-stack.c (tui_show_frame_info): Update.
3852 * tui/tui-source.c (tui_set_source_content)
3853 (tui_set_source_content_nil, tui_source_is_displayed)
3854 (tui_source_window::do_scroll_vertical): Update.
3855 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3856 (tui_display_registers_from, tui_display_reg_element_at_line)
3857 (tui_check_register_values, tui_reg_command): Update.
3858 * tui/tui-layout.c (tui_default_win_height)
3859 (show_source_disasm_command, show_data, init_and_make_win)
3860 (show_source_or_disasm_and_command): Update.
3861 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3862 (tui_redisplay_readline, tui_mld_flush)
3863 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3865 * tui/tui-disasm.c (tui_set_disassem_content)
3866 (tui_disasm_window::do_scroll_vertical): Update.
3867 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3869 (struct tui_win_info): Derive from tui_gen_win_info.
3870 <~tui_win_info>: Mark as override.
3871 <generic>: Remove member.
3872 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3873 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3874 (~tui_data_window, ~tui_win_info)
3875 (tui_free_all_source_wins_content): Update.
3876 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3878 2019-06-25 Tom Tromey <tom@tromey.com>
3880 * tui/tui-layout.c (init_and_make_win): Use new.
3881 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3882 destructor, initializers.
3883 (tui_alloc_generic_win_info): Don't declare.
3884 * tui/tui-data.c (_locator): Add argument to constructor.
3885 (source_win, disasm_win): New globals.
3886 (exec_info): Remove.
3887 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3889 (tui_alloc_generic_win_info): Remove.
3890 (init_content_element): Use new.
3891 (tui_win_info::tui_win_info): Update.
3892 (free_content_elements) <case DATA_WIN>: Use delete.
3894 2019-06-25 Tom Tromey <tom@tromey.com>
3896 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3897 * tui/tui-windata.c (tui_first_data_item_displayed)
3898 (tui_delete_data_content_windows): Update.
3899 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3900 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3901 (tui_display_registers_from, tui_check_register_values): Update.
3902 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3904 * tui/tui-data.c (init_content_element): Update. Allocate the new
3906 (tui_free_data_content): Update.
3907 (free_content_elements) <case DATA_WIN>: Free the window.
3909 2019-06-25 Tom Tromey <tom@tromey.com>
3911 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3913 * tui/tui-layout.c (make_command_window)
3914 (show_source_disasm_command, show_data, init_and_make_win)
3915 (show_source_or_disasm_and_command): Update.
3916 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3918 <can_highight, is_highlighted>: Now bool.
3919 (tui_set_win_highlight): Don't declare.
3920 * tui/tui-data.c (tui_set_win_highlight): Remove.
3922 2019-06-25 Tom Tromey <tom@tromey.com>
3924 * tui/tui-wingeneral.c (make_visible): Remove check of window
3927 2019-06-25 Tom Tromey <tom@tromey.com>
3929 * tui/tui-win.c (tui_win_info::max_height)
3930 (tui_cmd_window::max_height): New methods.
3931 (new_height_ok): Call max_height.
3932 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3933 <max_height>: New method.
3935 2019-06-25 Tom Tromey <tom@tromey.com>
3937 * tui/tui-win.c (tui_source_window_base::set_new_height)
3938 (tui_data_window::set_new_height): New methods.
3939 (make_invisible_and_set_new_height): Call set_new_height method.
3940 * tui/tui-data.h (struct tui_win_info)
3941 (struct tui_source_window_base, struct tui_data_window)
3942 <set_new_height>: New method.
3944 2019-06-25 Tom Tromey <tom@tromey.com>
3946 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3947 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3948 tui_refresh_data_win.
3949 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3951 (tui_refresh_all_win): Call the refresh_all method.
3952 (tui_set_focus): Likewise.
3953 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3954 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3957 2019-06-25 Tom Tromey <tom@tromey.com>
3959 * tui/tui-winsource.h (tui_refill_source_window)
3960 (tui_set_is_exec_point_at): Don't declare.
3961 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3962 (tui_source_window_base::refill): Rename from
3963 tui_refill_source_window.
3964 (tui_source_window_base::do_scroll_horizontal): Update.
3965 (tui_source_window_base::set_is_exec_point_at): Rename from
3966 tui_set_is_exec_point_at.
3967 (tui_update_all_breakpoint_info): Update.
3968 * tui/tui-stack.c (tui_show_frame_info): Update.
3969 * tui/tui-layout.c (show_data): Add cast.
3970 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3971 * tui/tui-data.h (struct tui_source_window_base) <refill,
3972 set_is_exec_point_at>: New methods.
3973 (tui_source_windows, tui_add_to_source_windows): Update types.
3974 (tui_add_to_source_windows): Remove redundant declaration.
3975 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3976 (tui_source_windows): Change return type.
3977 (tui_clear_source_windows_detail): Update.
3978 (tui_add_to_source_windows): Change type of parameter.
3979 (tui_free_all_source_wins_content): Update.
3981 2019-06-25 Tom Tromey <tom@tromey.com>
3983 * tui/tui-wingeneral.c (tui_win_info::refresh)
3984 (tui_source_window_base::refresh): New methods.
3985 (tui_refresh_all): Call the refresh method.
3986 * tui/tui-data.h (struct tui_win_info)
3987 (struct tui_source_window_base) <refresh>: New method.
3989 2019-06-25 Tom Tromey <tom@tromey.com>
3991 * tui/tui.h (tui_is_window_visible): Return bool.
3992 * tui/tui.c (tui_is_window_visible): Return bool.
3993 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3994 (tui_make_visible, tui_make_invisible)
3995 (tui_win_info::make_visible)
3996 (tui_source_window_base::make_visible, make_all_visible)
3997 (tui_make_all_visible, tui_make_all_invisible): Update.
3998 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3999 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4001 (struct tui_win_info, struct tui_source_window_base)
4002 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4003 * tui/tui-data.c (tui_init_generic_part): Update.
4005 2019-06-25 Tom Tromey <tom@tromey.com>
4007 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4008 (tui_source_window_base::make_visible): New methods.
4009 (make_all_visible): Make method call.
4010 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4011 (struct tui_source_window_base, struct tui_cmd_window): Override
4013 (tui_win_is_source_type): Don't declare.
4014 * tui/tui-data.c (tui_win_is_source_type): Remove.
4016 2019-06-25 Tom Tromey <tom@tromey.com>
4018 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4021 2019-06-25 Tom Tromey <tom@tromey.com>
4023 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4024 Inline constructor. Add initializers for members.
4025 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4026 constructors; now inline in class.
4028 2019-06-25 Tom Tromey <tom@tromey.com>
4030 * tui/tui-regs.c (tui_show_registers): Update.
4031 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4033 * tui/tui-data.c (tui_data_window::clear_detail)
4034 (tui_data_window): Update.
4036 2019-06-25 Tom Tromey <tom@tromey.com>
4038 * tui/tui-windata.c (tui_display_all_data)
4039 (tui_display_data_from_line, tui_display_data_from)
4040 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4042 * tui/tui-regs.c (tui_last_regs_line_no)
4043 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4044 (tui_show_registers, tui_show_register_group)
4045 (tui_display_registers_from, tui_display_reg_element_at_line)
4046 (tui_display_registers_from_line, tui_check_register_values)
4047 (tui_reg_next, tui_reg_prev): Update.
4048 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4049 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4051 (struct tui_win_info) <detail>: Remove. Add new fields from
4053 (TUI_DATA_WIN): Add cast.
4054 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4055 (~tui_data_window): Simplify.
4057 2019-06-25 Tom Tromey <tom@tromey.com>
4059 * tui/tui-layout.c (show_source_disasm_command)
4060 (show_source_or_disasm_and_command): Update.
4061 * tui/tui-io.c (update_cmdwin_start_line)
4062 (tui_redisplay_readline): Update.
4063 * tui/tui-data.h (struct tui_command_info): Remove.
4064 (struct tui_win_info) <detail>: Remove command_info member.
4065 (struct tui_data_window) <start_line>: New member, from
4067 (TUI_CMD_WIN): Add casts.
4069 2019-06-25 Tom Tromey <tom@tromey.com>
4071 * tui/tui-winsource.c (tui_update_source_window)
4072 (tui_refill_source_window)
4073 (tui_source_window_base::do_scroll_horizontal)
4074 (tui_update_breakpoint_info, tui_set_exec_info_content)
4075 (tui_show_exec_info_content, tui_erase_exec_info_content)
4076 (tui_clear_exec_info_content): Update.
4077 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4079 * tui/tui-win.c (make_invisible_and_set_new_height)
4080 (make_visible_with_new_height): Update.
4081 * tui/tui-source.c (tui_set_source_content)
4082 (tui_show_symtab_source): Update.
4083 * tui/tui-layout.c (extract_display_start_addr)
4084 (show_source_disasm_command, show_data)
4085 (make_source_or_disasm_window)
4086 (show_source_or_disasm_and_command): Update.
4087 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4088 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4090 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4091 to tui_source_window_base.
4092 (struct tui_win_info) <detail>: Remove source_info member.
4093 (struct tui_source_window_base) <has_locator>: Inline.
4094 Move contents from tui_source_info; rename has_locator member to
4096 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4097 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4099 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4101 (tui_free_all_source_wins_content): Cast to
4102 tui_source_window_base.
4104 2019-06-25 Tom Tromey <tom@tromey.com>
4106 * tui/tui-win.c (make_invisible_and_set_new_height)
4107 (make_visible_with_new_height): Call has_locator method.
4108 * tui/tui-layout.c (show_source_disasm_command, show_data)
4109 (show_source_or_disasm_and_command): Update for bool change.
4110 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4111 (tui_win_info) <has_locator>: New method.
4112 (struct tui_source_window_base) <has_locator>: New method.
4113 (tui_win_has_locator): Don't declare.
4114 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4115 from tui_win_has_locator.
4116 (tui_source_window_base): Use false, not FALSE.
4118 2019-06-25 Tom Tromey <tom@tromey.com>
4120 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4121 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4122 clear_detail method directly.
4123 (tui_clear_win_detail): Remove.
4125 2019-06-25 Tom Tromey <tom@tromey.com>
4127 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4128 "this", not TUI_DISASM_WIN.
4130 2019-06-25 Tom Tromey <tom@tromey.com>
4132 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4134 * tui/tui-winsource.c
4135 (tui_source_window_base::do_scroll_horizontal): Rename from
4136 tui_horizontal_source_scroll.
4137 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4138 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4139 from tui_vertical_data_scroll.
4140 * tui/tui-win.h (tui_scroll): Don't declare.
4141 * tui/tui-win.c (tui_win_info::forward_scroll)
4142 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4143 (tui_win_info::right_scroll): Rename and update.
4144 (tui_scroll_forward_command, tui_scroll_backward_command)
4145 (tui_scroll_left_command, tui_scroll_right_command): Update.
4146 (tui_scroll): Remove.
4147 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4148 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4149 from tui_vertical_source_scroll.
4150 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4151 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4152 from tui_vertical_disassem_scroll.
4153 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4154 do_scroll_horizontal>: New methods.
4155 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4157 (struct tui_source_window_base): Add do_scroll_horizontal.
4158 (struct tui_source_window, struct tui_disasm_window): Add
4160 (struct tui_data_window, struct tui_cmd_window): Add
4161 do_scroll_horizontal and do_scroll_vertical.
4162 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4164 2019-06-25 Tom Tromey <tom@tromey.com>
4166 * tui/tui-data.h (struct tui_source_window_base): New struct.
4167 (struct tui_source_window): Derive from tui_source_window_base.
4168 (struct tui_disasm_window): New struct.
4169 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4170 from tui_source_window::clear_detail.
4171 (tui_source_window_base): Rename from tui_source_window.
4172 (~tui_source_window_base): Rename from ~tui_source_window.
4173 (tui_alloc_win_info): Create a tui_disasm_window.
4175 2019-06-25 Tom Tromey <tom@tromey.com>
4177 * tui/tui-data.h (struct tui_source_window)
4178 (struct tui_data_window): Declare destructors.
4179 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4181 (tui_win_info): Simplify.
4183 2019-06-25 Tom Tromey <tom@tromey.com>
4185 * tui/tui-winsource.c (tui_display_main)
4186 (tui_update_source_windows_with_addr)
4187 (tui_update_all_breakpoint_info): Update.
4188 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4189 (new_height_ok, parse_scrolling_args): Update.
4190 * tui/tui-stack.c (tui_show_frame_info): Update.
4191 * tui/tui-data.h (struct tui_list): Remove.
4192 (tui_source_windows): Return a reference to a std::vector.
4193 * tui/tui-data.c (source_windows): Now a std::vector.
4194 (tui_source_windows): Change return type.
4195 (tui_clear_source_windows): Rewrite.
4196 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4197 (tui_free_all_source_wins_content): Rewrite.
4199 2019-06-25 Tom Tromey <tom@tromey.com>
4201 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4202 (struct tui_data_window, struct tui_cmd_window): Declare
4203 clear_detail method.
4204 * tui/tui-data.c (tui_source_window::clear_detail)
4205 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4207 (tui_clear_win_detail): Simplify.
4209 2019-06-25 Tom Tromey <tom@tromey.com>
4211 * tui/tui-layout.c (make_source_window, make_disasm_window)
4212 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4213 Return the new window.
4214 (show_source_disasm_command, show_data)
4215 (show_source_or_disasm_and_command): Update.
4217 2019-06-25 Tom Tromey <tom@tromey.com>
4219 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4220 parameter. Return the new window.
4221 (show_source_disasm_command): Update and remove NULL check.
4222 (show_source_or_disasm_and_command): Update.
4224 2019-06-25 Tom Tromey <tom@tromey.com>
4226 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4228 2019-06-25 Tom Tromey <tom@tromey.com>
4230 * tui/tui-data.h (struct tui_win_info): Make constructor
4231 protected. Make destructor virtual. Add initializers.
4232 (tui_source_window, tui_data_window, tui_cmd_window): New
4234 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4235 constructor. Add "type" parameter.
4236 (tui_source_window, tui_data_window, tui_cmd_window): New
4238 (tui_alloc_win_info): Instantiate the appropriate subclass.
4240 2019-06-25 Tom Tromey <tom@tromey.com>
4242 * tui/tui-win.c (tui_resize_all): Use delete.
4243 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4245 (tui_free_window): Don't declare.
4246 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4249 2019-06-25 Tom Tromey <tom@tromey.com>
4251 * tui/tui-data.h (struct tui_win_info): Add constructor.
4252 * tui/tui-data.c (tui_alloc_win_info): Use new.
4253 (tui_free_window): Use delete.
4255 2019-06-22 Tom Tromey <tom@tromey.com>
4257 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4259 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4261 2019-06-22 Tom Tromey <tom@tromey.com>
4263 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4265 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4267 2019-06-22 Tom de Vries <tdevries@suse.de>
4269 * dwarf2read.c (create_addrmap_from_aranges)
4270 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4273 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4275 * dwarf2read.h (dwarf2_section_info_def): Remove.
4276 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4277 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4278 std::vector<dwarf2_section_info>.
4279 (struct dwo_file) <~dwo_file>: Remove.
4280 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4282 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4283 (dwarf2_read_debug_names): Likewise.
4284 (create_debug_types_hash_table): Change parameter type to
4285 array_view, adjust code accordingly.
4286 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4287 (partial_die_info::fixup): Likewise.
4288 (determine_prefix): Likewise.
4289 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4291 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4293 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4295 <~dwo_file>: Remove call to gdb_bfd_unref.
4296 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4297 gdb_bfd_ref_ptr::get.
4299 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4301 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4303 * dwarf2read.c (struct dwo_file): Initialize fields.
4305 (free_dwo_file): Remove, move content to ~dwo_file.
4306 (struct dwo_file_deleter): Remove.
4307 (dwo_file_up>: Remove custom deleter.
4308 (free_dwo_files): Remove.
4309 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4311 (process_skeletonless_type_units): Call unique_ptr::get.
4312 (allocate_dwo_file_hash_table): Add deleter to created hash
4313 table. Change return type to htab_up.
4314 (lookup_dwo_file_slot): Don't memset dwo_file, call
4316 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4317 (create_dwo_unit_in_dwp_v2): Likewise.
4318 (open_and_init_dwo_file): Likewise.
4319 (free_dwo_file_from_slot): Remove.
4321 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4323 * dwarf2read.h (struct dwarf2_section_info) <readin,
4324 is_virtual>: Change type to bool.
4325 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4328 2019-06-19 Tom Tromey <tom@tromey.com>
4330 * tui/tui-data.h (tui_init_content_element): Don't declare.
4332 2019-06-19 Tom Tromey <tom@tromey.com>
4334 * tui/tui-data.h (tui_init_win_info): Don't declare.
4336 2019-06-19 Tom de Vries <tdevries@suse.de>
4338 * dwarf2read.h (abstract_to_concrete): Change type to
4339 std::unordered_map<sect_offset, std::vector<sect_offset>,
4340 gdb::hash_enum<sect_offset>>.
4342 2019-06-19 Tom Tromey <tromey@adacore.com>
4344 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4345 EVAL_AVOID_SIDE_EFFECTS specially.
4347 2019-06-19 Tom Tromey <tromey@adacore.com>
4349 * source-cache.c (highlighter): New global.
4350 (source_cache::get_source_lines): Create a highlighter on demand.
4352 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4354 * defs.h (deprecated_interactive_hook): Delete declaration.
4355 * interps.c (clear_interpreter_hooks): Remove use of
4356 deprecated_interactive_hook.
4357 * top.c (deprecated_interactive_hook): Delete definition.
4358 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4360 2019-06-18 Tom de Vries <tdevries@suse.de>
4363 * dwarf2read.h (abstract_to_concrete): Change type from
4364 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4365 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4366 * dwarf2read.c (read_variable): Update.
4367 (dwarf2_fetch_die_loc_sect_off): Update.
4369 2019-06-17 Tom de Vries <tdevries@suse.de>
4372 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4373 accessing parent[parent_len - 1].
4375 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4378 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4379 call dtrace_process_dof with NULL dof.
4381 2019-06-16 Tom de Vries <tdevries@suse.de>
4384 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4386 2019-06-16 Tom Tromey <tom@tromey.com>
4388 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4389 (make_all_visible): Use address of member.
4391 2019-06-16 Tom Tromey <tom@tromey.com>
4393 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4394 (tui_free_window, free_content, free_content_elements): Remove
4396 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4398 * tui/tui-regs.c (tui_show_register_group)
4399 (tui_display_registers_from, tui_display_reg_element_at_line):
4400 Remove unnecessary cast.
4402 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4404 * linux-nat.c (normal_mask): Delete.
4405 (_initialize_linux_nat): Don't initialise normal_mask.
4407 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4410 * dwarf-index-write.h (write_psymtabs_to_index): Add
4411 dwz_basename parameter.
4412 * dwarf-index-write.c (write_gdbindex): Move file writing to
4413 write_gdbindex_1. Change return type void.
4414 (assert_file_size): Move up, remove filename parameter.
4415 (write_gdbindex_1): New function.
4416 (write_debug_names): Change return type to void, call
4418 (struct index_wip_file): New struct.
4419 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4420 file logic to index_wip_file. Write index for dwz file if
4422 (save_gdb_index_command): Pass basename of dwz file, if present.
4423 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4424 build-id of dwz file, if present.
4425 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4426 (dwarf2_get_dwz_file): Likewise.
4427 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4428 (dwarf2_get_dwz_file): Likewise.
4430 2019-06-16 Tom Tromey <tom@tromey.com>
4432 * coffread.c (process_coff_symbol): Use xstrdup.
4433 * value.c (create_internalvar): Use xstrdup.
4435 2019-06-16 Tom Tromey <tom@tromey.com>
4437 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4438 * breakpoint.c (stopin_command, stopat_command)
4439 (until_break_command, decode_location_default): Remove unnecessary
4441 * utils.c (subset_compare): Remove unnecessary cast.
4442 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4444 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4446 * infcmd.c (path_command): Remove unnecessary cast.
4447 * coffread.c (decode_type): Remove unnecessary cast.
4448 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4449 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4450 * tui/tui-stack.c (tui_show_locator_content)
4451 (tui_show_frame_info): Remove unnecessary cast.
4452 * tui/tui-win.c (tui_scroll_forward_command)
4453 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4454 (parse_scrolling_args): Remove unnecessary cast.
4455 * tui/tui-data.c (init_win_info, tui_del_window)
4456 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4457 (free_content_elements): Remove unnecessary cast.
4458 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4460 * tui/tui-source.c (tui_set_source_content)
4461 (tui_vertical_source_scroll): Remove unnecessary cast.
4462 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4464 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4465 * tui/tui-regs.c (tui_display_registers_from)
4466 (tui_display_register): Remove unnecessary cast.
4467 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4468 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4469 (make_visible): Remove unnecessary cast.
4470 * tui/tui-winsource.c (tui_erase_source_content)
4471 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4473 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4474 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4475 * stabsread.c (read_type, read_array_type, read_range_type):
4476 Remove unnecessary cast.
4477 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4478 (parse_symbol, parse_type, upgrade_type, parse_external)
4479 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4481 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4483 2019-06-16 Tom Tromey <tom@tromey.com>
4485 * tui/tui-data.c (tui_alloc_generic_win_info)
4486 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4489 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4490 Andrew Burgess <andrew.burgess@embecosm.com>
4492 * f-typeprint.c (f_print_type): Don't return early for not
4493 associated or not allocated types.
4494 (f_type_print_varspec_suffix): Add print_rank parameter and print
4495 ranks of array types in case they dangling.
4496 (f_type_print_base): Add print_rank parameter.
4498 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4500 * NEWS: Mention new MI commands.
4501 * break-catch-throw.c (enum exception_event_kind): Move to
4503 (print_mention_exception_catchpoint): Output text as a single
4505 (catch_exception_command_1): Rename to...
4506 (catch_exception_event): ...this, make non-static, update header
4507 command, and change some parameter types.
4508 (catch_catch_command): Update for changes to
4509 catch_exception_command_1.
4510 (catch_throw_command): Likewise.
4511 (catch_rethrow_command): Likewise.
4512 * breakpoint.c (enum exception_event_kind): Delete.
4513 * breakpoint.h (enum exception_event_kind): Moved here from
4514 break-catch-throw.c.
4515 (catch_exception_event): Declare.
4516 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4517 (mi_cmd_catch_throw): New function.
4518 (mi_cmd_catch_rethrow): New function.
4519 (mi_cmd_catch_catch): New function.
4520 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4521 'catch-catch' entries.
4522 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4523 (mi_cmd_catch_rethrow): Declare.
4524 (mi_cmd_catch_catch): Declare.
4526 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4528 * annotate.c (annotate_source_line): Change return type to void,
4529 update implementation to match.
4530 * annotate.h (annotate_source_line): Change return type to void,
4531 update header comment.
4532 * stack.c (print_frame_info): Don't change what frame information
4533 is printed based on whether annotations are on or not.
4535 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4537 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4538 (annotate_source): Make static.
4539 (annotate_source_line): Moved from source.c and renamed from
4540 identify_source_line. Update the return type.
4541 * annotate.h (annotate_source): Delete declaration.
4542 (annotate_source_line): Declaration moved from source.h, and
4543 renamed from identify_source_line. Return type updated.
4544 * source.c (identify_source_line): Moved to annotate.c and renamed
4545 to annotate_source_line.
4546 (info_line_command): Remove check of annotation_level.
4547 * source.h (identify_source_line): Move declaration to annotate.h
4548 and rename to annotate_source_line.
4549 * stack.c: Add 'annotate.h' include.
4550 (print_frame_info): Remove check of annotation_level before
4551 calling annotate_source_line.
4553 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4555 * source-cache.c (source_cache::get_plain_source_lines): Use
4556 open_source_file_with_line_charpos instead of just
4557 open_source_file, remove call to find_source_lines.
4558 (source_cache::get_source_lines): Likewise.
4559 * source.c (find_source_lines): Make static.
4560 (get_filename_and_charpos): Renamed into...
4561 (open_source_file_with_line_charpos): ..this along with changes to
4562 return a scoped_fd, and some other minor clean ups.
4563 (identify_source_line): Use open_source_file_with_line_charpos.
4564 (search_command_helper): Use open_source_file_with_line_charpos
4565 instead of just open_source_file, remove call to
4567 * source.h (open_source_file_with_line_charpos): Declare new
4569 (find_source_lines): Delete declaration.
4571 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4573 * source.c (get_filename_and_charpos): Remove fullname
4575 (identify_source_line): Update call to get_filename_and_charpos.
4577 2019-06-14 Tom Tromey <tromey@adacore.com>
4580 * ui-style.h (skip_ansi_escape): Update comment.
4581 * ui-file.h (class no_terminal_escape_file): New class.
4582 * ui-file.c (no_terminal_escape_file::write)
4583 (no_terminal_escape_file::puts): New methods.
4584 * cli/cli-logging.c (handle_redirections): Use
4585 no_terminal_escape_file.
4587 2019-06-14 Tom Tromey <tromey@adacore.com>
4589 * NEWS: Move convenience variable news above Python news.
4591 2019-06-14 Tom Tromey <tom@tromey.com>
4593 * gnulib: Move directory to top-level.
4594 * configure.ac: Don't configure gnulib.
4595 * configure: Rebuild.
4596 * common/common-defs.h: Use new path to gnulib.
4597 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4599 (INCGNU): Look in new gnulib location.
4600 (HFILES_NO_SRCDIR): Remove gnulib files.
4601 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4602 (generated_files): Remove GNULIB_H.
4603 ($(LIBGNU), all-lib): Remove targets.
4604 (distclean): Don't mention GNULIB_BUILDDIR.
4605 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4607 2019-06-14 Tom Tromey <tromey@adacore.com>
4609 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4610 Warn if symbol file does not provide any symbols.
4612 2019-06-14 Tom Tromey <tromey@adacore.com>
4614 * source.c (find_and_open_source): Respect basenames_may_differ.
4616 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4618 * annotate.c (annotate_breakpoints_invalid): Make use of
4619 scoped_restore_terminal_state.
4620 (annotate_frames_invalid): Likewise.
4622 2019-06-14 Tom Tromey <tromey@adacore.com>
4624 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4625 allow assignment to an internalvar.
4627 2019-06-14 Tom Tromey <tromey@adacore.com>
4629 * ada-lex.l: Allow "_" in attribute names.
4631 2019-06-14 Tom Tromey <tromey@adacore.com>
4634 * regcache.c (registers_changed): Don't call alloca.
4635 * top.c (execute_command): Don't call alloca.
4637 2019-06-13 Pedro Alves <palves@redhat.com>
4639 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4640 'expression'. When parsing an expression, error out if there's
4641 junk after "unlimited".
4642 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4643 (do_set_command): Adjust calls to is_unlimited_literal.
4645 2019-06-13 Pedro Alves <palves@redhat.com>
4647 * compile/compile.c (make_compile_options_def_group): Add braces
4648 around array_view initializer.
4649 * thread.c (make_thread_apply_all_options_def_group)
4650 (make_thread_apply_all_options_def_group): Likewise.
4652 2019-06-13 Pedro Alves <palves@redhat.com>
4654 * NEWS (New commands): Mention "maint test-options
4655 require-delimiter", "maint test-options unknown-is-error", "maint
4656 test-options unknown-is-operand" and "maint show
4657 test-options-completion-result".
4658 (New command options, command completion): New section.
4659 (Completion improvements): New section.
4660 Mention that you can abbreviate "unlimited".
4662 2019-06-13 Pedro Alves <palves@redhat.com>
4664 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4665 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4666 * unittests/cli-utils-selftests.c (test_parse_flags)
4667 (test_parse_flags_qcs): Delete.
4668 (test_cli_utils): Don't call deleted functions.
4670 2019-06-13 Pedro Alves <palves@redhat.com>
4672 * thread.c: Include "cli/cli-option.h".
4673 (tp_array_compar_ascending): Global.
4674 (tp_array_compar): Delete function.
4675 (tp_array_compar_ascending, tp_array_compar_descending): New
4677 (ascending_option_def, qcs_flag_option_def)
4678 (thr_qcs_flags_option_defs)
4679 (make_thread_apply_all_options_def_group)
4680 (make_thread_apply_options_def_group): New.
4681 (thread_apply_all_command): Use gdb::option::process_options.
4682 (thread_apply_command_completer)
4683 (thread_apply_all_command_completer): New.
4684 (thread_apply_command): Use gdb::option::process_options.
4685 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4686 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4687 to generate help text of "thread apply". Adjust "taas"'s help.
4688 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4689 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4691 2019-06-13 Pedro Alves <palves@redhat.com>
4693 * thread.c (thread_apply_command): Check for invalid TID with
4694 isdigit instead of !isalpha.
4696 2019-06-13 Pedro Alves <palves@redhat.com>
4698 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4699 (validate_flags_qcs): New.
4700 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4701 (validate_flags_qcs): Declare.
4702 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4703 (make_frame_apply_options_def_group): New.
4704 (frame_apply_command_count): Process options with
4705 gdb::option::process_options.
4706 (frame_apply_completer): New.
4707 (frame_apply_level_completer, frame_apply_all_completer)
4708 (frame_apply_completer): New.
4709 (_initialize_stack): Update help of "frame apply", "frame apply
4710 level", "frame apply all" and "faas" to mention supported options
4711 and install command completers.
4712 * stack.h (frame_apply_all_completer): Declare.
4713 * thread.c: Include "stack.h".
4714 (tfaas_command): Add "--".
4715 (_initialize_thread): Update help "tfaas" to mention supported
4716 options and install command completer.
4718 2019-06-13 Pedro Alves <palves@redhat.com>
4720 * completer.c (complete_nested_command_line): New.
4721 (gdb_completion_word_break_characters_throw): Add assertion.
4722 * completer.h (complete_nested_command_line): Declare.
4724 2019-06-13 Pedro Alves <palves@redhat.com>
4726 * stack.c (parse_backtrace_qualifiers): New.
4727 (backtrace_command): Use it.
4728 (backtrace_command_completer): Complete on qualifiers.
4730 2019-06-13 Pedro Alves <palves@redhat.com>
4732 * frame.c: Include "cli/cli-option.h.
4733 (user_set_backtrace_options): New.
4734 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4736 (get_prev_frame): Adjust.
4737 (boolean_option_def, uinteger_option_def)
4738 (set_backtrace_option_defs): New.
4739 (_initialize_frame): Adjust and use
4740 gdb::option::add_setshow_cmds_for_options to install "set
4741 backtrace past-main" and "set backtrace past-entry".
4742 * frame.h: Include "cli/cli-option.h".
4743 (struct frame_print_options): Forward declare.
4744 (print_frame_arguments_all, print_frame_arguments_scalars)
4745 (print_frame_arguments_none): Declare.
4746 (print_entry_values): Delete declaration.
4747 (struct frame_print_options, user_frame_print_options): New.
4748 (struct set_backtrace_options): New.
4749 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4750 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4751 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4752 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4753 (list_args_or_locals): Add frame_print_options parameter.
4754 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4755 * python/py-framefilter.c (enumerate_args): Pass down
4756 USER_FRAME_PRINT_OPTIONS.
4757 * stack.c: Include "cli/cli-option.h".
4758 (print_frame_arguments_all, print_frame_arguments_scalars)
4759 (print_frame_arguments_none): Declare.
4760 (print_raw_frame_arguments, print_entry_values): Delete.
4761 (user_frame_print_options): New.
4762 (boolean_option_def, enum_option_def, frame_print_option_defs):
4764 (struct backtrace_cmd_options): New.
4765 (bt_flag_option_def): New.
4766 (backtrace_command_option_defs): New.
4767 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4768 (print_frame_arg, read_frame_arg, print_frame_args)
4769 (print_frame_info, print_frame): Add frame_print_options parameter
4771 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4772 (backtrace_command_1): Add frame_print_options and
4773 backtrace_cmd_options parameters and use them.
4774 (make_backtrace_options_def_group): New.
4775 (backtrace_command): Process command options with
4776 gdb::option::process_options.
4777 (backtrace_command_completer): New.
4778 (_initialize_stack): Extend "backtrace"'s help to mention
4779 supported options. Install completer for "backtrace".
4780 Install some settings commands with add_setshow_cmds_for_options.
4782 2019-06-13 Pedro Alves <palves@redhat.com>
4784 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4785 and that "set/show print raw frame-arguments" are now deprecated.
4787 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4789 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4790 * stack.c (_initialize_stack): Install "set/show print
4791 raw-frame-arguments", and deprecate "set/show print raw
4793 * valprint.c (_initialize_valprint): Deprecate "set/show print
4796 2019-06-13 Pedro Alves <palves@redhat.com>
4798 * compile/compile.c (struct compile_options): New.
4799 (compile_flag_option_def, compile_command_option_defs)
4800 (make_compile_options_def_group): New.
4801 (compile_file_command): Handle options with
4802 gdb::option::process_options.
4803 (compile_file_command_completer): New function.
4804 (compile_code_command): Handle options with
4805 gdb::option::process_options.
4806 (compile_code_command_completer): New function.
4807 (_initialize_compiler): Install completers for "compile code" and
4808 "compile file". Mention available options in "compile code" and
4809 "compile code"'s help.
4810 * completer.c (advance_to_completion_word): New, factored out from
4812 (advance_to_expression_complete_word_point): ... this.
4813 (advance_to_filename_complete_word_point): New.
4814 * completer.h (advance_to_filename_complete_word_point): New
4817 2019-06-13 Pedro Alves <palves@redhat.com>
4819 * compile/compile.c: Include "cli/cli-option.h".
4820 (compile_print_value): Scope data pointer is now a
4821 value_print_options pointer; adjust.
4822 (compile_print_command): Process options. Scope data pointer is
4823 now a value_print_options pointer; adjust.
4824 (_initialize_compile): Update "compile print"'s help to include
4825 supported options. Install a completer for "compile print".
4826 * cp-valprint.c (show_vtblprint, show_objectprint)
4827 (show_static_field_print): Delete.
4828 (_initialize_cp_valprint): Don't install "set print
4829 static-members", "set print vtbl", "set print object" here.
4830 * printcmd.c: Include "cli/cli-option.h" and
4831 "common/gdb_optional.h".
4832 (print_command_parse_format): Rework to fill in a
4833 value_print_options instead of a format_data.
4834 (print_value): Change parameter type from format_data pointer to
4835 value_print_options reference. Adjust.
4836 (print_command_1): Process options. Adjust to pass down a
4837 value_print_options.
4838 (print_command_completer): New.
4839 (_initialize_printcmd): Install print_command_completer as
4840 handle_brkchars completer for the "print" command. Update
4841 "print"'s help to include supported options.
4842 * valprint.c: Include "cli/cli-option.h".
4843 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4844 here from cp-valprint.c.
4845 (boolean_option_def, uinteger_option_def)
4846 (value_print_option_defs, make_value_print_options_def_group):
4847 New. Use gdb::option::add_setshow_cmds_for_options to install
4848 "set print elements", "set print null-stop", "set print repeats",
4849 "set print pretty", "set print union", "set print array", "set
4850 print address", "set print symbol", "set print array-indexes".
4851 * valprint.h: Include <string> and "cli/cli-option.h".
4852 (make_value_print_options_def_group): Declare.
4853 (print_value): Change parameter type from format_data pointer to
4854 value_print_options reference.
4855 (print_command_completer): Declare.
4857 2019-06-13 Pedro Alves <palves@redhat.com>
4859 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4860 (COMMON_SFILES): Add maint-test-settings.c.
4861 * cli/cli-decode.c (boolean_enums): New global, factored out from
4863 (add_setshow_boolean_cmd): ... here.
4864 * cli/cli-decode.h (boolean_enums): Declare.
4865 * cli/cli-option.c: New file.
4866 * cli/cli-option.h: New file.
4867 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4868 factored out from ...
4869 (parse_cli_boolean_value(const char *)): ... this.
4870 (is_unlimited_literal): Change parameter type to pointer to
4871 pointer. Adjust and advance ARG pointer.
4872 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4873 (parse_cli_var_enum): New, factored out from ...
4874 (do_set_command): ... this. Adjust.
4875 * cli/cli-setshow.h (parse_cli_boolean_value)
4876 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4877 (parse_cli_var_enum): Declare.
4878 * cli/cli-utils.c: Include "cli/cli-option.h".
4879 (get_ulongest): New.
4880 * cli/cli-utils.h (get_ulongest): Declare.
4881 (check_for_argument): New overloads.
4882 * maint-test-options.c: New file.
4884 2019-06-13 Pedro Alves <palves@redhat.com>
4886 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4887 parse a range if "-" is at the end of the string.
4889 2019-06-13 Pedro Alves <palves@redhat.com>
4891 * cli/cli-setshow.c (parse_auto_binary_operation)
4892 (parse_cli_boolean_value): Don't allow "o".
4894 2019-06-13 Pedro Alves <palves@redhat.com>
4896 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4897 * NEWS: Mention maint test-settings KIND.
4898 * maint-test-settings.c: New file.
4900 2019-06-13 Pedro Alves <palves@redhat.com>
4902 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4904 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4907 2019-06-13 Pedro Alves <palves@redhat.com>
4909 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4912 2019-06-13 Pedro Alves <palves@redhat.com>
4914 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4916 2019-06-13 Pedro Alves <palves@redhat.com>
4918 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4919 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4921 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4922 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4924 (check_for_argument): Skip spaces after argument.
4926 2019-06-13 Pedro Alves <palves@redhat.com>
4928 * thread.c (thread_apply_command): Adjust TID parsing.
4929 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4930 detected before end of string.
4931 (tid_is_in_list): Error out if LIST is invalid.
4933 2019-06-13 Pedro Alves <palves@redhat.com>
4935 * completer.c (complete_line_internal_1): Rewind completion word
4937 (completion_tracker::advance_custom_word_point_by): Change
4938 parameter type to int.
4939 * completer.h (completion_tracker::advance_custom_word_point_by):
4942 2019-06-13 Pedro Alves <palves@redhat.com>
4944 * completer.c (advance_to_completion_word): Handle delimiters.
4946 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4948 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4950 2019-06-11 Tom Tromey <tom@tromey.com>
4952 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4953 (xmalloc_failed): Move to alloc.c.
4954 * alloc.c: New file.
4955 * Makefile.in (COMMON_SFILES): Add alloc.c.
4957 2019-06-11 Tom Tromey <tom@tromey.com>
4959 * nat/linux-waitpid.c: Don't include server.h.
4960 (linux_debug): Remove.
4961 (my_waitpid): Update.
4963 2019-06-11 Tom Tromey <tromey@adacore.com>
4965 * infcall.c (_initialize_infcall): Remove trailing newline from
4967 * user-regs.c (_initialize_user_regs): Remove trailing newline
4969 * typeprint.c (_initialize_typeprint): Remove trailing newline
4971 * reverse.c (_initialize_reverse): Remove trailing newlines from
4973 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4975 * language.c (add_set_language_command): Remove trailing newline
4977 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4979 * disasm.c (_initialize_disasm): Remove trailing newline from
4981 * top.c (init_main): Remove trailing newline from help.
4982 * interps.c (_initialize_interpreter): Remove trailing newline
4984 * btrace.c (_initialize_btrace): Remove trailing newlines from
4986 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4988 * python/python.c (_initialize_python): Remove trailing newline
4990 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4992 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4993 from help. Reformat some text.
4994 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4996 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4999 2019-06-11 Tom Tromey <tromey@adacore.com>
5001 * darwin-nat.c (darwin_decode_exception_message)
5002 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5004 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5006 * valops.c (value_slice): Check for not allocated or not
5009 2019-06-10 Tom de Vries <tdevries@suse.de>
5012 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5013 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5016 2019-06-10 Tom de Vries <tdevries@suse.de>
5019 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5020 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5022 2019-06-10 Tom de Vries <tdevries@suse.de>
5025 * symtab.c (struct demangled_name_entry): Add language field.
5026 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5027 static minimal symbol". Set and use language field.
5029 2019-06-10 Tom Tromey <tromey@adacore.com>
5031 * ada-lang.c (_initialize_ada_language): Update help text.
5033 2019-06-10 Tom Tromey <tromey@adacore.com>
5035 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5037 * guile/guile.c (handle_boot_error): Don't end warning with a
5039 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5040 warning with a newline.
5041 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5043 (s12z_frame_cache): Likewise.
5044 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5046 * solib-svr4.c (disable_probes_interface): Don't end warning with
5048 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5050 * python/python.c (do_finish_initialization): Don't end warning
5053 2019-06-10 Tom Tromey <tom@tromey.com>
5055 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5056 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5059 2019-06-10 Tom Tromey <tromey@adacore.com>
5061 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5063 (elf_new_init): Don't call stabsread_new_init.
5064 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5065 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5066 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5068 2019-06-10 Tom de Vries <tdevries@suse.de>
5072 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5074 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5076 * source.c (find_and_open_source): Also rewrite relative file
5079 2019-04-26 Amos Bird <amosbird@gmail.com>
5081 * annotate.c (annotate_thread_exited): Add "thread-exited"
5084 2019-06-06 Tom Tromey <tromey@adacore.com>
5086 * maint.h (class scoped_command_stats): Use
5087 DISABLE_COPY_AND_ASSIGN.
5088 <print_time>: New method.
5089 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5091 (scoped_command_stats::print_time): New method.
5093 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5095 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5096 instructions of lengths 6 or 8 bytes.
5098 2019-06-04 Pedro Alves <palves@redhat.com>
5100 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5102 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5103 * breakpoint.c (condition_completer): Likewise.
5104 * cli/cli-dump.c (scan_expression): Likewise.
5105 * common/filestuff.c (mkdir_recursive): Likewise.
5106 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5107 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5108 (gdb_abspath): Likewise.
5109 * compile/compile-cplus-types.c
5110 (compile_cplus_instance::decl_name): Likewise.
5111 * completer.c (complete_explicit_location):
5112 (signal_completer, reg_or_group_completer_1): Likewise.
5113 * cp-support.c (cp_remove_params_if_any): Likewise.
5114 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5115 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5116 * infcmd.c (strip_bg_char): Likewise.
5117 * linespec.c (copy_token_string): Likewise.
5118 * mi/mi-main.c (output_cores): Likewise.
5119 * psymtab.c (psymtab_search_name):
5120 * symfile.c (test_set_ext_lang_command): Likewise.
5121 * target.c (target_fileio_read_stralloc): Likewise.
5122 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5123 * value.c (complete_internalvar): Likewise.
5125 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5127 Add objfile property to gdb.Type.
5128 * NEWS: Mention Python API addition.
5129 * python/py-type.c (typy_get_objfile): New method.
5131 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5133 * NEWS: Mention the new set|show style [title|highlight].
5134 Mention changes to "show style", "help" and "apropos".
5136 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5138 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5139 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5140 instead of print_help_for_command.
5141 (print_doc_of_command): New function.
5142 (help_list): Add 'apropos -v word' suggestion.
5143 (print_help_for_command): Style the command name using title style.
5144 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5145 (_initialize_cli_cmds): Describe -v in apropos_command help.
5147 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5149 * cli/cli-style.h (cli_style_option): Add name in constructor,
5150 add m_name class member, add constructor with intensity,
5151 add name class function.
5152 (cli_style_option::add_setshow_commands): Remove name argument.
5153 (highlight_style, title_style): New styles.
5154 * cli/cli-style.c (do_show): New function that shows a style
5155 characteristic styling the style name with itself.
5156 (set_style_name): New function.
5157 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5158 Update all callers according to the changes in cli/cli-style.h.
5159 * utils.h (fputs_highlighted): New function.
5160 * utils.c (fputs_highlighted): Likewise.
5162 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5164 * NEWS: Mention new pipe command and new convenience variables.
5166 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5168 * cli/cli-cmds.c (pipe_command): New function.
5169 (_initialize_cli_cmds): Call add_com for pipe_command.
5170 Define | as an alias for pipe.
5171 (exit_status_set_internal_vars): New function.
5172 (shell_escape): Call exit_status_set_internal_vars.
5173 cli/cli-decode.c (find_command_name_length): Recognize | as
5174 a single character command.
5176 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5178 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5179 top.c (execute_command_to_ui_file): New function, mostly a copy
5180 of execute_command_to_string.
5181 (execute_command_to_string): Implement by calling
5182 execute_command_to_ui_file.
5184 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5186 * top.h (saved_command_line): Remove declaration.
5187 * top.c (previous_saved_command_line, previous_repeat_arguments):
5189 (saved_command_line): Make static, define together with other
5191 (dont_repeat): Clear repeat_arguments.
5192 (repeat_previous, get_saved_command_line, save_command_line):
5194 (gdb_init): Initialize saved_command_line
5195 and previous_saved_command_line.
5196 * main.c (captured_main_1): Remove saved_command_line initialization.
5197 * event-top.c (handle_line_of_input): Update to use
5198 the new 'repeat' related functions instead of direct access to
5200 * command.h (repeat_previous, get_saved_command_line,
5201 save_command_line): New declarations.
5202 (dont_repeat): Add comment.
5204 2019-05-30 Tom Tromey <tromey@adacore.com>
5206 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5208 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5210 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5213 * completer.c (complete): Initialize variable word.
5215 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5217 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5218 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5219 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5220 'body' is NULL to the outter 'if', protecting the '!is_define'
5223 2019-05-29 Tom Tromey <tromey@adacore.com>
5225 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5226 (dwarf_unknown): New function.
5227 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5228 (dwarf_type_encoding_name): Use dwarf_unknown.
5230 2019-05-29 Tom Tromey <tromey@adacore.com>
5233 * cp-valprint.c (cp_print_value_fields): Call
5234 cp_print_static_field inside "try".
5236 2019-05-29 Tom Tromey <tromey@adacore.com>
5238 * inflow.c (struct terminal_info): Add default operator=.
5239 * configure: Rebuild.
5240 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5241 -Wdeprecated-copy-dtor, -Wredundant-move.
5243 2019-05-29 Tom Tromey <tromey@adacore.com>
5246 * infcmd.c (print_return_value_1): Handle finish_print
5248 (show_print_finish): New function.
5249 (_initialize_infcmd): Add "set/show print finish" commands.
5250 * valprint.c (user_print_options): Initialize new member.
5251 * valprint.h (struct value_print_options) <finish_print>: New
5254 2019-05-28 Tom Tromey <tromey@adacore.com>
5256 * ada-lang.c (ada_remove_Xbn_suffix)
5257 (find_old_style_renaming_symbol)
5258 (parse_old_style_renaming): Remove.
5259 (ada_find_renaming_symbol): Don't call
5260 find_old_style_renaming_symbol.
5261 (ada_is_renaming_symbol): Rename from
5262 ada_find_renaming_symbol. Remove "block" parameter. Return
5264 (ada_read_var_value): Update and simplify.
5265 * ada-exp.y (write_var_or_type): Remove old code.
5267 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5269 * event-top.c: Remove include comment.
5270 * inflow.c (class scoped_ignore_sigttou): Move from here...
5271 * inflow.h (class scoped_ignore_sigttou): ...to here.
5272 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5273 * top.c: Remove include comment.
5275 2019-05-27 Tom Tromey <tom@tromey.com>
5279 2019-05-22 Tom Tromey <tromey@adacore.com>
5281 * target.c (target_follow_exec): Constify parameter.
5282 * target-delegates.c: Rebuild.
5283 * remote.c (remote_target::follow_exec): Constify parameter.
5284 * infrun.c (follow_exec): Constify parameter.
5285 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5286 (target_follow_exec): Likewise.
5288 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5290 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5291 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5293 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5295 * NEWS: Add debugredirect and testsuite sections.
5297 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5299 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5300 target descriptions using exclusively floating point register name
5303 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5306 * f-lang.c (build_fortran_types): Handle the case where
5307 gdbarch_floatformat_for_type returns a nullptr.
5309 2019-05-21 Tom de Vries <tdevries@suse.de>
5312 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5314 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5317 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5319 * i386-tdep.c (i386_floatformat_for_type): Use
5320 floatformats_ia64_quad for the 16-byte floating point component
5321 within a fortran 32-byte complex number.
5323 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5325 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5326 delete default constructor.
5327 (find_partial_die): Update to return const struct.
5328 (partial_die_parent_scope): Move variable declaration into scope
5329 of its use and change its type to auto.
5330 (guess_partial_die_structure_name): Likewise.
5331 (partial_die_info::fixup): Likewise.
5333 2019-05-17 Tom Tromey <tromey@adacore.com>
5335 * source.c (find_and_open_source): Remove cast.
5337 2019-05-17 Tom Tromey <tromey@adacore.com>
5339 * annotate.c (annotate_source): Make "filename" const.
5340 * annotate.h (annotate_source): Use const.
5342 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5344 * disasm.c (set_disassembler_options): Send errors to stderr.
5346 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5348 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5349 (cli_interp_base::set_logging): Check debug_redirect.
5350 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5351 * cli/cli-logging.c (debug_redirect): Add static variable.
5352 (pop_output_files): Add default param.
5353 (handle_redirections): Print debug setting.
5354 (show_logging_command): Likewise.
5355 (_initialize_cli_logging): Add debugredirect command.
5356 * interps.c (current_interp_set_logging): Add debug_redirect
5358 * interps.h (set_logging): Add debug_redirect parameter.
5359 (current_interp_set_logging): Likewise.
5360 * mi/mi-common.h: Likewise.
5361 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5363 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5364 Tom Tromey <tromey@adacore.com>
5366 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5368 * cli/cli-interp.h (make_logging_output): Remove declaration.
5369 * cli/cli-logging.c (make_logging_output): Remove function.
5370 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5372 * ui-file.c (tee_file::tee_file): Remove bools.
5373 (tee_file::~tee_file): Remove deletes.
5374 * ui-file.h (tee_file): Remove bools.
5376 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5378 * mi/mi-cmds.h (mi_cmd_complete): New function.
5379 * mi/mi-main.c (mi_cmd_complete): Likewise.
5380 * mi/mi-cmds.c: Define new MI command -complete.
5381 * NEWS: Mention new -complete command.
5383 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5385 * completer.h (complete): New function.
5386 * completer.c (complete): Likewise.
5387 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5388 function defined in completer.h.
5390 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5392 * MAINTAINERS (Write After Approval): Add myself.
5394 2019-05-17 Tom de Vries <tdevries@suse.de>
5397 * dwarf2read.c (struct cu_partial_die_info): New struct.
5398 (find_partial_die): Return cu_partial_die_info.
5399 (partial_die_parent_scope, guess_partial_die_structure_name)
5400 (partial_die_info::fixup): Handle new return type of find_partial_die.
5402 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5404 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5405 "std::string", simplifying the algorithm.
5407 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5409 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5410 (stap_static_probe_ops::get_probes): Likewise.
5412 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5414 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5415 '-')" and "else if".
5416 (stap_parse_single_operand): Join checks for
5417 "gdbarch_stap_parse_special_token_p" and
5418 "gdbarch_stap_parse_special_token" in the same "if" statement.
5419 Invert check when verifying for operation on register
5422 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5424 * stap-probe.c (stap_get_opcode): Update comment.
5425 (stap_get_expected_argument_type): Likewise.
5426 (handle_stap_probe): Likewise.
5428 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5430 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5431 return type to 'bool'. Adjust comment. Use 'bool' when
5433 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5434 * stap-probe.c (stap_parse_argument_1): Likewise.
5435 (stap_is_operator): Likewise.
5436 (stap_is_generic_prefix): Likewise.
5437 (stap_is_register_prefix): Likewise.
5438 (stap_is_register_indirection_prefix): Likewise.
5439 (stap_is_integer_prefix): Likewise.
5440 (stap_generic_check_suffix): Likewise.
5441 (stap_check_integer_suffix): Likewise.
5442 (stap_check_register_suffix): Likewise.
5443 (stap_check_register_indirection_suffix): Likewise.
5444 (stap_parse_register_operand): Likewise.
5445 (stap_parse_single_operand): Likewise.
5446 (stap_parse_argument_1): Likewise.
5447 (stap_probe::get_argument_count): Likewise.
5448 (stap_is_operator): Likewise.
5450 2019-05-16 Tom Tromey <tromey@adacore.com>
5452 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5455 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5457 * linux-thread-db.c (try_thread_db_load_1): Change return type
5459 (try_thread_db_load): Likewise.
5460 (try_thread_db_load_from_pdir_1): Likewise.
5461 (try_thread_db_load_from_pdir): Likewise.
5462 (try_thread_db_load_from_sdir): Likewise.
5463 (try_thread_db_load_from_dir): Likewise.
5464 (thread_db_load_search): Likewise.
5465 (has_libpthread): Likewise.
5466 (thread_db_load): Likewise.
5468 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5470 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5471 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5472 NULL, and complain/return if that's the case.
5474 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5476 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5477 (advance, posn, abstract_read_memory): New functions.
5478 [struct mem_read_abstraction]: New struct.
5479 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5481 2019-05-14 Tom Tromey <tromey@adacore.com>
5483 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5484 value is not lval_memory.
5486 2019-05-14 Tom Tromey <tromey@adacore.com>
5488 * solib.c (info_sharedlibrary_command): Style the file name.
5490 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5492 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5493 (aarch64_vnv_type): Likewise.
5494 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5495 * common/tdesc.c: Likewise.
5496 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5497 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5498 * features/aarch64-fpu.xml: Add ieee half view.
5499 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5500 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5501 * gdbtypes.h (struct builtin_type): Likewise.
5502 (struct objfile_type): Likewise.
5504 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5506 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5508 * location.h (string_to_event_location): Likewise.
5510 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5514 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5516 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5517 New variable declaration.
5518 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5520 (print_one_breakpoint): Use ui_out::test_flags and new global
5521 variable to compute use_fixed_output.
5522 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5524 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5525 (mi_multi_location_breakpoint_output_fixed): Remove.
5526 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5528 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5529 fix_multi_location_breakpoint_output flag if version >= 3.
5530 * ui-out.h (enum ui_out_flag)
5531 <fix_multi_location_breakpoint_output>: New enumerator.
5533 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5535 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5537 2019-05-10 Tom Tromey <tromey@adacore.com>
5539 * ada-lang.c (catch_ada_completer): New function.
5540 (_initialize_ada_language): Use it.
5542 2019-05-10 Tom Tromey <tromey@adacore.com>
5544 * thread.c (print_thread_info): Make "requested_threads" const.
5545 * gdbthread.h (print_thread_info): Make "requested_threads"
5547 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5548 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5550 2019-05-08 Tom Tromey <tom@tromey.com>
5552 * gdbtypes.c (objfile_type_data): Change type.
5553 (objfile_type, _initialize_gdbtypes): Update.
5555 2019-05-08 Tom Tromey <tom@tromey.com>
5557 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5558 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5559 (_initialize_dwarf2_frame): Update.
5561 2019-05-08 Tom Tromey <tom@tromey.com>
5563 * objc-lang.c (objc_objfile_data): Change type.
5564 (find_methods): Update.
5565 (_initialize_objc_lang): Remove.
5567 2019-05-08 Tom Tromey <tom@tromey.com>
5569 * stabsread.c (rs6000_builtin_type_data): Change type.
5570 (rs6000_builtin_type, _initialize_stabsread): Update.
5572 2019-05-08 Tom Tromey <tom@tromey.com>
5574 * mips-tdep.c (mips_pdr_data): Remove.
5575 (_initialize_mips_tdep): Update.
5577 2019-05-08 Tom Tromey <tom@tromey.com>
5579 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5580 (hppa_init_objfile_priv_data, read_unwind_info)
5581 (find_unwind_entry, _initialize_hppa_tdep): Update.
5583 2019-05-08 Tom Tromey <tom@tromey.com>
5585 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5586 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5588 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5590 2019-05-08 Tom Tromey <tom@tromey.com>
5592 * mdebugread.c (basic_type_data): Change type.
5593 (basic_type, _initialize_mdebugread): Update.
5595 2019-05-08 Tom Tromey <tom@tromey.com>
5597 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5599 2019-05-08 Tom Tromey <tom@tromey.com>
5601 * nto-tdep.c (nto_inferior_data_reg): Change type.
5602 (nto_inferior_data): Update.
5603 (nto_inferior_data_cleanup, nto_new_inferior_data)
5604 (_initialize_nto_tdep): Remove.
5605 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5607 2019-05-08 Tom Tromey <tom@tromey.com>
5609 * ada-lang.c (struct ada_inferior_data): Add initializers.
5610 (ada_inferior_data): Change type.
5611 (ada_inferior_data_cleanup): Remove.
5612 (get_ada_inferior_data, ada_inferior_exit)
5613 (struct ada_pspace_data): Add initializers, destructor.
5614 (ada_pspace_data_handle): Change type.
5615 (get_ada_pspace_data): Update.
5616 (ada_pspace_data_cleanup): Remove.
5618 2019-05-08 Tom Tromey <tom@tromey.com>
5620 * coffread.c (struct coff_symfile_info): Add initializers.
5621 (coff_objfile_data_key): Move lower. Change type.
5622 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5624 (coff_free_info): Remove.
5626 2019-05-08 Tom Tromey <tom@tromey.com>
5628 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5629 (fbsd_pspace_data_handle): Move lower. Change type.
5630 (get_fbsd_pspace_data): Update.
5631 (fbsd_pspace_data_cleanup): Remove.
5632 (_initialize_fbsd_tdep): Update.
5634 2019-05-08 Tom Tromey <tom@tromey.com>
5636 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5637 (get_ada_tasks_pspace_data): Update.
5638 (ada_tasks_pspace_data_cleanup): Remove.
5639 (_initialize_tasks): Update.
5640 (ada_tasks_inferior_data_handle): Change type.
5641 (get_ada_tasks_inferior_data): Update.
5642 (ada_tasks_inferior_data_cleanup): Remove.
5643 (struct ada_tasks_pspace_data): Add initializers.
5645 2019-05-08 Tom Tromey <tom@tromey.com>
5647 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5648 * symfile-debug.c (debug_sym_get_probes): Change type.
5649 * stap-probe.c (handle_stap_probe):
5650 (stap_static_probe_ops::get_probes): Change type.
5651 * probe.h (class static_probe_ops) <get_probes>: Change type.
5652 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5653 (parse_probes_in_pspace): Update.
5654 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5656 (any_static_probe_ops::get_probes): Change type.
5657 * elfread.c (elfread_data): New typedef.
5658 (probe_key): Change type.
5659 (elf_get_probes): Likewise. Update.
5660 (probe_key_free): Remove.
5661 (_initialize_elfread): Update.
5662 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5664 (dtrace_process_dof_probe, dtrace_process_dof)
5665 (dtrace_static_probe_ops::get_probe): Change type.
5667 2019-05-08 Tom Tromey <tom@tromey.com>
5669 * xcoffread.c (struct xcoff_symfile_info): Rename from
5670 coff_symfile_info. Add initializers.
5671 (xcoff_objfile_data_key): Move lower. Change type.
5672 (XCOFF_DATA): Rewrite.
5673 (xcoff_free_info): Remove.
5674 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5675 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5676 (xcoff_initial_scan): Update.
5678 2019-05-08 Tom Tromey <tom@tromey.com>
5680 * solib-svr4.c (struct svr4_info): Add initializers and
5682 <probes_table>: Now an htab_up.
5683 (solib_svr4_pspace_data): Change type.
5684 (free_probes_table): Simplify.
5685 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5686 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5687 (probes_table_remove_objfile_probes, register_solib_event_probe)
5688 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5689 (_initialize_svr4_solib): Update.
5691 2019-05-08 Tom Tromey <tom@tromey.com>
5693 * remote.c (remote_pspace_data): Change type.
5694 (remote_pspace_data_cleanup): Remove.
5695 (get_remote_exec_file, set_pspace_remote_exec_file)
5696 (_initialize_remote): Update.
5698 2019-05-08 Tom Tromey <tom@tromey.com>
5700 * breakpoint.c (breakpoint_objfile_key): Change type.
5701 (get_breakpoint_objfile_data): Update.
5702 (free_breakpoint_objfile_data): Remove.
5703 (_initialize_breakpoint): Update.
5705 2019-05-08 Tom Tromey <tom@tromey.com>
5707 * linux-tdep.c (struct linux_info): Add initializers.
5708 (linux_inferior_data): Move. Change type.
5709 (invalidate_linux_cache_inf): Update.
5710 (linux_inferior_data_cleanup): Remove.
5711 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5713 2019-05-08 Tom Tromey <tom@tromey.com>
5715 * auxv.c (auxv_inferior_data): Move. Change type.
5716 (auxv_inferior_data_cleanup): Remove.
5717 (invalidate_auxv_cache_inf): Rewrite.
5718 (get_auxv_inferior_data, _initialize_auxv): Update.
5720 2019-05-08 Tom Tromey <tom@tromey.com>
5722 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5723 (symfile_debug_objfile_data_key): Change type.
5724 (symfile_debug_installed, debug_qf_has_symbols)
5725 (debug_qf_find_last_source_symtab)
5726 (debug_qf_forget_cached_source_info)
5727 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5728 (debug_qf_print_stats, debug_qf_dump)
5729 (debug_qf_expand_symtabs_for_function)
5730 (debug_qf_expand_all_symtabs)
5731 (debug_qf_expand_symtabs_with_fullname)
5732 (debug_qf_map_matching_symbols)
5733 (debug_qf_expand_symtabs_matching)
5734 (debug_qf_find_pc_sect_compunit_symtab)
5735 (debug_qf_map_symbol_filenames)
5736 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5737 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5738 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5739 (debug_sym_read_linetable, debug_sym_relocate): Update.
5740 (symfile_debug_free_objfile): Remove.
5741 (install_symfile_debug_logging, _initialize_symfile_debug):
5744 2019-05-08 Tom Tromey <tom@tromey.com>
5746 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5747 allocate_on_obstack.
5748 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5749 (get_dwarf2_per_objfile): Update.
5750 (set_dwarf2_per_objfile): Remove.
5751 (dwarf2_has_info, dwarf2_get_section_info): Update.
5752 (dwarf2_free_objfile): Remove.
5753 (_initialize_dwarf2_read): Update.
5755 2019-05-08 Tom Tromey <tom@tromey.com>
5757 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5759 <unsupported_script_warning_printed,
5760 script_not_found_warning_printed>: Now bool.
5761 (auto_load_pspace_data): Change type.
5762 (~auto_load_pspace_info): Rename from
5763 auto_load_pspace_data_cleanup.
5764 (get_auto_load_pspace_data, init_loaded_scripts_info)
5765 (clear_section_scripts, maybe_print_unsupported_script_warning)
5766 (maybe_print_script_not_found_warning, _initialize_auto_load):
5769 2019-05-08 Tom Tromey <tom@tromey.com>
5771 * objfiles.c (objfile_pspace_info): Add destructor and
5773 (objfiles_pspace_data): Change type.
5774 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5775 (get_objfile_pspace_data): Update.
5776 (objfiles_bfd_data): Change type.
5777 (get_objfile_bfd_data): Update.
5778 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5780 2019-05-08 Tom Tromey <tom@tromey.com>
5782 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5784 (get_catch_syscall_inferior_data): Update.
5785 (catch_syscall_inferior_data_cleanup): Remove.
5786 (_initialize_break_catch_syscall): Update.
5788 2019-05-08 Tom Tromey <tom@tromey.com>
5790 * inflow.c (struct terminal_info): Add destructor and
5792 (inflow_inferior_data): Change type.
5793 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5794 (get_inflow_inferior_data, inflow_inferior_exit)
5795 (swap_terminal_info, _initialize_inflow): Update.
5797 2019-05-08 Tom Tromey <tom@tromey.com>
5799 * target-dcache.c (target_dcache_cleanup): Remove.
5800 (target_dcache_aspace_key): Change type.
5801 (target_dcache_init_p, target_dcache_invalidate)
5802 (target_dcache_get, target_dcache_get_or_init)
5803 (_initialize_target_dcache): Update.
5804 * dcache.h (struct dcache_deleter): New.
5806 2019-05-08 Tom Tromey <tom@tromey.com>
5808 * symtab.c (struct symbol_cache): Add destructor and
5810 (symbol_cache_key): Move. Change type.
5811 (make_symbol_cache, free_symbol_cache): Remove.
5812 (get_symbol_cache): Update.
5813 (symbol_cache_cleanup): Remove.
5814 (ALL_PSPACES, symbol_cache_flush)
5815 (maintenance_print_symbol_cache)
5816 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5819 2019-05-08 Tom Tromey <tom@tromey.com>
5821 * symtab.c (struct main_info): Add destructor and initializers.
5822 (main_progspace_key): Move. Change type.
5823 (get_main_info): Update.
5824 (main_info_cleanup): Remove.
5825 (_initialize_symtab): Update.
5827 2019-05-08 Tom Tromey <tom@tromey.com>
5829 * registry.h (DECLARE_REGISTRY): Define the _key class.
5831 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5833 * NEWS: Merge two 'New commands' sections.
5835 2019-05-08 Joel Brobecker <brobecker@adacore.com>
5837 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5838 parameter and use Ada language definition instead.
5839 (ada_val_print_ptr): Remove unused language parameter.
5840 (ada_val_print_num): Remove language parameter and use Ada language
5842 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5844 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5845 parameter and use Ada language definition instead.
5846 (ada_val_print_1): Update all ada_val_print_xxx calls.
5847 Remove language parameter.
5848 (ada_val_print): Update ada_val_print_1 call.
5850 2019-05-08 Tom Tromey <tromey@adacore.com>
5852 * remote.c (remote_hw_watchpoint_limit)
5853 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5856 2019-05-08 Tom Tromey <tromey@adacore.com>
5858 * maint.c (_initialize_maint_cmds): Move initialization code to
5860 (watchdog, show_watchdog): Move to remote.c.
5861 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5863 (_initialize_remote): Move initialization code from maint.c.
5864 * defs.h (watchdog): Don't declare.
5866 2019-05-08 Tom Tromey <tromey@adacore.com>
5868 * tui/tui-interp.c: Include main.h.
5869 * interps.c: Include main.h.
5870 * main.h (interpreter_p): Declare.
5871 * defs.h (interpreter_p): Don't declare.
5873 2019-05-08 Tom Tromey <tromey@adacore.com>
5875 * dwarf2loc.c: Include dwarf2read.h.
5876 * defs.h (read_unsigned_leb128): Don't declare.
5877 * dwarf2read.h (read_unsigned_leb128): Declare.
5879 2019-05-08 Tom Tromey <tromey@adacore.com>
5881 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5884 2019-05-08 Tom Tromey <tromey@adacore.com>
5886 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5887 when no wrap column is set.
5889 2019-05-08 Tom Tromey <tromey@adacore.com>
5891 * c-lang.c (c_get_string): Handle non-C-style arrays.
5893 2019-05-08 Tom Tromey <tromey@adacore.com>
5895 * typeprint.c (print_offset_data::update): Print the bit offset,
5896 not the number of bits remaining.
5898 2019-05-08 Tom Tromey <tromey@adacore.com>
5900 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5901 padding at end of comment.
5903 2019-05-08 Tom Tromey <tromey@adacore.com>
5905 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5908 2019-05-06 Tom Tromey <tom@tromey.com>
5910 * common/scoped_mmap.c: Include common-defs.h.
5911 * common/scoped_mmap.h: Don't include config.h.
5913 2019-05-04 Tom Tromey <tom@tromey.com>
5915 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5916 (struct aarch64_call_info): Add initializers.
5917 <si>: Now a std::vector.
5918 (pass_on_stack, aarch64_push_dummy_call): Update.
5920 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
5921 Tom Tromey <tom@tromey.com>
5923 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5924 (ppc_threads): Now a std::vector. Now static.
5925 (hwdebug_find_thread_points_by_tid)
5926 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5929 2019-05-04 Tom Tromey <tom@tromey.com>
5931 * arc-tdep.c (arc_tdesc_init): Return bool.
5933 2019-05-04 Tom Tromey <tom@tromey.com>
5935 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5936 Use gdb_assert_not_reached.
5938 2019-05-04 Tom Tromey <tom@tromey.com>
5940 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5943 2019-05-04 Tom Tromey <tom@tromey.com>
5945 * arc-tdep.c (arc_tdesc_init): Use bool.
5947 2019-05-04 Tom Tromey <tom@tromey.com>
5949 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5951 2019-05-04 Tom Tromey <tom@tromey.com>
5953 * cli/cli-cmds.c (valid_command_p): Return bool.
5955 2019-05-04 Tom Tromey <tom@tromey.com>
5957 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5958 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5960 2019-05-04 Raul Tambre <raul@tambre.ee>
5962 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5963 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5964 operator for comparison.
5966 2019-05-04 Tom Tromey <tom@tromey.com>
5968 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5969 (lookup_partial_symbol, print_partial_symbols)
5970 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5971 (psymbol_compare): Update.
5972 (add_psymbol_to_bcache): Clear the entire psymbol.
5973 (maintenance_check_psymtabs): Update.
5974 * psympriv.h (struct partial_symbol): Don't derive from
5975 general_symbol_info.
5976 <obj_section, unrelocated_address, address,
5977 set_unrelocated_address>: Update.
5978 <ginfo>: New member.
5979 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5980 (debug_names::write_psymbols): Update.
5982 2019-05-04 Tom de Vries <tdevries@suse.de>
5984 * contrib/cc-with-tweaks.sh: Support -n arg.
5986 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5988 * corelow.c (core_target::detach): Ensure frame cache and
5989 register caches are cleared.
5990 inferior.c (exit_inferior_1): Likewise.
5992 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5993 Tom Tromey <tom@tromey.com>
5995 * dictionary.c (collate_pending_symbols_by_language): Remove
5996 "struct" from foreach.
5997 * symtab.c (lookup_global_symbol_from_objfile)
5998 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6000 * ser-tcp.c (net_open): Remove "struct" from foreach.
6001 * objfiles.c (objfile_relocate, objfile_rebase)
6002 (objfile_has_symbols): Remove "struct" from foreach.
6003 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6005 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6007 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6008 "struct" from foreach.
6009 * ada-lang.c (create_excep_cond_exprs)
6010 (ada_exception_catchpoint_cond_string): Remove "struct" from
6013 2019-05-03 Tom Tromey <tromey@adacore.com>
6015 * ada-exp.y (convert_char_literal): Check suffix of each
6018 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6021 * ada-exp.y (yywrap): Don't define.
6022 * ada-lex.l (%option): Add noyywrap
6025 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6027 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6028 _WIN32_WINNT to the XP level, unless already defined to a higher
6031 * unittests/parse-connection-spec-selftests.c:
6033 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6036 * symfile.c (find_separate_debug_file): Remove colon from the
6037 drive spec of DOS/Windows file names of the target, so that the
6038 file name produced from DEBUGDIR and the target's directory will
6039 be valid on DOS/Windows systems.
6041 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6043 * rust-lang.c (val_print_struct): Handle printing structures
6046 2019-05-02 Tom Tromey <tromey@adacore.com>
6048 * valarith.c (_initialize_valarith): Remove.
6050 2019-05-01 Tom Tromey <tromey@adacore.com>
6052 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6055 2019-05-01 Tom Tromey <tromey@adacore.com>
6057 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6058 for big-endian copies.
6060 2019-04-30 Ali Tamur <tamur@google.com>
6061 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6062 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6063 (read_3_bytes): New function.
6065 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6067 * windows-nat.c (main_thread_id): Delete.
6068 (handle_output_debug_string): Replace main_thread_id by
6069 current_event.dwThreadId.
6070 (fake_create_process): Likewise.
6071 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6072 Do not set main_thread_id.
6073 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6074 current_event.dwThreadId.
6075 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6077 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6079 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6080 Use current_event.dwThreadId instead of main_thread_id.
6082 2019-04-30 Tom Tromey <tromey@adacore.com>
6084 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6085 (create_excep_cond_exprs): Iterate over program spaces.
6086 (ada_exception_catchpoint_cond_string): Examine all minimal
6087 symbols for exception types.
6089 2019-04-30 Tom Tromey <tromey@adacore.com>
6092 * dwarf2read.c (process_structure_scope): Handle case where type
6093 has template parameters but no symbol was created.
6095 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6096 Chris January <chris.january@arm.com>
6098 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6100 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6102 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6104 * f-typeprint.c (f_print_type): Update rules for printing
6106 (f_type_print_varspec_suffix): Likewise.
6108 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6109 Chris January <chris.january@arm.com>
6111 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6114 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6116 * f-lang.c (build_fortran_types): Change name of void type to
6118 * f-typeprint.c (f_type_print_base): Print the name of the void
6119 type, rather than a fixed string.
6120 * f-valprint.c (f_decorations): Use lower case void string.
6122 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6123 Chris January <chris.january@arm.com>
6125 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6128 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6129 Chris January <chris.january@arm.com>
6130 David Lecomber <david.lecomber@arm.com>
6132 * f-exp.y (BINOP_INTRINSIC): New token.
6133 (exp): New parser rule handling BINOP_INTRINSIC.
6134 (f77_keywords): Add new builtin procedures.
6135 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6136 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6137 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6138 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6139 (print_unop_subexp_f): New function.
6140 (print_binop_subexp_f): New function.
6141 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6142 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6143 (dump_subexp_body_f): Likewise.
6144 (operator_check_f): Likewise.
6145 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6146 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6148 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6150 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6152 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6153 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6154 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6155 (operator_length_f): New fuction.
6156 (print_subexp_f): New function.
6157 (op_name_f): New function.
6158 (dump_subexp_body_f): New function.
6159 (operator_check_f): New function.
6160 (exp_descriptor_f): Replace standard expression handling functions
6162 * gdb/fortran-operator.def: New file.
6163 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6164 * gdb/std-operator.def: Remove UNOP_KIND.
6166 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6168 * std-operator.def: Remove unbalanced, stray double quote
6171 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6172 Chris January <chris.january@arm.com>
6173 Daniel Everett <daniel.everett@arm.com>
6174 Nick Forrington <nick.forrington@arm.com>
6175 Richard Bunt <richard.bunt@arm.com>
6177 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6178 of depth when printing anonymous structs or unions.
6179 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6180 Don't print either the top-level value, or the children if the
6181 max-depth is exceeded.
6182 (ppscm_print_children): When printing the key of a map, allow one
6183 extra level of depth.
6184 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6185 print either the top-level value, or the children if the max-depth
6187 (print_children): When printing the key of a map, allow one extra
6189 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6190 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6191 (user_print_options): Initialise max_depth field.
6192 (val_print_scalar_or_string_type_p): New function.
6193 (val_print): Check to see if the max depth has been reached.
6194 (val_print_check_max_depth): Define new function.
6195 (show_print_max_depth): New function.
6196 (_initialize_valprint): Add 'print max-depth' option.
6197 * valprint.h (struct value_print_options) <max_depth>: New field.
6198 (val_print_check_max_depth): Declare new function.
6199 * NEWS: Document new feature.
6201 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6203 * ada-lang.c (ada_language_defn): Initialise new field.
6204 * c-lang.c (c_is_string_type_p): New function.
6205 (c_language_defn): Initialise new field.
6206 (cplus_language_defn): Initialise new field.
6207 (asm_language_defn): Initialise new field.
6208 (minimal_language_defn): Initialise new field.
6209 * c-lang.h (c_is_string_type_p): Declare new function.
6210 * d-lang.c (d_language_defn): Initialise new field.
6211 * f-lang.c (f_is_string_type_p): New function.
6212 (f_language_defn): Initialise new field.
6213 * go-lang.c (go_is_string_type_p): New function.
6214 (go_language_defn): Initialise new field.
6215 * language.c (default_is_string_type_p): New function.
6216 (unknown_language_defn): Initialise new field.
6217 (auto_language_defn): Initialise new field.
6218 * language.h (struct language_defn) <la_is_string_type_p>: New
6220 (default_is_string_type_p): Declare new function.
6221 * m2-lang.c (m2_language_defn): Initialise new field.
6222 * objc-lang.c (objc_language_defn): Initialise new field.
6223 * opencl-lang.c (opencl_language_defn): Initialise new field.
6224 * p-lang.c (pascal_is_string_type_p): New function.
6225 (pascal_language_defn): Initialise new field.
6226 * rust-lang.c (rust_is_string_type_p): New function.
6227 (rust_language_defn): Initialise new field.
6229 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6231 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6233 * ada-lang.c (ada_language_defn): Initialise new field.
6234 * c-lang.c (c_language_defn): Likewise.
6235 (cplus_language_defn): Likewise.
6236 (asm_language_defn): Likewise.
6237 (minimal_language_defn): Likewise.
6238 * d-lang.c (d_language_defn): Likewise.
6239 * f-lang.c (f_language_defn): Likewise.
6240 * go-lang.c (go_language_defn): Likewise.
6241 * language.c (unknown_language_defn): Likewise.
6242 (auto_language_defn): Likewise.
6243 * m2-lang.c (m2_language_defn): Likewise.
6244 * objc-lang.c (objc_language_defn): Likewise.
6245 * opencl-lang.c (opencl_language_defn): Likewise.
6246 * p-lang.c (pascal_language_defn): Likewise.
6247 * rust-lang.c (rust_language_defn): Likewise.
6249 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6251 * ada-lang.c (ada_is_character_type): Change return type to bool.
6252 (ada_is_string_type): Likewise.
6253 * ada-lang.h (ada_is_character_type): Update declaration
6254 (ada_is_string_type): Likewise.
6256 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6258 Support style in 'frame|thread apply'
6260 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6261 * record.c (record_start, record_stop): Update callers of
6262 execute_command_to_string with false.
6263 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6264 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6266 (class string_file): New constructor with term_out parameter.
6267 Override methods term_out and can_emit_style_escape. New member
6269 (class stdio_file): Override can_emit_style_escape.
6270 (class tee_file): Override term_out and can_emit_style_escape.
6271 * utils.h (can_emit_style_escape): Remove.
6272 * utils.c (can_emit_style_escape): Likewise.
6273 Update all callers of can_emit_style_escape (SOMESTREAM) to
6274 SOMESTREAM->can_emit_style_escape.
6275 * source-cache.c (source_cache::get_source_lines): Likewise.
6276 * stack.c (frame_apply_command_count): Call execute_command_to_string
6277 passing the term_out characteristic of the current gdb_stdout.
6278 * thread.c (thr_try_catch_cmd): Likewise.
6279 * top.c (execute_command_to_string): pass term_out parameter
6280 to construct the string_file for the command output.
6281 * ui-file.c (term_cli_styling): New function (most code moved
6282 from utils.c can_emit_style_escape).
6283 (string_file::string_file, string_file::can_emit_style_escape,
6284 stdio_file::can_emit_style_escape, tee_file::term_out,
6285 tee_file::can_emit_style_escape): New functions.
6287 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6289 * NEWS: Mention the new set|show may-call-functions.
6290 * infcall.c (may_call_functions_p): New variable.
6291 (show_may_call_functions_p): New function.
6292 (call_function_by_hand_dummy): Throws an error if not
6294 (_initialize_infcall): Call add_setshow_boolean_cmd for
6297 2019-04-25 Keith Seitz <keiths@redhat.com>
6300 * cp-support.c (inspect_type): Don't attempt substitutions
6301 of symbol with the same name.
6303 2019-04-25 Tom Tromey <tromey@adacore.com>
6306 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6309 2019-04-25 Tom Tromey <tromey@adacore.com>
6311 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6313 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6314 (gdb_xml_parser::parse): Use std::move.
6315 * python/python-internal.h (gdbpy_convert_exception): Take a const
6317 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6319 * python/py-utils.c (gdbpy_convert_exception): Take a const
6321 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6323 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6325 * mi/mi-main.c (mi_print_exception): Take a const reference.
6326 * main.c (handle_command_errors): Take a const reference.
6327 * linespec.c (parse_linespec): Use std::move.
6328 * infcall.c (run_inferior_call): Use std::move.
6329 (call_function_by_hand_dummy): Use std::move.
6330 * exec.c (try_open_exec_file): Use std::move.
6331 * exceptions.h (exception_print, exception_fprintf)
6332 (exception_print_same): Update.
6333 * exceptions.c (print_exception, exception_print)
6334 (exception_fprintf, exception_print_same): Change parameters to
6336 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6337 * common/new-op.c: Use std::move.
6338 * common/common-exceptions.h (struct gdb_exception): Add move
6340 (struct gdb_exception_error, struct gdb_exception_quit, struct
6341 gdb_quit_bad_alloc): Change constructor to move constructor.
6342 (throw_exception): Change parameter to rvalue reference.
6343 * common/common-exceptions.c (throw_exception): Take rvalue
6345 * cli/cli-interp.c (safe_execute_command): Use std::move.
6346 * breakpoint.c (insert_bp_location, location_to_sals): Use
6349 2019-04-25 Tom Tromey <tromey@adacore.com>
6351 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6352 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6353 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6354 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6355 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6356 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6357 guile/scm-value.c: Use unpack.
6358 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6359 gdbscm_gdb_exception.
6360 (gdbscm_throw_gdb_exception): Likewise.
6361 (struct gdbscm_gdb_exception): New.
6362 (unpack): New function.
6363 (gdbscm_wrap): Use unpack.
6365 2019-04-25 Tom Tromey <tromey@adacore.com>
6367 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6368 (gdb_rl_callback_handler): Use std::move.
6369 * common/common-exceptions.h (struct gdb_exception): Add move
6370 assignment operator.
6371 (throw_exception_sjlj): Change "exception" to const reference.
6372 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6373 (throw_exception_sjlj): Change "exception" to const reference.
6375 2019-04-25 Tom Tromey <tromey@adacore.com>
6377 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6378 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6379 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6381 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6383 * mi/mi-interp.c (mi_interp::exec): Update.
6384 * linespec.c (parse_linespec): Update.
6385 * infcall.c (run_inferior_call): Update.
6386 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6387 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6388 (gdbscm_lookup_global_symbol): Update.
6389 * guile/scm-param.c (gdbscm_parameter_value): Update.
6390 * guile/scm-frame.c (gdbscm_frame_read_register)
6391 (gdbscm_frame_read_var): Update.
6392 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6393 * exec.c (try_open_exec_file): Update.
6394 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6395 (gdb_rl_callback_handler): Update.
6396 * common/common-exceptions.h (exception_none): Don't declare.
6397 * common/common-exceptions.c (exception_none): Don't define.
6398 (struct catcher) <exception>: Update.
6399 * cli/cli-interp.c (safe_execute_command): Update.
6400 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6402 2019-04-25 Ali Tamur <tamur@google.com>
6404 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6405 (read_attribute_value): Likewise.
6406 (dwarf2_read_addr_index): Update comment.
6407 (read_str_index): Add DW_FORM_strx.
6408 (dwarf2_string_attr): Likewise.
6409 (dwarf2_const_value_attr): Likewise.
6410 (dump_die_shallow): Likewise.
6411 (dwarf2_fetch_constant_bytes): Likewise.
6412 (skip_form_bytes): Likewise.
6413 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6415 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6419 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6420 OFFSET. Verify if current mapping contains an ELF header.
6421 (linux_find_memory_regions_full): Adjust call to
6424 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6425 Kang Li <kanglictf@gmail.com>
6429 * dwarf2-frame.c (read_initial_length): Be consistent about using
6430 unsigned representation of length.
6431 (decode_frame_entry_1): Likewise. Check for wraparound of
6432 end pointer as well as buffer overflow.
6434 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6436 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6439 2019-04-24 Tom Tromey <tromey@adacore.com>
6441 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6443 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6445 * s12z-tdep.c (s12z_unwind_pc): Delete.
6446 (s12z_unwind_sp): Delete.
6447 (s12z_gdbarch_init): Don't register deleted functions with
6450 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6452 * rl78-tdep.c (rl78_unwind_sp): Delete.
6453 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6455 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6457 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6458 (xstormy16_unwind_pc): Delete.
6459 (xstormy16_dummy_id): Delete.
6460 (xstormy16_gdbarch_init): Don't register deleted functions with
6463 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6465 * vax-tdep.c (vax_unwind_pc): Delete.
6466 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6468 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6470 * v850-tdep.c (v850_unwind_sp): Delete.
6471 (v850_unwind_pc): Delete.
6472 (v850_dummy_id): Delete.
6473 (v850_gdbarch_init): Don't register deleted functions with
6476 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6478 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6479 (tilegx_unwind_pc): Delete.
6480 (tilegx_unwind_dummy_id): Delete.
6481 (tilegx_gdbarch_init): Don't register deleted functions with
6484 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6486 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6487 (tic6x_dummy_id): Delete.
6488 (tic6x_gdbarch_init): Don't register deleted functions with
6491 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6493 * sparc-tdep.c (sparc_unwind_pc): Delete.
6494 (sparc32_gdbarch_init): Don't register deleted function with
6497 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6499 * sh-tdep.c (sh_unwind_sp): Delete.
6500 (sh_unwind_pc): Delete.
6501 (sh_dummy_id): Delete.
6502 (sh_gdbarch_init): Don't register deleted functions with
6505 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6507 * score-tdep.c (score_unwind_sp): Delete.
6508 (score_unwind_pc): Delete.
6509 (score_dummy_id): Delete.
6510 (score_gdbarch_init): Don't register deleted functions with
6513 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6515 * rx-tdep.c (rx_unwind_pc): Delete.
6516 (rx_unwind_sp): Delete.
6517 (rx_dummy_id): Delete.
6518 (rx_gdbarch_init): Don't register deleted functions with
6519 gdbarch. Update comment.
6521 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6523 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6524 (rs6000_dummy_id): Delete.
6525 (rs6000_gdbarch_init): Don't register deleted functions with
6528 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6530 * or1k-tdep.c (or1k_dummy_id): Delete.
6531 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6533 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6535 * nios2-tdep.c (nios2_dummy_id): Delete.
6536 (nios2_unwind_sp): Delete.
6537 (nios2_gdbarch_init): Don't register deleted functions with
6540 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6542 * nds32-tdep.c (nds32_dummy_id): Delete.
6543 (nds32_unwind_pc): Delete.
6544 (nds32_unwind_sp): Delete.
6545 (nds32_gdbarch_init): Don't register deleted functions with
6548 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6550 * msp430-tdep.c (msp430_unwind_pc): Delete.
6551 (msp430_unwind_sp): Delete.
6552 (msp430_dummy_id): Delete.
6553 (msp430_gdbarch_init): Don't register deleted functions with
6556 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6558 * moxie-tdep.c (moxie_unwind_sp): Delete.
6559 (moxie_unwind_pc): Delete.
6560 (moxie_dummy_id): Delete.
6561 (moxie_gdbarch_init): Don't register deleted functions with
6564 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6566 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6567 (mn10300_unwind_pc): Delete.
6568 (mn10300_unwind_sp): Delete.
6569 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6571 (mn10300_frame_unwind_init): Don't register deleted functions with
6574 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6576 * mep-tdep.c (mep_unwind_pc): Delete.
6577 (mep_unwind_sp): Delete.
6578 (mep_dummy_id): Delete.
6579 (mep_gdbarch_init): Don't register deleted functions with
6582 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6584 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6585 (m68hc11_unwind_sp): Delete.
6586 (m68hc11_gdbarch_init): Don't register deleted functions with
6589 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6591 * m32r-tdep.c (m32r_unwind_sp): Delete.
6592 (m32r_unwind_pc): Delete.
6593 (m32r_dummy_id): Delete.
6594 (m32r_gdbarch_init): Don't register deleted functions with
6597 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6599 * m32c-tdep.c (m32c_unwind_pc): Delete.
6600 (m32c_unwind_sp): Delete.
6601 (m32c_dummy_id): Delete.
6602 (m32c_gdbarch_init): Don't register deleted functions with
6605 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6607 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6608 (lm32_unwind_pc): Delete.
6609 (lm32_dummy_id): Delete.
6610 (lm32_gdbarch_init): Don't register deleted functions with
6613 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6615 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6616 (iq2000_unwind_pc): Delete.
6617 (iq2000_dummy_id): Delete.
6618 (iq2000_gdbarch_init): Don't register deleted functions with
6621 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6623 * nds32-tdep.c (nds32_type_align): Delete.
6624 (nds32_push_dummy_call): Use type_align instead.
6626 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6628 * arm-tdep.c (arm_type_align): Only handle vector override case.
6629 (arm_push_dummy_call): Use type_align.
6630 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6632 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6634 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6636 (pass_on_stack): Use type_align.
6637 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6640 2019-04-23 Tom Tromey <tromey@adacore.com>
6642 * dwarf2read.c (line_header::file_name_at): Remove unused
6645 2019-04-23 Tom de Vries <tdevries@suse.de>
6648 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6652 2019-03-27 Ali Tamur <tamur@google.com>
6654 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6655 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6656 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6657 (dwarf_expr_context::get_addr_index): Likewise
6658 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6659 (symbol_needs_eval_context::get_addr_index): Likewise
6660 (disassemble_dwarf_expression): Add DW_OP_addrx
6661 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6662 (read_cutu_die_from_dwo): Update comment
6663 (skip_one_die): Add DW_FORM_addrx
6664 (read_attribute_value): Likewise
6665 (var_decode_location): Add DW_OP_addrx
6666 (dwarf2_const_value_attr): Add DW_FORM_addrx
6667 (dump_die_shallow): Likewise
6668 (dwarf2_fetch_constant_bytes): Likewise
6669 (decode_locdesc): Add DW_OP_addrx
6670 (skip_form_bytes): Add DW_FORM_addrx
6672 2019-04-22 Ali Tamur <tamur@google.com>
6674 * MAINTAINERS (Write After Approval): Add self.
6676 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
6678 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6679 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6680 (open_symbol_file_object): Likewise.
6681 (svr4_default_sos): Add info parameter.
6682 (svr4_read_so_list): Likewise.
6683 (svr4_current_sos_direct): Adjust functions calls to pass down
6685 (svr4_current_sos_1): Add info parameter.
6686 (svr4_current_sos): Call get_svr4_info, pass info down to
6688 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6690 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6692 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6694 (probes_table_remove_objfile_probes): Likewise.
6695 (register_solib_event_probe): Add info parameter.
6696 (solist_update_incremental): Pass info parameter down to
6698 (disable_probes_interface): Add info parameter.
6699 (svr4_handle_solib_event): Pass current_program_space to
6700 get_svr4_info. Adjust disable_probes_interface cleanup.
6701 (svr4_create_probe_breakpoints): Add info parameter, pass it
6702 down to register_solib_event_probe.
6703 (svr4_create_solib_event_breakpoints): Add info parameter,
6704 pass it down to svr4_create_probe_breakpoints.
6705 (enable_break): Pass info down to
6706 svr4_create_solib_event_breakpoints.
6707 (svr4_solib_create_inferior_hook): Pass current_program_space to
6709 (svr4_clear_solib): Likewise.
6711 2019-04-22 Pedro Alves <palves@redhat.com>
6713 * solib-svr4.c (svr4_free_objfile_observer): New.
6714 (probe_and_action::objfile): New field.
6715 (probes_table_htab_remove_objfile_probes)
6716 (probes_table_remove_objfile_probes): New functions.
6717 (register_solib_event_probe): Add 'objfile' parameter. Store it
6718 in the new probe_and_action. Don't store the probe in 'lookup'.
6719 (svr4_create_probe_breakpoints): Pass objfile to
6720 register_solib_event_probe.
6721 (_initialize_svr4_solib): Register a free_objfile observer.
6723 2019-04-19 Tom Tromey <tom@tromey.com>
6725 * common/queue.h: Remove.
6727 2019-04-19 Tom Tromey <tom@tromey.com>
6729 * event-loop.c: Don't include "common/queue.h".
6731 2019-04-19 Tom Tromey <tom@tromey.com>
6733 * remote.c (remote_target): Use delete.
6734 * remote-notif.h: Include <list>, not "common/queue.h".
6735 (notif_client_p): Remove typedef.
6736 (remote_notif_state): Add constructor, destructor, initializer.
6737 <notif_queue>: Now a std::list.
6738 (remote_notif_state_xfree): Don't declare.
6739 * remote-notif.c (remote_notif_process, handle_notification)
6740 (remote_notif_state_allocate): Update.
6741 (~remote_notif_state): Rename from remote_notif_state_xfree.
6743 2019-04-19 Tom Tromey <tom@tromey.com>
6745 * symfile.c (reread_symbols): Update.
6746 * objfiles.c (objfile_register_static_link)
6747 (objfile_lookup_static_link): Update
6748 (~objfile) Don't delete static_links.
6749 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6751 2019-04-19 Tom Tromey <tom@tromey.com>
6753 * type-stack.h (struct type_stack) <insert>: Constify string.
6754 * type-stack.c (type_stack::insert): Constify string.
6755 * gdbtypes.h (lookup_template_type): Update.
6756 (address_space_name_to_int): Update.
6757 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6759 (lookup_template_type): Make name const.
6760 * c-exp.y: Update rules.
6761 (lex_one_token, classify_name, classify_inner_name)
6762 (c_print_token): Update.
6763 * p-exp.y: Update rules.
6765 * f-exp.y: Update rules.
6767 * d-exp.y: Update rules.
6768 (lex_one_token, classify_name, classify_inner_name): Update.
6769 * parse.c (write_dollar_variable, copy_name): Return std::string.
6770 * parser-defs.h (copy_name): Change return type.
6771 * m2-exp.y: Update rules.
6773 * go-exp.y (lex_one_token): Update.
6775 (classify_unsafe_function, classify_packaged_name)
6776 (classify_name, yylex): Update.
6778 2019-04-19 Sergei Trofimovich <siarheit@google.com>
6780 * configure.ac: add --enable-source-highlight switch.
6781 * configure: Regenerate.
6782 * top.c (print_gdb_version): plumb --enable-source-highlight
6783 status to "show configuration".
6785 2019-04-19 Tom Tromey <tromey@adacore.com>
6787 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6789 (empty_record, ada_template_to_fixed_record_type_1)
6790 (template_to_static_fixed_type)
6791 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6792 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6793 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6796 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6799 * source.c (print_source_lines_base): Advance "iter" when a
6800 control character is seen.
6802 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6804 * inferior.h (struct infcall_suspend_state_deleter):
6805 Catch exception in destructor to avoid crash.
6807 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6809 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6810 close to the add_com "shell".
6812 2019-04-18 Tom Tromey <tromey@adacore.com>
6814 * process-stratum-target.h (class process_stratum_target)
6815 <stratum>: Add "final".
6817 2019-04-17 Tom Tromey <tromey@adacore.com>
6819 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6820 against nullptr before use.
6822 2019-04-17 Alan Hayward <alan.hayward@arm.com>
6824 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6826 2019-04-17 Jim Wilson <jimw@sifive.com>
6827 Andrew Burgess <andrew.burgess@embecosm.com>
6829 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6830 code read might fail, assume 4-byte breakpoint in that case.
6832 2019-04-15 Leszek Swirski <leszeks@google.com>
6834 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6835 rather than a hand-rolled POD check when checking for forced MEMORY
6838 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6840 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6841 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6843 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6844 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6845 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6848 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6850 * aarch64-linux-nat.c
6851 (aarch64_linux_nat_target::thread_architecture): Add override.
6852 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6855 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6857 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6859 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6861 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6862 target types of size 96-bits, add some additional comments, and
6863 check that the builtin type we found was the correct size.
6865 2019-04-12 Eli Zaretskii <eliz@gnu.org>
6867 * utils.c (prompt_for_continue): Don't restore the styling at the
6868 end, as applied_style has the wrong value. This fixes styling in
6869 long lists of file names that are interrupted by the "Continue?"
6872 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6874 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6875 * c-lang.c (c_language_defn): Likewise.
6876 (cplus_language_defn): Likewise.
6877 (asm_language_defn): Likewise.
6878 (minimal_language_defn): Likewise.
6879 * d-lang.c (d_language_defn): Likewise.
6880 * f-lang.c (f_language_defn): Likewise.
6881 * go-lang.c (go_language_defn): Likewise.
6882 * language.c (unknown_language_defn): Likewise.
6883 (auto_language_defn): Likewise.
6884 * language.h (struct language_defn): Remove la_magic field.
6885 (LANG_MAGIC): Delete.
6886 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6887 * objc-lang.c (objc_language_defn): Likewise.
6888 * opencl-lang.c (opencl_language_defn): Likewise.
6889 * p-lang.c (pascal_language_defn): Likewise.
6890 * rust-lang.c (rust_language_defn): Likewise.
6892 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6894 * riscv-tdep.c (riscv_type_align): New function.
6895 (riscv_type_alignment): Delete.
6896 (riscv_arg_location): Use 'type_align'.
6897 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6899 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6901 * gdbtypes.c (type_align): A struct with no non-static fields also
6904 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6906 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6908 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6910 (riscv_struct_info::analyse): New implementation using new
6911 analyse_inner member function.
6912 (riscv_struct_info::field_offset): New member function.
6913 (riscv_struct_info::m_offsets): New member variable.
6914 (riscv_struct_info::analyse_inner): New private member function,
6915 takes the old implementation of riscv_struct_info::analyse but
6916 extended to track field offsets.
6917 (riscv_call_arg_struct): Update the struct folding special cases
6918 to handle cases where empty C++ structs, which are non-zero
6920 (riscv_arg_location): Initialise the length of each location, a
6921 non-zero length now indicates the location is in use.
6922 (riscv_push_dummy_call): Allow for the first location having a
6923 non-zero offset when setting up arguments.
6924 (riscv_return_value): Likewise, but for return values.
6926 2019-04-11 Tom Tromey <tromey@adacore.com>
6928 * utils.c (internal_vproblem): Make "msg" const.
6930 2019-04-11 Alan Hayward <alan.hayward@arm.com>
6932 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6933 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6934 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6935 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6937 2019-04-10 Kevin Buettner <kevinb@redhat.com>
6939 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6941 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6942 of amd64_collect_native_gregset.
6943 (amd64_linux_nat_target::store_registers): Likewise.
6945 2019-04-10 Tom Tromey <tom@tromey.com>
6947 * symtab.c (lookup_global_symbol_from_objfile)
6948 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6949 * objfiles.h (class separate_debug_iterator): New.
6950 (class separate_debug_range): New.
6951 (struct objfile) <separate_debug_objfiles>: New method.
6952 (objfile_separate_debug_iterate): Don't declare.
6953 * objfiles.c (separate_debug_iterator::operator++): Rename from
6954 objfile_separate_debug_iterate.
6955 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6957 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6960 2019-04-10 Tom Tromey <tom@tromey.com>
6962 * symfile.c (reread_symbols): Remove old comment.
6963 * objfiles.c (free_all_objfiles): Fix a typo.
6965 2019-04-10 Tom Tromey <tom@tromey.com>
6967 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6968 * minsyms.c (lookup_minimal_symbol): Use foreach.
6969 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6970 (lookup_minimal_symbol_solib_trampoline): Likewise.
6971 * symfile.c (reread_symbols): Use foreach.
6973 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
6974 Tom Tromey <tromey@adacore.com>
6977 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6978 (rust_lex_int_test): Change "value" to be LONGEST.
6979 (rust_lex_tests): Add test for long integer literal.
6981 2019-04-09 Tom Tromey <tromey@adacore.com>
6983 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6985 (extended_remote_target::attach): Update.
6986 (remote_target::remote_notice_new_inferior): Update.
6987 (remote_target::add_current_inferior_and_thread): Update.
6988 * inferior.c (exit_inferior_1): Use "false".
6989 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6991 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
6993 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6994 the "start" command.
6996 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6998 * python/py-inferior.c (infpy_thread_from_thread_handle):
6999 Adjust comments to reflect renaming of thread_from_thread_handle
7000 to thread_from_handle. Adjust keywords. Fix type error message.
7001 (inferior_object_methods): Add thread_from_handle. Retain
7002 thread_from_thread_handle, but mark it as deprecated.
7004 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7006 * gdbthread.h (find_thread_by_handle): Revise declaration.
7007 * thread.c (find_thread_by_handle): Likewise. Adjust
7009 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7010 support for buffer objects as handles.
7012 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7014 * python/py-infthread.c (thpy_thread_handle): New function.
7015 (thread_object_methods): Register thpy_thread_handle.
7017 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7019 * gdbthread.h (thread_to_thread_handle): Declare.
7020 * thread.c (gdbtypes.h): Include.
7021 (thread_to_thread_handle): New function.
7023 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7024 (target_thread_info_to_thread_handle): Declare.
7025 * target.c (target_thread_info_to_thread_handle): New function.
7026 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7027 * target-delegates.c: Regenerate.
7029 * linux-thread-db.c (class thread_db_target): Add method
7030 thread_info_to_thread_handle.
7031 (thread_db_target::thread_info_to_thread_handle): Define.
7032 * remote.c (class remote_target): Add new method
7033 thread_info_to_thread_handle.
7034 (remote_target::thread_info_to_thread_handle): Define.
7036 2019-04-08 Pedro Alves <palves@redhat.com>
7038 * common/common-exceptions.c (throw_exception): Don't create
7039 named object to throw; throw directly.
7040 (throw_it): Likewise. Don't initialize gdb_exception::message
7041 here, with new; pass FMT and AP to the ctor instead.
7042 * common/common-exceptions.h: Include <string>.
7043 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7044 const char *, va_list)): New ctor. Use std::make_shared.
7045 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7047 (gdb_exception_error::gdb_exception_error(enum errors, const char
7049 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7051 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7053 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7054 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7057 2019-04-08 Tom Tromey <tom@tromey.com>
7059 * valops.c (value_rtti_indirect_type): Replace throw_exception
7061 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7063 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7065 * target.c (target_translate_tls_address): Replace throw_exception
7067 * stack.c (frame_apply_command_count): Replace throw_exception
7069 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7071 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7073 * rs6000-tdep.c (rs6000_frame_cache)
7074 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7075 * remote.c: Replace throw_exception with throw.
7076 * record-full.c (record_full_message, record_full_wait_1)
7077 (record_full_restore): Replace throw_exception with throw.
7079 (get_thread_current_frame_id, record_btrace_start_replaying)
7080 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7081 (cmd_record_btrace_start): Replace throw_exception with throw.
7082 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7084 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7085 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7087 (find_linespec_symbols): Replace throw_exception with throw.
7088 * infrun.c (displaced_step_prepare, resume): Replace
7089 throw_exception with throw.
7090 * infcmd.c (post_create_inferior): Replace throw_exception with
7092 * inf-loop.c (inferior_event_handler): Replace throw_exception
7094 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7095 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7096 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7097 (get_prev_frame_always, get_frame_pc_if_available)
7098 (get_frame_address_in_block_if_available, get_frame_language):
7099 Replace throw_exception with throw.
7100 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7101 throw_exception with throw.
7102 * eval.c (fetch_subexp_value, evaluate_var_value)
7103 (evaluate_funcall, evaluate_subexp_standard): Replace
7104 throw_exception with throw.
7105 * dwarf2loc.c (call_site_find_chain)
7106 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7107 Replace throw_exception with throw.
7108 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7110 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7112 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7113 * completer.c (complete_line_internal): Replace throw_exception
7115 * compile/compile-object-run.c (compile_object_run): Replace
7116 throw_exception with throw.
7117 * cli/cli-script.c (process_next_line): Replace throw_exception
7119 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7120 (btrace_enable, btrace_maint_update_pt_packets): Replace
7121 throw_exception with throw.
7122 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7123 throw_exception with throw.
7124 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7125 throw_exception with throw.
7126 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7127 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7128 * aarch64-tdep.c (aarch64_make_prologue_cache)
7129 (aarch64_make_stub_cache): Replace throw_exception with throw.
7131 2019-04-08 Tom Tromey <tom@tromey.com>
7133 * common/common-exceptions.c (throw_exception): Rename from
7134 throw_exception_cxx. Remove old copy. Make argument const.
7135 (throw_it): Create and throw exception objects directly.
7136 * common/common-exceptions.h (throw_exception): Make argument
7138 (struct gdb_exception_error): Add constructor.
7139 (struct gdb_exception_quit): Add constructor.
7141 2019-04-08 Tom Tromey <tom@tromey.com>
7143 * common/common-exceptions.h (exception_rethrow): Don't declare.
7144 (TRY_SJLJ): Update comment.
7145 (TRY, CATCH, END_CATCH): Remove.
7146 * common/common-exceptions.c (exception_rethrow): Remove.
7148 2019-04-08 Tom Tromey <tom@tromey.com>
7150 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7152 (gdb_exception_error): Rename from
7153 gdb_exception_RETURN_MASK_ERROR.
7154 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7155 (gdb_quit_bad_alloc): Update.
7156 * aarch64-tdep.c: Update.
7157 * ada-lang.c: Update.
7158 * ada-typeprint.c: Update.
7159 * ada-valprint.c: Update.
7160 * amd64-tdep.c: Update.
7161 * arch-utils.c: Update.
7162 * break-catch-throw.c: Update.
7163 * breakpoint.c: Update.
7165 * c-varobj.c: Update.
7166 * cli/cli-cmds.c: Update.
7167 * cli/cli-interp.c: Update.
7168 * cli/cli-script.c: Update.
7169 * common/common-exceptions.c: Update.
7170 * common/new-op.c: Update.
7171 * common/selftest.c: Update.
7172 * compile/compile-c-symbols.c: Update.
7173 * compile/compile-cplus-symbols.c: Update.
7174 * compile/compile-object-load.c: Update.
7175 * compile/compile-object-run.c: Update.
7176 * completer.c: Update.
7177 * corelow.c: Update.
7179 * cp-support.c: Update.
7180 * cp-valprint.c: Update.
7181 * darwin-nat.c: Update.
7182 * disasm-selftests.c: Update.
7183 * dtrace-probe.c: Update.
7184 * dwarf-index-cache.c: Update.
7185 * dwarf-index-write.c: Update.
7186 * dwarf2-frame-tailcall.c: Update.
7187 * dwarf2-frame.c: Update.
7188 * dwarf2loc.c: Update.
7189 * dwarf2read.c: Update.
7191 * event-loop.c: Update.
7192 * event-top.c: Update.
7194 * f-valprint.c: Update.
7195 * fbsd-tdep.c: Update.
7196 * frame-unwind.c: Update.
7198 * gdbtypes.c: Update.
7199 * gnu-v3-abi.c: Update.
7200 * guile/guile-internal.h: Update.
7201 * guile/scm-block.c: Update.
7202 * guile/scm-breakpoint.c: Update.
7203 * guile/scm-cmd.c: Update.
7204 * guile/scm-disasm.c: Update.
7205 * guile/scm-frame.c: Update.
7206 * guile/scm-lazy-string.c: Update.
7207 * guile/scm-math.c: Update.
7208 * guile/scm-param.c: Update.
7209 * guile/scm-ports.c: Update.
7210 * guile/scm-pretty-print.c: Update.
7211 * guile/scm-symbol.c: Update.
7212 * guile/scm-symtab.c: Update.
7213 * guile/scm-type.c: Update.
7214 * guile/scm-value.c: Update.
7215 * i386-linux-tdep.c: Update.
7216 * i386-tdep.c: Update.
7217 * inf-loop.c: Update.
7218 * infcall.c: Update.
7222 * language.c: Update.
7223 * linespec.c: Update.
7224 * linux-fork.c: Update.
7225 * linux-nat.c: Update.
7226 * linux-tdep.c: Update.
7227 * linux-thread-db.c: Update.
7229 * mi/mi-cmd-break.c: Update.
7230 * mi/mi-cmd-stack.c: Update.
7231 * mi/mi-interp.c: Update.
7232 * mi/mi-main.c: Update.
7233 * objc-lang.c: Update.
7234 * p-valprint.c: Update.
7236 * ppc-linux-tdep.c: Update.
7237 * printcmd.c: Update.
7238 * python/py-arch.c: Update.
7239 * python/py-breakpoint.c: Update.
7240 * python/py-cmd.c: Update.
7241 * python/py-finishbreakpoint.c: Update.
7242 * python/py-frame.c: Update.
7243 * python/py-framefilter.c: Update.
7244 * python/py-gdb-readline.c: Update.
7245 * python/py-inferior.c: Update.
7246 * python/py-infthread.c: Update.
7247 * python/py-lazy-string.c: Update.
7248 * python/py-linetable.c: Update.
7249 * python/py-objfile.c: Update.
7250 * python/py-param.c: Update.
7251 * python/py-prettyprint.c: Update.
7252 * python/py-progspace.c: Update.
7253 * python/py-record-btrace.c: Update.
7254 * python/py-record.c: Update.
7255 * python/py-symbol.c: Update.
7256 * python/py-type.c: Update.
7257 * python/py-unwind.c: Update.
7258 * python/py-utils.c: Update.
7259 * python/py-value.c: Update.
7260 * python/python.c: Update.
7261 * record-btrace.c: Update.
7262 * record-full.c: Update.
7263 * remote-fileio.c: Update.
7265 * riscv-tdep.c: Update.
7266 * rs6000-aix-tdep.c: Update.
7267 * rs6000-tdep.c: Update.
7268 * rust-exp.y: Update.
7269 * rust-lang.c: Update.
7270 * s390-tdep.c: Update.
7271 * selftest-arch.c: Update.
7272 * solib-dsbt.c: Update.
7273 * solib-frv.c: Update.
7274 * solib-spu.c: Update.
7275 * solib-svr4.c: Update.
7277 * sparc64-linux-tdep.c: Update.
7279 * symfile-mem.c: Update.
7280 * symmisc.c: Update.
7284 * tracefile-tfile.c: Update.
7285 * tui/tui.c: Update.
7286 * typeprint.c: Update.
7287 * unittests/cli-utils-selftests.c: Update.
7288 * unittests/parse-connection-spec-selftests.c: Update.
7290 * valprint.c: Update.
7293 * windows-nat.c: Update.
7294 * x86-linux-nat.c: Update.
7295 * xml-support.c: Update.
7297 2019-04-08 Tom Tromey <tom@tromey.com>
7299 * xml-support.c: Use C++ exception handling.
7300 * x86-linux-nat.c: Use C++ exception handling.
7301 * windows-nat.c: Use C++ exception handling.
7302 * varobj.c: Use C++ exception handling.
7303 * value.c: Use C++ exception handling.
7304 * valprint.c: Use C++ exception handling.
7305 * valops.c: Use C++ exception handling.
7306 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7308 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7309 * typeprint.c: Use C++ exception handling.
7310 * tui/tui.c: Use C++ exception handling.
7311 * tracefile-tfile.c: Use C++ exception handling.
7312 * top.c: Use C++ exception handling.
7313 * thread.c: Use C++ exception handling.
7314 * target.c: Use C++ exception handling.
7315 * symmisc.c: Use C++ exception handling.
7316 * symfile-mem.c: Use C++ exception handling.
7317 * stack.c: Use C++ exception handling.
7318 * sparc64-linux-tdep.c: Use C++ exception handling.
7319 * solib.c: Use C++ exception handling.
7320 * solib-svr4.c: Use C++ exception handling.
7321 * solib-spu.c: Use C++ exception handling.
7322 * solib-frv.c: Use C++ exception handling.
7323 * solib-dsbt.c: Use C++ exception handling.
7324 * selftest-arch.c: Use C++ exception handling.
7325 * s390-tdep.c: Use C++ exception handling.
7326 * rust-lang.c: Use C++ exception handling.
7327 * rust-exp.y: Use C++ exception handling.
7328 * rs6000-tdep.c: Use C++ exception handling.
7329 * rs6000-aix-tdep.c: Use C++ exception handling.
7330 * riscv-tdep.c: Use C++ exception handling.
7331 * remote.c: Use C++ exception handling.
7332 * remote-fileio.c: Use C++ exception handling.
7333 * record-full.c: Use C++ exception handling.
7334 * record-btrace.c: Use C++ exception handling.
7335 * python/python.c: Use C++ exception handling.
7336 * python/py-value.c: Use C++ exception handling.
7337 * python/py-utils.c: Use C++ exception handling.
7338 * python/py-unwind.c: Use C++ exception handling.
7339 * python/py-type.c: Use C++ exception handling.
7340 * python/py-symbol.c: Use C++ exception handling.
7341 * python/py-record.c: Use C++ exception handling.
7342 * python/py-record-btrace.c: Use C++ exception handling.
7343 * python/py-progspace.c: Use C++ exception handling.
7344 * python/py-prettyprint.c: Use C++ exception handling.
7345 * python/py-param.c: Use C++ exception handling.
7346 * python/py-objfile.c: Use C++ exception handling.
7347 * python/py-linetable.c: Use C++ exception handling.
7348 * python/py-lazy-string.c: Use C++ exception handling.
7349 * python/py-infthread.c: Use C++ exception handling.
7350 * python/py-inferior.c: Use C++ exception handling.
7351 * python/py-gdb-readline.c: Use C++ exception handling.
7352 * python/py-framefilter.c: Use C++ exception handling.
7353 * python/py-frame.c: Use C++ exception handling.
7354 * python/py-finishbreakpoint.c: Use C++ exception handling.
7355 * python/py-cmd.c: Use C++ exception handling.
7356 * python/py-breakpoint.c: Use C++ exception handling.
7357 * python/py-arch.c: Use C++ exception handling.
7358 * printcmd.c: Use C++ exception handling.
7359 * ppc-linux-tdep.c: Use C++ exception handling.
7360 * parse.c: Use C++ exception handling.
7361 * p-valprint.c: Use C++ exception handling.
7362 * objc-lang.c: Use C++ exception handling.
7363 * mi/mi-main.c: Use C++ exception handling.
7364 * mi/mi-interp.c: Use C++ exception handling.
7365 * mi/mi-cmd-stack.c: Use C++ exception handling.
7366 * mi/mi-cmd-break.c: Use C++ exception handling.
7367 * main.c: Use C++ exception handling.
7368 * linux-thread-db.c: Use C++ exception handling.
7369 * linux-tdep.c: Use C++ exception handling.
7370 * linux-nat.c: Use C++ exception handling.
7371 * linux-fork.c: Use C++ exception handling.
7372 * linespec.c: Use C++ exception handling.
7373 * language.c: Use C++ exception handling.
7374 * jit.c: Use C++ exception handling.
7375 * infrun.c: Use C++ exception handling.
7376 * infcmd.c: Use C++ exception handling.
7377 * infcall.c: Use C++ exception handling.
7378 * inf-loop.c: Use C++ exception handling.
7379 * i386-tdep.c: Use C++ exception handling.
7380 * i386-linux-tdep.c: Use C++ exception handling.
7381 * guile/scm-value.c: Use C++ exception handling.
7382 * guile/scm-type.c: Use C++ exception handling.
7383 * guile/scm-symtab.c: Use C++ exception handling.
7384 * guile/scm-symbol.c: Use C++ exception handling.
7385 * guile/scm-pretty-print.c: Use C++ exception handling.
7386 * guile/scm-ports.c: Use C++ exception handling.
7387 * guile/scm-param.c: Use C++ exception handling.
7388 * guile/scm-math.c: Use C++ exception handling.
7389 * guile/scm-lazy-string.c: Use C++ exception handling.
7390 * guile/scm-frame.c: Use C++ exception handling.
7391 * guile/scm-disasm.c: Use C++ exception handling.
7392 * guile/scm-cmd.c: Use C++ exception handling.
7393 * guile/scm-breakpoint.c: Use C++ exception handling.
7394 * guile/scm-block.c: Use C++ exception handling.
7395 * guile/guile-internal.h: Use C++ exception handling.
7396 * gnu-v3-abi.c: Use C++ exception handling.
7397 * gdbtypes.c: Use C++ exception handling.
7398 * frame.c: Use C++ exception handling.
7399 * frame-unwind.c: Use C++ exception handling.
7400 * fbsd-tdep.c: Use C++ exception handling.
7401 * f-valprint.c: Use C++ exception handling.
7402 * exec.c: Use C++ exception handling.
7403 * event-top.c: Use C++ exception handling.
7404 * event-loop.c: Use C++ exception handling.
7405 * eval.c: Use C++ exception handling.
7406 * dwarf2read.c: Use C++ exception handling.
7407 * dwarf2loc.c: Use C++ exception handling.
7408 * dwarf2-frame.c: Use C++ exception handling.
7409 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7410 * dwarf-index-write.c: Use C++ exception handling.
7411 * dwarf-index-cache.c: Use C++ exception handling.
7412 * dtrace-probe.c: Use C++ exception handling.
7413 * disasm-selftests.c: Use C++ exception handling.
7414 * darwin-nat.c: Use C++ exception handling.
7415 * cp-valprint.c: Use C++ exception handling.
7416 * cp-support.c: Use C++ exception handling.
7417 * cp-abi.c: Use C++ exception handling.
7418 * corelow.c: Use C++ exception handling.
7419 * completer.c: Use C++ exception handling.
7420 * compile/compile-object-run.c: Use C++ exception handling.
7421 * compile/compile-object-load.c: Use C++ exception handling.
7422 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7423 * compile/compile-c-symbols.c: Use C++ exception handling.
7424 * common/selftest.c: Use C++ exception handling.
7425 * common/new-op.c: Use C++ exception handling.
7426 * cli/cli-script.c: Use C++ exception handling.
7427 * cli/cli-interp.c: Use C++ exception handling.
7428 * cli/cli-cmds.c: Use C++ exception handling.
7429 * c-varobj.c: Use C++ exception handling.
7430 * btrace.c: Use C++ exception handling.
7431 * breakpoint.c: Use C++ exception handling.
7432 * break-catch-throw.c: Use C++ exception handling.
7433 * arch-utils.c: Use C++ exception handling.
7434 * amd64-tdep.c: Use C++ exception handling.
7435 * ada-valprint.c: Use C++ exception handling.
7436 * ada-typeprint.c: Use C++ exception handling.
7437 * ada-lang.c: Use C++ exception handling.
7438 * aarch64-tdep.c: Use C++ exception handling.
7440 2019-04-08 Tom Tromey <tom@tromey.com>
7442 * xml-support.c (gdb_xml_parser::parse): Update.
7443 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7444 * value.c (show_convenience): Update.
7445 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7446 (test_parse_flags_qcs): Update.
7447 * thread.c (thr_try_catch_cmd): Update.
7448 * target.c (target_translate_tls_address): Update.
7449 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7450 (info_frame_command_core, frame_apply_command_count): Update.
7451 * rust-exp.y (rust_lex_exception_test): Update.
7452 * riscv-tdep.c (riscv_print_one_register_info): Update.
7453 * remote.c (remote_target::enable_btrace): Update.
7454 * record-btrace.c (record_btrace_enable_warn): Update.
7455 * python/py-utils.c (gdbpy_convert_exception): Update.
7456 * printcmd.c (do_one_display, print_variable_and_value): Update.
7457 * mi/mi-main.c (mi_print_exception): Update.
7458 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7459 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7460 * linux-nat.c (linux_nat_target::attach): Update.
7461 * linux-fork.c (class scoped_switch_fork_info): Update.
7462 * infrun.c (displaced_step_prepare): Update.
7463 * infcall.c (call_function_by_hand_dummy): Update.
7464 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7465 * gnu-v3-abi.c (print_one_vtable): Update.
7466 * frame.c (get_prev_frame_always): Update.
7467 * f-valprint.c (info_common_command_for_block): Update.
7468 * exec.c (try_open_exec_file): Update.
7469 * exceptions.c (print_exception, exception_print)
7470 (exception_fprintf, exception_print_same): Update.
7471 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7472 * dwarf-index-cache.c (index_cache::store)
7473 (index_cache::lookup_gdb_index): Update.
7474 * darwin-nat.c (maybe_cache_shell): Update.
7475 * cp-valprint.c (cp_print_value_fields): Update.
7476 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7477 (gcc_cplus_symbol_address): Update.
7478 * compile/compile-c-symbols.c (gcc_convert_symbol)
7479 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7480 * common/selftest.c: Update.
7481 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7483 (exception_try_scope_entry, exception_try_scope_exit): Don't
7485 (struct exception_try_scope): Remove.
7486 (TRY): Don't use exception_try_scope.
7487 (struct gdb_exception): Add constructor, operator=.
7489 (struct gdb_exception_RETURN_MASK_ALL)
7490 (struct gdb_exception_RETURN_MASK_ERROR)
7491 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7492 (struct gdb_quit_bad_alloc): Update.
7493 * common/common-exceptions.c (exception_none): Change
7495 (struct catcher) <state, exception>: Initialize inline.
7496 <prev>: Remove member.
7497 (current_catcher): Remove.
7498 (catchers): New global.
7499 (exceptions_state_mc_init): Simplify.
7500 (catcher_pop): Remove.
7501 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7502 (try_scope_depth, exception_try_scope_entry)
7503 (exception_try_scope_exit): Remove.
7504 (throw_exception_sjlj): Update.
7505 (exception_messages, exception_messages_size): Remove.
7506 (throw_it): Simplify.
7507 (gdb_exception_sliced_copy): Remove.
7508 (throw_exception_cxx): Update.
7509 * cli/cli-script.c (script_from_file): Update.
7510 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7512 * ada-valprint.c (ada_val_print): Update.
7513 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7514 (create_excep_cond_exprs): Update.
7516 2019-04-08 Tom Tromey <tom@tromey.com>
7518 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7519 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7520 (TRY, CATCH, END_CATCH): Remove some definitions.
7521 * common/common-exceptions.c: Don't use GDB_XCPT.
7522 (catcher_list_size): Remove.
7523 (throw_exception, throw_it): Simplify.
7525 2019-04-05 Tom Tromey <tom@tromey.com>
7527 Revert the header-sorting patch.
7528 * ft32-tdep.c: Revert.
7529 * frv-tdep.c: Revert.
7530 * frv-linux-tdep.c: Revert.
7532 * frame-unwind.c: Revert.
7533 * frame-base.c: Revert.
7534 * fork-child.c: Revert.
7535 * findvar.c: Revert.
7536 * findcmd.c: Revert.
7537 * filesystem.c: Revert.
7538 * filename-seen-cache.h: Revert.
7539 * filename-seen-cache.c: Revert.
7540 * fbsd-tdep.c: Revert.
7541 * fbsd-nat.h: Revert.
7542 * fbsd-nat.c: Revert.
7543 * f-valprint.c: Revert.
7544 * f-typeprint.c: Revert.
7546 * extension.h: Revert.
7547 * extension.c: Revert.
7548 * extension-priv.h: Revert.
7549 * expprint.c: Revert.
7552 * exceptions.c: Revert.
7553 * event-top.c: Revert.
7554 * event-loop.c: Revert.
7556 * elfread.c: Revert.
7557 * dwarf2read.h: Revert.
7558 * dwarf2read.c: Revert.
7559 * dwarf2loc.c: Revert.
7560 * dwarf2expr.h: Revert.
7561 * dwarf2expr.c: Revert.
7562 * dwarf2-frame.c: Revert.
7563 * dwarf2-frame-tailcall.c: Revert.
7564 * dwarf-index-write.h: Revert.
7565 * dwarf-index-write.c: Revert.
7566 * dwarf-index-common.c: Revert.
7567 * dwarf-index-cache.h: Revert.
7568 * dwarf-index-cache.c: Revert.
7569 * dummy-frame.c: Revert.
7570 * dtrace-probe.c: Revert.
7573 * disasm-selftests.c: Revert.
7574 * dictionary.c: Revert.
7575 * dicos-tdep.c: Revert.
7576 * demangle.c: Revert.
7579 * darwin-nat.h: Revert.
7580 * darwin-nat.c: Revert.
7581 * darwin-nat-info.c: Revert.
7582 * d-valprint.c: Revert.
7583 * d-namespace.c: Revert.
7586 * csky-tdep.c: Revert.
7587 * csky-linux-tdep.c: Revert.
7588 * cris-tdep.c: Revert.
7589 * cris-linux-tdep.c: Revert.
7590 * cp-valprint.c: Revert.
7591 * cp-support.c: Revert.
7592 * cp-namespace.c: Revert.
7594 * corelow.c: Revert.
7595 * corefile.c: Revert.
7596 * continuations.c: Revert.
7597 * completer.h: Revert.
7598 * completer.c: Revert.
7599 * complaints.c: Revert.
7600 * coffread.c: Revert.
7601 * coff-pe-read.c: Revert.
7602 * cli-out.h: Revert.
7603 * cli-out.c: Revert.
7604 * charset.c: Revert.
7605 * c-varobj.c: Revert.
7606 * c-valprint.c: Revert.
7607 * c-typeprint.c: Revert.
7609 * buildsym.c: Revert.
7610 * buildsym-legacy.c: Revert.
7611 * build-id.h: Revert.
7612 * build-id.c: Revert.
7614 * bsd-uthread.c: Revert.
7615 * breakpoint.h: Revert.
7616 * breakpoint.c: Revert.
7617 * break-catch-throw.c: Revert.
7618 * break-catch-syscall.c: Revert.
7619 * break-catch-sig.c: Revert.
7620 * blockframe.c: Revert.
7622 * bfin-tdep.c: Revert.
7623 * bfin-linux-tdep.c: Revert.
7624 * bfd-target.c: Revert.
7626 * ax-general.c: Revert.
7629 * avr-tdep.c: Revert.
7631 * auto-load.c: Revert.
7632 * arm-wince-tdep.c: Revert.
7633 * arm-tdep.c: Revert.
7634 * arm-symbian-tdep.c: Revert.
7635 * arm-pikeos-tdep.c: Revert.
7636 * arm-obsd-tdep.c: Revert.
7637 * arm-nbsd-tdep.c: Revert.
7638 * arm-nbsd-nat.c: Revert.
7639 * arm-linux-tdep.c: Revert.
7640 * arm-linux-nat.c: Revert.
7641 * arm-fbsd-tdep.c: Revert.
7642 * arm-fbsd-nat.c: Revert.
7643 * arm-bsd-tdep.c: Revert.
7644 * arch-utils.c: Revert.
7645 * arc-tdep.c: Revert.
7646 * arc-newlib-tdep.c: Revert.
7647 * annotate.h: Revert.
7648 * annotate.c: Revert.
7649 * amd64-windows-tdep.c: Revert.
7650 * amd64-windows-nat.c: Revert.
7651 * amd64-tdep.c: Revert.
7652 * amd64-sol2-tdep.c: Revert.
7653 * amd64-obsd-tdep.c: Revert.
7654 * amd64-obsd-nat.c: Revert.
7655 * amd64-nbsd-tdep.c: Revert.
7656 * amd64-nbsd-nat.c: Revert.
7657 * amd64-nat.c: Revert.
7658 * amd64-linux-tdep.c: Revert.
7659 * amd64-linux-nat.c: Revert.
7660 * amd64-fbsd-tdep.c: Revert.
7661 * amd64-fbsd-nat.c: Revert.
7662 * amd64-dicos-tdep.c: Revert.
7663 * amd64-darwin-tdep.c: Revert.
7664 * amd64-bsd-nat.c: Revert.
7665 * alpha-tdep.c: Revert.
7666 * alpha-obsd-tdep.c: Revert.
7667 * alpha-nbsd-tdep.c: Revert.
7668 * alpha-mdebug-tdep.c: Revert.
7669 * alpha-linux-tdep.c: Revert.
7670 * alpha-linux-nat.c: Revert.
7671 * alpha-bsd-tdep.c: Revert.
7672 * alpha-bsd-nat.c: Revert.
7673 * aix-thread.c: Revert.
7675 * addrmap.c: Revert.
7676 * ada-varobj.c: Revert.
7677 * ada-valprint.c: Revert.
7678 * ada-typeprint.c: Revert.
7679 * ada-tasks.c: Revert.
7680 * ada-lang.c: Revert.
7681 * aarch64-tdep.c: Revert.
7682 * aarch64-ravenscar-thread.c: Revert.
7683 * aarch64-newlib-tdep.c: Revert.
7684 * aarch64-linux-tdep.c: Revert.
7685 * aarch64-linux-nat.c: Revert.
7686 * aarch64-fbsd-tdep.c: Revert.
7687 * aarch64-fbsd-nat.c: Revert.
7688 * aarch32-linux-nat.c: Revert.
7690 2019-04-05 Tom Tromey <tom@tromey.com>
7692 * ft32-tdep.c: Sort headers.
7693 * frv-tdep.c: Sort headers.
7694 * frv-linux-tdep.c: Sort headers.
7695 * frame.c: Sort headers.
7696 * frame-unwind.c: Sort headers.
7697 * frame-base.c: Sort headers.
7698 * fork-child.c: Sort headers.
7699 * findvar.c: Sort headers.
7700 * findcmd.c: Sort headers.
7701 * filesystem.c: Sort headers.
7702 * filename-seen-cache.h: Sort headers.
7703 * filename-seen-cache.c: Sort headers.
7704 * fbsd-tdep.c: Sort headers.
7705 * fbsd-nat.h: Sort headers.
7706 * fbsd-nat.c: Sort headers.
7707 * f-valprint.c: Sort headers.
7708 * f-typeprint.c: Sort headers.
7709 * f-lang.c: Sort headers.
7710 * extension.h: Sort headers.
7711 * extension.c: Sort headers.
7712 * extension-priv.h: Sort headers.
7713 * expprint.c: Sort headers.
7714 * exec.h: Sort headers.
7715 * exec.c: Sort headers.
7716 * exceptions.c: Sort headers.
7717 * event-top.c: Sort headers.
7718 * event-loop.c: Sort headers.
7719 * eval.c: Sort headers.
7720 * elfread.c: Sort headers.
7721 * dwarf2read.h: Sort headers.
7722 * dwarf2read.c: Sort headers.
7723 * dwarf2loc.c: Sort headers.
7724 * dwarf2expr.h: Sort headers.
7725 * dwarf2expr.c: Sort headers.
7726 * dwarf2-frame.c: Sort headers.
7727 * dwarf2-frame-tailcall.c: Sort headers.
7728 * dwarf-index-write.h: Sort headers.
7729 * dwarf-index-write.c: Sort headers.
7730 * dwarf-index-common.c: Sort headers.
7731 * dwarf-index-cache.h: Sort headers.
7732 * dwarf-index-cache.c: Sort headers.
7733 * dummy-frame.c: Sort headers.
7734 * dtrace-probe.c: Sort headers.
7735 * disasm.h: Sort headers.
7736 * disasm.c: Sort headers.
7737 * disasm-selftests.c: Sort headers.
7738 * dictionary.c: Sort headers.
7739 * dicos-tdep.c: Sort headers.
7740 * demangle.c: Sort headers.
7741 * dcache.h: Sort headers.
7742 * dcache.c: Sort headers.
7743 * darwin-nat.h: Sort headers.
7744 * darwin-nat.c: Sort headers.
7745 * darwin-nat-info.c: Sort headers.
7746 * d-valprint.c: Sort headers.
7747 * d-namespace.c: Sort headers.
7748 * d-lang.c: Sort headers.
7749 * ctf.c: Sort headers.
7750 * csky-tdep.c: Sort headers.
7751 * csky-linux-tdep.c: Sort headers.
7752 * cris-tdep.c: Sort headers.
7753 * cris-linux-tdep.c: Sort headers.
7754 * cp-valprint.c: Sort headers.
7755 * cp-support.c: Sort headers.
7756 * cp-namespace.c: Sort headers.
7757 * cp-abi.c: Sort headers.
7758 * corelow.c: Sort headers.
7759 * corefile.c: Sort headers.
7760 * continuations.c: Sort headers.
7761 * completer.h: Sort headers.
7762 * completer.c: Sort headers.
7763 * complaints.c: Sort headers.
7764 * coffread.c: Sort headers.
7765 * coff-pe-read.c: Sort headers.
7766 * cli-out.h: Sort headers.
7767 * cli-out.c: Sort headers.
7768 * charset.c: Sort headers.
7769 * c-varobj.c: Sort headers.
7770 * c-valprint.c: Sort headers.
7771 * c-typeprint.c: Sort headers.
7772 * c-lang.c: Sort headers.
7773 * buildsym.c: Sort headers.
7774 * buildsym-legacy.c: Sort headers.
7775 * build-id.h: Sort headers.
7776 * build-id.c: Sort headers.
7777 * btrace.c: Sort headers.
7778 * bsd-uthread.c: Sort headers.
7779 * breakpoint.h: Sort headers.
7780 * breakpoint.c: Sort headers.
7781 * break-catch-throw.c: Sort headers.
7782 * break-catch-syscall.c: Sort headers.
7783 * break-catch-sig.c: Sort headers.
7784 * blockframe.c: Sort headers.
7785 * block.c: Sort headers.
7786 * bfin-tdep.c: Sort headers.
7787 * bfin-linux-tdep.c: Sort headers.
7788 * bfd-target.c: Sort headers.
7789 * bcache.c: Sort headers.
7790 * ax-general.c: Sort headers.
7791 * ax-gdb.h: Sort headers.
7792 * ax-gdb.c: Sort headers.
7793 * avr-tdep.c: Sort headers.
7794 * auxv.c: Sort headers.
7795 * auto-load.c: Sort headers.
7796 * arm-wince-tdep.c: Sort headers.
7797 * arm-tdep.c: Sort headers.
7798 * arm-symbian-tdep.c: Sort headers.
7799 * arm-pikeos-tdep.c: Sort headers.
7800 * arm-obsd-tdep.c: Sort headers.
7801 * arm-nbsd-tdep.c: Sort headers.
7802 * arm-nbsd-nat.c: Sort headers.
7803 * arm-linux-tdep.c: Sort headers.
7804 * arm-linux-nat.c: Sort headers.
7805 * arm-fbsd-tdep.c: Sort headers.
7806 * arm-fbsd-nat.c: Sort headers.
7807 * arm-bsd-tdep.c: Sort headers.
7808 * arch-utils.c: Sort headers.
7809 * arc-tdep.c: Sort headers.
7810 * arc-newlib-tdep.c: Sort headers.
7811 * annotate.h: Sort headers.
7812 * annotate.c: Sort headers.
7813 * amd64-windows-tdep.c: Sort headers.
7814 * amd64-windows-nat.c: Sort headers.
7815 * amd64-tdep.c: Sort headers.
7816 * amd64-sol2-tdep.c: Sort headers.
7817 * amd64-obsd-tdep.c: Sort headers.
7818 * amd64-obsd-nat.c: Sort headers.
7819 * amd64-nbsd-tdep.c: Sort headers.
7820 * amd64-nbsd-nat.c: Sort headers.
7821 * amd64-nat.c: Sort headers.
7822 * amd64-linux-tdep.c: Sort headers.
7823 * amd64-linux-nat.c: Sort headers.
7824 * amd64-fbsd-tdep.c: Sort headers.
7825 * amd64-fbsd-nat.c: Sort headers.
7826 * amd64-dicos-tdep.c: Sort headers.
7827 * amd64-darwin-tdep.c: Sort headers.
7828 * amd64-bsd-nat.c: Sort headers.
7829 * alpha-tdep.c: Sort headers.
7830 * alpha-obsd-tdep.c: Sort headers.
7831 * alpha-nbsd-tdep.c: Sort headers.
7832 * alpha-mdebug-tdep.c: Sort headers.
7833 * alpha-linux-tdep.c: Sort headers.
7834 * alpha-linux-nat.c: Sort headers.
7835 * alpha-bsd-tdep.c: Sort headers.
7836 * alpha-bsd-nat.c: Sort headers.
7837 * aix-thread.c: Sort headers.
7838 * agent.c: Sort headers.
7839 * addrmap.c: Sort headers.
7840 * ada-varobj.c: Sort headers.
7841 * ada-valprint.c: Sort headers.
7842 * ada-typeprint.c: Sort headers.
7843 * ada-tasks.c: Sort headers.
7844 * ada-lang.c: Sort headers.
7845 * aarch64-tdep.c: Sort headers.
7846 * aarch64-ravenscar-thread.c: Sort headers.
7847 * aarch64-newlib-tdep.c: Sort headers.
7848 * aarch64-linux-tdep.c: Sort headers.
7849 * aarch64-linux-nat.c: Sort headers.
7850 * aarch64-fbsd-tdep.c: Sort headers.
7851 * aarch64-fbsd-nat.c: Sort headers.
7852 * aarch32-linux-nat.c: Sort headers.
7854 2019-04-04 Tom Tromey <tom@tromey.com>
7856 * varobj.c (varobj_create): Update.
7857 * rust-exp.y (struct rust_parser) <update_innermost_block,
7858 lookup_symbol>: New methods.
7859 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7861 (rust_parser::rust_lookup_type)
7862 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7863 * printcmd.c (display_command, do_one_display): Update.
7864 * parser-defs.h (struct parser_state) <parser_state>: Add
7865 "tracker" parameter.
7866 (block_tracker): New member.
7867 (class innermost_block_tracker) <innermost_block_tracker>: Add
7869 <reset>: Remove method.
7870 (innermost_block): Don't declare.
7871 (null_post_parser): Update.
7872 * parse.c (innermost_block): Remove global.
7873 (write_dollar_variable): Update.
7874 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7875 Remove "tracker_types" parameter.
7876 (parse_expression): Add "tracker" parameter.
7877 (parse_expression_for_completion): Update.
7878 (null_post_parser): Add "tracker" parameter.
7879 * p-exp.y: Update rules.
7880 * m2-exp.y: Update rules.
7881 * language.h (struct language_defn) <la_post_parser>: Add
7882 "tracker" parameter.
7883 * go-exp.y: Update rules.
7884 * f-exp.y: Update rules.
7885 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7887 * d-exp.y: Update rules.
7888 * c-exp.y: Update rules.
7889 * breakpoint.c (set_breakpoint_condition): Create an
7890 innermost_block_tracker.
7891 (watch_command_1): Likewise.
7892 * ada-lang.c (resolve): Add "tracker" parameter.
7893 (resolve_subexp): Likewise.
7894 * ada-exp.y (write_var_from_sym): Update.
7896 2019-04-04 Tom Tromey <tom@tromey.com>
7898 * type-stack.h: New file.
7899 * type-stack.c: New file.
7900 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7902 (insert_into_type_stack, insert_type, push_type, push_type_int)
7903 (insert_type_address_space, pop_type, pop_type_int)
7904 (pop_typelist, pop_type_stack, append_type_stack)
7905 (push_type_stack, get_type_stack, push_typelist)
7906 (follow_type_instance_flags, follow_types): Don't declare.
7907 * parse.c (type_stack): Remove global.
7908 (parse_exp_in_context): Update.
7909 (insert_into_type_stack, insert_type, push_type, push_type_int)
7910 (insert_type_address_space, pop_type, pop_type_int)
7911 (pop_typelist, pop_type_stack, append_type_stack)
7912 (push_type_stack, get_type_stack, push_typelist)
7913 (follow_type_instance_flags, follow_types): Remove (moved to
7915 * f-exp.y (type_stack): New global.
7917 (push_kind_type, f_parse): Update.
7918 * d-exp.y (type_stack): New global.
7921 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7923 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7924 (HFILES_NO_SRCDIR): Add type-stack.h.
7926 2019-04-04 Tom Tromey <tom@tromey.com>
7928 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7929 (rust_parser::convert_ast_to_expression, rust_parse)
7930 (rust_lex_test_completion, rust_lex_tests): Update.
7931 * parser-defs.h (struct expr_completion_state): New.
7932 (struct parser_state) <parser_state>: Add completion parameter.
7933 <mark_struct_expression, mark_completion_tag>: New methods.
7934 <parse_completion, m_completion_state>: New members.
7935 (prefixify_expression, null_post_parser): Update.
7936 (mark_struct_expression, mark_completion_tag): Don't declare.
7937 * parse.c (parse_completion, expout_last_struct)
7938 (expout_tag_completion_type, expout_completion_name): Remove
7940 (parser_state::mark_struct_expression)
7941 (parser_state::mark_completion_tag): Now methods.
7942 (prefixify_expression): Add last_struct parameter.
7943 (prefixify_subexp): Likewise.
7944 (parse_exp_1): Update.
7945 (parse_exp_in_context): Add cstate parameter. Update.
7946 (parse_expression_for_completion): Create an
7947 expr_completion_state.
7948 (null_post_parser): Add "completion" parameter.
7949 * p-exp.y: Update rules.
7951 * language.h (struct language_defn) <la_post_parser>: Add
7952 "completing" parameter.
7953 * go-exp.y: Update rules.
7954 (lex_one_token): Update.
7955 * expression.h (parse_completion): Don't declare.
7956 * d-exp.y: Update rules.
7957 (lex_one_token): Update rules.
7958 * c-exp.y: Update rules.
7959 (lex_one_token): Update.
7960 * ada-lang.c (resolve): Add "parse_completion" parameter.
7961 (resolve_subexp): Likewise.
7962 (ada_resolve_function): Likewise.
7964 2019-04-04 Tom Tromey <tom@tromey.com>
7966 * parser-defs.h (struct parser_state) <start_arglist,
7967 end_arglist>: New methods.
7968 <arglist_len, m_funcall_chain>: New members.
7969 (arglist_len, start_arglist, end_arglist): Don't declare.
7970 * parse.c (arglist_len, funcall_chain): Remove global.
7971 (start_arglist, end_arglist): Remove functions.
7972 (parse_exp_in_context): Update.
7973 * p-exp.y: Update rules.
7974 * m2-exp.y: Update rules.
7975 * go-exp.y: Update rules.
7976 * f-exp.y: Update rules.
7977 * d-exp.y: Update rules.
7978 * c-exp.y: Update rules.
7980 2019-04-04 Tom Tromey <tom@tromey.com>
7982 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7983 lex_operator, push_back>: New methods.
7985 (rust_parser::lex_hex, lex_escape): Rename and update.
7986 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7987 (rust_parser::lex_operator): Rename and update.
7988 (rust_parser::lex_number, rustyylex, rustyyerror)
7989 (rust_lex_test_init, rust_lex_test_sequence)
7990 (rust_lex_test_push_back, rust_lex_tests): Update.
7991 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7993 <lexptr, prev_lexptr>: New members.
7994 (lexptr, prev_lexptr): Don't declare.
7995 * parse.c (lexptr, prev_lexptr): Remove globals.
7996 (parse_exp_in_context): Update.
7997 * p-exp.y (yylex, yyerror): Update.
7998 * m2-exp.y (parse_number, yylex, yyerror): Update.
7999 * go-exp.y (lex_one_token, yyerror): Update.
8000 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8001 * d-exp.y (lex_one_token, yyerror): Update.
8002 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8003 (lex_one_token, yyerror): Update.
8004 * ada-lex.l (YY_INPUT): Update.
8005 (rewind_to_char): Update.
8006 * ada-exp.y (yyerror): Update.
8008 2019-04-04 Tom Tromey <tom@tromey.com>
8010 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8011 * parser-defs.h (struct parser_state) <parser_state>: Add new
8013 <comma_terminates>: New member.
8014 (comma_terminates): Don't declare global.
8015 * parse.c (comma_terminates): Remove global.
8016 (parse_exp_in_context): Update.
8017 * p-exp.y (yylex): Update.
8018 * m2-exp.y (yylex): Update.
8019 * go-exp.y (lex_one_token): Update.
8020 * f-exp.y (yylex): Update.
8021 * d-exp.y (lex_one_token): Update.
8022 * c-exp.y (lex_one_token): Update.
8023 * ada-lex.l: Update.
8025 2019-04-04 Tom Tromey <tom@tromey.com>
8027 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8028 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8029 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8030 * parser-defs.h (paren_depth): Don't declare.
8031 * parse.c (paren_depth): Remove global.
8032 (parse_exp_in_context): Update.
8033 * p-exp.y (paren_depth): New global.
8034 (pascal_parse): Initialize it.
8035 * m2-exp.y (paren_depth): New global.
8036 (m2_parse): Initialize it.
8037 * go-exp.y (paren_depth): New global.
8038 (go_parse): Initialize it.
8039 * f-exp.y (paren_depth): New global.
8040 (f_parse): Initialize it.
8041 * d-exp.y (paren_depth): New global.
8042 (d_parse): Initialize it.
8043 * c-exp.y (paren_depth): New global.
8044 (c_parse): Initialize it.
8045 * ada-lex.l (paren_depth): New global.
8046 (lexer_init): Initialize it.
8048 2019-04-04 Tom Tromey <tom@tromey.com>
8050 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8051 (rust_parser::convert_ast_to_type)
8052 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8053 * parser-defs.h (struct parser_state) <parser_state>: Add
8054 parameters. Initialize new members.
8055 <expression_context_block, expression_context_pc>: New members.
8056 * parse.c (expression_context_block, expression_context_pc):
8058 (parse_exp_in_context): Update.
8059 * p-exp.y: Update all rules.
8061 * m2-exp.y: Update all rules.
8063 * go-exp.y (yylex): Update.
8064 * f-exp.y (yylex): Update.
8065 * d-exp.y: Update all rules.
8067 * c-exp.y: Update all rules.
8068 (lex_one_token, classify_name, yylex, c_parse): Update.
8069 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8071 2019-04-04 Tom Tromey <tom@tromey.com>
8073 * gdbarch.h, gdbarch.c: Rebuild.
8074 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8076 (struct stap_parse_info): Replace "parser_state" with
8078 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8079 (parser_state): New class.
8080 * parse.c (expr_builder): Rename.
8081 (expr_builder::release): Rename.
8082 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8083 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8084 (write_exp_elt_longcst, write_exp_elt_floatcst)
8085 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8086 (write_exp_string_vector, write_exp_bitstring)
8087 (write_exp_msymbol, mark_struct_expression)
8088 (write_dollar_variable)
8089 (insert_type_address_space, increase_expout_size): Replace
8090 "parser_state" with "expr_builder".
8091 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8092 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8093 "parser_state" with "expr_builder".
8095 2019-04-04 Tom Tromey <tom@tromey.com>
8097 * rust-exp.y: Replace "parse_language" with method call.
8099 (yylex): Replace "parse_language" with method call.
8101 (yylex): Replace "parse_language" with method call.
8102 * go-exp.y (classify_name): Replace "parse_language" with method
8104 * f-exp.y (yylex): Replace "parse_language" with method call.
8105 * d-exp.y (lex_one_token): Replace "parse_language" with method
8108 (lex_one_token, classify_name, yylex): Replace "parse_language"
8110 * ada-exp.y (find_primitive_type, type_char)
8111 (type_system_address): Replace "parse_language" with method call.
8113 2019-04-04 Tom Tromey <tom@tromey.com>
8115 * rust-exp.y: Replace "parse_gdbarch" with method call.
8116 * parse.c (write_dollar_variable, insert_type_address_space):
8117 Replace "parse_gdbarch" with method call.
8118 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8120 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8122 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8123 "parse_gdbarch" with method call.
8124 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8126 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8127 "parse_gdbarch" with method call.
8128 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8129 "parse_gdbarch" with method call.
8130 * c-exp.y (parse_type, parse_number, classify_name): Replace
8131 "parse_gdbarch" with method call.
8132 * ada-lex.l: Replace "parse_gdbarch" with method call.
8133 * ada-exp.y (parse_type, find_primitive_type, type_char)
8134 (type_system_address): Replace "parse_gdbarch" with method call.
8136 2019-04-04 Tom Tromey <tom@tromey.com>
8138 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8139 * stap-probe.c (stap_parse_argument): Update.
8140 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8141 initial_size parameter.
8142 * rust-exp.y (rust_lex_tests): Update.
8143 * parse.c (parser_state): Update.
8144 (parse_exp_in_context): Update.
8145 * parser-defs.h (struct parser_state) <parser_state>: Remove
8146 "initial_size" parameter.
8148 2019-04-04 Tom Tromey <tom@tromey.com>
8150 * parser-defs.h (increase_expout_size): Don't declare.
8151 * parse.c (increase_expout_size): Now static.
8153 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8155 * gnu-nat.c (gnu_nat_target::wait): Fix
8156 target_waitstatus_to_string call.
8158 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8160 * eval.c (evaluate_subexp_standard): Handle internal functions
8161 during Fortran function call handling.
8163 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8165 * NEWS: Mention new internal functions.
8166 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8167 (read_base_type): Use dwarf2_init_complex_target_type.
8168 * value.c (creal_internal_fn): New function.
8169 (cimag_internal_fn): New function.
8170 (_initialize_values): Register new internal functions.
8172 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8174 * infrun.c (stop_all_threads): If debug_infrun, always
8175 trace the wait status after wait_one, using
8176 target_waitstatus_to_string and target_pid_to_str.
8177 (handle_inferior_event): Replace various trace of
8178 wait status kind by a single trace.
8179 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8180 wait status kind image by target_waitstatus_to_string.
8181 * target/waitstatus.c (target_waitstatus_to_string): Fix
8184 2019-04-01 Tom Tromey <tromey@adacore.com>
8187 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8189 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8190 Pedro Alves <palves@redhat.com>
8192 * top.c (quit_force): Call 'finalize_values'.
8193 * value.c (finalize_values): New function.
8194 * value.h (finalize_values): Declare.
8196 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8198 * NEWS: Announce $_gdb_major and $_gdb_minor.
8200 * top.c (init_gdb_version_vars): New function.
8201 (gdb_init): Call init_gdb_version_vars.
8203 2019-03-29 Tom Tromey <tromey@adacore.com>
8205 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8206 help text. Remove dead code.
8208 2019-03-29 Keith Seitz <keiths@redhat.com>
8210 From Siddhesh Poyarekar:
8211 * f-lang.h (f77_get_upperbound): Return LONGEST.
8212 (f77_get_lowerbound): Likewise.
8213 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8214 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8216 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8217 plongest to format print it.
8218 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8219 (f77_get_upperbound): Likewise.
8220 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8221 LOWER_BOUND to LONGEST.
8222 (f77_create_arrayprint_offset_tbl): Likewise.
8224 2019-03-29 Keith Seitz <keiths@redhat.com>
8226 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8227 %s/pulongest for TYPE_LENGTH instead of %d in format
8229 * ada-typerint.c (ada_print_type): Likewise.
8230 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8231 * compile/compile-c-support.c (generate_register_struct): Likewise.
8232 * gdbtypes.c (recursive_dump_type): Likewise.
8233 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8234 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8235 instead of %d in format strings.
8236 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8237 to std::min to ULONGEST.
8238 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8239 instead of %d in format strings.
8240 * tracepoint.c (info_scope_command): Likewise.
8241 * typeprint.c (print_offset_data::update)
8242 (print_offset_data::finish): Likewise.
8243 * xtensa-tdep.c (xtensa_store_return_value)
8244 (xtensa_push_dummy_call): Likewise.
8246 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8248 * windows-nat.c (display_selector): Fixed format specifications
8251 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8253 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8255 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8257 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8258 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8259 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8260 (nios2_linux_init_abi): Install it.
8262 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8264 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8266 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8268 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8270 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8271 Tom Tromey <tromey@adacore.com>
8273 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8275 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8277 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8278 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8279 method to compute the bounds of range types. Also print "[evaluated]"
8280 if the bounds' values come from a dynamic evaluation.
8282 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8284 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8285 whitespace when pretty printing is on.
8287 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8289 * ppc-linux-nat.c: Add include.
8291 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8293 * NEWS: Mention AArch64 Pointer Authentication.
8295 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8297 * arm-linux-nat.c: Add include.
8299 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8301 * source-cache.c (source_cache::get_source_lines): Re-read
8302 fullname after calling open_source_file.
8304 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8306 * NEWS: Mention TLS support for FreeBSD.
8308 2019-03-25 Tom Tromey <tromey@adacore.com>
8310 * minsyms.c (BUNCH_SIZE): Update comment.
8311 (~minimal_symbol_reader): Remove old comment.
8312 (compact_minimal_symbols): Update comment.
8313 (minimal_symbol_reader::install): Remove old comment. Update
8316 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8318 * s390-linux-nat.c: Add include.
8320 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8322 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8323 Call linux_get_hwcap.
8324 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8326 (aarch64_linux_get_hwcap): Remove function.
8327 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8329 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8331 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8332 * linux-tdep.c (linux_get_hwcap): Add function.
8333 (linux_get_hwcap2): Likewise.
8334 * linux-tdep.h (linux_get_hwcap): Add declaration.
8335 (linux_get_hwcap2): Likewise.
8336 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8337 (ppc_linux_get_hwcap2): Likewise.
8338 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8340 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8341 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8342 (ppc_linux_nat_target::read_description): Likewise.
8343 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8344 * s390-linux-nat.c: Likewise.
8345 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8347 2019-03-24 Tom Tromey <tom@tromey.com>
8349 * ada-lang.c (standard_lookup): Simplify initialization.
8350 (ada_lookup_symbol_nonlocal): Simplify return.
8351 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8352 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8353 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8354 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8356 * solib.c (solib_global_lookup): Simplify.
8357 * symtab.c (null_block_symbol): Remove.
8358 (symbol_cache_lookup): Simplify returns.
8359 (lookup_language_this): Simplify returns.
8360 (lookup_symbol_aux): Simplify return.
8361 (lookup_local_symbol): Simplify returns.
8362 (lookup_global_symbol_from_objfile): Simplify return.
8363 (lookup_symbol_in_objfile_symtabs)
8364 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8365 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8366 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8367 * cp-namespace.c (cp_lookup_bare_symbol)
8368 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8369 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8370 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8371 (cp_lookup_symbol_via_imports): Simplify initialization.
8372 (find_symbol_in_baseclass): Likewise.
8373 * symtab.h (null_block_symbol): Remove.
8374 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8375 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8376 (d_lookup_symbol_module): Likewise.
8377 (find_symbol_in_baseclass): Simplify initialization.
8379 2019-03-24 Tom Tromey <tom@tromey.com>
8381 * expression.h: Don't include symtab.h.
8382 (struct block): Forward declare.
8384 2019-03-24 Tom Tromey <tom@tromey.com>
8386 * c-exp.y (typebase): Remove casts.
8387 * gdbtypes.c (lookup_unsigned_typename, )
8388 (lookup_signed_typename): Remove cast.
8389 * eval.c (parse_to_comma_and_eval): Remove cast.
8390 * parse.c (write_dollar_variable): Remove cast.
8391 * block.h (struct block) <superblock>: Now const.
8392 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8393 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8394 (map_block): Make "block" const.
8395 * symfile.h (struct quick_symbol_functions)
8396 <map_matching_symbols>: Constify block argument to "callback".
8397 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8399 (find_pc_sect_compunit_symtab): Make "b" const.
8400 (find_symbol_at_address): Likewise.
8401 (search_symbols): Likewise.
8402 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8403 (dw2_debug_names_lookup_symbol): Likewise.
8404 (dw2_map_matching_symbols): Update.
8405 * p-valprint.c (pascal_val_print): Remove "block".
8406 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8407 (aux_add_nonlocal_symbols): Make "block" const.
8408 (resolve_subexp): Remove cast.
8409 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8411 (iterate_over_file_blocks): Likewise.
8412 * f-exp.y (%union) <bval>: Remove.
8413 * coffread.c (patch_opaque_types): Make "b" const.
8414 * spu-tdep.c (spu_catch_start): Make "block" const.
8415 * c-valprint.c (print_unpacked_pointer): Remove "block".
8416 * symmisc.c (dump_symtab_1): Make "b" const.
8417 (block_depth): Make "block" const.
8418 * d-exp.y (%union) <bval>: Remove.
8419 * cp-support.h (cp_lookup_rtti_type): Update.
8420 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8421 * psymtab.c (psym_lookup_symbol): Make "block" const.
8422 (maintenance_check_psymtabs): Make "b" const.
8423 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8424 (enumerate_locals, enumerate_args): Update.
8425 * python/py-symtab.c (stpy_global_block): Make "block" const.
8426 (stpy_static_block): Likewise.
8427 * inline-frame.c (block_starting_point_at): Make "new_block"
8429 * block.c (find_block_in_blockvector): Make return type const.
8430 (blockvector_for_pc_sect): Make "b" const.
8431 (find_block_in_blockvector): Make "b" const.
8433 2019-03-23 Tom Tromey <tom@tromey.com>
8435 * varobj.c (varobj_create): Update.
8436 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8437 * printcmd.c (display_command, do_one_display): Don't reset
8439 * parser-defs.h (enum innermost_block_tracker_type): Move to
8441 (innermost_block): Update comment.
8442 * parse.c (parse_exp_1): Add tracker_types parameter.
8443 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8444 tracker_types parameter. Reset innermost_block.
8445 (parse_exp_in_context): Remove.
8446 (parse_expression_for_completion): Update.
8447 * objfiles.c (~objfile): Don't reset expression_context_block or
8449 * expression.h (enum innermost_block_tracker_type): Move from
8451 (parse_exp_1): Add tracker_types parameter.
8452 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8453 reset innermost_block.
8455 2019-03-23 Tom Tromey <tom@tromey.com>
8457 * objfiles.h: Include bcache.h.
8459 2019-03-23 Tom Tromey <tom@tromey.com>
8461 * linespec.c (get_current_search_block): Use
8462 scoped_restore_current_language.
8463 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8465 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8466 Jiong Wang <jiong.wang@arm.com>
8468 * aarch64-linux-tdep.c
8469 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8471 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8473 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8474 Jiong Wang <jiong.wang@arm.com>
8476 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8478 (aarch64_analyze_prologue_test): Add PACIASP test.
8479 (aarch64_prologue_prev_register): Unmask PC value.
8481 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8482 Jiong Wang <jiong.wang@arm.com>
8484 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8485 (aarch64_dwarf2_prev_register): Unmask PC value.
8486 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8487 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8488 DW_CFA_AARCH64_negate_ra_state.
8489 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8491 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8492 Jiong Wang <jiong.wang@arm.com>
8494 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8496 (aarch64_pseudo_register_name): Likewise.
8497 (aarch64_pseudo_register_type): Likewise.
8498 (aarch64_pseudo_register_reggroup_p): Likewise.
8499 (aarch64_gdbarch_init): Add pauth registers.
8500 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8501 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8502 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8503 (struct gdbarch_tdep): Add regnum for ra_state.
8505 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8506 Jiong Wang <jiong.wang@arm.com>
8508 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8510 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8511 Jiong Wang <jiong.wang@arm.com>
8513 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8515 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8516 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8517 (aarch64_gdbarch_init): Add puth registers.
8518 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8519 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8520 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8522 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8523 Jiong Wang <jiong.wang@arm.com>
8525 * aarch64-linux-nat.c
8526 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8527 * aarch64-linux-tdep.c
8528 (aarch64_linux_core_read_description): Likewise.
8529 (aarch64_linux_get_hwcap): New function.
8530 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8531 (aarch64_linux_get_hwcap): New declaration.
8533 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8534 Jiong Wang <jiong.wang@arm.com>
8536 * aarch64-linux-nat.c
8537 (aarch64_linux_nat_target::read_description): Add pauth param.
8538 * aarch64-linux-tdep.c
8539 (aarch64_linux_core_read_description): Likewise.
8540 * aarch64-tdep.c (struct target_desc): Add in pauth.
8541 (aarch64_read_description): Add pauth param.
8542 (aarch64_gdbarch_init): Likewise.
8543 * aarch64-tdep.h (aarch64_read_description): Likewise.
8544 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8545 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8546 * features/Makefile: Add new files.
8547 * features/aarch64-pauth.c: New file.
8548 * features/aarch64-pauth.xml: New file.
8550 2019-03-20 Tom Tromey <tromey@adacore.com>
8552 * infrun.c (handle_inferior_event): Rename from
8553 handle_inferior_event_1. Create a scoped_value_mark.
8554 (handle_inferior_event): Remove.
8556 2019-03-19 Tom Tromey <tromey@adacore.com>
8558 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8559 * infrun.h (print_stop_event): Add "displays" parameter.
8560 * infrun.c (print_stop_event): Add "displays" parameter.
8562 2019-03-19 Pedro Alves <palves@redhat.com>
8564 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8565 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8566 to -1. Fix TABs vs spaces.
8567 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8568 * tui/tui-out.h (tui_ui_out) Add intro comments.
8569 <m_line, m_start_of_line>: In-class initialize, and add describing
8572 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8574 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8576 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8578 2019-03-18 Pedro Alves <palves@redhat.com>
8579 Eli Zaretskii <eliz@gnu.org>
8581 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8582 m_line and m_start_of_line.
8584 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8586 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8587 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8588 it returns a newline. This fixes a regression in TU mode, whereby
8589 the next line is output on the same screen line as the user input.
8591 2019-03-18 Tom Tromey <tromey@adacore.com>
8593 * minsyms.c (minimal_symbol_reader::install): Remove call to
8596 2019-03-18 Pedro Alves <palves@redhat.com>
8598 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8600 (apply_style): New, factored out from ...
8601 (apply_ansi_escape): ... this. Handle reverse video mode.
8602 (tui_set_reverse_mode): New function.
8603 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8604 * tui/tui-winsource.c (tui_show_source_line): Use
8605 tui_set_reverse_mode instead of setting A_STANDOUT.
8606 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8609 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
8611 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8614 2019-03-18 Tom Tromey <tromey@adacore.com>
8616 * ada-lang.c (empty_array): Add "high" parameter.
8617 (ada_evaluate_subexp): Update.
8619 2019-03-17 Sergei Trofimovich <siarheit@google.com>
8621 * unittests/string_view-selftests.c: Define
8622 _initialize_string_view_selftests unconditionally.
8624 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8627 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8629 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8632 * windows-nat.c (display_selector): Fix format specifiers.
8634 2019-03-17 Eli Zaretskii <eliz@gnu.org>
8636 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8637 tui_refill_source_window instead of tui_refresh_win, to update the
8638 current execution line. This fixes redisplay of the current line
8639 when stepping through the code with "next" or "step".
8641 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8643 * source-cache.c (source_cache::get_source_lines): Call
8644 find_source_lines to initialize s->nlines. This fixes vertical
8645 scrolling of TUI source window when the DOWN arrow is pressed.
8647 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8649 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8650 linux-thread-db.c (_initialize_thread_db): Likewise.
8652 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8654 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8655 wclrtoeol in tui_show_source_line". This reverts changes made in
8656 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8658 2019-03-15 Tom Tromey <tom@tromey.com>
8660 * symtab.h (struct minimal_symbol): Derive from
8661 general_symbol_info.
8662 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8663 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8664 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8665 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8666 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8667 (MSYMBOL_SEARCH_NAME): Update.
8668 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8669 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8670 * minsyms.c (minimal_symbol_reader::record_full): Update.
8672 2019-03-15 Tom Tromey <tom@tromey.com>
8674 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8676 2019-03-15 Tom Tromey <tom@tromey.com>
8678 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8680 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8682 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8683 (build_minimal_symbol_hash_tables)
8684 (minimal_symbol_reader::install): Update.
8686 2019-03-15 Tom Tromey <tom@tromey.com>
8688 * symtab.c (create_demangled_names_hash): Update.
8689 (symbol_set_names): Update.
8690 * objfiles.h (struct objfile_per_bfd_storage)
8691 <demangled_names_hash>: Now an htab_up.
8692 * objfiles.c (objfile_per_bfd_storage): Simplify.
8694 2019-03-15 Tom Tromey <tom@tromey.com>
8696 * objfiles.h (struct objfile_per_bfd_storage): Declare
8698 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8700 (get_objfile_bfd_data): Use new. Don't initialize
8702 (free_objfile_per_bfd_storage): Remove.
8703 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8705 2019-03-15 Tom Tromey <tom@tromey.com>
8707 * symfile.c (reread_symbols): Update.
8708 * objfiles.c (objfile::objfile): Update.
8709 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8710 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8712 (minimal_symbol_reader::install): Update.
8713 (terminate_minimal_symbol_table): Remove.
8714 * jit.c (jit_object_close_impl): Update.
8716 2019-03-15 Tom Tromey <tom@tromey.com>
8718 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8721 2019-03-15 Tom Tromey <tom@tromey.com>
8723 * objfiles.h (struct objfile_per_bfd_storage)
8724 <demangled_hash_languages>: Now a bitset.
8725 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8726 (lookup_minimal_symbol): Update.
8728 2019-03-15 Tom Tromey <tom@tromey.com>
8730 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8731 Don't return the symbol.
8732 * coffread.c (record_minimal_symbol): Use record_full.
8734 2019-03-14 Eli Zaretskii <eliz@gnu.org>
8736 The MS-Windows port of ncurses fails to switch to a color pair if
8737 one or both of the colors are the implicit default colors. This
8738 change records the default colors when TUI is initialized, and
8739 then specifies them explicitly when a color pair uses the default
8740 colors. This allows color styling in TUI mode on MS-Windows.
8742 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8744 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8745 colors in ncurses_norm_attr.
8746 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8747 "none", replace it with the default color recorded in
8750 2019-03-14 Tom Tromey <tromey@adacore.com>
8752 * source-cache.h (class source_cache) <get_source_lines>: Return
8754 * source-cache.c (source_cache::extract_lines): Handle case where
8755 first_pos==npos. Return std::string.
8756 (source_cache::get_source_lines): Update.
8758 2019-03-14 Tom Tromey <tromey@adacore.com>
8760 * NEWS: Add item for "style sources" commands.
8761 * source-cache.c (source_cache::get_source_lines): Check
8763 * cli/cli-style.c (source_styling): New global.
8764 (_initialize_cli_style): Add "style sources" commands.
8765 (show_style_sources): New function.
8766 * cli/cli-style.h (source_styling): Declare.
8768 2019-03-14 Pedro Alves <palves@redhat.com>
8769 Tom Tromey <tromey@adacore.com>
8771 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8772 * tui/tui-winsource.c (tui_refill_source_window): New function,
8774 (tui_horizontal_source_scroll): ... here. Move some logic.
8775 * cli/cli-style.c (set_style_enabled): Notify new observable.
8776 * tui/tui-hooks.c (tui_redisplay_source): New function.
8777 (tui_attach_detach_observers): Attach or detach
8778 tui_redisplay_source.
8779 * observable.h (source_styling_changed): New observable.
8780 * observable.c: Define source_styling_changed observable.
8782 2019-03-13 Tom Tromey <tromey@adacore.com>
8784 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8785 (i386_gnu_nat_target::store_registers): Update.
8786 * target-debug.h (target_debug_print_std_string): New macro.
8787 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8788 * windows-tdep.c (display_one_tib): Update.
8789 * tui/tui-stack.c (tui_make_status_line): Update.
8790 * top.c (print_inferior_quit_action): Update.
8791 * thread.c (thr_try_catch_cmd): Update.
8792 (add_thread_with_info): Update.
8793 (thread_target_id_str): Update.
8794 (thr_try_catch_cmd): Update.
8795 (thread_command): Update.
8796 (thread_find_command): Update.
8797 * record-btrace.c (record_btrace_target::info_record)
8798 (record_btrace_resume_thread, record_btrace_target::resume)
8799 (record_btrace_cancel_resume, record_btrace_step_thread)
8800 (record_btrace_target::wait, record_btrace_target::wait)
8801 (record_btrace_target::wait, record_btrace_target::stop): Update.
8802 * progspace.c (print_program_space): Update.
8803 * process-stratum-target.c
8804 (process_stratum_target::thread_address_space): Update.
8805 * linux-fork.c (linux_fork_mourn_inferior)
8806 (detach_checkpoint_command, info_checkpoints_command)
8807 (linux_fork_context): Update.
8808 (linux_fork_detach): Update.
8809 (class scoped_switch_fork_info): Update.
8810 (delete_checkpoint_command): Update.
8811 * infrun.c (follow_fork_inferior): Update.
8812 (follow_fork_inferior): Update.
8813 (proceed_after_vfork_done): Update.
8814 (handle_vfork_child_exec_or_exit): Update.
8815 (follow_exec): Update.
8816 (displaced_step_prepare_throw): Update.
8817 (displaced_step_restore): Update.
8818 (start_step_over): Update.
8820 (clear_proceed_status_thread): Update.
8822 (print_target_wait_results): Update.
8823 (do_target_wait): Update.
8824 (context_switch): Update.
8825 (stop_all_threads): Update.
8826 (restart_threads): Update.
8827 (finish_step_over): Update.
8828 (handle_signal_stop): Update.
8829 (switch_back_to_stepped_thread): Update.
8830 (keep_going_pass_signal): Update.
8831 (print_exited_reason): Update.
8832 (normal_stop): Update.
8833 * inferior.c (inferior_pid_to_str): Change return type.
8834 (print_selected_inferior): Update.
8835 (add_inferior): Update.
8836 (detach_inferior): Update.
8837 * dummy-frame.c (fprint_dummy_frames): Update.
8838 * dcache.c (dcache_info_1): Update.
8839 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8840 (btrace_fetch, btrace_clear): Update.
8841 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8842 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8844 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8845 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8846 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8847 * gdbarch.c, gdbarch.h: Rebuild.
8848 * gdbarch.sh (core_pid_to_str): Change return type.
8849 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8851 (windows_nat_target::pid_to_str): Change return type.
8852 (windows_delete_thread): Update.
8853 (windows_nat_target::attach): Update.
8854 (windows_nat_target::files_info): Update.
8855 * target-delegates.c: Rebuild.
8856 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8858 (sol_thread_target::pid_to_str): Change return type.
8859 * remote.c (class remote_target) <pid_to_str>: Change return
8861 (remote_target::pid_to_str): Change return type.
8862 (extended_remote_target::attach, remote_target::remote_stop_ns)
8863 (remote_target::remote_notif_remove_queued_reply)
8864 (remote_target::push_stop_reply, remote_target::disable_btrace):
8866 (extended_remote_target::attach): Update.
8867 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8869 (gdbsim_target::pid_to_str): Change return type.
8870 * ravenscar-thread.c (struct ravenscar_thread_target)
8871 <pid_to_str>: Change return type.
8872 (ravenscar_thread_target::pid_to_str): Change return type.
8873 * procfs.c (class procfs_target) <pid_to_str>: Change return
8875 (procfs_target::pid_to_str): Change return type.
8876 (procfs_target::attach): Update.
8877 (procfs_target::detach): Update.
8878 (procfs_target::fetch_registers): Update.
8879 (procfs_target::store_registers): Update.
8880 (procfs_target::wait): Update.
8881 (procfs_target::files_info): Update.
8882 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8883 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8885 (nto_procfs_target::pid_to_str): Change return type.
8886 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8887 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8889 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8891 (attach_proc_task_lwp_callback, get_detach_signal)
8892 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8893 (linux_nat_target::resume, wait_lwp, stop_callback)
8894 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8895 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8896 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8897 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8898 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8900 (inf_ptrace_target::attach): Update.
8901 (inf_ptrace_target::files_info): Update.
8902 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8904 (go32_nat_target::pid_to_str): Change return type.
8905 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8906 (gnu_nat_target::wait): Update.
8907 (gnu_nat_target::wait): Update.
8908 (gnu_nat_target::resume): Update.
8909 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8910 (fbsd_nat_target::wait): Update.
8911 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8913 (darwin_nat_target::attach): Update.
8914 * corelow.c (class core_target) <pid_to_str>: Change return type.
8915 (core_target::pid_to_str): Change return type.
8916 * target.c (normal_pid_to_str): Change return type.
8917 (default_pid_to_str): Likewise.
8918 (target_pid_to_str): Change return type.
8919 (target_translate_tls_address): Update.
8920 (target_announce_detach): Update.
8921 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8923 (bsd_uthread_target::pid_to_str): Change return type.
8924 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8926 (bsd_kvm_target::pid_to_str): Change return type.
8927 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8929 (aix_thread_target::pid_to_str): Change return type.
8930 * target.h (struct target_ops) <pid_to_str>: Change return type.
8931 (target_pid_to_str, normal_pid_to_str): Likewise.
8932 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8934 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8936 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8938 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8940 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8942 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8945 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8947 * NEWS: Mention that the new default MI version is 3. Mention
8948 changes to the output of commands and events that deal with
8949 multi-location breakpoints.
8950 * breakpoint.c: Include "mi/mi-out.h".
8951 (print_one_breakpoint): Change output syntax if using MI version
8953 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8955 (mi_multi_location_breakpoint_output_fixed): New.
8956 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8957 (mi_cmd_fix_multi_location_breakpoint_output): New.
8958 (mi_multi_location_breakpoint_output_fixed): New.
8959 * mi/mi-cmds.c (mi_cmds): Register command
8960 -fix-multi-location-breakpoint-output.
8961 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8964 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8966 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8967 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8968 instantiate mi_ui_out based on interpreter name.
8969 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8970 * mi/mi-main.c (mi_load_progress): Likewise.
8972 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8974 * NEWS: Combine separate "New targets" sections for 8.3.
8976 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8978 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8979 (ppcfbsd_init_abi): Install gdbarch
8980 "fetch_tls_load_module_address" and "get_thread_local_address"
8983 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8985 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8986 (riscv_fbsd_init_abi): Install gdbarch
8987 "fetch_tls_load_module_address" and "get_thread_local_address"
8990 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8992 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8993 (i386fbsd_init_abi): Install gdbarch
8994 "fetch_tls_load_module_address" and "get_thread_local_address"
8997 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8999 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9000 (amd64fbsd_init_abi): Install gdbarch
9001 "fetch_tls_load_module_address" and "get_thread_local_address"
9004 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9006 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9007 (struct fbsd_pspace_data): New type.
9008 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9009 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9010 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9011 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9012 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9014 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9016 * gdbtypes.c (lookup_struct_elt): New function.
9017 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9018 * gdbtypes.h (struct struct_elt): New type.
9019 (lookup_struct_elt): New prototype.
9021 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9023 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9024 remove disabled code block.
9026 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9028 * gdbarch.sh (get_thread_local_address): New method.
9029 * gdbarch.h, gdbarch.c: Regenerate.
9030 * target.c (target_translate_tls_address): Use
9031 gdbarch_get_thread_local_address if present instead of
9032 target::get_thread_local_address.
9034 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9036 * target.h (target::get_thread_local_address): Update comment.
9038 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9040 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9041 objfile->separate_debug_objfile_backlink if not NULL.
9043 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9045 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9046 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9047 (amd64bsd_store_inferior_registers): Likewise.
9048 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9049 Enable segment base registers.
9050 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9051 PT_GETFSBASE and PT_GETGSBASE.
9052 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9054 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9055 segment base registers.
9056 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9058 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9060 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9061 Update calls to i386_target_description to add 'segments'
9063 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9064 add segment base registers.
9065 * arch/i386.c (i386_create_target_description): Add 'segments'
9066 parameter to enable segment base registers.
9067 * arch/i386.h (i386_create_target_description): Likewise.
9068 * features/i386/32bit-segments.xml: New file.
9069 * features/i386/32bit-segments.c: Generate.
9070 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9071 call to i386_target_description to add 'segments' parameter.
9072 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9073 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9074 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9075 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9076 if feature is present.
9077 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9078 Add 'segments' parameter to call to i386_target_description.
9079 (i386_target_description): Add 'segments' parameter to enable
9080 segment base registers.
9081 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9082 to call to i386_target_description.
9083 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9084 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9085 Define I386_NUM_REGS.
9086 (i386_target_description): Add 'segments' parameter to enable
9087 segment base registers.
9089 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9092 * source-cache.c: #undef open and close, to avoid unresolved
9093 externals during linking.
9095 2019-03-12 Tom Tromey <tromey@adacore.com>
9097 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9098 const. Add initializers.
9099 (_initialize_remote): Don't initialize ptid globals.
9101 2019-03-12 Pedro Alves <palves@redhat.com>
9103 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9105 2019-03-12 Pedro Alves <palves@redhat.com>
9107 * cp-name-parser.y (main): Remove unused 'len' variable.
9109 2019-03-12 Tom Tromey <tromey@adacore.com>
9111 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9112 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9114 2019-03-12 Tom Tromey <tromey@adacore.com>
9116 * linux-nat.c (iterate_over_lwps): Update.
9117 (stop_callback): Remove parameter.
9118 (stop_wait_callback, detach_callback, resume_set_callback)
9119 (select_singlestep_lwp_callback, set_ignore_sigint)
9120 (status_callback, resumed_callback, resume_clear_callback)
9121 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9123 (linux_nat_target::detach, linux_nat_target::resume)
9124 (linux_stop_and_wait_all_lwps, select_event_lwp)
9125 (linux_nat_filter_event, linux_nat_wait_1)
9126 (linux_nat_target::kill, linux_nat_target::stop)
9127 (linux_nat_target::stop): Update.
9128 (linux_nat_resume_callback): Change type.
9129 (resume_stopped_resumed_lwps, count_events_callback)
9130 (select_event_lwp_callback): Likewise.
9131 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9132 * arm-linux-nat.c (struct update_registers_data): Remove.
9133 (update_registers_callback): Change type.
9134 (arm_linux_insert_hw_breakpoint1): Update.
9135 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9137 (x86_linux_dr_set_addr): Update.
9138 (x86_linux_dr_set_control): Update.
9139 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9140 (iterate_over_lwps): Use gdb::function_view.
9141 * nat/aarch64-linux-hw-point.c (struct
9142 aarch64_dr_update_callback_param): Remove.
9143 (debug_reg_change_callback): Change type.
9144 (aarch64_notify_debug_reg_change): Update.
9145 * s390-linux-nat.c (s390_refresh_per_info): Update.
9147 2019-03-11 Tom Tromey <tromey@adacore.com>
9149 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9150 redundant assignment to "this_cu".
9152 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9154 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9156 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9158 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9160 (rank_one_type): ... this.
9162 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9164 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9166 (rank_one_type): ... this.
9168 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9170 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9172 (rank_one_type): ... this.
9174 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9176 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9178 (rank_one_type): ... this.
9180 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9182 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9184 (rank_one_type): ... this.
9186 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9188 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9190 (rank_one_type): ... this.
9192 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9194 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9196 (rank_one_type): ... this.
9198 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9200 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9202 (rank_one_type): ... this.
9204 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9206 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9208 (rank_one_type): ... this.
9210 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9212 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9214 (rank_one_type): ... this.
9216 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9218 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9220 (rank_one_type): ... this.
9222 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9224 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9226 (rank_one_type): ... this.
9228 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9230 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9231 inferior-events' shows the example events.
9233 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9235 Support styling on native MS-Windows console
9238 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9239 on MS-Windows if $TERM is not defined.
9241 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9243 * posix-hdep.c (gdb_console_fputs):
9244 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9246 * ui-file.h (gdb_console_fputs): Add prototype.
9248 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9249 back to fputs only if the former returns zero.
9251 2019-03-07 Tom Tromey <tom@tromey.com>
9253 * symmisc.c (print_symbol_bcache_statistics): Update.
9254 (print_objfile_statistics): Update.
9255 * symfile.c (allocate_symtab): Update.
9256 * stabsread.c: Don't include bcache.h.
9257 * psymtab.h (struct psymbol_bcache): Don't declare.
9258 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9259 (psymbol_bcache_init, psymbol_bcache_free)
9260 (psymbol_bcache_get_bcache): Don't declare.
9261 * psymtab.c (struct psymbol_bcache): Remove.
9262 (psymtab_storage::psymtab_storage): Update.
9263 (psymtab_storage::~psymtab_storage): Update.
9264 (psymbol_bcache_init, psymbol_bcache_free)
9265 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9266 (add_psymbol_to_bcache): Update.
9267 (allocate_psymtab): Update.
9268 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9269 macro_cache>: No longer pointers.
9270 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9271 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9272 * macrotab.c (macro_bcache): Update.
9273 * macroexp.c: Don't include bcache.h.
9274 * gdbtypes.c (check_types_worklist): Update.
9275 (types_deeply_equal): Remove TRY/CATCH. Update.
9276 * elfread.c (elf_symtab_read): Update.
9277 * dwarf2read.c: Don't include bcache.h.
9278 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9279 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9280 (print_bcache_statistics, bcache_memory_used): Don't declare.
9281 (struct bcache): Move from bcache.c. Add constructor, destructor,
9282 methods. Rename all data members.
9283 * bcache.c (struct bcache): Move to bcache.h.
9284 (bcache::expand_hash_table): Rename from expand_hash_table.
9286 (bcache::insert): Rename from bcache_full.
9287 (bcache::compare): Rename from bcache_compare.
9288 (bcache_xmalloc): Remove.
9289 (bcache::~bcache): Rename from bcache_xfree.
9290 (bcache::print_statistics): Rename from print_bcache_statistics.
9291 (bcache::memory_used): Rename from bcache_memory_used.
9293 2019-03-07 Pedro Alves <palves@redhat.com>
9295 * infrun.c (normal_stop): Also check for
9296 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9298 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9300 * f-lang.c (value_from_host_double): Moved to...
9301 * value.c (value_from_host_double): ...here.
9302 * value.h (value_from_host_double): Declare.
9303 * guile/scm-math.c (vlscm_convert_typed_number): Use
9304 value_from_host_double.
9305 (vlscm_convert_number): Likewise.
9306 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9307 * python/py-value.c (convert_value_from_python): Likewise.
9309 2019-03-06 Tom Tromey <tom@tromey.com>
9311 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9313 2019-03-06 Tom Tromey <tom@tromey.com>
9315 * utils.h (free_current_contents): Don't declare.
9316 * utils.c (free_current_contents): Remove.
9318 2019-03-06 Tom Tromey <tom@tromey.com>
9320 * top.c (quit_force): Update.
9321 * main.c (captured_command_loop): Update.
9322 * common/new-op.c (operator new): Update.
9323 * common/common-exceptions.c (struct catcher)
9324 <save_cleanup_chain>: Remove member.
9325 (exceptions_state_mc_init): Update.
9326 (exception_try_scope_entry): Return nullptr.
9327 (exception_try_scope_exit, exception_rethrow)
9328 (throw_exception_sjlj, throw_exception_cxx): Update.
9329 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9330 (all_cleanups, do_cleanups, discard_cleanups)
9331 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9332 (restore_cleanups, restore_final_cleanups): Don't declare.
9333 (do_final_cleanups): Remove parameter.
9334 * common/cleanups.c (cleanup_chain, make_cleanup)
9335 (make_cleanup_dtor, all_cleanups, do_cleanups)
9336 (discard_my_cleanups, discard_cleanups)
9337 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9338 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9339 (null_cleanup): Remove.
9340 (do_final_cleanups): Remove parameter.
9342 2019-03-06 Tom Tromey <tom@tromey.com>
9344 * remote.c (remote_target::remote_parse_stop_reply): Use
9347 2019-03-06 Tom Tromey <tom@tromey.com>
9349 * stabsread.c (struct stabs_field_info): Rename from field_info.
9350 <list, fnlist>: Add initializers.
9351 <obstack>: New member.
9352 (read_member_functions, read_struct_fields, read_baseclasses):
9353 Allocate on obstack. Don't use cleanups.
9354 (read_one_struct_field, read_member_functions, read_struct_fields)
9355 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9356 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9357 (read_struct_type): Update.
9359 2019-03-06 Tom Tromey <tom@tromey.com>
9361 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9362 * common/filestuff.h (make_cleanup_close): Don't declare.
9363 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9366 2019-03-06 Tom Tromey <tom@tromey.com>
9368 * solib-aix.c: Use make_scope_exit.
9370 2019-03-06 Tom Tromey <tom@tromey.com>
9372 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9373 Use make_scope_exit.
9375 2019-03-06 Tom Tromey <tom@tromey.com>
9377 * solib-svr4.c (disable_probes_interface): Remove parameter.
9378 (svr4_handle_solib_event): Use make_scope_exit.
9380 2019-03-06 Tom Tromey <tom@tromey.com>
9382 * remote.c (struct stop_reply_deleter): Remove.
9383 (stop_reply_up): Update.
9384 (struct stop_reply): Derive from notif_event. Don't typedef.
9385 <regcache>: Now a std::vector.
9386 (stop_reply_xfree): Remove.
9387 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9388 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9389 (remote_target::discard_pending_stop_replies): Use delete.
9390 (remote_target::remote_parse_stop_reply): Update.
9391 (remote_target::process_stop_reply): Update.
9392 * remote-notif.h (struct notif_event): Add virtual destructor.
9393 Remove "dtr" member.
9394 (struct notif_client) <alloc_event>: Return a unique_ptr.
9395 (notif_event_xfree): Don't declare.
9396 (notif_event_up): New typedef.
9397 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9398 (notif_event_xfree, do_notif_event_xfree): Remove.
9399 (remote_notif_state_xfree): Update.
9401 2019-03-06 Tom Tromey <tom@tromey.com>
9403 * infrun.c (displaced_step_clear_cleanup): Now a
9404 forward_scope_exit type.
9405 (displaced_step_prepare_throw): Update.
9406 (displaced_step_fixup): Update.
9408 2019-03-06 Tom Tromey <tom@tromey.com>
9410 * inferior.h (class inferior): Update comment.
9411 * gdbthread.h (class thread_info): Update comment.
9413 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9414 Tom Tromey <tom@tromey.com>
9416 * stabsread.h (struct stab_section_list): Remove.
9417 (coffstab_build_psymtabs): Update.
9418 * dbxread.c (symbuf_sections): Now a std::vector.
9419 (sect_idx): New global.
9420 (fill_symbuf): Update.
9421 (coffstab_build_psymtabs): Change type of stabsects parameter.
9423 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9425 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9426 (coff_locate_sections): Update.
9427 (coff_symfile_read): Remove cleanups. Update.
9428 (init_stringtab): Add storage parameter.
9429 (free_stringtab, free_stringtab_cleanup): Remove.
9430 (init_lineno): Add storage parameter.
9431 (free_linetab, free_linetab_cleanup): Remove.
9433 2019-03-06 Pedro Alves <palves@redhat.com>
9435 * linux-fork.c (fork_info::clobber_regs): Delete.
9436 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9437 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9439 (scoped_switch_fork_info::scoped_switch_fork_info)
9440 (checkpoint_command, linux_fork_context): Adjust
9441 fork_save_infrun_state calls.
9443 2019-03-06 Pedro Alves <palves@redhat.com>
9445 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9446 (inf_has_multiple_threads): Return 'bool' and rewrite using
9447 inferior_info::threads().
9449 2019-03-06 Pedro Alves <palves@redhat.com>
9451 * linux-fork.c: Include <list>.
9452 (fork_list): Now a std::list instance.
9453 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9454 (forks_exist_p, find_last_fork): Adjust.
9458 (free_fork): Delete, folded into fork_info::~fork_info().
9459 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9461 (init_fork_list): Delete.
9462 (linux_fork_killall, linux_fork_mourn_inferior)
9463 (linux_fork_detach, info_checkpoints_command): Adjust.
9464 (_initialize_linux_fork): No longer call init_fork_list.
9466 2019-03-06 Pedro Alves <palves@redhat.com>
9468 * linux-fork.c (new_fork): New, split out of ...
9469 (add_fork): ... this. Return void. Move "first fork" special
9470 case from here, to ...
9471 (checkpoint_command): ... here.
9472 * linux-linux.h (add_fork): Return void.
9474 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9476 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9478 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9479 Chris January <chris.january@arm.com>
9480 David Lecomber <david.lecomber@arm.com>
9482 * f-exp.y: New token, UNOP_INTRINSIC.
9483 (exp): New pattern using UNOP_INTRINSIC token.
9484 (f77_keywords): Add 'abs' keyword.
9485 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9486 (value_from_host_double): New function.
9487 (evaluate_subexp_f): Support UNOP_ABS.
9489 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9491 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9494 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9496 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9497 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9498 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9500 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9502 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9504 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9505 Chris January <chris.january@arm.com>
9507 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9508 * f-exp.y: Define 'KIND' token.
9509 (exp): New pattern for KIND expressions.
9510 (ptype): Handle types with a kind extension.
9511 (direct_abs_decl): Extend to spot kind extensions.
9512 (f77_keywords): Add 'kind' to the list.
9513 (push_kind_type): New function.
9514 (convert_to_kind_type): New function.
9515 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9516 * parse.c (operator_length_standard): Likewise.
9517 * parser-defs.h (enum type_pieces): Add tp_kind.
9518 * std-operator.def: Add UNOP_KIND.
9520 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9522 * f-exp.y (f_parse): Set yydebug.
9524 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9526 * f-lang.c (evaluate_subexp_f): New function.
9527 (exp_descriptor_f): New global.
9528 (f_language_defn): Use exp_descriptor_f instead of
9529 exp_descriptor_standard.
9531 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9533 * f-exp.y (struct token): Add comments.
9534 (dot_ops): Remove uppercase versions and the end marker.
9535 (f77_keywords): Likewise.
9536 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9537 entries in the dot_ops array are case insensitive, and use
9538 strncasecmp to compare strings. Also some whitespace cleanup in
9539 this area. Similar for the f77_keywords array, except entries in
9540 this list might be case sensitive.
9542 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9544 * f-exp.y (struct f77_boolean_val): Add comments.
9545 (boolean_values): Remove uppercase versions, and end marker.
9546 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9547 and use strncasecmp to achieve case insensitivity. Additionally,
9548 perform whitespace cleanup around this code.
9550 2019-03-06 Tom Tromey <tromey@adacore.com>
9552 * remote-sim.c (gdbsim_target_open): Use result of
9555 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9556 Dirk Schubert <dirk.schubert@arm.com>
9557 Chris January <chris.january@arm.com>
9559 * eval.c (evaluate_subexp_standard): Call Fortran argument
9561 * f-lang.c (struct value): A value which can be passed into a
9562 Fortran function call.
9563 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9565 (struct type): Value ready for a Fortran function call.
9566 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9568 * f-lang.h (fortran_argument_convert): Declaration.
9569 (fortran_preserve_arg_pointer): Declaration.
9570 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9572 2019-03-05 Tom Tromey <tromey@adacore.com>
9574 * python/py-prettyprint.c (print_string_repr): Remove #if.
9575 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9577 2019-03-05 Tom Tromey <tromey@adacore.com>
9579 * target.c (the_dummy_target): Move later. Change type to
9581 (initialize_targets): Don't initialize the_dummy_target.
9583 2019-03-05 Tom Tromey <tromey@adacore.com>
9585 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9586 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9588 2019-03-05 Tom Tromey <tromey@adacore.com>
9590 * windows-nat.c (windows_nat_target::attach)
9591 (windows_nat_target::detach): Don't call gdb_flush.
9592 * valprint.c (generic_val_print, val_print, val_print_string):
9593 Don't call gdb_flush.
9594 * utils.c (defaulted_query): Don't call gdb_flush.
9595 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9596 * target.c (target_announce_detach): Don't call gdb_flush.
9597 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9598 * remote.c (extended_remote_target::attach): Don't call
9600 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9601 * printcmd.c (do_examine): Don't call gdb_flush.
9602 (info_display_command): Don't call gdb_flush.
9603 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9604 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9605 * memattr.c (info_mem_command): Don't call gdb_flush.
9606 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9607 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9608 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9609 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9610 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9611 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9612 (gnu_nat_target::detach): Don't call gdb_flush.
9613 * f-valprint.c (f_val_print): Don't call gdb_flush.
9614 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9615 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9616 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9618 * c-valprint.c (c_val_print): Don't call gdb_flush.
9619 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9621 2019-03-05 Tom Tromey <tromey@adacore.com>
9623 * varobj.c (update_dynamic_varobj_children): Update.
9624 (install_default_visualizer): Use reset, not release.
9625 * value.c (set_internalvar): Update.
9626 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9627 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9628 ATTRIBUTE_UNUSED_RESULT.
9630 2019-03-05 Tom Tromey <tromey@adacore.com>
9632 * remote.c (class scoped_remote_fd) <release>: Add
9633 ATTRIBUTE_UNUSED_RESULT.
9635 2019-03-05 Tom Tromey <tromey@adacore.com>
9637 * macroexp.c (struct macro_buffer) <release>: Add
9638 ATTRIBUTE_UNUSED_RESULT.
9640 2019-03-05 Tom Tromey <tromey@adacore.com>
9642 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9643 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9644 ATTRIBUTE_UNUSED_RESULT.
9646 2019-03-05 Tom Tromey <tromey@adacore.com>
9648 * common/scoped_fd.h (class scoped_fd) <release>: Add
9649 ATTRIBUTE_UNUSED_RESULT.
9651 2019-03-05 Tom Tromey <tromey@adacore.com>
9653 * parser-defs.h (struct parser_state) <release>: Add
9654 ATTRIBUTE_UNUSED_RESULT.
9656 2019-03-05 Tom Tromey <tromey@adacore.com>
9658 * utils.h (class gdb_argv) <release>: Add
9659 ATTRIBUTE_UNUSED_RESULT.
9660 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9662 2019-03-02 Eli Zaretskii <eliz@gnu.org>
9664 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9665 for-loop range, to avoid compiler warnings.
9667 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9668 avoid compiler warnings about unused variables.
9670 * NEWS: Mention end of support for native debugging on MS-Windows
9674 * common/netstuff.c:
9675 * gdbserver/gdbreplay.c
9676 * gdbserver/remote-utils.c:
9678 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9679 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9680 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9681 'getaddrinfo' and 'freeaddrinfo' were not available before
9682 Windows XP, and mingw.org's MinGW headers by default define
9683 _WIN32_WINNT to 0x500.
9685 2019-03-01 Gary Benson <gbenson@redhat.com>
9687 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9689 2019-02-28 Brian Vandenberg <phantall@gmail.com>
9690 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9693 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9694 set_sigint_trap, clear_sigint_trap.
9696 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9698 * target.c (target_detach): Clear the regcache and the
9701 2019-02-27 Pedro Alves <palves@redhat.com>
9703 * utils.c (set_screen_size): When we cap the height/width sizes,
9704 tweak the corresponding command variable to show "unlimited":
9706 2019-02-27 Saagar Jha <saagar@saagarjha.com>
9707 Pedro Alves <palves@redhat.com>
9709 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9710 before calling rl_set_screen_size.
9712 2019-02-27 Tom Tromey <tromey@adacore.com>
9714 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9716 * python/py-value.c: Remove Python 2.4 workaround.
9717 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9719 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9720 Python 2.4 workaround.
9721 * python/python-internal.h: Remove Python 2.4 comment.
9722 (Py_ssize_t): Don't define.
9723 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9724 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9725 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9726 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9727 * python/python.c (do_start_initialization): Remove Python 2.4
9729 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9730 (print_children): Remove Python 2.4 workaround.
9731 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9733 (CHARBUFFERPROC_NAME): Remove.
9734 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9735 Python 2.4 workaround.
9737 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9739 * NEWS: Note minimum Python version.
9741 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9743 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9744 code from these functions. Remove corresponding ifdefs. Use
9745 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9746 Remove gotos and target of gotos.
9747 (infpy_search_memory): Likewise.
9749 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9751 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9752 (hppa_gdbarch_init): Don't register deleted functions with
9755 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9757 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9758 (h8300_unwind_sp): Delete.
9759 (h8300_dummy_id): Delete.
9760 (h8300_gdbarch_init): Don't register deleted functions with
9763 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9765 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9766 (ft32_unwind_pc): Delete.
9767 (ft32_unwind_sp): Delete.
9768 (ft32_gdbarch_init): Don't register deleted functions with
9771 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9773 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9774 (frv_unwind_pc): Delete.
9775 (frv_unwind_sp): Delete.
9776 (frv_gdbarch_init): Don't register deleted functions with
9779 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9781 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9782 (riscv_unwind_pc): Delete.
9783 (riscv_unwind_sp): Delete.
9784 (riscv_gdbarch_init): Don't register deleted functions with
9787 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9789 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9790 (csky_unwind_pc): Delete.
9791 (csky_unwind_sp): Delete.
9792 (csky_gdbarch_init): Don't register deleted functions with
9795 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9797 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9798 (cris_unwind_pc): Delete.
9799 (cris_unwind_sp): Delete.
9800 (cris_gdbarch_init): Don't register deleted functions with
9803 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9805 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9806 (bfin_unwind_pc): Delete.
9807 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9809 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9811 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9812 (arm_unwind_pc): Delete.
9813 (arm_unwind_sp): Delete.
9814 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9816 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9818 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9819 (arc_unwind_pc): Delete.
9820 (arc_unwind_sp): Delete.
9821 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9823 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9825 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9826 (alpha_unwind_pc): Delete.
9827 (alpha_gdbarch_init): Don't register deleted functions with
9830 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9832 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9833 (aarch64_unwind_pc): Delete.
9834 (aarch64_unwind_sp): Delete.
9835 (aarch64_gdbarch_init): Don't register deleted functions with
9838 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9840 * gdbtypes.c (type_align): Don't consider static members when
9841 computing structure alignment.
9843 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9845 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9846 return 0 for other types.
9847 * arch-utils.c (default_type_align): Always return 0.
9848 * gdbarch.h: Regenerate.
9849 * gdbarch.sh (type_align): Extend comment.
9850 * gdbtypes.c (type_align): Add additional comments, always call
9851 gdbarch_type_align before applying the default rules.
9852 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9853 generic code will then apply a suitable default.
9854 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9855 types, return 0 for other types.
9857 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9859 * NEWS: Create a new section for the next release branch.
9860 Rename the section of the current branch, now that it has
9863 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9865 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9866 * version.in: Bump version to 8.3.50.DATE-git.
9868 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9870 * aix-thread.c (ptid_cmp): Remove unused variable.
9871 (get_signaled_thread): Likewise.
9872 (store_regs_user_thread): Likewise.
9873 (store_regs_kernel_thread): Likewise.
9874 (fetch_regs_kernel_thread): Remove shadowed variable.
9876 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9878 * features/riscv/32bit-cpu.xml: Add register numbers.
9879 * features/riscv/32bit-fpu.c: Regenerate.
9880 * features/riscv/32bit-fpu.xml: Add register numbers.
9881 * features/riscv/64bit-cpu.xml: Add register numbers.
9882 * features/riscv/64bit-fpu.c: Regenerate.
9883 * features/riscv/64bit-fpu.xml: Add register numbers.
9885 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9887 * NEWS: Mention two argument form of gdb.Value constructor.
9888 * python/py-value.c (convert_buffer_and_type_to_value): New
9890 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9891 Add support for handling an optional second argument. Call
9892 convert_buffer_and_type_to_value as appropriate.
9893 * python/python-internal.h (Py_buffer_deleter): New struct.
9894 (Py_buffer_up): New typedef.
9896 2019-02-25 John Baldwin <jhb@FreeBSD.org>
9898 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9899 instead of releasing ownership.
9901 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
9903 * dwarf2read.c (open_and_init_dwp_file): Call
9904 elf_numsections instead of bfd_count_sections to initialize
9905 dwp_file->num_sections.
9907 2019-02-25 Tom Tromey <tromey@adacore.com>
9909 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9911 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9913 * gcore.in: Add '--readnever' option when invoking GDB.
9915 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9917 * MAINTAINERS: Update my email address.
9919 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9921 * build-id.c (build_id_to_debug_bfd_1): New function.
9922 (build_id_to_debug_bfd): Look for separate debug file in
9925 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9927 * gdbarch.sh: Update the copyright year range that is placed into
9930 2019-02-22 Keith Seitz <keiths@redhat.com>
9933 * linespec.c (create_sals_line_offset): Search for the default
9934 symtab's filename instead of its fullname.
9936 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9938 * NEWS: Update style defaults.
9940 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9942 * main.c (captured_main_1): Disable styling in batch mode.
9944 2019-02-20 Tom Tromey <tom@tromey.com>
9946 * symtab.c (symtab_symbol_info): Fix typos.
9948 2019-02-20 Tom Tromey <tromey@adacore.com>
9950 * findcmd.c (_initialize_mem_search): Use upper case for
9951 metasyntactic variables.
9953 2019-02-20 Alan Hayward <alan.hayward@arm.com>
9955 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9956 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9958 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9960 * top.h (source_file_name): Change to std::string.
9961 * top.c (source_file_name): Likewise.
9962 (command_line_input): Adjust.
9963 * cli/cli-script.c (script_from_file): Adjust.
9965 2019-02-19 Tom Tromey <tromey@adacore.com>
9967 * ravenscar-thread.c
9968 (ravenscar_thread_target::update_thread_list): Don't call
9969 ada_build_task_list.
9970 * ada-lang.h (ada_build_task_list): Don't declare.
9971 * ada-tasks.c (struct ada_tasks_inferior_data)
9972 <task_list_valid_p>: Now bool.
9973 (read_known_tasks, ada_task_list_changed)
9974 (ada_tasks_invalidate_inferior_data): Update.
9975 (read_known_tasks_array): Return bool.
9976 (read_known_tasks_list): Likewise.
9977 (read_known_tasks): Return void.
9978 (ada_build_task_list): Now static.
9980 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9982 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9983 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9985 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9987 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9988 variant for ada_tasks_pspace_data_handle and
9989 ada_tasks_inferior_data_handle.
9990 (ada_tasks_pspace_data_cleanup): New function.
9991 (ada_tasks_inferior_data_cleanup): New function.
9993 2019-02-17 Tom Tromey <tom@tromey.com>
9995 * macrotab.h (macro_source_fullname): Return a std::string.
9996 * macrotab.c (macro_include, check_for_redefinition)
9997 (macro_undef, macro_lookup_definition, foreach_macro)
9998 (foreach_macro_in_scope): Update.
9999 (macro_source_fullname): Return a std::string.
10000 * macrocmd.c (show_pp_source_pos): Update.
10002 2019-02-17 Tom Tromey <tom@tromey.com>
10004 * macrocmd.c (show_pp_source_pos): Style the file names.
10006 2019-02-17 Tom Tromey <tom@tromey.com>
10009 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10011 2019-02-17 Tom Tromey <tom@tromey.com>
10013 * ada-lang.c (user_select_syms): Use filtered printing.
10014 * utils.c (wrap_style): New global.
10015 (desired_style): Remove.
10016 (emit_style_escape): Add stream parameter.
10017 (set_output_style, reset_terminal_style, prompt_for_continue):
10019 (flush_wrap_buffer): Only flush gdb_stdout.
10020 (wrap_here): Set wrap_style.
10021 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10022 treat escape sequences as a character. Change when wrap buffer is
10024 (fputs_styled): Do not set the output style when the default is
10026 * ui-style.h (struct ui_file_style) <is_default>: New method.
10027 * source.c (print_source_lines_base): Emit escape sequences in one
10030 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10032 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10033 integers and enumeration types.
10035 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10037 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10038 instead of lookup_symbol_in_language
10039 (do_exact_match): New function.
10040 (ada_get_symbol_name_matcher): Return do_exact_match when
10041 doing a verbatim match.
10043 2019-02-15 Tom Tromey <tromey@adacore.com>
10045 * ravenscar-thread.c (ravenscar_thread_target::resume)
10046 (ravenscar_thread_target::wait): Special case wildcard requests.
10048 2019-02-15 Tom Tromey <tromey@adacore.com>
10050 * ravenscar-thread.c (base_ptid): Remove.
10051 (struct ravenscar_thread_target) <close>: New method.
10052 <m_base_ptid>: New member.
10053 <update_inferior_ptid, active_task, task_is_currently_active,
10054 runtime_initialized>: Declare methods.
10055 <ravenscar_thread_target>: Add constructor.
10056 (ravenscar_thread_target::task_is_currently_active)
10057 (ravenscar_thread_target::update_inferior_ptid)
10058 (ravenscar_runtime_initialized): Rename. Now methods.
10059 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10060 (ravenscar_thread_target::update_thread_list): Update.
10061 (ravenscar_thread_target::active_task): Now method.
10062 (ravenscar_thread_target::store_registers)
10063 (ravenscar_thread_target::prepare_to_store)
10064 (ravenscar_thread_target::prepare_to_store)
10065 (ravenscar_thread_target::mourn_inferior): Update.
10066 (ravenscar_inferior_created): Use "new" to create target.
10067 (ravenscar_thread_target::get_ada_task_ptid): Update.
10068 (_initialize_ravenscar): Don't initialize base_ptid.
10069 (ravenscar_ops): Remove global.
10071 2019-02-15 Tom Tromey <tromey@adacore.com>
10073 * target.h (push_target): Declare new overload.
10074 * target.c (push_target): New overload, taking an rvalue reference.
10075 * remote.c (remote_target::open_1): Use push_target overload.
10076 * corelow.c (core_target_open): Use push_target overload.
10078 2019-02-15 Tom Tromey <tromey@adacore.com>
10080 * ravenscar-thread.c (is_ravenscar_task)
10081 (ravenscar_task_is_currently_active): Return bool.
10082 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10083 (_initialize_ravenscar): Remove "(void)".
10084 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10087 2019-02-15 Tom Tromey <tromey@adacore.com>
10089 * ravenscar-thread.c (ravenscar_runtime_initializer)
10090 (has_ravenscar_runtime, get_running_thread_id)
10091 (ravenscar_thread_target::resume): Fix indentation.
10093 2019-02-15 Tom Tromey <tromey@adacore.com>
10095 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10096 from ravenscar_arch_ops.
10097 (sparc_ravenscar_ops::fetch_registers)
10098 (sparc_ravenscar_ops::store_registers): Now methods.
10099 (sparc_ravenscar_prepare_to_store): Remove.
10100 (sparc_ravenscar_ops): Redefine.
10101 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10102 methods and destructor. Remove members.
10103 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10104 (ravenscar_thread_target::store_registers)
10105 (ravenscar_thread_target::prepare_to_store): Update.
10106 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10108 (struct ppc_ravenscar_powerpc_ops): Derive from
10109 ravenscar_arch_ops.
10110 (ppc_ravenscar_powerpc_ops::fetch_registers)
10111 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10112 (ppc_ravenscar_powerpc_ops): Redefine.
10113 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10114 (ppc_ravenscar_e500_ops::fetch_registers)
10115 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10116 (ppc_ravenscar_e500_ops): Redefine.
10117 * aarch64-ravenscar-thread.c
10118 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10119 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10120 (aarch64_ravenscar_fetch_registers)
10121 (aarch64_ravenscar_store_registers): Now methods.
10122 (aarch64_ravenscar_ops): Redefine.
10124 2019-02-15 Tom Tromey <tromey@adacore.com>
10126 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10127 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10128 (ravenscar_thread_target::stopped_by_watchpoint)
10129 (ravenscar_thread_target::stopped_data_address)
10130 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10132 2019-02-15 Tom Tromey <tromey@adacore.com>
10134 * ravenscar-thread.c: Fix some typos.
10136 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10137 Tom Tromey <tromey@adacore.com>
10139 * ada-lang.c (ada_exception_sal): Change addr_string to a
10141 (create_ada_exception_catchpoint): Update.
10143 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10144 Tom Tromey <tromey@adacore.com>
10146 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10147 (bp_location_ops): Remove.
10148 (base_breakpoint_allocate_location): Update.
10149 (free_bp_location): Update.
10150 * ada-lang.c (class ada_catchpoint_location)
10151 <ada_catchpoint_location>: Remove ops parameter.
10152 (ada_catchpoint_location_dtor): Remove.
10153 (ada_catchpoint_location_ops): Remove.
10154 (allocate_location_exception): Update.
10155 * breakpoint.h (struct bp_location_ops): Remove.
10156 (class bp_location) <bp_location>: Remove bp_location_ops
10158 <~bp_location>: Add destructor.
10161 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10162 Pedro Alves <palves@redhat.com>
10164 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10167 2019-02-14 David Michael <fedora.dm0@gmail.com>
10168 Samuel Thibault <samuel.thibault@gnu.org>
10169 Thomas Schwinge <thomas@codesourcery.com>
10171 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10172 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10174 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10176 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10177 (check_empty): Use "const char *".
10179 * gnu-nat.c (gnu_nat_target::detach): Instead of
10180 'detach_inferior (pid)' call
10181 'detach_inferior (find_inferior_pid (pid))'.
10183 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10184 'nat/fork-inferior.o'.
10185 * gnu-nat.c: #include "nat/fork-inferior.h".
10187 * gnu-nat.c (gnu_nat_target::detach): Instead of
10188 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10189 * gnu-nat.h: #include "inf-child.h".
10190 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10191 'i386_gnu_nat_target::fetch_registers'.
10192 (gnu_store_registers): Rename/move to
10193 'i386_gnu_nat_target::store_registers'.
10195 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10196 * gnu-nat.h (mach_thread_info): New function.
10197 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10199 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10201 2019-02-14 Frederic Konrad <konrad@adacore.com>
10203 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10205 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10207 * windows-nat.c (windows_add_thread): Add new parameter
10208 "main_thread_p" with default value set to false. Update
10209 function documentation as well as all callers.
10210 (windows_delete_thread): Likewise.
10211 (fake_create_process): Update call to windows_add_thread.
10212 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10213 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10214 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10215 call to windows_delete_thread.
10217 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10219 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10221 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10223 * symfile.c (find_separate_debug_file): Use canonical path of
10224 sysroot with child_path instead of gdb_sysroot if it is valid.
10226 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10228 * symfile.c (find_separate_debug_file): Use child_path to
10229 determine if an object file is under a sysroot.
10231 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10233 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10234 unittests/child-path-selftests.c.
10235 * common/pathstuff.c (child_path): New function.
10236 * common/pathstuff.h (child_path): New prototype.
10237 * unittests/child-path-selftests.c: New file.
10239 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10241 * symfile.c (find_separate_debug_file): Look for separate debug
10242 files in debug directories under the sysroot.
10244 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10246 * symtab.h (struct minimal_symbol data_p): New const method.
10247 (struct minimal_symbol text_p): Likewise.
10248 * symtab.c (output_source_filename): Use file name style
10249 to print file name.
10250 (print_symbol_info): Likewise.
10251 (print_msymbol_info): Use address style to print addresses.
10252 Use function name style to print executable text symbols.
10253 (expand_symtab_containing_pc): Use data_p.
10254 (find_pc_sect_compunit_symtab): Likewise.
10256 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10258 * breakpoint.c (describe_other_breakpoints): Use address style
10259 to print addresses.
10260 (say_where): Likewise.
10262 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10264 * ada-typeprint.c (print_func_type): Print function name
10265 style to print function name.
10266 * c-typeprint.c (c_print_type_1): Likewise.
10268 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10270 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10273 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10275 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10278 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10280 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10281 TYPE_CODE_REF types.
10283 2019-02-08 Jim Wilson <jimw@sifive.com>
10285 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10286 (riscv_linux_fregset): New.
10287 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10289 2019-02-07 Tom Tromey <tom@tromey.com>
10291 * thread.c (thread_cancel_execution_command): Update.
10292 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10294 (struct thread_fsm_ops): Remove.
10295 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10296 (thread_fsm_should_stop, thread_fsm_return_value)
10297 (thread_fsm_set_finished, thread_fsm_finished_p)
10298 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10300 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10301 * infrun.c (clear_proceed_status_thread)
10302 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10303 (print_stop_event): Update.
10304 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10306 (step_command_fsm_ops): Remove.
10307 (new_step_command_fsm): Remove.
10309 (step_command_fsm::should_stop): Rename from
10310 step_command_fsm_should_stop.
10311 (step_command_fsm::clean_up): Rename from
10312 step_command_fsm_clean_up.
10313 (step_command_fsm::do_async_reply_reason): Rename from
10314 step_command_fsm_async_reply_reason.
10315 (struct until_next_fsm): Inherit from thread_fsm. Add
10317 (until_next_fsm_ops): Remove.
10318 (new_until_next_fsm): Remove.
10319 (until_next_fsm::should_stop): Rename from
10320 until_next_fsm_should_stop.
10321 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10322 (until_next_fsm::do_async_reply_reason): Rename from
10323 until_next_fsm_async_reply_reason.
10324 (struct finish_command_fsm): Inherit from thread_fsm. Add
10325 constructor. Change type of breakpoint.
10326 (finish_command_fsm_ops): Remove.
10327 (new_finish_command_fsm): Remove.
10328 (finish_command_fsm::should_stop): Rename from
10329 finish_command_fsm_should_stop.
10330 (finish_command_fsm::clean_up): Rename from
10331 finish_command_fsm_clean_up.
10332 (finish_command_fsm::return_value): Rename from
10333 finish_command_fsm_return_value.
10334 (finish_command_fsm::do_async_reply_reason): Rename from
10335 finish_command_fsm_async_reply_reason.
10336 (finish_command): Update.
10337 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10339 (call_thread_fsm_ops): Remove.
10340 (call_thread_fsm::call_thread_fsm): Rename from
10341 new_call_thread_fsm.
10342 (call_thread_fsm::should_stop): Rename from
10343 call_thread_fsm_should_stop.
10344 (call_thread_fsm::should_notify_stop): Rename from
10345 call_thread_fsm_should_notify_stop.
10346 (run_inferior_call, call_function_by_hand_dummy): Update.
10347 * cli/cli-interp.c (should_print_stop_to_console): Update.
10348 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10349 Add constructor. Change type of location_breakpoint,
10351 (until_break_fsm_ops): Remove.
10352 (new_until_break_fsm): Remove.
10353 (until_break_fsm::should_stop): Rename from
10354 until_break_fsm_should_stop.
10355 (until_break_fsm::clean_up): Rename from
10356 until_break_fsm_clean_up.
10357 (until_break_fsm::do_async_reply_reason): Rename from
10358 until_break_fsm_async_reply_reason.
10359 (until_break_command): Update.
10360 * thread-fsm.c: Remove.
10361 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10363 2019-02-07 Tom Tromey <tom@tromey.com>
10365 * yy-remap.h: Add include guard.
10366 * xtensa-tdep.h: Add include guard.
10367 * xcoffread.h: Rename include guard.
10368 * varobj-iter.h: Add include guard.
10369 * tui/tui.h: Rename include guard.
10370 * tui/tui-winsource.h: Rename include guard.
10371 * tui/tui-wingeneral.h: Rename include guard.
10372 * tui/tui-windata.h: Rename include guard.
10373 * tui/tui-win.h: Rename include guard.
10374 * tui/tui-stack.h: Rename include guard.
10375 * tui/tui-source.h: Rename include guard.
10376 * tui/tui-regs.h: Rename include guard.
10377 * tui/tui-out.h: Rename include guard.
10378 * tui/tui-layout.h: Rename include guard.
10379 * tui/tui-io.h: Rename include guard.
10380 * tui/tui-hooks.h: Rename include guard.
10381 * tui/tui-file.h: Rename include guard.
10382 * tui/tui-disasm.h: Rename include guard.
10383 * tui/tui-data.h: Rename include guard.
10384 * tui/tui-command.h: Rename include guard.
10385 * tic6x-tdep.h: Add include guard.
10386 * target/waitstatus.h: Rename include guard.
10387 * target/wait.h: Rename include guard.
10388 * target/target.h: Rename include guard.
10389 * target/resume.h: Rename include guard.
10390 * target-float.h: Rename include guard.
10391 * stabsread.h: Add include guard.
10392 * rs6000-tdep.h: Add include guard.
10393 * riscv-fbsd-tdep.h: Add include guard.
10394 * regformats/regdef.h: Rename include guard.
10395 * record.h: Rename include guard.
10396 * python/python.h: Rename include guard.
10397 * python/python-internal.h: Rename include guard.
10398 * python/py-stopevent.h: Rename include guard.
10399 * python/py-ref.h: Rename include guard.
10400 * python/py-record.h: Rename include guard.
10401 * python/py-record-full.h: Rename include guard.
10402 * python/py-record-btrace.h: Rename include guard.
10403 * python/py-instruction.h: Rename include guard.
10404 * python/py-events.h: Rename include guard.
10405 * python/py-event.h: Rename include guard.
10406 * procfs.h: Add include guard.
10407 * proc-utils.h: Add include guard.
10408 * p-lang.h: Add include guard.
10409 * or1k-tdep.h: Rename include guard.
10410 * observable.h: Rename include guard.
10411 * nto-tdep.h: Rename include guard.
10412 * nat/x86-linux.h: Rename include guard.
10413 * nat/x86-linux-dregs.h: Rename include guard.
10414 * nat/x86-gcc-cpuid.h: Add include guard.
10415 * nat/x86-dregs.h: Rename include guard.
10416 * nat/x86-cpuid.h: Rename include guard.
10417 * nat/ppc-linux.h: Rename include guard.
10418 * nat/mips-linux-watch.h: Rename include guard.
10419 * nat/linux-waitpid.h: Rename include guard.
10420 * nat/linux-ptrace.h: Rename include guard.
10421 * nat/linux-procfs.h: Rename include guard.
10422 * nat/linux-osdata.h: Rename include guard.
10423 * nat/linux-nat.h: Rename include guard.
10424 * nat/linux-namespaces.h: Rename include guard.
10425 * nat/linux-btrace.h: Rename include guard.
10426 * nat/glibc_thread_db.h: Rename include guard.
10427 * nat/gdb_thread_db.h: Rename include guard.
10428 * nat/gdb_ptrace.h: Rename include guard.
10429 * nat/fork-inferior.h: Rename include guard.
10430 * nat/amd64-linux-siginfo.h: Rename include guard.
10431 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10432 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10433 * nat/aarch64-linux.h: Rename include guard.
10434 * nat/aarch64-linux-hw-point.h: Rename include guard.
10435 * mn10300-tdep.h: Add include guard.
10436 * mips-linux-tdep.h: Add include guard.
10437 * mi/mi-parse.h: Rename include guard.
10438 * mi/mi-out.h: Rename include guard.
10439 * mi/mi-main.h: Rename include guard.
10440 * mi/mi-interp.h: Rename include guard.
10441 * mi/mi-getopt.h: Rename include guard.
10442 * mi/mi-console.h: Rename include guard.
10443 * mi/mi-common.h: Rename include guard.
10444 * mi/mi-cmds.h: Rename include guard.
10445 * mi/mi-cmd-break.h: Rename include guard.
10446 * m2-lang.h: Add include guard.
10447 * location.h: Rename include guard.
10448 * linux-record.h: Rename include guard.
10449 * linux-nat.h: Add include guard.
10450 * linux-fork.h: Add include guard.
10451 * i386-darwin-tdep.h: Rename include guard.
10452 * hppa-linux-offsets.h: Add include guard.
10453 * guile/guile.h: Rename include guard.
10454 * guile/guile-internal.h: Rename include guard.
10455 * gnu-nat.h: Rename include guard.
10456 * gdb-stabs.h: Rename include guard.
10457 * frv-tdep.h: Add include guard.
10458 * f-lang.h: Add include guard.
10459 * event-loop.h: Add include guard.
10460 * darwin-nat.h: Rename include guard.
10461 * cp-abi.h: Rename include guard.
10462 * config/sparc/nm-sol2.h: Rename include guard.
10463 * config/nm-nto.h: Rename include guard.
10464 * config/nm-linux.h: Add include guard.
10465 * config/i386/nm-i386gnu.h: Rename include guard.
10466 * config/djgpp/nl_types.h: Rename include guard.
10467 * config/djgpp/langinfo.h: Rename include guard.
10468 * compile/gcc-cp-plugin.h: Add include guard.
10469 * compile/gcc-c-plugin.h: Add include guard.
10470 * compile/compile.h: Rename include guard.
10471 * compile/compile-object-run.h: Rename include guard.
10472 * compile/compile-object-load.h: Rename include guard.
10473 * compile/compile-internal.h: Rename include guard.
10474 * compile/compile-cplus.h: Rename include guard.
10475 * compile/compile-c.h: Rename include guard.
10476 * common/xml-utils.h: Rename include guard.
10477 * common/x86-xstate.h: Rename include guard.
10478 * common/version.h: Rename include guard.
10479 * common/vec.h: Rename include guard.
10480 * common/tdesc.h: Rename include guard.
10481 * common/selftest.h: Rename include guard.
10482 * common/scoped_restore.h: Rename include guard.
10483 * common/scoped_mmap.h: Rename include guard.
10484 * common/scoped_fd.h: Rename include guard.
10485 * common/safe-iterator.h: Rename include guard.
10486 * common/run-time-clock.h: Rename include guard.
10487 * common/refcounted-object.h: Rename include guard.
10488 * common/queue.h: Rename include guard.
10489 * common/ptid.h: Rename include guard.
10490 * common/print-utils.h: Rename include guard.
10491 * common/preprocessor.h: Rename include guard.
10492 * common/pathstuff.h: Rename include guard.
10493 * common/observable.h: Rename include guard.
10494 * common/netstuff.h: Rename include guard.
10495 * common/job-control.h: Rename include guard.
10496 * common/host-defs.h: Rename include guard.
10497 * common/gdb_wait.h: Rename include guard.
10498 * common/gdb_vecs.h: Rename include guard.
10499 * common/gdb_unlinker.h: Rename include guard.
10500 * common/gdb_unique_ptr.h: Rename include guard.
10501 * common/gdb_tilde_expand.h: Rename include guard.
10502 * common/gdb_sys_time.h: Rename include guard.
10503 * common/gdb_string_view.h: Rename include guard.
10504 * common/gdb_splay_tree.h: Rename include guard.
10505 * common/gdb_setjmp.h: Rename include guard.
10506 * common/gdb_ref_ptr.h: Rename include guard.
10507 * common/gdb_optional.h: Rename include guard.
10508 * common/gdb_locale.h: Rename include guard.
10509 * common/gdb_assert.h: Rename include guard.
10510 * common/filtered-iterator.h: Rename include guard.
10511 * common/filestuff.h: Rename include guard.
10512 * common/fileio.h: Rename include guard.
10513 * common/environ.h: Rename include guard.
10514 * common/common-utils.h: Rename include guard.
10515 * common/common-types.h: Rename include guard.
10516 * common/common-regcache.h: Rename include guard.
10517 * common/common-inferior.h: Rename include guard.
10518 * common/common-gdbthread.h: Rename include guard.
10519 * common/common-exceptions.h: Rename include guard.
10520 * common/common-defs.h: Rename include guard.
10521 * common/common-debug.h: Rename include guard.
10522 * common/cleanups.h: Rename include guard.
10523 * common/buffer.h: Rename include guard.
10524 * common/btrace-common.h: Rename include guard.
10525 * common/break-common.h: Rename include guard.
10526 * cli/cli-utils.h: Rename include guard.
10527 * cli/cli-style.h: Rename include guard.
10528 * cli/cli-setshow.h: Rename include guard.
10529 * cli/cli-script.h: Rename include guard.
10530 * cli/cli-interp.h: Rename include guard.
10531 * cli/cli-decode.h: Rename include guard.
10532 * cli/cli-cmds.h: Rename include guard.
10533 * charset-list.h: Add include guard.
10534 * buildsym-legacy.h: Rename include guard.
10535 * bfin-tdep.h: Add include guard.
10536 * ax.h: Rename include guard.
10537 * arm-linux-tdep.h: Add include guard.
10538 * arm-fbsd-tdep.h: Add include guard.
10539 * arch/xtensa.h: Rename include guard.
10540 * arch/tic6x.h: Add include guard.
10541 * arch/i386.h: Add include guard.
10542 * arch/arm.h: Rename include guard.
10543 * arch/arm-linux.h: Rename include guard.
10544 * arch/arm-get-next-pcs.h: Rename include guard.
10545 * arch/amd64.h: Add include guard.
10546 * arch/aarch64-insn.h: Rename include guard.
10547 * arch-utils.h: Rename include guard.
10548 * annotate.h: Add include guard.
10549 * amd64-darwin-tdep.h: Rename include guard.
10550 * aarch64-linux-tdep.h: Add include guard.
10551 * aarch64-fbsd-tdep.h: Add include guard.
10552 * aarch32-linux-nat.h: Add include guard.
10554 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10556 * macrotab.c (macro_define_internal): New function that
10557 factorizes macro_define_object_internal and macro_define_function
10559 (macro_define_object_internal): Use macro_define_internal.
10560 (macro_define_function): Likewise.
10562 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10564 * macrocmd.c (extract_identifier): Return
10565 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10568 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10570 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10572 2019-02-05 Tom Tromey <tom@tromey.com>
10574 * target.c (target_stack::unpush): Move assertion earlier.
10576 2019-01-30 Tom Tromey <tom@tromey.com>
10579 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10580 (gdbpy_parse_and_eval): Likewise.
10581 * python/python-internal.h (gdbpy_allow_threads): New class.
10583 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10585 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10586 (aarch64_fbsd_fpregmap): Move earlier.
10587 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10588 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10589 instead of individual calls to trad_frame_set_reg_addr.
10590 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10592 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10593 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10594 instead of individual calls to trad_frame_set_reg_addr.
10596 2019-01-28 Alan Hayward <alan.hayward@arm.com>
10598 * CONTRIBUTE: Replace contribution list with wiki link.
10600 2019-01-25 Tom Tromey <tom@tromey.com>
10602 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10604 2019-01-25 Tom Tromey <tom@tromey.com>
10606 * xtensa-linux-nat.c: Fix common/ includes.
10607 * xml-support.h: Fix common/ includes.
10608 * xml-support.c: Fix common/ includes.
10609 * x86-linux-nat.c: Fix common/ includes.
10610 * windows-nat.c: Fix common/ includes.
10611 * varobj.h: Fix common/ includes.
10612 * varobj.c: Fix common/ includes.
10613 * value.c: Fix common/ includes.
10614 * valops.c: Fix common/ includes.
10615 * utils.c: Fix common/ includes.
10616 * unittests/xml-utils-selftests.c: Fix common/ includes.
10617 * unittests/utils-selftests.c: Fix common/ includes.
10618 * unittests/unpack-selftests.c: Fix common/ includes.
10619 * unittests/tracepoint-selftests.c: Fix common/ includes.
10620 * unittests/style-selftests.c: Fix common/ includes.
10621 * unittests/string_view-selftests.c: Fix common/ includes.
10622 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10623 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10624 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10625 * unittests/rsp-low-selftests.c: Fix common/ includes.
10626 * unittests/parse-connection-spec-selftests.c: Fix common/
10628 * unittests/optional-selftests.c: Fix common/ includes.
10629 * unittests/offset-type-selftests.c: Fix common/ includes.
10630 * unittests/observable-selftests.c: Fix common/ includes.
10631 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10632 * unittests/memrange-selftests.c: Fix common/ includes.
10633 * unittests/memory-map-selftests.c: Fix common/ includes.
10634 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10635 * unittests/function-view-selftests.c: Fix common/ includes.
10636 * unittests/environ-selftests.c: Fix common/ includes.
10637 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10638 * unittests/common-utils-selftests.c: Fix common/ includes.
10639 * unittests/cli-utils-selftests.c: Fix common/ includes.
10640 * unittests/array-view-selftests.c: Fix common/ includes.
10641 * ui-file.c: Fix common/ includes.
10642 * tui/tui-io.c: Fix common/ includes.
10643 * tracepoint.h: Fix common/ includes.
10644 * tracepoint.c: Fix common/ includes.
10645 * tracefile-tfile.c: Fix common/ includes.
10646 * top.h: Fix common/ includes.
10647 * top.c: Fix common/ includes.
10648 * thread.c: Fix common/ includes.
10649 * target/waitstatus.h: Fix common/ includes.
10650 * target/waitstatus.c: Fix common/ includes.
10651 * target.h: Fix common/ includes.
10652 * target.c: Fix common/ includes.
10653 * target-memory.c: Fix common/ includes.
10654 * target-descriptions.c: Fix common/ includes.
10655 * symtab.h: Fix common/ includes.
10656 * symfile.c: Fix common/ includes.
10657 * stap-probe.c: Fix common/ includes.
10658 * spu-linux-nat.c: Fix common/ includes.
10659 * sparc-nat.c: Fix common/ includes.
10660 * source.c: Fix common/ includes.
10661 * solib.c: Fix common/ includes.
10662 * solib-target.c: Fix common/ includes.
10663 * ser-unix.c: Fix common/ includes.
10664 * ser-tcp.c: Fix common/ includes.
10665 * ser-pipe.c: Fix common/ includes.
10666 * ser-base.c: Fix common/ includes.
10667 * selftest-arch.c: Fix common/ includes.
10668 * s12z-tdep.c: Fix common/ includes.
10669 * rust-exp.y: Fix common/ includes.
10670 * rs6000-aix-tdep.c: Fix common/ includes.
10671 * riscv-tdep.c: Fix common/ includes.
10672 * remote.c: Fix common/ includes.
10673 * remote-notif.h: Fix common/ includes.
10674 * remote-fileio.h: Fix common/ includes.
10675 * remote-fileio.c: Fix common/ includes.
10676 * regcache.h: Fix common/ includes.
10677 * regcache.c: Fix common/ includes.
10678 * record-btrace.c: Fix common/ includes.
10679 * python/python.c: Fix common/ includes.
10680 * python/py-type.c: Fix common/ includes.
10681 * python/py-inferior.c: Fix common/ includes.
10682 * progspace.h: Fix common/ includes.
10683 * producer.c: Fix common/ includes.
10684 * procfs.c: Fix common/ includes.
10685 * proc-api.c: Fix common/ includes.
10686 * printcmd.c: Fix common/ includes.
10687 * ppc-linux-nat.c: Fix common/ includes.
10688 * parser-defs.h: Fix common/ includes.
10689 * osdata.c: Fix common/ includes.
10690 * obsd-nat.c: Fix common/ includes.
10691 * nat/x86-linux.c: Fix common/ includes.
10692 * nat/x86-linux-dregs.c: Fix common/ includes.
10693 * nat/x86-dregs.h: Fix common/ includes.
10694 * nat/x86-dregs.c: Fix common/ includes.
10695 * nat/ppc-linux.c: Fix common/ includes.
10696 * nat/mips-linux-watch.h: Fix common/ includes.
10697 * nat/mips-linux-watch.c: Fix common/ includes.
10698 * nat/linux-waitpid.c: Fix common/ includes.
10699 * nat/linux-ptrace.h: Fix common/ includes.
10700 * nat/linux-ptrace.c: Fix common/ includes.
10701 * nat/linux-procfs.c: Fix common/ includes.
10702 * nat/linux-personality.c: Fix common/ includes.
10703 * nat/linux-osdata.c: Fix common/ includes.
10704 * nat/linux-namespaces.c: Fix common/ includes.
10705 * nat/linux-btrace.h: Fix common/ includes.
10706 * nat/linux-btrace.c: Fix common/ includes.
10707 * nat/fork-inferior.c: Fix common/ includes.
10708 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10709 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10710 * nat/aarch64-linux.c: Fix common/ includes.
10711 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10712 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10713 * namespace.h: Fix common/ includes.
10714 * mips-linux-tdep.c: Fix common/ includes.
10715 * minsyms.c: Fix common/ includes.
10716 * mi/mi-parse.h: Fix common/ includes.
10717 * mi/mi-main.c: Fix common/ includes.
10718 * mi/mi-cmd-env.c: Fix common/ includes.
10719 * memrange.h: Fix common/ includes.
10720 * memattr.c: Fix common/ includes.
10721 * maint.h: Fix common/ includes.
10722 * maint.c: Fix common/ includes.
10723 * main.c: Fix common/ includes.
10724 * machoread.c: Fix common/ includes.
10725 * location.c: Fix common/ includes.
10726 * linux-thread-db.c: Fix common/ includes.
10727 * linux-nat.c: Fix common/ includes.
10728 * linux-fork.c: Fix common/ includes.
10729 * inline-frame.c: Fix common/ includes.
10730 * infrun.c: Fix common/ includes.
10731 * inflow.c: Fix common/ includes.
10732 * inferior.h: Fix common/ includes.
10733 * inferior.c: Fix common/ includes.
10734 * infcmd.c: Fix common/ includes.
10735 * inf-ptrace.c: Fix common/ includes.
10736 * inf-child.c: Fix common/ includes.
10737 * ia64-linux-nat.c: Fix common/ includes.
10738 * i387-tdep.c: Fix common/ includes.
10739 * i386-tdep.c: Fix common/ includes.
10740 * i386-linux-tdep.c: Fix common/ includes.
10741 * i386-linux-nat.c: Fix common/ includes.
10742 * i386-go32-tdep.c: Fix common/ includes.
10743 * i386-fbsd-tdep.c: Fix common/ includes.
10744 * i386-fbsd-nat.c: Fix common/ includes.
10745 * guile/scm-type.c: Fix common/ includes.
10746 * guile/guile.c: Fix common/ includes.
10747 * go32-nat.c: Fix common/ includes.
10748 * gnu-nat.c: Fix common/ includes.
10749 * gdbthread.h: Fix common/ includes.
10750 * gdbarch-selftests.c: Fix common/ includes.
10751 * gdb_usleep.c: Fix common/ includes.
10752 * gdb_select.h: Fix common/ includes.
10753 * gdb_bfd.c: Fix common/ includes.
10754 * gcore.c: Fix common/ includes.
10755 * fork-child.c: Fix common/ includes.
10756 * findvar.c: Fix common/ includes.
10757 * fbsd-nat.c: Fix common/ includes.
10758 * event-top.c: Fix common/ includes.
10759 * event-loop.c: Fix common/ includes.
10760 * dwarf2read.c: Fix common/ includes.
10761 * dwarf2loc.c: Fix common/ includes.
10762 * dwarf2-frame.c: Fix common/ includes.
10763 * dwarf-index-cache.c: Fix common/ includes.
10764 * dtrace-probe.c: Fix common/ includes.
10765 * disasm-selftests.c: Fix common/ includes.
10766 * defs.h: Fix common/ includes.
10767 * csky-tdep.c: Fix common/ includes.
10768 * cp-valprint.c: Fix common/ includes.
10769 * cp-support.h: Fix common/ includes.
10770 * cp-support.c: Fix common/ includes.
10771 * corelow.c: Fix common/ includes.
10772 * completer.h: Fix common/ includes.
10773 * completer.c: Fix common/ includes.
10774 * compile/compile.c: Fix common/ includes.
10775 * compile/compile-loc2c.c: Fix common/ includes.
10776 * compile/compile-cplus-types.c: Fix common/ includes.
10777 * compile/compile-cplus-symbols.c: Fix common/ includes.
10778 * command.h: Fix common/ includes.
10779 * cli/cli-dump.c: Fix common/ includes.
10780 * cli/cli-cmds.c: Fix common/ includes.
10781 * charset.c: Fix common/ includes.
10782 * build-id.c: Fix common/ includes.
10783 * btrace.h: Fix common/ includes.
10784 * btrace.c: Fix common/ includes.
10785 * breakpoint.h: Fix common/ includes.
10786 * breakpoint.c: Fix common/ includes.
10788 (enum agent_op): Fix common/ includes.
10789 * ax-general.c (struct aop_map): Fix common/ includes.
10790 * ax-gdb.c: Fix common/ includes.
10791 * auxv.c: Fix common/ includes.
10792 * auto-load.c: Fix common/ includes.
10793 * arm-tdep.c: Fix common/ includes.
10794 * arch/riscv.c: Fix common/ includes.
10795 * arch/ppc-linux-common.c: Fix common/ includes.
10796 * arch/i386.c: Fix common/ includes.
10797 * arch/arm.c: Fix common/ includes.
10798 * arch/arm-linux.c: Fix common/ includes.
10799 * arch/arm-get-next-pcs.c: Fix common/ includes.
10800 * arch/amd64.c: Fix common/ includes.
10801 * arch/aarch64.c: Fix common/ includes.
10802 * arch/aarch64-insn.c: Fix common/ includes.
10803 * arch-utils.c: Fix common/ includes.
10804 * amd64-windows-tdep.c: Fix common/ includes.
10805 * amd64-tdep.c: Fix common/ includes.
10806 * amd64-sol2-tdep.c: Fix common/ includes.
10807 * amd64-obsd-tdep.c: Fix common/ includes.
10808 * amd64-nbsd-tdep.c: Fix common/ includes.
10809 * amd64-linux-tdep.c: Fix common/ includes.
10810 * amd64-linux-nat.c: Fix common/ includes.
10811 * amd64-fbsd-tdep.c: Fix common/ includes.
10812 * amd64-fbsd-nat.c: Fix common/ includes.
10813 * amd64-dicos-tdep.c: Fix common/ includes.
10814 * amd64-darwin-tdep.c: Fix common/ includes.
10815 * agent.c: Fix common/ includes.
10816 * ada-lang.h: Fix common/ includes.
10817 * ada-lang.c: Fix common/ includes.
10818 * aarch64-tdep.c: Fix common/ includes.
10820 2019-01-25 Tom Tromey <tom@tromey.com>
10822 * common/create-version.sh: Use common/version.h.
10824 2019-01-24 Pedro Alves <palves@redhat.com>
10826 * infrun.c (signal_stop, signal_print, signal_program)
10827 (signal_catch, signal_pass): Now arrays instead of pointers.
10828 (update_signals_program_target, do_target_resume)
10829 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10830 * linux-nat.c (linux_nat_target::pass_signals)
10831 (linux_nat_target::create_inferior, linux_nat_target::attach):
10833 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10834 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10835 * procfs.c (procfs_target::pass_signals): Adjust.
10836 * record-full.c (record_full_target::resume): Adjust.
10837 * remote.c (remote_target::pass_signals)
10838 (remote_target::program_signals): Adjust.
10839 * target-debug.h (target_debug_print_signals): Now takes a
10840 gdb::array_view as parameter. Adjust.
10841 * target.h (target_ops) <pass_signals, program_signals>: Replace
10842 pointer and length parameters with gdb::array_view.
10843 (target_pass_signals, target_program_signals): Likewise.
10844 * target-delegates.c: Regenerate.
10846 2019-01-24 Pedro Alves <palves@redhat.com>
10848 * common/forward-scope-exit.h
10849 (forward_scope_exit::forward_scope_exit): Pass arguments to
10850 m_bind_function directly, instead of creating a std::bind and
10853 2019-01-24 Alan Hayward <alan.hayward@arm.com>
10855 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10856 for static members.
10857 (pass_in_v_vfp_candidate): Likewise.
10859 2019-01-23 Tom Tromey <tom@tromey.com>
10860 Pedro Alves <palves@redhat.com>
10862 * regcache.c (class regcache_invalidator): Remove.
10863 (regcache::raw_write): Use make_scope_exit.
10865 2019-01-23 Tom Tromey <tom@tromey.com>
10867 * ui-out.h (class ui_out_emit_type): Update comment.
10869 2019-01-23 Tom Tromey <tom@tromey.com>
10871 * infrun.c (fetch_inferior_event): Update comment.
10873 2019-01-23 Tom Tromey <tom@tromey.com>
10874 Pedro Alves <palves@redhat.com>
10876 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10878 (fetch_inferior_event): Use SCOPE_EXIT.
10881 2019-01-23 Tom Tromey <tom@tromey.com>
10882 Pedro Alves <palves@redhat.com>
10884 * infrun.c (disable_thread_events): Delete.
10885 (stop_all_threads): Use SCOPE_EXIT.
10887 2019-01-23 Tom Tromey <tom@tromey.com>
10888 Pedro Alves <palves@redhat.com>
10890 * symfile.c: Include forward-scope-exit.h.
10891 (clear_symtab_users_cleanup): Replace forward declaration with
10892 a FORWARD_SCOPE_EXIT.
10893 (syms_from_objfile_1): Use the forward_scope_exit and
10894 gdb::optional instead of cleanup_function.
10895 (reread_symbols): Use the forward_scope_exit instead of
10897 (clear_symtab_users_cleanup): Remove function.
10899 2019-01-23 Tom Tromey <tom@tromey.com>
10900 Pedro Alves <palves@redhat.com>
10902 * linux-nat.c: Include scope-exit.h.
10903 (cleanup_target_stop): Remove.
10904 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10907 2019-01-23 Tom Tromey <tom@tromey.com>
10908 Pedro Alves <palves@redhat.com>
10910 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10911 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10913 2019-01-23 Tom Tromey <tom@tromey.com>
10914 Andrew Burgess <andrew.burgess@embecosm.com>
10915 Pedro Alves <palves@redhat.com>
10917 * infrun.c (fetch_inferior_event): Use scope_exit.
10918 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10919 * top.c (execute_command): Use scope_exit.
10920 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10921 * utils.c (do_bpstat_clear_actions_cleanup)
10922 (make_bpstat_clear_actions_cleanup): Remove.
10924 2019-01-23 Tom Tromey <tom@tromey.com>
10925 Pedro Alves <palves@redhat.com>
10927 * infrun.c: Include "common/scope-exit.h"
10928 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10929 (wait_for_inferior): Use SCOPE_EXIT.
10930 (fetch_inferior_event): Use scope_exit.
10932 2019-01-23 Tom Tromey <tom@tromey.com>
10933 Pedro Alves <palves@redhat.com>
10935 * breakpoint.c (create_breakpoint): Remove cleanup.
10937 2019-01-23 Tom Tromey <tom@tromey.com>
10938 Andrew Burgess <andrew.burgess@embecosm.com>
10939 Pedro Alves <palves@redhat.com>
10941 2019-01-23 Pedro Alves <palves@redhat.com>
10943 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10945 2019-01-23 Pedro Alves <palves@redhat.com>
10946 Andrew Burgess <andrew.burgess@embecosm.com>
10948 * gdbthread.h: Include "common/forward-scope-exit.h".
10949 (scoped_finish_thread_state): Redefine custom class in terms of
10950 forward_scope_exit.
10952 2019-01-23 Pedro Alves <palves@redhat.com>
10953 Andrew Burgess <andrew.burgess@embecosm.com>
10955 * common/forward-scope-exit.h: New file.
10957 2019-01-23 Pedro Alves <palves@redhat.com>
10958 Andrew Burgess <andrew.burgess@embecosm.com>
10959 Tom Tromey <tom@tromey.com>
10961 * common/scope-exit.h: New file.
10963 2019-01-23 Pedro Alves <palves@redhat.com>
10965 * common/preprocessor.h (ESC): Rename to ...
10966 (ESC_PARENS): ... this.
10967 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10968 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10970 2019-01-23 Tom Tromey <tom@tromey.com>
10972 * language.h (class scoped_switch_to_sym_language_if_auto):
10973 Initialize m_lang in both cases.
10975 2019-01-23 Alan Hayward <alan.hayward@arm.com>
10977 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10980 2019-01-22 Tom Tromey <tom@tromey.com>
10982 * corelow.c: Do not include sys/file.h.
10984 2019-01-22 Tom Tromey <tom@tromey.com>
10986 * tui/tui-wingeneral.h: Include gdb_curses.h.
10988 2019-01-22 Tom Tromey <tom@tromey.com>
10990 * source-cache.h (class source_cache) <get_source_lines,
10991 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10993 2019-01-22 Tom Tromey <tom@tromey.com>
10995 * remote-fileio.h (struct remote_target): Declare.
10997 2019-01-22 Tom Tromey <tom@tromey.com>
10999 * python/py-arch.c: Do not include py-ref.h.
11000 * python/py-bpevent.c: Do not include py-ref.h.
11001 * python/py-cmd.c: Do not include py-ref.h.
11002 * python/py-continueevent.c: Do not include py-ref.h.
11003 * python/py-event.h: Do not include py-ref.h.
11004 * python/py-evtregistry.c: Do not include py-ref.h.
11005 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11006 * python/py-frame.c: Do not include py-ref.h.
11007 * python/py-framefilter.c: Do not include py-ref.h.
11008 * python/py-function.c: Do not include py-ref.h.
11009 * python/py-infevents.c: Do not include py-ref.h.
11010 * python/py-linetable.c: Do not include py-ref.h.
11011 * python/py-objfile.c: Do not include py-ref.h.
11012 * python/py-param.c: Do not include py-ref.h.
11013 * python/py-prettyprint.c: Do not include py-ref.h.
11014 * python/py-progspace.c: Do not include py-ref.h.
11015 * python/py-symbol.c: Do not include py-ref.h.
11016 * python/py-symtab.c: Do not include py-ref.h.
11017 * python/py-type.c: Do not include py-ref.h.
11018 * python/py-unwind.c: Do not include py-ref.h.
11019 * python/py-utils.c: Do not include py-ref.h.
11020 * python/py-value.c: Do not include py-ref.h.
11021 * python/py-varobj.c: Do not include py-ref.h.
11022 * python/py-xmethods.c: Do not include py-ref.h.
11023 * python/python.c: Do not include py-ref.h.
11024 * varobj.c: Do not include py-ref.h.
11026 2019-01-22 Tom Tromey <tom@tromey.com>
11028 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11029 keyword for bcache.
11031 2019-01-22 Tom Tromey <tom@tromey.com>
11033 * compile/compile-cplus-types.c: Remove a comment by #include.
11035 2019-01-22 Tom Tromey <tom@tromey.com>
11037 * compile/gcc-c-plugin.h: Include compile-internal.h.
11039 2019-01-22 Tom Tromey <tom@tromey.com>
11041 * stabsread.c (EXTERN): Do not define.
11042 (symnum, next_symbol_text_func, processing_gcc_compilation)
11043 (within_function, global_sym_chain, global_stabs)
11044 (previous_stab_code, this_object_header_files)
11045 (n_this_object_header_files)
11046 (n_allocated_this_object_header_files): Define.
11047 * stabsread.h (EXTERN): Never define. Use "extern".
11049 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11051 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11054 2019-01-21 Tom Tromey <tom@tromey.com>
11056 * ui-out.c: Fix includes.
11057 * tui/tui-source.c: Fix includes.
11058 * target.c: Fix includes.
11059 * remote.c: Fix includes.
11060 * regcache.c: Fix includes.
11061 * python/py-block.c: Fix includes.
11062 * printcmd.c: Fix includes.
11063 * or1k-tdep.c: Fix includes.
11064 * mi/mi-main.c: Fix includes.
11065 * m32r-tdep.c: Fix includes.
11066 * csky-tdep.c: Fix includes.
11067 * compile/compile-cplus-types.c: Fix includes.
11068 * cli/cli-interp.c: Fix includes.
11070 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11072 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11075 2019-01-16 Tom Tromey <tom@tromey.com>
11077 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11079 (struct objfile) <msymbols_range>: Move from top level.
11080 <msymbols>: New method.
11081 (class objfile_msymbols): Remove.
11082 * symtab.c (default_collect_symbol_completion_matches_break_on):
11084 * symmisc.c (dump_msymbols): Update.
11085 * stabsread.c (scan_file_globals): Update.
11086 * objc-lang.c (info_selectors_command, info_classes_command)
11087 (find_methods): Update.
11088 * minsyms.c (find_solib_trampoline_target): Update.
11089 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11090 * coffread.c (coff_symfile_read): Update.
11091 * ada-lang.c (ada_lookup_simple_minsym)
11092 (ada_collect_symbol_completion_matches): Update.
11094 2019-01-16 Tom Tromey <tom@tromey.com>
11096 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11097 type. Remove no-argument constructor.
11098 <iterator::operator++>: Simplify.
11100 <end>: Use minimal_symbol_count.
11102 2019-01-16 Tom Tromey <tom@tromey.com>
11104 * objfiles.h (struct objfile) <psymtabs>: New method.
11105 (class objfile_psymtabs): Remove.
11106 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11108 <range>: New method.
11109 (require_partial_symbols): Change return type.
11110 * psymtab.c (require_partial_symbols)
11111 (psym_expand_symtabs_matching): Update.
11112 * mdebugread.c (parse_partial_symbols): Update.
11113 * dbxread.c (dbx_end_psymtab): Update.
11115 2019-01-15 Tom Tromey <tom@tromey.com>
11117 * symtab.c (lookup_objfile_from_block)
11118 (lookup_symbol_in_objfile_symtabs)
11119 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11120 (find_line_symtab, info_sources_command)
11121 (default_collect_symbol_completion_matches_break_on)
11122 (make_source_files_completion_list): Update.
11123 * symmisc.c (print_objfile_statistics, dump_objfile)
11124 (maintenance_print_symbols, maintenance_info_symtabs)
11125 (maintenance_check_symtabs, maintenance_info_line_tables):
11127 * source.c (select_source_symtab)
11128 (forget_cached_source_info_for_objfile): Update.
11129 * objfiles.h (class objfile_compunits): Remove.
11130 (struct objfile) <compunits_range>: New typedef.
11131 (compunits): New method.
11132 * objfiles.c (objfile_relocate1): Update.
11133 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11134 * maint.c (count_symtabs_and_blocks): Update.
11135 * linespec.c (iterate_over_all_matching_symtabs): Update.
11136 * cp-support.c (add_symbol_overload_list_qualified): Update.
11137 * coffread.c (coff_symtab_read): Update.
11138 * ada-lang.c (add_nonlocal_symbols)
11139 (ada_collect_symbol_completion_matches)
11140 (ada_add_global_exceptions): Update.
11142 2019-01-15 Tom Tromey <tom@tromey.com>
11144 * progspace.h (program_space) <objfiles_safe_range>: New
11146 <objfiles_safe>: New method.
11147 * objfiles.h (class all_objfiles_safe): Remove.
11148 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11149 * jit.c (jit_inferior_exit_hook): Update.
11151 2019-01-17 Tom Tromey <tom@tromey.com>
11153 * progspace.h (program_space) <objfiles_range>: New typedef.
11154 <objfiles>: New method.
11155 <objfiles_head>: Rename from objfiles.
11156 (object_files): Update.
11157 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11158 * guile/scm-pretty-print.c
11159 (ppscm_find_pretty_printer_from_objfiles): Update.
11160 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11161 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11163 * python/py-progspace.c (pspy_get_objfiles): Update.
11164 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11166 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11167 (objfpy_lookup_objfile_by_build_id): Update.
11168 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11169 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11171 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11172 (expand_symtab_containing_pc, lookup_objfile_from_block)
11173 (lookup_static_symbol, basic_lookup_transparent_type)
11174 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11175 (find_line_symtab, info_sources_command)
11176 (default_collect_symbol_completion_matches_break_on)
11177 (make_source_files_completion_list, find_main_name): Update.
11178 * symmisc.c (print_symbol_bcache_statistics)
11179 (print_objfile_statistics, maintenance_print_symbols)
11180 (maintenance_print_msymbols, maintenance_print_objfiles)
11181 (maintenance_info_symtabs, maintenance_check_symtabs)
11182 (maintenance_expand_symtabs, maintenance_info_line_tables):
11184 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11185 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11186 (map_overlay_command, unmap_overlay_command)
11187 (simple_overlay_update, expand_symtabs_matching)
11188 (map_symbol_filenames): Update.
11189 * symfile-debug.c (set_debug_symfile): Update.
11190 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11192 * source.c (select_source_symtab, forget_cached_source_info):
11194 * solib.c (solib_read_symbols): Update.
11195 * solib-spu.c (append_ocl_sos): Update.
11196 * psymtab.c (maintenance_print_psymbols)
11197 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11198 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11199 * printcmd.c (info_symbol_command): Update.
11200 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11202 * objfiles.h (class all_objfiles): Remove.
11203 * objfiles.c (have_partial_symbols, have_full_symbols)
11204 (have_minimal_symbols, qsort_cmp, update_section_map)
11205 (shared_objfile_contains_address_p)
11206 (default_iterate_over_objfiles_in_search_order): Update.
11207 * objc-lang.c (info_selectors_command, info_classes_command)
11208 (find_methods): Update.
11209 * minsyms.c (find_solib_trampoline_target): Update.
11210 * maint.c (maintenance_info_sections)
11211 (maintenance_translate_address, count_symtabs_and_blocks):
11213 * main.c (captured_main_1): Update.
11214 * linux-thread-db.c (try_thread_db_load_from_pdir)
11215 (has_libpthread): Update.
11216 * linespec.c (iterate_over_all_matching_symtabs)
11217 (search_minsyms_for_name): Update.
11218 * jit.c (jit_find_objf_with_entry_addr): Update.
11219 * hppa-tdep.c (find_unwind_entry)
11220 (hppa_lookup_stub_minimal_symbol): Update.
11221 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11223 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11224 (elf_gnu_ifunc_resolve_by_got): Update.
11225 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11226 * dwarf-index-write.c (save_gdb_index_command): Update.
11227 * cp-support.c (add_symbol_overload_list_qualified): Update.
11228 * breakpoint.c (create_overlay_event_breakpoint)
11229 (create_longjmp_master_breakpoint)
11230 (create_std_terminate_master_breakpoint)
11231 (create_exception_master_breakpoint): Update.
11232 * blockframe.c (find_pc_partial_function): Update.
11233 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11234 (ada_collect_symbol_completion_matches)
11235 (ada_add_global_exceptions): Update.
11237 2019-01-17 Tom Tromey <tom@tromey.com>
11239 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11241 (solib_target_parse_libraries): Change return type.
11242 (library_list_start_segment, library_list_start_section)
11243 (library_list_end_library, library_list_start_library); Update.
11244 (solib_target_free_library_list): Remove.
11245 (solib_target_parse_libraries): Remove cleanup. Change return
11247 (solib_target_current_sos): Update.
11249 2019-01-17 Tom Tromey <tromey@bapiya>
11251 * valprint.c: Replace "the the" with "the".
11252 * symtab.c: Replace "the the" with "the".
11253 * solib.c: Replace "the the" with "the".
11254 * solib-dsbt.c: Replace "the the" with "the".
11255 * linespec.c: Replace "the the" with "the".
11256 * dwarf2loc.h: Replace "the the" with "the".
11257 * amd64-windows-tdep.c: Replace "the the" with "the".
11258 * aarch64-tdep.c: Replace "the the" with "the".
11260 2019-01-16 Keith Seitz <keiths@redhat.com>
11263 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11264 <builder>: Rename to ..
11265 <m_builder>: ... this and make private.
11266 (dwarf2_cu::get_builder): New method. Change all users of
11267 `builder' to use this method.
11268 (dwarf2_start_symtab): Move to ...
11269 (dwarf2_cu::start_symtab): ... here. Update all callers
11270 (setup_type_unit_groups): Move to ...
11271 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11273 (dwarf2_cu::reset_builder): New method.
11274 (process_full_compunit, process_full_type_unit): Use
11275 dwarf2_cu::reset_builder.
11276 (follow_die_offset): Record the ancestor CU if it is different
11277 from the followed DIE's CU.
11278 (follow_die_sig_1): Likewise.
11280 2019-01-15 Tom Tromey <tom@tromey.com>
11282 * remote.c (class remote_state) <buf>: Now a char_vector.
11283 <buf_size>: Remove.
11284 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11286 (remote_target::getpkt_or_notif_sane_1)
11287 (remote_target::getpkt_sane)
11288 (remote_target::getpkt_or_notif_sane): Likewise.
11289 (class remote_target) <putpkt>: New overload.
11290 (remote_target::read_frame): Change type of "buf_p". Remove
11291 sizeof_p parameter.
11292 (packet_ok): New overload.
11293 (packet_check_result): New overload.
11296 2019-01-14 Tom Tromey <tom@tromey.com>
11298 * remote-notif.c (handle_notification, remote_notif_ack)
11299 (remote_notif_parse): Make "buf" const.
11300 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11302 (remote_notif_parse, remote_notif_ack, handle_notification):
11304 * remote.c (remote_notif_stop_parse): Make "buf" const.
11305 (remote_target::remote_parse_stop_reply): Make "buf" const.
11306 (remote_notif_stop_ack): Make "buf" const.
11308 2019-01-14 Tom Tromey <tom@tromey.com>
11310 * remote.c (remote_console_output): Make parameter const.
11312 2019-01-14 Tom Tromey <tom@tromey.com>
11314 * target-debug.h (target_debug_print_signals): Constify.
11315 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11316 * procfs.c (procfs_target::pass_signals): Update.
11317 * linux-nat.c (linux_nat_target::pass_signals): Update.
11318 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11319 * target-delegates.c: Rebuild.
11320 * remote.c (remote_target::program_signals): Update.
11321 (remote_target::pass_signals): Update.
11322 * target.c (target_pass_signals): Constify argument.
11323 (target_program_signals): Likewise.
11324 * target.h (struct target_ops) <pass_signals, program_signals>:
11326 (target_pass_signals, target_program_signals): Constify argument.
11328 2019-01-14 Tom Tromey <tom@tromey.com>
11331 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11333 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11335 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11337 * rs6000-tdep.c: Include reggroups.h.
11338 (IS_V_ALIAS_PSEUDOREG): Define.
11339 (rs6000_register_name): Return names for the "vX" aliases.
11340 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11341 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11342 aliases. Call default_register_reggroup_p for all other
11344 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11346 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11347 Handle "vX" aliases.
11348 (v_alias_pseudo_register_collect): New function.
11349 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11350 (rs6000_gdbarch_init): Initialize "vX" aliases as
11351 pseudo-registers. Restore registration of
11352 rs6000_pseudo_register_reggroup_p with
11353 set_tdesc_pseudo_register_reggroup_p.
11355 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11357 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11358 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11359 set_gdbarch_num_pseudo_regs.
11361 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11363 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11364 Remove arg prefixname, add do_set and do_show.
11365 Add member functions set_list and show_list.
11366 * cli/cli-style.c (class cli_style_option): Update accordingly.
11367 (style_set_list): Move to file scope.
11368 (style_show_list): Likewise.
11369 (set_style): Call help_list.
11370 (show_style): Call cmd_show_list.
11371 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11372 Update to use the new macro.
11374 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11376 * ada-lang.c (_initialize_ada_language): Expand the help text
11377 for the "catch exception" command.
11379 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11381 * symtab.c (matching_obj_sections): Initialize obj,
11382 declare it closer to its usage.
11384 2019-01-10 Tom Tromey <tom@tromey.com>
11386 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11387 (basic_inf_threads_range): Remove.
11388 (inf_threads_range, inf_non_exited_threads_range)
11389 (safe_inf_threads_range): Use next_adapter.
11391 2019-01-10 Keith Seitz <keiths@redhat.com>
11395 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11396 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11398 2019-01-10 Keith Seitz <keiths@redhat.com>
11402 * dictionary.c (pending_to_vector): Remove.
11403 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11404 Remove _1 suffix, replacing functions of the same name. Update
11406 (dict_create_hashed, dict_create_hashed_expandable)
11407 (dict_create_linear, dict_create_linear_expandable, dict_free)
11408 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11409 Make functions static.
11411 2019-01-10 Keith Seitz <keiths@redhat.com>
11415 * dictionary.h (struct dictionary): Replace declaration with
11417 (dict_create_hashed, dict_create_hashed_expandable)
11418 (dict_create_linear, dict_create_linear_expandable)
11419 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11420 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11421 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11422 taking multidictionary argument.
11423 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11424 * block.h (struct block) <dict>: Change to multidictionary
11425 and rename `multidict'.
11426 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11427 symmisc.c: Update all dictionary references to multidictionary.
11429 2019-01-10 Keith Seitz <keiths@redhat.com>
11433 * dictionary.c: Include unordered_map.
11434 (pending_to_vector): New function.
11435 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11436 Rewrite the non-"_1" functions to take vector instead
11438 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11439 "new" _1 versions of the same name.
11440 (multidictionary): Define.
11441 (std::hash<enum language): New definition.
11442 (collate_pending_symbols_by_language, mdict_create_hashed)
11443 (mdict_create_hashed_expandable, mdict_create_linear)
11444 (mdict_create_linear_expandable, mdict_free)
11445 (find_language_dictionary, create_new_language_dictionary)
11446 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11447 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11448 (mdict_size, mdict_empty): New functions.
11449 * dictionary.h (mdict_iterator): Define.
11451 2019-01-10 Pedro Alves <palves@redhat.com>
11453 * breakpoint.c (read_uploaded_action)
11454 (create_tracepoint_from_upload): Adjust to use
11455 gdb::unique_xmalloc_ptr.
11456 * ctf.c (ctf_write_uploaded_tp):
11457 (SET_ARRAY_FIELD): Use emplace_back.
11458 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11459 * tracefile-tfile.c (tfile_write_uploaded_tp):
11460 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11461 gdb::unique_xmalloc_ptr.
11462 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11463 at_string, cond_string, cmd_strings>: Replace char pointers
11464 with gdb::unique_xmalloc_ptr.
11466 2019-01-10 Pedro Alves <palves@redhat.com>
11468 * solib-target.c (library_list_start_library): Don't xstrdup name.
11470 2019-01-10 Pedro Alves <palves@redhat.com>
11472 * mdebugread.c (parse_partial_symbols): Use
11473 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11475 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11477 * linux-fork.c (scoped_switch_fork_info)
11478 <~scoped_switch_fork_info>: Fix incorrect variable name.
11480 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11482 * linux-fork.c (scoped_switch_fork_info)
11483 <scoped_switch_fork_info>: Make explicit.
11484 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11486 2019-01-10 Tom Tromey <tom@tromey.com>
11488 * objfiles.h (objfile::reset_psymtabs): Update.
11489 * objfiles.c (objfile::objfile): Update.
11490 * psymtab.h (psymtab_storage::obstack): Update.
11491 (psymtab_storage::m_obstack): Use gdb::optional.
11492 (class psymtab_storage): Update comment. Remove objfile
11494 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11496 2019-01-10 Tom Tromey <tom@tromey.com>
11498 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11499 <free_psymtabs>: Now private.
11500 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11501 (allocate_psymtab): Use new method.
11503 2019-01-10 Tom Tromey <tom@tromey.com>
11505 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11506 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11507 * mdebugread.c (parse_partial_symbols): Use
11508 allocate_dependencies.
11509 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11510 allocate_dependencies.
11511 (process_psymtab_comp_unit_reader)
11512 (build_type_psymtab_dependencies): Likewise.
11513 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11515 2019-01-10 Tom Tromey <tom@tromey.com>
11517 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11518 PSYMBOL_SET_LANGUAGE.
11519 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11521 2019-01-10 Tom Tromey <tom@tromey.com>
11523 * psymtab.h (psymtab_storage::obstack): New method.
11524 <m_obstack>: Rename from obstack; now private.
11525 * psymtab.c (psymtab_storage): Update.
11526 * dwarf2read.c (create_addrmap_from_index)
11527 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11530 2019-01-10 Tom Tromey <tom@tromey.com>
11532 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11533 * objfiles.h (objfile::reset_psymtabs): New method.
11535 2019-01-10 Tom Tromey <tom@tromey.com>
11537 * symmisc.c (print_symbol_bcache_statistics): Update.
11538 (print_objfile_statistics): Update.
11539 * symfile.c (reread_symbols): Update.
11540 * psymtab.h (class psymtab_storage): New.
11541 * psymtab.c (psymtab_storage): New constructor.
11542 (~psymtab_storage): New destructor.
11543 (require_partial_symbols): Update.
11544 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11545 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11546 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11547 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11548 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11549 (start_psymtab_common, end_psymtab_common)
11550 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11551 (allocate_psymtab): Update.
11552 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11554 (dump_psymtab_addrmap, maintenance_print_psymbols)
11555 (maintenance_check_psymtabs): Update.
11556 (class objfile_psymtabs): Move to objfiles.h.
11557 * psympriv.h (discard_psymtab): Now inline.
11558 (psymtab_discarder::psymtab_discarder): Update.
11559 (psymtab_discarder::~psymtab_discarder): Update.
11560 (ALL_OBJFILE_PSYMTABS): Rewrite.
11561 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11562 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11564 <partial_symtabs>: New field.
11565 (class objfile_psymtabs): Move from psymtab.h. Update.
11566 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11568 (objfile::~objfile): Don't destroy psymbol_cache.
11569 * mdebugread.c (parse_partial_symbols): Update.
11570 * dwarf2read.c (create_addrmap_from_index)
11571 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11572 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11573 (add_partial_subprogram, dwarf2_ranges_read): Update.
11574 * dwarf-index-write.c (write_address_map)
11575 (write_one_signatured_type, recursively_write_psymbols)
11576 (class debug_names, class debug_names, write_psymtabs_to_index):
11579 2019-01-10 Tom Tromey <tom@tromey.com>
11581 * symtab.h (SYMBOL_SET_NAMES): Update.
11582 (symbol_set_names): Update.
11583 (MSYMBOL_SET_NAMES): Update.
11584 * symtab.c (symbol_set_names): Change argument to be an
11585 objfile_per_bfd_storage.
11586 * psymtab.c (add_psymbol_to_bcache): Update.
11587 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11589 2019-01-10 Tom Tromey <tom@tromey.com>
11591 * symtab.c (create_demangled_names_hash): Change argument to be an
11592 objfile_per_bfd_storage.
11593 (symbol_set_names): Update.
11595 2019-01-10 Tom Tromey <tom@tromey.com>
11597 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11599 * psymtab.c (init_psymbol_list): Do nothing if already called.
11600 * psympriv.h (init_psymbol_list): Add comment.
11601 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11603 * dbxread.c (dbx_symfile_read): Unconditionally call
11606 2019-01-10 Tom Tromey <tom@tromey.com>
11608 * xcoffread.c (scan_xcoff_symtab): Update.
11609 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11611 * mdebugread.c (parse_partial_symbols)
11612 (handle_psymbol_enumerators): Update.
11613 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11614 * dbxread.c (read_dbx_symtab): Update.
11615 * psympriv.h (psymbol_placement): New enum.
11616 (add_psymbol_to_list): Update.
11618 2019-01-10 Tom Tromey <tom@tromey.com>
11620 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11621 static_psymbols parameters.
11622 (scan_xcoff_symtab): Update.
11623 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11624 static_psymbols parameters.
11625 * psympriv.h (start_psymtab_common): Update.
11626 * mdebugread.c (parse_partial_symbols): Update.
11627 * dwarf2read.c (create_partial_symtab): Update.
11628 * dbxread.c (read_dbx_symtab): Update.
11629 (start_psymtab): Remove global_psymbols and static_psymbols
11632 2019-01-10 Tom Tromey <tom@tromey.com>
11634 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11635 * psymtab.c (allocate_psymtab): Add comment.
11636 * psympriv.h (allocate_psymtab): Add comment.
11637 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11639 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11641 2019-01-10 Tom Tromey <tom@tromey.com>
11643 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11645 * mipsread.c: Include mdebugread.h.
11646 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11648 * elfread.c: Include mdebugread.h.
11650 2019-01-09 Tom Tromey <tom@tromey.com>
11652 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11653 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11654 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11655 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11656 (psym_lookup_symbol, psym_find_last_source_symtab)
11657 (psym_forget_cached_source_info, psym_print_stats)
11658 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11659 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11660 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11661 (psym_find_compunit_symtab_by_address)
11662 (maintenance_print_psymbols, maintenance_info_psymtabs)
11663 (maintenance_check_psymtabs): Use ranged for.
11664 * psymtab.h (class objfile_psymtabs): New.
11665 (require_partial_symbols): Return objfile_psymtabs.
11666 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11668 2019-01-09 Tom Tromey <tom@tromey.com>
11670 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11671 (find_pc_mapped_section, list_overlays_command)
11672 (map_overlay_command, unmap_overlay_command)
11673 (simple_overlay_update): Use all_objfiles.
11674 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11675 * printcmd.c (info_symbol_command): Use all_objfiles.
11676 * objfiles.h (ALL_OBJSECTIONS): Remove.
11677 * maint.c (maintenance_translate_address): Use all_objfiles.
11678 * gcore.c (gcore_create_callback): Use all_objfiles.
11679 (objfile_find_memory_regions): Likewise.
11681 2019-01-09 Tom Tromey <tom@tromey.com>
11683 * symtab.c (find_line_symtab, info_sources_command)
11684 (make_source_files_completion_list): Use objfile_compunits.
11685 * source.c (select_source_symtab): Use objfile_compunits.
11686 * objfiles.h (struct objfile): Update comment.
11687 (ALL_OBJFILES): Remove.
11688 (ALL_FILETABS): Remove.
11689 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11692 2019-01-09 Tom Tromey <tom@tromey.com>
11694 * symmisc.c (print_objfile_statistics, dump_objfile)
11695 (maintenance_print_symbols): Use compunit_filetabs.
11696 * source.c (forget_cached_source_info_for_objfile): Use
11698 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11699 (ALL_FILETABS): Use compunit_filetabs.
11700 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11701 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11703 2019-01-09 Tom Tromey <tom@tromey.com>
11705 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11706 (compunit_filetabs): New.
11707 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11709 (info_sources_command, make_source_files_completion_list): Remove
11711 * symmisc.c (print_objfile_statistics, dump_objfile)
11712 (maintenance_print_symbols): Remove declaration.
11713 (maintenance_info_symtabs): Use compunit_filetabs.
11714 (maintenance_info_line_tables): Likewise.
11715 * source.c (select_source_symtab): Change local variable name.
11716 (forget_cached_source_info_for_objfile): Remove declaration.
11717 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11718 * objfiles.c (objfile_relocate1): Remove declaration.
11719 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11721 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11722 * coffread.c (coff_symtab_read): Remove declaration.
11723 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11726 2019-01-09 Tom Tromey <tom@tromey.com>
11728 * symtab.c (lookup_objfile_from_block)
11729 (find_pc_sect_compunit_symtab, search_symbols)
11730 (default_collect_symbol_completion_matches_break_on): Use
11732 * objfiles.h (ALL_COMPUNITS): Remove.
11733 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11734 * cp-support.c (add_symbol_overload_list_qualified): Use
11736 * ada-lang.c (ada_collect_symbol_completion_matches)
11737 (ada_add_global_exceptions): Use objfile_compunits.
11739 2019-01-09 Tom Tromey <tom@tromey.com>
11741 * source.c (select_source_symtab)
11742 (forget_cached_source_info_for_objfile): Remove declaration.
11743 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11745 * maint.c (count_symtabs_and_blocks): Remove declaration.
11746 * cp-support.c (add_symbol_overload_list_qualified): Remove
11748 * coffread.c (coff_symtab_read): Remove declaration.
11749 * symtab.c (lookup_symbol_in_objfile_symtabs)
11750 (basic_lookup_transparent_type_1): Use objfile_compunits.
11751 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11752 (info_sources_command, search_symbols)
11753 (default_collect_symbol_completion_matches_break_on)
11754 (make_source_files_completion_list): Remove declaration.
11755 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11756 (ada_collect_symbol_completion_matches)
11757 (ada_add_global_exceptions): Remove declaration.
11758 * linespec.c (iterate_over_all_matching_symtabs): Use
11760 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11761 (class objfile_compunits): New.
11762 (ALL_COMPUNITS): Use objfile_compunits.
11763 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11764 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11766 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11768 2019-01-09 Tom Tromey <tom@tromey.com>
11770 * symtab.c (search_symbols)
11771 (default_collect_symbol_completion_matches_break_on): Use
11773 * ada-lang.c (ada_lookup_simple_minsym)
11774 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11775 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11776 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11778 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11779 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11780 * objc-lang.c (find_methods): Use objfile_msymbols.
11781 (info_selectors_command, info_classes_command): Likewise.
11782 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11783 * objfiles.h (class objfile_msymbols): New.
11784 (ALL_OBJFILE_MSYMBOLS): Remove.
11785 (ALL_MSYMBOLS): Remove.
11787 2019-01-09 Tom Tromey <tom@tromey.com>
11789 * common/next-iterator.h (next_adapter): Add Iterator template
11791 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11792 (class all_objfiles_safe): New.
11793 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11794 * objfiles.c (put_objfile_before): Update comment.
11795 (add_separate_debug_objfile): Likewise.
11796 (free_all_objfiles): Use all_objfiles_safe.
11797 (objfile_purge_solibs): Likewise.
11799 2019-01-09 Tom Tromey <tom@tromey.com>
11801 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11802 (expand_symtab_containing_pc, lookup_static_symbol)
11803 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11804 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11806 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11807 * breakpoint.c (create_overlay_event_breakpoint)
11808 (create_longjmp_master_breakpoint)
11809 (create_std_terminate_master_breakpoint)
11810 (create_exception_master_breakpoint): Use all_objfiles.
11811 * linux-thread-db.c (try_thread_db_load_from_pdir)
11812 (has_libpthread): Use all_objfiles.
11813 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11814 * linespec.c (iterate_over_all_matching_symtabs)
11815 (search_minsyms_for_name): Use all_objfiles.
11816 * maint.c (maintenance_info_sections): Use all_objfiles.
11817 * main.c (captured_main_1): Use all_objfiles.
11818 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11819 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11820 * guile/scm-pretty-print.c
11821 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11822 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11823 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11824 (maintenance_print_msymbols): Use all_objfiles.
11825 * source.c (select_source_symtab): Use all_objfiles.
11826 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11827 * symfile.c (remove_symbol_file_command)
11828 (expand_symtabs_matching, map_symbol_filenames): Use
11830 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11832 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11833 * objc-lang.c (find_methods): Use all_objfiles.
11834 * objfiles.c (have_partial_symbols, have_full_symbols)
11835 (have_minimal_symbols, qsort_cmp)
11836 (default_iterate_over_objfiles_in_search_order): Use
11838 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11839 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11840 (maintenance_check_psymtabs): Use all_objfiles.
11841 (ALL_PSYMTABS): Remove.
11842 * compile/compile-object-run.c (do_module_cleanup): Use
11844 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11845 * cp-support.c (add_symbol_overload_list_qualified): Use
11847 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11849 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11850 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11852 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11853 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11854 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11856 * solib.c (solib_read_symbols): Use all_objfiles
11858 2019-01-09 Tom Tromey <tom@tromey.com>
11860 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11861 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11863 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11864 * symmisc.c (print_symbol_bcache_statistics)
11865 (print_objfile_statistics, maintenance_print_objfiles)
11866 (maintenance_info_symtabs, maintenance_check_symtabs)
11867 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11869 * source.c (forget_cached_source_info): Use all_objfiles.
11870 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11871 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11872 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11873 * objfiles.c (update_section_map): Use all_objfiles.
11874 (shared_objfile_contains_address_p): Likewise.
11875 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11876 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11878 2019-01-09 Tom Tromey <tom@tromey.com>
11880 * common/next-iterator.h: New file.
11881 * objfiles.h (class all_objfiles): New.
11882 (struct objfile_iterator): New.
11884 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11886 * NEWS: Move the description of the changed "frame", "select-frame",
11887 and "info frame" commands to the Changed commands section.
11889 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11891 * gdbtypes.c (check_stub_method_group): Remove handling of old
11893 * linespec.c (find_methods): Likewise.
11894 * stabsread.c (read_member_functions): Likewise.
11895 * valops.c (search_struct_method): Likewise.
11896 (value_struct_elt_for_reference): Likewise.
11897 * NEWS: Mention this change.
11899 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11901 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11902 print_source_lines.
11903 * source.c (print_source_lines_base): Update line number check.
11904 (print_source_lines): New function.
11905 (source_lines_range::source_lines_range): New function.
11906 * source.h (class source_lines_range): New class.
11907 (print_source_lines): New declaration.
11909 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11911 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11913 2019-01-08 Tom Tromey <tom@tromey.com>
11914 Simon Marchi <simon.marchi@ericsson.com>
11917 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11918 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11919 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11920 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11921 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11922 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11924 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11926 * source.c (select_source_symtab): Move header comment to
11927 declaration in source.h.
11928 (forget_cached_source_info_for_objfile): Likewise.
11929 (forget_cached_source_info): Likewise.
11930 (identify_source_line): Likewise.
11931 * source.h (identify_source_line): Move declaration from symtab.h
11932 and add comment from source.c
11933 (print_source_lines): Likewise.
11934 (forget_cached_source_info_for_objfile): Likewise.
11935 (forget_cached_source_info): Likewise.
11936 (select_source_symtab): Likewise.
11937 (enum print_source_lines_flag): Move definition from symtab.h.
11938 * symtab.h (identify_source_line): Move declaration to source.h.
11939 (print_source_lines): Likewise.
11940 (forget_cached_source_info_for_objfile): Likewise.
11941 (forget_cached_source_info): Likewise.
11942 (select_source_symtab): Likewise.
11943 (enum print_source_lines_flag): Move definition to source.h.
11944 * tui/tui-hooks.c: Add 'source.h' include.
11946 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11948 * source.c (print_source_lines_base): Handle requests to print
11949 reverse line number sequences, and guard against empty lines
11952 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11954 * source.c (print_source_lines_base): Fix skip of '\r' if next
11957 2019-01-06 Tom Tromey <tom@tromey.com>
11959 * c-exp.y (struct c_parse_state) <macro_original_text,
11960 expansion_obstack>: New member.
11961 (macro_original_text, expansion_obstack): Remove globals.
11962 (scan_macro_expansion, scanning_macro_expansion)
11963 (finished_macro_expansion): Update.
11964 (scan_macro_cleanup): Remove.
11965 (yylex, c_parse): Update.
11967 2019-01-06 Tom Tromey <tom@tromey.com>
11969 * c-exp.y (struct c_parse_state) <strings>: New member.
11970 (operator_stoken): Update.
11972 2019-01-06 Tom Tromey <tom@tromey.com>
11974 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11975 (union type_stack_elt) <typelist_val>: Now a pointer to
11977 (type_stack_cleanup): Don't declare.
11978 (push_typelist): Update.
11979 * parse.c (pop_typelist): Return a std::vector.
11980 (push_typelist): Take a std::vector.
11981 (follow_types): Update. Do not free args.
11982 (type_stack_cleanup): Remove.
11983 * c-exp.y (struct c_parse_state): New.
11984 (cpstate): New global.
11985 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11986 (nonempty_typelist): Update.
11987 (func_mod): Create a new vector.
11988 (c_parse): Create a c_parse_state.
11989 (check_parameter_typelist): Do not delete params.
11990 (function_method): Update. Do not delete type_list.
11992 2019-01-06 Tom Tromey <tom@tromey.com>
11995 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11997 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11998 (print_return_value): Likewise.
12000 2019-01-05 Tom Tromey <tom@tromey.com>
12002 * contrib/cleanup_check.py: Remove.
12003 * contrib/gcc-with-excheck: Remove.
12004 * contrib/exsummary.py: Remove.
12005 * contrib/excheck.py: Remove.
12007 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12009 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12010 NULL. Initialize tpprev to NULL instead of assigning it
12011 to NULL on the next statement.
12012 * windows-nat.c (windows_delete_thread): Remove check for
12013 main_thread_id before printing thread exit notifications.
12014 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12015 Remove thread ID check against main_thread_id.
12016 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12017 windows_delete_thread.
12018 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12020 2019-01-04 Tom Tromey <tom@tromey.com>
12022 * compile/compile.c (_initialize_compile): Use upper case for
12023 metasyntactic variables.
12024 * symmisc.c (_initialize_symmisc): Use upper case for
12025 metasyntactic variables.
12026 * psymtab.c (_initialize_psymtab): Use upper case for
12027 metasyntactic variables.
12028 * demangle.c (demangle_command): Use upper case for metasyntactic
12030 (_initialize_demangler): Likewise.
12031 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12034 2019-01-03 Tom Tromey <tom@tromey.com>
12036 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12038 2019-01-03 Tom Tromey <tom@tromey.com>
12040 * python/py-symtab.c (salpy_str): Update.
12041 (struct salpy_sal_object) <symtab>: Now a PyObject.
12042 (salpy_dealloc): Update.
12043 (del_objfile_sal): Use gdbpy_ref.
12045 2019-01-03 Tom Tromey <tom@tromey.com>
12047 * python/py-type.c (convert_field): Use new_reference. Return
12049 (make_fielditem): Return gdbpy_ref.
12050 (typy_fields): Update.
12051 (typy_getitem): Update.
12052 (field_name): Return gdbpy_ref. Use new_reference.
12053 (typy_iterator_iternext): Update.
12055 2019-01-03 Tom Tromey <tom@tromey.com>
12057 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12059 2019-01-03 Tom Tromey <tom@tromey.com>
12061 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12062 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12063 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12064 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12065 (pspy_set_type_printers): Likewise.
12066 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12067 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12068 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12069 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12070 (objfpy_set_type_printers): Likewise.
12072 2019-01-03 Tom Tromey <tom@tromey.com>
12074 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12075 (gdbpy_print_stack): Use gdbpy_err_fetch.
12076 * python/python-internal.h (class gdbpy_err_fetch): New class.
12077 (class gdbpy_enter) <m_error_type, m_error_value,
12078 m_error_traceback>: Remove.
12079 <m_error>: New member.
12080 (gdbpy_exception_to_string): Don't declare.
12081 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12082 * python/py-value.c (convert_value_from_python): Use
12084 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12085 gdbpy_exception_to_string.
12086 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12087 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12090 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12092 * linux-nat.c (delete_lwp_cleanup): Delete.
12093 (struct lwp_deleter): New struct.
12094 (lwp_info_up): New typedef.
12095 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12098 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12100 * linux-fork.c (class scoped_switch_fork_info): New class.
12101 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12103 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12105 * valops.c (find_overload_match): Remove use of null_cleanup, and
12106 calls to do_cleanups.
12108 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12110 * compile/compile-cplus-types.c
12111 (compile_cplus_instance::decl_name): Handle changes to
12113 * cp-support.c (cp_func_name): Update header comment, update
12115 * cp-support.h (cp_func_name): Update return type in declaration.
12116 * valops.c (find_overload_match): Move temp_func local to top
12117 level of function and change its type. Use temp_func to hold and
12118 delete temporary string obtained from cp_func_name.
12120 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12122 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12123 gdb::char_vector, remove cleanup, and update uses of `msg`.
12125 2019-01-03 Jim Wilson <jimw@sifive.com>
12127 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12129 2019-01-02 Tom Tromey <tom@tromey.com>
12131 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12132 (tdesc_parse_xml): Remove cleanups.
12133 * target-descriptions.h (make_cleanup_free_target_description):
12135 (target_desc_deleter): New struct.
12136 (target_desc_up): New typedef.
12137 * target-descriptions.c (target_desc_deleter::operator()): Rename
12138 from free_target_description.
12139 (make_cleanup_free_target_description): Remove.
12141 2019-01-02 Tom Tromey <tom@tromey.com>
12143 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12144 constructor, destructor.
12145 (linespec_parser): Remove typedef.
12146 (~linespec_parser): Rename from linespec_parser_delete.
12147 (linespec_lex_to_end, linespec_complete_label)
12148 (linespec_complete): Update.
12149 (decode_line_full): Remove cleanups.
12150 (decode_line_1): Update.
12152 2019-01-02 Tom Tromey <tom@tromey.com>
12154 * python/python-internal.h (inferior_to_inferior_object): Change
12156 * python/py-exitedevent.c (create_exited_event_object): Update.
12157 * python/py-inferior.c (inferior_to_inferior_object): Return
12159 (python_new_inferior, python_inferior_deleted)
12160 (thread_to_thread_object, delete_thread_object)
12161 (build_inferior_list, gdbpy_selected_inferior): Update.
12162 * python/py-infthread.c (create_thread_object): Update. Also fail
12163 if inferior_to_inferior_object fails.
12165 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12167 * inferior.h (class inferior) <displaced_step_state>: New field.
12168 * infrun.h (struct displaced_step_state): Move here from
12169 infrun.c. Initialize fields, add constructor.
12170 <inf>: Remove field.
12171 <reset>: New method.
12172 * infrun.c (struct displaced_step_inferior_state): Move to
12174 (displaced_step_inferior_states): Remove.
12175 (get_displaced_stepping_state): Adust.
12176 (displaced_step_in_progress_any_inferior): Adjust.
12177 (displaced_step_in_progress_thread): Adjust.
12178 (displaced_step_in_progress): Adjust.
12179 (add_displaced_stepping_state): Remove.
12180 (get_displaced_step_closure_by_addr): Adjust.
12181 (remove_displaced_stepping_state): Remove.
12182 (infrun_inferior_exit): Call displaced_step_state.reset.
12183 (use_displaced_stepping): Don't check for NULL.
12184 (displaced_step_prepare_throw): Call
12185 get_displaced_stepping_state.
12186 (displaced_step_fixup): Don't check for NULL.
12187 (prepare_for_detach): Don't check for NULL.
12189 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12191 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12192 in case of call that did not complete.
12194 2019-01-02 Andrey Utkin <autkin@undo.io>
12196 * symfile.c (find_separate_debug_file): Fix search of debug files for
12199 2019-01-02 Tom Tromey <tom@tromey.com>
12201 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12203 * python/py-frame.c (frapy_older): Remove cast.
12204 (frapy_newer): Likewise.
12205 * python/py-breakpoint.c (local_setattro): Remove cast.
12206 * python/py-arch.c (archpy_name): Remove local variable.
12207 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12209 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12211 * unittests/basic_string_view/element_access/char/empty.cc:
12212 Fix year range in copyright header.
12214 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12216 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12218 <operator==>: Update with for removed field.
12220 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12221 <isa_features>: ...this.
12222 <abi_features>: New field.
12223 (riscv_isa_flen): Update comment.
12224 (riscv_abi_xlen): New declaration.
12225 (riscv_abi_flen): New declaration.
12226 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12228 (riscv_abi_xlen): New function.
12229 (riscv_isa_flen): Update to get answer from isa_features.
12230 (riscv_abi_flen): New function.
12231 (riscv_has_fp_abi): Update to get answer from abi_features.
12232 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12234 (riscv_call_info) <xlen, flen>: Update comment.
12235 (riscv_call_arg_struct): Remove invalid assertions
12236 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12238 (riscv_gdbarch_init): Gather isa features and abi features
12239 separately, ensure both match on the gdbarch when reusing an old
12240 gdbarch. Relax an error check to allow 32-bit abi float to run on
12241 a target with 64-bit float hardware.
12243 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12245 * source.c (search_command_helper): Stop reverse search
12246 when line 1 has been searched.
12248 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12250 * record-full.c (record_full_base_target::close): Rewrite
12251 record_full_core_buf_list free logic.
12253 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12255 * break-catch-syscall.c (print_one_catch_syscall): xfree
12258 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12260 * top.c (print_gdb_version): Update Copyright year in version
12263 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12265 Update copyright year range in all GDB files.
12267 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12269 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12271 For older changes see ChangeLog-2018.
12277 version-control: never