1 2019-08-30 Tom Tromey <tom@tromey.com>
3 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4 (tui_data_window::display_registers_from)
5 (tui_data_window::display_reg_element_at_line)
6 (tui_data_window::display_registers_from_line): Remove checks of
9 2019-08-30 Tom Tromey <tom@tromey.com>
11 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
13 * tui/tui-regs.c (tui_data_window::show_registers): Call
15 (tui_data_window::rerender): Rename from display_all_data.
16 (tui_data_window::rerender): Remove old implementation.
18 2019-08-30 Tom Tromey <tom@tromey.com>
20 * tui/tui-regs.c (tui_data_window::display_all_data): Change
22 * tui/tui-data.h (NO_DATA_STRING): Remove define.
24 2019-08-29 Bernhard Wodok <barto@gmx.net>
25 Sergio Durigan Junior <sergiodj@redhat.com>
28 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
30 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
32 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
33 when searching for types.
35 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
37 * f-lang.c (f_language_defn): Use f_print_typedef.
38 * f-lang.h (f_print_typedef): Declare.
39 * f-typeprint.c (f_print_typedef): Define.
41 2019-08-27 Christian Biesinger <cbiesinger@google.com>
43 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
45 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
47 * cli/cli-utils.c (info_print_options_defs): Delete.
48 (make_info_print_options_def_group): Delete.
49 (extract_info_print_options): Delete.
50 (info_print_command_completer): Delete.
51 (info_print_args_help): Add extra parameter, and optionally
52 include text about -n flag.
53 * cli/cli-utils.h (struct info_print_options): Delete.
54 (extract_info_print_options): Delete declaration.
55 (info_print_command_completer): Delete declaration.
56 (info_print_args_help): Add extra parameter, extend header
58 * python/python.c (gdbpy_rbreak): Pass additional parameter to
60 * stack.c (struct info_print_options): New type.
61 (info_print_options_defs): New file scoped variable.
62 (make_info_print_options_def_group): New static function.
63 (info_print_command_completer): New static function.
64 (info_locals_command): Update to use new local functions.
65 (info_args_command): Likewise.
66 (_initialize_stack): Add extra parameter to calls to
68 * symtab.c (search_symbols): Add extra parameter, use this to
69 possibly excluse non-debug symbols.
70 (symtab_symbol_info): Add extra parameter, which is passed on to
72 (struct info_print_options): New type.
73 (info_print_options_defs): New file scoped variable.
74 (make_info_print_options_def_group): New static function.
75 (info_print_command_completer): New static function.
76 (info_variables_command): Update to use local functions, and pass
77 extra parameter through to symtab_symbol_info.
78 (info_functions_command): Likewise.
79 (info_types_command): Pass additional argument through to
81 (rbreak_command): Pass extra argument to search_symbols.
82 (_initialize_symtab): Add extra arguments for calls to
83 info_print_args_help, and update help text for 'info variables',
84 'whereis', and 'info functions' commands.
85 * symtab.h (search_symbols): Add extra argument to declaration.
86 * NEWS: Mention new flags.
88 2019-08-26 Christian Biesinger <cbiesinger@google.com>
90 * symtab.c (lookup_static_symbol): Call the new function (and move
91 it down to be next to lookup_global_symbol).
92 (struct global_sym_lookup_data): Add block_enum member and rename to...
93 (struct global_or_static_sym_lookup_data): ...this.
94 (lookup_symbol_global_iterator_cb): Pass block_index instead of
95 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
96 (lookup_symbol_global_or_static_iterator_cb): ...this.
97 (lookup_global_or_static_symbol): New function.
98 (lookup_global_symbol): Call new function.
100 2019-08-26 Tom de Vries <tdevries@suse.de>
103 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
104 when pc_probe.prob == NULL.
106 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
108 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
109 variable symbol_linkage to symbol_linkage_.
111 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
113 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
114 represent whether the symbol is static, dynamic, or we don't
117 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
119 * gdb/rx-tdep.c (rx_register_names): New.
120 (rx_register_name): Delete.
121 (rx_psw_type): Delete.
122 (rx_fpsw_type): Delete.
123 (rx_register_type): Delete.
124 (rx_gdbarch_init): Convert target-descriptions.
125 (_initialize_rx_tdep): Add initialize_tdesc_rx.
126 * gdb/features/Makefile: Add rx.xml.
127 * gdb/features/rx.xml: New.
128 * gdb/features/rx.c: Generated.
129 * gdb/NEWS: Mention target description support.
131 2019-08-22 Christian Biesinger <cbiesinger@google.com>
133 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
136 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
138 * configure.ac: Don't check for 'dlfcn.h' (moved to
139 gdbsupport/common.m4).
140 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
142 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
143 * compile/compile-c-support.c: Include
144 'gdbsupport/gdb-dlfcn.h'.
145 * gdbsupport/common.m4: Check for 'dlfcn.h'.
146 * gdb-dlfcn.c: Move to...
147 * gdbsupport/gdb-dlfcn.c: ... here.
148 * gdb-dlfcn.h: Move to...
149 * gdbsupport/gdb-dlfcn.h: ... here.
151 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
153 * nios2-tdep.c (struct reg_value): Improve comments. Make
154 the offset field signed.
156 2019-08-22 Christian Biesinger <cbiesinger@google.com>
158 * python/lib/gdb/__init__.py (_execute_file): New function.
159 * python/python.c (python_run_simple_file): Call gdb._execute_file
162 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
164 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
165 all uses as this was never set to anything but a zero value.
167 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
169 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
171 2019-08-21 Christian Biesinger <cbiesinger@google.com>
173 * tui/tui-data.h (tui_gen_win_info): Add an =default
174 move constructor, required by some GCC versions.
176 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
178 * go32-nat.c (go32_sysinfo): Add hygon_p.
180 2019-08-20 Tom Tromey <tom@tromey.com>
182 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
183 line_from_reg_element_no, first_reg_element_no_inline,
184 display_all_data, delete_data_content_windows,
185 erase_data_content>: Now private.
187 2019-08-20 Tom Tromey <tom@tromey.com>
189 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
190 (tui_unhighlight_win, tui_highlight_win)
191 (tui_win_info::make_window): Update.
192 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
194 2019-08-20 Tom Tromey <tom@tromey.com>
196 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
197 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
198 (MAX_PID_WIDTH): Move to tui-stack.c.
199 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
200 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
201 (MAX_PID_WIDTH): Move from tui-data.h.
203 2019-08-20 Tom Tromey <tom@tromey.com>
205 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
206 * tui/tui-wingeneral.c (box_win): Change type of win_info.
208 (tui_gen_win_info::make_window): Rename from tui_make_window.
209 (tui_win_info::make_window): New method.
210 (tui_gen_win_info::make_visible): Update.
211 * tui/tui-source.c (tui_source_window::set_contents): Update.
212 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
213 (tui_data_window::display_registers_from): Update.
214 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
215 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
219 (struct tui_win_info) <make_window>: Declare.
220 <can_box>: Now virtual.
222 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
223 * tui/tui-command.c (tui_cmd_window::resize): Update.
225 2019-08-20 Tom Tromey <tom@tromey.com>
227 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
228 * tui/tui-regs.c (tui_data_window::show_registers): Update.
229 (tui_data_window::check_register_values): Update.
231 2019-08-20 Tom Tromey <tom@tromey.com>
233 * tui/tui-regs.h (struct tui_data_window): Use
234 DISABLE_COPY_AND_ASSIGN.
235 <regs_content>: Change type, removing unique_ptr.
236 <tui_data_window>: Add move constructor.
237 * tui/tui-regs.c (tui_data_window::show_registers)
238 (tui_data_window::show_register_group)
239 (tui_data_window::display_registers_from)
240 (tui_data_window::display_registers_from)
241 (tui_data_window::first_data_item_displayed)
242 (tui_data_window::delete_data_content_windows)
243 (tui_data_window::rerender, tui_data_window::refresh_window)
244 (tui_data_window::check_register_values): Update.
246 2019-08-20 Tom Tromey <tom@tromey.com>
248 * tui/tui-regs.h (struct tui_data_window) <show_registers,
249 show_register_group>: Declare.
250 (tui_show_register_group): Don't declare.
251 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
253 (tui_data_window::show_register_group): Rename from
254 tui_show_register_group.
255 (tui_data_window::check_register_values, tui_reg_command):
257 * tui/tui-layout.c (tui_set_layout): Update.
259 2019-08-20 Tom Tromey <tom@tromey.com>
261 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
263 (tui_check_register_values): Don't declare.
264 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
265 from tui_check_register_values.
266 * tui/tui-hooks.c (tui_register_changed): Update.
268 2019-08-20 Tom Tromey <tom@tromey.com>
270 * tui/tui-regs.c (tui_reg_layout): Move later.
271 (tui_show_registers): Don't enable TUI mode or change layout.
273 2019-08-20 Tom Tromey <tom@tromey.com>
275 * tui/tui-regs.h (struct tui_data_item_window)
276 <~tui_data_item_window>: Remove.
277 <content>: Now a unique_xmalloc_ptr.
278 * tui/tui-regs.c (tui_register_format): Return a
280 (tui_get_register): Update.
281 (~tui_data_item_window): Remove.
282 (tui_data_window::display_registers_from, tui_display_register):
284 * tui/tui-io.h (tui_expand_tabs): Update.
285 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
286 Remove "col" parameter.
288 2019-08-20 Tom Tromey <tom@tromey.com>
290 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
292 * tui/tui-regs.c (~tui_data_item_window): Update.
294 2019-08-20 Tom Tromey <tom@tromey.com>
296 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
299 2019-08-20 Tom Tromey <tom@tromey.com>
301 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
303 2019-08-20 Tom Tromey <tom@tromey.com>
305 * tui/tui-source.h (struct tui_source_window): Update.
306 * tui/tui-regs.c (tui_show_registers): Update.
307 * tui/tui-disasm.h (struct tui_disasm_window): Update.
308 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
309 (NO_REGS_STRING): Remove defines.
311 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
313 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
314 unnecessary thread walk if remote doesn't support the packet.
316 2019-08-19 Tom Tromey <tromey@adacore.com>
318 * python/py-value.c (value_has_field): Fix indentation.
320 2019-08-19 Tom Tromey <tromey@adacore.com>
322 * printcmd.c (do_one_display, info_display_command): Update.
323 * block.h (contained_in): Return bool. Add allow_nested
325 * block.c (contained_in): Return bool. Add allow_nested
328 2019-08-19 Tom Tromey <tom@tromey.com>
330 * configure: Rebuild.
331 * configure.ac: Disallow the combination of -static-libstdc++ and
333 * source-cache.c (get_language_name): Handle rust.
334 (source_cache::get_source_lines): Ignore highlighting exceptions.
336 2019-08-16 Tom Tromey <tom@tromey.com>
338 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
339 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
340 (struct tui_source_window_base) <make_visible, refresh_window,
341 resize>: Remove methods.
342 <execution_info>: Remove field.
343 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
344 (tui_show_source_line, tui_source_window_base)
345 (~tui_source_window_base): Update.
346 (tui_source_window_base::resize)
347 (tui_source_window_base::make_visible)
348 (tui_source_window_base::refresh_window): Remove.
349 (tui_source_window_base::update_exec_info): Update.
350 * tui/tui-source.c (tui_source_window::set_contents): Update.
351 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
353 2019-08-16 Tom Tromey <tom@tromey.com>
355 * tui/tui-hooks.c (tui_remove_hooks): Don't set
356 deprecated_query_hook.
358 2019-08-16 Tom Tromey <tom@tromey.com>
360 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
361 (tui_update_source_windows_with_line): Update.
362 * tui/tui-source.h (struct tui_source_window)
363 <show_symtab_source>: Declare.
364 (tui_show_symtab_source): Don't declare.
365 * tui/tui-source.c (tui_show_symtab_source): Rename from
366 tui_show_symtab_source.
368 2019-08-16 Tom Tromey <tom@tromey.com>
370 * tui/tui-winsource.h (struct tui_source_window_base)
371 <set_contents>: Declare.
372 * tui/tui-winsource.c
373 (tui_source_window_base::update_source_window_as_is): Update.
374 * tui/tui-source.h (struct tui_source_window) <set_contents>:
376 (tui_set_source_content): Don't declare.
377 * tui/tui-source.c (tui_source_window::set_contents): Rename from
378 tui_set_source_content.
379 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
381 (tui_set_disassem_content): Don't declare.
382 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
383 tui_set_disassem_content.
385 2019-08-16 Tom Tromey <tom@tromey.com>
387 * tui/tui-winsource.h (struct tui_source_window_base)
388 <update_breakpoint_info>: Declare.
389 (tui_update_breakpoint_info): Don't declare.
390 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
391 (tui_update_all_breakpoint_info): Update.
392 (tui_source_window_base::update_breakpoint_info): Rename from
393 tui_update_breakpoint_info.
394 (tui_source_window_base::update_exec_info): Update.
396 2019-08-16 Tom Tromey <tom@tromey.com>
398 * tui/tui-winsource.h (struct tui_source_window_base)
399 <update_source_window>: Declare.
400 (tui_update_source_window): Don't declare.
401 * tui/tui-winsource.c
402 (tui_source_window_base::update_source_window): Rename from
403 tui_update_source_window.
404 (tui_source_window_base::rerender): Update.
405 * tui/tui-source.c (tui_source_window::maybe_update): Update.
406 * tui/tui-disasm.c (tui_show_disassem)
407 (tui_show_disassem_and_update_source)
408 (tui_disasm_window::maybe_update): Update.
410 2019-08-16 Tom Tromey <tom@tromey.com>
412 * tui/tui-winsource.h (struct tui_source_window_base)
413 <update_source_window_as_is>: Declare.
414 (tui_update_source_window_as_is): Don't declare.
415 * tui/tui-winsource.c (tui_update_source_window): Update
416 (tui_source_window_base::update_source_window_as_is): Rename from
417 tui_update_source_window_as_is.
418 (tui_source_window_base::refill): Update.
419 * tui/tui-source.c (tui_show_symtab_source): Update.
420 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
423 2019-08-16 Tom Tromey <tom@tromey.com>
425 * tui/tui-winsource.h (tui_update_source_window)
426 (tui_update_source_window_as_is): Remove "noerror" parameter.
427 * tui/tui-winsource.c (tui_update_source_window)
428 (tui_update_source_window_as_is): Remove "noerror" parameter.
429 (tui_update_source_windows_with_addr)
430 (tui_update_source_windows_with_line)
431 (tui_source_window_base::rerender)
432 (tui_source_window_base::refill): Update.
433 * tui/tui-source.h (tui_set_source_content)
434 (tui_show_symtab_source): Remove "noerror" parameter.
435 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
437 (tui_show_symtab_source): Likewise.
438 (tui_source_window::maybe_update): Update.
439 * tui/tui-disasm.c (tui_show_disassem)
440 (tui_show_disassem_and_update_source)
441 (tui_disasm_window::do_scroll_vertical)
442 (tui_disasm_window::maybe_update): Update.
444 2019-08-16 Tom Tromey <tom@tromey.com>
446 * tui/tui.c (tui_is_window_visible): Update.
447 * tui/tui-wingeneral.c (tui_make_window)
448 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
449 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
450 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
451 (tui_set_win_height_command, parse_scrolling_args): Update.
452 * tui/tui-source.c (tui_source_window::style_changed): Update.
453 * tui/tui-regs.c (tui_show_registers)
454 (tui_data_window::first_data_item_displayed)
455 (tui_data_window::delete_data_content_windows)
456 (tui_check_register_values, tui_reg_command): Update.
457 * tui/tui-disasm.c (tui_show_disassem): Update.
458 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
460 <is_visible>: Remove field.
461 * tui/tui-data.c (tui_next_win, tui_prev_win)
462 (tui_delete_invisible_windows): Update.
464 2019-08-16 Tom Tromey <tom@tromey.com>
466 * tui/tui-winsource.h (struct tui_source_window_base)
467 <m_has_locator>: Remove.
468 * tui/tui-layout.c (show_source_disasm_command, show_data)
469 (show_source_or_disasm_and_command): Update.
471 2019-08-16 Alan Hayward <alan.hayward@arm.com>
473 * NEWS (Other MI changes): New subsection.
474 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
475 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
476 * arch-utils.c (default_get_pc_address_flags): New function.
477 * arch-utils.h (default_get_pc_address_flags): New declaration.
478 * gdbarch.sh: Add get_pc_address_flags.
479 * gdbarch.c: Regenerate.
480 * gdbarch.h: Likewise.
481 * stack.c (print_pc): New function.
482 (print_frame_info) (print_frame): Call print_pc.
484 2019-08-16 Tom de Vries <tdevries@suse.de>
486 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
487 print_objfile_section_info.
489 2019-08-15 Tom Tromey <tom@tromey.com>
491 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
492 calling update_cmdwin_start_line.
493 * tui/tui-winsource.h (struct tui_source_window_base)
494 <do_make_visible_with_new_height, set_new_height>: Don't declare.
496 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
498 (tui_source_window_base::set_new_height): Remove.
499 (tui_source_window_base::rerender): Rename from
500 do_make_visible_with_new_height.
501 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
503 (tui_win_info::make_invisible_and_set_new_height)
504 (tui_win_info::make_visible_with_new_height): Remove.
505 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
507 * tui/tui-stack.c (tui_locator_window::rerender): New method.
508 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
509 do_make_visible_with_new_height>: Don't declare.
511 * tui/tui-regs.c (tui_data_window::rerender): Rename from
513 (tui_data_window::do_make_visible_with_new_height): Remove.
514 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
515 call tui_show_locator_content.
516 (tui_gen_win_info::resize): Call rerender.
517 (show_source_or_disasm_and_command): Don't call
518 tui_show_locator_content.
519 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
521 (struct tui_win_info) <rerender>: Declare.
522 <set_new_height, make_invisible_and_set_new_height,
523 make_visible_with_new_height>: Don't declare.
524 * tui/tui-data.c (tui_win_list::rerender): New method.
525 * tui/tui-command.h (struct tui_cmd_window)
526 <do_make_visible_with_new_height>: Don't declare.
528 (tui_cmd_window::do_make_visible_with_new_height): Remove.
530 2019-08-15 Tom Tromey <tromey@adacore.com>
532 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
533 * ada-lang.c (ada_enum_name): Likewise.
535 2019-08-15 Christian Biesinger <cbiesinger@google.com>
537 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
539 (GdbOutputErrorFile): Likewise.
540 (global scope): Adjust constructor calls to GdbOutput{,Error}File
542 (execute_unwinders): Rename to have a leading underscore.
543 (auto_load_packages): Likewise.
544 (global scope): Adjust call to auto_load_packages accordingly.
545 (GdbSetPythonDirectory): Likewise.
546 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
547 instead of execute_unwinders.
549 2019-08-15 Tom Tromey <tom@tromey.com>
551 * tui/tui-layout.c (show_layout, show_source_disasm_command)
552 (show_data): Don't change window visibility.
553 (tui_gen_win_info::resize): Remove special case for command
554 window. Use wresize, when available.
555 (show_source_or_disasm_and_command): Don't change window
557 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
558 <make_visible>: New method.
559 * tui/tui-command.c (tui_cmd_window::resize): New method.
561 2019-08-15 Tom Tromey <tom@tromey.com>
563 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
564 (struct tui_source_windows): New.
565 * tui/tui-winsource.c (tui_display_main): Update.
566 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
567 (new_height_ok, parse_scrolling_args): Update.
568 * tui/tui-layout.c (show_layout, show_data): Update.
569 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
570 (tui_add_to_source_windows): Don't declare.
571 * tui/tui-data.c (source_windows, tui_source_windows)
572 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
574 2019-08-15 Tom Tromey <tom@tromey.com>
576 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
578 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
579 * tui/tui-layout.c (show_source_disasm_command, show_data):
581 (tui_gen_win_info::resize): Rename.
582 (show_source_or_disasm_and_command): Update.
583 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
586 2019-08-15 Tom Tromey <tom@tromey.com>
588 * tui/tui-stack.c (tui_initialize_static_data): Remove.
589 * tui/tui-interp.c (tui_interp::init): Don't call
590 tui_initialize_static_data.
591 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
593 2019-08-15 Tom Tromey <tom@tromey.com>
595 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
596 examine tui_win_list.
598 2019-08-15 Tom Tromey <tom@tromey.com>
600 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
601 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
602 tui_clear_source_content.
603 (tui_clear_source_content): Remove.
604 (tui_source_window_base::do_erase_source_content): Hoist call to
606 * tui/tui-stack.c (tui_show_frame_info): Don't call
607 tui_clear_source_content.
609 2019-08-15 Tom Tromey <tom@tromey.com>
611 * tui/tui-winsource.h (struct tui_source_window_base)
612 <do_erase_source_content>: New method.
613 <erase_source_content>: New method.
614 (tui_erase_source_content): Don't declare.
615 * tui/tui-winsource.c (tui_clear_source_content): Update.
616 (tui_source_window_base::do_erase_source_content): Rename from
617 tui_erase_source_content.
618 (tui_source_window_base::show_source_content): Update.
619 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
620 * tui/tui-source.h (struct tui_source_window)
621 <erase_source_content>: New method.
622 * tui/tui-disasm.h (struct tui_disasm_window)
623 <erase_source_content>: New method.
625 2019-08-15 Tom Tromey <tom@tromey.com>
627 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
628 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
630 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
631 * tui/tui-source.c (tui_set_source_content): Update.
632 * tui/tui-disasm.c (tui_set_disassem_content): Update.
634 2019-08-15 Tom Tromey <tom@tromey.com>
636 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
637 * tui/tui-winsource.c (tui_line_is_displayed): Move to
639 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
641 * tui/tui-source.c (tui_source_window::line_is_displayed): New
643 (tui_source_window::maybe_update): Update.
645 2019-08-15 Tom Tromey <tom@tromey.com>
647 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
648 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
650 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
652 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
654 (tui_disasm_window::maybe_update): Update.
656 2019-08-15 Tom Tromey <tom@tromey.com>
658 * tui/tui-winsource.h (struct tui_source_window_base)
659 <maybe_update>: Declare.
660 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
662 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
664 * tui/tui-source.c (tui_source_window::maybe_update): New method.
665 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
667 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
669 2019-08-15 Tom Tromey <tom@tromey.com>
671 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
673 2019-08-15 Tom Tromey <tom@tromey.com>
675 * tui/tui-wingeneral.c: Include tui-stack.h.
676 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
677 (struct tui_locator_window): Move from tui-data.h.
678 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
679 (tui_initialize_static_data): Move from tui-data.c.
680 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
681 (struct tui_locator_window): Move to tui-stack.c.
682 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
683 (tui_initialize_static_data): Move to tui-stack.c.
685 2019-08-15 Tom Tromey <tom@tromey.com>
687 * tui/tui-layout.c (show_source_disasm_command)
688 (show_source_or_disasm_and_command): Use make_visible method, not
690 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
693 2019-08-15 Tom Tromey <tom@tromey.com>
695 * tui/tui-wingeneral.h (tui_make_window): Update.
696 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
698 (tui_gen_win_info::make_visible): Update.
699 * tui/tui-regs.c (tui_data_window::display_registers_from):
701 * tui/tui-layout.c (show_source_disasm_command)
702 (show_source_or_disasm_and_command): Update.
703 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
704 (enum tui_box): Remove.
705 (struct tui_win_info) <can_box>: New method.
706 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
709 2019-08-15 Tom de Vries <tdevries@suse.de>
711 * linux-nat-trad.c: Include gdbarch.h.
713 2019-08-14 Alan Hayward <alan.hayward@arm.com>
715 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
718 2019-08-14 Tom Tromey <tromey@adacore.com>
720 * darwin-nat.c: Include gdbarch.h.
721 * darwin-nat-info.c: Include gdbarch.h.
723 2019-08-13 Tom Tromey <tom@tromey.com>
725 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
727 * tui/tui-data.c (tui_initialize_static_data): Update.
729 2019-08-13 Tom Tromey <tom@tromey.com>
731 * tui/tui-winsource.h (struct tui_exec_info_window)
732 <~tui_exec_info_window, maybe_allocate_content, get_content,
734 (struct tui_source_window_base) <set_exec_info_content,
735 show_exec_info_content>: Don't declare.
736 * tui/tui-winsource.c
737 (tui_exec_info_window::maybe_allocate_content): Remove.
738 (tui_source_window_base::update_exec_info): Rename from
739 set_exec_info_content.
740 (tui_source_window_base::show_exec_info_content)
741 (tui_source_window_base::update_exec_info): Remove.
743 2019-08-13 Tom Tromey <tom@tromey.com>
745 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
747 * tui/tui-winsource.c (tui_update_source_window_as_is)
748 (tui_update_source_windows_with_addr, tui_erase_source_content):
750 (tui_clear_exec_info_content): Remove.
752 2019-08-13 Tom Tromey <tom@tromey.com>
754 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
756 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
757 call tui_erase_exec_info_content.
758 (tui_clear_exec_info_content): Rename from
759 tui_erase_exec_info_content.
760 (tui_clear_exec_info_content): Delete.
762 2019-08-13 Tom Tromey <tom@tromey.com>
764 * tui/tui-winsource.h (struct tui_source_window_base)
765 <show_exec_info_content>: Declare.
766 (tui_show_exec_info_content): Don't declare.
767 * tui/tui-winsource.c
768 (tui_source_window_base::show_exec_info_content): Rename from
769 tui_show_exec_info_content.
770 (tui_source_window_base::update_exec_info): Update.
772 2019-08-13 Tom Tromey <tom@tromey.com>
774 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
775 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
776 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
777 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
778 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
779 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
782 2019-08-13 Tom Tromey <tom@tromey.com>
784 * tui/tui-winsource.h (struct tui_source_window_base)
785 <update_exec_info>: Declare.
786 (tui_update_exec_info): Don't declare.
787 * tui/tui-winsource.c (tui_update_source_window_as_is)
788 (tui_source_window_base::refresh_all)
789 (tui_update_all_breakpoint_info): Update.
790 (tui_source_window_base::update_exec_info): Rename from
791 tui_update_exec_info.
792 * tui/tui-stack.c (tui_show_frame_info): Update.
794 2019-08-13 Tom Tromey <tom@tromey.com>
796 * tui/tui-winsource.h (struct tui_source_window_base)
797 <set_exec_info_content>: Declare.
798 (tui_set_exec_info_content): Don't declare.
799 * tui/tui-winsource.c
800 (tui_source_window_base::set_exec_info_content): Rename from
801 tui_set_exec_info_content.
802 (tui_update_exec_info): Update.
804 2019-08-13 Tom Tromey <tom@tromey.com>
806 * tui/tui-winsource.h (struct tui_source_window_base)
807 <show_source_content>: Declare.
808 (tui_show_source_content): Don't declare.
809 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
810 (tui_source_window_base::show_source_content): Rename from
811 tui_show_source_content.
812 (tui_source_window_base::refresh_all): Update.
813 * tui/tui-layout.c (show_source_disasm_command)
814 (show_source_or_disasm_and_command): Update.
816 2019-08-13 Tom Tromey <tom@tromey.com>
818 * tui/tui-winsource.c (tui_erase_source_content)
819 (tui_show_source_content, tui_source_window_base::refresh_all):
821 * tui/tui-wingeneral.h
822 (tui_check_and_display_highlight_if_needed): Don't declare.
823 * tui/tui-wingeneral.c
824 (tui_win_info::check_and_display_highlight_if_needed): Rename from
825 check_and_display_highlight_if_needed.
826 * tui/tui-win.c (tui_rehighlight_all)
827 (tui_win_info::make_visible_with_new_height): Update.
828 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
829 (tui_data_window::erase_data_content)
830 (tui_data_window::display_all_data): Update.
831 * tui/tui-data.h (struct tui_win_info)
832 <check_and_display_highlight_if_needed>: Declare.
834 2019-08-13 Tom Tromey <tom@tromey.com>
836 * tui/tui-win.c (tui_resize_all): Call
837 tui_delete_invisible_windows.
838 * tui/tui-layout.c (show_layout): Call
839 tui_delete_invisible_windows.
840 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
841 * tui/tui-data.c (tui_delete_invisible_windows): New function.
843 2019-08-13 Tom Tromey <tom@tromey.com>
845 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
846 tui_add_win_to_layout.
848 2019-08-13 Tom Tromey <tom@tromey.com>
850 * tui/tui-layout.h (tui_default_win_height): Don't declare.
851 * tui/tui-layout.c (tui_default_win_height): Now static.
853 2019-08-13 Tom Tromey <tom@tromey.com>
855 * tui/tui-layout.c (show_layout): Unify all layout cases into a
857 (show_source_disasm_command, show_source_or_disasm_and_command):
858 Don't check current layout.
860 2019-08-13 Tom Tromey <tom@tromey.com>
862 * tui/tui-wingeneral.c (make_all_visible): Remove.
863 (tui_make_all_invisible): Simplify.
864 * tui/tui-layout.c (tui_make_all_invisible): Move from
865 tui-wingeneral.c; simplify.
866 (show_layout): Hoist call to tui_make_all_invisible.
867 (show_data): Don't call tui_make_all_invisible.
869 2019-08-13 Tom Tromey <tom@tromey.com>
871 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
872 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
874 2019-08-13 Tom Tromey <tom@tromey.com>
876 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
878 (show_source_disasm_command, show_data)
879 (show_source_or_disasm_and_command): Don't use
880 tui_set_current_layout_to.
881 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
882 * tui/tui-data.c (current_layout, tui_current_layout): Move to
884 (tui_set_current_layout_to): Remove.
886 2019-08-13 Tom Tromey <tom@tromey.com>
888 * tui/tui-layout.c (tui_set_layout): Update.
889 * tui/tui-data.h (struct tui_layout_def): Remove.
890 (tui_layout_def): Don't declare.
891 * tui/tui-data.c (layout_def): Remove.
892 (tui_layout_def): Remove.
894 2019-08-13 Tom Tromey <tom@tromey.com>
896 * tui/tui-winsource.h (struct tui_source_window_base)
897 <clear_detail>: No longer "override".
898 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
899 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
900 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
901 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
903 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
905 2019-08-13 Tom Tromey <tromey@adacore.com>
907 * tracepoint.c: Don't include readline.h or history.h.
909 2019-08-12 Tom Tromey <tom@tromey.com>
911 * configure: Rebuild.
912 * configure.ac: Check for readline 7.
913 * NEWS: Mention readline 7 requirement.
916 2019-08-12 Tom Tromey <tom@tromey.com>
918 * mingw-hdep.c (gdb_select): Remove readline hack.
920 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
922 * blockframe.c (find_pc_partial_function): Set *block to nullptr
923 when the function fails.
925 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
927 * s390-tdep.c (s390_type_align): New function.
928 (s390_gdbarch_init): Set it as type_align gdbarch method.
930 2019-08-09 Tom de Vries <tdevries@suse.de>
933 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
934 pc_low with relocation offset.
936 2019-08-07 Tom Tromey <tromey@adacore.com>
938 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
939 (print_frame_args): Update.
940 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
942 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
943 * frame.h (struct frame_arg): Add initializers.
944 <error>: Now a unique_xmalloc_ptr.
946 2019-08-07 Alan Hayward <alan.hayward@arm.com>
948 * NEWS: Expand the Pointer Authentication entry.
949 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
950 (aarch64_frame_unmask_lr): ... to this.
951 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
952 Call aarch64_frame_unmask_lr.
953 * frame.c (struct frame_info): Add "masked" variable.
954 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
955 (fprint_frame): Check for masked pc.
956 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
958 * python/py-framefilter.c (py_print_frame): Check for masked pc.
959 * stack.c (print_frame): Check for masked pc.
961 2019-08-06 Tom Tromey <tom@tromey.com>
963 * stabsread.c (patch_block_stabs, read_one_struct_field)
964 (read_enum_type): Use obstack_strndup.
965 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
966 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
967 * dwarf2read.c (guess_full_die_structure_name)
968 (anonymous_struct_prefix): Use obstack_strndup.
969 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
970 * c-exp.y (yylex): Use obstack_strndup.
971 * ada-exp.y (write_object_renaming, write_ambiguous_var)
972 (write_var_or_type): Use obstack_strndup.
974 2019-08-06 Tom Tromey <tom@tromey.com>
976 * symfile.c (reread_symbols): Use obstack_strdup.
977 * stabsread.c (read_type): Use obstack_strdup.
978 * gdb_obstack.h (obstack_strdup): New overload.
979 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
980 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
981 (dwarf2_canonicalize_name): Use obstack_strdup.
982 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
983 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
986 2019-08-06 Tom Tromey <tom@tromey.com>
988 * gdb_obstack.h (obstack_strdup): Define.
989 * gdb_obstack.c (obstack_strdup): Don't define.
991 2019-08-06 Tom Tromey <tom@tromey.com>
993 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
995 * typeprint.c (typedef_hash_table::find_global_typedef): Use
997 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
998 * stabsread.c (common_block_start): Use obstack_strdup.
999 * objfiles.c (set_objfile_main_name, objfile): Use
1001 * namespace.c (add_using_directive): Use obstack_strdup.
1002 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1003 * jit.c (finalize_symtab): Use obstack_strdup.
1004 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1005 (guess_partial_die_structure_name, partial_die_info::fixup)
1006 (dwarf2_name): Use obstack_strdup.
1007 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1009 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1010 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1012 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1014 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1016 * unittests/help-doc-selftests.c: New file.
1017 * Makefile.in: Add the new file.
1019 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1021 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1022 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1023 the full first line, except when FOR_VALUE_PREFIX. In this case,
1024 the trailing '.' is not output, and the first character is uppercased.
1025 (print_help_for_command): Update call to print_doc_line.
1026 (print_doc_of_command): Likewise.
1027 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1028 * cli/cli-option.c (append_indented_doc): Do not append newline.
1029 (build_help_option): Append newline after first appended_indented_doc
1030 only if a second call is done.
1031 (build_help): Append 2 new lines before each option, except the first
1033 * compile/compile.c (_initialize_compile): Add new lines after
1034 %OPTIONS%, when not at the end of the help.
1035 Change help doc or code
1036 producing the help doc to respect the invariants.
1037 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1038 Also removed the new line after 'Options:', as all other commands
1039 do not put an empty line between 'Options:' and the first option.
1040 * printcmd.c (_initialize_printcmd): Likewise.
1041 * stack.c (_initialize_stack): Likewise.
1042 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1043 incorrectly telling COMMAND is optional.
1044 * ada-lang.c (_initialize_ada_language): Change help doc or code
1045 producing the help doc to respect the invariants.
1046 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1047 * breakpoint.c (_initialize_breakpoint): Likewise.
1048 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1049 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1050 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1051 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1052 _initialize_cli_style): Likewise.
1053 * corelow.c (core_target_info): Likewise.
1054 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1055 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1056 * filesystem.c (_initialize_filesystem): Likewise.
1057 * frame.c (_initialize_frame): Likewise.
1058 * gnu-nat.c (add_task_commands): Likewise.
1059 * infcall.c (_initialize_infcall): Likewise.
1060 * infcmd.c (_initialize_infcmd): Likewise.
1061 * interps.c (_initialize_interpreter): Likewise.
1062 * language.c (_initialize_language): Likewise.
1063 * linux-fork.c (_initialize_linux_fork): Likewise.
1064 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1065 * maint.c (_initialize_maint_cmds): Likewise.
1066 * memattr.c (_initialize_mem): Likewise.
1067 * printcmd.c (_initialize_printcmd): Likewise.
1068 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1070 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1071 * record-btrace.c (_initialize_record_btrace): Likewise.
1072 * record-full.c (_initialize_record_full): Likewise.
1073 * record.c (_initialize_record): Likewise.
1074 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1075 * regcache.c (_initialize_regcache): Likewise.
1076 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1077 _initialize_remote): Likewise.
1078 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1079 * serial.c (_initialize_serial): Likewise.
1080 * skip.c (_initialize_step_skip): Likewise.
1081 * source.c (_initialize_source): Likewise.
1082 * stack.c (_initialize_stack): Likewise.
1083 * symfile.c (_initialize_symfile): Likewise.
1084 * symtab.c (_initialize_symtab): Likewise.
1085 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1086 * top.c (init_main): Likewise.
1087 * tracefile-tfile.c (tfile_target_info): Likewise.
1088 * tracepoint.c (_initialize_tracepoint): Likewise.
1089 * tui/tui-win.c (_initialize_tui_win): Likewise.
1090 * utils.c (add_internal_problem_command): Likewise.
1091 * valprint.c (value_print_option_defs): Likewise.
1093 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1096 * configure.ac: Drop enable-libmcheck support.
1097 * configure, config.in: Rebuild.
1098 * libmcheck.m4: Remove.
1099 * acinclude.m4: Don't include it.
1100 * Makefile.in: Don't distribute it.
1101 * top.c (print_gdb_configuration): Don't mention it.
1103 2019-08-06 Tom Tromey <tom@tromey.com>
1105 * utils.c (set_output_style): Sometimes pass stream to
1107 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1108 * record-btrace.c (btrace_insn_history): Update.
1109 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1111 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1112 Update initializers.
1113 <m_uiout>: New field.
1115 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1116 Remove "uiout" parameter.
1117 (dump_insns): Update.
1118 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1119 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1121 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1123 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1124 (error_in_psymtab_expansion): Likewise.
1125 (lookup_symbol_via_quick_fns): Likewise.
1126 (basic_lookup_transparent_type_quick): Likewise.
1127 (basic_lookup_transparent_type_1): Likewise.
1129 2019-08-06 Tom Tromey <tromey@adacore.com>
1131 * source.c (last_source_error): Now bool.
1132 (print_source_lines_base): Make "noprint" bool. Only open
1133 source file when last_source_visited changes.
1135 2019-08-06 Tom Tromey <tromey@adacore.com>
1137 * annotate.c (annotate_source_line): Use g_source_cache.
1138 * source-cache.c (source_cache::get_plain_source_lines): Change
1139 parameters. Populate m_offset_cache.
1140 (source_cache::ensure): New method.
1141 (source_cache::get_line_charpos): New method.
1142 (extract_lines): Move lower. Change parameters.
1143 (source_cache::get_source_lines): Move lower.
1144 * source-cache.h (class source_cache): Update comment.
1145 <get_line_charpos>: New method.
1146 <get_source_lines>: Update comment.
1147 <clear>: Clear m_offset_cache.
1148 <get_plain_source_lines>: Change parameters.
1149 <ensure>: New method
1150 <m_offset_cache>: New member.
1151 * source.c (forget_cached_source_info_for_objfile): Update.
1152 (info_source_command): Use g_source_cache.
1153 (find_source_lines, open_source_file_with_line_charpos): Remove.
1154 (print_source_lines_base, search_command_helper): Use g_source_cache.
1155 * source.h (open_source_file_with_line_charpos): Don't declare.
1156 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1157 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1160 2019-08-06 Tom Tromey <tromey@adacore.com>
1162 * source-cache.c (source_cache::get_plain_source_lines):
1163 Remove "first_line" and "last_line" parameters.
1164 (source_cache::get_source_lines): Cache plain text.
1165 * source-cache.h (class source_cache)
1166 <get_plain_source_lines>: Update.
1168 2019-08-06 Tom Tromey <tromey@adacore.com>
1170 * source-cache.c (extract_lines): No longer a method.
1171 Changed type of parameter. Include final newline.
1172 (selftests::extract_lines_test): New function.
1173 (_initialize_source_cache): Likewise.
1174 * source-cache.h (class source_cache)
1175 <extract_lines>: Don't declare.
1177 2019-08-06 Tom Tromey <tromey@adacore.com>
1179 * breakpoint.c (init_breakpoint_sal): Update.
1180 (breakpoint): Update.
1181 * breakpoint.h (struct breakpoint) <filter>: Now a
1184 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1186 * NEWS: Mention dictionary access on blocks.
1187 * python/py-block.c (blpy_getitem): New function.
1188 (block_object_as_mapping): New struct.
1189 (block_object_type): Use new struct for tp_as_mapping field.
1191 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1193 * objfiles.h (objfile): Add a comment describing partial symbols.
1195 2019-08-05 Tom Tromey <tromey@adacore.com>
1197 * compile/compile.c (_initialize_compile): Use _(), not N_().
1198 * thread.c (_initialize_thread): Use _(), not N_().
1199 * stack.c (_initialize_stack): Use _(), not N_().
1200 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1202 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1204 * dwarf2read.c (struct dw2_symtab_iterator):
1205 <want_specific_block>: Remove.
1206 <block_index>: Change type to gdb::optional.
1207 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1208 change type of BLOCK_INDEX parameter to gdb::optional.
1209 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1210 (dw2_lookup_symbol): Don't pass argument for
1211 WANT_SPECIFIC_BLOCK.
1212 (dw2_expand_symtabs_for_function): Don't pass argument for
1213 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1214 (class dw2_debug_names_iterator)
1215 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1216 parameter, change BLOCK_INDEX type to gdb::optional.
1217 <m_want_specific_block>: Remove.
1218 <m_block_index>: Change type to gdb::optional.
1219 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1220 gdb::optional. Re-write in function of gdb::optional.
1221 (dw2_debug_names_lookup_symbol): Don't pass argument for
1222 WANT_SPECIFIC_BLOCK.
1223 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1224 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1227 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1229 * NEWS: Mention changes to "info sources" command.
1231 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1233 * symtab.c (filename_partial_match_opts): New struct type.
1234 (struct output_source_filename_data): New members
1235 regexp, c_regexp, partial_match.
1236 (output_source_filename): Use new members to decide to print file.
1237 (info_sources_option_defs): New variable.
1238 (make_info_sources_options_def_group, print_info_sources_header,
1239 info_sources_command_completer):
1241 (info_sources_command): Read new optional arguments.
1242 (_initialize_symtab): Update info sources help.
1244 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1246 * ada-lang.c (exception_support_info_v0): Renamed from...
1247 (default_exception_support_info): ... this. Create new
1249 (ada_has_this_exception_support): Look up catch_handlers_sym.
1250 (ada_exception_support_info_sniffer): Try v0 after default.
1252 2019-08-01 Tom Tromey <tromey@adacore.com>
1254 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1257 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1259 * s12z-tdep.c: Fix include path for s12z-opc.h.
1261 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1263 * NEWS: Require GNU make 3.82.
1265 2019-07-16 Tom Tromey <tom@tromey.com>
1267 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1270 2019-07-30 Tom Tromey <tromey@adacore.com>
1272 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1274 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1276 * printcmd.c (print_address_symbolic): Print negative offsets.
1277 (build_address_symbolic): Force signed arithmetic when computing
1280 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1282 PR/24474: Add a function to lookup static variables.
1283 * NEWS: Mention this new function.
1284 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1285 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1286 * python/python.c (python_GdbMethods): Add new function.
1288 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1290 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1291 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1292 (objfpy_lookup_static_symbol): New function.
1293 (objfile_object_methods): Add new functions.
1295 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1297 * NEWS: Mention 'set|show print frame-info'. Mention new
1298 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1299 backtrace argument. Mention that python frame filtering code
1300 is now consistent with what 'backtrace' command prints.
1302 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1304 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1306 (print_frame_info_auto, print_frame_info_source_line,
1307 print_frame_info_location, print_frame_info_source_and_location,
1308 print_frame_info_location_and_address, print_frame_info_short_location):
1310 (struct frame_print_options): New member print_frame_info.
1311 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1312 * stack.h (get_user_print_what_frame_info): New declaration.
1313 (frame_show_address): New declaration.
1314 * stack.c (print_frame_arguments_choices): New value 'presence'.
1315 (print_frame_info_auto, print_frame_info_source_line,
1316 print_frame_info_location, print_frame_info_source_and_location,
1317 print_frame_info_location_and_address, print_frame_info_short_location,
1318 print_frame_info_choices, print_frame_info_print_what): New definitions.
1319 (print_frame_args): Only print dots for args if print frame-arguments
1321 (frame_print_option_defs): New element for "frame-info".
1322 (get_user_print_what_frame_info): New function.
1323 (frame_show_address): Make non static. Move comment to stack.h.
1324 (print_frame_info_to_print_what): New function.
1325 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1326 to decide what to print.
1327 (backtrace_command_1): Handle the new print_frame_arguments_presence
1329 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1330 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1331 (py_print_frame): In non-mi mode, use LOCATION as default for
1332 print_what, similarly to frame information printed directly by
1333 backtrace command. Handle frame-info user option in non MI mode.
1335 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1337 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1338 Add case for debugging 32-bit target on 64-bit host. Revise
1341 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1343 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1344 instead of find_function_entry_range_from_pc.
1346 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1348 * stack.c (find_frame_funname): Remove code which preferred
1349 minsym over symtab sym in "certain pathological cases".
1351 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1352 parameter. Change type of "do_demangle" to bool.
1353 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1354 Pass suitable "prefer_sym_over_minsym" flag to
1355 build_address_symbolic(). Don't output "+" for negative offsets.
1356 * printcmd.c (print_address_symbolic): Update invocation of
1357 build_address_symbolic to include a "prefer_sym_over_minsym"
1359 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1360 Restrict cases in which use of minimal symbol is preferred to that
1361 of a found symbol. Update comments.
1363 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1364 for entry pc when entry pc is out of range for that FDE.
1366 2019-07-26 Brian Callahan <bcallah@openbsd.org>
1369 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1372 2019-07-25 Christian Biesinger <cbiesinger@google.com>
1374 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1375 this function's Python signature.
1378 2019-07-24 Christian Biesinger <cbiesinger@google.com>
1380 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1381 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1382 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1383 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1384 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1387 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1389 * h8300-tdep.c (h8300_register_name_common): New.
1390 h8300_register_name): Use h8300_register_name_common.
1391 (h8300s_register_name): Likewise.
1392 (h8300sx_register_name): Likewise.
1393 (h8300h_register_nam): New.
1394 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1397 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1399 * arm-tdep.c (arm_skip_cmse_entry): New function.
1400 (arm_is_sgstubs_section): New function.
1401 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1403 2019-07-22 Tom Tromey <tom@tromey.com>
1405 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1408 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1410 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1413 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1415 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1416 so that GDB doesn't match any msymbols when searching in the
1418 (print_symbol_info): Print using typedef_print or type_print based
1419 on the type of the symbol. Add updated FIXME comment moved from...
1420 (_initialize_symtab): ... move and update FIXME comment to above.
1422 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1424 * NEWS: Mention adding -q option to "info types".
1425 * symtab.c (struct info_types_options): New struct.
1426 (info_types_options_defs): New variable.
1427 (make_info_types_options_def_group): New function.
1428 (info_types_command): Use gdb::option framework to parse options.
1429 (info_types_command_completer): New function.
1430 (_initialize_symtab): Extend the help text on "info types" and
1431 register command completer.
1433 2019-07-21 Christian Biesinger <cbiesinger@google.com>
1435 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1436 (lookup_symbol_in_objfile): Change int to block_enum and add a
1437 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1439 2019-07-20 Christian Biesinger <cbiesinger@google.com>
1441 * MAINTAINERS (Write After Approval): Add self.
1443 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1445 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1446 instruction to the dummy code region.
1448 2019-07-19 Tom Tromey <tromey@adacore.com>
1450 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1451 (ARGSUSED, PARAMS, __func__): Remove rules.
1453 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1455 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1456 * features/arm/arm-with-iwmmxt.c: Remove.
1457 * features/arm/arm-with-iwmmxt.xml: Remove.
1458 * features/arm/arm-with-m-fpa-layout.c: Remove.
1459 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1460 * features/arm/arm-with-m-vfp-d16.c: Remove.
1461 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1462 * features/arm/arm-with-m.c: Remove.
1463 * features/arm/arm-with-m.xml: Remove.
1464 * features/arm/arm-with-neon.c: Remove.
1465 * features/arm/arm-with-neon.xml: Remove.
1466 * features/arm/arm-with-vfpv2.c: Remove.
1467 * features/arm/arm-with-vfpv2.xml: Remove.
1468 * features/arm/arm-with-vfpv3.c: Remove.
1469 * features/arm/arm-with-vfpv3.xml: Remove.
1471 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1473 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1475 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1477 * arch/aarch32.c (aarch32_create_target_description): Create
1478 target descriptions using features.
1479 * arch/arm.c (arm_create_target_description)
1480 (arm_create_mprofile_target_description): Likewise.
1481 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1483 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1485 * Makefile.in: Add new files.
1486 * aarch32-tdep.c: New file.
1487 * aarch32-tdep.h: New file.
1488 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1489 Call aarch32_read_description.
1490 * arch/aarch32.c: New file.
1491 * arch/aarch32.h: New file.
1492 * arch/arm.c (arm_create_target_description)
1493 (arm_create_mprofile_target_description): New function.
1494 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1495 (arm_create_target_description)
1496 (arm_create_mprofile_target_description): New declaration.
1497 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1498 read_description functions.
1499 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1501 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1502 * arm-tdep.c (tdesc_arm_list): New variable.
1503 (arm_register_g_packet_guesses): Call create description functions.
1504 (arm_read_description) (arm_read_mprofile_description): New
1506 * arm-tdep.h (arm_read_description)
1507 (arm_read_mprofile_description): Add declaration.
1508 * configure.tgt: Add new files.
1510 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1512 * top.c (new_ui_command): Open specified terminal just once.
1514 2019-07-18 Tom Tromey <tromey@adacore.com>
1516 * symtab.c (main_name): Constify return type.
1517 * symfile.c (set_initial_language): Update.
1518 * symtab.h (main_name): Constify return type.
1520 2019-07-17 Tom Tromey <tom@tromey.com>
1522 * tui/tui-winsource.c (tui_update_source_window)
1523 (tui_update_source_window_as_is)
1524 (tui_update_source_windows_with_line): Remove return.
1525 * tui/tui-disasm.c (tui_show_disassem)
1526 (tui_show_disassem_and_update_source): Remove return.
1527 * tui/tui.c (tui_reset): Remove return.
1528 * tui/tui-wingeneral.c
1529 (tui_check_and_display_highlight_if_needed): Remove return.
1531 2019-07-17 Tom Tromey <tom@tromey.com>
1533 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1535 2019-07-17 Tom Tromey <tom@tromey.com>
1537 * tui/tui-winsource.h (struct tui_exec_info_window)
1538 (struct tui_source_window_base): Move from tui-data.h.
1539 * tui/tui-winsource.c: Move many method definitions from
1540 elsewhere. Remove "structuring" comments.
1541 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1542 (tui_source_window_base::refresh_window): Move to
1544 * tui/tui-win.c (tui_source_window_base::refresh_all)
1545 (tui_source_window_base::update_tab_width)
1546 (tui_source_window_base::set_new_height)
1547 (tui_source_window_base::do_make_visible_with_new_height): Move to
1549 * tui/tui-source.h: Update.
1550 * tui/tui-source.c (tui_source_window_base::reset): Move to
1552 * tui/tui-disasm.h: Update.
1553 * tui/tui-data.h (struct tui_exec_info_window): Move to
1555 (struct tui_source_window_base): Likewise.
1556 * tui/tui-data.c (tui_source_window_base::clear_detail)
1557 (tui_source_window_base, ~tui_source_window_base): Move to
1560 2019-07-17 Tom Tromey <tom@tromey.com>
1562 * tui/tui-win.c (tui_resize_all)
1563 (tui_source_window_base::update_tab_width)
1564 (tui_adjust_win_heights): Update.
1565 (tui_win_info::make_invisible_and_set_new_height): Rename from
1566 make_invisible_and_set_new_height.
1567 * tui/tui-data.h (struct tui_win_info)
1568 <make_invisible_and_set_new_height>: New method.
1570 2019-07-17 Tom Tromey <tom@tromey.com>
1572 * tui/tui.c: Update.
1573 * tui/tui-source.h (struct tui_source_window): Move from
1575 * tui/tui-layout.c: Update.
1576 * tui/tui-disasm.c: Update.
1577 * tui/tui-data.h (struct tui_source_window): Move to
1580 2019-07-17 Tom Tromey <tom@tromey.com>
1582 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1584 * tui/tui-data.h (struct tui_disasm_window): Move to
1587 2019-07-17 Tom Tromey <tom@tromey.com>
1589 * tui/tui-regs.h (struct tui_data_item_window): Move from
1591 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1592 * tui/tui-data.h (struct tui_data_item_window): Move to
1594 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1596 2019-07-17 Tom Tromey <tom@tromey.com>
1598 * tui/tui.c: Update.
1599 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1600 (tui_cmd_window::max_height): Move to tui-command.c.
1601 * tui/tui-layout.c: Update.
1602 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1603 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1605 * tui/tui-command.h (struct tui_cmd_window): Move from
1607 * tui/tui-command.c: Remove "structuring" comments.
1608 (tui_cmd_window::clear_detail)
1609 (tui_cmd_window::do_make_visible_with_new_height)
1610 (tui_cmd_window::max_height): Move from elsewhere.
1612 2019-07-17 Tom Tromey <tom@tromey.com>
1614 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1616 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1617 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1619 2019-07-17 Tom Tromey <tom@tromey.com>
1621 * tui/tui.c: Update.
1622 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1624 * tui/tui-windata.h: Remove file.
1625 * tui/tui-windata.c: Remove file.
1626 * tui/tui-win.c (tui_data_window::set_new_height)
1627 (tui_data_window::do_make_visible_with_new_height): Move to
1629 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1630 * tui/tui-regs.c: Remove "structuring" comments.
1631 (tui_data_window::first_data_item_displayed)
1632 (tui_data_window::delete_data_content_windows)
1633 (tui_data_window::erase_data_content)
1634 (tui_data_window::display_all_data)
1635 (tui_data_window::refresh_all)
1636 (tui_data_window::do_scroll_vertical)
1637 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1638 (tui_data_window::do_make_visible_with_new_height)
1639 (tui_data_window::refresh_window): Move from elsewhere.
1640 (_initialize_tui_regs): Move to end of file.
1641 * tui/tui-layout.c: Update.
1642 * tui/tui-hooks.c: Update.
1643 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1644 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1646 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1648 2019-07-17 Tom Tromey <tom@tromey.com>
1650 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1653 2019-07-17 Tom Tromey <tom@tromey.com>
1655 * tui/tui-win.c (tui_source_window_base::set_new_height)
1656 (tui_source_window_base::do_make_visible_with_new_height): Use
1657 m_has_locator field directly.
1658 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1660 (struct tui_source_window_base) <has_locator>: Likewise.
1662 2019-07-17 Tom Tromey <tom@tromey.com>
1664 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1666 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1668 * tui/tui-win.c (tui_source_window_base::set_new_height)
1669 (tui_source_window_base::set_new_height)
1670 (make_invisible_and_set_new_height)
1671 (tui_source_window_base::do_make_visible_with_new_height)
1672 (tui_source_window_base::do_make_visible_with_new_height):
1674 * tui/tui-layout.c (show_source_disasm_command, show_data)
1675 (show_source_or_disasm_and_command): Update.
1676 * tui/tui-layout.c (show_layout): Update.
1678 2019-07-17 Tom Tromey <tom@tromey.com>
1680 * tui/tui-layout.c (make_data_window): Remove.
1681 (show_data): Unify creation and re-initialization cases.
1683 2019-07-17 Tom Tromey <tom@tromey.com>
1685 * tui/tui-layout.c (make_source_window, make_disasm_window):
1687 (show_data): Unify creation and re-initialization cases.
1689 2019-07-17 Tom Tromey <tom@tromey.com>
1691 * tui/tui-layout.c (make_command_window): Remove.
1692 (show_source_disasm_command, show_source_or_disasm_and_command):
1693 Unify creation and re-initialization cases.
1695 2019-07-17 Tom Tromey <tom@tromey.com>
1697 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1698 creation and re-initialization cases.
1700 2019-07-17 Tom Tromey <tom@tromey.com>
1702 * tui/tui-regs.c (tui_get_register): Return void.
1704 2019-07-17 Tom Tromey <tom@tromey.com>
1706 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1709 2019-07-17 Tom Tromey <tom@tromey.com>
1711 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1714 2019-07-17 Tom Tromey <tom@tromey.com>
1716 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1717 * tui/tui-regs.c (tui_reg_layout): New function.
1718 (tui_show_registers, tui_reg_command): Use it.
1719 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1720 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1722 (tui_layout_command): Remove.
1724 2019-07-17 Tom Tromey <tom@tromey.com>
1726 * tui/tui-layout.h (tui/tui-layout): Return void.
1727 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1729 2019-07-17 Tom Tromey <tom@tromey.com>
1731 * tui/tui-layout.c (show_source_disasm_command, show_data):
1733 (reset_locator): Remove.
1734 (show_source_or_disasm_and_command): Update.
1736 2019-07-17 Tom Tromey <tom@tromey.com>
1738 * tui/tui-source.c (tui_source_window_base::reset): Remove
1740 * tui/tui-layout.c (make_command_window, make_source_window)
1741 (make_disasm_window, make_data_window)
1742 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1743 (reset_locator, show_source_or_disasm_and_command): Update.
1744 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1746 (struct tui_source_window_base) <reset>: Likewise.
1748 2019-07-17 Tom Tromey <tom@tromey.com>
1750 * tui/tui-layout.c (show_source_disasm_command): Use
1752 (reset_locator): New function.
1753 (init_and_make_win): Remove.
1754 (show_source_or_disasm_and_command): Use reset_locator.
1756 2019-07-17 Tom Tromey <tom@tromey.com>
1758 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1760 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1762 * tui/tui-source.c (tui_source_window_base::reset): New method.
1763 * tui/tui-layout.c (make_command_window): Don't call
1765 (make_source_window, make_disasm_window): Don't call
1766 make_source_or_disasm_window.
1767 (make_data_window): Don't call init_and_make_win. Change calling
1769 (show_source_disasm_command, show_data): Simplify.
1770 (make_source_or_disasm_window): Remove.
1771 (show_source_or_disasm_and_command): Simplify.
1772 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1773 (struct tui_source_window_base) <reset>: Likewise.
1774 <execution_info>: Remove initializer.
1775 * tui/tui-data.c (tui_source_window_base): Initialize
1778 2019-07-17 Tom Tromey <tom@tromey.com>
1780 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1783 2019-07-17 Tom Tromey <tom@tromey.com>
1785 * tui/tui.c (tui_rl_other_window): Update.
1786 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1787 superclass method first. Always iterate over regs_content.
1788 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1790 * tui/tui-win.c (tui_set_focus_command): Update.
1792 2019-07-17 Tom Tromey <tom@tromey.com>
1794 * tui/tui-win.c (tui_set_focus_command): Rename from
1795 tui_set_focus. Call tui_enable.
1796 (tui_set_focus_command): Remove.
1798 2019-07-17 Tom Tromey <tom@tromey.com>
1800 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1802 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1804 (tui_data_window::refresh_window): Call refresh_window on data
1805 items. Always call superclass refresh_window.
1806 (tui_win_info::refresh): Remove.
1807 (tui_source_window_base::refresh_window): Update.
1808 (tui_refresh_all): Update.
1809 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1811 (show_source_or_disasm_and_command): Likewise.
1812 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1813 (struct tui_source_window_base) <refresh>: Likewise.
1815 2019-07-17 Tom Tromey <tom@tromey.com>
1817 * tui/tui-winsource.c (tui_clear_source_content)
1818 (tui_show_source_content): Update.
1819 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1820 whether content is empty.
1821 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1824 2019-07-17 Tom Tromey <tom@tromey.com>
1826 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1828 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1829 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1831 2019-07-17 Tom Tromey <tom@tromey.com>
1833 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1834 (struct tui_data_item_window): Update.
1836 2019-07-17 Tom Tromey <tom@tromey.com>
1838 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1839 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1842 2019-07-17 Tom Tromey <tom@tromey.com>
1844 * tui/tui-winsource.h (tui_erase_source_content)
1845 (tui_clear_source_content): Remove "display_prompt" parameter.
1846 * tui/tui-winsource.c (tui_update_source_window_as_is)
1847 (tui_update_source_windows_with_addr): Update.
1848 (tui_clear_source_content): Remove "display_prompt" parameter.
1849 (tui_erase_source_content): Likewise. Simplify.
1850 (tui_show_source_content): Update.
1851 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1852 * tui/tui-stack.c (tui_show_frame_info): Update.
1853 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1856 2019-07-17 Tom Tromey <tom@tromey.com>
1858 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1859 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1861 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1864 2019-07-17 Tom Tromey <tom@tromey.com>
1866 * tui/tui-winsource.c (tui_clear_source_content)
1867 (tui_show_source_content, tui_show_exec_info_content)
1868 (tui_clear_exec_info_content): Update.
1869 * tui/tui-stack.c (tui_show_locator_content): Update.
1870 (tui_show_frame_info): Update.
1871 * tui/tui-source.h (tui_source_window): Don't declare.
1872 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1873 from tui_source_is_displayed.
1874 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1876 (struct tui_source_window_base) <content_in_use>: New field. Now
1878 (struct tui_source_window) <showing_source_p>: New method.
1879 (TUI_SRC_WIN): Change cast.
1880 * tui/tui-data.c (tui_initialize_static_data): Update.
1882 2019-07-17 Tom Tromey <tom@tromey.com>
1884 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1886 * tui/tui-source.c (tui_source_window::location_matches_p): New
1888 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1890 * tui/tui-data.h (struct tui_source_window_base)
1891 <location_matches_p>: New method.
1892 (struct tui_source_window, struct tui_disasm_window)
1893 <location_matches_p>: Likewise.
1895 2019-07-17 Tom Tromey <tom@tromey.com>
1897 * tui/tui-win.c (tui_set_win_height_command): Rename from
1899 (tui_set_win_height_command): Remove.
1901 2019-07-17 Tom Tromey <tom@tromey.com>
1903 * tui/tui-source.c (tui_source_window): New constructor. Add
1905 (~tui_source_window): New destructor.
1906 (tui_source_window::style_changed): New method.
1907 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1908 (tui_attach_detach_observers): Update.
1909 * tui/tui-data.h (struct tui_source_window): Make constructor not
1910 inline. Add destructor.
1911 (struct tui_source_window) <style_changed>: New method.
1912 <m_observable>: New member.
1914 2019-07-17 Tom Tromey <tom@tromey.com>
1916 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1917 * tui/tui-win.c (tui_resize_all): Fix typo.
1919 2019-07-17 Tom Tromey <tom@tromey.com>
1921 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1922 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1923 (tui_refresh_all): Remove "list" parameter. Use foreach.
1924 * tui/tui-win.c (window_name_completer): Use foreach.
1925 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1926 (update_tab_width): Likewise.
1927 * tui/tui-layout.c (show_layout): Update.
1928 * tui/tui-data.h (class tui_window_iterator): New.
1929 (struct all_tui_windows): New.
1930 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1932 2019-07-17 Tom Tromey <tom@tromey.com>
1934 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1935 parameter. Don't reference globals.
1936 (tui_reg_command): Update.
1938 2019-07-17 Tom Tromey <tom@tromey.com>
1940 * tui/tui-regs.c (tui_show_registers): Simplify.
1942 2019-07-17 Tom Tromey <tom@tromey.com>
1944 * tui/tui-regs.c (tui_show_registers): Update.
1945 (tui_show_register_group): Add win_info parameter.
1947 2019-07-17 Tom Tromey <tom@tromey.com>
1949 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1950 Rename from tui_display_reg_element_at_line.
1951 (tui_data_window::display_registers_from_line): Update.
1952 * tui/tui-data.h (struct tui_data_window)
1953 <display_reg_element_at_line>: New method.
1955 2019-07-17 Tom Tromey <tom@tromey.com>
1957 * tui/tui-regs.h (tui_display_registers_from)
1958 (tui_display_registers_from_line): Don't declare.
1959 * tui/tui-windata.c (tui_data_window::display_all_data)
1960 (tui_data_window::refresh_all)
1961 (tui_data_window::do_scroll_vertical): Update.
1962 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1963 from tui_display_registers_from.
1964 (tui_display_reg_element_at_line): Update.
1965 (tui_data_window::display_registers_from_line): Rename from
1966 tui_display_registers_from_line.
1967 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1968 display_registers_from_line>: New methods.
1970 2019-07-17 Tom Tromey <tom@tromey.com>
1972 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1973 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1974 from tui_erase_data_content.
1975 (tui_data_window::display_all_data)
1976 (tui_data_window::refresh_all)
1977 (tui_data_window::do_scroll_vertical): Update.
1978 * tui/tui-regs.c (tui_show_registers): Update.
1979 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1982 2019-07-17 Tom Tromey <tom@tromey.com>
1984 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1987 (tui_data_window::delete_data_content_windows): Rename from
1988 tui_delete_data_content_windows.
1989 (tui_data_window::display_all_data)
1990 (tui_data_window::do_scroll_vertical): Update.
1991 * tui/tui-data.h (struct tui_data_window)
1992 <delete_data_content_windows>: New method.
1994 2019-07-17 Tom Tromey <tom@tromey.com>
1996 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1997 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1999 2019-07-17 Tom Tromey <tom@tromey.com>
2001 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2002 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2003 from tui_display_all_data.
2005 (tui_data_window::do_make_visible_with_new_height): Update.
2006 * tui/tui-regs.c (tui_show_registers): Update.
2007 * tui/tui-layout.c (tui_set_layout): Update.
2008 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2011 2019-07-17 Tom Tromey <tom@tromey.com>
2013 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2014 * tui/tui-windata.c (tui_display_data_from): Remove.
2015 (tui_data_window::refresh_all): Update.
2017 2019-07-17 Tom Tromey <tom@tromey.com>
2019 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2020 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2021 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2022 tui_display_registers_from_line.
2023 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2024 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2025 "force_display" parameter.
2027 2019-07-17 Tom Tromey <tom@tromey.com>
2029 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2031 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2032 Rename from tui_first_reg_element_no_inline.
2033 (tui_display_reg_element_at_line)
2034 (tui_display_registers_from_line): Update.
2035 * tui/tui-data.h (struct tui_data_window)
2036 <first_reg_element_no_inline>: New method.
2038 2019-07-17 Tom Tromey <tom@tromey.com>
2040 * tui/tui-windata.c (tui_display_data_from)
2041 (tui_data_window::do_scroll_vertical): Update.
2042 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2043 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2044 Rename from tui_line_from_reg_element_no.
2045 (tui_display_registers_from_line): Update.
2046 * tui/tui-data.h (struct tui_data_window)
2047 <line_from_reg_element_no>: New method.
2049 2019-07-17 Tom Tromey <tom@tromey.com>
2051 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2052 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2053 tui_last_regs_line_no.
2054 (tui_display_reg_element_at_line)
2055 (tui_display_registers_from_line): Update.
2056 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2059 2019-07-17 Tom Tromey <tom@tromey.com>
2062 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2063 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2064 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2065 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2066 (tui_update_breakpoint_info): Likewise.
2067 * tui/tui-hooks.c (tui_event_create_breakpoint)
2068 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2071 2019-07-17 Tom Tromey <tom@tromey.com>
2073 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2075 2019-07-17 Tom Tromey <tom@tromey.com>
2077 * tui/tui-winsource.c (tui_update_source_window_as_is)
2078 (tui_update_source_windows_with_addr): Update.
2079 * tui/tui-source.h (tui_set_source_content)
2080 (tui_show_symtab_source): Add "win_info" parameter.
2081 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2083 (tui_show_symtab_source): Likewise.
2085 2019-07-17 Tom Tromey <tom@tromey.com>
2087 * tui/tui-wingeneral.c
2088 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2090 2019-07-17 Tom Tromey <tom@tromey.com>
2092 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2093 (struct tui_cmd_window) <can_scroll>: New method.
2094 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2097 2019-07-17 Tom Tromey <tromey@adacore.com>
2099 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2100 do_field_signed>: Rename. Change type of "value".
2101 * ui-out.c (ui_out::field_signed): Rename from field_int.
2102 Change type of "value".
2103 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2105 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2106 do_field_int. Change type of "value".
2107 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2108 do_field_int. Change type of "value".
2109 * tracepoint.c (trace_status_mi, tfind_1)
2110 (print_one_static_tracepoint_marker): Update.
2111 * thread.c (print_thread_info_1, print_selected_thread_frame):
2113 * stack.c (print_frame, print_frame_info): Update.
2114 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2116 * source.c (print_source_lines_base): Update.
2117 * skip.c (info_skip_command): Update.
2118 * record-btrace.c (btrace_ui_out_decode_error)
2119 (btrace_call_history_src_line): Update.
2120 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2122 * progspace.c (print_program_space): Update.
2123 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2124 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2125 do_field_int. Change type of "value".
2126 * mi/mi-out.c (mi_ui_out::do_table_begin)
2127 (mi_ui_out::do_table_header): Update.
2128 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2130 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2131 (mi_cmd_data_list_changed_registers, output_register)
2132 (mi_cmd_data_read_memory, mi_load_progress)
2133 (mi_cmd_trace_frame_collected): Update.
2134 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2136 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2137 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2138 (mi_cmd_var_list_children, varobj_update_one): Update.
2139 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2140 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2141 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2142 * inferior.c (print_inferior): Update.
2143 * gdb_bfd.c (print_one_bfd): Update.
2144 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2146 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2147 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2148 do_field_int. Change type of "value".
2149 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2150 do_field_int. Change type of "value".
2151 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2152 (print_one_breakpoint_location, print_it_catch_fork)
2153 (print_one_catch_fork, print_it_catch_vfork)
2154 (print_one_catch_vfork, print_it_catch_solib)
2155 (print_it_catch_exec, print_it_ranged_breakpoint)
2156 (print_mention_watchpoint, print_mention_masked_watchpoint)
2157 (bkpt_print_it, update_static_tracepoint): Update.
2158 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2159 * break-catch-syscall.c (print_it_catch_syscall): Update.
2160 * ada-tasks.c (print_ada_task_info): Update.
2161 * ada-lang.c (print_it_exception, print_mention_exception):
2164 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2166 PR breakpoints/24541
2167 * gdbarch.c: Regenerate.
2168 * gdbarch.h: Regenerate.
2169 * gdbarch.sh: Adjust return type and parameter types for
2170 'stap_adjust_register'.
2171 (i386_stap_adjust_register): Adjust signature and return new
2173 * stap-probe.c (stap_parse_register_operand): Adjust use of
2174 'gdbarch_stap_adjust_register'.
2176 2019-07-17 Tom Tromey <tromey@adacore.com>
2178 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2180 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2182 (struct s390_process_info): Add initializers.
2183 (s390_add_process): Use new.
2184 (s390_linux_nat_target::low_forget_process): Use delete.
2185 (s390_linux_nat_target::low_new_fork)
2186 (s390_linux_nat_target::stopped_by_watchpoint)
2187 (s390_linux_nat_target::low_prepare_to_resume)
2188 (s390_linux_nat_target::insert_watchpoint)
2189 (s390_linux_nat_target::insert_hw_breakpoint)
2190 (s390_linux_nat_target::remove_watchpoint)
2191 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2193 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2195 * aarch64-fbsd-nat.c: Include regcache.h.
2196 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2198 (aarch64_fbsd_nat_target::fetch_registers)
2199 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2201 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2203 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2205 * fbsd-nat.c: Include gdbarch.h.
2207 2019-07-15 Tom Tromey <tromey@adacore.com>
2209 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2211 2019-07-15 Tom Tromey <tromey@adacore.com>
2213 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2214 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2215 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2216 * cli-out.c (cli_ui_out::do_field_int): New method.
2217 * ui-out.c (ui_out::field_unsigned): New method.
2218 * symfile.c (generic_load): Use field_unsigned.
2219 (print_transfer_performance): Likewise.
2220 * record-btrace.c (ui_out_field_uint): Remove.
2221 (btrace_call_history_insn_range, btrace_call_history): Use
2223 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2225 * ui-out.h (class ui_out) <field_unsigned>: New method.
2226 <do_field_unsigned>: Likewise.
2228 2019-07-15 Tom Tromey <tromey@adacore.com>
2230 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2231 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2232 * target.c (flash_erase_command): Use field_string.
2233 * infrun.c (print_signal_received_reason): Use field_string.
2234 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2235 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2237 * ada-tasks.c (print_ada_task_info): Use field_string.
2239 2019-07-15 Tom Tromey <tromey@adacore.com>
2241 * target.c (flash_erase_command): Use field_core_addr.
2242 * symfile.c (generic_load): Use field_core_addr.
2243 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2244 Use field_core_addr.
2245 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2248 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2250 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2251 value if its desired type is smaller than a CORE_ADDR and signed.
2253 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2255 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2256 of changes to field names, and use new is_reference field to
2257 decide if a property is a reference or not.
2258 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2260 (struct dwarf2_property_baton): Update header comment, rename
2261 'referenced_type' to 'property_type' and update comments.
2262 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2263 default property type, store in property baton, update to take
2264 accound of renamed field.
2265 (read_func_scope): Update call to attr_to_dynamic_prop.
2266 (read_array_type): Likewise.
2267 (dwarf2_per_cu_addr_sized_int_type): New function.
2268 (read_subrange_index_type): Move type finding code to
2269 dwarf2_per_cu_addr_sized_int_type.
2270 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2271 (dwarf2_per_cu_addr_type): New function.
2272 (set_die_type): Update calls to attr_to_dynamic_prop.
2274 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2276 * dwarf2read.c (read_subrange_index_type): New function.
2277 (read_subrange_type): Move code into new function and call it.
2278 * gdbtypes.c (create_range_type): Add some asserts.
2280 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2282 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2283 update return statements.
2284 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2285 declaration, and update comment to match.
2286 * gdbtypes.c (resolve_dynamic_array): Update call to
2287 dwarf2_evaluate_property to match new return type.
2289 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2291 * valarith.c (value_subscripted_rvalue): Change lowerbound
2292 parameter type from int to LONGEST.
2293 * value.h (value_subscripted_rvalue): Likewise in declaration.
2295 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2297 * cli/cli-utils.c (info_print_command_completer): New function.
2298 * cli/cli-utils.h: Add 'completer.h' include, and forward
2299 declaration for 'struct cmd_list_element'.
2300 (info_print_command_completer): Declare.
2301 * stack.c (_initialize_stack): Add completer for 'info locals' and
2303 * symtab.c (_initialize_symtab): Add completer for 'info
2304 variables' and 'info functions'.
2305 * NEWS: Mention completion for additional info commands.
2307 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2309 * cli/cli-utils.c (extract_info_print_args): Delete.
2310 (extract_arg_maybe_quoted): Delete.
2311 (info_print_options_defs): New variable.
2312 (make_info_print_options_def_group): New function.
2313 (extract_info_print_options): Define new function.
2314 * cli/cli-utils.h (extract_info_print_args): Delete.
2315 (struct info_print_options): New structure.
2316 (extract_info_print_options): Declare new function.
2317 * stack.c (info_locals_command): Update to use new
2318 extract_info_print_options, also add a header comment.
2319 (info_args_command): Likewise.
2320 * symtab.c (info_variables_command): Likewise.
2321 (info_functions_command): Likewise.
2323 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2325 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2326 to extract string arguments.
2327 * common/common-utils.c (extract_string_maybe_quoted): New function.
2328 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2330 2019-07-11 Tom Tromey <tromey@adacore.com>
2332 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2333 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2334 * top.h (gdbinit): Don't declare.
2335 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2337 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2338 * top.c (gdb_init): Don't call init_cli_cmds.
2340 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2342 2019-07-11 Tom Tromey <tromey@adacore.com>
2344 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2345 after it has been moved.
2347 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2349 * valops.c (value_must_coerce_to_target): Change return type to
2351 * value.h (value_must_coerce_to_target): Likewise.
2353 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
2355 * breakpoint.c (is_hardware_watchpoint): Remove
2356 forward-declaration.
2357 (is_masked_watchpoint): Change return type to bool.
2358 (is_tracepoint): Likewise.
2359 (is_breakpoint): Likewise.
2360 (is_hardware_watchpoint): Likewise.
2361 (is_watchpoint): Likewise.
2362 (is_no_memory_software_watchpoint): Likewise.
2363 (is_catchpoint): Likewise.
2364 (breakpoint_1): Make FILTER parameter's return type bool.
2365 is_masked_watchpoint): Change return type to bool.
2366 (save_breakpoints): Make FILTER parameter's return type bool.
2367 * breakpoint.h (is_breakpoint): Change return type to bool.
2368 (is_watchpoint): Likewise.
2369 (is_catchpoint): Likewise.
2370 (is_tracepoint): Likewise.
2372 2019-07-10 Tom Tromey <tom@tromey.com>
2374 * defs.h: Don't include gdbarch.h.
2375 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2376 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2377 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2378 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2379 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2380 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2381 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2382 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2383 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2384 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2385 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2386 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2387 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2388 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2389 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2390 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2391 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2392 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2393 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2394 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2395 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2396 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2397 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2398 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2399 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2400 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2401 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2403 2019-07-10 Tom Tromey <tromey@adacore.com>
2405 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2406 * breakpoint.c (init_ada_exception_breakpoint): Register as
2408 (print_one_breakpoint_location, print_one_breakpoint): Use
2409 is_ada_exception_catchpoint.
2410 * ada-lang.c (class ada_catchpoint_location): Pass
2411 bp_loc_software_breakpoint to bp_location constructor.
2412 (is_ada_exception_catchpoint): New function.
2414 2019-07-10 Tom Tromey <tromey@adacore.com>
2416 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2418 (struct arm_exidx_entry): New method operator<.
2419 (struct arm_exidx_data) <section_maps>: Change type.
2420 (arm_exidx_data_free): Remove.
2421 (arm_exidx_data_key): Change type. Move lower.
2422 (arm_exidx_new_objfile): Update.
2423 (arm_compare_exidx_entries): Remove.
2424 (arm_find_exidx_entry, _initialize_arm_tdep)
2426 2019-07-10 Tom Tromey <tromey@adacore.com>
2428 * solib-spu.c (ocl_program_data_key): Change type.
2429 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2432 2019-07-10 Tom Tromey <tromey@adacore.com>
2434 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2435 (struct solib_aix_inferior_data) <library_list>: Change type.
2436 (solib_aix_inferior_data_handle): Change type.
2437 (get_solib_aix_inferior_data): Update.
2438 (solib_aix_free_library_list): Remove.
2439 (library_list_start_library): Update.
2440 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2442 (solib_aix_get_library_list)
2443 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2444 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2446 2019-07-10 Tom Tromey <tromey@adacore.com>
2448 * solib-dsbt.c (struct dsbt_info): Add initializers.
2449 (solib_dsbt_pspace_data): Change type.
2450 (dsbt_pspace_data_cleanup): Remove.
2451 (get_dsbt_info, _initialize_dsbt_solib): Update.
2453 2019-07-10 Tom Tromey <tromey@adacore.com>
2455 * spu-tdep.c (spu_overlay_data): Change type.
2456 (spu_get_overlay_table, spu_overlay_new_objfile)
2457 (_initialize_spu_tdep): Update.
2459 2019-07-10 Tom Tromey <tromey@adacore.com>
2461 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2463 (dbx_objfile_data_key): Change type and declare later.
2464 (DBX_SYMFILE_INFO): Rewrite.
2465 * dbxread.c (dbx_objfile_data_key): Change type.
2466 (dbx_symfile_init): Update.
2467 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2468 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2469 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2471 2019-07-10 Tom Tromey <tromey@adacore.com>
2473 * jit.c (jit_program_space_key): Change type. Move lower.
2474 (get_jit_program_space_data): Update.
2475 (jit_program_space_data_cleanup): Remove.
2476 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2478 (struct jit_program_space_data): Add initializers.
2480 2019-07-10 Tom Tromey <tromey@adacore.com>
2482 * solib-darwin.c (struct darwin_info): Add initializers.
2483 (solib_darwin_pspace_data): Change type.
2484 (darwin_pspace_data_cleanup): Remove.
2485 (get_darwin_info, _initialize_darwin_solib): Update.
2487 2019-07-10 Tom Tromey <tromey@adacore.com>
2489 * remote-sim.c (struct sim_inferior_data): Add initializers,
2490 constructor, and destructor.
2491 (sim_inferior_data_key): Change type. Move lower.
2492 (check_for_duplicate_sim_descriptor): Update.
2493 (get_sim_inferior_data): Use new. Update.
2494 (~sim_inferior_data_cleanup): Rename from
2495 sim_inferior_data_cleanup. Simplify.
2496 (gdbsim_close_inferior, simulator_command)
2497 (sim_command_completer, _initialize_remote_sim): Update.
2498 (next_pid, INITIAL_PID): Move earlier.
2500 2019-07-10 Tom Tromey <tromey@adacore.com>
2502 * python/python-internal.h (create_thread_object): Return
2504 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2505 * python/py-inferior.c (struct threadlist_entry): Add
2507 <thread_obj>: Now a gdbpy_ref.
2508 (thread_to_thread_object): Update.
2509 (add_thread_object): Use new.
2510 (delete_thread_object): Use delete.
2511 (infpy_threads): Update.
2512 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2515 2019-07-10 Tom Tromey <tromey@adacore.com>
2517 * valops.c (value_cast): Specialize error message for Ada.
2519 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2521 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2523 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2525 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2526 bpstat_should_step): Return bool, adjust comments.
2527 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2528 bpstat_should_step): Likewise.
2530 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2532 * features/Makefile: Use feature target descriptions for Arm.
2533 * features/arm/arm-core.c: Generate new file.
2534 * features/arm/arm-fpa.c: Likewise.
2535 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2536 * features/arm/arm-m-profile.c: Likewise.
2537 * features/arm/arm-vfpv2.c: Likewise.
2538 * features/arm/arm-vfpv3.c: Likewise.
2539 * features/arm/xscale-iwmmxt.c: Likewise.
2540 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2542 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2544 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2547 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2549 * features/aarch64-pauth.c: Regenerate.
2551 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2553 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2555 (bpstat_what): Use false instead of 0.
2557 2019-07-09 Pedro Alves <palves@redhat.com>
2559 * break-catch-throw.c (is_exception_catchpoint): New.
2560 * breakpoint.c (print_one_breakpoint_location): New parameter
2561 'raw_loc'. Handle it. Use
2562 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2563 looking at the breakpoint's type.
2564 (print_one_breakpoint): If handling "maint info breakpoints", also
2565 print locations of exception catchpoints.
2566 * breakpoint.h (is_exception_catchpoint): Declare.
2568 2019-07-09 Pedro Alves <palves@redhat.com>
2570 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2572 (allocate_location_exception_catchpoint): New.
2573 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2574 (initialize_throw_catchpoint_ops): Install
2575 allocate_location_exception_catchpoint as allocate_location
2577 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2578 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2580 (breakpoint_address_is_meaningful): Delete.
2581 (bl_address_is_meaningful): New.
2582 (breakpoint_locations_match): Adjust comment.
2583 (bp_location_from_bp_type): New, factored out of...
2584 (bp_location::bp_location(breakpoint *)): ... this.
2585 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2587 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2588 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2589 breakpoint_address_is_meaningful.
2590 (bp_locations_compare): Adjust comment.
2591 (update_global_location_list): Use bl_address_is_meaningful
2592 instead of breakpoint_address_is_meaningful.
2593 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2595 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2596 * python/py-breakpoint.c (bppy_get_location): No longer check
2597 whether location is null.
2599 2019-07-09 Pedro Alves <palves@redhat.com>
2602 * breakpoint.c (print_one_breakpoint_location): Remove
2603 single-location assert.
2605 2019-07-09 Tom Tromey <tom@tromey.com>
2607 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2608 * configure: Rebuild.
2609 * configure.ac: Change common to gdbsupport.
2610 * gdbsupport: Rename from common.
2611 * acinclude.m4: Change common to gdbsupport.
2612 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2613 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2615 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2616 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2617 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2618 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2619 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2620 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2621 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2622 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2623 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2624 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2625 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2626 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2627 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2628 coff-pe-read.c, command.h, compile/compile-c-support.c,
2629 compile/compile-c.h, compile/compile-cplus-symbols.c,
2630 compile/compile-cplus-types.c, compile/compile-cplus.h,
2631 compile/compile-loc2c.c, compile/compile.c, completer.c,
2632 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2633 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2634 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2635 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2636 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2637 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2638 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2639 features/aarch64-core.c, features/aarch64-fpu.c,
2640 features/aarch64-pauth.c, features/aarch64-sve.c,
2641 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2642 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2643 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2644 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2645 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2646 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2647 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2648 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2649 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2650 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2651 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2652 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2653 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2654 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2655 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2656 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2657 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2658 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2659 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2660 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2661 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2662 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2663 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2664 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2665 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2666 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2667 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2668 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2669 minsyms.c, mips-linux-tdep.c, namespace.h,
2670 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2671 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2672 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2673 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2674 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2675 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2676 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2677 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2678 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2679 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2680 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2681 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2682 procfs.c, producer.c, progspace.h, psymtab.h,
2683 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2684 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2685 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2686 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2687 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2688 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2689 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2690 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2691 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2692 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2693 target-memory.c, target.c, target.h, target/waitstatus.c,
2694 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2695 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2696 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2697 unittests/array-view-selftests.c,
2698 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2699 unittests/common-utils-selftests.c,
2700 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2701 unittests/format_pieces-selftests.c,
2702 unittests/function-view-selftests.c,
2703 unittests/lookup_name_info-selftests.c,
2704 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2705 unittests/mkdir-recursive-selftests.c,
2706 unittests/observable-selftests.c,
2707 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2708 unittests/parse-connection-spec-selftests.c,
2709 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2710 unittests/scoped_fd-selftests.c,
2711 unittests/scoped_mmap-selftests.c,
2712 unittests/scoped_restore-selftests.c,
2713 unittests/string_view-selftests.c, unittests/style-selftests.c,
2714 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2715 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2716 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2717 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2718 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2719 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2721 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2723 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2725 (decode_digits_ordinary): Set explicit_line field in sal.
2726 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2727 symtab_and_line that was set on an explicit line number in
2728 assembler code. Do always update the recorded symtab and line if
2729 we do skip the prologue.
2731 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2733 * breakpoint.c (set_breakpoint_location_function): Remove
2734 explicit_loc parameter.
2735 (momentary_breakpoint_from_master): Update call to
2736 set_breakpoint_location_function.
2737 (add_location_to_breakpoint): Likewise.
2739 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2741 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2742 required features based on default bfd type when no specific bfd
2745 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2747 * NEWS: Mention that GDB printf and eval commands can now print
2748 C-style and Ada-style convenience var strings without
2749 calling the inferior.
2750 * printcmd.c (printf_c_string): Locally print GDB internal var
2751 instead of transiting via the inferior.
2752 (printf_wide_c_string): Likewise.
2754 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2756 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2758 2019-07-04 Tom Tromey <tom@tromey.com>
2761 * tui/tui-winsource.c (tui_clear_source_content): Update.
2762 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2763 (tui_update_breakpoint_info): Update.
2764 (tui_set_exec_info_content): Update.
2765 * tui/tui-source.c (tui_set_source_content_nil): Update.
2766 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2768 * tui/tui-data.h (enum tui_bp_flag): New.
2769 (tui_bp_flags): New enum flags type.
2770 (struct tui_source_element) <break_mode>: Change type. Rename
2772 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2773 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2775 * tui/tui-winsource.h: Fix comment.
2777 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2779 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2780 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2781 (store_fpregs_to_thread)
2782 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2783 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2784 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2785 (IWMMXT_REGS_SIZE): Add define.
2786 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2787 (fetch_vfp_regs, store_vfp_regs)
2788 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2789 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2791 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2793 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2795 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2796 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2797 (ARM_INT_REGISTER_SIZE): ...to this.
2798 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2799 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2800 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2801 (arm_linux_collect_gregset, supply_nwfpe_register)
2802 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2804 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2805 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2806 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2807 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2808 (arm_return_in_memory, arm_store_return_value)
2809 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2810 (arm_record_ld_st_multiple): Likewise.
2811 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2812 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2814 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2816 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2817 AARCH64_DISPLACED_MODIFIED_INSNS.
2818 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2819 (aarch64_displaced_step_copy_insn): Likewise.
2820 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2821 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2822 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2823 ARM_DISPLACED_MODIFIED_INSNS.
2824 * arm-tdep.c (arm_gdbarch_init): Likewise.
2825 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2826 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2827 (struct arm_displaced_step_closure): Use
2828 ARM_DISPLACED_MODIFIED_INSNS.
2830 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2832 * features/Makefile: Remove unused xml files.
2833 * features/aarch64.xml: Remove.
2834 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2835 * features/i386/amd64-avx-avx512.xml: Remove.
2836 * features/i386/amd64-avx-linux.xml: Remove.
2837 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2838 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2839 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2840 * features/i386/amd64-avx-mpx.xml: Remove.
2841 * features/i386/amd64-avx.xml: Remove.
2842 * features/i386/amd64-linux.xml: Remove.
2843 * features/i386/amd64-mpx-linux.xml: Remove.
2844 * features/i386/amd64-mpx.xml: Remove.
2845 * features/i386/amd64.xml: Remove.
2846 * features/i386/i386-avx-avx512-linux.xml: Remove.
2847 * features/i386/i386-avx-avx512.xml: Remove.
2848 * features/i386/i386-avx-linux.xml: Remove.
2849 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2850 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2851 * features/i386/i386-avx-mpx-linux.xml: Remove.
2852 * features/i386/i386-avx-mpx.xml: Remove.
2853 * features/i386/i386-avx.xml: Remove.
2854 * features/i386/i386-linux.xml: Remove.
2855 * features/i386/i386-mmx-linux.xml: Remove.
2856 * features/i386/i386-mmx.xml: Remove.
2857 * features/i386/i386-mpx-linux.xml: Remove.
2858 * features/i386/i386-mpx.xml: Remove.
2859 * features/i386/i386.xml: Remove.
2860 * features/i386/x32-avx-avx512-linux.xml: Remove.
2861 * features/i386/x32-avx-linux.xml: Remove.
2862 * features/i386/x32-linux.xml: Remove.
2864 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2866 * regformats/aarch64.dat: Remove.
2867 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2868 * regformats/i386/amd64-avx-linux.dat: Remove.
2869 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2870 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2871 * regformats/i386/amd64-linux.dat: Remove.
2872 * regformats/i386/amd64-mpx-linux.dat: Remove.
2873 * regformats/i386/amd64.dat: Remove.
2874 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2875 * regformats/i386/i386-avx-linux.dat: Remove.
2876 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2877 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2878 * regformats/i386/i386-linux.dat: Remove.
2879 * regformats/i386/i386-mmx-linux.dat: Remove.
2880 * regformats/i386/i386-mpx-linux.dat: Remove.
2881 * regformats/i386/i386.dat: Remove.
2882 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2883 * regformats/i386/x32-avx-linux.dat: Remove.
2884 * regformats/i386/x32-linux.dat: Remove.
2886 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2888 * aarch64-tdep.c: Remove xml self tests.
2889 * amd64-linux-tdep.c: Likewise.
2890 * amd64-tdep.c: Likewise.
2891 * i386-linux-tdep.c: Likewise.
2892 * i386-tdep.c: Likewise.
2894 2019-07-03 Pedro Alves <palves@redhat.com>
2897 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2898 (pipe_cmd_option_defs): New.
2899 (make_pipe_cmd_options_def_group): New.
2900 (pipe_command): Use gdb::option::process_options.
2901 (pipe_command_completer): New function.
2902 (_initialize_cli_cmds): Install completer for "pipe" command.
2904 2019-07-03 Pedro Alves <palves@redhat.com>
2906 * cli/cli-option.c (union option_value) <string>: New field.
2907 (struct option_def_and_value): Add ctor, move ctor, dtor and
2908 use DISABLE_COPY_AND_ASSIGN.
2909 (option_def_and_value::clear_value): New.
2910 (parse_option, save_option_value_in_ctx, get_val_type_str)
2911 (add_setshow_cmds_for_options): Handle var_string.
2912 * cli-option.h (union option_def::var_address) <string>: New
2914 (struct string_option_def): New.
2915 * maint-test-options.c (struct test_options_opts): Add default
2916 ctor and use DISABLE_COPY_AND_ASSIGN.
2917 <string_opt>: New field.
2918 (test_options_opts::~test_options_opts): New.
2919 (test_options_opts::dump): Also dump "-string".
2920 (test_options_option_defs): Install "string.
2922 2019-07-03 Pedro Alves <palves@redhat.com>
2924 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2925 option_value with a null enumeration.
2926 (complete_options): Save the option values in the context.
2927 (save_option_value_in_ctx): New, factored out from ...
2928 (process_options): ... here.
2929 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2931 * maint-test-options.c (test_options_opts::dump): New, factored
2933 (maintenance_test_options_command_mode): ... here.
2934 (maintenance_test_options_command_completion_result): Delete.
2935 (maintenance_test_options_command_completion_text): Update
2937 (maintenance_show_test_options_completion_result): Change
2938 prototype. Just print
2939 maintenance_test_options_command_completion_text.
2940 (save_completion_result): New.
2941 (maintenance_test_options_completer_mode): Pass options context to
2942 complete_options, and then save a dump.
2943 (_initialize_maint_test_options): Use add_cmd to install "maint
2944 show test-options-completion-result".
2946 2019-07-03 Pedro Alves <palves@redhat.com>
2948 * NEWS (New commands): Mention "with" and "maint with".
2949 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2950 (with_command, with_command_completer): New.
2951 (pipe_command): Adjust to new repeat_previous
2953 (_initialize_cli_cmds): Install the "with" command and its "w"
2955 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2957 * cli/cli-setshow.c (parse_cli_var_uinteger)
2958 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2959 argument strings for all var_types.
2960 (get_setshow_command_value_string): New, factored out from ...
2961 (do_show_command): ... this.
2962 * cli/cli-setshow.h: Include <string>.
2963 (get_setshow_command_value_string): Declare.
2964 * command.h (repeat_previous): Now returns const char *. Adjust
2966 * maint.c: Include "cli/cli-cmds.h".
2967 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2968 (_initialize_maint_cmds): Register the "maintenance with" command.
2969 * top.c (repeat_previous): Move bits from pipe_command here:
2970 Return the saved command line, if any; error out if there's no
2971 command to relaunch.
2973 2019-07-03 Pedro Alves <palves@redhat.com>
2975 * NEWS (New commands): Mention "maint set/show test-settings"
2976 instead of "maint test-settings".
2977 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2978 (maintenance_test_settings_set_list): Rename to ...
2979 (maintenance_set_test_settings_list): ... this.
2980 (maintenance_test_settings_show_list): Rename to ...
2981 (maintenance_show_test_settings_list): ... this.
2982 (maintenance_test_settings_cmd): Delete.
2983 (maintenance_test_settings_set_cmd): ...
2984 (maintenance_set_test_settings_cmd): ... this.
2985 (maintenance_test_settings_show_cmd): ...
2986 (maintenance_show_test_settings_cmd): ... this.
2987 (maintenance_test_settings_show_value_cmd):
2988 (maintenance_show_test_settings_value_cmd): ... this.
2989 (_initialize_maint_test_settings): No longer install the "maint
2990 test-settings" prefix command. Rename "maint test-settings set"
2991 to "maint set test-settings", and "maint test-settings show" to
2992 "maint show test-settings". Adjust all subcommands.
2994 2019-07-03 Pedro Alves <palves@redhat.com>
2996 * maint-test-settings.c: Fix file's intro comment. Replace all
2997 references to "test-options" with references to "test-settings",
3000 2019-07-03 Pedro Alves <palves@redhat.com>
3002 * maint-test-settings.c (maintenance_test_settings_xxx)
3003 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3005 (maintenance_test_settings_enums): Use them.
3006 (maintenance_test_settings_enum): Default to
3007 maintenance_test_settings_xxx.
3008 (_initialize_maint_test_settings): Initialize
3009 MAINTENANCE_TEST_SETTINGS_FILENAME.
3011 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3013 * breakpoint.h (remove_breakpoints_inf): Change return type to
3014 void, move function documentation here.
3015 * breakpoint.c (remove_breakpoints_inf): Change return type to
3016 void, move function documentation to header.
3018 2019-07-02 Pedro Alves <palves@redhat.com>
3020 * NEWS (Completion improvements): Mention "info threads".
3021 * thread.c (struct info_threads_opts, info_threads_option_defs)
3022 (make_info_threads_options_def_group): New.
3023 (info_threads_command): Use gdb::option::process_options.
3024 (info_threads_command_completer): New.
3025 (_initialize_thread): Use gdb::option::build_help to build the
3026 help text for "info threads".
3028 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3030 * defs.h (generic_load): Move from here...
3031 * symfile.h (generic_load): ... to here. Rename name parameter
3033 * symfile.c (generic_load): Add comment.
3035 2019-07-01 Tom Tromey <tromey@adacore.com>
3038 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3039 declaration of without_params. Fix formatting.
3041 2019-07-01 Tom Tromey <tromey@adacore.com>
3043 * ada-exp.y (find_primitive_type): Update.
3044 * ada-lang.h (ada_lookup_symbol): Update.
3045 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3047 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3049 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3051 PR breakpoints/24541
3052 * gdbarch.c: Regenerate.
3053 * gdbarch.h: Regenerate.
3054 * gdbarch.sh: Add 'stap_adjust_register'.
3055 * i386-tdep.c: Include '<unordered_set>'.
3056 (i386_stap_adjust_register): New function.
3057 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3058 * stap-probe.c (stap_parse_register_operand): Call
3059 'gdbarch_stap_adjust_register'.
3061 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3064 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3065 * python/python.c (do_start_initialization): Use 'xmalloc'
3066 instead of 'PyMem_Malloc'.
3068 2019-06-28 Tom Tromey <tromey@adacore.com>
3070 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3073 2019-06-27 Tom Tromey <tromey@adacore.com>
3075 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3077 (arm_find_mapping_symbol, arm_record_special_symbol)
3078 (_initialize_arm_tdep): Update.
3079 (arm_objfile_data_free): Remove.
3081 2019-06-27 Tom Tromey <tromey@adacore.com>
3083 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3084 to cp_print_static_field.
3086 2019-06-26 Tom Tromey <tromey@adacore.com>
3088 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3089 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3092 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3094 * features/aarch64-core.c (create_feature_aarch64_core):
3096 * features/aarch64-core.xml: Add cpsr flags.
3098 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3100 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3101 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3103 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3105 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3107 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3109 (arm_record_special_symbol): Don't insert new symbol in sorted
3110 position, push it at the end.
3112 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3114 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3115 (arm_mapping_symbol_s): Remove.
3116 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3117 (arm_mapping_symbol_vec): New typedef.
3118 (struct arm_per_objfile): Add constructor.
3119 <section_maps>: Change type to
3120 std::unique_ptr<arm_mapping_symbol_vec[]>.
3121 (arm_compare_mapping_symbols): Remove.
3122 (arm_find_mapping_symbol): Adjust to section_maps type change.
3123 (arm_objfile_data_free): Call delete on arm_per_objfile.
3124 (arm_record_special_symbol): Adjust to section_maps type change.
3125 Allocate arm_per_objfile with new.
3127 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3129 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3130 with the command prefix.
3132 2019-06-25 Tom Tromey <tom@tromey.com>
3134 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3135 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3137 2019-06-25 Tom Tromey <tom@tromey.com>
3139 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3141 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3144 2019-06-25 Tom Tromey <tom@tromey.com>
3146 * tui/tui-winsource.c
3147 (tui_source_window_base::set_is_exec_point_at): Add check against
3150 2019-06-25 Tom Tromey <tom@tromey.com>
3152 * tui/tui-source.c (tui_set_source_content): Don't check before
3154 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3156 2019-06-25 Tom Tromey <tom@tromey.com>
3158 * tui/tui-winsource.h (tui_update_source_window_as_is)
3159 (tui_alloc_source_buffer, tui_line_is_displayed)
3160 (tui_addr_is_displayed): Change type of win_info.
3161 * tui/tui-winsource.c (tui_update_source_window_as_is)
3162 (tui_clear_source_content, tui_show_source_line)
3163 (tui_show_source_content, tui_source_window_base::refill)
3164 (tui_source_window_base::set_is_exec_point_at)
3165 (tui_source_window_base::set_is_exec_point_at)
3166 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3167 (tui_alloc_source_buffer, tui_line_is_displayed)
3168 (tui_addr_is_displayed): Change type of win_info. Update.
3169 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3170 (tui_source_window_base::do_make_visible_with_new_height):
3172 * tui/tui-source.c (tui_set_source_content)
3173 (tui_set_source_content_nil)
3174 (tui_source_window::do_scroll_vertical): Update.
3175 * tui/tui-layout.c (show_layout): Update.
3176 * tui/tui-disasm.c (tui_set_disassem_content)
3177 (tui_disasm_window::do_scroll_vertical): Update.
3178 * tui/tui-data.h (tui_win_content): Remove.
3179 (struct tui_gen_win_info) <content, content_size>: Remove.
3180 (struct tui_source_element): Add initializers and destructor.
3181 (union tui_which_element, struct tui_win_element): Remove.
3182 (struct tui_source_window_base) <content>: New field.
3183 (struct tui_data_window): Remove destructor.
3184 (tui_alloc_content, tui_free_win_content)
3185 (tui_free_all_source_wins_content): Don't declare.
3186 * tui/tui-data.c (tui_initialize_static_data): Update.
3187 (init_content_element, tui_alloc_content): Remove.
3188 (~tui_gen_win_info): Update.
3189 (~tui_data_window, tui_free_all_source_wins_content)
3190 (tui_free_win_content, free_content, free_content_elements):
3193 2019-06-25 Tom Tromey <tom@tromey.com>
3195 * tui/tui-winsource.h (tui_clear_source_content)
3196 (tui_erase_source_content, tui_show_source_content): Change type
3198 * tui/tui-winsource.c (tui_clear_source_content)
3199 (tui_erase_source_content, tui_show_source_content): Change type
3201 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3202 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3204 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3206 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3208 2019-06-25 Tom Tromey <tom@tromey.com>
3210 * tui/tui-winsource.c (tui_clear_source_content)
3211 (tui_source_window_base::set_is_exec_point_at): Update.
3212 * tui/tui-source.c (tui_set_source_content_nil): Update.
3213 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3215 * tui/tui-data.c (init_content_element): Update.
3217 2019-06-25 Tom Tromey <tom@tromey.com>
3219 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3220 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3221 * tui/tui-layout.c (init_and_make_win): Update.
3222 * tui/tui.h (enum tui_win_type): Update.
3223 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3224 tui_win_is_auxillary.
3225 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3226 tui_win_is_auxillary.
3228 2019-06-25 Tom Tromey <tom@tromey.com>
3230 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3231 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3232 (tui_delete_data_content_windows, tui_display_all_data)
3233 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3235 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3236 * tui/tui-regs.c (tui_last_regs_line_no)
3237 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3238 (tui_show_registers): Update.
3239 (tui_show_register_group): Return void. Update.
3240 (tui_display_registers_from, tui_display_reg_element_at_line)
3241 (tui_display_registers_from_line, tui_check_register_values):
3243 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3245 (struct tui_data_window) <regs_content>: Now a std::vector.
3246 <regs_content_count>: Remove.
3247 (tui_add_content_elements, tui_free_data_content): Don't declare.
3248 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3249 (init_content_element): Remove DATA_WIN case. Add assert.
3250 (tui_add_content_elements): Remove.
3251 (tui_data_window): Update.
3252 (tui_free_data_content): Remove.
3253 (free_content_elements): Remove DATA_WIN case.
3255 2019-06-25 Tom Tromey <tom@tromey.com>
3257 * tui/tui-data.c (tui_data_item_window): Update.
3258 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3259 * tui/tui-windata.c (tui_display_all_data)
3260 (tui_display_data_from_line): Update.
3261 (tui_check_data_values): Remove.
3262 * tui/tui-regs.c (tui_show_register_group)
3263 (tui_display_reg_element_at_line): Update.
3264 * tui/tui-hooks.c (tui_register_changed)
3265 (tui_refresh_frame_and_register_information): Call
3266 tui_check_register_values.
3267 * tui/tui-data.h (struct tui_data_window) <data_content,
3268 data_content_count, data_type>: Remove.
3269 (enum tui_data_type): Remove.
3271 * tui/tui-data.c (tui_data_window::clear_detail)
3272 (~tui_data_window): Update.
3274 2019-06-25 Tom Tromey <tom@tromey.com>
3276 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3278 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3279 Rename from tui_first_data_item_displayed. Update.
3280 (tui_data_window::refresh_all)
3281 (tui_data_window::do_scroll_vertical): Update.
3282 * tui/tui-data.h (struct tui_data_window)
3283 <first_data_item_displayed>: Declare new method.
3285 2019-06-25 Tom Tromey <tom@tromey.com>
3287 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3288 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3290 (tui_initialize_static_data): ...here.
3292 2019-06-25 Tom Tromey <tom@tromey.com>
3294 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3295 (tui_display_registers_from, tui_check_register_values): Update.
3296 (tui_display_register): Remove win_info parameter; update.
3297 (tui_get_register): Change type of parameters.
3298 * tui/tui-data.h (struct tui_data_element): Remove.
3299 (union tui_which_element) <data>: Remove.
3300 <data_window>: Change type.
3301 (struct tui_data_item_window): New.
3302 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3304 (~tui_data_item_window): New destructor.
3305 (free_content_elements): Remove DATA_ITEM_WIN case.
3307 2019-06-25 Tom Tromey <tom@tromey.com>
3309 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3312 2019-06-25 Tom Tromey <tom@tromey.com>
3314 * tui/tui-data.h (struct tui_command_element): Remove.
3315 (union tui_which_element) <command>: Remove.
3316 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3318 (free_content_elements): Remove CMD_WIN case.
3320 2019-06-25 Tom Tromey <tom@tromey.com>
3322 * tui/tui-layout.c (tui_set_layout): Update.
3323 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3324 * tui/tui-data.c (layout_def): Update.
3326 2019-06-25 Tom Tromey <tom@tromey.com>
3328 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3329 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3330 (tui_source_window_base::set_new_height): Update.
3331 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3333 (tui_set_locator_fullname, tui_set_locator_info)
3334 (tui_show_frame_info): Update.
3335 * tui/tui-source.c (tui_set_source_content)
3336 (tui_source_is_displayed): Update.
3337 * tui/tui-layout.c (show_source_disasm_command, show_data)
3338 (show_source_or_disasm_and_command): Update.
3339 * tui/tui-disasm.c (tui_set_disassem_content)
3340 (tui_get_begin_asm_address): Update.
3341 * tui/tui-data.h (struct tui_locator_element): Remove.
3342 (union tui_which_element) <locator>: Remove.
3343 (struct tui_locator_window): New.
3344 (tui_locator_win_info_ptr): Change return type.
3345 * tui/tui-data.c (_locator): Change type.
3346 (tui_locator_win_info_ptr): Change return type.
3347 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3348 (tui_alloc_content): Add assert.
3350 2019-06-25 Tom Tromey <tom@tromey.com>
3352 * tui/tui-winsource.c
3353 (tui_exec_info_window::maybe_allocate_content): New method.
3354 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3355 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3356 (make_source_or_disasm_window): Add cast.
3357 * tui/tui-data.h (union tui_which_element) <simple_string>:
3359 (struct tui_source_info): New.
3360 (struct tui_source_window_base) <execution_info>: Change type.
3361 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3362 case, and add assert.
3363 (tui_alloc_content): Add assert.
3365 2019-06-25 Tom Tromey <tom@tromey.com>
3367 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3368 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3369 * tui/tui-data.c (tui_alloc_win_info): Remove.
3371 2019-06-25 Tom Tromey <tom@tromey.com>
3373 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3374 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3377 2019-06-25 Tom Tromey <tom@tromey.com>
3379 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3380 make_visible_with_new_height method.
3381 (tui_win_info::make_visible_with_new_height): New method.
3382 (tui_source_window_base::do_make_visible_with_new_height)
3383 (tui_data_window::do_make_visible_with_new_height)
3384 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3385 (make_visible_with_new_height): Remove.
3386 (tui_resize_all, tui_adjust_win_heights): Use
3387 make_visible_with_new_height method.
3388 * tui/tui-data.h (struct tui_win_info)
3389 <do_make_visible_with_new_height, make_visible_with_new_height>:
3391 (struct tui_source_window_base, struct tui_data_window)
3392 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3395 2019-06-25 Tom Tromey <tom@tromey.com>
3397 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3399 (update_tab_width): Call update_tab_width method.
3400 * tui/tui-data.h (struct tui_win_info)
3401 (struct tui_source_window_base) <update_tab_width>: New methods.
3403 2019-06-25 Tom Tromey <tom@tromey.com>
3405 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3407 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3409 (tui_gen_win_info::make_visible): Update.
3410 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3412 * tui/tui-data.h (enum tui_box): New enum.
3413 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3415 2019-06-25 Tom Tromey <tom@tromey.com>
3417 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3418 init_and_make_win for EXEC_INFO_WIN.
3419 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3421 (struct tui_win_info) <~tui_win_info>: Inline.
3422 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3424 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3425 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3427 (tui_initialize_static_data): Update.
3428 (~tui_gen_win_info): Handle more cleanup here.
3429 (~tui_source_window_base): Delete "execution_info".
3430 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3432 2019-06-25 Tom Tromey <tom@tromey.com>
3434 * tui/tui-layout.c (make_command_window): Don't set
3436 (show_source_disasm_command): Call the reset method.
3437 (show_data): Don't set can_highlight. Call the reset method.
3438 (tui_gen_win_info::reset): Rename from init_gen_win_info
3439 (init_and_make_win): Simplify. Return tui_gen_win_info.
3440 (show_source_or_disasm_and_command): Call the reset method.
3441 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3442 (struct tui_cmd_window): Set can_highlight.
3444 2019-06-25 Tom Tromey <tom@tromey.com>
3446 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3448 (tui_make_visible, tui_make_invisible): Rewrite.
3449 (tui_win_info::make_visible): Remove.
3450 (tui_source_window_base::make_visible): Update.
3451 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3452 method. Moved from...
3453 (struct tui_win_info) <make_visible>: ...here.
3455 2019-06-25 Tom Tromey <tom@tromey.com>
3457 * tui/tui-winsource.c
3458 (tui_source_window_base::do_scroll_horizontal): Remove direction
3460 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3461 direction parameter.
3462 * tui/tui-win.c (tui_win_info::forward_scroll)
3463 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3464 (tui_win_info::right_scroll): Update.
3465 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3466 direction parameter.
3467 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3468 direction parameter.
3469 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3470 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3471 Remove direction parameter.
3472 (struct tui_source_window_base, struct tui_source_window)
3473 (struct tui_disasm_window, struct tui_data_window)
3474 (struct tui_cmd_window): Update.
3476 2019-06-25 Tom Tromey <tom@tromey.com>
3478 * tui/tui-winsource.h (tui_set_exec_info_content)
3479 (tui_show_exec_info_content, tui_erase_exec_info_content)
3480 (tui_clear_exec_info_content, tui_update_exec_info): Change
3481 argument to tui_source_window_base.
3482 * tui/tui-winsource.c (tui_set_exec_info_content)
3483 (tui_show_exec_info_content, tui_erase_exec_info_content)
3484 (tui_clear_exec_info_content, tui_update_exec_info): Change
3485 argument to tui_source_window_base.
3487 2019-06-25 Tom Tromey <tom@tromey.com>
3489 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3490 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3492 2019-06-25 Tom Tromey <tom@tromey.com>
3494 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3497 2019-06-25 Tom Tromey <tom@tromey.com>
3499 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3501 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3503 * tui/tui-source.c (tui_set_source_content): Update.
3504 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3506 2019-06-25 Tom Tromey <tom@tromey.com>
3508 * tui/tui-win.c (window_name_completer, tui_set_focus)
3509 (tui_all_windows_info): Use name method.
3510 * tui/tui-data.h (struct tui_gen_win_info)
3511 (struct tui_source_window, struct tui_disasm_window)
3512 (struct tui_data_window, struct tui_cmd_window) <name>: New
3514 (tui_win_name): Don't declare.
3515 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3516 (tui_win_name): Remove.
3518 2019-06-25 Tom Tromey <tom@tromey.com>
3520 * tui/tui-winsource.h (tui_update_source_window)
3521 (tui_update_source_window_as_is): Change parameter type.
3522 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3523 to be a tui_source_window_base.
3524 (tui_update_source_window_as_is): Likewise.
3525 * tui/tui-win.c (make_visible_with_new_height): Update.
3527 2019-06-25 Tom Tromey <tom@tromey.com>
3529 * tui/tui-winsource.c (tui_erase_source_content)
3530 (tui_show_source_content, tui_show_exec_info_content)
3531 (tui_erase_exec_info_content): Use refresh_window method.
3532 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3533 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3534 from tui_refresh_win.
3535 (tui_data_window::refresh_window): New method.
3536 (tui_win_info::refresh, tui_source_window_base::refresh)
3537 (tui_refresh_all): Use refresh_window method.
3538 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3540 * tui/tui-regs.c (tui_display_register): Call refresh_window
3542 * tui/tui-layout.c (show_source_disasm_command)
3543 (show_source_or_disasm_and_command): Call refresh_window method.
3544 * tui/tui-data.h (struct tui_gen_win_info)
3545 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3548 2019-06-25 Tom Tromey <tom@tromey.com>
3550 * tui/tui.c (tui_rl_other_window, tui_enable)
3551 (tui_is_window_visible, tui_get_command_dimension): Update.
3552 * tui/tui-winsource.c (tui_update_source_window_as_is)
3553 (tui_clear_source_content, tui_erase_source_content)
3554 (tui_show_source_line, tui_source_window_base::refill)
3555 (tui_source_window_base::do_scroll_horizontal)
3556 (tui_source_window_base::set_is_exec_point_at)
3557 (tui_update_breakpoint_info, tui_set_exec_info_content)
3558 (tui_alloc_source_buffer, tui_line_is_displayed)
3559 (tui_addr_is_displayed): Update.
3560 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3561 (tui_check_and_display_highlight_if_needed)
3562 (tui_win_info::make_visible, tui_win_info::refresh)
3563 (tui_refresh_all): Update.
3564 * tui/tui-windata.c (tui_first_data_item_displayed)
3565 (tui_delete_data_content_windows, tui_erase_data_content)
3566 (tui_display_all_data, tui_data_window::refresh_all)
3567 (tui_check_data_values): Update.
3568 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3569 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3570 (tui_win_info::backward_scroll, tui_refresh_all_win)
3571 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3572 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3573 (tui_source_window_base::set_new_height)
3574 (tui_data_window::set_new_height)
3575 (make_invisible_and_set_new_height)
3576 (make_visible_with_new_height, new_height_ok)
3577 (parse_scrolling_args): Update.
3578 * tui/tui-stack.c (tui_show_frame_info): Update.
3579 * tui/tui-source.c (tui_set_source_content)
3580 (tui_set_source_content_nil, tui_source_is_displayed)
3581 (tui_source_window::do_scroll_vertical): Update.
3582 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3583 (tui_display_registers_from, tui_display_reg_element_at_line)
3584 (tui_check_register_values, tui_reg_command): Update.
3585 * tui/tui-layout.c (tui_default_win_height)
3586 (show_source_disasm_command, show_data, init_and_make_win)
3587 (show_source_or_disasm_and_command): Update.
3588 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3589 (tui_redisplay_readline, tui_mld_flush)
3590 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3592 * tui/tui-disasm.c (tui_set_disassem_content)
3593 (tui_disasm_window::do_scroll_vertical): Update.
3594 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3596 (struct tui_win_info): Derive from tui_gen_win_info.
3597 <~tui_win_info>: Mark as override.
3598 <generic>: Remove member.
3599 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3600 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3601 (~tui_data_window, ~tui_win_info)
3602 (tui_free_all_source_wins_content): Update.
3603 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3605 2019-06-25 Tom Tromey <tom@tromey.com>
3607 * tui/tui-layout.c (init_and_make_win): Use new.
3608 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3609 destructor, initializers.
3610 (tui_alloc_generic_win_info): Don't declare.
3611 * tui/tui-data.c (_locator): Add argument to constructor.
3612 (source_win, disasm_win): New globals.
3613 (exec_info): Remove.
3614 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3616 (tui_alloc_generic_win_info): Remove.
3617 (init_content_element): Use new.
3618 (tui_win_info::tui_win_info): Update.
3619 (free_content_elements) <case DATA_WIN>: Use delete.
3621 2019-06-25 Tom Tromey <tom@tromey.com>
3623 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3624 * tui/tui-windata.c (tui_first_data_item_displayed)
3625 (tui_delete_data_content_windows): Update.
3626 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3627 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3628 (tui_display_registers_from, tui_check_register_values): Update.
3629 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3631 * tui/tui-data.c (init_content_element): Update. Allocate the new
3633 (tui_free_data_content): Update.
3634 (free_content_elements) <case DATA_WIN>: Free the window.
3636 2019-06-25 Tom Tromey <tom@tromey.com>
3638 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3640 * tui/tui-layout.c (make_command_window)
3641 (show_source_disasm_command, show_data, init_and_make_win)
3642 (show_source_or_disasm_and_command): Update.
3643 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3645 <can_highight, is_highlighted>: Now bool.
3646 (tui_set_win_highlight): Don't declare.
3647 * tui/tui-data.c (tui_set_win_highlight): Remove.
3649 2019-06-25 Tom Tromey <tom@tromey.com>
3651 * tui/tui-wingeneral.c (make_visible): Remove check of window
3654 2019-06-25 Tom Tromey <tom@tromey.com>
3656 * tui/tui-win.c (tui_win_info::max_height)
3657 (tui_cmd_window::max_height): New methods.
3658 (new_height_ok): Call max_height.
3659 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3660 <max_height>: New method.
3662 2019-06-25 Tom Tromey <tom@tromey.com>
3664 * tui/tui-win.c (tui_source_window_base::set_new_height)
3665 (tui_data_window::set_new_height): New methods.
3666 (make_invisible_and_set_new_height): Call set_new_height method.
3667 * tui/tui-data.h (struct tui_win_info)
3668 (struct tui_source_window_base, struct tui_data_window)
3669 <set_new_height>: New method.
3671 2019-06-25 Tom Tromey <tom@tromey.com>
3673 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3674 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3675 tui_refresh_data_win.
3676 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3678 (tui_refresh_all_win): Call the refresh_all method.
3679 (tui_set_focus): Likewise.
3680 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3681 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3684 2019-06-25 Tom Tromey <tom@tromey.com>
3686 * tui/tui-winsource.h (tui_refill_source_window)
3687 (tui_set_is_exec_point_at): Don't declare.
3688 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3689 (tui_source_window_base::refill): Rename from
3690 tui_refill_source_window.
3691 (tui_source_window_base::do_scroll_horizontal): Update.
3692 (tui_source_window_base::set_is_exec_point_at): Rename from
3693 tui_set_is_exec_point_at.
3694 (tui_update_all_breakpoint_info): Update.
3695 * tui/tui-stack.c (tui_show_frame_info): Update.
3696 * tui/tui-layout.c (show_data): Add cast.
3697 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3698 * tui/tui-data.h (struct tui_source_window_base) <refill,
3699 set_is_exec_point_at>: New methods.
3700 (tui_source_windows, tui_add_to_source_windows): Update types.
3701 (tui_add_to_source_windows): Remove redundant declaration.
3702 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3703 (tui_source_windows): Change return type.
3704 (tui_clear_source_windows_detail): Update.
3705 (tui_add_to_source_windows): Change type of parameter.
3706 (tui_free_all_source_wins_content): Update.
3708 2019-06-25 Tom Tromey <tom@tromey.com>
3710 * tui/tui-wingeneral.c (tui_win_info::refresh)
3711 (tui_source_window_base::refresh): New methods.
3712 (tui_refresh_all): Call the refresh method.
3713 * tui/tui-data.h (struct tui_win_info)
3714 (struct tui_source_window_base) <refresh>: New method.
3716 2019-06-25 Tom Tromey <tom@tromey.com>
3718 * tui/tui.h (tui_is_window_visible): Return bool.
3719 * tui/tui.c (tui_is_window_visible): Return bool.
3720 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3721 (tui_make_visible, tui_make_invisible)
3722 (tui_win_info::make_visible)
3723 (tui_source_window_base::make_visible, make_all_visible)
3724 (tui_make_all_visible, tui_make_all_invisible): Update.
3725 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3726 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3728 (struct tui_win_info, struct tui_source_window_base)
3729 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3730 * tui/tui-data.c (tui_init_generic_part): Update.
3732 2019-06-25 Tom Tromey <tom@tromey.com>
3734 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3735 (tui_source_window_base::make_visible): New methods.
3736 (make_all_visible): Make method call.
3737 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3738 (struct tui_source_window_base, struct tui_cmd_window): Override
3740 (tui_win_is_source_type): Don't declare.
3741 * tui/tui-data.c (tui_win_is_source_type): Remove.
3743 2019-06-25 Tom Tromey <tom@tromey.com>
3745 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3748 2019-06-25 Tom Tromey <tom@tromey.com>
3750 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3751 Inline constructor. Add initializers for members.
3752 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3753 constructors; now inline in class.
3755 2019-06-25 Tom Tromey <tom@tromey.com>
3757 * tui/tui-regs.c (tui_show_registers): Update.
3758 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3760 * tui/tui-data.c (tui_data_window::clear_detail)
3761 (tui_data_window): Update.
3763 2019-06-25 Tom Tromey <tom@tromey.com>
3765 * tui/tui-windata.c (tui_display_all_data)
3766 (tui_display_data_from_line, tui_display_data_from)
3767 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3769 * tui/tui-regs.c (tui_last_regs_line_no)
3770 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3771 (tui_show_registers, tui_show_register_group)
3772 (tui_display_registers_from, tui_display_reg_element_at_line)
3773 (tui_display_registers_from_line, tui_check_register_values)
3774 (tui_reg_next, tui_reg_prev): Update.
3775 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3776 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3778 (struct tui_win_info) <detail>: Remove. Add new fields from
3780 (TUI_DATA_WIN): Add cast.
3781 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3782 (~tui_data_window): Simplify.
3784 2019-06-25 Tom Tromey <tom@tromey.com>
3786 * tui/tui-layout.c (show_source_disasm_command)
3787 (show_source_or_disasm_and_command): Update.
3788 * tui/tui-io.c (update_cmdwin_start_line)
3789 (tui_redisplay_readline): Update.
3790 * tui/tui-data.h (struct tui_command_info): Remove.
3791 (struct tui_win_info) <detail>: Remove command_info member.
3792 (struct tui_data_window) <start_line>: New member, from
3794 (TUI_CMD_WIN): Add casts.
3796 2019-06-25 Tom Tromey <tom@tromey.com>
3798 * tui/tui-winsource.c (tui_update_source_window)
3799 (tui_refill_source_window)
3800 (tui_source_window_base::do_scroll_horizontal)
3801 (tui_update_breakpoint_info, tui_set_exec_info_content)
3802 (tui_show_exec_info_content, tui_erase_exec_info_content)
3803 (tui_clear_exec_info_content): Update.
3804 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3806 * tui/tui-win.c (make_invisible_and_set_new_height)
3807 (make_visible_with_new_height): Update.
3808 * tui/tui-source.c (tui_set_source_content)
3809 (tui_show_symtab_source): Update.
3810 * tui/tui-layout.c (extract_display_start_addr)
3811 (show_source_disasm_command, show_data)
3812 (make_source_or_disasm_window)
3813 (show_source_or_disasm_and_command): Update.
3814 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3815 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3817 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3818 to tui_source_window_base.
3819 (struct tui_win_info) <detail>: Remove source_info member.
3820 (struct tui_source_window_base) <has_locator>: Inline.
3821 Move contents from tui_source_info; rename has_locator member to
3823 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3824 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3826 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3828 (tui_free_all_source_wins_content): Cast to
3829 tui_source_window_base.
3831 2019-06-25 Tom Tromey <tom@tromey.com>
3833 * tui/tui-win.c (make_invisible_and_set_new_height)
3834 (make_visible_with_new_height): Call has_locator method.
3835 * tui/tui-layout.c (show_source_disasm_command, show_data)
3836 (show_source_or_disasm_and_command): Update for bool change.
3837 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3838 (tui_win_info) <has_locator>: New method.
3839 (struct tui_source_window_base) <has_locator>: New method.
3840 (tui_win_has_locator): Don't declare.
3841 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3842 from tui_win_has_locator.
3843 (tui_source_window_base): Use false, not FALSE.
3845 2019-06-25 Tom Tromey <tom@tromey.com>
3847 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3848 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3849 clear_detail method directly.
3850 (tui_clear_win_detail): Remove.
3852 2019-06-25 Tom Tromey <tom@tromey.com>
3854 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3855 "this", not TUI_DISASM_WIN.
3857 2019-06-25 Tom Tromey <tom@tromey.com>
3859 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3861 * tui/tui-winsource.c
3862 (tui_source_window_base::do_scroll_horizontal): Rename from
3863 tui_horizontal_source_scroll.
3864 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3865 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3866 from tui_vertical_data_scroll.
3867 * tui/tui-win.h (tui_scroll): Don't declare.
3868 * tui/tui-win.c (tui_win_info::forward_scroll)
3869 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3870 (tui_win_info::right_scroll): Rename and update.
3871 (tui_scroll_forward_command, tui_scroll_backward_command)
3872 (tui_scroll_left_command, tui_scroll_right_command): Update.
3873 (tui_scroll): Remove.
3874 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3875 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3876 from tui_vertical_source_scroll.
3877 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3878 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3879 from tui_vertical_disassem_scroll.
3880 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3881 do_scroll_horizontal>: New methods.
3882 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3884 (struct tui_source_window_base): Add do_scroll_horizontal.
3885 (struct tui_source_window, struct tui_disasm_window): Add
3887 (struct tui_data_window, struct tui_cmd_window): Add
3888 do_scroll_horizontal and do_scroll_vertical.
3889 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3891 2019-06-25 Tom Tromey <tom@tromey.com>
3893 * tui/tui-data.h (struct tui_source_window_base): New struct.
3894 (struct tui_source_window): Derive from tui_source_window_base.
3895 (struct tui_disasm_window): New struct.
3896 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3897 from tui_source_window::clear_detail.
3898 (tui_source_window_base): Rename from tui_source_window.
3899 (~tui_source_window_base): Rename from ~tui_source_window.
3900 (tui_alloc_win_info): Create a tui_disasm_window.
3902 2019-06-25 Tom Tromey <tom@tromey.com>
3904 * tui/tui-data.h (struct tui_source_window)
3905 (struct tui_data_window): Declare destructors.
3906 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3908 (tui_win_info): Simplify.
3910 2019-06-25 Tom Tromey <tom@tromey.com>
3912 * tui/tui-winsource.c (tui_display_main)
3913 (tui_update_source_windows_with_addr)
3914 (tui_update_all_breakpoint_info): Update.
3915 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3916 (new_height_ok, parse_scrolling_args): Update.
3917 * tui/tui-stack.c (tui_show_frame_info): Update.
3918 * tui/tui-data.h (struct tui_list): Remove.
3919 (tui_source_windows): Return a reference to a std::vector.
3920 * tui/tui-data.c (source_windows): Now a std::vector.
3921 (tui_source_windows): Change return type.
3922 (tui_clear_source_windows): Rewrite.
3923 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3924 (tui_free_all_source_wins_content): Rewrite.
3926 2019-06-25 Tom Tromey <tom@tromey.com>
3928 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3929 (struct tui_data_window, struct tui_cmd_window): Declare
3930 clear_detail method.
3931 * tui/tui-data.c (tui_source_window::clear_detail)
3932 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3934 (tui_clear_win_detail): Simplify.
3936 2019-06-25 Tom Tromey <tom@tromey.com>
3938 * tui/tui-layout.c (make_source_window, make_disasm_window)
3939 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3940 Return the new window.
3941 (show_source_disasm_command, show_data)
3942 (show_source_or_disasm_and_command): Update.
3944 2019-06-25 Tom Tromey <tom@tromey.com>
3946 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3947 parameter. Return the new window.
3948 (show_source_disasm_command): Update and remove NULL check.
3949 (show_source_or_disasm_and_command): Update.
3951 2019-06-25 Tom Tromey <tom@tromey.com>
3953 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3955 2019-06-25 Tom Tromey <tom@tromey.com>
3957 * tui/tui-data.h (struct tui_win_info): Make constructor
3958 protected. Make destructor virtual. Add initializers.
3959 (tui_source_window, tui_data_window, tui_cmd_window): New
3961 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3962 constructor. Add "type" parameter.
3963 (tui_source_window, tui_data_window, tui_cmd_window): New
3965 (tui_alloc_win_info): Instantiate the appropriate subclass.
3967 2019-06-25 Tom Tromey <tom@tromey.com>
3969 * tui/tui-win.c (tui_resize_all): Use delete.
3970 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3972 (tui_free_window): Don't declare.
3973 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3976 2019-06-25 Tom Tromey <tom@tromey.com>
3978 * tui/tui-data.h (struct tui_win_info): Add constructor.
3979 * tui/tui-data.c (tui_alloc_win_info): Use new.
3980 (tui_free_window): Use delete.
3982 2019-06-22 Tom Tromey <tom@tromey.com>
3984 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3986 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3988 2019-06-22 Tom Tromey <tom@tromey.com>
3990 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3992 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3994 2019-06-22 Tom de Vries <tdevries@suse.de>
3996 * dwarf2read.c (create_addrmap_from_aranges)
3997 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4000 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4002 * dwarf2read.h (dwarf2_section_info_def): Remove.
4003 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4004 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4005 std::vector<dwarf2_section_info>.
4006 (struct dwo_file) <~dwo_file>: Remove.
4007 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4009 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4010 (dwarf2_read_debug_names): Likewise.
4011 (create_debug_types_hash_table): Change parameter type to
4012 array_view, adjust code accordingly.
4013 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4014 (partial_die_info::fixup): Likewise.
4015 (determine_prefix): Likewise.
4016 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4018 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4020 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4022 <~dwo_file>: Remove call to gdb_bfd_unref.
4023 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4024 gdb_bfd_ref_ptr::get.
4026 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4028 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4030 * dwarf2read.c (struct dwo_file): Initialize fields.
4032 (free_dwo_file): Remove, move content to ~dwo_file.
4033 (struct dwo_file_deleter): Remove.
4034 (dwo_file_up>: Remove custom deleter.
4035 (free_dwo_files): Remove.
4036 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4038 (process_skeletonless_type_units): Call unique_ptr::get.
4039 (allocate_dwo_file_hash_table): Add deleter to created hash
4040 table. Change return type to htab_up.
4041 (lookup_dwo_file_slot): Don't memset dwo_file, call
4043 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4044 (create_dwo_unit_in_dwp_v2): Likewise.
4045 (open_and_init_dwo_file): Likewise.
4046 (free_dwo_file_from_slot): Remove.
4048 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4050 * dwarf2read.h (struct dwarf2_section_info) <readin,
4051 is_virtual>: Change type to bool.
4052 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4055 2019-06-19 Tom Tromey <tom@tromey.com>
4057 * tui/tui-data.h (tui_init_content_element): Don't declare.
4059 2019-06-19 Tom Tromey <tom@tromey.com>
4061 * tui/tui-data.h (tui_init_win_info): Don't declare.
4063 2019-06-19 Tom de Vries <tdevries@suse.de>
4065 * dwarf2read.h (abstract_to_concrete): Change type to
4066 std::unordered_map<sect_offset, std::vector<sect_offset>,
4067 gdb::hash_enum<sect_offset>>.
4069 2019-06-19 Tom Tromey <tromey@adacore.com>
4071 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4072 EVAL_AVOID_SIDE_EFFECTS specially.
4074 2019-06-19 Tom Tromey <tromey@adacore.com>
4076 * source-cache.c (highlighter): New global.
4077 (source_cache::get_source_lines): Create a highlighter on demand.
4079 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4081 * defs.h (deprecated_interactive_hook): Delete declaration.
4082 * interps.c (clear_interpreter_hooks): Remove use of
4083 deprecated_interactive_hook.
4084 * top.c (deprecated_interactive_hook): Delete definition.
4085 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4087 2019-06-18 Tom de Vries <tdevries@suse.de>
4090 * dwarf2read.h (abstract_to_concrete): Change type from
4091 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4092 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4093 * dwarf2read.c (read_variable): Update.
4094 (dwarf2_fetch_die_loc_sect_off): Update.
4096 2019-06-17 Tom de Vries <tdevries@suse.de>
4099 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4100 accessing parent[parent_len - 1].
4102 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4105 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4106 call dtrace_process_dof with NULL dof.
4108 2019-06-16 Tom de Vries <tdevries@suse.de>
4111 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4113 2019-06-16 Tom Tromey <tom@tromey.com>
4115 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4116 (make_all_visible): Use address of member.
4118 2019-06-16 Tom Tromey <tom@tromey.com>
4120 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4121 (tui_free_window, free_content, free_content_elements): Remove
4123 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4125 * tui/tui-regs.c (tui_show_register_group)
4126 (tui_display_registers_from, tui_display_reg_element_at_line):
4127 Remove unnecessary cast.
4129 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4131 * linux-nat.c (normal_mask): Delete.
4132 (_initialize_linux_nat): Don't initialise normal_mask.
4134 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4137 * dwarf-index-write.h (write_psymtabs_to_index): Add
4138 dwz_basename parameter.
4139 * dwarf-index-write.c (write_gdbindex): Move file writing to
4140 write_gdbindex_1. Change return type void.
4141 (assert_file_size): Move up, remove filename parameter.
4142 (write_gdbindex_1): New function.
4143 (write_debug_names): Change return type to void, call
4145 (struct index_wip_file): New struct.
4146 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4147 file logic to index_wip_file. Write index for dwz file if
4149 (save_gdb_index_command): Pass basename of dwz file, if present.
4150 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4151 build-id of dwz file, if present.
4152 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4153 (dwarf2_get_dwz_file): Likewise.
4154 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4155 (dwarf2_get_dwz_file): Likewise.
4157 2019-06-16 Tom Tromey <tom@tromey.com>
4159 * coffread.c (process_coff_symbol): Use xstrdup.
4160 * value.c (create_internalvar): Use xstrdup.
4162 2019-06-16 Tom Tromey <tom@tromey.com>
4164 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4165 * breakpoint.c (stopin_command, stopat_command)
4166 (until_break_command, decode_location_default): Remove unnecessary
4168 * utils.c (subset_compare): Remove unnecessary cast.
4169 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4171 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4173 * infcmd.c (path_command): Remove unnecessary cast.
4174 * coffread.c (decode_type): Remove unnecessary cast.
4175 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4176 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4177 * tui/tui-stack.c (tui_show_locator_content)
4178 (tui_show_frame_info): Remove unnecessary cast.
4179 * tui/tui-win.c (tui_scroll_forward_command)
4180 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4181 (parse_scrolling_args): Remove unnecessary cast.
4182 * tui/tui-data.c (init_win_info, tui_del_window)
4183 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4184 (free_content_elements): Remove unnecessary cast.
4185 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4187 * tui/tui-source.c (tui_set_source_content)
4188 (tui_vertical_source_scroll): Remove unnecessary cast.
4189 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4191 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4192 * tui/tui-regs.c (tui_display_registers_from)
4193 (tui_display_register): Remove unnecessary cast.
4194 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4195 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4196 (make_visible): Remove unnecessary cast.
4197 * tui/tui-winsource.c (tui_erase_source_content)
4198 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4200 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4201 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4202 * stabsread.c (read_type, read_array_type, read_range_type):
4203 Remove unnecessary cast.
4204 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4205 (parse_symbol, parse_type, upgrade_type, parse_external)
4206 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4208 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4210 2019-06-16 Tom Tromey <tom@tromey.com>
4212 * tui/tui-data.c (tui_alloc_generic_win_info)
4213 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4216 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4217 Andrew Burgess <andrew.burgess@embecosm.com>
4219 * f-typeprint.c (f_print_type): Don't return early for not
4220 associated or not allocated types.
4221 (f_type_print_varspec_suffix): Add print_rank parameter and print
4222 ranks of array types in case they dangling.
4223 (f_type_print_base): Add print_rank parameter.
4225 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4227 * NEWS: Mention new MI commands.
4228 * break-catch-throw.c (enum exception_event_kind): Move to
4230 (print_mention_exception_catchpoint): Output text as a single
4232 (catch_exception_command_1): Rename to...
4233 (catch_exception_event): ...this, make non-static, update header
4234 command, and change some parameter types.
4235 (catch_catch_command): Update for changes to
4236 catch_exception_command_1.
4237 (catch_throw_command): Likewise.
4238 (catch_rethrow_command): Likewise.
4239 * breakpoint.c (enum exception_event_kind): Delete.
4240 * breakpoint.h (enum exception_event_kind): Moved here from
4241 break-catch-throw.c.
4242 (catch_exception_event): Declare.
4243 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4244 (mi_cmd_catch_throw): New function.
4245 (mi_cmd_catch_rethrow): New function.
4246 (mi_cmd_catch_catch): New function.
4247 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4248 'catch-catch' entries.
4249 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4250 (mi_cmd_catch_rethrow): Declare.
4251 (mi_cmd_catch_catch): Declare.
4253 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4255 * annotate.c (annotate_source_line): Change return type to void,
4256 update implementation to match.
4257 * annotate.h (annotate_source_line): Change return type to void,
4258 update header comment.
4259 * stack.c (print_frame_info): Don't change what frame information
4260 is printed based on whether annotations are on or not.
4262 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4264 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4265 (annotate_source): Make static.
4266 (annotate_source_line): Moved from source.c and renamed from
4267 identify_source_line. Update the return type.
4268 * annotate.h (annotate_source): Delete declaration.
4269 (annotate_source_line): Declaration moved from source.h, and
4270 renamed from identify_source_line. Return type updated.
4271 * source.c (identify_source_line): Moved to annotate.c and renamed
4272 to annotate_source_line.
4273 (info_line_command): Remove check of annotation_level.
4274 * source.h (identify_source_line): Move declaration to annotate.h
4275 and rename to annotate_source_line.
4276 * stack.c: Add 'annotate.h' include.
4277 (print_frame_info): Remove check of annotation_level before
4278 calling annotate_source_line.
4280 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4282 * source-cache.c (source_cache::get_plain_source_lines): Use
4283 open_source_file_with_line_charpos instead of just
4284 open_source_file, remove call to find_source_lines.
4285 (source_cache::get_source_lines): Likewise.
4286 * source.c (find_source_lines): Make static.
4287 (get_filename_and_charpos): Renamed into...
4288 (open_source_file_with_line_charpos): ..this along with changes to
4289 return a scoped_fd, and some other minor clean ups.
4290 (identify_source_line): Use open_source_file_with_line_charpos.
4291 (search_command_helper): Use open_source_file_with_line_charpos
4292 instead of just open_source_file, remove call to
4294 * source.h (open_source_file_with_line_charpos): Declare new
4296 (find_source_lines): Delete declaration.
4298 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4300 * source.c (get_filename_and_charpos): Remove fullname
4302 (identify_source_line): Update call to get_filename_and_charpos.
4304 2019-06-14 Tom Tromey <tromey@adacore.com>
4307 * ui-style.h (skip_ansi_escape): Update comment.
4308 * ui-file.h (class no_terminal_escape_file): New class.
4309 * ui-file.c (no_terminal_escape_file::write)
4310 (no_terminal_escape_file::puts): New methods.
4311 * cli/cli-logging.c (handle_redirections): Use
4312 no_terminal_escape_file.
4314 2019-06-14 Tom Tromey <tromey@adacore.com>
4316 * NEWS: Move convenience variable news above Python news.
4318 2019-06-14 Tom Tromey <tom@tromey.com>
4320 * gnulib: Move directory to top-level.
4321 * configure.ac: Don't configure gnulib.
4322 * configure: Rebuild.
4323 * common/common-defs.h: Use new path to gnulib.
4324 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4326 (INCGNU): Look in new gnulib location.
4327 (HFILES_NO_SRCDIR): Remove gnulib files.
4328 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4329 (generated_files): Remove GNULIB_H.
4330 ($(LIBGNU), all-lib): Remove targets.
4331 (distclean): Don't mention GNULIB_BUILDDIR.
4332 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4334 2019-06-14 Tom Tromey <tromey@adacore.com>
4336 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4337 Warn if symbol file does not provide any symbols.
4339 2019-06-14 Tom Tromey <tromey@adacore.com>
4341 * source.c (find_and_open_source): Respect basenames_may_differ.
4343 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4345 * annotate.c (annotate_breakpoints_invalid): Make use of
4346 scoped_restore_terminal_state.
4347 (annotate_frames_invalid): Likewise.
4349 2019-06-14 Tom Tromey <tromey@adacore.com>
4351 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4352 allow assignment to an internalvar.
4354 2019-06-14 Tom Tromey <tromey@adacore.com>
4356 * ada-lex.l: Allow "_" in attribute names.
4358 2019-06-14 Tom Tromey <tromey@adacore.com>
4361 * regcache.c (registers_changed): Don't call alloca.
4362 * top.c (execute_command): Don't call alloca.
4364 2019-06-13 Pedro Alves <palves@redhat.com>
4366 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4367 'expression'. When parsing an expression, error out if there's
4368 junk after "unlimited".
4369 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4370 (do_set_command): Adjust calls to is_unlimited_literal.
4372 2019-06-13 Pedro Alves <palves@redhat.com>
4374 * compile/compile.c (make_compile_options_def_group): Add braces
4375 around array_view initializer.
4376 * thread.c (make_thread_apply_all_options_def_group)
4377 (make_thread_apply_all_options_def_group): Likewise.
4379 2019-06-13 Pedro Alves <palves@redhat.com>
4381 * NEWS (New commands): Mention "maint test-options
4382 require-delimiter", "maint test-options unknown-is-error", "maint
4383 test-options unknown-is-operand" and "maint show
4384 test-options-completion-result".
4385 (New command options, command completion): New section.
4386 (Completion improvements): New section.
4387 Mention that you can abbreviate "unlimited".
4389 2019-06-13 Pedro Alves <palves@redhat.com>
4391 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4392 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4393 * unittests/cli-utils-selftests.c (test_parse_flags)
4394 (test_parse_flags_qcs): Delete.
4395 (test_cli_utils): Don't call deleted functions.
4397 2019-06-13 Pedro Alves <palves@redhat.com>
4399 * thread.c: Include "cli/cli-option.h".
4400 (tp_array_compar_ascending): Global.
4401 (tp_array_compar): Delete function.
4402 (tp_array_compar_ascending, tp_array_compar_descending): New
4404 (ascending_option_def, qcs_flag_option_def)
4405 (thr_qcs_flags_option_defs)
4406 (make_thread_apply_all_options_def_group)
4407 (make_thread_apply_options_def_group): New.
4408 (thread_apply_all_command): Use gdb::option::process_options.
4409 (thread_apply_command_completer)
4410 (thread_apply_all_command_completer): New.
4411 (thread_apply_command): Use gdb::option::process_options.
4412 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4413 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4414 to generate help text of "thread apply". Adjust "taas"'s help.
4415 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4416 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4418 2019-06-13 Pedro Alves <palves@redhat.com>
4420 * thread.c (thread_apply_command): Check for invalid TID with
4421 isdigit instead of !isalpha.
4423 2019-06-13 Pedro Alves <palves@redhat.com>
4425 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4426 (validate_flags_qcs): New.
4427 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4428 (validate_flags_qcs): Declare.
4429 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4430 (make_frame_apply_options_def_group): New.
4431 (frame_apply_command_count): Process options with
4432 gdb::option::process_options.
4433 (frame_apply_completer): New.
4434 (frame_apply_level_completer, frame_apply_all_completer)
4435 (frame_apply_completer): New.
4436 (_initialize_stack): Update help of "frame apply", "frame apply
4437 level", "frame apply all" and "faas" to mention supported options
4438 and install command completers.
4439 * stack.h (frame_apply_all_completer): Declare.
4440 * thread.c: Include "stack.h".
4441 (tfaas_command): Add "--".
4442 (_initialize_thread): Update help "tfaas" to mention supported
4443 options and install command completer.
4445 2019-06-13 Pedro Alves <palves@redhat.com>
4447 * completer.c (complete_nested_command_line): New.
4448 (gdb_completion_word_break_characters_throw): Add assertion.
4449 * completer.h (complete_nested_command_line): Declare.
4451 2019-06-13 Pedro Alves <palves@redhat.com>
4453 * stack.c (parse_backtrace_qualifiers): New.
4454 (backtrace_command): Use it.
4455 (backtrace_command_completer): Complete on qualifiers.
4457 2019-06-13 Pedro Alves <palves@redhat.com>
4459 * frame.c: Include "cli/cli-option.h.
4460 (user_set_backtrace_options): New.
4461 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4463 (get_prev_frame): Adjust.
4464 (boolean_option_def, uinteger_option_def)
4465 (set_backtrace_option_defs): New.
4466 (_initialize_frame): Adjust and use
4467 gdb::option::add_setshow_cmds_for_options to install "set
4468 backtrace past-main" and "set backtrace past-entry".
4469 * frame.h: Include "cli/cli-option.h".
4470 (struct frame_print_options): Forward declare.
4471 (print_frame_arguments_all, print_frame_arguments_scalars)
4472 (print_frame_arguments_none): Declare.
4473 (print_entry_values): Delete declaration.
4474 (struct frame_print_options, user_frame_print_options): New.
4475 (struct set_backtrace_options): New.
4476 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4477 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4478 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4479 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4480 (list_args_or_locals): Add frame_print_options parameter.
4481 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4482 * python/py-framefilter.c (enumerate_args): Pass down
4483 USER_FRAME_PRINT_OPTIONS.
4484 * stack.c: Include "cli/cli-option.h".
4485 (print_frame_arguments_all, print_frame_arguments_scalars)
4486 (print_frame_arguments_none): Declare.
4487 (print_raw_frame_arguments, print_entry_values): Delete.
4488 (user_frame_print_options): New.
4489 (boolean_option_def, enum_option_def, frame_print_option_defs):
4491 (struct backtrace_cmd_options): New.
4492 (bt_flag_option_def): New.
4493 (backtrace_command_option_defs): New.
4494 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4495 (print_frame_arg, read_frame_arg, print_frame_args)
4496 (print_frame_info, print_frame): Add frame_print_options parameter
4498 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4499 (backtrace_command_1): Add frame_print_options and
4500 backtrace_cmd_options parameters and use them.
4501 (make_backtrace_options_def_group): New.
4502 (backtrace_command): Process command options with
4503 gdb::option::process_options.
4504 (backtrace_command_completer): New.
4505 (_initialize_stack): Extend "backtrace"'s help to mention
4506 supported options. Install completer for "backtrace".
4507 Install some settings commands with add_setshow_cmds_for_options.
4509 2019-06-13 Pedro Alves <palves@redhat.com>
4511 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4512 and that "set/show print raw frame-arguments" are now deprecated.
4514 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4516 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4517 * stack.c (_initialize_stack): Install "set/show print
4518 raw-frame-arguments", and deprecate "set/show print raw
4520 * valprint.c (_initialize_valprint): Deprecate "set/show print
4523 2019-06-13 Pedro Alves <palves@redhat.com>
4525 * compile/compile.c (struct compile_options): New.
4526 (compile_flag_option_def, compile_command_option_defs)
4527 (make_compile_options_def_group): New.
4528 (compile_file_command): Handle options with
4529 gdb::option::process_options.
4530 (compile_file_command_completer): New function.
4531 (compile_code_command): Handle options with
4532 gdb::option::process_options.
4533 (compile_code_command_completer): New function.
4534 (_initialize_compiler): Install completers for "compile code" and
4535 "compile file". Mention available options in "compile code" and
4536 "compile code"'s help.
4537 * completer.c (advance_to_completion_word): New, factored out from
4539 (advance_to_expression_complete_word_point): ... this.
4540 (advance_to_filename_complete_word_point): New.
4541 * completer.h (advance_to_filename_complete_word_point): New
4544 2019-06-13 Pedro Alves <palves@redhat.com>
4546 * compile/compile.c: Include "cli/cli-option.h".
4547 (compile_print_value): Scope data pointer is now a
4548 value_print_options pointer; adjust.
4549 (compile_print_command): Process options. Scope data pointer is
4550 now a value_print_options pointer; adjust.
4551 (_initialize_compile): Update "compile print"'s help to include
4552 supported options. Install a completer for "compile print".
4553 * cp-valprint.c (show_vtblprint, show_objectprint)
4554 (show_static_field_print): Delete.
4555 (_initialize_cp_valprint): Don't install "set print
4556 static-members", "set print vtbl", "set print object" here.
4557 * printcmd.c: Include "cli/cli-option.h" and
4558 "common/gdb_optional.h".
4559 (print_command_parse_format): Rework to fill in a
4560 value_print_options instead of a format_data.
4561 (print_value): Change parameter type from format_data pointer to
4562 value_print_options reference. Adjust.
4563 (print_command_1): Process options. Adjust to pass down a
4564 value_print_options.
4565 (print_command_completer): New.
4566 (_initialize_printcmd): Install print_command_completer as
4567 handle_brkchars completer for the "print" command. Update
4568 "print"'s help to include supported options.
4569 * valprint.c: Include "cli/cli-option.h".
4570 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4571 here from cp-valprint.c.
4572 (boolean_option_def, uinteger_option_def)
4573 (value_print_option_defs, make_value_print_options_def_group):
4574 New. Use gdb::option::add_setshow_cmds_for_options to install
4575 "set print elements", "set print null-stop", "set print repeats",
4576 "set print pretty", "set print union", "set print array", "set
4577 print address", "set print symbol", "set print array-indexes".
4578 * valprint.h: Include <string> and "cli/cli-option.h".
4579 (make_value_print_options_def_group): Declare.
4580 (print_value): Change parameter type from format_data pointer to
4581 value_print_options reference.
4582 (print_command_completer): Declare.
4584 2019-06-13 Pedro Alves <palves@redhat.com>
4586 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4587 (COMMON_SFILES): Add maint-test-settings.c.
4588 * cli/cli-decode.c (boolean_enums): New global, factored out from
4590 (add_setshow_boolean_cmd): ... here.
4591 * cli/cli-decode.h (boolean_enums): Declare.
4592 * cli/cli-option.c: New file.
4593 * cli/cli-option.h: New file.
4594 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4595 factored out from ...
4596 (parse_cli_boolean_value(const char *)): ... this.
4597 (is_unlimited_literal): Change parameter type to pointer to
4598 pointer. Adjust and advance ARG pointer.
4599 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4600 (parse_cli_var_enum): New, factored out from ...
4601 (do_set_command): ... this. Adjust.
4602 * cli/cli-setshow.h (parse_cli_boolean_value)
4603 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4604 (parse_cli_var_enum): Declare.
4605 * cli/cli-utils.c: Include "cli/cli-option.h".
4606 (get_ulongest): New.
4607 * cli/cli-utils.h (get_ulongest): Declare.
4608 (check_for_argument): New overloads.
4609 * maint-test-options.c: New file.
4611 2019-06-13 Pedro Alves <palves@redhat.com>
4613 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4614 parse a range if "-" is at the end of the string.
4616 2019-06-13 Pedro Alves <palves@redhat.com>
4618 * cli/cli-setshow.c (parse_auto_binary_operation)
4619 (parse_cli_boolean_value): Don't allow "o".
4621 2019-06-13 Pedro Alves <palves@redhat.com>
4623 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4624 * NEWS: Mention maint test-settings KIND.
4625 * maint-test-settings.c: New file.
4627 2019-06-13 Pedro Alves <palves@redhat.com>
4629 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4631 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4634 2019-06-13 Pedro Alves <palves@redhat.com>
4636 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4639 2019-06-13 Pedro Alves <palves@redhat.com>
4641 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4643 2019-06-13 Pedro Alves <palves@redhat.com>
4645 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4646 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4648 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4649 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4651 (check_for_argument): Skip spaces after argument.
4653 2019-06-13 Pedro Alves <palves@redhat.com>
4655 * thread.c (thread_apply_command): Adjust TID parsing.
4656 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4657 detected before end of string.
4658 (tid_is_in_list): Error out if LIST is invalid.
4660 2019-06-13 Pedro Alves <palves@redhat.com>
4662 * completer.c (complete_line_internal_1): Rewind completion word
4664 (completion_tracker::advance_custom_word_point_by): Change
4665 parameter type to int.
4666 * completer.h (completion_tracker::advance_custom_word_point_by):
4669 2019-06-13 Pedro Alves <palves@redhat.com>
4671 * completer.c (advance_to_completion_word): Handle delimiters.
4673 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4675 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4677 2019-06-11 Tom Tromey <tom@tromey.com>
4679 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4680 (xmalloc_failed): Move to alloc.c.
4681 * alloc.c: New file.
4682 * Makefile.in (COMMON_SFILES): Add alloc.c.
4684 2019-06-11 Tom Tromey <tom@tromey.com>
4686 * nat/linux-waitpid.c: Don't include server.h.
4687 (linux_debug): Remove.
4688 (my_waitpid): Update.
4690 2019-06-11 Tom Tromey <tromey@adacore.com>
4692 * infcall.c (_initialize_infcall): Remove trailing newline from
4694 * user-regs.c (_initialize_user_regs): Remove trailing newline
4696 * typeprint.c (_initialize_typeprint): Remove trailing newline
4698 * reverse.c (_initialize_reverse): Remove trailing newlines from
4700 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4702 * language.c (add_set_language_command): Remove trailing newline
4704 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4706 * disasm.c (_initialize_disasm): Remove trailing newline from
4708 * top.c (init_main): Remove trailing newline from help.
4709 * interps.c (_initialize_interpreter): Remove trailing newline
4711 * btrace.c (_initialize_btrace): Remove trailing newlines from
4713 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4715 * python/python.c (_initialize_python): Remove trailing newline
4717 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4719 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4720 from help. Reformat some text.
4721 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4723 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4726 2019-06-11 Tom Tromey <tromey@adacore.com>
4728 * darwin-nat.c (darwin_decode_exception_message)
4729 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4731 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4733 * valops.c (value_slice): Check for not allocated or not
4736 2019-06-10 Tom de Vries <tdevries@suse.de>
4739 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4740 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4743 2019-06-10 Tom de Vries <tdevries@suse.de>
4746 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4747 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4749 2019-06-10 Tom de Vries <tdevries@suse.de>
4752 * symtab.c (struct demangled_name_entry): Add language field.
4753 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4754 static minimal symbol". Set and use language field.
4756 2019-06-10 Tom Tromey <tromey@adacore.com>
4758 * ada-lang.c (_initialize_ada_language): Update help text.
4760 2019-06-10 Tom Tromey <tromey@adacore.com>
4762 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4764 * guile/guile.c (handle_boot_error): Don't end warning with a
4766 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4767 warning with a newline.
4768 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4770 (s12z_frame_cache): Likewise.
4771 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4773 * solib-svr4.c (disable_probes_interface): Don't end warning with
4775 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4777 * python/python.c (do_finish_initialization): Don't end warning
4780 2019-06-10 Tom Tromey <tom@tromey.com>
4782 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4783 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4786 2019-06-10 Tom Tromey <tromey@adacore.com>
4788 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4790 (elf_new_init): Don't call stabsread_new_init.
4791 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4792 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4793 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4795 2019-06-10 Tom de Vries <tdevries@suse.de>
4799 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4801 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4803 * source.c (find_and_open_source): Also rewrite relative file
4806 2019-04-26 Amos Bird <amosbird@gmail.com>
4808 * annotate.c (annotate_thread_exited): Add "thread-exited"
4811 2019-06-06 Tom Tromey <tromey@adacore.com>
4813 * maint.h (class scoped_command_stats): Use
4814 DISABLE_COPY_AND_ASSIGN.
4815 <print_time>: New method.
4816 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4818 (scoped_command_stats::print_time): New method.
4820 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4822 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4823 instructions of lengths 6 or 8 bytes.
4825 2019-06-04 Pedro Alves <palves@redhat.com>
4827 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4829 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4830 * breakpoint.c (condition_completer): Likewise.
4831 * cli/cli-dump.c (scan_expression): Likewise.
4832 * common/filestuff.c (mkdir_recursive): Likewise.
4833 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4834 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4835 (gdb_abspath): Likewise.
4836 * compile/compile-cplus-types.c
4837 (compile_cplus_instance::decl_name): Likewise.
4838 * completer.c (complete_explicit_location):
4839 (signal_completer, reg_or_group_completer_1): Likewise.
4840 * cp-support.c (cp_remove_params_if_any): Likewise.
4841 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4842 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4843 * infcmd.c (strip_bg_char): Likewise.
4844 * linespec.c (copy_token_string): Likewise.
4845 * mi/mi-main.c (output_cores): Likewise.
4846 * psymtab.c (psymtab_search_name):
4847 * symfile.c (test_set_ext_lang_command): Likewise.
4848 * target.c (target_fileio_read_stralloc): Likewise.
4849 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4850 * value.c (complete_internalvar): Likewise.
4852 2019-06-04 Christian Biesinger <cbiesinger@google.com>
4854 Add objfile property to gdb.Type.
4855 * NEWS: Mention Python API addition.
4856 * python/py-type.c (typy_get_objfile): New method.
4858 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4860 * NEWS: Mention the new set|show style [title|highlight].
4861 Mention changes to "show style", "help" and "apropos".
4863 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4865 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4866 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4867 instead of print_help_for_command.
4868 (print_doc_of_command): New function.
4869 (help_list): Add 'apropos -v word' suggestion.
4870 (print_help_for_command): Style the command name using title style.
4871 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4872 (_initialize_cli_cmds): Describe -v in apropos_command help.
4874 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4876 * cli/cli-style.h (cli_style_option): Add name in constructor,
4877 add m_name class member, add constructor with intensity,
4878 add name class function.
4879 (cli_style_option::add_setshow_commands): Remove name argument.
4880 (highlight_style, title_style): New styles.
4881 * cli/cli-style.c (do_show): New function that shows a style
4882 characteristic styling the style name with itself.
4883 (set_style_name): New function.
4884 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4885 Update all callers according to the changes in cli/cli-style.h.
4886 * utils.h (fputs_highlighted): New function.
4887 * utils.c (fputs_highlighted): Likewise.
4889 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4891 * NEWS: Mention new pipe command and new convenience variables.
4893 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4895 * cli/cli-cmds.c (pipe_command): New function.
4896 (_initialize_cli_cmds): Call add_com for pipe_command.
4897 Define | as an alias for pipe.
4898 (exit_status_set_internal_vars): New function.
4899 (shell_escape): Call exit_status_set_internal_vars.
4900 cli/cli-decode.c (find_command_name_length): Recognize | as
4901 a single character command.
4903 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4905 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4906 top.c (execute_command_to_ui_file): New function, mostly a copy
4907 of execute_command_to_string.
4908 (execute_command_to_string): Implement by calling
4909 execute_command_to_ui_file.
4911 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4913 * top.h (saved_command_line): Remove declaration.
4914 * top.c (previous_saved_command_line, previous_repeat_arguments):
4916 (saved_command_line): Make static, define together with other
4918 (dont_repeat): Clear repeat_arguments.
4919 (repeat_previous, get_saved_command_line, save_command_line):
4921 (gdb_init): Initialize saved_command_line
4922 and previous_saved_command_line.
4923 * main.c (captured_main_1): Remove saved_command_line initialization.
4924 * event-top.c (handle_line_of_input): Update to use
4925 the new 'repeat' related functions instead of direct access to
4927 * command.h (repeat_previous, get_saved_command_line,
4928 save_command_line): New declarations.
4929 (dont_repeat): Add comment.
4931 2019-05-30 Tom Tromey <tromey@adacore.com>
4933 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4935 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4937 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4940 * completer.c (complete): Initialize variable word.
4942 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4944 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4945 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4946 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4947 'body' is NULL to the outter 'if', protecting the '!is_define'
4950 2019-05-29 Tom Tromey <tromey@adacore.com>
4952 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4953 (dwarf_unknown): New function.
4954 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4955 (dwarf_type_encoding_name): Use dwarf_unknown.
4957 2019-05-29 Tom Tromey <tromey@adacore.com>
4960 * cp-valprint.c (cp_print_value_fields): Call
4961 cp_print_static_field inside "try".
4963 2019-05-29 Tom Tromey <tromey@adacore.com>
4965 * inflow.c (struct terminal_info): Add default operator=.
4966 * configure: Rebuild.
4967 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4968 -Wdeprecated-copy-dtor, -Wredundant-move.
4970 2019-05-29 Tom Tromey <tromey@adacore.com>
4973 * infcmd.c (print_return_value_1): Handle finish_print
4975 (show_print_finish): New function.
4976 (_initialize_infcmd): Add "set/show print finish" commands.
4977 * valprint.c (user_print_options): Initialize new member.
4978 * valprint.h (struct value_print_options) <finish_print>: New
4981 2019-05-28 Tom Tromey <tromey@adacore.com>
4983 * ada-lang.c (ada_remove_Xbn_suffix)
4984 (find_old_style_renaming_symbol)
4985 (parse_old_style_renaming): Remove.
4986 (ada_find_renaming_symbol): Don't call
4987 find_old_style_renaming_symbol.
4988 (ada_is_renaming_symbol): Rename from
4989 ada_find_renaming_symbol. Remove "block" parameter. Return
4991 (ada_read_var_value): Update and simplify.
4992 * ada-exp.y (write_var_or_type): Remove old code.
4994 2019-05-28 Alan Hayward <alan.hayward@arm.com>
4996 * event-top.c: Remove include comment.
4997 * inflow.c (class scoped_ignore_sigttou): Move from here...
4998 * inflow.h (class scoped_ignore_sigttou): ...to here.
4999 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5000 * top.c: Remove include comment.
5002 2019-05-27 Tom Tromey <tom@tromey.com>
5006 2019-05-22 Tom Tromey <tromey@adacore.com>
5008 * target.c (target_follow_exec): Constify parameter.
5009 * target-delegates.c: Rebuild.
5010 * remote.c (remote_target::follow_exec): Constify parameter.
5011 * infrun.c (follow_exec): Constify parameter.
5012 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5013 (target_follow_exec): Likewise.
5015 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5017 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5018 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5020 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5022 * NEWS: Add debugredirect and testsuite sections.
5024 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5026 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5027 target descriptions using exclusively floating point register name
5030 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5033 * f-lang.c (build_fortran_types): Handle the case where
5034 gdbarch_floatformat_for_type returns a nullptr.
5036 2019-05-21 Tom de Vries <tdevries@suse.de>
5039 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5041 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5044 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5046 * i386-tdep.c (i386_floatformat_for_type): Use
5047 floatformats_ia64_quad for the 16-byte floating point component
5048 within a fortran 32-byte complex number.
5050 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5052 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5053 delete default constructor.
5054 (find_partial_die): Update to return const struct.
5055 (partial_die_parent_scope): Move variable declaration into scope
5056 of its use and change its type to auto.
5057 (guess_partial_die_structure_name): Likewise.
5058 (partial_die_info::fixup): Likewise.
5060 2019-05-17 Tom Tromey <tromey@adacore.com>
5062 * source.c (find_and_open_source): Remove cast.
5064 2019-05-17 Tom Tromey <tromey@adacore.com>
5066 * annotate.c (annotate_source): Make "filename" const.
5067 * annotate.h (annotate_source): Use const.
5069 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5071 * disasm.c (set_disassembler_options): Send errors to stderr.
5073 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5075 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5076 (cli_interp_base::set_logging): Check debug_redirect.
5077 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5078 * cli/cli-logging.c (debug_redirect): Add static variable.
5079 (pop_output_files): Add default param.
5080 (handle_redirections): Print debug setting.
5081 (show_logging_command): Likewise.
5082 (_initialize_cli_logging): Add debugredirect command.
5083 * interps.c (current_interp_set_logging): Add debug_redirect
5085 * interps.h (set_logging): Add debug_redirect parameter.
5086 (current_interp_set_logging): Likewise.
5087 * mi/mi-common.h: Likewise.
5088 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5090 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5091 Tom Tromey <tromey@adacore.com>
5093 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5095 * cli/cli-interp.h (make_logging_output): Remove declaration.
5096 * cli/cli-logging.c (make_logging_output): Remove function.
5097 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5099 * ui-file.c (tee_file::tee_file): Remove bools.
5100 (tee_file::~tee_file): Remove deletes.
5101 * ui-file.h (tee_file): Remove bools.
5103 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5105 * mi/mi-cmds.h (mi_cmd_complete): New function.
5106 * mi/mi-main.c (mi_cmd_complete): Likewise.
5107 * mi/mi-cmds.c: Define new MI command -complete.
5108 * NEWS: Mention new -complete command.
5110 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5112 * completer.h (complete): New function.
5113 * completer.c (complete): Likewise.
5114 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5115 function defined in completer.h.
5117 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5119 * MAINTAINERS (Write After Approval): Add myself.
5121 2019-05-17 Tom de Vries <tdevries@suse.de>
5124 * dwarf2read.c (struct cu_partial_die_info): New struct.
5125 (find_partial_die): Return cu_partial_die_info.
5126 (partial_die_parent_scope, guess_partial_die_structure_name)
5127 (partial_die_info::fixup): Handle new return type of find_partial_die.
5129 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5131 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5132 "std::string", simplifying the algorithm.
5134 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5136 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5137 (stap_static_probe_ops::get_probes): Likewise.
5139 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5141 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5142 '-')" and "else if".
5143 (stap_parse_single_operand): Join checks for
5144 "gdbarch_stap_parse_special_token_p" and
5145 "gdbarch_stap_parse_special_token" in the same "if" statement.
5146 Invert check when verifying for operation on register
5149 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5151 * stap-probe.c (stap_get_opcode): Update comment.
5152 (stap_get_expected_argument_type): Likewise.
5153 (handle_stap_probe): Likewise.
5155 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5157 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5158 return type to 'bool'. Adjust comment. Use 'bool' when
5160 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5161 * stap-probe.c (stap_parse_argument_1): Likewise.
5162 (stap_is_operator): Likewise.
5163 (stap_is_generic_prefix): Likewise.
5164 (stap_is_register_prefix): Likewise.
5165 (stap_is_register_indirection_prefix): Likewise.
5166 (stap_is_integer_prefix): Likewise.
5167 (stap_generic_check_suffix): Likewise.
5168 (stap_check_integer_suffix): Likewise.
5169 (stap_check_register_suffix): Likewise.
5170 (stap_check_register_indirection_suffix): Likewise.
5171 (stap_parse_register_operand): Likewise.
5172 (stap_parse_single_operand): Likewise.
5173 (stap_parse_argument_1): Likewise.
5174 (stap_probe::get_argument_count): Likewise.
5175 (stap_is_operator): Likewise.
5177 2019-05-16 Tom Tromey <tromey@adacore.com>
5179 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5182 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5184 * linux-thread-db.c (try_thread_db_load_1): Change return type
5186 (try_thread_db_load): Likewise.
5187 (try_thread_db_load_from_pdir_1): Likewise.
5188 (try_thread_db_load_from_pdir): Likewise.
5189 (try_thread_db_load_from_sdir): Likewise.
5190 (try_thread_db_load_from_dir): Likewise.
5191 (thread_db_load_search): Likewise.
5192 (has_libpthread): Likewise.
5193 (thread_db_load): Likewise.
5195 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5197 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5198 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5199 NULL, and complain/return if that's the case.
5201 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5203 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5204 (advance, posn, abstract_read_memory): New functions.
5205 [struct mem_read_abstraction]: New struct.
5206 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5208 2019-05-14 Tom Tromey <tromey@adacore.com>
5210 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5211 value is not lval_memory.
5213 2019-05-14 Tom Tromey <tromey@adacore.com>
5215 * solib.c (info_sharedlibrary_command): Style the file name.
5217 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5219 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5220 (aarch64_vnv_type): Likewise.
5221 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5222 * common/tdesc.c: Likewise.
5223 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5224 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5225 * features/aarch64-fpu.xml: Add ieee half view.
5226 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5227 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5228 * gdbtypes.h (struct builtin_type): Likewise.
5229 (struct objfile_type): Likewise.
5231 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5233 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5235 * location.h (string_to_event_location): Likewise.
5237 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5241 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5243 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5244 New variable declaration.
5245 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5247 (print_one_breakpoint): Use ui_out::test_flags and new global
5248 variable to compute use_fixed_output.
5249 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5251 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5252 (mi_multi_location_breakpoint_output_fixed): Remove.
5253 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5255 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5256 fix_multi_location_breakpoint_output flag if version >= 3.
5257 * ui-out.h (enum ui_out_flag)
5258 <fix_multi_location_breakpoint_output>: New enumerator.
5260 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5262 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5264 2019-05-10 Tom Tromey <tromey@adacore.com>
5266 * ada-lang.c (catch_ada_completer): New function.
5267 (_initialize_ada_language): Use it.
5269 2019-05-10 Tom Tromey <tromey@adacore.com>
5271 * thread.c (print_thread_info): Make "requested_threads" const.
5272 * gdbthread.h (print_thread_info): Make "requested_threads"
5274 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5275 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5277 2019-05-08 Tom Tromey <tom@tromey.com>
5279 * gdbtypes.c (objfile_type_data): Change type.
5280 (objfile_type, _initialize_gdbtypes): Update.
5282 2019-05-08 Tom Tromey <tom@tromey.com>
5284 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5285 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5286 (_initialize_dwarf2_frame): Update.
5288 2019-05-08 Tom Tromey <tom@tromey.com>
5290 * objc-lang.c (objc_objfile_data): Change type.
5291 (find_methods): Update.
5292 (_initialize_objc_lang): Remove.
5294 2019-05-08 Tom Tromey <tom@tromey.com>
5296 * stabsread.c (rs6000_builtin_type_data): Change type.
5297 (rs6000_builtin_type, _initialize_stabsread): Update.
5299 2019-05-08 Tom Tromey <tom@tromey.com>
5301 * mips-tdep.c (mips_pdr_data): Remove.
5302 (_initialize_mips_tdep): Update.
5304 2019-05-08 Tom Tromey <tom@tromey.com>
5306 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5307 (hppa_init_objfile_priv_data, read_unwind_info)
5308 (find_unwind_entry, _initialize_hppa_tdep): Update.
5310 2019-05-08 Tom Tromey <tom@tromey.com>
5312 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5313 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5315 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5317 2019-05-08 Tom Tromey <tom@tromey.com>
5319 * mdebugread.c (basic_type_data): Change type.
5320 (basic_type, _initialize_mdebugread): Update.
5322 2019-05-08 Tom Tromey <tom@tromey.com>
5324 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5326 2019-05-08 Tom Tromey <tom@tromey.com>
5328 * nto-tdep.c (nto_inferior_data_reg): Change type.
5329 (nto_inferior_data): Update.
5330 (nto_inferior_data_cleanup, nto_new_inferior_data)
5331 (_initialize_nto_tdep): Remove.
5332 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5334 2019-05-08 Tom Tromey <tom@tromey.com>
5336 * ada-lang.c (struct ada_inferior_data): Add initializers.
5337 (ada_inferior_data): Change type.
5338 (ada_inferior_data_cleanup): Remove.
5339 (get_ada_inferior_data, ada_inferior_exit)
5340 (struct ada_pspace_data): Add initializers, destructor.
5341 (ada_pspace_data_handle): Change type.
5342 (get_ada_pspace_data): Update.
5343 (ada_pspace_data_cleanup): Remove.
5345 2019-05-08 Tom Tromey <tom@tromey.com>
5347 * coffread.c (struct coff_symfile_info): Add initializers.
5348 (coff_objfile_data_key): Move lower. Change type.
5349 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5351 (coff_free_info): Remove.
5353 2019-05-08 Tom Tromey <tom@tromey.com>
5355 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5356 (fbsd_pspace_data_handle): Move lower. Change type.
5357 (get_fbsd_pspace_data): Update.
5358 (fbsd_pspace_data_cleanup): Remove.
5359 (_initialize_fbsd_tdep): Update.
5361 2019-05-08 Tom Tromey <tom@tromey.com>
5363 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5364 (get_ada_tasks_pspace_data): Update.
5365 (ada_tasks_pspace_data_cleanup): Remove.
5366 (_initialize_tasks): Update.
5367 (ada_tasks_inferior_data_handle): Change type.
5368 (get_ada_tasks_inferior_data): Update.
5369 (ada_tasks_inferior_data_cleanup): Remove.
5370 (struct ada_tasks_pspace_data): Add initializers.
5372 2019-05-08 Tom Tromey <tom@tromey.com>
5374 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5375 * symfile-debug.c (debug_sym_get_probes): Change type.
5376 * stap-probe.c (handle_stap_probe):
5377 (stap_static_probe_ops::get_probes): Change type.
5378 * probe.h (class static_probe_ops) <get_probes>: Change type.
5379 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5380 (parse_probes_in_pspace): Update.
5381 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5383 (any_static_probe_ops::get_probes): Change type.
5384 * elfread.c (elfread_data): New typedef.
5385 (probe_key): Change type.
5386 (elf_get_probes): Likewise. Update.
5387 (probe_key_free): Remove.
5388 (_initialize_elfread): Update.
5389 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5391 (dtrace_process_dof_probe, dtrace_process_dof)
5392 (dtrace_static_probe_ops::get_probe): Change type.
5394 2019-05-08 Tom Tromey <tom@tromey.com>
5396 * xcoffread.c (struct xcoff_symfile_info): Rename from
5397 coff_symfile_info. Add initializers.
5398 (xcoff_objfile_data_key): Move lower. Change type.
5399 (XCOFF_DATA): Rewrite.
5400 (xcoff_free_info): Remove.
5401 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5402 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5403 (xcoff_initial_scan): Update.
5405 2019-05-08 Tom Tromey <tom@tromey.com>
5407 * solib-svr4.c (struct svr4_info): Add initializers and
5409 <probes_table>: Now an htab_up.
5410 (solib_svr4_pspace_data): Change type.
5411 (free_probes_table): Simplify.
5412 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5413 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5414 (probes_table_remove_objfile_probes, register_solib_event_probe)
5415 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5416 (_initialize_svr4_solib): Update.
5418 2019-05-08 Tom Tromey <tom@tromey.com>
5420 * remote.c (remote_pspace_data): Change type.
5421 (remote_pspace_data_cleanup): Remove.
5422 (get_remote_exec_file, set_pspace_remote_exec_file)
5423 (_initialize_remote): Update.
5425 2019-05-08 Tom Tromey <tom@tromey.com>
5427 * breakpoint.c (breakpoint_objfile_key): Change type.
5428 (get_breakpoint_objfile_data): Update.
5429 (free_breakpoint_objfile_data): Remove.
5430 (_initialize_breakpoint): Update.
5432 2019-05-08 Tom Tromey <tom@tromey.com>
5434 * linux-tdep.c (struct linux_info): Add initializers.
5435 (linux_inferior_data): Move. Change type.
5436 (invalidate_linux_cache_inf): Update.
5437 (linux_inferior_data_cleanup): Remove.
5438 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5440 2019-05-08 Tom Tromey <tom@tromey.com>
5442 * auxv.c (auxv_inferior_data): Move. Change type.
5443 (auxv_inferior_data_cleanup): Remove.
5444 (invalidate_auxv_cache_inf): Rewrite.
5445 (get_auxv_inferior_data, _initialize_auxv): Update.
5447 2019-05-08 Tom Tromey <tom@tromey.com>
5449 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5450 (symfile_debug_objfile_data_key): Change type.
5451 (symfile_debug_installed, debug_qf_has_symbols)
5452 (debug_qf_find_last_source_symtab)
5453 (debug_qf_forget_cached_source_info)
5454 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5455 (debug_qf_print_stats, debug_qf_dump)
5456 (debug_qf_expand_symtabs_for_function)
5457 (debug_qf_expand_all_symtabs)
5458 (debug_qf_expand_symtabs_with_fullname)
5459 (debug_qf_map_matching_symbols)
5460 (debug_qf_expand_symtabs_matching)
5461 (debug_qf_find_pc_sect_compunit_symtab)
5462 (debug_qf_map_symbol_filenames)
5463 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5464 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5465 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5466 (debug_sym_read_linetable, debug_sym_relocate): Update.
5467 (symfile_debug_free_objfile): Remove.
5468 (install_symfile_debug_logging, _initialize_symfile_debug):
5471 2019-05-08 Tom Tromey <tom@tromey.com>
5473 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5474 allocate_on_obstack.
5475 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5476 (get_dwarf2_per_objfile): Update.
5477 (set_dwarf2_per_objfile): Remove.
5478 (dwarf2_has_info, dwarf2_get_section_info): Update.
5479 (dwarf2_free_objfile): Remove.
5480 (_initialize_dwarf2_read): Update.
5482 2019-05-08 Tom Tromey <tom@tromey.com>
5484 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5486 <unsupported_script_warning_printed,
5487 script_not_found_warning_printed>: Now bool.
5488 (auto_load_pspace_data): Change type.
5489 (~auto_load_pspace_info): Rename from
5490 auto_load_pspace_data_cleanup.
5491 (get_auto_load_pspace_data, init_loaded_scripts_info)
5492 (clear_section_scripts, maybe_print_unsupported_script_warning)
5493 (maybe_print_script_not_found_warning, _initialize_auto_load):
5496 2019-05-08 Tom Tromey <tom@tromey.com>
5498 * objfiles.c (objfile_pspace_info): Add destructor and
5500 (objfiles_pspace_data): Change type.
5501 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5502 (get_objfile_pspace_data): Update.
5503 (objfiles_bfd_data): Change type.
5504 (get_objfile_bfd_data): Update.
5505 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5507 2019-05-08 Tom Tromey <tom@tromey.com>
5509 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5511 (get_catch_syscall_inferior_data): Update.
5512 (catch_syscall_inferior_data_cleanup): Remove.
5513 (_initialize_break_catch_syscall): Update.
5515 2019-05-08 Tom Tromey <tom@tromey.com>
5517 * inflow.c (struct terminal_info): Add destructor and
5519 (inflow_inferior_data): Change type.
5520 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5521 (get_inflow_inferior_data, inflow_inferior_exit)
5522 (swap_terminal_info, _initialize_inflow): Update.
5524 2019-05-08 Tom Tromey <tom@tromey.com>
5526 * target-dcache.c (target_dcache_cleanup): Remove.
5527 (target_dcache_aspace_key): Change type.
5528 (target_dcache_init_p, target_dcache_invalidate)
5529 (target_dcache_get, target_dcache_get_or_init)
5530 (_initialize_target_dcache): Update.
5531 * dcache.h (struct dcache_deleter): New.
5533 2019-05-08 Tom Tromey <tom@tromey.com>
5535 * symtab.c (struct symbol_cache): Add destructor and
5537 (symbol_cache_key): Move. Change type.
5538 (make_symbol_cache, free_symbol_cache): Remove.
5539 (get_symbol_cache): Update.
5540 (symbol_cache_cleanup): Remove.
5541 (ALL_PSPACES, symbol_cache_flush)
5542 (maintenance_print_symbol_cache)
5543 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5546 2019-05-08 Tom Tromey <tom@tromey.com>
5548 * symtab.c (struct main_info): Add destructor and initializers.
5549 (main_progspace_key): Move. Change type.
5550 (get_main_info): Update.
5551 (main_info_cleanup): Remove.
5552 (_initialize_symtab): Update.
5554 2019-05-08 Tom Tromey <tom@tromey.com>
5556 * registry.h (DECLARE_REGISTRY): Define the _key class.
5558 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5560 * NEWS: Merge two 'New commands' sections.
5562 2019-05-08 Joel Brobecker <brobecker@adacore.com>
5564 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5565 parameter and use Ada language definition instead.
5566 (ada_val_print_ptr): Remove unused language parameter.
5567 (ada_val_print_num): Remove language parameter and use Ada language
5569 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5571 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5572 parameter and use Ada language definition instead.
5573 (ada_val_print_1): Update all ada_val_print_xxx calls.
5574 Remove language parameter.
5575 (ada_val_print): Update ada_val_print_1 call.
5577 2019-05-08 Tom Tromey <tromey@adacore.com>
5579 * remote.c (remote_hw_watchpoint_limit)
5580 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5583 2019-05-08 Tom Tromey <tromey@adacore.com>
5585 * maint.c (_initialize_maint_cmds): Move initialization code to
5587 (watchdog, show_watchdog): Move to remote.c.
5588 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5590 (_initialize_remote): Move initialization code from maint.c.
5591 * defs.h (watchdog): Don't declare.
5593 2019-05-08 Tom Tromey <tromey@adacore.com>
5595 * tui/tui-interp.c: Include main.h.
5596 * interps.c: Include main.h.
5597 * main.h (interpreter_p): Declare.
5598 * defs.h (interpreter_p): Don't declare.
5600 2019-05-08 Tom Tromey <tromey@adacore.com>
5602 * dwarf2loc.c: Include dwarf2read.h.
5603 * defs.h (read_unsigned_leb128): Don't declare.
5604 * dwarf2read.h (read_unsigned_leb128): Declare.
5606 2019-05-08 Tom Tromey <tromey@adacore.com>
5608 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5611 2019-05-08 Tom Tromey <tromey@adacore.com>
5613 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5614 when no wrap column is set.
5616 2019-05-08 Tom Tromey <tromey@adacore.com>
5618 * c-lang.c (c_get_string): Handle non-C-style arrays.
5620 2019-05-08 Tom Tromey <tromey@adacore.com>
5622 * typeprint.c (print_offset_data::update): Print the bit offset,
5623 not the number of bits remaining.
5625 2019-05-08 Tom Tromey <tromey@adacore.com>
5627 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5628 padding at end of comment.
5630 2019-05-08 Tom Tromey <tromey@adacore.com>
5632 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5635 2019-05-06 Tom Tromey <tom@tromey.com>
5637 * common/scoped_mmap.c: Include common-defs.h.
5638 * common/scoped_mmap.h: Don't include config.h.
5640 2019-05-04 Tom Tromey <tom@tromey.com>
5642 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5643 (struct aarch64_call_info): Add initializers.
5644 <si>: Now a std::vector.
5645 (pass_on_stack, aarch64_push_dummy_call): Update.
5647 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
5648 Tom Tromey <tom@tromey.com>
5650 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5651 (ppc_threads): Now a std::vector. Now static.
5652 (hwdebug_find_thread_points_by_tid)
5653 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5656 2019-05-04 Tom Tromey <tom@tromey.com>
5658 * arc-tdep.c (arc_tdesc_init): Return bool.
5660 2019-05-04 Tom Tromey <tom@tromey.com>
5662 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5663 Use gdb_assert_not_reached.
5665 2019-05-04 Tom Tromey <tom@tromey.com>
5667 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5670 2019-05-04 Tom Tromey <tom@tromey.com>
5672 * arc-tdep.c (arc_tdesc_init): Use bool.
5674 2019-05-04 Tom Tromey <tom@tromey.com>
5676 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5678 2019-05-04 Tom Tromey <tom@tromey.com>
5680 * cli/cli-cmds.c (valid_command_p): Return bool.
5682 2019-05-04 Tom Tromey <tom@tromey.com>
5684 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5685 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5687 2019-05-04 Raul Tambre <raul@tambre.ee>
5689 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5690 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5691 operator for comparison.
5693 2019-05-04 Tom Tromey <tom@tromey.com>
5695 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5696 (lookup_partial_symbol, print_partial_symbols)
5697 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5698 (psymbol_compare): Update.
5699 (add_psymbol_to_bcache): Clear the entire psymbol.
5700 (maintenance_check_psymtabs): Update.
5701 * psympriv.h (struct partial_symbol): Don't derive from
5702 general_symbol_info.
5703 <obj_section, unrelocated_address, address,
5704 set_unrelocated_address>: Update.
5705 <ginfo>: New member.
5706 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5707 (debug_names::write_psymbols): Update.
5709 2019-05-04 Tom de Vries <tdevries@suse.de>
5711 * contrib/cc-with-tweaks.sh: Support -n arg.
5713 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5715 * corelow.c (core_target::detach): Ensure frame cache and
5716 register caches are cleared.
5717 inferior.c (exit_inferior_1): Likewise.
5719 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5720 Tom Tromey <tom@tromey.com>
5722 * dictionary.c (collate_pending_symbols_by_language): Remove
5723 "struct" from foreach.
5724 * symtab.c (lookup_global_symbol_from_objfile)
5725 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5727 * ser-tcp.c (net_open): Remove "struct" from foreach.
5728 * objfiles.c (objfile_relocate, objfile_rebase)
5729 (objfile_has_symbols): Remove "struct" from foreach.
5730 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5732 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5734 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5735 "struct" from foreach.
5736 * ada-lang.c (create_excep_cond_exprs)
5737 (ada_exception_catchpoint_cond_string): Remove "struct" from
5740 2019-05-03 Tom Tromey <tromey@adacore.com>
5742 * ada-exp.y (convert_char_literal): Check suffix of each
5745 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5748 * ada-exp.y (yywrap): Don't define.
5749 * ada-lex.l (%option): Add noyywrap
5752 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5754 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5755 _WIN32_WINNT to the XP level, unless already defined to a higher
5758 * unittests/parse-connection-spec-selftests.c:
5760 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5763 * symfile.c (find_separate_debug_file): Remove colon from the
5764 drive spec of DOS/Windows file names of the target, so that the
5765 file name produced from DEBUGDIR and the target's directory will
5766 be valid on DOS/Windows systems.
5768 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5770 * rust-lang.c (val_print_struct): Handle printing structures
5773 2019-05-02 Tom Tromey <tromey@adacore.com>
5775 * valarith.c (_initialize_valarith): Remove.
5777 2019-05-01 Tom Tromey <tromey@adacore.com>
5779 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5782 2019-05-01 Tom Tromey <tromey@adacore.com>
5784 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5785 for big-endian copies.
5787 2019-04-30 Ali Tamur <tamur@google.com>
5788 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5789 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5790 (read_3_bytes): New function.
5792 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5794 * windows-nat.c (main_thread_id): Delete.
5795 (handle_output_debug_string): Replace main_thread_id by
5796 current_event.dwThreadId.
5797 (fake_create_process): Likewise.
5798 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5799 Do not set main_thread_id.
5800 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5801 current_event.dwThreadId.
5802 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5804 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5806 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5807 Use current_event.dwThreadId instead of main_thread_id.
5809 2019-04-30 Tom Tromey <tromey@adacore.com>
5811 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5812 (create_excep_cond_exprs): Iterate over program spaces.
5813 (ada_exception_catchpoint_cond_string): Examine all minimal
5814 symbols for exception types.
5816 2019-04-30 Tom Tromey <tromey@adacore.com>
5819 * dwarf2read.c (process_structure_scope): Handle case where type
5820 has template parameters but no symbol was created.
5822 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5823 Chris January <chris.january@arm.com>
5825 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5827 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5829 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5831 * f-typeprint.c (f_print_type): Update rules for printing
5833 (f_type_print_varspec_suffix): Likewise.
5835 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5836 Chris January <chris.january@arm.com>
5838 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5841 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5843 * f-lang.c (build_fortran_types): Change name of void type to
5845 * f-typeprint.c (f_type_print_base): Print the name of the void
5846 type, rather than a fixed string.
5847 * f-valprint.c (f_decorations): Use lower case void string.
5849 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5850 Chris January <chris.january@arm.com>
5852 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5855 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5856 Chris January <chris.january@arm.com>
5857 David Lecomber <david.lecomber@arm.com>
5859 * f-exp.y (BINOP_INTRINSIC): New token.
5860 (exp): New parser rule handling BINOP_INTRINSIC.
5861 (f77_keywords): Add new builtin procedures.
5862 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5863 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5864 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5865 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5866 (print_unop_subexp_f): New function.
5867 (print_binop_subexp_f): New function.
5868 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5869 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5870 (dump_subexp_body_f): Likewise.
5871 (operator_check_f): Likewise.
5872 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5873 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5875 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5877 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5879 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5880 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5881 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5882 (operator_length_f): New fuction.
5883 (print_subexp_f): New function.
5884 (op_name_f): New function.
5885 (dump_subexp_body_f): New function.
5886 (operator_check_f): New function.
5887 (exp_descriptor_f): Replace standard expression handling functions
5889 * gdb/fortran-operator.def: New file.
5890 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5891 * gdb/std-operator.def: Remove UNOP_KIND.
5893 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5895 * std-operator.def: Remove unbalanced, stray double quote
5898 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5899 Chris January <chris.january@arm.com>
5900 Daniel Everett <daniel.everett@arm.com>
5901 Nick Forrington <nick.forrington@arm.com>
5902 Richard Bunt <richard.bunt@arm.com>
5904 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5905 of depth when printing anonymous structs or unions.
5906 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5907 Don't print either the top-level value, or the children if the
5908 max-depth is exceeded.
5909 (ppscm_print_children): When printing the key of a map, allow one
5910 extra level of depth.
5911 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5912 print either the top-level value, or the children if the max-depth
5914 (print_children): When printing the key of a map, allow one extra
5916 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5917 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5918 (user_print_options): Initialise max_depth field.
5919 (val_print_scalar_or_string_type_p): New function.
5920 (val_print): Check to see if the max depth has been reached.
5921 (val_print_check_max_depth): Define new function.
5922 (show_print_max_depth): New function.
5923 (_initialize_valprint): Add 'print max-depth' option.
5924 * valprint.h (struct value_print_options) <max_depth>: New field.
5925 (val_print_check_max_depth): Declare new function.
5926 * NEWS: Document new feature.
5928 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5930 * ada-lang.c (ada_language_defn): Initialise new field.
5931 * c-lang.c (c_is_string_type_p): New function.
5932 (c_language_defn): Initialise new field.
5933 (cplus_language_defn): Initialise new field.
5934 (asm_language_defn): Initialise new field.
5935 (minimal_language_defn): Initialise new field.
5936 * c-lang.h (c_is_string_type_p): Declare new function.
5937 * d-lang.c (d_language_defn): Initialise new field.
5938 * f-lang.c (f_is_string_type_p): New function.
5939 (f_language_defn): Initialise new field.
5940 * go-lang.c (go_is_string_type_p): New function.
5941 (go_language_defn): Initialise new field.
5942 * language.c (default_is_string_type_p): New function.
5943 (unknown_language_defn): Initialise new field.
5944 (auto_language_defn): Initialise new field.
5945 * language.h (struct language_defn) <la_is_string_type_p>: New
5947 (default_is_string_type_p): Declare new function.
5948 * m2-lang.c (m2_language_defn): Initialise new field.
5949 * objc-lang.c (objc_language_defn): Initialise new field.
5950 * opencl-lang.c (opencl_language_defn): Initialise new field.
5951 * p-lang.c (pascal_is_string_type_p): New function.
5952 (pascal_language_defn): Initialise new field.
5953 * rust-lang.c (rust_is_string_type_p): New function.
5954 (rust_language_defn): Initialise new field.
5956 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5958 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5960 * ada-lang.c (ada_language_defn): Initialise new field.
5961 * c-lang.c (c_language_defn): Likewise.
5962 (cplus_language_defn): Likewise.
5963 (asm_language_defn): Likewise.
5964 (minimal_language_defn): Likewise.
5965 * d-lang.c (d_language_defn): Likewise.
5966 * f-lang.c (f_language_defn): Likewise.
5967 * go-lang.c (go_language_defn): Likewise.
5968 * language.c (unknown_language_defn): Likewise.
5969 (auto_language_defn): Likewise.
5970 * m2-lang.c (m2_language_defn): Likewise.
5971 * objc-lang.c (objc_language_defn): Likewise.
5972 * opencl-lang.c (opencl_language_defn): Likewise.
5973 * p-lang.c (pascal_language_defn): Likewise.
5974 * rust-lang.c (rust_language_defn): Likewise.
5976 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5978 * ada-lang.c (ada_is_character_type): Change return type to bool.
5979 (ada_is_string_type): Likewise.
5980 * ada-lang.h (ada_is_character_type): Update declaration
5981 (ada_is_string_type): Likewise.
5983 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5985 Support style in 'frame|thread apply'
5987 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5988 * record.c (record_start, record_stop): Update callers of
5989 execute_command_to_string with false.
5990 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5991 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5993 (class string_file): New constructor with term_out parameter.
5994 Override methods term_out and can_emit_style_escape. New member
5996 (class stdio_file): Override can_emit_style_escape.
5997 (class tee_file): Override term_out and can_emit_style_escape.
5998 * utils.h (can_emit_style_escape): Remove.
5999 * utils.c (can_emit_style_escape): Likewise.
6000 Update all callers of can_emit_style_escape (SOMESTREAM) to
6001 SOMESTREAM->can_emit_style_escape.
6002 * source-cache.c (source_cache::get_source_lines): Likewise.
6003 * stack.c (frame_apply_command_count): Call execute_command_to_string
6004 passing the term_out characteristic of the current gdb_stdout.
6005 * thread.c (thr_try_catch_cmd): Likewise.
6006 * top.c (execute_command_to_string): pass term_out parameter
6007 to construct the string_file for the command output.
6008 * ui-file.c (term_cli_styling): New function (most code moved
6009 from utils.c can_emit_style_escape).
6010 (string_file::string_file, string_file::can_emit_style_escape,
6011 stdio_file::can_emit_style_escape, tee_file::term_out,
6012 tee_file::can_emit_style_escape): New functions.
6014 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6016 * NEWS: Mention the new set|show may-call-functions.
6017 * infcall.c (may_call_functions_p): New variable.
6018 (show_may_call_functions_p): New function.
6019 (call_function_by_hand_dummy): Throws an error if not
6021 (_initialize_infcall): Call add_setshow_boolean_cmd for
6024 2019-04-25 Keith Seitz <keiths@redhat.com>
6027 * cp-support.c (inspect_type): Don't attempt substitutions
6028 of symbol with the same name.
6030 2019-04-25 Tom Tromey <tromey@adacore.com>
6033 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6036 2019-04-25 Tom Tromey <tromey@adacore.com>
6038 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6040 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6041 (gdb_xml_parser::parse): Use std::move.
6042 * python/python-internal.h (gdbpy_convert_exception): Take a const
6044 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6046 * python/py-utils.c (gdbpy_convert_exception): Take a const
6048 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6050 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6052 * mi/mi-main.c (mi_print_exception): Take a const reference.
6053 * main.c (handle_command_errors): Take a const reference.
6054 * linespec.c (parse_linespec): Use std::move.
6055 * infcall.c (run_inferior_call): Use std::move.
6056 (call_function_by_hand_dummy): Use std::move.
6057 * exec.c (try_open_exec_file): Use std::move.
6058 * exceptions.h (exception_print, exception_fprintf)
6059 (exception_print_same): Update.
6060 * exceptions.c (print_exception, exception_print)
6061 (exception_fprintf, exception_print_same): Change parameters to
6063 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6064 * common/new-op.c: Use std::move.
6065 * common/common-exceptions.h (struct gdb_exception): Add move
6067 (struct gdb_exception_error, struct gdb_exception_quit, struct
6068 gdb_quit_bad_alloc): Change constructor to move constructor.
6069 (throw_exception): Change parameter to rvalue reference.
6070 * common/common-exceptions.c (throw_exception): Take rvalue
6072 * cli/cli-interp.c (safe_execute_command): Use std::move.
6073 * breakpoint.c (insert_bp_location, location_to_sals): Use
6076 2019-04-25 Tom Tromey <tromey@adacore.com>
6078 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6079 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6080 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6081 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6082 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6083 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6084 guile/scm-value.c: Use unpack.
6085 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6086 gdbscm_gdb_exception.
6087 (gdbscm_throw_gdb_exception): Likewise.
6088 (struct gdbscm_gdb_exception): New.
6089 (unpack): New function.
6090 (gdbscm_wrap): Use unpack.
6092 2019-04-25 Tom Tromey <tromey@adacore.com>
6094 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6095 (gdb_rl_callback_handler): Use std::move.
6096 * common/common-exceptions.h (struct gdb_exception): Add move
6097 assignment operator.
6098 (throw_exception_sjlj): Change "exception" to const reference.
6099 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6100 (throw_exception_sjlj): Change "exception" to const reference.
6102 2019-04-25 Tom Tromey <tromey@adacore.com>
6104 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6105 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6106 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6108 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6110 * mi/mi-interp.c (mi_interp::exec): Update.
6111 * linespec.c (parse_linespec): Update.
6112 * infcall.c (run_inferior_call): Update.
6113 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6114 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6115 (gdbscm_lookup_global_symbol): Update.
6116 * guile/scm-param.c (gdbscm_parameter_value): Update.
6117 * guile/scm-frame.c (gdbscm_frame_read_register)
6118 (gdbscm_frame_read_var): Update.
6119 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6120 * exec.c (try_open_exec_file): Update.
6121 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6122 (gdb_rl_callback_handler): Update.
6123 * common/common-exceptions.h (exception_none): Don't declare.
6124 * common/common-exceptions.c (exception_none): Don't define.
6125 (struct catcher) <exception>: Update.
6126 * cli/cli-interp.c (safe_execute_command): Update.
6127 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6129 2019-04-25 Ali Tamur <tamur@google.com>
6131 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6132 (read_attribute_value): Likewise.
6133 (dwarf2_read_addr_index): Update comment.
6134 (read_str_index): Add DW_FORM_strx.
6135 (dwarf2_string_attr): Likewise.
6136 (dwarf2_const_value_attr): Likewise.
6137 (dump_die_shallow): Likewise.
6138 (dwarf2_fetch_constant_bytes): Likewise.
6139 (skip_form_bytes): Likewise.
6140 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6142 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6146 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6147 OFFSET. Verify if current mapping contains an ELF header.
6148 (linux_find_memory_regions_full): Adjust call to
6151 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6152 Kang Li <kanglictf@gmail.com>
6156 * dwarf2-frame.c (read_initial_length): Be consistent about using
6157 unsigned representation of length.
6158 (decode_frame_entry_1): Likewise. Check for wraparound of
6159 end pointer as well as buffer overflow.
6161 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6163 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6166 2019-04-24 Tom Tromey <tromey@adacore.com>
6168 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6170 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6172 * s12z-tdep.c (s12z_unwind_pc): Delete.
6173 (s12z_unwind_sp): Delete.
6174 (s12z_gdbarch_init): Don't register deleted functions with
6177 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6179 * rl78-tdep.c (rl78_unwind_sp): Delete.
6180 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6182 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6184 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6185 (xstormy16_unwind_pc): Delete.
6186 (xstormy16_dummy_id): Delete.
6187 (xstormy16_gdbarch_init): Don't register deleted functions with
6190 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6192 * vax-tdep.c (vax_unwind_pc): Delete.
6193 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6195 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6197 * v850-tdep.c (v850_unwind_sp): Delete.
6198 (v850_unwind_pc): Delete.
6199 (v850_dummy_id): Delete.
6200 (v850_gdbarch_init): Don't register deleted functions with
6203 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6205 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6206 (tilegx_unwind_pc): Delete.
6207 (tilegx_unwind_dummy_id): Delete.
6208 (tilegx_gdbarch_init): Don't register deleted functions with
6211 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6213 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6214 (tic6x_dummy_id): Delete.
6215 (tic6x_gdbarch_init): Don't register deleted functions with
6218 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6220 * sparc-tdep.c (sparc_unwind_pc): Delete.
6221 (sparc32_gdbarch_init): Don't register deleted function with
6224 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6226 * sh-tdep.c (sh_unwind_sp): Delete.
6227 (sh_unwind_pc): Delete.
6228 (sh_dummy_id): Delete.
6229 (sh_gdbarch_init): Don't register deleted functions with
6232 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6234 * score-tdep.c (score_unwind_sp): Delete.
6235 (score_unwind_pc): Delete.
6236 (score_dummy_id): Delete.
6237 (score_gdbarch_init): Don't register deleted functions with
6240 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6242 * rx-tdep.c (rx_unwind_pc): Delete.
6243 (rx_unwind_sp): Delete.
6244 (rx_dummy_id): Delete.
6245 (rx_gdbarch_init): Don't register deleted functions with
6246 gdbarch. Update comment.
6248 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6250 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6251 (rs6000_dummy_id): Delete.
6252 (rs6000_gdbarch_init): Don't register deleted functions with
6255 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6257 * or1k-tdep.c (or1k_dummy_id): Delete.
6258 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6260 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6262 * nios2-tdep.c (nios2_dummy_id): Delete.
6263 (nios2_unwind_sp): Delete.
6264 (nios2_gdbarch_init): Don't register deleted functions with
6267 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6269 * nds32-tdep.c (nds32_dummy_id): Delete.
6270 (nds32_unwind_pc): Delete.
6271 (nds32_unwind_sp): Delete.
6272 (nds32_gdbarch_init): Don't register deleted functions with
6275 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6277 * msp430-tdep.c (msp430_unwind_pc): Delete.
6278 (msp430_unwind_sp): Delete.
6279 (msp430_dummy_id): Delete.
6280 (msp430_gdbarch_init): Don't register deleted functions with
6283 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6285 * moxie-tdep.c (moxie_unwind_sp): Delete.
6286 (moxie_unwind_pc): Delete.
6287 (moxie_dummy_id): Delete.
6288 (moxie_gdbarch_init): Don't register deleted functions with
6291 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6293 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6294 (mn10300_unwind_pc): Delete.
6295 (mn10300_unwind_sp): Delete.
6296 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6298 (mn10300_frame_unwind_init): Don't register deleted functions with
6301 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6303 * mep-tdep.c (mep_unwind_pc): Delete.
6304 (mep_unwind_sp): Delete.
6305 (mep_dummy_id): Delete.
6306 (mep_gdbarch_init): Don't register deleted functions with
6309 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6311 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6312 (m68hc11_unwind_sp): Delete.
6313 (m68hc11_gdbarch_init): Don't register deleted functions with
6316 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6318 * m32r-tdep.c (m32r_unwind_sp): Delete.
6319 (m32r_unwind_pc): Delete.
6320 (m32r_dummy_id): Delete.
6321 (m32r_gdbarch_init): Don't register deleted functions with
6324 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6326 * m32c-tdep.c (m32c_unwind_pc): Delete.
6327 (m32c_unwind_sp): Delete.
6328 (m32c_dummy_id): Delete.
6329 (m32c_gdbarch_init): Don't register deleted functions with
6332 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6334 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6335 (lm32_unwind_pc): Delete.
6336 (lm32_dummy_id): Delete.
6337 (lm32_gdbarch_init): Don't register deleted functions with
6340 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6342 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6343 (iq2000_unwind_pc): Delete.
6344 (iq2000_dummy_id): Delete.
6345 (iq2000_gdbarch_init): Don't register deleted functions with
6348 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6350 * nds32-tdep.c (nds32_type_align): Delete.
6351 (nds32_push_dummy_call): Use type_align instead.
6353 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6355 * arm-tdep.c (arm_type_align): Only handle vector override case.
6356 (arm_push_dummy_call): Use type_align.
6357 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6359 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6361 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6363 (pass_on_stack): Use type_align.
6364 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6367 2019-04-23 Tom Tromey <tromey@adacore.com>
6369 * dwarf2read.c (line_header::file_name_at): Remove unused
6372 2019-04-23 Tom de Vries <tdevries@suse.de>
6375 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6379 2019-03-27 Ali Tamur <tamur@google.com>
6381 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6382 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6383 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6384 (dwarf_expr_context::get_addr_index): Likewise
6385 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6386 (symbol_needs_eval_context::get_addr_index): Likewise
6387 (disassemble_dwarf_expression): Add DW_OP_addrx
6388 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6389 (read_cutu_die_from_dwo): Update comment
6390 (skip_one_die): Add DW_FORM_addrx
6391 (read_attribute_value): Likewise
6392 (var_decode_location): Add DW_OP_addrx
6393 (dwarf2_const_value_attr): Add DW_FORM_addrx
6394 (dump_die_shallow): Likewise
6395 (dwarf2_fetch_constant_bytes): Likewise
6396 (decode_locdesc): Add DW_OP_addrx
6397 (skip_form_bytes): Add DW_FORM_addrx
6399 2019-04-22 Ali Tamur <tamur@google.com>
6401 * MAINTAINERS (Write After Approval): Add self.
6403 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
6405 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6406 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6407 (open_symbol_file_object): Likewise.
6408 (svr4_default_sos): Add info parameter.
6409 (svr4_read_so_list): Likewise.
6410 (svr4_current_sos_direct): Adjust functions calls to pass down
6412 (svr4_current_sos_1): Add info parameter.
6413 (svr4_current_sos): Call get_svr4_info, pass info down to
6415 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6417 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6419 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6421 (probes_table_remove_objfile_probes): Likewise.
6422 (register_solib_event_probe): Add info parameter.
6423 (solist_update_incremental): Pass info parameter down to
6425 (disable_probes_interface): Add info parameter.
6426 (svr4_handle_solib_event): Pass current_program_space to
6427 get_svr4_info. Adjust disable_probes_interface cleanup.
6428 (svr4_create_probe_breakpoints): Add info parameter, pass it
6429 down to register_solib_event_probe.
6430 (svr4_create_solib_event_breakpoints): Add info parameter,
6431 pass it down to svr4_create_probe_breakpoints.
6432 (enable_break): Pass info down to
6433 svr4_create_solib_event_breakpoints.
6434 (svr4_solib_create_inferior_hook): Pass current_program_space to
6436 (svr4_clear_solib): Likewise.
6438 2019-04-22 Pedro Alves <palves@redhat.com>
6440 * solib-svr4.c (svr4_free_objfile_observer): New.
6441 (probe_and_action::objfile): New field.
6442 (probes_table_htab_remove_objfile_probes)
6443 (probes_table_remove_objfile_probes): New functions.
6444 (register_solib_event_probe): Add 'objfile' parameter. Store it
6445 in the new probe_and_action. Don't store the probe in 'lookup'.
6446 (svr4_create_probe_breakpoints): Pass objfile to
6447 register_solib_event_probe.
6448 (_initialize_svr4_solib): Register a free_objfile observer.
6450 2019-04-19 Tom Tromey <tom@tromey.com>
6452 * common/queue.h: Remove.
6454 2019-04-19 Tom Tromey <tom@tromey.com>
6456 * event-loop.c: Don't include "common/queue.h".
6458 2019-04-19 Tom Tromey <tom@tromey.com>
6460 * remote.c (remote_target): Use delete.
6461 * remote-notif.h: Include <list>, not "common/queue.h".
6462 (notif_client_p): Remove typedef.
6463 (remote_notif_state): Add constructor, destructor, initializer.
6464 <notif_queue>: Now a std::list.
6465 (remote_notif_state_xfree): Don't declare.
6466 * remote-notif.c (remote_notif_process, handle_notification)
6467 (remote_notif_state_allocate): Update.
6468 (~remote_notif_state): Rename from remote_notif_state_xfree.
6470 2019-04-19 Tom Tromey <tom@tromey.com>
6472 * symfile.c (reread_symbols): Update.
6473 * objfiles.c (objfile_register_static_link)
6474 (objfile_lookup_static_link): Update
6475 (~objfile) Don't delete static_links.
6476 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6478 2019-04-19 Tom Tromey <tom@tromey.com>
6480 * type-stack.h (struct type_stack) <insert>: Constify string.
6481 * type-stack.c (type_stack::insert): Constify string.
6482 * gdbtypes.h (lookup_template_type): Update.
6483 (address_space_name_to_int): Update.
6484 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6486 (lookup_template_type): Make name const.
6487 * c-exp.y: Update rules.
6488 (lex_one_token, classify_name, classify_inner_name)
6489 (c_print_token): Update.
6490 * p-exp.y: Update rules.
6492 * f-exp.y: Update rules.
6494 * d-exp.y: Update rules.
6495 (lex_one_token, classify_name, classify_inner_name): Update.
6496 * parse.c (write_dollar_variable, copy_name): Return std::string.
6497 * parser-defs.h (copy_name): Change return type.
6498 * m2-exp.y: Update rules.
6500 * go-exp.y (lex_one_token): Update.
6502 (classify_unsafe_function, classify_packaged_name)
6503 (classify_name, yylex): Update.
6505 2019-04-19 Sergei Trofimovich <siarheit@google.com>
6507 * configure.ac: add --enable-source-highlight switch.
6508 * configure: Regenerate.
6509 * top.c (print_gdb_version): plumb --enable-source-highlight
6510 status to "show configuration".
6512 2019-04-19 Tom Tromey <tromey@adacore.com>
6514 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6516 (empty_record, ada_template_to_fixed_record_type_1)
6517 (template_to_static_fixed_type)
6518 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6519 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6520 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6523 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6526 * source.c (print_source_lines_base): Advance "iter" when a
6527 control character is seen.
6529 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6531 * inferior.h (struct infcall_suspend_state_deleter):
6532 Catch exception in destructor to avoid crash.
6534 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6536 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6537 close to the add_com "shell".
6539 2019-04-18 Tom Tromey <tromey@adacore.com>
6541 * process-stratum-target.h (class process_stratum_target)
6542 <stratum>: Add "final".
6544 2019-04-17 Tom Tromey <tromey@adacore.com>
6546 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6547 against nullptr before use.
6549 2019-04-17 Alan Hayward <alan.hayward@arm.com>
6551 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6553 2019-04-17 Jim Wilson <jimw@sifive.com>
6554 Andrew Burgess <andrew.burgess@embecosm.com>
6556 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6557 code read might fail, assume 4-byte breakpoint in that case.
6559 2019-04-15 Leszek Swirski <leszeks@google.com>
6561 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6562 rather than a hand-rolled POD check when checking for forced MEMORY
6565 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6567 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6568 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6570 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6571 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6572 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6575 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6577 * aarch64-linux-nat.c
6578 (aarch64_linux_nat_target::thread_architecture): Add override.
6579 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6582 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6584 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6586 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6588 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6589 target types of size 96-bits, add some additional comments, and
6590 check that the builtin type we found was the correct size.
6592 2019-04-12 Eli Zaretskii <eliz@gnu.org>
6594 * utils.c (prompt_for_continue): Don't restore the styling at the
6595 end, as applied_style has the wrong value. This fixes styling in
6596 long lists of file names that are interrupted by the "Continue?"
6599 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6601 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6602 * c-lang.c (c_language_defn): Likewise.
6603 (cplus_language_defn): Likewise.
6604 (asm_language_defn): Likewise.
6605 (minimal_language_defn): Likewise.
6606 * d-lang.c (d_language_defn): Likewise.
6607 * f-lang.c (f_language_defn): Likewise.
6608 * go-lang.c (go_language_defn): Likewise.
6609 * language.c (unknown_language_defn): Likewise.
6610 (auto_language_defn): Likewise.
6611 * language.h (struct language_defn): Remove la_magic field.
6612 (LANG_MAGIC): Delete.
6613 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6614 * objc-lang.c (objc_language_defn): Likewise.
6615 * opencl-lang.c (opencl_language_defn): Likewise.
6616 * p-lang.c (pascal_language_defn): Likewise.
6617 * rust-lang.c (rust_language_defn): Likewise.
6619 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6621 * riscv-tdep.c (riscv_type_align): New function.
6622 (riscv_type_alignment): Delete.
6623 (riscv_arg_location): Use 'type_align'.
6624 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6626 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6628 * gdbtypes.c (type_align): A struct with no non-static fields also
6631 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6633 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6635 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6637 (riscv_struct_info::analyse): New implementation using new
6638 analyse_inner member function.
6639 (riscv_struct_info::field_offset): New member function.
6640 (riscv_struct_info::m_offsets): New member variable.
6641 (riscv_struct_info::analyse_inner): New private member function,
6642 takes the old implementation of riscv_struct_info::analyse but
6643 extended to track field offsets.
6644 (riscv_call_arg_struct): Update the struct folding special cases
6645 to handle cases where empty C++ structs, which are non-zero
6647 (riscv_arg_location): Initialise the length of each location, a
6648 non-zero length now indicates the location is in use.
6649 (riscv_push_dummy_call): Allow for the first location having a
6650 non-zero offset when setting up arguments.
6651 (riscv_return_value): Likewise, but for return values.
6653 2019-04-11 Tom Tromey <tromey@adacore.com>
6655 * utils.c (internal_vproblem): Make "msg" const.
6657 2019-04-11 Alan Hayward <alan.hayward@arm.com>
6659 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6660 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6661 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6662 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6664 2019-04-10 Kevin Buettner <kevinb@redhat.com>
6666 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6668 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6669 of amd64_collect_native_gregset.
6670 (amd64_linux_nat_target::store_registers): Likewise.
6672 2019-04-10 Tom Tromey <tom@tromey.com>
6674 * symtab.c (lookup_global_symbol_from_objfile)
6675 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6676 * objfiles.h (class separate_debug_iterator): New.
6677 (class separate_debug_range): New.
6678 (struct objfile) <separate_debug_objfiles>: New method.
6679 (objfile_separate_debug_iterate): Don't declare.
6680 * objfiles.c (separate_debug_iterator::operator++): Rename from
6681 objfile_separate_debug_iterate.
6682 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6684 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6687 2019-04-10 Tom Tromey <tom@tromey.com>
6689 * symfile.c (reread_symbols): Remove old comment.
6690 * objfiles.c (free_all_objfiles): Fix a typo.
6692 2019-04-10 Tom Tromey <tom@tromey.com>
6694 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6695 * minsyms.c (lookup_minimal_symbol): Use foreach.
6696 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6697 (lookup_minimal_symbol_solib_trampoline): Likewise.
6698 * symfile.c (reread_symbols): Use foreach.
6700 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
6701 Tom Tromey <tromey@adacore.com>
6704 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6705 (rust_lex_int_test): Change "value" to be LONGEST.
6706 (rust_lex_tests): Add test for long integer literal.
6708 2019-04-09 Tom Tromey <tromey@adacore.com>
6710 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6712 (extended_remote_target::attach): Update.
6713 (remote_target::remote_notice_new_inferior): Update.
6714 (remote_target::add_current_inferior_and_thread): Update.
6715 * inferior.c (exit_inferior_1): Use "false".
6716 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6718 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
6720 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6721 the "start" command.
6723 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6725 * python/py-inferior.c (infpy_thread_from_thread_handle):
6726 Adjust comments to reflect renaming of thread_from_thread_handle
6727 to thread_from_handle. Adjust keywords. Fix type error message.
6728 (inferior_object_methods): Add thread_from_handle. Retain
6729 thread_from_thread_handle, but mark it as deprecated.
6731 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6733 * gdbthread.h (find_thread_by_handle): Revise declaration.
6734 * thread.c (find_thread_by_handle): Likewise. Adjust
6736 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6737 support for buffer objects as handles.
6739 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6741 * python/py-infthread.c (thpy_thread_handle): New function.
6742 (thread_object_methods): Register thpy_thread_handle.
6744 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6746 * gdbthread.h (thread_to_thread_handle): Declare.
6747 * thread.c (gdbtypes.h): Include.
6748 (thread_to_thread_handle): New function.
6750 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6751 (target_thread_info_to_thread_handle): Declare.
6752 * target.c (target_thread_info_to_thread_handle): New function.
6753 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6754 * target-delegates.c: Regenerate.
6756 * linux-thread-db.c (class thread_db_target): Add method
6757 thread_info_to_thread_handle.
6758 (thread_db_target::thread_info_to_thread_handle): Define.
6759 * remote.c (class remote_target): Add new method
6760 thread_info_to_thread_handle.
6761 (remote_target::thread_info_to_thread_handle): Define.
6763 2019-04-08 Pedro Alves <palves@redhat.com>
6765 * common/common-exceptions.c (throw_exception): Don't create
6766 named object to throw; throw directly.
6767 (throw_it): Likewise. Don't initialize gdb_exception::message
6768 here, with new; pass FMT and AP to the ctor instead.
6769 * common/common-exceptions.h: Include <string>.
6770 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6771 const char *, va_list)): New ctor. Use std::make_shared.
6772 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6774 (gdb_exception_error::gdb_exception_error(enum errors, const char
6776 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6778 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6780 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6781 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6784 2019-04-08 Tom Tromey <tom@tromey.com>
6786 * valops.c (value_rtti_indirect_type): Replace throw_exception
6788 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6790 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6792 * target.c (target_translate_tls_address): Replace throw_exception
6794 * stack.c (frame_apply_command_count): Replace throw_exception
6796 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6798 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6800 * rs6000-tdep.c (rs6000_frame_cache)
6801 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6802 * remote.c: Replace throw_exception with throw.
6803 * record-full.c (record_full_message, record_full_wait_1)
6804 (record_full_restore): Replace throw_exception with throw.
6806 (get_thread_current_frame_id, record_btrace_start_replaying)
6807 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6808 (cmd_record_btrace_start): Replace throw_exception with throw.
6809 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6811 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6812 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6814 (find_linespec_symbols): Replace throw_exception with throw.
6815 * infrun.c (displaced_step_prepare, resume): Replace
6816 throw_exception with throw.
6817 * infcmd.c (post_create_inferior): Replace throw_exception with
6819 * inf-loop.c (inferior_event_handler): Replace throw_exception
6821 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6822 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6823 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6824 (get_prev_frame_always, get_frame_pc_if_available)
6825 (get_frame_address_in_block_if_available, get_frame_language):
6826 Replace throw_exception with throw.
6827 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6828 throw_exception with throw.
6829 * eval.c (fetch_subexp_value, evaluate_var_value)
6830 (evaluate_funcall, evaluate_subexp_standard): Replace
6831 throw_exception with throw.
6832 * dwarf2loc.c (call_site_find_chain)
6833 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6834 Replace throw_exception with throw.
6835 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6837 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6839 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6840 * completer.c (complete_line_internal): Replace throw_exception
6842 * compile/compile-object-run.c (compile_object_run): Replace
6843 throw_exception with throw.
6844 * cli/cli-script.c (process_next_line): Replace throw_exception
6846 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6847 (btrace_enable, btrace_maint_update_pt_packets): Replace
6848 throw_exception with throw.
6849 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6850 throw_exception with throw.
6851 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6852 throw_exception with throw.
6853 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6854 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6855 * aarch64-tdep.c (aarch64_make_prologue_cache)
6856 (aarch64_make_stub_cache): Replace throw_exception with throw.
6858 2019-04-08 Tom Tromey <tom@tromey.com>
6860 * common/common-exceptions.c (throw_exception): Rename from
6861 throw_exception_cxx. Remove old copy. Make argument const.
6862 (throw_it): Create and throw exception objects directly.
6863 * common/common-exceptions.h (throw_exception): Make argument
6865 (struct gdb_exception_error): Add constructor.
6866 (struct gdb_exception_quit): Add constructor.
6868 2019-04-08 Tom Tromey <tom@tromey.com>
6870 * common/common-exceptions.h (exception_rethrow): Don't declare.
6871 (TRY_SJLJ): Update comment.
6872 (TRY, CATCH, END_CATCH): Remove.
6873 * common/common-exceptions.c (exception_rethrow): Remove.
6875 2019-04-08 Tom Tromey <tom@tromey.com>
6877 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6879 (gdb_exception_error): Rename from
6880 gdb_exception_RETURN_MASK_ERROR.
6881 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6882 (gdb_quit_bad_alloc): Update.
6883 * aarch64-tdep.c: Update.
6884 * ada-lang.c: Update.
6885 * ada-typeprint.c: Update.
6886 * ada-valprint.c: Update.
6887 * amd64-tdep.c: Update.
6888 * arch-utils.c: Update.
6889 * break-catch-throw.c: Update.
6890 * breakpoint.c: Update.
6892 * c-varobj.c: Update.
6893 * cli/cli-cmds.c: Update.
6894 * cli/cli-interp.c: Update.
6895 * cli/cli-script.c: Update.
6896 * common/common-exceptions.c: Update.
6897 * common/new-op.c: Update.
6898 * common/selftest.c: Update.
6899 * compile/compile-c-symbols.c: Update.
6900 * compile/compile-cplus-symbols.c: Update.
6901 * compile/compile-object-load.c: Update.
6902 * compile/compile-object-run.c: Update.
6903 * completer.c: Update.
6904 * corelow.c: Update.
6906 * cp-support.c: Update.
6907 * cp-valprint.c: Update.
6908 * darwin-nat.c: Update.
6909 * disasm-selftests.c: Update.
6910 * dtrace-probe.c: Update.
6911 * dwarf-index-cache.c: Update.
6912 * dwarf-index-write.c: Update.
6913 * dwarf2-frame-tailcall.c: Update.
6914 * dwarf2-frame.c: Update.
6915 * dwarf2loc.c: Update.
6916 * dwarf2read.c: Update.
6918 * event-loop.c: Update.
6919 * event-top.c: Update.
6921 * f-valprint.c: Update.
6922 * fbsd-tdep.c: Update.
6923 * frame-unwind.c: Update.
6925 * gdbtypes.c: Update.
6926 * gnu-v3-abi.c: Update.
6927 * guile/guile-internal.h: Update.
6928 * guile/scm-block.c: Update.
6929 * guile/scm-breakpoint.c: Update.
6930 * guile/scm-cmd.c: Update.
6931 * guile/scm-disasm.c: Update.
6932 * guile/scm-frame.c: Update.
6933 * guile/scm-lazy-string.c: Update.
6934 * guile/scm-math.c: Update.
6935 * guile/scm-param.c: Update.
6936 * guile/scm-ports.c: Update.
6937 * guile/scm-pretty-print.c: Update.
6938 * guile/scm-symbol.c: Update.
6939 * guile/scm-symtab.c: Update.
6940 * guile/scm-type.c: Update.
6941 * guile/scm-value.c: Update.
6942 * i386-linux-tdep.c: Update.
6943 * i386-tdep.c: Update.
6944 * inf-loop.c: Update.
6945 * infcall.c: Update.
6949 * language.c: Update.
6950 * linespec.c: Update.
6951 * linux-fork.c: Update.
6952 * linux-nat.c: Update.
6953 * linux-tdep.c: Update.
6954 * linux-thread-db.c: Update.
6956 * mi/mi-cmd-break.c: Update.
6957 * mi/mi-cmd-stack.c: Update.
6958 * mi/mi-interp.c: Update.
6959 * mi/mi-main.c: Update.
6960 * objc-lang.c: Update.
6961 * p-valprint.c: Update.
6963 * ppc-linux-tdep.c: Update.
6964 * printcmd.c: Update.
6965 * python/py-arch.c: Update.
6966 * python/py-breakpoint.c: Update.
6967 * python/py-cmd.c: Update.
6968 * python/py-finishbreakpoint.c: Update.
6969 * python/py-frame.c: Update.
6970 * python/py-framefilter.c: Update.
6971 * python/py-gdb-readline.c: Update.
6972 * python/py-inferior.c: Update.
6973 * python/py-infthread.c: Update.
6974 * python/py-lazy-string.c: Update.
6975 * python/py-linetable.c: Update.
6976 * python/py-objfile.c: Update.
6977 * python/py-param.c: Update.
6978 * python/py-prettyprint.c: Update.
6979 * python/py-progspace.c: Update.
6980 * python/py-record-btrace.c: Update.
6981 * python/py-record.c: Update.
6982 * python/py-symbol.c: Update.
6983 * python/py-type.c: Update.
6984 * python/py-unwind.c: Update.
6985 * python/py-utils.c: Update.
6986 * python/py-value.c: Update.
6987 * python/python.c: Update.
6988 * record-btrace.c: Update.
6989 * record-full.c: Update.
6990 * remote-fileio.c: Update.
6992 * riscv-tdep.c: Update.
6993 * rs6000-aix-tdep.c: Update.
6994 * rs6000-tdep.c: Update.
6995 * rust-exp.y: Update.
6996 * rust-lang.c: Update.
6997 * s390-tdep.c: Update.
6998 * selftest-arch.c: Update.
6999 * solib-dsbt.c: Update.
7000 * solib-frv.c: Update.
7001 * solib-spu.c: Update.
7002 * solib-svr4.c: Update.
7004 * sparc64-linux-tdep.c: Update.
7006 * symfile-mem.c: Update.
7007 * symmisc.c: Update.
7011 * tracefile-tfile.c: Update.
7012 * tui/tui.c: Update.
7013 * typeprint.c: Update.
7014 * unittests/cli-utils-selftests.c: Update.
7015 * unittests/parse-connection-spec-selftests.c: Update.
7017 * valprint.c: Update.
7020 * windows-nat.c: Update.
7021 * x86-linux-nat.c: Update.
7022 * xml-support.c: Update.
7024 2019-04-08 Tom Tromey <tom@tromey.com>
7026 * xml-support.c: Use C++ exception handling.
7027 * x86-linux-nat.c: Use C++ exception handling.
7028 * windows-nat.c: Use C++ exception handling.
7029 * varobj.c: Use C++ exception handling.
7030 * value.c: Use C++ exception handling.
7031 * valprint.c: Use C++ exception handling.
7032 * valops.c: Use C++ exception handling.
7033 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7035 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7036 * typeprint.c: Use C++ exception handling.
7037 * tui/tui.c: Use C++ exception handling.
7038 * tracefile-tfile.c: Use C++ exception handling.
7039 * top.c: Use C++ exception handling.
7040 * thread.c: Use C++ exception handling.
7041 * target.c: Use C++ exception handling.
7042 * symmisc.c: Use C++ exception handling.
7043 * symfile-mem.c: Use C++ exception handling.
7044 * stack.c: Use C++ exception handling.
7045 * sparc64-linux-tdep.c: Use C++ exception handling.
7046 * solib.c: Use C++ exception handling.
7047 * solib-svr4.c: Use C++ exception handling.
7048 * solib-spu.c: Use C++ exception handling.
7049 * solib-frv.c: Use C++ exception handling.
7050 * solib-dsbt.c: Use C++ exception handling.
7051 * selftest-arch.c: Use C++ exception handling.
7052 * s390-tdep.c: Use C++ exception handling.
7053 * rust-lang.c: Use C++ exception handling.
7054 * rust-exp.y: Use C++ exception handling.
7055 * rs6000-tdep.c: Use C++ exception handling.
7056 * rs6000-aix-tdep.c: Use C++ exception handling.
7057 * riscv-tdep.c: Use C++ exception handling.
7058 * remote.c: Use C++ exception handling.
7059 * remote-fileio.c: Use C++ exception handling.
7060 * record-full.c: Use C++ exception handling.
7061 * record-btrace.c: Use C++ exception handling.
7062 * python/python.c: Use C++ exception handling.
7063 * python/py-value.c: Use C++ exception handling.
7064 * python/py-utils.c: Use C++ exception handling.
7065 * python/py-unwind.c: Use C++ exception handling.
7066 * python/py-type.c: Use C++ exception handling.
7067 * python/py-symbol.c: Use C++ exception handling.
7068 * python/py-record.c: Use C++ exception handling.
7069 * python/py-record-btrace.c: Use C++ exception handling.
7070 * python/py-progspace.c: Use C++ exception handling.
7071 * python/py-prettyprint.c: Use C++ exception handling.
7072 * python/py-param.c: Use C++ exception handling.
7073 * python/py-objfile.c: Use C++ exception handling.
7074 * python/py-linetable.c: Use C++ exception handling.
7075 * python/py-lazy-string.c: Use C++ exception handling.
7076 * python/py-infthread.c: Use C++ exception handling.
7077 * python/py-inferior.c: Use C++ exception handling.
7078 * python/py-gdb-readline.c: Use C++ exception handling.
7079 * python/py-framefilter.c: Use C++ exception handling.
7080 * python/py-frame.c: Use C++ exception handling.
7081 * python/py-finishbreakpoint.c: Use C++ exception handling.
7082 * python/py-cmd.c: Use C++ exception handling.
7083 * python/py-breakpoint.c: Use C++ exception handling.
7084 * python/py-arch.c: Use C++ exception handling.
7085 * printcmd.c: Use C++ exception handling.
7086 * ppc-linux-tdep.c: Use C++ exception handling.
7087 * parse.c: Use C++ exception handling.
7088 * p-valprint.c: Use C++ exception handling.
7089 * objc-lang.c: Use C++ exception handling.
7090 * mi/mi-main.c: Use C++ exception handling.
7091 * mi/mi-interp.c: Use C++ exception handling.
7092 * mi/mi-cmd-stack.c: Use C++ exception handling.
7093 * mi/mi-cmd-break.c: Use C++ exception handling.
7094 * main.c: Use C++ exception handling.
7095 * linux-thread-db.c: Use C++ exception handling.
7096 * linux-tdep.c: Use C++ exception handling.
7097 * linux-nat.c: Use C++ exception handling.
7098 * linux-fork.c: Use C++ exception handling.
7099 * linespec.c: Use C++ exception handling.
7100 * language.c: Use C++ exception handling.
7101 * jit.c: Use C++ exception handling.
7102 * infrun.c: Use C++ exception handling.
7103 * infcmd.c: Use C++ exception handling.
7104 * infcall.c: Use C++ exception handling.
7105 * inf-loop.c: Use C++ exception handling.
7106 * i386-tdep.c: Use C++ exception handling.
7107 * i386-linux-tdep.c: Use C++ exception handling.
7108 * guile/scm-value.c: Use C++ exception handling.
7109 * guile/scm-type.c: Use C++ exception handling.
7110 * guile/scm-symtab.c: Use C++ exception handling.
7111 * guile/scm-symbol.c: Use C++ exception handling.
7112 * guile/scm-pretty-print.c: Use C++ exception handling.
7113 * guile/scm-ports.c: Use C++ exception handling.
7114 * guile/scm-param.c: Use C++ exception handling.
7115 * guile/scm-math.c: Use C++ exception handling.
7116 * guile/scm-lazy-string.c: Use C++ exception handling.
7117 * guile/scm-frame.c: Use C++ exception handling.
7118 * guile/scm-disasm.c: Use C++ exception handling.
7119 * guile/scm-cmd.c: Use C++ exception handling.
7120 * guile/scm-breakpoint.c: Use C++ exception handling.
7121 * guile/scm-block.c: Use C++ exception handling.
7122 * guile/guile-internal.h: Use C++ exception handling.
7123 * gnu-v3-abi.c: Use C++ exception handling.
7124 * gdbtypes.c: Use C++ exception handling.
7125 * frame.c: Use C++ exception handling.
7126 * frame-unwind.c: Use C++ exception handling.
7127 * fbsd-tdep.c: Use C++ exception handling.
7128 * f-valprint.c: Use C++ exception handling.
7129 * exec.c: Use C++ exception handling.
7130 * event-top.c: Use C++ exception handling.
7131 * event-loop.c: Use C++ exception handling.
7132 * eval.c: Use C++ exception handling.
7133 * dwarf2read.c: Use C++ exception handling.
7134 * dwarf2loc.c: Use C++ exception handling.
7135 * dwarf2-frame.c: Use C++ exception handling.
7136 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7137 * dwarf-index-write.c: Use C++ exception handling.
7138 * dwarf-index-cache.c: Use C++ exception handling.
7139 * dtrace-probe.c: Use C++ exception handling.
7140 * disasm-selftests.c: Use C++ exception handling.
7141 * darwin-nat.c: Use C++ exception handling.
7142 * cp-valprint.c: Use C++ exception handling.
7143 * cp-support.c: Use C++ exception handling.
7144 * cp-abi.c: Use C++ exception handling.
7145 * corelow.c: Use C++ exception handling.
7146 * completer.c: Use C++ exception handling.
7147 * compile/compile-object-run.c: Use C++ exception handling.
7148 * compile/compile-object-load.c: Use C++ exception handling.
7149 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7150 * compile/compile-c-symbols.c: Use C++ exception handling.
7151 * common/selftest.c: Use C++ exception handling.
7152 * common/new-op.c: Use C++ exception handling.
7153 * cli/cli-script.c: Use C++ exception handling.
7154 * cli/cli-interp.c: Use C++ exception handling.
7155 * cli/cli-cmds.c: Use C++ exception handling.
7156 * c-varobj.c: Use C++ exception handling.
7157 * btrace.c: Use C++ exception handling.
7158 * breakpoint.c: Use C++ exception handling.
7159 * break-catch-throw.c: Use C++ exception handling.
7160 * arch-utils.c: Use C++ exception handling.
7161 * amd64-tdep.c: Use C++ exception handling.
7162 * ada-valprint.c: Use C++ exception handling.
7163 * ada-typeprint.c: Use C++ exception handling.
7164 * ada-lang.c: Use C++ exception handling.
7165 * aarch64-tdep.c: Use C++ exception handling.
7167 2019-04-08 Tom Tromey <tom@tromey.com>
7169 * xml-support.c (gdb_xml_parser::parse): Update.
7170 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7171 * value.c (show_convenience): Update.
7172 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7173 (test_parse_flags_qcs): Update.
7174 * thread.c (thr_try_catch_cmd): Update.
7175 * target.c (target_translate_tls_address): Update.
7176 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7177 (info_frame_command_core, frame_apply_command_count): Update.
7178 * rust-exp.y (rust_lex_exception_test): Update.
7179 * riscv-tdep.c (riscv_print_one_register_info): Update.
7180 * remote.c (remote_target::enable_btrace): Update.
7181 * record-btrace.c (record_btrace_enable_warn): Update.
7182 * python/py-utils.c (gdbpy_convert_exception): Update.
7183 * printcmd.c (do_one_display, print_variable_and_value): Update.
7184 * mi/mi-main.c (mi_print_exception): Update.
7185 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7186 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7187 * linux-nat.c (linux_nat_target::attach): Update.
7188 * linux-fork.c (class scoped_switch_fork_info): Update.
7189 * infrun.c (displaced_step_prepare): Update.
7190 * infcall.c (call_function_by_hand_dummy): Update.
7191 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7192 * gnu-v3-abi.c (print_one_vtable): Update.
7193 * frame.c (get_prev_frame_always): Update.
7194 * f-valprint.c (info_common_command_for_block): Update.
7195 * exec.c (try_open_exec_file): Update.
7196 * exceptions.c (print_exception, exception_print)
7197 (exception_fprintf, exception_print_same): Update.
7198 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7199 * dwarf-index-cache.c (index_cache::store)
7200 (index_cache::lookup_gdb_index): Update.
7201 * darwin-nat.c (maybe_cache_shell): Update.
7202 * cp-valprint.c (cp_print_value_fields): Update.
7203 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7204 (gcc_cplus_symbol_address): Update.
7205 * compile/compile-c-symbols.c (gcc_convert_symbol)
7206 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7207 * common/selftest.c: Update.
7208 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7210 (exception_try_scope_entry, exception_try_scope_exit): Don't
7212 (struct exception_try_scope): Remove.
7213 (TRY): Don't use exception_try_scope.
7214 (struct gdb_exception): Add constructor, operator=.
7216 (struct gdb_exception_RETURN_MASK_ALL)
7217 (struct gdb_exception_RETURN_MASK_ERROR)
7218 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7219 (struct gdb_quit_bad_alloc): Update.
7220 * common/common-exceptions.c (exception_none): Change
7222 (struct catcher) <state, exception>: Initialize inline.
7223 <prev>: Remove member.
7224 (current_catcher): Remove.
7225 (catchers): New global.
7226 (exceptions_state_mc_init): Simplify.
7227 (catcher_pop): Remove.
7228 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7229 (try_scope_depth, exception_try_scope_entry)
7230 (exception_try_scope_exit): Remove.
7231 (throw_exception_sjlj): Update.
7232 (exception_messages, exception_messages_size): Remove.
7233 (throw_it): Simplify.
7234 (gdb_exception_sliced_copy): Remove.
7235 (throw_exception_cxx): Update.
7236 * cli/cli-script.c (script_from_file): Update.
7237 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7239 * ada-valprint.c (ada_val_print): Update.
7240 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7241 (create_excep_cond_exprs): Update.
7243 2019-04-08 Tom Tromey <tom@tromey.com>
7245 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7246 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7247 (TRY, CATCH, END_CATCH): Remove some definitions.
7248 * common/common-exceptions.c: Don't use GDB_XCPT.
7249 (catcher_list_size): Remove.
7250 (throw_exception, throw_it): Simplify.
7252 2019-04-05 Tom Tromey <tom@tromey.com>
7254 Revert the header-sorting patch.
7255 * ft32-tdep.c: Revert.
7256 * frv-tdep.c: Revert.
7257 * frv-linux-tdep.c: Revert.
7259 * frame-unwind.c: Revert.
7260 * frame-base.c: Revert.
7261 * fork-child.c: Revert.
7262 * findvar.c: Revert.
7263 * findcmd.c: Revert.
7264 * filesystem.c: Revert.
7265 * filename-seen-cache.h: Revert.
7266 * filename-seen-cache.c: Revert.
7267 * fbsd-tdep.c: Revert.
7268 * fbsd-nat.h: Revert.
7269 * fbsd-nat.c: Revert.
7270 * f-valprint.c: Revert.
7271 * f-typeprint.c: Revert.
7273 * extension.h: Revert.
7274 * extension.c: Revert.
7275 * extension-priv.h: Revert.
7276 * expprint.c: Revert.
7279 * exceptions.c: Revert.
7280 * event-top.c: Revert.
7281 * event-loop.c: Revert.
7283 * elfread.c: Revert.
7284 * dwarf2read.h: Revert.
7285 * dwarf2read.c: Revert.
7286 * dwarf2loc.c: Revert.
7287 * dwarf2expr.h: Revert.
7288 * dwarf2expr.c: Revert.
7289 * dwarf2-frame.c: Revert.
7290 * dwarf2-frame-tailcall.c: Revert.
7291 * dwarf-index-write.h: Revert.
7292 * dwarf-index-write.c: Revert.
7293 * dwarf-index-common.c: Revert.
7294 * dwarf-index-cache.h: Revert.
7295 * dwarf-index-cache.c: Revert.
7296 * dummy-frame.c: Revert.
7297 * dtrace-probe.c: Revert.
7300 * disasm-selftests.c: Revert.
7301 * dictionary.c: Revert.
7302 * dicos-tdep.c: Revert.
7303 * demangle.c: Revert.
7306 * darwin-nat.h: Revert.
7307 * darwin-nat.c: Revert.
7308 * darwin-nat-info.c: Revert.
7309 * d-valprint.c: Revert.
7310 * d-namespace.c: Revert.
7313 * csky-tdep.c: Revert.
7314 * csky-linux-tdep.c: Revert.
7315 * cris-tdep.c: Revert.
7316 * cris-linux-tdep.c: Revert.
7317 * cp-valprint.c: Revert.
7318 * cp-support.c: Revert.
7319 * cp-namespace.c: Revert.
7321 * corelow.c: Revert.
7322 * corefile.c: Revert.
7323 * continuations.c: Revert.
7324 * completer.h: Revert.
7325 * completer.c: Revert.
7326 * complaints.c: Revert.
7327 * coffread.c: Revert.
7328 * coff-pe-read.c: Revert.
7329 * cli-out.h: Revert.
7330 * cli-out.c: Revert.
7331 * charset.c: Revert.
7332 * c-varobj.c: Revert.
7333 * c-valprint.c: Revert.
7334 * c-typeprint.c: Revert.
7336 * buildsym.c: Revert.
7337 * buildsym-legacy.c: Revert.
7338 * build-id.h: Revert.
7339 * build-id.c: Revert.
7341 * bsd-uthread.c: Revert.
7342 * breakpoint.h: Revert.
7343 * breakpoint.c: Revert.
7344 * break-catch-throw.c: Revert.
7345 * break-catch-syscall.c: Revert.
7346 * break-catch-sig.c: Revert.
7347 * blockframe.c: Revert.
7349 * bfin-tdep.c: Revert.
7350 * bfin-linux-tdep.c: Revert.
7351 * bfd-target.c: Revert.
7353 * ax-general.c: Revert.
7356 * avr-tdep.c: Revert.
7358 * auto-load.c: Revert.
7359 * arm-wince-tdep.c: Revert.
7360 * arm-tdep.c: Revert.
7361 * arm-symbian-tdep.c: Revert.
7362 * arm-pikeos-tdep.c: Revert.
7363 * arm-obsd-tdep.c: Revert.
7364 * arm-nbsd-tdep.c: Revert.
7365 * arm-nbsd-nat.c: Revert.
7366 * arm-linux-tdep.c: Revert.
7367 * arm-linux-nat.c: Revert.
7368 * arm-fbsd-tdep.c: Revert.
7369 * arm-fbsd-nat.c: Revert.
7370 * arm-bsd-tdep.c: Revert.
7371 * arch-utils.c: Revert.
7372 * arc-tdep.c: Revert.
7373 * arc-newlib-tdep.c: Revert.
7374 * annotate.h: Revert.
7375 * annotate.c: Revert.
7376 * amd64-windows-tdep.c: Revert.
7377 * amd64-windows-nat.c: Revert.
7378 * amd64-tdep.c: Revert.
7379 * amd64-sol2-tdep.c: Revert.
7380 * amd64-obsd-tdep.c: Revert.
7381 * amd64-obsd-nat.c: Revert.
7382 * amd64-nbsd-tdep.c: Revert.
7383 * amd64-nbsd-nat.c: Revert.
7384 * amd64-nat.c: Revert.
7385 * amd64-linux-tdep.c: Revert.
7386 * amd64-linux-nat.c: Revert.
7387 * amd64-fbsd-tdep.c: Revert.
7388 * amd64-fbsd-nat.c: Revert.
7389 * amd64-dicos-tdep.c: Revert.
7390 * amd64-darwin-tdep.c: Revert.
7391 * amd64-bsd-nat.c: Revert.
7392 * alpha-tdep.c: Revert.
7393 * alpha-obsd-tdep.c: Revert.
7394 * alpha-nbsd-tdep.c: Revert.
7395 * alpha-mdebug-tdep.c: Revert.
7396 * alpha-linux-tdep.c: Revert.
7397 * alpha-linux-nat.c: Revert.
7398 * alpha-bsd-tdep.c: Revert.
7399 * alpha-bsd-nat.c: Revert.
7400 * aix-thread.c: Revert.
7402 * addrmap.c: Revert.
7403 * ada-varobj.c: Revert.
7404 * ada-valprint.c: Revert.
7405 * ada-typeprint.c: Revert.
7406 * ada-tasks.c: Revert.
7407 * ada-lang.c: Revert.
7408 * aarch64-tdep.c: Revert.
7409 * aarch64-ravenscar-thread.c: Revert.
7410 * aarch64-newlib-tdep.c: Revert.
7411 * aarch64-linux-tdep.c: Revert.
7412 * aarch64-linux-nat.c: Revert.
7413 * aarch64-fbsd-tdep.c: Revert.
7414 * aarch64-fbsd-nat.c: Revert.
7415 * aarch32-linux-nat.c: Revert.
7417 2019-04-05 Tom Tromey <tom@tromey.com>
7419 * ft32-tdep.c: Sort headers.
7420 * frv-tdep.c: Sort headers.
7421 * frv-linux-tdep.c: Sort headers.
7422 * frame.c: Sort headers.
7423 * frame-unwind.c: Sort headers.
7424 * frame-base.c: Sort headers.
7425 * fork-child.c: Sort headers.
7426 * findvar.c: Sort headers.
7427 * findcmd.c: Sort headers.
7428 * filesystem.c: Sort headers.
7429 * filename-seen-cache.h: Sort headers.
7430 * filename-seen-cache.c: Sort headers.
7431 * fbsd-tdep.c: Sort headers.
7432 * fbsd-nat.h: Sort headers.
7433 * fbsd-nat.c: Sort headers.
7434 * f-valprint.c: Sort headers.
7435 * f-typeprint.c: Sort headers.
7436 * f-lang.c: Sort headers.
7437 * extension.h: Sort headers.
7438 * extension.c: Sort headers.
7439 * extension-priv.h: Sort headers.
7440 * expprint.c: Sort headers.
7441 * exec.h: Sort headers.
7442 * exec.c: Sort headers.
7443 * exceptions.c: Sort headers.
7444 * event-top.c: Sort headers.
7445 * event-loop.c: Sort headers.
7446 * eval.c: Sort headers.
7447 * elfread.c: Sort headers.
7448 * dwarf2read.h: Sort headers.
7449 * dwarf2read.c: Sort headers.
7450 * dwarf2loc.c: Sort headers.
7451 * dwarf2expr.h: Sort headers.
7452 * dwarf2expr.c: Sort headers.
7453 * dwarf2-frame.c: Sort headers.
7454 * dwarf2-frame-tailcall.c: Sort headers.
7455 * dwarf-index-write.h: Sort headers.
7456 * dwarf-index-write.c: Sort headers.
7457 * dwarf-index-common.c: Sort headers.
7458 * dwarf-index-cache.h: Sort headers.
7459 * dwarf-index-cache.c: Sort headers.
7460 * dummy-frame.c: Sort headers.
7461 * dtrace-probe.c: Sort headers.
7462 * disasm.h: Sort headers.
7463 * disasm.c: Sort headers.
7464 * disasm-selftests.c: Sort headers.
7465 * dictionary.c: Sort headers.
7466 * dicos-tdep.c: Sort headers.
7467 * demangle.c: Sort headers.
7468 * dcache.h: Sort headers.
7469 * dcache.c: Sort headers.
7470 * darwin-nat.h: Sort headers.
7471 * darwin-nat.c: Sort headers.
7472 * darwin-nat-info.c: Sort headers.
7473 * d-valprint.c: Sort headers.
7474 * d-namespace.c: Sort headers.
7475 * d-lang.c: Sort headers.
7476 * ctf.c: Sort headers.
7477 * csky-tdep.c: Sort headers.
7478 * csky-linux-tdep.c: Sort headers.
7479 * cris-tdep.c: Sort headers.
7480 * cris-linux-tdep.c: Sort headers.
7481 * cp-valprint.c: Sort headers.
7482 * cp-support.c: Sort headers.
7483 * cp-namespace.c: Sort headers.
7484 * cp-abi.c: Sort headers.
7485 * corelow.c: Sort headers.
7486 * corefile.c: Sort headers.
7487 * continuations.c: Sort headers.
7488 * completer.h: Sort headers.
7489 * completer.c: Sort headers.
7490 * complaints.c: Sort headers.
7491 * coffread.c: Sort headers.
7492 * coff-pe-read.c: Sort headers.
7493 * cli-out.h: Sort headers.
7494 * cli-out.c: Sort headers.
7495 * charset.c: Sort headers.
7496 * c-varobj.c: Sort headers.
7497 * c-valprint.c: Sort headers.
7498 * c-typeprint.c: Sort headers.
7499 * c-lang.c: Sort headers.
7500 * buildsym.c: Sort headers.
7501 * buildsym-legacy.c: Sort headers.
7502 * build-id.h: Sort headers.
7503 * build-id.c: Sort headers.
7504 * btrace.c: Sort headers.
7505 * bsd-uthread.c: Sort headers.
7506 * breakpoint.h: Sort headers.
7507 * breakpoint.c: Sort headers.
7508 * break-catch-throw.c: Sort headers.
7509 * break-catch-syscall.c: Sort headers.
7510 * break-catch-sig.c: Sort headers.
7511 * blockframe.c: Sort headers.
7512 * block.c: Sort headers.
7513 * bfin-tdep.c: Sort headers.
7514 * bfin-linux-tdep.c: Sort headers.
7515 * bfd-target.c: Sort headers.
7516 * bcache.c: Sort headers.
7517 * ax-general.c: Sort headers.
7518 * ax-gdb.h: Sort headers.
7519 * ax-gdb.c: Sort headers.
7520 * avr-tdep.c: Sort headers.
7521 * auxv.c: Sort headers.
7522 * auto-load.c: Sort headers.
7523 * arm-wince-tdep.c: Sort headers.
7524 * arm-tdep.c: Sort headers.
7525 * arm-symbian-tdep.c: Sort headers.
7526 * arm-pikeos-tdep.c: Sort headers.
7527 * arm-obsd-tdep.c: Sort headers.
7528 * arm-nbsd-tdep.c: Sort headers.
7529 * arm-nbsd-nat.c: Sort headers.
7530 * arm-linux-tdep.c: Sort headers.
7531 * arm-linux-nat.c: Sort headers.
7532 * arm-fbsd-tdep.c: Sort headers.
7533 * arm-fbsd-nat.c: Sort headers.
7534 * arm-bsd-tdep.c: Sort headers.
7535 * arch-utils.c: Sort headers.
7536 * arc-tdep.c: Sort headers.
7537 * arc-newlib-tdep.c: Sort headers.
7538 * annotate.h: Sort headers.
7539 * annotate.c: Sort headers.
7540 * amd64-windows-tdep.c: Sort headers.
7541 * amd64-windows-nat.c: Sort headers.
7542 * amd64-tdep.c: Sort headers.
7543 * amd64-sol2-tdep.c: Sort headers.
7544 * amd64-obsd-tdep.c: Sort headers.
7545 * amd64-obsd-nat.c: Sort headers.
7546 * amd64-nbsd-tdep.c: Sort headers.
7547 * amd64-nbsd-nat.c: Sort headers.
7548 * amd64-nat.c: Sort headers.
7549 * amd64-linux-tdep.c: Sort headers.
7550 * amd64-linux-nat.c: Sort headers.
7551 * amd64-fbsd-tdep.c: Sort headers.
7552 * amd64-fbsd-nat.c: Sort headers.
7553 * amd64-dicos-tdep.c: Sort headers.
7554 * amd64-darwin-tdep.c: Sort headers.
7555 * amd64-bsd-nat.c: Sort headers.
7556 * alpha-tdep.c: Sort headers.
7557 * alpha-obsd-tdep.c: Sort headers.
7558 * alpha-nbsd-tdep.c: Sort headers.
7559 * alpha-mdebug-tdep.c: Sort headers.
7560 * alpha-linux-tdep.c: Sort headers.
7561 * alpha-linux-nat.c: Sort headers.
7562 * alpha-bsd-tdep.c: Sort headers.
7563 * alpha-bsd-nat.c: Sort headers.
7564 * aix-thread.c: Sort headers.
7565 * agent.c: Sort headers.
7566 * addrmap.c: Sort headers.
7567 * ada-varobj.c: Sort headers.
7568 * ada-valprint.c: Sort headers.
7569 * ada-typeprint.c: Sort headers.
7570 * ada-tasks.c: Sort headers.
7571 * ada-lang.c: Sort headers.
7572 * aarch64-tdep.c: Sort headers.
7573 * aarch64-ravenscar-thread.c: Sort headers.
7574 * aarch64-newlib-tdep.c: Sort headers.
7575 * aarch64-linux-tdep.c: Sort headers.
7576 * aarch64-linux-nat.c: Sort headers.
7577 * aarch64-fbsd-tdep.c: Sort headers.
7578 * aarch64-fbsd-nat.c: Sort headers.
7579 * aarch32-linux-nat.c: Sort headers.
7581 2019-04-04 Tom Tromey <tom@tromey.com>
7583 * varobj.c (varobj_create): Update.
7584 * rust-exp.y (struct rust_parser) <update_innermost_block,
7585 lookup_symbol>: New methods.
7586 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7588 (rust_parser::rust_lookup_type)
7589 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7590 * printcmd.c (display_command, do_one_display): Update.
7591 * parser-defs.h (struct parser_state) <parser_state>: Add
7592 "tracker" parameter.
7593 (block_tracker): New member.
7594 (class innermost_block_tracker) <innermost_block_tracker>: Add
7596 <reset>: Remove method.
7597 (innermost_block): Don't declare.
7598 (null_post_parser): Update.
7599 * parse.c (innermost_block): Remove global.
7600 (write_dollar_variable): Update.
7601 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7602 Remove "tracker_types" parameter.
7603 (parse_expression): Add "tracker" parameter.
7604 (parse_expression_for_completion): Update.
7605 (null_post_parser): Add "tracker" parameter.
7606 * p-exp.y: Update rules.
7607 * m2-exp.y: Update rules.
7608 * language.h (struct language_defn) <la_post_parser>: Add
7609 "tracker" parameter.
7610 * go-exp.y: Update rules.
7611 * f-exp.y: Update rules.
7612 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7614 * d-exp.y: Update rules.
7615 * c-exp.y: Update rules.
7616 * breakpoint.c (set_breakpoint_condition): Create an
7617 innermost_block_tracker.
7618 (watch_command_1): Likewise.
7619 * ada-lang.c (resolve): Add "tracker" parameter.
7620 (resolve_subexp): Likewise.
7621 * ada-exp.y (write_var_from_sym): Update.
7623 2019-04-04 Tom Tromey <tom@tromey.com>
7625 * type-stack.h: New file.
7626 * type-stack.c: New file.
7627 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7629 (insert_into_type_stack, insert_type, push_type, push_type_int)
7630 (insert_type_address_space, pop_type, pop_type_int)
7631 (pop_typelist, pop_type_stack, append_type_stack)
7632 (push_type_stack, get_type_stack, push_typelist)
7633 (follow_type_instance_flags, follow_types): Don't declare.
7634 * parse.c (type_stack): Remove global.
7635 (parse_exp_in_context): Update.
7636 (insert_into_type_stack, insert_type, push_type, push_type_int)
7637 (insert_type_address_space, pop_type, pop_type_int)
7638 (pop_typelist, pop_type_stack, append_type_stack)
7639 (push_type_stack, get_type_stack, push_typelist)
7640 (follow_type_instance_flags, follow_types): Remove (moved to
7642 * f-exp.y (type_stack): New global.
7644 (push_kind_type, f_parse): Update.
7645 * d-exp.y (type_stack): New global.
7648 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7650 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7651 (HFILES_NO_SRCDIR): Add type-stack.h.
7653 2019-04-04 Tom Tromey <tom@tromey.com>
7655 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7656 (rust_parser::convert_ast_to_expression, rust_parse)
7657 (rust_lex_test_completion, rust_lex_tests): Update.
7658 * parser-defs.h (struct expr_completion_state): New.
7659 (struct parser_state) <parser_state>: Add completion parameter.
7660 <mark_struct_expression, mark_completion_tag>: New methods.
7661 <parse_completion, m_completion_state>: New members.
7662 (prefixify_expression, null_post_parser): Update.
7663 (mark_struct_expression, mark_completion_tag): Don't declare.
7664 * parse.c (parse_completion, expout_last_struct)
7665 (expout_tag_completion_type, expout_completion_name): Remove
7667 (parser_state::mark_struct_expression)
7668 (parser_state::mark_completion_tag): Now methods.
7669 (prefixify_expression): Add last_struct parameter.
7670 (prefixify_subexp): Likewise.
7671 (parse_exp_1): Update.
7672 (parse_exp_in_context): Add cstate parameter. Update.
7673 (parse_expression_for_completion): Create an
7674 expr_completion_state.
7675 (null_post_parser): Add "completion" parameter.
7676 * p-exp.y: Update rules.
7678 * language.h (struct language_defn) <la_post_parser>: Add
7679 "completing" parameter.
7680 * go-exp.y: Update rules.
7681 (lex_one_token): Update.
7682 * expression.h (parse_completion): Don't declare.
7683 * d-exp.y: Update rules.
7684 (lex_one_token): Update rules.
7685 * c-exp.y: Update rules.
7686 (lex_one_token): Update.
7687 * ada-lang.c (resolve): Add "parse_completion" parameter.
7688 (resolve_subexp): Likewise.
7689 (ada_resolve_function): Likewise.
7691 2019-04-04 Tom Tromey <tom@tromey.com>
7693 * parser-defs.h (struct parser_state) <start_arglist,
7694 end_arglist>: New methods.
7695 <arglist_len, m_funcall_chain>: New members.
7696 (arglist_len, start_arglist, end_arglist): Don't declare.
7697 * parse.c (arglist_len, funcall_chain): Remove global.
7698 (start_arglist, end_arglist): Remove functions.
7699 (parse_exp_in_context): Update.
7700 * p-exp.y: Update rules.
7701 * m2-exp.y: Update rules.
7702 * go-exp.y: Update rules.
7703 * f-exp.y: Update rules.
7704 * d-exp.y: Update rules.
7705 * c-exp.y: Update rules.
7707 2019-04-04 Tom Tromey <tom@tromey.com>
7709 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7710 lex_operator, push_back>: New methods.
7712 (rust_parser::lex_hex, lex_escape): Rename and update.
7713 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7714 (rust_parser::lex_operator): Rename and update.
7715 (rust_parser::lex_number, rustyylex, rustyyerror)
7716 (rust_lex_test_init, rust_lex_test_sequence)
7717 (rust_lex_test_push_back, rust_lex_tests): Update.
7718 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7720 <lexptr, prev_lexptr>: New members.
7721 (lexptr, prev_lexptr): Don't declare.
7722 * parse.c (lexptr, prev_lexptr): Remove globals.
7723 (parse_exp_in_context): Update.
7724 * p-exp.y (yylex, yyerror): Update.
7725 * m2-exp.y (parse_number, yylex, yyerror): Update.
7726 * go-exp.y (lex_one_token, yyerror): Update.
7727 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7728 * d-exp.y (lex_one_token, yyerror): Update.
7729 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7730 (lex_one_token, yyerror): Update.
7731 * ada-lex.l (YY_INPUT): Update.
7732 (rewind_to_char): Update.
7733 * ada-exp.y (yyerror): Update.
7735 2019-04-04 Tom Tromey <tom@tromey.com>
7737 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7738 * parser-defs.h (struct parser_state) <parser_state>: Add new
7740 <comma_terminates>: New member.
7741 (comma_terminates): Don't declare global.
7742 * parse.c (comma_terminates): Remove global.
7743 (parse_exp_in_context): Update.
7744 * p-exp.y (yylex): Update.
7745 * m2-exp.y (yylex): Update.
7746 * go-exp.y (lex_one_token): Update.
7747 * f-exp.y (yylex): Update.
7748 * d-exp.y (lex_one_token): Update.
7749 * c-exp.y (lex_one_token): Update.
7750 * ada-lex.l: Update.
7752 2019-04-04 Tom Tromey <tom@tromey.com>
7754 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7755 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7756 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7757 * parser-defs.h (paren_depth): Don't declare.
7758 * parse.c (paren_depth): Remove global.
7759 (parse_exp_in_context): Update.
7760 * p-exp.y (paren_depth): New global.
7761 (pascal_parse): Initialize it.
7762 * m2-exp.y (paren_depth): New global.
7763 (m2_parse): Initialize it.
7764 * go-exp.y (paren_depth): New global.
7765 (go_parse): Initialize it.
7766 * f-exp.y (paren_depth): New global.
7767 (f_parse): Initialize it.
7768 * d-exp.y (paren_depth): New global.
7769 (d_parse): Initialize it.
7770 * c-exp.y (paren_depth): New global.
7771 (c_parse): Initialize it.
7772 * ada-lex.l (paren_depth): New global.
7773 (lexer_init): Initialize it.
7775 2019-04-04 Tom Tromey <tom@tromey.com>
7777 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7778 (rust_parser::convert_ast_to_type)
7779 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7780 * parser-defs.h (struct parser_state) <parser_state>: Add
7781 parameters. Initialize new members.
7782 <expression_context_block, expression_context_pc>: New members.
7783 * parse.c (expression_context_block, expression_context_pc):
7785 (parse_exp_in_context): Update.
7786 * p-exp.y: Update all rules.
7788 * m2-exp.y: Update all rules.
7790 * go-exp.y (yylex): Update.
7791 * f-exp.y (yylex): Update.
7792 * d-exp.y: Update all rules.
7794 * c-exp.y: Update all rules.
7795 (lex_one_token, classify_name, yylex, c_parse): Update.
7796 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7798 2019-04-04 Tom Tromey <tom@tromey.com>
7800 * gdbarch.h, gdbarch.c: Rebuild.
7801 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7803 (struct stap_parse_info): Replace "parser_state" with
7805 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7806 (parser_state): New class.
7807 * parse.c (expr_builder): Rename.
7808 (expr_builder::release): Rename.
7809 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7810 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7811 (write_exp_elt_longcst, write_exp_elt_floatcst)
7812 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7813 (write_exp_string_vector, write_exp_bitstring)
7814 (write_exp_msymbol, mark_struct_expression)
7815 (write_dollar_variable)
7816 (insert_type_address_space, increase_expout_size): Replace
7817 "parser_state" with "expr_builder".
7818 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7819 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7820 "parser_state" with "expr_builder".
7822 2019-04-04 Tom Tromey <tom@tromey.com>
7824 * rust-exp.y: Replace "parse_language" with method call.
7826 (yylex): Replace "parse_language" with method call.
7828 (yylex): Replace "parse_language" with method call.
7829 * go-exp.y (classify_name): Replace "parse_language" with method
7831 * f-exp.y (yylex): Replace "parse_language" with method call.
7832 * d-exp.y (lex_one_token): Replace "parse_language" with method
7835 (lex_one_token, classify_name, yylex): Replace "parse_language"
7837 * ada-exp.y (find_primitive_type, type_char)
7838 (type_system_address): Replace "parse_language" with method call.
7840 2019-04-04 Tom Tromey <tom@tromey.com>
7842 * rust-exp.y: Replace "parse_gdbarch" with method call.
7843 * parse.c (write_dollar_variable, insert_type_address_space):
7844 Replace "parse_gdbarch" with method call.
7845 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7847 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7849 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7850 "parse_gdbarch" with method call.
7851 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7853 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7854 "parse_gdbarch" with method call.
7855 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7856 "parse_gdbarch" with method call.
7857 * c-exp.y (parse_type, parse_number, classify_name): Replace
7858 "parse_gdbarch" with method call.
7859 * ada-lex.l: Replace "parse_gdbarch" with method call.
7860 * ada-exp.y (parse_type, find_primitive_type, type_char)
7861 (type_system_address): Replace "parse_gdbarch" with method call.
7863 2019-04-04 Tom Tromey <tom@tromey.com>
7865 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7866 * stap-probe.c (stap_parse_argument): Update.
7867 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7868 initial_size parameter.
7869 * rust-exp.y (rust_lex_tests): Update.
7870 * parse.c (parser_state): Update.
7871 (parse_exp_in_context): Update.
7872 * parser-defs.h (struct parser_state) <parser_state>: Remove
7873 "initial_size" parameter.
7875 2019-04-04 Tom Tromey <tom@tromey.com>
7877 * parser-defs.h (increase_expout_size): Don't declare.
7878 * parse.c (increase_expout_size): Now static.
7880 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7882 * gnu-nat.c (gnu_nat_target::wait): Fix
7883 target_waitstatus_to_string call.
7885 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7887 * eval.c (evaluate_subexp_standard): Handle internal functions
7888 during Fortran function call handling.
7890 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7892 * NEWS: Mention new internal functions.
7893 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7894 (read_base_type): Use dwarf2_init_complex_target_type.
7895 * value.c (creal_internal_fn): New function.
7896 (cimag_internal_fn): New function.
7897 (_initialize_values): Register new internal functions.
7899 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7901 * infrun.c (stop_all_threads): If debug_infrun, always
7902 trace the wait status after wait_one, using
7903 target_waitstatus_to_string and target_pid_to_str.
7904 (handle_inferior_event): Replace various trace of
7905 wait status kind by a single trace.
7906 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7907 wait status kind image by target_waitstatus_to_string.
7908 * target/waitstatus.c (target_waitstatus_to_string): Fix
7911 2019-04-01 Tom Tromey <tromey@adacore.com>
7914 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7916 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7917 Pedro Alves <palves@redhat.com>
7919 * top.c (quit_force): Call 'finalize_values'.
7920 * value.c (finalize_values): New function.
7921 * value.h (finalize_values): Declare.
7923 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7925 * NEWS: Announce $_gdb_major and $_gdb_minor.
7927 * top.c (init_gdb_version_vars): New function.
7928 (gdb_init): Call init_gdb_version_vars.
7930 2019-03-29 Tom Tromey <tromey@adacore.com>
7932 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7933 help text. Remove dead code.
7935 2019-03-29 Keith Seitz <keiths@redhat.com>
7937 From Siddhesh Poyarekar:
7938 * f-lang.h (f77_get_upperbound): Return LONGEST.
7939 (f77_get_lowerbound): Likewise.
7940 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7941 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7943 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7944 plongest to format print it.
7945 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7946 (f77_get_upperbound): Likewise.
7947 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7948 LOWER_BOUND to LONGEST.
7949 (f77_create_arrayprint_offset_tbl): Likewise.
7951 2019-03-29 Keith Seitz <keiths@redhat.com>
7953 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7954 %s/pulongest for TYPE_LENGTH instead of %d in format
7956 * ada-typerint.c (ada_print_type): Likewise.
7957 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7958 * compile/compile-c-support.c (generate_register_struct): Likewise.
7959 * gdbtypes.c (recursive_dump_type): Likewise.
7960 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7961 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7962 instead of %d in format strings.
7963 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7964 to std::min to ULONGEST.
7965 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7966 instead of %d in format strings.
7967 * tracepoint.c (info_scope_command): Likewise.
7968 * typeprint.c (print_offset_data::update)
7969 (print_offset_data::finish): Likewise.
7970 * xtensa-tdep.c (xtensa_store_return_value)
7971 (xtensa_push_dummy_call): Likewise.
7973 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7975 * windows-nat.c (display_selector): Fixed format specifications
7978 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7980 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7982 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7984 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7985 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7986 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7987 (nios2_linux_init_abi): Install it.
7989 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7991 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7993 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7995 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7997 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7998 Tom Tromey <tromey@adacore.com>
8000 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8002 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8004 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8005 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8006 method to compute the bounds of range types. Also print "[evaluated]"
8007 if the bounds' values come from a dynamic evaluation.
8009 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8011 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8012 whitespace when pretty printing is on.
8014 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8016 * ppc-linux-nat.c: Add include.
8018 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8020 * NEWS: Mention AArch64 Pointer Authentication.
8022 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8024 * arm-linux-nat.c: Add include.
8026 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8028 * source-cache.c (source_cache::get_source_lines): Re-read
8029 fullname after calling open_source_file.
8031 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8033 * NEWS: Mention TLS support for FreeBSD.
8035 2019-03-25 Tom Tromey <tromey@adacore.com>
8037 * minsyms.c (BUNCH_SIZE): Update comment.
8038 (~minimal_symbol_reader): Remove old comment.
8039 (compact_minimal_symbols): Update comment.
8040 (minimal_symbol_reader::install): Remove old comment. Update
8043 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8045 * s390-linux-nat.c: Add include.
8047 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8049 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8050 Call linux_get_hwcap.
8051 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8053 (aarch64_linux_get_hwcap): Remove function.
8054 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8056 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8058 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8059 * linux-tdep.c (linux_get_hwcap): Add function.
8060 (linux_get_hwcap2): Likewise.
8061 * linux-tdep.h (linux_get_hwcap): Add declaration.
8062 (linux_get_hwcap2): Likewise.
8063 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8064 (ppc_linux_get_hwcap2): Likewise.
8065 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8067 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8068 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8069 (ppc_linux_nat_target::read_description): Likewise.
8070 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8071 * s390-linux-nat.c: Likewise.
8072 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8074 2019-03-24 Tom Tromey <tom@tromey.com>
8076 * ada-lang.c (standard_lookup): Simplify initialization.
8077 (ada_lookup_symbol_nonlocal): Simplify return.
8078 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8079 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8080 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8081 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8083 * solib.c (solib_global_lookup): Simplify.
8084 * symtab.c (null_block_symbol): Remove.
8085 (symbol_cache_lookup): Simplify returns.
8086 (lookup_language_this): Simplify returns.
8087 (lookup_symbol_aux): Simplify return.
8088 (lookup_local_symbol): Simplify returns.
8089 (lookup_global_symbol_from_objfile): Simplify return.
8090 (lookup_symbol_in_objfile_symtabs)
8091 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8092 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8093 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8094 * cp-namespace.c (cp_lookup_bare_symbol)
8095 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8096 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8097 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8098 (cp_lookup_symbol_via_imports): Simplify initialization.
8099 (find_symbol_in_baseclass): Likewise.
8100 * symtab.h (null_block_symbol): Remove.
8101 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8102 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8103 (d_lookup_symbol_module): Likewise.
8104 (find_symbol_in_baseclass): Simplify initialization.
8106 2019-03-24 Tom Tromey <tom@tromey.com>
8108 * expression.h: Don't include symtab.h.
8109 (struct block): Forward declare.
8111 2019-03-24 Tom Tromey <tom@tromey.com>
8113 * c-exp.y (typebase): Remove casts.
8114 * gdbtypes.c (lookup_unsigned_typename, )
8115 (lookup_signed_typename): Remove cast.
8116 * eval.c (parse_to_comma_and_eval): Remove cast.
8117 * parse.c (write_dollar_variable): Remove cast.
8118 * block.h (struct block) <superblock>: Now const.
8119 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8120 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8121 (map_block): Make "block" const.
8122 * symfile.h (struct quick_symbol_functions)
8123 <map_matching_symbols>: Constify block argument to "callback".
8124 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8126 (find_pc_sect_compunit_symtab): Make "b" const.
8127 (find_symbol_at_address): Likewise.
8128 (search_symbols): Likewise.
8129 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8130 (dw2_debug_names_lookup_symbol): Likewise.
8131 (dw2_map_matching_symbols): Update.
8132 * p-valprint.c (pascal_val_print): Remove "block".
8133 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8134 (aux_add_nonlocal_symbols): Make "block" const.
8135 (resolve_subexp): Remove cast.
8136 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8138 (iterate_over_file_blocks): Likewise.
8139 * f-exp.y (%union) <bval>: Remove.
8140 * coffread.c (patch_opaque_types): Make "b" const.
8141 * spu-tdep.c (spu_catch_start): Make "block" const.
8142 * c-valprint.c (print_unpacked_pointer): Remove "block".
8143 * symmisc.c (dump_symtab_1): Make "b" const.
8144 (block_depth): Make "block" const.
8145 * d-exp.y (%union) <bval>: Remove.
8146 * cp-support.h (cp_lookup_rtti_type): Update.
8147 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8148 * psymtab.c (psym_lookup_symbol): Make "block" const.
8149 (maintenance_check_psymtabs): Make "b" const.
8150 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8151 (enumerate_locals, enumerate_args): Update.
8152 * python/py-symtab.c (stpy_global_block): Make "block" const.
8153 (stpy_static_block): Likewise.
8154 * inline-frame.c (block_starting_point_at): Make "new_block"
8156 * block.c (find_block_in_blockvector): Make return type const.
8157 (blockvector_for_pc_sect): Make "b" const.
8158 (find_block_in_blockvector): Make "b" const.
8160 2019-03-23 Tom Tromey <tom@tromey.com>
8162 * varobj.c (varobj_create): Update.
8163 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8164 * printcmd.c (display_command, do_one_display): Don't reset
8166 * parser-defs.h (enum innermost_block_tracker_type): Move to
8168 (innermost_block): Update comment.
8169 * parse.c (parse_exp_1): Add tracker_types parameter.
8170 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8171 tracker_types parameter. Reset innermost_block.
8172 (parse_exp_in_context): Remove.
8173 (parse_expression_for_completion): Update.
8174 * objfiles.c (~objfile): Don't reset expression_context_block or
8176 * expression.h (enum innermost_block_tracker_type): Move from
8178 (parse_exp_1): Add tracker_types parameter.
8179 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8180 reset innermost_block.
8182 2019-03-23 Tom Tromey <tom@tromey.com>
8184 * objfiles.h: Include bcache.h.
8186 2019-03-23 Tom Tromey <tom@tromey.com>
8188 * linespec.c (get_current_search_block): Use
8189 scoped_restore_current_language.
8190 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8192 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8193 Jiong Wang <jiong.wang@arm.com>
8195 * aarch64-linux-tdep.c
8196 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8198 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8200 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8201 Jiong Wang <jiong.wang@arm.com>
8203 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8205 (aarch64_analyze_prologue_test): Add PACIASP test.
8206 (aarch64_prologue_prev_register): Unmask PC value.
8208 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8209 Jiong Wang <jiong.wang@arm.com>
8211 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8212 (aarch64_dwarf2_prev_register): Unmask PC value.
8213 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8214 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8215 DW_CFA_AARCH64_negate_ra_state.
8216 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8218 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8219 Jiong Wang <jiong.wang@arm.com>
8221 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8223 (aarch64_pseudo_register_name): Likewise.
8224 (aarch64_pseudo_register_type): Likewise.
8225 (aarch64_pseudo_register_reggroup_p): Likewise.
8226 (aarch64_gdbarch_init): Add pauth registers.
8227 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8228 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8229 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8230 (struct gdbarch_tdep): Add regnum for ra_state.
8232 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8233 Jiong Wang <jiong.wang@arm.com>
8235 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8237 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8238 Jiong Wang <jiong.wang@arm.com>
8240 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8242 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8243 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8244 (aarch64_gdbarch_init): Add puth registers.
8245 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8246 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8247 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8249 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8250 Jiong Wang <jiong.wang@arm.com>
8252 * aarch64-linux-nat.c
8253 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8254 * aarch64-linux-tdep.c
8255 (aarch64_linux_core_read_description): Likewise.
8256 (aarch64_linux_get_hwcap): New function.
8257 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8258 (aarch64_linux_get_hwcap): New declaration.
8260 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8261 Jiong Wang <jiong.wang@arm.com>
8263 * aarch64-linux-nat.c
8264 (aarch64_linux_nat_target::read_description): Add pauth param.
8265 * aarch64-linux-tdep.c
8266 (aarch64_linux_core_read_description): Likewise.
8267 * aarch64-tdep.c (struct target_desc): Add in pauth.
8268 (aarch64_read_description): Add pauth param.
8269 (aarch64_gdbarch_init): Likewise.
8270 * aarch64-tdep.h (aarch64_read_description): Likewise.
8271 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8272 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8273 * features/Makefile: Add new files.
8274 * features/aarch64-pauth.c: New file.
8275 * features/aarch64-pauth.xml: New file.
8277 2019-03-20 Tom Tromey <tromey@adacore.com>
8279 * infrun.c (handle_inferior_event): Rename from
8280 handle_inferior_event_1. Create a scoped_value_mark.
8281 (handle_inferior_event): Remove.
8283 2019-03-19 Tom Tromey <tromey@adacore.com>
8285 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8286 * infrun.h (print_stop_event): Add "displays" parameter.
8287 * infrun.c (print_stop_event): Add "displays" parameter.
8289 2019-03-19 Pedro Alves <palves@redhat.com>
8291 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8292 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8293 to -1. Fix TABs vs spaces.
8294 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8295 * tui/tui-out.h (tui_ui_out) Add intro comments.
8296 <m_line, m_start_of_line>: In-class initialize, and add describing
8299 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8301 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8303 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8305 2019-03-18 Pedro Alves <palves@redhat.com>
8306 Eli Zaretskii <eliz@gnu.org>
8308 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8309 m_line and m_start_of_line.
8311 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8313 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8314 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8315 it returns a newline. This fixes a regression in TU mode, whereby
8316 the next line is output on the same screen line as the user input.
8318 2019-03-18 Tom Tromey <tromey@adacore.com>
8320 * minsyms.c (minimal_symbol_reader::install): Remove call to
8323 2019-03-18 Pedro Alves <palves@redhat.com>
8325 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8327 (apply_style): New, factored out from ...
8328 (apply_ansi_escape): ... this. Handle reverse video mode.
8329 (tui_set_reverse_mode): New function.
8330 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8331 * tui/tui-winsource.c (tui_show_source_line): Use
8332 tui_set_reverse_mode instead of setting A_STANDOUT.
8333 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8336 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
8338 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8341 2019-03-18 Tom Tromey <tromey@adacore.com>
8343 * ada-lang.c (empty_array): Add "high" parameter.
8344 (ada_evaluate_subexp): Update.
8346 2019-03-17 Sergei Trofimovich <siarheit@google.com>
8348 * unittests/string_view-selftests.c: Define
8349 _initialize_string_view_selftests unconditionally.
8351 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8354 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8356 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8359 * windows-nat.c (display_selector): Fix format specifiers.
8361 2019-03-17 Eli Zaretskii <eliz@gnu.org>
8363 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8364 tui_refill_source_window instead of tui_refresh_win, to update the
8365 current execution line. This fixes redisplay of the current line
8366 when stepping through the code with "next" or "step".
8368 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8370 * source-cache.c (source_cache::get_source_lines): Call
8371 find_source_lines to initialize s->nlines. This fixes vertical
8372 scrolling of TUI source window when the DOWN arrow is pressed.
8374 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8376 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8377 linux-thread-db.c (_initialize_thread_db): Likewise.
8379 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8381 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8382 wclrtoeol in tui_show_source_line". This reverts changes made in
8383 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8385 2019-03-15 Tom Tromey <tom@tromey.com>
8387 * symtab.h (struct minimal_symbol): Derive from
8388 general_symbol_info.
8389 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8390 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8391 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8392 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8393 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8394 (MSYMBOL_SEARCH_NAME): Update.
8395 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8396 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8397 * minsyms.c (minimal_symbol_reader::record_full): Update.
8399 2019-03-15 Tom Tromey <tom@tromey.com>
8401 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8403 2019-03-15 Tom Tromey <tom@tromey.com>
8405 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8407 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8409 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8410 (build_minimal_symbol_hash_tables)
8411 (minimal_symbol_reader::install): Update.
8413 2019-03-15 Tom Tromey <tom@tromey.com>
8415 * symtab.c (create_demangled_names_hash): Update.
8416 (symbol_set_names): Update.
8417 * objfiles.h (struct objfile_per_bfd_storage)
8418 <demangled_names_hash>: Now an htab_up.
8419 * objfiles.c (objfile_per_bfd_storage): Simplify.
8421 2019-03-15 Tom Tromey <tom@tromey.com>
8423 * objfiles.h (struct objfile_per_bfd_storage): Declare
8425 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8427 (get_objfile_bfd_data): Use new. Don't initialize
8429 (free_objfile_per_bfd_storage): Remove.
8430 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8432 2019-03-15 Tom Tromey <tom@tromey.com>
8434 * symfile.c (reread_symbols): Update.
8435 * objfiles.c (objfile::objfile): Update.
8436 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8437 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8439 (minimal_symbol_reader::install): Update.
8440 (terminate_minimal_symbol_table): Remove.
8441 * jit.c (jit_object_close_impl): Update.
8443 2019-03-15 Tom Tromey <tom@tromey.com>
8445 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8448 2019-03-15 Tom Tromey <tom@tromey.com>
8450 * objfiles.h (struct objfile_per_bfd_storage)
8451 <demangled_hash_languages>: Now a bitset.
8452 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8453 (lookup_minimal_symbol): Update.
8455 2019-03-15 Tom Tromey <tom@tromey.com>
8457 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8458 Don't return the symbol.
8459 * coffread.c (record_minimal_symbol): Use record_full.
8461 2019-03-14 Eli Zaretskii <eliz@gnu.org>
8463 The MS-Windows port of ncurses fails to switch to a color pair if
8464 one or both of the colors are the implicit default colors. This
8465 change records the default colors when TUI is initialized, and
8466 then specifies them explicitly when a color pair uses the default
8467 colors. This allows color styling in TUI mode on MS-Windows.
8469 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8471 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8472 colors in ncurses_norm_attr.
8473 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8474 "none", replace it with the default color recorded in
8477 2019-03-14 Tom Tromey <tromey@adacore.com>
8479 * source-cache.h (class source_cache) <get_source_lines>: Return
8481 * source-cache.c (source_cache::extract_lines): Handle case where
8482 first_pos==npos. Return std::string.
8483 (source_cache::get_source_lines): Update.
8485 2019-03-14 Tom Tromey <tromey@adacore.com>
8487 * NEWS: Add item for "style sources" commands.
8488 * source-cache.c (source_cache::get_source_lines): Check
8490 * cli/cli-style.c (source_styling): New global.
8491 (_initialize_cli_style): Add "style sources" commands.
8492 (show_style_sources): New function.
8493 * cli/cli-style.h (source_styling): Declare.
8495 2019-03-14 Pedro Alves <palves@redhat.com>
8496 Tom Tromey <tromey@adacore.com>
8498 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8499 * tui/tui-winsource.c (tui_refill_source_window): New function,
8501 (tui_horizontal_source_scroll): ... here. Move some logic.
8502 * cli/cli-style.c (set_style_enabled): Notify new observable.
8503 * tui/tui-hooks.c (tui_redisplay_source): New function.
8504 (tui_attach_detach_observers): Attach or detach
8505 tui_redisplay_source.
8506 * observable.h (source_styling_changed): New observable.
8507 * observable.c: Define source_styling_changed observable.
8509 2019-03-13 Tom Tromey <tromey@adacore.com>
8511 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8512 (i386_gnu_nat_target::store_registers): Update.
8513 * target-debug.h (target_debug_print_std_string): New macro.
8514 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8515 * windows-tdep.c (display_one_tib): Update.
8516 * tui/tui-stack.c (tui_make_status_line): Update.
8517 * top.c (print_inferior_quit_action): Update.
8518 * thread.c (thr_try_catch_cmd): Update.
8519 (add_thread_with_info): Update.
8520 (thread_target_id_str): Update.
8521 (thr_try_catch_cmd): Update.
8522 (thread_command): Update.
8523 (thread_find_command): Update.
8524 * record-btrace.c (record_btrace_target::info_record)
8525 (record_btrace_resume_thread, record_btrace_target::resume)
8526 (record_btrace_cancel_resume, record_btrace_step_thread)
8527 (record_btrace_target::wait, record_btrace_target::wait)
8528 (record_btrace_target::wait, record_btrace_target::stop): Update.
8529 * progspace.c (print_program_space): Update.
8530 * process-stratum-target.c
8531 (process_stratum_target::thread_address_space): Update.
8532 * linux-fork.c (linux_fork_mourn_inferior)
8533 (detach_checkpoint_command, info_checkpoints_command)
8534 (linux_fork_context): Update.
8535 (linux_fork_detach): Update.
8536 (class scoped_switch_fork_info): Update.
8537 (delete_checkpoint_command): Update.
8538 * infrun.c (follow_fork_inferior): Update.
8539 (follow_fork_inferior): Update.
8540 (proceed_after_vfork_done): Update.
8541 (handle_vfork_child_exec_or_exit): Update.
8542 (follow_exec): Update.
8543 (displaced_step_prepare_throw): Update.
8544 (displaced_step_restore): Update.
8545 (start_step_over): Update.
8547 (clear_proceed_status_thread): Update.
8549 (print_target_wait_results): Update.
8550 (do_target_wait): Update.
8551 (context_switch): Update.
8552 (stop_all_threads): Update.
8553 (restart_threads): Update.
8554 (finish_step_over): Update.
8555 (handle_signal_stop): Update.
8556 (switch_back_to_stepped_thread): Update.
8557 (keep_going_pass_signal): Update.
8558 (print_exited_reason): Update.
8559 (normal_stop): Update.
8560 * inferior.c (inferior_pid_to_str): Change return type.
8561 (print_selected_inferior): Update.
8562 (add_inferior): Update.
8563 (detach_inferior): Update.
8564 * dummy-frame.c (fprint_dummy_frames): Update.
8565 * dcache.c (dcache_info_1): Update.
8566 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8567 (btrace_fetch, btrace_clear): Update.
8568 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8569 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8571 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8572 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8573 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8574 * gdbarch.c, gdbarch.h: Rebuild.
8575 * gdbarch.sh (core_pid_to_str): Change return type.
8576 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8578 (windows_nat_target::pid_to_str): Change return type.
8579 (windows_delete_thread): Update.
8580 (windows_nat_target::attach): Update.
8581 (windows_nat_target::files_info): Update.
8582 * target-delegates.c: Rebuild.
8583 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8585 (sol_thread_target::pid_to_str): Change return type.
8586 * remote.c (class remote_target) <pid_to_str>: Change return
8588 (remote_target::pid_to_str): Change return type.
8589 (extended_remote_target::attach, remote_target::remote_stop_ns)
8590 (remote_target::remote_notif_remove_queued_reply)
8591 (remote_target::push_stop_reply, remote_target::disable_btrace):
8593 (extended_remote_target::attach): Update.
8594 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8596 (gdbsim_target::pid_to_str): Change return type.
8597 * ravenscar-thread.c (struct ravenscar_thread_target)
8598 <pid_to_str>: Change return type.
8599 (ravenscar_thread_target::pid_to_str): Change return type.
8600 * procfs.c (class procfs_target) <pid_to_str>: Change return
8602 (procfs_target::pid_to_str): Change return type.
8603 (procfs_target::attach): Update.
8604 (procfs_target::detach): Update.
8605 (procfs_target::fetch_registers): Update.
8606 (procfs_target::store_registers): Update.
8607 (procfs_target::wait): Update.
8608 (procfs_target::files_info): Update.
8609 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8610 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8612 (nto_procfs_target::pid_to_str): Change return type.
8613 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8614 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8616 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8618 (attach_proc_task_lwp_callback, get_detach_signal)
8619 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8620 (linux_nat_target::resume, wait_lwp, stop_callback)
8621 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8622 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8623 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8624 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8625 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8627 (inf_ptrace_target::attach): Update.
8628 (inf_ptrace_target::files_info): Update.
8629 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8631 (go32_nat_target::pid_to_str): Change return type.
8632 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8633 (gnu_nat_target::wait): Update.
8634 (gnu_nat_target::wait): Update.
8635 (gnu_nat_target::resume): Update.
8636 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8637 (fbsd_nat_target::wait): Update.
8638 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8640 (darwin_nat_target::attach): Update.
8641 * corelow.c (class core_target) <pid_to_str>: Change return type.
8642 (core_target::pid_to_str): Change return type.
8643 * target.c (normal_pid_to_str): Change return type.
8644 (default_pid_to_str): Likewise.
8645 (target_pid_to_str): Change return type.
8646 (target_translate_tls_address): Update.
8647 (target_announce_detach): Update.
8648 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8650 (bsd_uthread_target::pid_to_str): Change return type.
8651 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8653 (bsd_kvm_target::pid_to_str): Change return type.
8654 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8656 (aix_thread_target::pid_to_str): Change return type.
8657 * target.h (struct target_ops) <pid_to_str>: Change return type.
8658 (target_pid_to_str, normal_pid_to_str): Likewise.
8659 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8661 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8663 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8665 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8667 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8669 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8672 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8674 * NEWS: Mention that the new default MI version is 3. Mention
8675 changes to the output of commands and events that deal with
8676 multi-location breakpoints.
8677 * breakpoint.c: Include "mi/mi-out.h".
8678 (print_one_breakpoint): Change output syntax if using MI version
8680 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8682 (mi_multi_location_breakpoint_output_fixed): New.
8683 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8684 (mi_cmd_fix_multi_location_breakpoint_output): New.
8685 (mi_multi_location_breakpoint_output_fixed): New.
8686 * mi/mi-cmds.c (mi_cmds): Register command
8687 -fix-multi-location-breakpoint-output.
8688 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8691 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8693 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8694 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8695 instantiate mi_ui_out based on interpreter name.
8696 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8697 * mi/mi-main.c (mi_load_progress): Likewise.
8699 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8701 * NEWS: Combine separate "New targets" sections for 8.3.
8703 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8705 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8706 (ppcfbsd_init_abi): Install gdbarch
8707 "fetch_tls_load_module_address" and "get_thread_local_address"
8710 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8712 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8713 (riscv_fbsd_init_abi): Install gdbarch
8714 "fetch_tls_load_module_address" and "get_thread_local_address"
8717 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8719 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8720 (i386fbsd_init_abi): Install gdbarch
8721 "fetch_tls_load_module_address" and "get_thread_local_address"
8724 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8726 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8727 (amd64fbsd_init_abi): Install gdbarch
8728 "fetch_tls_load_module_address" and "get_thread_local_address"
8731 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8733 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8734 (struct fbsd_pspace_data): New type.
8735 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8736 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8737 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8738 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8739 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8741 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8743 * gdbtypes.c (lookup_struct_elt): New function.
8744 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8745 * gdbtypes.h (struct struct_elt): New type.
8746 (lookup_struct_elt): New prototype.
8748 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8750 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8751 remove disabled code block.
8753 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8755 * gdbarch.sh (get_thread_local_address): New method.
8756 * gdbarch.h, gdbarch.c: Regenerate.
8757 * target.c (target_translate_tls_address): Use
8758 gdbarch_get_thread_local_address if present instead of
8759 target::get_thread_local_address.
8761 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8763 * target.h (target::get_thread_local_address): Update comment.
8765 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8767 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8768 objfile->separate_debug_objfile_backlink if not NULL.
8770 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8772 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8773 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8774 (amd64bsd_store_inferior_registers): Likewise.
8775 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8776 Enable segment base registers.
8777 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8778 PT_GETFSBASE and PT_GETGSBASE.
8779 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8781 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8782 segment base registers.
8783 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8785 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8787 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8788 Update calls to i386_target_description to add 'segments'
8790 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8791 add segment base registers.
8792 * arch/i386.c (i386_create_target_description): Add 'segments'
8793 parameter to enable segment base registers.
8794 * arch/i386.h (i386_create_target_description): Likewise.
8795 * features/i386/32bit-segments.xml: New file.
8796 * features/i386/32bit-segments.c: Generate.
8797 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8798 call to i386_target_description to add 'segments' parameter.
8799 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8800 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8801 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8802 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8803 if feature is present.
8804 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8805 Add 'segments' parameter to call to i386_target_description.
8806 (i386_target_description): Add 'segments' parameter to enable
8807 segment base registers.
8808 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8809 to call to i386_target_description.
8810 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8811 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8812 Define I386_NUM_REGS.
8813 (i386_target_description): Add 'segments' parameter to enable
8814 segment base registers.
8816 2019-03-12 Eli Zaretskii <eliz@gnu.org>
8819 * source-cache.c: #undef open and close, to avoid unresolved
8820 externals during linking.
8822 2019-03-12 Tom Tromey <tromey@adacore.com>
8824 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8825 const. Add initializers.
8826 (_initialize_remote): Don't initialize ptid globals.
8828 2019-03-12 Pedro Alves <palves@redhat.com>
8830 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8832 2019-03-12 Pedro Alves <palves@redhat.com>
8834 * cp-name-parser.y (main): Remove unused 'len' variable.
8836 2019-03-12 Tom Tromey <tromey@adacore.com>
8838 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8839 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8841 2019-03-12 Tom Tromey <tromey@adacore.com>
8843 * linux-nat.c (iterate_over_lwps): Update.
8844 (stop_callback): Remove parameter.
8845 (stop_wait_callback, detach_callback, resume_set_callback)
8846 (select_singlestep_lwp_callback, set_ignore_sigint)
8847 (status_callback, resumed_callback, resume_clear_callback)
8848 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8850 (linux_nat_target::detach, linux_nat_target::resume)
8851 (linux_stop_and_wait_all_lwps, select_event_lwp)
8852 (linux_nat_filter_event, linux_nat_wait_1)
8853 (linux_nat_target::kill, linux_nat_target::stop)
8854 (linux_nat_target::stop): Update.
8855 (linux_nat_resume_callback): Change type.
8856 (resume_stopped_resumed_lwps, count_events_callback)
8857 (select_event_lwp_callback): Likewise.
8858 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8859 * arm-linux-nat.c (struct update_registers_data): Remove.
8860 (update_registers_callback): Change type.
8861 (arm_linux_insert_hw_breakpoint1): Update.
8862 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8864 (x86_linux_dr_set_addr): Update.
8865 (x86_linux_dr_set_control): Update.
8866 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8867 (iterate_over_lwps): Use gdb::function_view.
8868 * nat/aarch64-linux-hw-point.c (struct
8869 aarch64_dr_update_callback_param): Remove.
8870 (debug_reg_change_callback): Change type.
8871 (aarch64_notify_debug_reg_change): Update.
8872 * s390-linux-nat.c (s390_refresh_per_info): Update.
8874 2019-03-11 Tom Tromey <tromey@adacore.com>
8876 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8877 redundant assignment to "this_cu".
8879 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8881 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8883 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8885 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8887 (rank_one_type): ... this.
8889 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8891 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8893 (rank_one_type): ... this.
8895 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8897 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8899 (rank_one_type): ... this.
8901 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8903 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8905 (rank_one_type): ... this.
8907 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8909 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8911 (rank_one_type): ... this.
8913 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8915 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8917 (rank_one_type): ... this.
8919 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8921 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8923 (rank_one_type): ... this.
8925 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8927 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8929 (rank_one_type): ... this.
8931 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8933 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8935 (rank_one_type): ... this.
8937 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8939 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8941 (rank_one_type): ... this.
8943 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8945 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8947 (rank_one_type): ... this.
8949 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8951 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8953 (rank_one_type): ... this.
8955 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8957 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8958 inferior-events' shows the example events.
8960 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8962 Support styling on native MS-Windows console
8965 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8966 on MS-Windows if $TERM is not defined.
8968 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8970 * posix-hdep.c (gdb_console_fputs):
8971 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8973 * ui-file.h (gdb_console_fputs): Add prototype.
8975 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8976 back to fputs only if the former returns zero.
8978 2019-03-07 Tom Tromey <tom@tromey.com>
8980 * symmisc.c (print_symbol_bcache_statistics): Update.
8981 (print_objfile_statistics): Update.
8982 * symfile.c (allocate_symtab): Update.
8983 * stabsread.c: Don't include bcache.h.
8984 * psymtab.h (struct psymbol_bcache): Don't declare.
8985 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8986 (psymbol_bcache_init, psymbol_bcache_free)
8987 (psymbol_bcache_get_bcache): Don't declare.
8988 * psymtab.c (struct psymbol_bcache): Remove.
8989 (psymtab_storage::psymtab_storage): Update.
8990 (psymtab_storage::~psymtab_storage): Update.
8991 (psymbol_bcache_init, psymbol_bcache_free)
8992 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8993 (add_psymbol_to_bcache): Update.
8994 (allocate_psymtab): Update.
8995 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8996 macro_cache>: No longer pointers.
8997 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8998 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8999 * macrotab.c (macro_bcache): Update.
9000 * macroexp.c: Don't include bcache.h.
9001 * gdbtypes.c (check_types_worklist): Update.
9002 (types_deeply_equal): Remove TRY/CATCH. Update.
9003 * elfread.c (elf_symtab_read): Update.
9004 * dwarf2read.c: Don't include bcache.h.
9005 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9006 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9007 (print_bcache_statistics, bcache_memory_used): Don't declare.
9008 (struct bcache): Move from bcache.c. Add constructor, destructor,
9009 methods. Rename all data members.
9010 * bcache.c (struct bcache): Move to bcache.h.
9011 (bcache::expand_hash_table): Rename from expand_hash_table.
9013 (bcache::insert): Rename from bcache_full.
9014 (bcache::compare): Rename from bcache_compare.
9015 (bcache_xmalloc): Remove.
9016 (bcache::~bcache): Rename from bcache_xfree.
9017 (bcache::print_statistics): Rename from print_bcache_statistics.
9018 (bcache::memory_used): Rename from bcache_memory_used.
9020 2019-03-07 Pedro Alves <palves@redhat.com>
9022 * infrun.c (normal_stop): Also check for
9023 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9025 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9027 * f-lang.c (value_from_host_double): Moved to...
9028 * value.c (value_from_host_double): ...here.
9029 * value.h (value_from_host_double): Declare.
9030 * guile/scm-math.c (vlscm_convert_typed_number): Use
9031 value_from_host_double.
9032 (vlscm_convert_number): Likewise.
9033 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9034 * python/py-value.c (convert_value_from_python): Likewise.
9036 2019-03-06 Tom Tromey <tom@tromey.com>
9038 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9040 2019-03-06 Tom Tromey <tom@tromey.com>
9042 * utils.h (free_current_contents): Don't declare.
9043 * utils.c (free_current_contents): Remove.
9045 2019-03-06 Tom Tromey <tom@tromey.com>
9047 * top.c (quit_force): Update.
9048 * main.c (captured_command_loop): Update.
9049 * common/new-op.c (operator new): Update.
9050 * common/common-exceptions.c (struct catcher)
9051 <save_cleanup_chain>: Remove member.
9052 (exceptions_state_mc_init): Update.
9053 (exception_try_scope_entry): Return nullptr.
9054 (exception_try_scope_exit, exception_rethrow)
9055 (throw_exception_sjlj, throw_exception_cxx): Update.
9056 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9057 (all_cleanups, do_cleanups, discard_cleanups)
9058 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9059 (restore_cleanups, restore_final_cleanups): Don't declare.
9060 (do_final_cleanups): Remove parameter.
9061 * common/cleanups.c (cleanup_chain, make_cleanup)
9062 (make_cleanup_dtor, all_cleanups, do_cleanups)
9063 (discard_my_cleanups, discard_cleanups)
9064 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9065 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9066 (null_cleanup): Remove.
9067 (do_final_cleanups): Remove parameter.
9069 2019-03-06 Tom Tromey <tom@tromey.com>
9071 * remote.c (remote_target::remote_parse_stop_reply): Use
9074 2019-03-06 Tom Tromey <tom@tromey.com>
9076 * stabsread.c (struct stabs_field_info): Rename from field_info.
9077 <list, fnlist>: Add initializers.
9078 <obstack>: New member.
9079 (read_member_functions, read_struct_fields, read_baseclasses):
9080 Allocate on obstack. Don't use cleanups.
9081 (read_one_struct_field, read_member_functions, read_struct_fields)
9082 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9083 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9084 (read_struct_type): Update.
9086 2019-03-06 Tom Tromey <tom@tromey.com>
9088 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9089 * common/filestuff.h (make_cleanup_close): Don't declare.
9090 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9093 2019-03-06 Tom Tromey <tom@tromey.com>
9095 * solib-aix.c: Use make_scope_exit.
9097 2019-03-06 Tom Tromey <tom@tromey.com>
9099 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9100 Use make_scope_exit.
9102 2019-03-06 Tom Tromey <tom@tromey.com>
9104 * solib-svr4.c (disable_probes_interface): Remove parameter.
9105 (svr4_handle_solib_event): Use make_scope_exit.
9107 2019-03-06 Tom Tromey <tom@tromey.com>
9109 * remote.c (struct stop_reply_deleter): Remove.
9110 (stop_reply_up): Update.
9111 (struct stop_reply): Derive from notif_event. Don't typedef.
9112 <regcache>: Now a std::vector.
9113 (stop_reply_xfree): Remove.
9114 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9115 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9116 (remote_target::discard_pending_stop_replies): Use delete.
9117 (remote_target::remote_parse_stop_reply): Update.
9118 (remote_target::process_stop_reply): Update.
9119 * remote-notif.h (struct notif_event): Add virtual destructor.
9120 Remove "dtr" member.
9121 (struct notif_client) <alloc_event>: Return a unique_ptr.
9122 (notif_event_xfree): Don't declare.
9123 (notif_event_up): New typedef.
9124 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9125 (notif_event_xfree, do_notif_event_xfree): Remove.
9126 (remote_notif_state_xfree): Update.
9128 2019-03-06 Tom Tromey <tom@tromey.com>
9130 * infrun.c (displaced_step_clear_cleanup): Now a
9131 forward_scope_exit type.
9132 (displaced_step_prepare_throw): Update.
9133 (displaced_step_fixup): Update.
9135 2019-03-06 Tom Tromey <tom@tromey.com>
9137 * inferior.h (class inferior): Update comment.
9138 * gdbthread.h (class thread_info): Update comment.
9140 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9141 Tom Tromey <tom@tromey.com>
9143 * stabsread.h (struct stab_section_list): Remove.
9144 (coffstab_build_psymtabs): Update.
9145 * dbxread.c (symbuf_sections): Now a std::vector.
9146 (sect_idx): New global.
9147 (fill_symbuf): Update.
9148 (coffstab_build_psymtabs): Change type of stabsects parameter.
9150 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9152 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9153 (coff_locate_sections): Update.
9154 (coff_symfile_read): Remove cleanups. Update.
9155 (init_stringtab): Add storage parameter.
9156 (free_stringtab, free_stringtab_cleanup): Remove.
9157 (init_lineno): Add storage parameter.
9158 (free_linetab, free_linetab_cleanup): Remove.
9160 2019-03-06 Pedro Alves <palves@redhat.com>
9162 * linux-fork.c (fork_info::clobber_regs): Delete.
9163 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9164 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9166 (scoped_switch_fork_info::scoped_switch_fork_info)
9167 (checkpoint_command, linux_fork_context): Adjust
9168 fork_save_infrun_state calls.
9170 2019-03-06 Pedro Alves <palves@redhat.com>
9172 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9173 (inf_has_multiple_threads): Return 'bool' and rewrite using
9174 inferior_info::threads().
9176 2019-03-06 Pedro Alves <palves@redhat.com>
9178 * linux-fork.c: Include <list>.
9179 (fork_list): Now a std::list instance.
9180 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9181 (forks_exist_p, find_last_fork): Adjust.
9185 (free_fork): Delete, folded into fork_info::~fork_info().
9186 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9188 (init_fork_list): Delete.
9189 (linux_fork_killall, linux_fork_mourn_inferior)
9190 (linux_fork_detach, info_checkpoints_command): Adjust.
9191 (_initialize_linux_fork): No longer call init_fork_list.
9193 2019-03-06 Pedro Alves <palves@redhat.com>
9195 * linux-fork.c (new_fork): New, split out of ...
9196 (add_fork): ... this. Return void. Move "first fork" special
9197 case from here, to ...
9198 (checkpoint_command): ... here.
9199 * linux-linux.h (add_fork): Return void.
9201 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9203 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9205 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9206 Chris January <chris.january@arm.com>
9207 David Lecomber <david.lecomber@arm.com>
9209 * f-exp.y: New token, UNOP_INTRINSIC.
9210 (exp): New pattern using UNOP_INTRINSIC token.
9211 (f77_keywords): Add 'abs' keyword.
9212 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9213 (value_from_host_double): New function.
9214 (evaluate_subexp_f): Support UNOP_ABS.
9216 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9218 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9221 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9223 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9224 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9225 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9227 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9229 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9231 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9232 Chris January <chris.january@arm.com>
9234 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9235 * f-exp.y: Define 'KIND' token.
9236 (exp): New pattern for KIND expressions.
9237 (ptype): Handle types with a kind extension.
9238 (direct_abs_decl): Extend to spot kind extensions.
9239 (f77_keywords): Add 'kind' to the list.
9240 (push_kind_type): New function.
9241 (convert_to_kind_type): New function.
9242 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9243 * parse.c (operator_length_standard): Likewise.
9244 * parser-defs.h (enum type_pieces): Add tp_kind.
9245 * std-operator.def: Add UNOP_KIND.
9247 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9249 * f-exp.y (f_parse): Set yydebug.
9251 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9253 * f-lang.c (evaluate_subexp_f): New function.
9254 (exp_descriptor_f): New global.
9255 (f_language_defn): Use exp_descriptor_f instead of
9256 exp_descriptor_standard.
9258 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9260 * f-exp.y (struct token): Add comments.
9261 (dot_ops): Remove uppercase versions and the end marker.
9262 (f77_keywords): Likewise.
9263 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9264 entries in the dot_ops array are case insensitive, and use
9265 strncasecmp to compare strings. Also some whitespace cleanup in
9266 this area. Similar for the f77_keywords array, except entries in
9267 this list might be case sensitive.
9269 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9271 * f-exp.y (struct f77_boolean_val): Add comments.
9272 (boolean_values): Remove uppercase versions, and end marker.
9273 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9274 and use strncasecmp to achieve case insensitivity. Additionally,
9275 perform whitespace cleanup around this code.
9277 2019-03-06 Tom Tromey <tromey@adacore.com>
9279 * remote-sim.c (gdbsim_target_open): Use result of
9282 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9283 Dirk Schubert <dirk.schubert@arm.com>
9284 Chris January <chris.january@arm.com>
9286 * eval.c (evaluate_subexp_standard): Call Fortran argument
9288 * f-lang.c (struct value): A value which can be passed into a
9289 Fortran function call.
9290 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9292 (struct type): Value ready for a Fortran function call.
9293 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9295 * f-lang.h (fortran_argument_convert): Declaration.
9296 (fortran_preserve_arg_pointer): Declaration.
9297 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9299 2019-03-05 Tom Tromey <tromey@adacore.com>
9301 * python/py-prettyprint.c (print_string_repr): Remove #if.
9302 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9304 2019-03-05 Tom Tromey <tromey@adacore.com>
9306 * target.c (the_dummy_target): Move later. Change type to
9308 (initialize_targets): Don't initialize the_dummy_target.
9310 2019-03-05 Tom Tromey <tromey@adacore.com>
9312 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9313 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9315 2019-03-05 Tom Tromey <tromey@adacore.com>
9317 * windows-nat.c (windows_nat_target::attach)
9318 (windows_nat_target::detach): Don't call gdb_flush.
9319 * valprint.c (generic_val_print, val_print, val_print_string):
9320 Don't call gdb_flush.
9321 * utils.c (defaulted_query): Don't call gdb_flush.
9322 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9323 * target.c (target_announce_detach): Don't call gdb_flush.
9324 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9325 * remote.c (extended_remote_target::attach): Don't call
9327 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9328 * printcmd.c (do_examine): Don't call gdb_flush.
9329 (info_display_command): Don't call gdb_flush.
9330 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9331 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9332 * memattr.c (info_mem_command): Don't call gdb_flush.
9333 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9334 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9335 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9336 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9337 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9338 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9339 (gnu_nat_target::detach): Don't call gdb_flush.
9340 * f-valprint.c (f_val_print): Don't call gdb_flush.
9341 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9342 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9343 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9345 * c-valprint.c (c_val_print): Don't call gdb_flush.
9346 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9348 2019-03-05 Tom Tromey <tromey@adacore.com>
9350 * varobj.c (update_dynamic_varobj_children): Update.
9351 (install_default_visualizer): Use reset, not release.
9352 * value.c (set_internalvar): Update.
9353 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9354 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9355 ATTRIBUTE_UNUSED_RESULT.
9357 2019-03-05 Tom Tromey <tromey@adacore.com>
9359 * remote.c (class scoped_remote_fd) <release>: Add
9360 ATTRIBUTE_UNUSED_RESULT.
9362 2019-03-05 Tom Tromey <tromey@adacore.com>
9364 * macroexp.c (struct macro_buffer) <release>: Add
9365 ATTRIBUTE_UNUSED_RESULT.
9367 2019-03-05 Tom Tromey <tromey@adacore.com>
9369 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9370 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9371 ATTRIBUTE_UNUSED_RESULT.
9373 2019-03-05 Tom Tromey <tromey@adacore.com>
9375 * common/scoped_fd.h (class scoped_fd) <release>: Add
9376 ATTRIBUTE_UNUSED_RESULT.
9378 2019-03-05 Tom Tromey <tromey@adacore.com>
9380 * parser-defs.h (struct parser_state) <release>: Add
9381 ATTRIBUTE_UNUSED_RESULT.
9383 2019-03-05 Tom Tromey <tromey@adacore.com>
9385 * utils.h (class gdb_argv) <release>: Add
9386 ATTRIBUTE_UNUSED_RESULT.
9387 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9389 2019-03-02 Eli Zaretskii <eliz@gnu.org>
9391 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9392 for-loop range, to avoid compiler warnings.
9394 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9395 avoid compiler warnings about unused variables.
9397 * NEWS: Mention end of support for native debugging on MS-Windows
9401 * common/netstuff.c:
9402 * gdbserver/gdbreplay.c
9403 * gdbserver/remote-utils.c:
9405 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9406 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9407 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9408 'getaddrinfo' and 'freeaddrinfo' were not available before
9409 Windows XP, and mingw.org's MinGW headers by default define
9410 _WIN32_WINNT to 0x500.
9412 2019-03-01 Gary Benson <gbenson@redhat.com>
9414 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9416 2019-02-28 Brian Vandenberg <phantall@gmail.com>
9417 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9420 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9421 set_sigint_trap, clear_sigint_trap.
9423 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9425 * target.c (target_detach): Clear the regcache and the
9428 2019-02-27 Pedro Alves <palves@redhat.com>
9430 * utils.c (set_screen_size): When we cap the height/width sizes,
9431 tweak the corresponding command variable to show "unlimited":
9433 2019-02-27 Saagar Jha <saagar@saagarjha.com>
9434 Pedro Alves <palves@redhat.com>
9436 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9437 before calling rl_set_screen_size.
9439 2019-02-27 Tom Tromey <tromey@adacore.com>
9441 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9443 * python/py-value.c: Remove Python 2.4 workaround.
9444 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9446 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9447 Python 2.4 workaround.
9448 * python/python-internal.h: Remove Python 2.4 comment.
9449 (Py_ssize_t): Don't define.
9450 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9451 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9452 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9453 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9454 * python/python.c (do_start_initialization): Remove Python 2.4
9456 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9457 (print_children): Remove Python 2.4 workaround.
9458 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9460 (CHARBUFFERPROC_NAME): Remove.
9461 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9462 Python 2.4 workaround.
9464 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9466 * NEWS: Note minimum Python version.
9468 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9470 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9471 code from these functions. Remove corresponding ifdefs. Use
9472 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9473 Remove gotos and target of gotos.
9474 (infpy_search_memory): Likewise.
9476 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9478 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9479 (hppa_gdbarch_init): Don't register deleted functions with
9482 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9484 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9485 (h8300_unwind_sp): Delete.
9486 (h8300_dummy_id): Delete.
9487 (h8300_gdbarch_init): Don't register deleted functions with
9490 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9492 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9493 (ft32_unwind_pc): Delete.
9494 (ft32_unwind_sp): Delete.
9495 (ft32_gdbarch_init): Don't register deleted functions with
9498 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9500 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9501 (frv_unwind_pc): Delete.
9502 (frv_unwind_sp): Delete.
9503 (frv_gdbarch_init): Don't register deleted functions with
9506 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9508 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9509 (riscv_unwind_pc): Delete.
9510 (riscv_unwind_sp): Delete.
9511 (riscv_gdbarch_init): Don't register deleted functions with
9514 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9516 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9517 (csky_unwind_pc): Delete.
9518 (csky_unwind_sp): Delete.
9519 (csky_gdbarch_init): Don't register deleted functions with
9522 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9524 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9525 (cris_unwind_pc): Delete.
9526 (cris_unwind_sp): Delete.
9527 (cris_gdbarch_init): Don't register deleted functions with
9530 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9532 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9533 (bfin_unwind_pc): Delete.
9534 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9536 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9538 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9539 (arm_unwind_pc): Delete.
9540 (arm_unwind_sp): Delete.
9541 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9543 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9545 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9546 (arc_unwind_pc): Delete.
9547 (arc_unwind_sp): Delete.
9548 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9550 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9552 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9553 (alpha_unwind_pc): Delete.
9554 (alpha_gdbarch_init): Don't register deleted functions with
9557 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9559 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9560 (aarch64_unwind_pc): Delete.
9561 (aarch64_unwind_sp): Delete.
9562 (aarch64_gdbarch_init): Don't register deleted functions with
9565 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9567 * gdbtypes.c (type_align): Don't consider static members when
9568 computing structure alignment.
9570 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9572 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9573 return 0 for other types.
9574 * arch-utils.c (default_type_align): Always return 0.
9575 * gdbarch.h: Regenerate.
9576 * gdbarch.sh (type_align): Extend comment.
9577 * gdbtypes.c (type_align): Add additional comments, always call
9578 gdbarch_type_align before applying the default rules.
9579 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9580 generic code will then apply a suitable default.
9581 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9582 types, return 0 for other types.
9584 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9586 * NEWS: Create a new section for the next release branch.
9587 Rename the section of the current branch, now that it has
9590 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9592 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9593 * version.in: Bump version to 8.3.50.DATE-git.
9595 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9597 * aix-thread.c (ptid_cmp): Remove unused variable.
9598 (get_signaled_thread): Likewise.
9599 (store_regs_user_thread): Likewise.
9600 (store_regs_kernel_thread): Likewise.
9601 (fetch_regs_kernel_thread): Remove shadowed variable.
9603 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9605 * features/riscv/32bit-cpu.xml: Add register numbers.
9606 * features/riscv/32bit-fpu.c: Regenerate.
9607 * features/riscv/32bit-fpu.xml: Add register numbers.
9608 * features/riscv/64bit-cpu.xml: Add register numbers.
9609 * features/riscv/64bit-fpu.c: Regenerate.
9610 * features/riscv/64bit-fpu.xml: Add register numbers.
9612 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9614 * NEWS: Mention two argument form of gdb.Value constructor.
9615 * python/py-value.c (convert_buffer_and_type_to_value): New
9617 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9618 Add support for handling an optional second argument. Call
9619 convert_buffer_and_type_to_value as appropriate.
9620 * python/python-internal.h (Py_buffer_deleter): New struct.
9621 (Py_buffer_up): New typedef.
9623 2019-02-25 John Baldwin <jhb@FreeBSD.org>
9625 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9626 instead of releasing ownership.
9628 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
9630 * dwarf2read.c (open_and_init_dwp_file): Call
9631 elf_numsections instead of bfd_count_sections to initialize
9632 dwp_file->num_sections.
9634 2019-02-25 Tom Tromey <tromey@adacore.com>
9636 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9638 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9640 * gcore.in: Add '--readnever' option when invoking GDB.
9642 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9644 * MAINTAINERS: Update my email address.
9646 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9648 * build-id.c (build_id_to_debug_bfd_1): New function.
9649 (build_id_to_debug_bfd): Look for separate debug file in
9652 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9654 * gdbarch.sh: Update the copyright year range that is placed into
9657 2019-02-22 Keith Seitz <keiths@redhat.com>
9660 * linespec.c (create_sals_line_offset): Search for the default
9661 symtab's filename instead of its fullname.
9663 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9665 * NEWS: Update style defaults.
9667 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9669 * main.c (captured_main_1): Disable styling in batch mode.
9671 2019-02-20 Tom Tromey <tom@tromey.com>
9673 * symtab.c (symtab_symbol_info): Fix typos.
9675 2019-02-20 Tom Tromey <tromey@adacore.com>
9677 * findcmd.c (_initialize_mem_search): Use upper case for
9678 metasyntactic variables.
9680 2019-02-20 Alan Hayward <alan.hayward@arm.com>
9682 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9683 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9685 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9687 * top.h (source_file_name): Change to std::string.
9688 * top.c (source_file_name): Likewise.
9689 (command_line_input): Adjust.
9690 * cli/cli-script.c (script_from_file): Adjust.
9692 2019-02-19 Tom Tromey <tromey@adacore.com>
9694 * ravenscar-thread.c
9695 (ravenscar_thread_target::update_thread_list): Don't call
9696 ada_build_task_list.
9697 * ada-lang.h (ada_build_task_list): Don't declare.
9698 * ada-tasks.c (struct ada_tasks_inferior_data)
9699 <task_list_valid_p>: Now bool.
9700 (read_known_tasks, ada_task_list_changed)
9701 (ada_tasks_invalidate_inferior_data): Update.
9702 (read_known_tasks_array): Return bool.
9703 (read_known_tasks_list): Likewise.
9704 (read_known_tasks): Return void.
9705 (ada_build_task_list): Now static.
9707 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9709 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9710 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9712 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9714 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9715 variant for ada_tasks_pspace_data_handle and
9716 ada_tasks_inferior_data_handle.
9717 (ada_tasks_pspace_data_cleanup): New function.
9718 (ada_tasks_inferior_data_cleanup): New function.
9720 2019-02-17 Tom Tromey <tom@tromey.com>
9722 * macrotab.h (macro_source_fullname): Return a std::string.
9723 * macrotab.c (macro_include, check_for_redefinition)
9724 (macro_undef, macro_lookup_definition, foreach_macro)
9725 (foreach_macro_in_scope): Update.
9726 (macro_source_fullname): Return a std::string.
9727 * macrocmd.c (show_pp_source_pos): Update.
9729 2019-02-17 Tom Tromey <tom@tromey.com>
9731 * macrocmd.c (show_pp_source_pos): Style the file names.
9733 2019-02-17 Tom Tromey <tom@tromey.com>
9736 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9738 2019-02-17 Tom Tromey <tom@tromey.com>
9740 * ada-lang.c (user_select_syms): Use filtered printing.
9741 * utils.c (wrap_style): New global.
9742 (desired_style): Remove.
9743 (emit_style_escape): Add stream parameter.
9744 (set_output_style, reset_terminal_style, prompt_for_continue):
9746 (flush_wrap_buffer): Only flush gdb_stdout.
9747 (wrap_here): Set wrap_style.
9748 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9749 treat escape sequences as a character. Change when wrap buffer is
9751 (fputs_styled): Do not set the output style when the default is
9753 * ui-style.h (struct ui_file_style) <is_default>: New method.
9754 * source.c (print_source_lines_base): Emit escape sequences in one
9757 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9759 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9760 integers and enumeration types.
9762 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9764 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9765 instead of lookup_symbol_in_language
9766 (do_exact_match): New function.
9767 (ada_get_symbol_name_matcher): Return do_exact_match when
9768 doing a verbatim match.
9770 2019-02-15 Tom Tromey <tromey@adacore.com>
9772 * ravenscar-thread.c (ravenscar_thread_target::resume)
9773 (ravenscar_thread_target::wait): Special case wildcard requests.
9775 2019-02-15 Tom Tromey <tromey@adacore.com>
9777 * ravenscar-thread.c (base_ptid): Remove.
9778 (struct ravenscar_thread_target) <close>: New method.
9779 <m_base_ptid>: New member.
9780 <update_inferior_ptid, active_task, task_is_currently_active,
9781 runtime_initialized>: Declare methods.
9782 <ravenscar_thread_target>: Add constructor.
9783 (ravenscar_thread_target::task_is_currently_active)
9784 (ravenscar_thread_target::update_inferior_ptid)
9785 (ravenscar_runtime_initialized): Rename. Now methods.
9786 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9787 (ravenscar_thread_target::update_thread_list): Update.
9788 (ravenscar_thread_target::active_task): Now method.
9789 (ravenscar_thread_target::store_registers)
9790 (ravenscar_thread_target::prepare_to_store)
9791 (ravenscar_thread_target::prepare_to_store)
9792 (ravenscar_thread_target::mourn_inferior): Update.
9793 (ravenscar_inferior_created): Use "new" to create target.
9794 (ravenscar_thread_target::get_ada_task_ptid): Update.
9795 (_initialize_ravenscar): Don't initialize base_ptid.
9796 (ravenscar_ops): Remove global.
9798 2019-02-15 Tom Tromey <tromey@adacore.com>
9800 * target.h (push_target): Declare new overload.
9801 * target.c (push_target): New overload, taking an rvalue reference.
9802 * remote.c (remote_target::open_1): Use push_target overload.
9803 * corelow.c (core_target_open): Use push_target overload.
9805 2019-02-15 Tom Tromey <tromey@adacore.com>
9807 * ravenscar-thread.c (is_ravenscar_task)
9808 (ravenscar_task_is_currently_active): Return bool.
9809 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9810 (_initialize_ravenscar): Remove "(void)".
9811 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9814 2019-02-15 Tom Tromey <tromey@adacore.com>
9816 * ravenscar-thread.c (ravenscar_runtime_initializer)
9817 (has_ravenscar_runtime, get_running_thread_id)
9818 (ravenscar_thread_target::resume): Fix indentation.
9820 2019-02-15 Tom Tromey <tromey@adacore.com>
9822 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9823 from ravenscar_arch_ops.
9824 (sparc_ravenscar_ops::fetch_registers)
9825 (sparc_ravenscar_ops::store_registers): Now methods.
9826 (sparc_ravenscar_prepare_to_store): Remove.
9827 (sparc_ravenscar_ops): Redefine.
9828 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9829 methods and destructor. Remove members.
9830 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9831 (ravenscar_thread_target::store_registers)
9832 (ravenscar_thread_target::prepare_to_store): Update.
9833 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9835 (struct ppc_ravenscar_powerpc_ops): Derive from
9837 (ppc_ravenscar_powerpc_ops::fetch_registers)
9838 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9839 (ppc_ravenscar_powerpc_ops): Redefine.
9840 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9841 (ppc_ravenscar_e500_ops::fetch_registers)
9842 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9843 (ppc_ravenscar_e500_ops): Redefine.
9844 * aarch64-ravenscar-thread.c
9845 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9846 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9847 (aarch64_ravenscar_fetch_registers)
9848 (aarch64_ravenscar_store_registers): Now methods.
9849 (aarch64_ravenscar_ops): Redefine.
9851 2019-02-15 Tom Tromey <tromey@adacore.com>
9853 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9854 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9855 (ravenscar_thread_target::stopped_by_watchpoint)
9856 (ravenscar_thread_target::stopped_data_address)
9857 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9859 2019-02-15 Tom Tromey <tromey@adacore.com>
9861 * ravenscar-thread.c: Fix some typos.
9863 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9864 Tom Tromey <tromey@adacore.com>
9866 * ada-lang.c (ada_exception_sal): Change addr_string to a
9868 (create_ada_exception_catchpoint): Update.
9870 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9871 Tom Tromey <tromey@adacore.com>
9873 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9874 (bp_location_ops): Remove.
9875 (base_breakpoint_allocate_location): Update.
9876 (free_bp_location): Update.
9877 * ada-lang.c (class ada_catchpoint_location)
9878 <ada_catchpoint_location>: Remove ops parameter.
9879 (ada_catchpoint_location_dtor): Remove.
9880 (ada_catchpoint_location_ops): Remove.
9881 (allocate_location_exception): Update.
9882 * breakpoint.h (struct bp_location_ops): Remove.
9883 (class bp_location) <bp_location>: Remove bp_location_ops
9885 <~bp_location>: Add destructor.
9888 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9889 Pedro Alves <palves@redhat.com>
9891 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9894 2019-02-14 David Michael <fedora.dm0@gmail.com>
9895 Samuel Thibault <samuel.thibault@gnu.org>
9896 Thomas Schwinge <thomas@codesourcery.com>
9898 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9899 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9901 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9903 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9904 (check_empty): Use "const char *".
9906 * gnu-nat.c (gnu_nat_target::detach): Instead of
9907 'detach_inferior (pid)' call
9908 'detach_inferior (find_inferior_pid (pid))'.
9910 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9911 'nat/fork-inferior.o'.
9912 * gnu-nat.c: #include "nat/fork-inferior.h".
9914 * gnu-nat.c (gnu_nat_target::detach): Instead of
9915 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9916 * gnu-nat.h: #include "inf-child.h".
9917 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9918 'i386_gnu_nat_target::fetch_registers'.
9919 (gnu_store_registers): Rename/move to
9920 'i386_gnu_nat_target::store_registers'.
9922 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9923 * gnu-nat.h (mach_thread_info): New function.
9924 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9926 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9928 2019-02-14 Frederic Konrad <konrad@adacore.com>
9930 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9932 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9934 * windows-nat.c (windows_add_thread): Add new parameter
9935 "main_thread_p" with default value set to false. Update
9936 function documentation as well as all callers.
9937 (windows_delete_thread): Likewise.
9938 (fake_create_process): Update call to windows_add_thread.
9939 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9940 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9941 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9942 call to windows_delete_thread.
9944 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9946 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9948 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9950 * symfile.c (find_separate_debug_file): Use canonical path of
9951 sysroot with child_path instead of gdb_sysroot if it is valid.
9953 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9955 * symfile.c (find_separate_debug_file): Use child_path to
9956 determine if an object file is under a sysroot.
9958 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9960 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9961 unittests/child-path-selftests.c.
9962 * common/pathstuff.c (child_path): New function.
9963 * common/pathstuff.h (child_path): New prototype.
9964 * unittests/child-path-selftests.c: New file.
9966 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9968 * symfile.c (find_separate_debug_file): Look for separate debug
9969 files in debug directories under the sysroot.
9971 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9973 * symtab.h (struct minimal_symbol data_p): New const method.
9974 (struct minimal_symbol text_p): Likewise.
9975 * symtab.c (output_source_filename): Use file name style
9977 (print_symbol_info): Likewise.
9978 (print_msymbol_info): Use address style to print addresses.
9979 Use function name style to print executable text symbols.
9980 (expand_symtab_containing_pc): Use data_p.
9981 (find_pc_sect_compunit_symtab): Likewise.
9983 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9985 * breakpoint.c (describe_other_breakpoints): Use address style
9987 (say_where): Likewise.
9989 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9991 * ada-typeprint.c (print_func_type): Print function name
9992 style to print function name.
9993 * c-typeprint.c (c_print_type_1): Likewise.
9995 2019-02-11 Alan Hayward <alan.hayward@arm.com>
9997 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10000 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10002 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10005 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10007 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10008 TYPE_CODE_REF types.
10010 2019-02-08 Jim Wilson <jimw@sifive.com>
10012 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10013 (riscv_linux_fregset): New.
10014 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10016 2019-02-07 Tom Tromey <tom@tromey.com>
10018 * thread.c (thread_cancel_execution_command): Update.
10019 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10021 (struct thread_fsm_ops): Remove.
10022 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10023 (thread_fsm_should_stop, thread_fsm_return_value)
10024 (thread_fsm_set_finished, thread_fsm_finished_p)
10025 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10027 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10028 * infrun.c (clear_proceed_status_thread)
10029 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10030 (print_stop_event): Update.
10031 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10033 (step_command_fsm_ops): Remove.
10034 (new_step_command_fsm): Remove.
10036 (step_command_fsm::should_stop): Rename from
10037 step_command_fsm_should_stop.
10038 (step_command_fsm::clean_up): Rename from
10039 step_command_fsm_clean_up.
10040 (step_command_fsm::do_async_reply_reason): Rename from
10041 step_command_fsm_async_reply_reason.
10042 (struct until_next_fsm): Inherit from thread_fsm. Add
10044 (until_next_fsm_ops): Remove.
10045 (new_until_next_fsm): Remove.
10046 (until_next_fsm::should_stop): Rename from
10047 until_next_fsm_should_stop.
10048 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10049 (until_next_fsm::do_async_reply_reason): Rename from
10050 until_next_fsm_async_reply_reason.
10051 (struct finish_command_fsm): Inherit from thread_fsm. Add
10052 constructor. Change type of breakpoint.
10053 (finish_command_fsm_ops): Remove.
10054 (new_finish_command_fsm): Remove.
10055 (finish_command_fsm::should_stop): Rename from
10056 finish_command_fsm_should_stop.
10057 (finish_command_fsm::clean_up): Rename from
10058 finish_command_fsm_clean_up.
10059 (finish_command_fsm::return_value): Rename from
10060 finish_command_fsm_return_value.
10061 (finish_command_fsm::do_async_reply_reason): Rename from
10062 finish_command_fsm_async_reply_reason.
10063 (finish_command): Update.
10064 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10066 (call_thread_fsm_ops): Remove.
10067 (call_thread_fsm::call_thread_fsm): Rename from
10068 new_call_thread_fsm.
10069 (call_thread_fsm::should_stop): Rename from
10070 call_thread_fsm_should_stop.
10071 (call_thread_fsm::should_notify_stop): Rename from
10072 call_thread_fsm_should_notify_stop.
10073 (run_inferior_call, call_function_by_hand_dummy): Update.
10074 * cli/cli-interp.c (should_print_stop_to_console): Update.
10075 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10076 Add constructor. Change type of location_breakpoint,
10078 (until_break_fsm_ops): Remove.
10079 (new_until_break_fsm): Remove.
10080 (until_break_fsm::should_stop): Rename from
10081 until_break_fsm_should_stop.
10082 (until_break_fsm::clean_up): Rename from
10083 until_break_fsm_clean_up.
10084 (until_break_fsm::do_async_reply_reason): Rename from
10085 until_break_fsm_async_reply_reason.
10086 (until_break_command): Update.
10087 * thread-fsm.c: Remove.
10088 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10090 2019-02-07 Tom Tromey <tom@tromey.com>
10092 * yy-remap.h: Add include guard.
10093 * xtensa-tdep.h: Add include guard.
10094 * xcoffread.h: Rename include guard.
10095 * varobj-iter.h: Add include guard.
10096 * tui/tui.h: Rename include guard.
10097 * tui/tui-winsource.h: Rename include guard.
10098 * tui/tui-wingeneral.h: Rename include guard.
10099 * tui/tui-windata.h: Rename include guard.
10100 * tui/tui-win.h: Rename include guard.
10101 * tui/tui-stack.h: Rename include guard.
10102 * tui/tui-source.h: Rename include guard.
10103 * tui/tui-regs.h: Rename include guard.
10104 * tui/tui-out.h: Rename include guard.
10105 * tui/tui-layout.h: Rename include guard.
10106 * tui/tui-io.h: Rename include guard.
10107 * tui/tui-hooks.h: Rename include guard.
10108 * tui/tui-file.h: Rename include guard.
10109 * tui/tui-disasm.h: Rename include guard.
10110 * tui/tui-data.h: Rename include guard.
10111 * tui/tui-command.h: Rename include guard.
10112 * tic6x-tdep.h: Add include guard.
10113 * target/waitstatus.h: Rename include guard.
10114 * target/wait.h: Rename include guard.
10115 * target/target.h: Rename include guard.
10116 * target/resume.h: Rename include guard.
10117 * target-float.h: Rename include guard.
10118 * stabsread.h: Add include guard.
10119 * rs6000-tdep.h: Add include guard.
10120 * riscv-fbsd-tdep.h: Add include guard.
10121 * regformats/regdef.h: Rename include guard.
10122 * record.h: Rename include guard.
10123 * python/python.h: Rename include guard.
10124 * python/python-internal.h: Rename include guard.
10125 * python/py-stopevent.h: Rename include guard.
10126 * python/py-ref.h: Rename include guard.
10127 * python/py-record.h: Rename include guard.
10128 * python/py-record-full.h: Rename include guard.
10129 * python/py-record-btrace.h: Rename include guard.
10130 * python/py-instruction.h: Rename include guard.
10131 * python/py-events.h: Rename include guard.
10132 * python/py-event.h: Rename include guard.
10133 * procfs.h: Add include guard.
10134 * proc-utils.h: Add include guard.
10135 * p-lang.h: Add include guard.
10136 * or1k-tdep.h: Rename include guard.
10137 * observable.h: Rename include guard.
10138 * nto-tdep.h: Rename include guard.
10139 * nat/x86-linux.h: Rename include guard.
10140 * nat/x86-linux-dregs.h: Rename include guard.
10141 * nat/x86-gcc-cpuid.h: Add include guard.
10142 * nat/x86-dregs.h: Rename include guard.
10143 * nat/x86-cpuid.h: Rename include guard.
10144 * nat/ppc-linux.h: Rename include guard.
10145 * nat/mips-linux-watch.h: Rename include guard.
10146 * nat/linux-waitpid.h: Rename include guard.
10147 * nat/linux-ptrace.h: Rename include guard.
10148 * nat/linux-procfs.h: Rename include guard.
10149 * nat/linux-osdata.h: Rename include guard.
10150 * nat/linux-nat.h: Rename include guard.
10151 * nat/linux-namespaces.h: Rename include guard.
10152 * nat/linux-btrace.h: Rename include guard.
10153 * nat/glibc_thread_db.h: Rename include guard.
10154 * nat/gdb_thread_db.h: Rename include guard.
10155 * nat/gdb_ptrace.h: Rename include guard.
10156 * nat/fork-inferior.h: Rename include guard.
10157 * nat/amd64-linux-siginfo.h: Rename include guard.
10158 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10159 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10160 * nat/aarch64-linux.h: Rename include guard.
10161 * nat/aarch64-linux-hw-point.h: Rename include guard.
10162 * mn10300-tdep.h: Add include guard.
10163 * mips-linux-tdep.h: Add include guard.
10164 * mi/mi-parse.h: Rename include guard.
10165 * mi/mi-out.h: Rename include guard.
10166 * mi/mi-main.h: Rename include guard.
10167 * mi/mi-interp.h: Rename include guard.
10168 * mi/mi-getopt.h: Rename include guard.
10169 * mi/mi-console.h: Rename include guard.
10170 * mi/mi-common.h: Rename include guard.
10171 * mi/mi-cmds.h: Rename include guard.
10172 * mi/mi-cmd-break.h: Rename include guard.
10173 * m2-lang.h: Add include guard.
10174 * location.h: Rename include guard.
10175 * linux-record.h: Rename include guard.
10176 * linux-nat.h: Add include guard.
10177 * linux-fork.h: Add include guard.
10178 * i386-darwin-tdep.h: Rename include guard.
10179 * hppa-linux-offsets.h: Add include guard.
10180 * guile/guile.h: Rename include guard.
10181 * guile/guile-internal.h: Rename include guard.
10182 * gnu-nat.h: Rename include guard.
10183 * gdb-stabs.h: Rename include guard.
10184 * frv-tdep.h: Add include guard.
10185 * f-lang.h: Add include guard.
10186 * event-loop.h: Add include guard.
10187 * darwin-nat.h: Rename include guard.
10188 * cp-abi.h: Rename include guard.
10189 * config/sparc/nm-sol2.h: Rename include guard.
10190 * config/nm-nto.h: Rename include guard.
10191 * config/nm-linux.h: Add include guard.
10192 * config/i386/nm-i386gnu.h: Rename include guard.
10193 * config/djgpp/nl_types.h: Rename include guard.
10194 * config/djgpp/langinfo.h: Rename include guard.
10195 * compile/gcc-cp-plugin.h: Add include guard.
10196 * compile/gcc-c-plugin.h: Add include guard.
10197 * compile/compile.h: Rename include guard.
10198 * compile/compile-object-run.h: Rename include guard.
10199 * compile/compile-object-load.h: Rename include guard.
10200 * compile/compile-internal.h: Rename include guard.
10201 * compile/compile-cplus.h: Rename include guard.
10202 * compile/compile-c.h: Rename include guard.
10203 * common/xml-utils.h: Rename include guard.
10204 * common/x86-xstate.h: Rename include guard.
10205 * common/version.h: Rename include guard.
10206 * common/vec.h: Rename include guard.
10207 * common/tdesc.h: Rename include guard.
10208 * common/selftest.h: Rename include guard.
10209 * common/scoped_restore.h: Rename include guard.
10210 * common/scoped_mmap.h: Rename include guard.
10211 * common/scoped_fd.h: Rename include guard.
10212 * common/safe-iterator.h: Rename include guard.
10213 * common/run-time-clock.h: Rename include guard.
10214 * common/refcounted-object.h: Rename include guard.
10215 * common/queue.h: Rename include guard.
10216 * common/ptid.h: Rename include guard.
10217 * common/print-utils.h: Rename include guard.
10218 * common/preprocessor.h: Rename include guard.
10219 * common/pathstuff.h: Rename include guard.
10220 * common/observable.h: Rename include guard.
10221 * common/netstuff.h: Rename include guard.
10222 * common/job-control.h: Rename include guard.
10223 * common/host-defs.h: Rename include guard.
10224 * common/gdb_wait.h: Rename include guard.
10225 * common/gdb_vecs.h: Rename include guard.
10226 * common/gdb_unlinker.h: Rename include guard.
10227 * common/gdb_unique_ptr.h: Rename include guard.
10228 * common/gdb_tilde_expand.h: Rename include guard.
10229 * common/gdb_sys_time.h: Rename include guard.
10230 * common/gdb_string_view.h: Rename include guard.
10231 * common/gdb_splay_tree.h: Rename include guard.
10232 * common/gdb_setjmp.h: Rename include guard.
10233 * common/gdb_ref_ptr.h: Rename include guard.
10234 * common/gdb_optional.h: Rename include guard.
10235 * common/gdb_locale.h: Rename include guard.
10236 * common/gdb_assert.h: Rename include guard.
10237 * common/filtered-iterator.h: Rename include guard.
10238 * common/filestuff.h: Rename include guard.
10239 * common/fileio.h: Rename include guard.
10240 * common/environ.h: Rename include guard.
10241 * common/common-utils.h: Rename include guard.
10242 * common/common-types.h: Rename include guard.
10243 * common/common-regcache.h: Rename include guard.
10244 * common/common-inferior.h: Rename include guard.
10245 * common/common-gdbthread.h: Rename include guard.
10246 * common/common-exceptions.h: Rename include guard.
10247 * common/common-defs.h: Rename include guard.
10248 * common/common-debug.h: Rename include guard.
10249 * common/cleanups.h: Rename include guard.
10250 * common/buffer.h: Rename include guard.
10251 * common/btrace-common.h: Rename include guard.
10252 * common/break-common.h: Rename include guard.
10253 * cli/cli-utils.h: Rename include guard.
10254 * cli/cli-style.h: Rename include guard.
10255 * cli/cli-setshow.h: Rename include guard.
10256 * cli/cli-script.h: Rename include guard.
10257 * cli/cli-interp.h: Rename include guard.
10258 * cli/cli-decode.h: Rename include guard.
10259 * cli/cli-cmds.h: Rename include guard.
10260 * charset-list.h: Add include guard.
10261 * buildsym-legacy.h: Rename include guard.
10262 * bfin-tdep.h: Add include guard.
10263 * ax.h: Rename include guard.
10264 * arm-linux-tdep.h: Add include guard.
10265 * arm-fbsd-tdep.h: Add include guard.
10266 * arch/xtensa.h: Rename include guard.
10267 * arch/tic6x.h: Add include guard.
10268 * arch/i386.h: Add include guard.
10269 * arch/arm.h: Rename include guard.
10270 * arch/arm-linux.h: Rename include guard.
10271 * arch/arm-get-next-pcs.h: Rename include guard.
10272 * arch/amd64.h: Add include guard.
10273 * arch/aarch64-insn.h: Rename include guard.
10274 * arch-utils.h: Rename include guard.
10275 * annotate.h: Add include guard.
10276 * amd64-darwin-tdep.h: Rename include guard.
10277 * aarch64-linux-tdep.h: Add include guard.
10278 * aarch64-fbsd-tdep.h: Add include guard.
10279 * aarch32-linux-nat.h: Add include guard.
10281 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10283 * macrotab.c (macro_define_internal): New function that
10284 factorizes macro_define_object_internal and macro_define_function
10286 (macro_define_object_internal): Use macro_define_internal.
10287 (macro_define_function): Likewise.
10289 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10291 * macrocmd.c (extract_identifier): Return
10292 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10295 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10297 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10299 2019-02-05 Tom Tromey <tom@tromey.com>
10301 * target.c (target_stack::unpush): Move assertion earlier.
10303 2019-01-30 Tom Tromey <tom@tromey.com>
10306 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10307 (gdbpy_parse_and_eval): Likewise.
10308 * python/python-internal.h (gdbpy_allow_threads): New class.
10310 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10312 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10313 (aarch64_fbsd_fpregmap): Move earlier.
10314 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10315 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10316 instead of individual calls to trad_frame_set_reg_addr.
10317 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10319 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10320 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10321 instead of individual calls to trad_frame_set_reg_addr.
10323 2019-01-28 Alan Hayward <alan.hayward@arm.com>
10325 * CONTRIBUTE: Replace contribution list with wiki link.
10327 2019-01-25 Tom Tromey <tom@tromey.com>
10329 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10331 2019-01-25 Tom Tromey <tom@tromey.com>
10333 * xtensa-linux-nat.c: Fix common/ includes.
10334 * xml-support.h: Fix common/ includes.
10335 * xml-support.c: Fix common/ includes.
10336 * x86-linux-nat.c: Fix common/ includes.
10337 * windows-nat.c: Fix common/ includes.
10338 * varobj.h: Fix common/ includes.
10339 * varobj.c: Fix common/ includes.
10340 * value.c: Fix common/ includes.
10341 * valops.c: Fix common/ includes.
10342 * utils.c: Fix common/ includes.
10343 * unittests/xml-utils-selftests.c: Fix common/ includes.
10344 * unittests/utils-selftests.c: Fix common/ includes.
10345 * unittests/unpack-selftests.c: Fix common/ includes.
10346 * unittests/tracepoint-selftests.c: Fix common/ includes.
10347 * unittests/style-selftests.c: Fix common/ includes.
10348 * unittests/string_view-selftests.c: Fix common/ includes.
10349 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10350 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10351 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10352 * unittests/rsp-low-selftests.c: Fix common/ includes.
10353 * unittests/parse-connection-spec-selftests.c: Fix common/
10355 * unittests/optional-selftests.c: Fix common/ includes.
10356 * unittests/offset-type-selftests.c: Fix common/ includes.
10357 * unittests/observable-selftests.c: Fix common/ includes.
10358 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10359 * unittests/memrange-selftests.c: Fix common/ includes.
10360 * unittests/memory-map-selftests.c: Fix common/ includes.
10361 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10362 * unittests/function-view-selftests.c: Fix common/ includes.
10363 * unittests/environ-selftests.c: Fix common/ includes.
10364 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10365 * unittests/common-utils-selftests.c: Fix common/ includes.
10366 * unittests/cli-utils-selftests.c: Fix common/ includes.
10367 * unittests/array-view-selftests.c: Fix common/ includes.
10368 * ui-file.c: Fix common/ includes.
10369 * tui/tui-io.c: Fix common/ includes.
10370 * tracepoint.h: Fix common/ includes.
10371 * tracepoint.c: Fix common/ includes.
10372 * tracefile-tfile.c: Fix common/ includes.
10373 * top.h: Fix common/ includes.
10374 * top.c: Fix common/ includes.
10375 * thread.c: Fix common/ includes.
10376 * target/waitstatus.h: Fix common/ includes.
10377 * target/waitstatus.c: Fix common/ includes.
10378 * target.h: Fix common/ includes.
10379 * target.c: Fix common/ includes.
10380 * target-memory.c: Fix common/ includes.
10381 * target-descriptions.c: Fix common/ includes.
10382 * symtab.h: Fix common/ includes.
10383 * symfile.c: Fix common/ includes.
10384 * stap-probe.c: Fix common/ includes.
10385 * spu-linux-nat.c: Fix common/ includes.
10386 * sparc-nat.c: Fix common/ includes.
10387 * source.c: Fix common/ includes.
10388 * solib.c: Fix common/ includes.
10389 * solib-target.c: Fix common/ includes.
10390 * ser-unix.c: Fix common/ includes.
10391 * ser-tcp.c: Fix common/ includes.
10392 * ser-pipe.c: Fix common/ includes.
10393 * ser-base.c: Fix common/ includes.
10394 * selftest-arch.c: Fix common/ includes.
10395 * s12z-tdep.c: Fix common/ includes.
10396 * rust-exp.y: Fix common/ includes.
10397 * rs6000-aix-tdep.c: Fix common/ includes.
10398 * riscv-tdep.c: Fix common/ includes.
10399 * remote.c: Fix common/ includes.
10400 * remote-notif.h: Fix common/ includes.
10401 * remote-fileio.h: Fix common/ includes.
10402 * remote-fileio.c: Fix common/ includes.
10403 * regcache.h: Fix common/ includes.
10404 * regcache.c: Fix common/ includes.
10405 * record-btrace.c: Fix common/ includes.
10406 * python/python.c: Fix common/ includes.
10407 * python/py-type.c: Fix common/ includes.
10408 * python/py-inferior.c: Fix common/ includes.
10409 * progspace.h: Fix common/ includes.
10410 * producer.c: Fix common/ includes.
10411 * procfs.c: Fix common/ includes.
10412 * proc-api.c: Fix common/ includes.
10413 * printcmd.c: Fix common/ includes.
10414 * ppc-linux-nat.c: Fix common/ includes.
10415 * parser-defs.h: Fix common/ includes.
10416 * osdata.c: Fix common/ includes.
10417 * obsd-nat.c: Fix common/ includes.
10418 * nat/x86-linux.c: Fix common/ includes.
10419 * nat/x86-linux-dregs.c: Fix common/ includes.
10420 * nat/x86-dregs.h: Fix common/ includes.
10421 * nat/x86-dregs.c: Fix common/ includes.
10422 * nat/ppc-linux.c: Fix common/ includes.
10423 * nat/mips-linux-watch.h: Fix common/ includes.
10424 * nat/mips-linux-watch.c: Fix common/ includes.
10425 * nat/linux-waitpid.c: Fix common/ includes.
10426 * nat/linux-ptrace.h: Fix common/ includes.
10427 * nat/linux-ptrace.c: Fix common/ includes.
10428 * nat/linux-procfs.c: Fix common/ includes.
10429 * nat/linux-personality.c: Fix common/ includes.
10430 * nat/linux-osdata.c: Fix common/ includes.
10431 * nat/linux-namespaces.c: Fix common/ includes.
10432 * nat/linux-btrace.h: Fix common/ includes.
10433 * nat/linux-btrace.c: Fix common/ includes.
10434 * nat/fork-inferior.c: Fix common/ includes.
10435 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10436 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10437 * nat/aarch64-linux.c: Fix common/ includes.
10438 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10439 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10440 * namespace.h: Fix common/ includes.
10441 * mips-linux-tdep.c: Fix common/ includes.
10442 * minsyms.c: Fix common/ includes.
10443 * mi/mi-parse.h: Fix common/ includes.
10444 * mi/mi-main.c: Fix common/ includes.
10445 * mi/mi-cmd-env.c: Fix common/ includes.
10446 * memrange.h: Fix common/ includes.
10447 * memattr.c: Fix common/ includes.
10448 * maint.h: Fix common/ includes.
10449 * maint.c: Fix common/ includes.
10450 * main.c: Fix common/ includes.
10451 * machoread.c: Fix common/ includes.
10452 * location.c: Fix common/ includes.
10453 * linux-thread-db.c: Fix common/ includes.
10454 * linux-nat.c: Fix common/ includes.
10455 * linux-fork.c: Fix common/ includes.
10456 * inline-frame.c: Fix common/ includes.
10457 * infrun.c: Fix common/ includes.
10458 * inflow.c: Fix common/ includes.
10459 * inferior.h: Fix common/ includes.
10460 * inferior.c: Fix common/ includes.
10461 * infcmd.c: Fix common/ includes.
10462 * inf-ptrace.c: Fix common/ includes.
10463 * inf-child.c: Fix common/ includes.
10464 * ia64-linux-nat.c: Fix common/ includes.
10465 * i387-tdep.c: Fix common/ includes.
10466 * i386-tdep.c: Fix common/ includes.
10467 * i386-linux-tdep.c: Fix common/ includes.
10468 * i386-linux-nat.c: Fix common/ includes.
10469 * i386-go32-tdep.c: Fix common/ includes.
10470 * i386-fbsd-tdep.c: Fix common/ includes.
10471 * i386-fbsd-nat.c: Fix common/ includes.
10472 * guile/scm-type.c: Fix common/ includes.
10473 * guile/guile.c: Fix common/ includes.
10474 * go32-nat.c: Fix common/ includes.
10475 * gnu-nat.c: Fix common/ includes.
10476 * gdbthread.h: Fix common/ includes.
10477 * gdbarch-selftests.c: Fix common/ includes.
10478 * gdb_usleep.c: Fix common/ includes.
10479 * gdb_select.h: Fix common/ includes.
10480 * gdb_bfd.c: Fix common/ includes.
10481 * gcore.c: Fix common/ includes.
10482 * fork-child.c: Fix common/ includes.
10483 * findvar.c: Fix common/ includes.
10484 * fbsd-nat.c: Fix common/ includes.
10485 * event-top.c: Fix common/ includes.
10486 * event-loop.c: Fix common/ includes.
10487 * dwarf2read.c: Fix common/ includes.
10488 * dwarf2loc.c: Fix common/ includes.
10489 * dwarf2-frame.c: Fix common/ includes.
10490 * dwarf-index-cache.c: Fix common/ includes.
10491 * dtrace-probe.c: Fix common/ includes.
10492 * disasm-selftests.c: Fix common/ includes.
10493 * defs.h: Fix common/ includes.
10494 * csky-tdep.c: Fix common/ includes.
10495 * cp-valprint.c: Fix common/ includes.
10496 * cp-support.h: Fix common/ includes.
10497 * cp-support.c: Fix common/ includes.
10498 * corelow.c: Fix common/ includes.
10499 * completer.h: Fix common/ includes.
10500 * completer.c: Fix common/ includes.
10501 * compile/compile.c: Fix common/ includes.
10502 * compile/compile-loc2c.c: Fix common/ includes.
10503 * compile/compile-cplus-types.c: Fix common/ includes.
10504 * compile/compile-cplus-symbols.c: Fix common/ includes.
10505 * command.h: Fix common/ includes.
10506 * cli/cli-dump.c: Fix common/ includes.
10507 * cli/cli-cmds.c: Fix common/ includes.
10508 * charset.c: Fix common/ includes.
10509 * build-id.c: Fix common/ includes.
10510 * btrace.h: Fix common/ includes.
10511 * btrace.c: Fix common/ includes.
10512 * breakpoint.h: Fix common/ includes.
10513 * breakpoint.c: Fix common/ includes.
10515 (enum agent_op): Fix common/ includes.
10516 * ax-general.c (struct aop_map): Fix common/ includes.
10517 * ax-gdb.c: Fix common/ includes.
10518 * auxv.c: Fix common/ includes.
10519 * auto-load.c: Fix common/ includes.
10520 * arm-tdep.c: Fix common/ includes.
10521 * arch/riscv.c: Fix common/ includes.
10522 * arch/ppc-linux-common.c: Fix common/ includes.
10523 * arch/i386.c: Fix common/ includes.
10524 * arch/arm.c: Fix common/ includes.
10525 * arch/arm-linux.c: Fix common/ includes.
10526 * arch/arm-get-next-pcs.c: Fix common/ includes.
10527 * arch/amd64.c: Fix common/ includes.
10528 * arch/aarch64.c: Fix common/ includes.
10529 * arch/aarch64-insn.c: Fix common/ includes.
10530 * arch-utils.c: Fix common/ includes.
10531 * amd64-windows-tdep.c: Fix common/ includes.
10532 * amd64-tdep.c: Fix common/ includes.
10533 * amd64-sol2-tdep.c: Fix common/ includes.
10534 * amd64-obsd-tdep.c: Fix common/ includes.
10535 * amd64-nbsd-tdep.c: Fix common/ includes.
10536 * amd64-linux-tdep.c: Fix common/ includes.
10537 * amd64-linux-nat.c: Fix common/ includes.
10538 * amd64-fbsd-tdep.c: Fix common/ includes.
10539 * amd64-fbsd-nat.c: Fix common/ includes.
10540 * amd64-dicos-tdep.c: Fix common/ includes.
10541 * amd64-darwin-tdep.c: Fix common/ includes.
10542 * agent.c: Fix common/ includes.
10543 * ada-lang.h: Fix common/ includes.
10544 * ada-lang.c: Fix common/ includes.
10545 * aarch64-tdep.c: Fix common/ includes.
10547 2019-01-25 Tom Tromey <tom@tromey.com>
10549 * common/create-version.sh: Use common/version.h.
10551 2019-01-24 Pedro Alves <palves@redhat.com>
10553 * infrun.c (signal_stop, signal_print, signal_program)
10554 (signal_catch, signal_pass): Now arrays instead of pointers.
10555 (update_signals_program_target, do_target_resume)
10556 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10557 * linux-nat.c (linux_nat_target::pass_signals)
10558 (linux_nat_target::create_inferior, linux_nat_target::attach):
10560 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10561 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10562 * procfs.c (procfs_target::pass_signals): Adjust.
10563 * record-full.c (record_full_target::resume): Adjust.
10564 * remote.c (remote_target::pass_signals)
10565 (remote_target::program_signals): Adjust.
10566 * target-debug.h (target_debug_print_signals): Now takes a
10567 gdb::array_view as parameter. Adjust.
10568 * target.h (target_ops) <pass_signals, program_signals>: Replace
10569 pointer and length parameters with gdb::array_view.
10570 (target_pass_signals, target_program_signals): Likewise.
10571 * target-delegates.c: Regenerate.
10573 2019-01-24 Pedro Alves <palves@redhat.com>
10575 * common/forward-scope-exit.h
10576 (forward_scope_exit::forward_scope_exit): Pass arguments to
10577 m_bind_function directly, instead of creating a std::bind and
10580 2019-01-24 Alan Hayward <alan.hayward@arm.com>
10582 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10583 for static members.
10584 (pass_in_v_vfp_candidate): Likewise.
10586 2019-01-23 Tom Tromey <tom@tromey.com>
10587 Pedro Alves <palves@redhat.com>
10589 * regcache.c (class regcache_invalidator): Remove.
10590 (regcache::raw_write): Use make_scope_exit.
10592 2019-01-23 Tom Tromey <tom@tromey.com>
10594 * ui-out.h (class ui_out_emit_type): Update comment.
10596 2019-01-23 Tom Tromey <tom@tromey.com>
10598 * infrun.c (fetch_inferior_event): Update comment.
10600 2019-01-23 Tom Tromey <tom@tromey.com>
10601 Pedro Alves <palves@redhat.com>
10603 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10605 (fetch_inferior_event): Use SCOPE_EXIT.
10608 2019-01-23 Tom Tromey <tom@tromey.com>
10609 Pedro Alves <palves@redhat.com>
10611 * infrun.c (disable_thread_events): Delete.
10612 (stop_all_threads): Use SCOPE_EXIT.
10614 2019-01-23 Tom Tromey <tom@tromey.com>
10615 Pedro Alves <palves@redhat.com>
10617 * symfile.c: Include forward-scope-exit.h.
10618 (clear_symtab_users_cleanup): Replace forward declaration with
10619 a FORWARD_SCOPE_EXIT.
10620 (syms_from_objfile_1): Use the forward_scope_exit and
10621 gdb::optional instead of cleanup_function.
10622 (reread_symbols): Use the forward_scope_exit instead of
10624 (clear_symtab_users_cleanup): Remove function.
10626 2019-01-23 Tom Tromey <tom@tromey.com>
10627 Pedro Alves <palves@redhat.com>
10629 * linux-nat.c: Include scope-exit.h.
10630 (cleanup_target_stop): Remove.
10631 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10634 2019-01-23 Tom Tromey <tom@tromey.com>
10635 Pedro Alves <palves@redhat.com>
10637 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10638 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10640 2019-01-23 Tom Tromey <tom@tromey.com>
10641 Andrew Burgess <andrew.burgess@embecosm.com>
10642 Pedro Alves <palves@redhat.com>
10644 * infrun.c (fetch_inferior_event): Use scope_exit.
10645 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10646 * top.c (execute_command): Use scope_exit.
10647 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10648 * utils.c (do_bpstat_clear_actions_cleanup)
10649 (make_bpstat_clear_actions_cleanup): Remove.
10651 2019-01-23 Tom Tromey <tom@tromey.com>
10652 Pedro Alves <palves@redhat.com>
10654 * infrun.c: Include "common/scope-exit.h"
10655 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10656 (wait_for_inferior): Use SCOPE_EXIT.
10657 (fetch_inferior_event): Use scope_exit.
10659 2019-01-23 Tom Tromey <tom@tromey.com>
10660 Pedro Alves <palves@redhat.com>
10662 * breakpoint.c (create_breakpoint): Remove cleanup.
10664 2019-01-23 Tom Tromey <tom@tromey.com>
10665 Andrew Burgess <andrew.burgess@embecosm.com>
10666 Pedro Alves <palves@redhat.com>
10668 2019-01-23 Pedro Alves <palves@redhat.com>
10670 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10672 2019-01-23 Pedro Alves <palves@redhat.com>
10673 Andrew Burgess <andrew.burgess@embecosm.com>
10675 * gdbthread.h: Include "common/forward-scope-exit.h".
10676 (scoped_finish_thread_state): Redefine custom class in terms of
10677 forward_scope_exit.
10679 2019-01-23 Pedro Alves <palves@redhat.com>
10680 Andrew Burgess <andrew.burgess@embecosm.com>
10682 * common/forward-scope-exit.h: New file.
10684 2019-01-23 Pedro Alves <palves@redhat.com>
10685 Andrew Burgess <andrew.burgess@embecosm.com>
10686 Tom Tromey <tom@tromey.com>
10688 * common/scope-exit.h: New file.
10690 2019-01-23 Pedro Alves <palves@redhat.com>
10692 * common/preprocessor.h (ESC): Rename to ...
10693 (ESC_PARENS): ... this.
10694 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10695 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10697 2019-01-23 Tom Tromey <tom@tromey.com>
10699 * language.h (class scoped_switch_to_sym_language_if_auto):
10700 Initialize m_lang in both cases.
10702 2019-01-23 Alan Hayward <alan.hayward@arm.com>
10704 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10707 2019-01-22 Tom Tromey <tom@tromey.com>
10709 * corelow.c: Do not include sys/file.h.
10711 2019-01-22 Tom Tromey <tom@tromey.com>
10713 * tui/tui-wingeneral.h: Include gdb_curses.h.
10715 2019-01-22 Tom Tromey <tom@tromey.com>
10717 * source-cache.h (class source_cache) <get_source_lines,
10718 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10720 2019-01-22 Tom Tromey <tom@tromey.com>
10722 * remote-fileio.h (struct remote_target): Declare.
10724 2019-01-22 Tom Tromey <tom@tromey.com>
10726 * python/py-arch.c: Do not include py-ref.h.
10727 * python/py-bpevent.c: Do not include py-ref.h.
10728 * python/py-cmd.c: Do not include py-ref.h.
10729 * python/py-continueevent.c: Do not include py-ref.h.
10730 * python/py-event.h: Do not include py-ref.h.
10731 * python/py-evtregistry.c: Do not include py-ref.h.
10732 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10733 * python/py-frame.c: Do not include py-ref.h.
10734 * python/py-framefilter.c: Do not include py-ref.h.
10735 * python/py-function.c: Do not include py-ref.h.
10736 * python/py-infevents.c: Do not include py-ref.h.
10737 * python/py-linetable.c: Do not include py-ref.h.
10738 * python/py-objfile.c: Do not include py-ref.h.
10739 * python/py-param.c: Do not include py-ref.h.
10740 * python/py-prettyprint.c: Do not include py-ref.h.
10741 * python/py-progspace.c: Do not include py-ref.h.
10742 * python/py-symbol.c: Do not include py-ref.h.
10743 * python/py-symtab.c: Do not include py-ref.h.
10744 * python/py-type.c: Do not include py-ref.h.
10745 * python/py-unwind.c: Do not include py-ref.h.
10746 * python/py-utils.c: Do not include py-ref.h.
10747 * python/py-value.c: Do not include py-ref.h.
10748 * python/py-varobj.c: Do not include py-ref.h.
10749 * python/py-xmethods.c: Do not include py-ref.h.
10750 * python/python.c: Do not include py-ref.h.
10751 * varobj.c: Do not include py-ref.h.
10753 2019-01-22 Tom Tromey <tom@tromey.com>
10755 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10756 keyword for bcache.
10758 2019-01-22 Tom Tromey <tom@tromey.com>
10760 * compile/compile-cplus-types.c: Remove a comment by #include.
10762 2019-01-22 Tom Tromey <tom@tromey.com>
10764 * compile/gcc-c-plugin.h: Include compile-internal.h.
10766 2019-01-22 Tom Tromey <tom@tromey.com>
10768 * stabsread.c (EXTERN): Do not define.
10769 (symnum, next_symbol_text_func, processing_gcc_compilation)
10770 (within_function, global_sym_chain, global_stabs)
10771 (previous_stab_code, this_object_header_files)
10772 (n_this_object_header_files)
10773 (n_allocated_this_object_header_files): Define.
10774 * stabsread.h (EXTERN): Never define. Use "extern".
10776 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10778 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10781 2019-01-21 Tom Tromey <tom@tromey.com>
10783 * ui-out.c: Fix includes.
10784 * tui/tui-source.c: Fix includes.
10785 * target.c: Fix includes.
10786 * remote.c: Fix includes.
10787 * regcache.c: Fix includes.
10788 * python/py-block.c: Fix includes.
10789 * printcmd.c: Fix includes.
10790 * or1k-tdep.c: Fix includes.
10791 * mi/mi-main.c: Fix includes.
10792 * m32r-tdep.c: Fix includes.
10793 * csky-tdep.c: Fix includes.
10794 * compile/compile-cplus-types.c: Fix includes.
10795 * cli/cli-interp.c: Fix includes.
10797 2019-01-21 Alan Hayward <alan.hayward@arm.com>
10799 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10802 2019-01-16 Tom Tromey <tom@tromey.com>
10804 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10806 (struct objfile) <msymbols_range>: Move from top level.
10807 <msymbols>: New method.
10808 (class objfile_msymbols): Remove.
10809 * symtab.c (default_collect_symbol_completion_matches_break_on):
10811 * symmisc.c (dump_msymbols): Update.
10812 * stabsread.c (scan_file_globals): Update.
10813 * objc-lang.c (info_selectors_command, info_classes_command)
10814 (find_methods): Update.
10815 * minsyms.c (find_solib_trampoline_target): Update.
10816 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10817 * coffread.c (coff_symfile_read): Update.
10818 * ada-lang.c (ada_lookup_simple_minsym)
10819 (ada_collect_symbol_completion_matches): Update.
10821 2019-01-16 Tom Tromey <tom@tromey.com>
10823 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10824 type. Remove no-argument constructor.
10825 <iterator::operator++>: Simplify.
10827 <end>: Use minimal_symbol_count.
10829 2019-01-16 Tom Tromey <tom@tromey.com>
10831 * objfiles.h (struct objfile) <psymtabs>: New method.
10832 (class objfile_psymtabs): Remove.
10833 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10835 <range>: New method.
10836 (require_partial_symbols): Change return type.
10837 * psymtab.c (require_partial_symbols)
10838 (psym_expand_symtabs_matching): Update.
10839 * mdebugread.c (parse_partial_symbols): Update.
10840 * dbxread.c (dbx_end_psymtab): Update.
10842 2019-01-15 Tom Tromey <tom@tromey.com>
10844 * symtab.c (lookup_objfile_from_block)
10845 (lookup_symbol_in_objfile_symtabs)
10846 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10847 (find_line_symtab, info_sources_command)
10848 (default_collect_symbol_completion_matches_break_on)
10849 (make_source_files_completion_list): Update.
10850 * symmisc.c (print_objfile_statistics, dump_objfile)
10851 (maintenance_print_symbols, maintenance_info_symtabs)
10852 (maintenance_check_symtabs, maintenance_info_line_tables):
10854 * source.c (select_source_symtab)
10855 (forget_cached_source_info_for_objfile): Update.
10856 * objfiles.h (class objfile_compunits): Remove.
10857 (struct objfile) <compunits_range>: New typedef.
10858 (compunits): New method.
10859 * objfiles.c (objfile_relocate1): Update.
10860 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10861 * maint.c (count_symtabs_and_blocks): Update.
10862 * linespec.c (iterate_over_all_matching_symtabs): Update.
10863 * cp-support.c (add_symbol_overload_list_qualified): Update.
10864 * coffread.c (coff_symtab_read): Update.
10865 * ada-lang.c (add_nonlocal_symbols)
10866 (ada_collect_symbol_completion_matches)
10867 (ada_add_global_exceptions): Update.
10869 2019-01-15 Tom Tromey <tom@tromey.com>
10871 * progspace.h (program_space) <objfiles_safe_range>: New
10873 <objfiles_safe>: New method.
10874 * objfiles.h (class all_objfiles_safe): Remove.
10875 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10876 * jit.c (jit_inferior_exit_hook): Update.
10878 2019-01-17 Tom Tromey <tom@tromey.com>
10880 * progspace.h (program_space) <objfiles_range>: New typedef.
10881 <objfiles>: New method.
10882 <objfiles_head>: Rename from objfiles.
10883 (object_files): Update.
10884 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10885 * guile/scm-pretty-print.c
10886 (ppscm_find_pretty_printer_from_objfiles): Update.
10887 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10888 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10890 * python/py-progspace.c (pspy_get_objfiles): Update.
10891 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10893 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10894 (objfpy_lookup_objfile_by_build_id): Update.
10895 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10896 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10898 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10899 (expand_symtab_containing_pc, lookup_objfile_from_block)
10900 (lookup_static_symbol, basic_lookup_transparent_type)
10901 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10902 (find_line_symtab, info_sources_command)
10903 (default_collect_symbol_completion_matches_break_on)
10904 (make_source_files_completion_list, find_main_name): Update.
10905 * symmisc.c (print_symbol_bcache_statistics)
10906 (print_objfile_statistics, maintenance_print_symbols)
10907 (maintenance_print_msymbols, maintenance_print_objfiles)
10908 (maintenance_info_symtabs, maintenance_check_symtabs)
10909 (maintenance_expand_symtabs, maintenance_info_line_tables):
10911 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10912 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10913 (map_overlay_command, unmap_overlay_command)
10914 (simple_overlay_update, expand_symtabs_matching)
10915 (map_symbol_filenames): Update.
10916 * symfile-debug.c (set_debug_symfile): Update.
10917 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10919 * source.c (select_source_symtab, forget_cached_source_info):
10921 * solib.c (solib_read_symbols): Update.
10922 * solib-spu.c (append_ocl_sos): Update.
10923 * psymtab.c (maintenance_print_psymbols)
10924 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10925 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10926 * printcmd.c (info_symbol_command): Update.
10927 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10929 * objfiles.h (class all_objfiles): Remove.
10930 * objfiles.c (have_partial_symbols, have_full_symbols)
10931 (have_minimal_symbols, qsort_cmp, update_section_map)
10932 (shared_objfile_contains_address_p)
10933 (default_iterate_over_objfiles_in_search_order): Update.
10934 * objc-lang.c (info_selectors_command, info_classes_command)
10935 (find_methods): Update.
10936 * minsyms.c (find_solib_trampoline_target): Update.
10937 * maint.c (maintenance_info_sections)
10938 (maintenance_translate_address, count_symtabs_and_blocks):
10940 * main.c (captured_main_1): Update.
10941 * linux-thread-db.c (try_thread_db_load_from_pdir)
10942 (has_libpthread): Update.
10943 * linespec.c (iterate_over_all_matching_symtabs)
10944 (search_minsyms_for_name): Update.
10945 * jit.c (jit_find_objf_with_entry_addr): Update.
10946 * hppa-tdep.c (find_unwind_entry)
10947 (hppa_lookup_stub_minimal_symbol): Update.
10948 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10950 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10951 (elf_gnu_ifunc_resolve_by_got): Update.
10952 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10953 * dwarf-index-write.c (save_gdb_index_command): Update.
10954 * cp-support.c (add_symbol_overload_list_qualified): Update.
10955 * breakpoint.c (create_overlay_event_breakpoint)
10956 (create_longjmp_master_breakpoint)
10957 (create_std_terminate_master_breakpoint)
10958 (create_exception_master_breakpoint): Update.
10959 * blockframe.c (find_pc_partial_function): Update.
10960 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10961 (ada_collect_symbol_completion_matches)
10962 (ada_add_global_exceptions): Update.
10964 2019-01-17 Tom Tromey <tom@tromey.com>
10966 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10968 (solib_target_parse_libraries): Change return type.
10969 (library_list_start_segment, library_list_start_section)
10970 (library_list_end_library, library_list_start_library); Update.
10971 (solib_target_free_library_list): Remove.
10972 (solib_target_parse_libraries): Remove cleanup. Change return
10974 (solib_target_current_sos): Update.
10976 2019-01-17 Tom Tromey <tromey@bapiya>
10978 * valprint.c: Replace "the the" with "the".
10979 * symtab.c: Replace "the the" with "the".
10980 * solib.c: Replace "the the" with "the".
10981 * solib-dsbt.c: Replace "the the" with "the".
10982 * linespec.c: Replace "the the" with "the".
10983 * dwarf2loc.h: Replace "the the" with "the".
10984 * amd64-windows-tdep.c: Replace "the the" with "the".
10985 * aarch64-tdep.c: Replace "the the" with "the".
10987 2019-01-16 Keith Seitz <keiths@redhat.com>
10990 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10991 <builder>: Rename to ..
10992 <m_builder>: ... this and make private.
10993 (dwarf2_cu::get_builder): New method. Change all users of
10994 `builder' to use this method.
10995 (dwarf2_start_symtab): Move to ...
10996 (dwarf2_cu::start_symtab): ... here. Update all callers
10997 (setup_type_unit_groups): Move to ...
10998 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11000 (dwarf2_cu::reset_builder): New method.
11001 (process_full_compunit, process_full_type_unit): Use
11002 dwarf2_cu::reset_builder.
11003 (follow_die_offset): Record the ancestor CU if it is different
11004 from the followed DIE's CU.
11005 (follow_die_sig_1): Likewise.
11007 2019-01-15 Tom Tromey <tom@tromey.com>
11009 * remote.c (class remote_state) <buf>: Now a char_vector.
11010 <buf_size>: Remove.
11011 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11013 (remote_target::getpkt_or_notif_sane_1)
11014 (remote_target::getpkt_sane)
11015 (remote_target::getpkt_or_notif_sane): Likewise.
11016 (class remote_target) <putpkt>: New overload.
11017 (remote_target::read_frame): Change type of "buf_p". Remove
11018 sizeof_p parameter.
11019 (packet_ok): New overload.
11020 (packet_check_result): New overload.
11023 2019-01-14 Tom Tromey <tom@tromey.com>
11025 * remote-notif.c (handle_notification, remote_notif_ack)
11026 (remote_notif_parse): Make "buf" const.
11027 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11029 (remote_notif_parse, remote_notif_ack, handle_notification):
11031 * remote.c (remote_notif_stop_parse): Make "buf" const.
11032 (remote_target::remote_parse_stop_reply): Make "buf" const.
11033 (remote_notif_stop_ack): Make "buf" const.
11035 2019-01-14 Tom Tromey <tom@tromey.com>
11037 * remote.c (remote_console_output): Make parameter const.
11039 2019-01-14 Tom Tromey <tom@tromey.com>
11041 * target-debug.h (target_debug_print_signals): Constify.
11042 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11043 * procfs.c (procfs_target::pass_signals): Update.
11044 * linux-nat.c (linux_nat_target::pass_signals): Update.
11045 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11046 * target-delegates.c: Rebuild.
11047 * remote.c (remote_target::program_signals): Update.
11048 (remote_target::pass_signals): Update.
11049 * target.c (target_pass_signals): Constify argument.
11050 (target_program_signals): Likewise.
11051 * target.h (struct target_ops) <pass_signals, program_signals>:
11053 (target_pass_signals, target_program_signals): Constify argument.
11055 2019-01-14 Tom Tromey <tom@tromey.com>
11058 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11060 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11062 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11064 * rs6000-tdep.c: Include reggroups.h.
11065 (IS_V_ALIAS_PSEUDOREG): Define.
11066 (rs6000_register_name): Return names for the "vX" aliases.
11067 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11068 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11069 aliases. Call default_register_reggroup_p for all other
11071 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11073 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11074 Handle "vX" aliases.
11075 (v_alias_pseudo_register_collect): New function.
11076 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11077 (rs6000_gdbarch_init): Initialize "vX" aliases as
11078 pseudo-registers. Restore registration of
11079 rs6000_pseudo_register_reggroup_p with
11080 set_tdesc_pseudo_register_reggroup_p.
11082 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11084 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11085 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11086 set_gdbarch_num_pseudo_regs.
11088 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11090 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11091 Remove arg prefixname, add do_set and do_show.
11092 Add member functions set_list and show_list.
11093 * cli/cli-style.c (class cli_style_option): Update accordingly.
11094 (style_set_list): Move to file scope.
11095 (style_show_list): Likewise.
11096 (set_style): Call help_list.
11097 (show_style): Call cmd_show_list.
11098 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11099 Update to use the new macro.
11101 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11103 * ada-lang.c (_initialize_ada_language): Expand the help text
11104 for the "catch exception" command.
11106 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11108 * symtab.c (matching_obj_sections): Initialize obj,
11109 declare it closer to its usage.
11111 2019-01-10 Tom Tromey <tom@tromey.com>
11113 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11114 (basic_inf_threads_range): Remove.
11115 (inf_threads_range, inf_non_exited_threads_range)
11116 (safe_inf_threads_range): Use next_adapter.
11118 2019-01-10 Keith Seitz <keiths@redhat.com>
11122 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11123 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11125 2019-01-10 Keith Seitz <keiths@redhat.com>
11129 * dictionary.c (pending_to_vector): Remove.
11130 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11131 Remove _1 suffix, replacing functions of the same name. Update
11133 (dict_create_hashed, dict_create_hashed_expandable)
11134 (dict_create_linear, dict_create_linear_expandable, dict_free)
11135 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11136 Make functions static.
11138 2019-01-10 Keith Seitz <keiths@redhat.com>
11142 * dictionary.h (struct dictionary): Replace declaration with
11144 (dict_create_hashed, dict_create_hashed_expandable)
11145 (dict_create_linear, dict_create_linear_expandable)
11146 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11147 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11148 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11149 taking multidictionary argument.
11150 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11151 * block.h (struct block) <dict>: Change to multidictionary
11152 and rename `multidict'.
11153 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11154 symmisc.c: Update all dictionary references to multidictionary.
11156 2019-01-10 Keith Seitz <keiths@redhat.com>
11160 * dictionary.c: Include unordered_map.
11161 (pending_to_vector): New function.
11162 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11163 Rewrite the non-"_1" functions to take vector instead
11165 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11166 "new" _1 versions of the same name.
11167 (multidictionary): Define.
11168 (std::hash<enum language): New definition.
11169 (collate_pending_symbols_by_language, mdict_create_hashed)
11170 (mdict_create_hashed_expandable, mdict_create_linear)
11171 (mdict_create_linear_expandable, mdict_free)
11172 (find_language_dictionary, create_new_language_dictionary)
11173 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11174 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11175 (mdict_size, mdict_empty): New functions.
11176 * dictionary.h (mdict_iterator): Define.
11178 2019-01-10 Pedro Alves <palves@redhat.com>
11180 * breakpoint.c (read_uploaded_action)
11181 (create_tracepoint_from_upload): Adjust to use
11182 gdb::unique_xmalloc_ptr.
11183 * ctf.c (ctf_write_uploaded_tp):
11184 (SET_ARRAY_FIELD): Use emplace_back.
11185 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11186 * tracefile-tfile.c (tfile_write_uploaded_tp):
11187 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11188 gdb::unique_xmalloc_ptr.
11189 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11190 at_string, cond_string, cmd_strings>: Replace char pointers
11191 with gdb::unique_xmalloc_ptr.
11193 2019-01-10 Pedro Alves <palves@redhat.com>
11195 * solib-target.c (library_list_start_library): Don't xstrdup name.
11197 2019-01-10 Pedro Alves <palves@redhat.com>
11199 * mdebugread.c (parse_partial_symbols): Use
11200 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11202 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11204 * linux-fork.c (scoped_switch_fork_info)
11205 <~scoped_switch_fork_info>: Fix incorrect variable name.
11207 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11209 * linux-fork.c (scoped_switch_fork_info)
11210 <scoped_switch_fork_info>: Make explicit.
11211 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11213 2019-01-10 Tom Tromey <tom@tromey.com>
11215 * objfiles.h (objfile::reset_psymtabs): Update.
11216 * objfiles.c (objfile::objfile): Update.
11217 * psymtab.h (psymtab_storage::obstack): Update.
11218 (psymtab_storage::m_obstack): Use gdb::optional.
11219 (class psymtab_storage): Update comment. Remove objfile
11221 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11223 2019-01-10 Tom Tromey <tom@tromey.com>
11225 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11226 <free_psymtabs>: Now private.
11227 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11228 (allocate_psymtab): Use new method.
11230 2019-01-10 Tom Tromey <tom@tromey.com>
11232 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11233 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11234 * mdebugread.c (parse_partial_symbols): Use
11235 allocate_dependencies.
11236 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11237 allocate_dependencies.
11238 (process_psymtab_comp_unit_reader)
11239 (build_type_psymtab_dependencies): Likewise.
11240 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11242 2019-01-10 Tom Tromey <tom@tromey.com>
11244 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11245 PSYMBOL_SET_LANGUAGE.
11246 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11248 2019-01-10 Tom Tromey <tom@tromey.com>
11250 * psymtab.h (psymtab_storage::obstack): New method.
11251 <m_obstack>: Rename from obstack; now private.
11252 * psymtab.c (psymtab_storage): Update.
11253 * dwarf2read.c (create_addrmap_from_index)
11254 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11257 2019-01-10 Tom Tromey <tom@tromey.com>
11259 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11260 * objfiles.h (objfile::reset_psymtabs): New method.
11262 2019-01-10 Tom Tromey <tom@tromey.com>
11264 * symmisc.c (print_symbol_bcache_statistics): Update.
11265 (print_objfile_statistics): Update.
11266 * symfile.c (reread_symbols): Update.
11267 * psymtab.h (class psymtab_storage): New.
11268 * psymtab.c (psymtab_storage): New constructor.
11269 (~psymtab_storage): New destructor.
11270 (require_partial_symbols): Update.
11271 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11272 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11273 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11274 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11275 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11276 (start_psymtab_common, end_psymtab_common)
11277 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11278 (allocate_psymtab): Update.
11279 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11281 (dump_psymtab_addrmap, maintenance_print_psymbols)
11282 (maintenance_check_psymtabs): Update.
11283 (class objfile_psymtabs): Move to objfiles.h.
11284 * psympriv.h (discard_psymtab): Now inline.
11285 (psymtab_discarder::psymtab_discarder): Update.
11286 (psymtab_discarder::~psymtab_discarder): Update.
11287 (ALL_OBJFILE_PSYMTABS): Rewrite.
11288 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11289 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11291 <partial_symtabs>: New field.
11292 (class objfile_psymtabs): Move from psymtab.h. Update.
11293 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11295 (objfile::~objfile): Don't destroy psymbol_cache.
11296 * mdebugread.c (parse_partial_symbols): Update.
11297 * dwarf2read.c (create_addrmap_from_index)
11298 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11299 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11300 (add_partial_subprogram, dwarf2_ranges_read): Update.
11301 * dwarf-index-write.c (write_address_map)
11302 (write_one_signatured_type, recursively_write_psymbols)
11303 (class debug_names, class debug_names, write_psymtabs_to_index):
11306 2019-01-10 Tom Tromey <tom@tromey.com>
11308 * symtab.h (SYMBOL_SET_NAMES): Update.
11309 (symbol_set_names): Update.
11310 (MSYMBOL_SET_NAMES): Update.
11311 * symtab.c (symbol_set_names): Change argument to be an
11312 objfile_per_bfd_storage.
11313 * psymtab.c (add_psymbol_to_bcache): Update.
11314 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11316 2019-01-10 Tom Tromey <tom@tromey.com>
11318 * symtab.c (create_demangled_names_hash): Change argument to be an
11319 objfile_per_bfd_storage.
11320 (symbol_set_names): Update.
11322 2019-01-10 Tom Tromey <tom@tromey.com>
11324 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11326 * psymtab.c (init_psymbol_list): Do nothing if already called.
11327 * psympriv.h (init_psymbol_list): Add comment.
11328 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11330 * dbxread.c (dbx_symfile_read): Unconditionally call
11333 2019-01-10 Tom Tromey <tom@tromey.com>
11335 * xcoffread.c (scan_xcoff_symtab): Update.
11336 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11338 * mdebugread.c (parse_partial_symbols)
11339 (handle_psymbol_enumerators): Update.
11340 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11341 * dbxread.c (read_dbx_symtab): Update.
11342 * psympriv.h (psymbol_placement): New enum.
11343 (add_psymbol_to_list): Update.
11345 2019-01-10 Tom Tromey <tom@tromey.com>
11347 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11348 static_psymbols parameters.
11349 (scan_xcoff_symtab): Update.
11350 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11351 static_psymbols parameters.
11352 * psympriv.h (start_psymtab_common): Update.
11353 * mdebugread.c (parse_partial_symbols): Update.
11354 * dwarf2read.c (create_partial_symtab): Update.
11355 * dbxread.c (read_dbx_symtab): Update.
11356 (start_psymtab): Remove global_psymbols and static_psymbols
11359 2019-01-10 Tom Tromey <tom@tromey.com>
11361 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11362 * psymtab.c (allocate_psymtab): Add comment.
11363 * psympriv.h (allocate_psymtab): Add comment.
11364 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11366 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11368 2019-01-10 Tom Tromey <tom@tromey.com>
11370 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11372 * mipsread.c: Include mdebugread.h.
11373 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11375 * elfread.c: Include mdebugread.h.
11377 2019-01-09 Tom Tromey <tom@tromey.com>
11379 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11380 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11381 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11382 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11383 (psym_lookup_symbol, psym_find_last_source_symtab)
11384 (psym_forget_cached_source_info, psym_print_stats)
11385 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11386 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11387 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11388 (psym_find_compunit_symtab_by_address)
11389 (maintenance_print_psymbols, maintenance_info_psymtabs)
11390 (maintenance_check_psymtabs): Use ranged for.
11391 * psymtab.h (class objfile_psymtabs): New.
11392 (require_partial_symbols): Return objfile_psymtabs.
11393 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11395 2019-01-09 Tom Tromey <tom@tromey.com>
11397 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11398 (find_pc_mapped_section, list_overlays_command)
11399 (map_overlay_command, unmap_overlay_command)
11400 (simple_overlay_update): Use all_objfiles.
11401 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11402 * printcmd.c (info_symbol_command): Use all_objfiles.
11403 * objfiles.h (ALL_OBJSECTIONS): Remove.
11404 * maint.c (maintenance_translate_address): Use all_objfiles.
11405 * gcore.c (gcore_create_callback): Use all_objfiles.
11406 (objfile_find_memory_regions): Likewise.
11408 2019-01-09 Tom Tromey <tom@tromey.com>
11410 * symtab.c (find_line_symtab, info_sources_command)
11411 (make_source_files_completion_list): Use objfile_compunits.
11412 * source.c (select_source_symtab): Use objfile_compunits.
11413 * objfiles.h (struct objfile): Update comment.
11414 (ALL_OBJFILES): Remove.
11415 (ALL_FILETABS): Remove.
11416 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11419 2019-01-09 Tom Tromey <tom@tromey.com>
11421 * symmisc.c (print_objfile_statistics, dump_objfile)
11422 (maintenance_print_symbols): Use compunit_filetabs.
11423 * source.c (forget_cached_source_info_for_objfile): Use
11425 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11426 (ALL_FILETABS): Use compunit_filetabs.
11427 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11428 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11430 2019-01-09 Tom Tromey <tom@tromey.com>
11432 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11433 (compunit_filetabs): New.
11434 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11436 (info_sources_command, make_source_files_completion_list): Remove
11438 * symmisc.c (print_objfile_statistics, dump_objfile)
11439 (maintenance_print_symbols): Remove declaration.
11440 (maintenance_info_symtabs): Use compunit_filetabs.
11441 (maintenance_info_line_tables): Likewise.
11442 * source.c (select_source_symtab): Change local variable name.
11443 (forget_cached_source_info_for_objfile): Remove declaration.
11444 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11445 * objfiles.c (objfile_relocate1): Remove declaration.
11446 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11448 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11449 * coffread.c (coff_symtab_read): Remove declaration.
11450 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11453 2019-01-09 Tom Tromey <tom@tromey.com>
11455 * symtab.c (lookup_objfile_from_block)
11456 (find_pc_sect_compunit_symtab, search_symbols)
11457 (default_collect_symbol_completion_matches_break_on): Use
11459 * objfiles.h (ALL_COMPUNITS): Remove.
11460 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11461 * cp-support.c (add_symbol_overload_list_qualified): Use
11463 * ada-lang.c (ada_collect_symbol_completion_matches)
11464 (ada_add_global_exceptions): Use objfile_compunits.
11466 2019-01-09 Tom Tromey <tom@tromey.com>
11468 * source.c (select_source_symtab)
11469 (forget_cached_source_info_for_objfile): Remove declaration.
11470 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11472 * maint.c (count_symtabs_and_blocks): Remove declaration.
11473 * cp-support.c (add_symbol_overload_list_qualified): Remove
11475 * coffread.c (coff_symtab_read): Remove declaration.
11476 * symtab.c (lookup_symbol_in_objfile_symtabs)
11477 (basic_lookup_transparent_type_1): Use objfile_compunits.
11478 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11479 (info_sources_command, search_symbols)
11480 (default_collect_symbol_completion_matches_break_on)
11481 (make_source_files_completion_list): Remove declaration.
11482 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11483 (ada_collect_symbol_completion_matches)
11484 (ada_add_global_exceptions): Remove declaration.
11485 * linespec.c (iterate_over_all_matching_symtabs): Use
11487 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11488 (class objfile_compunits): New.
11489 (ALL_COMPUNITS): Use objfile_compunits.
11490 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11491 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11493 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11495 2019-01-09 Tom Tromey <tom@tromey.com>
11497 * symtab.c (search_symbols)
11498 (default_collect_symbol_completion_matches_break_on): Use
11500 * ada-lang.c (ada_lookup_simple_minsym)
11501 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11502 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11503 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11505 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11506 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11507 * objc-lang.c (find_methods): Use objfile_msymbols.
11508 (info_selectors_command, info_classes_command): Likewise.
11509 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11510 * objfiles.h (class objfile_msymbols): New.
11511 (ALL_OBJFILE_MSYMBOLS): Remove.
11512 (ALL_MSYMBOLS): Remove.
11514 2019-01-09 Tom Tromey <tom@tromey.com>
11516 * common/next-iterator.h (next_adapter): Add Iterator template
11518 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11519 (class all_objfiles_safe): New.
11520 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11521 * objfiles.c (put_objfile_before): Update comment.
11522 (add_separate_debug_objfile): Likewise.
11523 (free_all_objfiles): Use all_objfiles_safe.
11524 (objfile_purge_solibs): Likewise.
11526 2019-01-09 Tom Tromey <tom@tromey.com>
11528 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11529 (expand_symtab_containing_pc, lookup_static_symbol)
11530 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11531 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11533 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11534 * breakpoint.c (create_overlay_event_breakpoint)
11535 (create_longjmp_master_breakpoint)
11536 (create_std_terminate_master_breakpoint)
11537 (create_exception_master_breakpoint): Use all_objfiles.
11538 * linux-thread-db.c (try_thread_db_load_from_pdir)
11539 (has_libpthread): Use all_objfiles.
11540 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11541 * linespec.c (iterate_over_all_matching_symtabs)
11542 (search_minsyms_for_name): Use all_objfiles.
11543 * maint.c (maintenance_info_sections): Use all_objfiles.
11544 * main.c (captured_main_1): Use all_objfiles.
11545 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11546 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11547 * guile/scm-pretty-print.c
11548 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11549 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11550 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11551 (maintenance_print_msymbols): Use all_objfiles.
11552 * source.c (select_source_symtab): Use all_objfiles.
11553 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11554 * symfile.c (remove_symbol_file_command)
11555 (expand_symtabs_matching, map_symbol_filenames): Use
11557 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11559 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11560 * objc-lang.c (find_methods): Use all_objfiles.
11561 * objfiles.c (have_partial_symbols, have_full_symbols)
11562 (have_minimal_symbols, qsort_cmp)
11563 (default_iterate_over_objfiles_in_search_order): Use
11565 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11566 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11567 (maintenance_check_psymtabs): Use all_objfiles.
11568 (ALL_PSYMTABS): Remove.
11569 * compile/compile-object-run.c (do_module_cleanup): Use
11571 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11572 * cp-support.c (add_symbol_overload_list_qualified): Use
11574 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11576 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11577 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11579 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11580 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11581 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11583 * solib.c (solib_read_symbols): Use all_objfiles
11585 2019-01-09 Tom Tromey <tom@tromey.com>
11587 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11588 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11590 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11591 * symmisc.c (print_symbol_bcache_statistics)
11592 (print_objfile_statistics, maintenance_print_objfiles)
11593 (maintenance_info_symtabs, maintenance_check_symtabs)
11594 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11596 * source.c (forget_cached_source_info): Use all_objfiles.
11597 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11598 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11599 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11600 * objfiles.c (update_section_map): Use all_objfiles.
11601 (shared_objfile_contains_address_p): Likewise.
11602 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11603 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11605 2019-01-09 Tom Tromey <tom@tromey.com>
11607 * common/next-iterator.h: New file.
11608 * objfiles.h (class all_objfiles): New.
11609 (struct objfile_iterator): New.
11611 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11613 * NEWS: Move the description of the changed "frame", "select-frame",
11614 and "info frame" commands to the Changed commands section.
11616 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11618 * gdbtypes.c (check_stub_method_group): Remove handling of old
11620 * linespec.c (find_methods): Likewise.
11621 * stabsread.c (read_member_functions): Likewise.
11622 * valops.c (search_struct_method): Likewise.
11623 (value_struct_elt_for_reference): Likewise.
11624 * NEWS: Mention this change.
11626 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11628 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11629 print_source_lines.
11630 * source.c (print_source_lines_base): Update line number check.
11631 (print_source_lines): New function.
11632 (source_lines_range::source_lines_range): New function.
11633 * source.h (class source_lines_range): New class.
11634 (print_source_lines): New declaration.
11636 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11638 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11640 2019-01-08 Tom Tromey <tom@tromey.com>
11641 Simon Marchi <simon.marchi@ericsson.com>
11644 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11645 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11646 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11647 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11648 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11649 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11651 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11653 * source.c (select_source_symtab): Move header comment to
11654 declaration in source.h.
11655 (forget_cached_source_info_for_objfile): Likewise.
11656 (forget_cached_source_info): Likewise.
11657 (identify_source_line): Likewise.
11658 * source.h (identify_source_line): Move declaration from symtab.h
11659 and add comment from source.c
11660 (print_source_lines): Likewise.
11661 (forget_cached_source_info_for_objfile): Likewise.
11662 (forget_cached_source_info): Likewise.
11663 (select_source_symtab): Likewise.
11664 (enum print_source_lines_flag): Move definition from symtab.h.
11665 * symtab.h (identify_source_line): Move declaration to source.h.
11666 (print_source_lines): Likewise.
11667 (forget_cached_source_info_for_objfile): Likewise.
11668 (forget_cached_source_info): Likewise.
11669 (select_source_symtab): Likewise.
11670 (enum print_source_lines_flag): Move definition to source.h.
11671 * tui/tui-hooks.c: Add 'source.h' include.
11673 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11675 * source.c (print_source_lines_base): Handle requests to print
11676 reverse line number sequences, and guard against empty lines
11679 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11681 * source.c (print_source_lines_base): Fix skip of '\r' if next
11684 2019-01-06 Tom Tromey <tom@tromey.com>
11686 * c-exp.y (struct c_parse_state) <macro_original_text,
11687 expansion_obstack>: New member.
11688 (macro_original_text, expansion_obstack): Remove globals.
11689 (scan_macro_expansion, scanning_macro_expansion)
11690 (finished_macro_expansion): Update.
11691 (scan_macro_cleanup): Remove.
11692 (yylex, c_parse): Update.
11694 2019-01-06 Tom Tromey <tom@tromey.com>
11696 * c-exp.y (struct c_parse_state) <strings>: New member.
11697 (operator_stoken): Update.
11699 2019-01-06 Tom Tromey <tom@tromey.com>
11701 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11702 (union type_stack_elt) <typelist_val>: Now a pointer to
11704 (type_stack_cleanup): Don't declare.
11705 (push_typelist): Update.
11706 * parse.c (pop_typelist): Return a std::vector.
11707 (push_typelist): Take a std::vector.
11708 (follow_types): Update. Do not free args.
11709 (type_stack_cleanup): Remove.
11710 * c-exp.y (struct c_parse_state): New.
11711 (cpstate): New global.
11712 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11713 (nonempty_typelist): Update.
11714 (func_mod): Create a new vector.
11715 (c_parse): Create a c_parse_state.
11716 (check_parameter_typelist): Do not delete params.
11717 (function_method): Update. Do not delete type_list.
11719 2019-01-06 Tom Tromey <tom@tromey.com>
11722 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11724 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11725 (print_return_value): Likewise.
11727 2019-01-05 Tom Tromey <tom@tromey.com>
11729 * contrib/cleanup_check.py: Remove.
11730 * contrib/gcc-with-excheck: Remove.
11731 * contrib/exsummary.py: Remove.
11732 * contrib/excheck.py: Remove.
11734 2019-01-05 Joel Brobecker <brobecker@adacore.com>
11736 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11737 NULL. Initialize tpprev to NULL instead of assigning it
11738 to NULL on the next statement.
11739 * windows-nat.c (windows_delete_thread): Remove check for
11740 main_thread_id before printing thread exit notifications.
11741 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11742 Remove thread ID check against main_thread_id.
11743 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11744 windows_delete_thread.
11745 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11747 2019-01-04 Tom Tromey <tom@tromey.com>
11749 * compile/compile.c (_initialize_compile): Use upper case for
11750 metasyntactic variables.
11751 * symmisc.c (_initialize_symmisc): Use upper case for
11752 metasyntactic variables.
11753 * psymtab.c (_initialize_psymtab): Use upper case for
11754 metasyntactic variables.
11755 * demangle.c (demangle_command): Use upper case for metasyntactic
11757 (_initialize_demangler): Likewise.
11758 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11761 2019-01-03 Tom Tromey <tom@tromey.com>
11763 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11765 2019-01-03 Tom Tromey <tom@tromey.com>
11767 * python/py-symtab.c (salpy_str): Update.
11768 (struct salpy_sal_object) <symtab>: Now a PyObject.
11769 (salpy_dealloc): Update.
11770 (del_objfile_sal): Use gdbpy_ref.
11772 2019-01-03 Tom Tromey <tom@tromey.com>
11774 * python/py-type.c (convert_field): Use new_reference. Return
11776 (make_fielditem): Return gdbpy_ref.
11777 (typy_fields): Update.
11778 (typy_getitem): Update.
11779 (field_name): Return gdbpy_ref. Use new_reference.
11780 (typy_iterator_iternext): Update.
11782 2019-01-03 Tom Tromey <tom@tromey.com>
11784 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11786 2019-01-03 Tom Tromey <tom@tromey.com>
11788 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11789 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11790 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11791 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11792 (pspy_set_type_printers): Likewise.
11793 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11794 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11795 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11796 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11797 (objfpy_set_type_printers): Likewise.
11799 2019-01-03 Tom Tromey <tom@tromey.com>
11801 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11802 (gdbpy_print_stack): Use gdbpy_err_fetch.
11803 * python/python-internal.h (class gdbpy_err_fetch): New class.
11804 (class gdbpy_enter) <m_error_type, m_error_value,
11805 m_error_traceback>: Remove.
11806 <m_error>: New member.
11807 (gdbpy_exception_to_string): Don't declare.
11808 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11809 * python/py-value.c (convert_value_from_python): Use
11811 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11812 gdbpy_exception_to_string.
11813 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11814 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11817 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11819 * linux-nat.c (delete_lwp_cleanup): Delete.
11820 (struct lwp_deleter): New struct.
11821 (lwp_info_up): New typedef.
11822 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11825 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11827 * linux-fork.c (class scoped_switch_fork_info): New class.
11828 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11830 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11832 * valops.c (find_overload_match): Remove use of null_cleanup, and
11833 calls to do_cleanups.
11835 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11837 * compile/compile-cplus-types.c
11838 (compile_cplus_instance::decl_name): Handle changes to
11840 * cp-support.c (cp_func_name): Update header comment, update
11842 * cp-support.h (cp_func_name): Update return type in declaration.
11843 * valops.c (find_overload_match): Move temp_func local to top
11844 level of function and change its type. Use temp_func to hold and
11845 delete temporary string obtained from cp_func_name.
11847 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11849 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11850 gdb::char_vector, remove cleanup, and update uses of `msg`.
11852 2019-01-03 Jim Wilson <jimw@sifive.com>
11854 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11856 2019-01-02 Tom Tromey <tom@tromey.com>
11858 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11859 (tdesc_parse_xml): Remove cleanups.
11860 * target-descriptions.h (make_cleanup_free_target_description):
11862 (target_desc_deleter): New struct.
11863 (target_desc_up): New typedef.
11864 * target-descriptions.c (target_desc_deleter::operator()): Rename
11865 from free_target_description.
11866 (make_cleanup_free_target_description): Remove.
11868 2019-01-02 Tom Tromey <tom@tromey.com>
11870 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11871 constructor, destructor.
11872 (linespec_parser): Remove typedef.
11873 (~linespec_parser): Rename from linespec_parser_delete.
11874 (linespec_lex_to_end, linespec_complete_label)
11875 (linespec_complete): Update.
11876 (decode_line_full): Remove cleanups.
11877 (decode_line_1): Update.
11879 2019-01-02 Tom Tromey <tom@tromey.com>
11881 * python/python-internal.h (inferior_to_inferior_object): Change
11883 * python/py-exitedevent.c (create_exited_event_object): Update.
11884 * python/py-inferior.c (inferior_to_inferior_object): Return
11886 (python_new_inferior, python_inferior_deleted)
11887 (thread_to_thread_object, delete_thread_object)
11888 (build_inferior_list, gdbpy_selected_inferior): Update.
11889 * python/py-infthread.c (create_thread_object): Update. Also fail
11890 if inferior_to_inferior_object fails.
11892 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11894 * inferior.h (class inferior) <displaced_step_state>: New field.
11895 * infrun.h (struct displaced_step_state): Move here from
11896 infrun.c. Initialize fields, add constructor.
11897 <inf>: Remove field.
11898 <reset>: New method.
11899 * infrun.c (struct displaced_step_inferior_state): Move to
11901 (displaced_step_inferior_states): Remove.
11902 (get_displaced_stepping_state): Adust.
11903 (displaced_step_in_progress_any_inferior): Adjust.
11904 (displaced_step_in_progress_thread): Adjust.
11905 (displaced_step_in_progress): Adjust.
11906 (add_displaced_stepping_state): Remove.
11907 (get_displaced_step_closure_by_addr): Adjust.
11908 (remove_displaced_stepping_state): Remove.
11909 (infrun_inferior_exit): Call displaced_step_state.reset.
11910 (use_displaced_stepping): Don't check for NULL.
11911 (displaced_step_prepare_throw): Call
11912 get_displaced_stepping_state.
11913 (displaced_step_fixup): Don't check for NULL.
11914 (prepare_for_detach): Don't check for NULL.
11916 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11918 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11919 in case of call that did not complete.
11921 2019-01-02 Andrey Utkin <autkin@undo.io>
11923 * symfile.c (find_separate_debug_file): Fix search of debug files for
11926 2019-01-02 Tom Tromey <tom@tromey.com>
11928 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11930 * python/py-frame.c (frapy_older): Remove cast.
11931 (frapy_newer): Likewise.
11932 * python/py-breakpoint.c (local_setattro): Remove cast.
11933 * python/py-arch.c (archpy_name): Remove local variable.
11934 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11936 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11938 * unittests/basic_string_view/element_access/char/empty.cc:
11939 Fix year range in copyright header.
11941 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11943 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11945 <operator==>: Update with for removed field.
11947 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11948 <isa_features>: ...this.
11949 <abi_features>: New field.
11950 (riscv_isa_flen): Update comment.
11951 (riscv_abi_xlen): New declaration.
11952 (riscv_abi_flen): New declaration.
11953 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11955 (riscv_abi_xlen): New function.
11956 (riscv_isa_flen): Update to get answer from isa_features.
11957 (riscv_abi_flen): New function.
11958 (riscv_has_fp_abi): Update to get answer from abi_features.
11959 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11961 (riscv_call_info) <xlen, flen>: Update comment.
11962 (riscv_call_arg_struct): Remove invalid assertions
11963 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11965 (riscv_gdbarch_init): Gather isa features and abi features
11966 separately, ensure both match on the gdbarch when reusing an old
11967 gdbarch. Relax an error check to allow 32-bit abi float to run on
11968 a target with 64-bit float hardware.
11970 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11972 * source.c (search_command_helper): Stop reverse search
11973 when line 1 has been searched.
11975 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11977 * record-full.c (record_full_base_target::close): Rewrite
11978 record_full_core_buf_list free logic.
11980 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11982 * break-catch-syscall.c (print_one_catch_syscall): xfree
11985 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11987 * top.c (print_gdb_version): Update Copyright year in version
11990 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11992 Update copyright year range in all GDB files.
11994 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11996 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11998 For older changes see ChangeLog-2018.
12004 version-control: never