1 2019-08-30 Tom Tromey <tom@tromey.com>
3 * tui/tui-wingeneral.c (box_win): Assume win_info and
4 win_info->handle cannot be NULL.
6 2019-08-30 Tom Tromey <tom@tromey.com>
8 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
9 refresh_window>: Declare.
10 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
12 (tui_data_item_window::rerender): Rename from
14 (tui_data_item_window::refresh_window): New method.
15 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
18 2019-08-30 Tom Tromey <tom@tromey.com>
20 * tui/tui-regs.h (struct tui_data_window) <regs_content,
21 regs_column_count, current_group>: Move later. Now private.
22 <get_current_group>: New method.
23 * tui/tui-regs.c (tui_reg_command): Update.
24 * tui/tui-layout.c (tui_set_layout): Update.
26 2019-08-30 Tom Tromey <tom@tromey.com>
28 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
29 (tui_data_window::rerender): Don't call
30 check_and_display_highlight_if_needed.
31 (tui_data_window::refresh_all): Remove call to
34 2019-08-30 Tom Tromey <tom@tromey.com>
36 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
37 (tui_data_window::display_registers_from)
38 (tui_data_window::display_reg_element_at_line)
39 (tui_data_window::display_registers_from_line): Remove checks of
42 2019-08-30 Tom Tromey <tom@tromey.com>
44 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
46 * tui/tui-regs.c (tui_data_window::show_registers): Call
48 (tui_data_window::rerender): Rename from display_all_data.
49 (tui_data_window::rerender): Remove old implementation.
51 2019-08-30 Tom Tromey <tom@tromey.com>
53 * tui/tui-regs.c (tui_data_window::display_all_data): Change
55 * tui/tui-data.h (NO_DATA_STRING): Remove define.
57 2019-08-29 Bernhard Wodok <barto@gmx.net>
58 Sergio Durigan Junior <sergiodj@redhat.com>
61 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
63 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
65 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
66 when searching for types.
68 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
70 * f-lang.c (f_language_defn): Use f_print_typedef.
71 * f-lang.h (f_print_typedef): Declare.
72 * f-typeprint.c (f_print_typedef): Define.
74 2019-08-27 Christian Biesinger <cbiesinger@google.com>
76 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
78 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
80 * cli/cli-utils.c (info_print_options_defs): Delete.
81 (make_info_print_options_def_group): Delete.
82 (extract_info_print_options): Delete.
83 (info_print_command_completer): Delete.
84 (info_print_args_help): Add extra parameter, and optionally
85 include text about -n flag.
86 * cli/cli-utils.h (struct info_print_options): Delete.
87 (extract_info_print_options): Delete declaration.
88 (info_print_command_completer): Delete declaration.
89 (info_print_args_help): Add extra parameter, extend header
91 * python/python.c (gdbpy_rbreak): Pass additional parameter to
93 * stack.c (struct info_print_options): New type.
94 (info_print_options_defs): New file scoped variable.
95 (make_info_print_options_def_group): New static function.
96 (info_print_command_completer): New static function.
97 (info_locals_command): Update to use new local functions.
98 (info_args_command): Likewise.
99 (_initialize_stack): Add extra parameter to calls to
100 info_print_args_help.
101 * symtab.c (search_symbols): Add extra parameter, use this to
102 possibly excluse non-debug symbols.
103 (symtab_symbol_info): Add extra parameter, which is passed on to
105 (struct info_print_options): New type.
106 (info_print_options_defs): New file scoped variable.
107 (make_info_print_options_def_group): New static function.
108 (info_print_command_completer): New static function.
109 (info_variables_command): Update to use local functions, and pass
110 extra parameter through to symtab_symbol_info.
111 (info_functions_command): Likewise.
112 (info_types_command): Pass additional argument through to
114 (rbreak_command): Pass extra argument to search_symbols.
115 (_initialize_symtab): Add extra arguments for calls to
116 info_print_args_help, and update help text for 'info variables',
117 'whereis', and 'info functions' commands.
118 * symtab.h (search_symbols): Add extra argument to declaration.
119 * NEWS: Mention new flags.
121 2019-08-26 Christian Biesinger <cbiesinger@google.com>
123 * symtab.c (lookup_static_symbol): Call the new function (and move
124 it down to be next to lookup_global_symbol).
125 (struct global_sym_lookup_data): Add block_enum member and rename to...
126 (struct global_or_static_sym_lookup_data): ...this.
127 (lookup_symbol_global_iterator_cb): Pass block_index instead of
128 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
129 (lookup_symbol_global_or_static_iterator_cb): ...this.
130 (lookup_global_or_static_symbol): New function.
131 (lookup_global_symbol): Call new function.
133 2019-08-26 Tom de Vries <tdevries@suse.de>
136 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
137 when pc_probe.prob == NULL.
139 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
141 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
142 variable symbol_linkage to symbol_linkage_.
144 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
146 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
147 represent whether the symbol is static, dynamic, or we don't
150 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
152 * gdb/rx-tdep.c (rx_register_names): New.
153 (rx_register_name): Delete.
154 (rx_psw_type): Delete.
155 (rx_fpsw_type): Delete.
156 (rx_register_type): Delete.
157 (rx_gdbarch_init): Convert target-descriptions.
158 (_initialize_rx_tdep): Add initialize_tdesc_rx.
159 * gdb/features/Makefile: Add rx.xml.
160 * gdb/features/rx.xml: New.
161 * gdb/features/rx.c: Generated.
162 * gdb/NEWS: Mention target description support.
164 2019-08-22 Christian Biesinger <cbiesinger@google.com>
166 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
169 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
171 * configure.ac: Don't check for 'dlfcn.h' (moved to
172 gdbsupport/common.m4).
173 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
175 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
176 * compile/compile-c-support.c: Include
177 'gdbsupport/gdb-dlfcn.h'.
178 * gdbsupport/common.m4: Check for 'dlfcn.h'.
179 * gdb-dlfcn.c: Move to...
180 * gdbsupport/gdb-dlfcn.c: ... here.
181 * gdb-dlfcn.h: Move to...
182 * gdbsupport/gdb-dlfcn.h: ... here.
184 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
186 * nios2-tdep.c (struct reg_value): Improve comments. Make
187 the offset field signed.
189 2019-08-22 Christian Biesinger <cbiesinger@google.com>
191 * python/lib/gdb/__init__.py (_execute_file): New function.
192 * python/python.c (python_run_simple_file): Call gdb._execute_file
195 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
197 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
198 all uses as this was never set to anything but a zero value.
200 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
202 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
204 2019-08-21 Christian Biesinger <cbiesinger@google.com>
206 * tui/tui-data.h (tui_gen_win_info): Add an =default
207 move constructor, required by some GCC versions.
209 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
211 * go32-nat.c (go32_sysinfo): Add hygon_p.
213 2019-08-20 Tom Tromey <tom@tromey.com>
215 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
216 line_from_reg_element_no, first_reg_element_no_inline,
217 display_all_data, delete_data_content_windows,
218 erase_data_content>: Now private.
220 2019-08-20 Tom Tromey <tom@tromey.com>
222 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
223 (tui_unhighlight_win, tui_highlight_win)
224 (tui_win_info::make_window): Update.
225 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
227 2019-08-20 Tom Tromey <tom@tromey.com>
229 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
230 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
231 (MAX_PID_WIDTH): Move to tui-stack.c.
232 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
233 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
234 (MAX_PID_WIDTH): Move from tui-data.h.
236 2019-08-20 Tom Tromey <tom@tromey.com>
238 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
239 * tui/tui-wingeneral.c (box_win): Change type of win_info.
241 (tui_gen_win_info::make_window): Rename from tui_make_window.
242 (tui_win_info::make_window): New method.
243 (tui_gen_win_info::make_visible): Update.
244 * tui/tui-source.c (tui_source_window::set_contents): Update.
245 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
246 (tui_data_window::display_registers_from): Update.
247 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
248 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
252 (struct tui_win_info) <make_window>: Declare.
253 <can_box>: Now virtual.
255 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
256 * tui/tui-command.c (tui_cmd_window::resize): Update.
258 2019-08-20 Tom Tromey <tom@tromey.com>
260 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
261 * tui/tui-regs.c (tui_data_window::show_registers): Update.
262 (tui_data_window::check_register_values): Update.
264 2019-08-20 Tom Tromey <tom@tromey.com>
266 * tui/tui-regs.h (struct tui_data_window): Use
267 DISABLE_COPY_AND_ASSIGN.
268 <regs_content>: Change type, removing unique_ptr.
269 <tui_data_window>: Add move constructor.
270 * tui/tui-regs.c (tui_data_window::show_registers)
271 (tui_data_window::show_register_group)
272 (tui_data_window::display_registers_from)
273 (tui_data_window::display_registers_from)
274 (tui_data_window::first_data_item_displayed)
275 (tui_data_window::delete_data_content_windows)
276 (tui_data_window::rerender, tui_data_window::refresh_window)
277 (tui_data_window::check_register_values): Update.
279 2019-08-20 Tom Tromey <tom@tromey.com>
281 * tui/tui-regs.h (struct tui_data_window) <show_registers,
282 show_register_group>: Declare.
283 (tui_show_register_group): Don't declare.
284 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
286 (tui_data_window::show_register_group): Rename from
287 tui_show_register_group.
288 (tui_data_window::check_register_values, tui_reg_command):
290 * tui/tui-layout.c (tui_set_layout): Update.
292 2019-08-20 Tom Tromey <tom@tromey.com>
294 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
296 (tui_check_register_values): Don't declare.
297 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
298 from tui_check_register_values.
299 * tui/tui-hooks.c (tui_register_changed): Update.
301 2019-08-20 Tom Tromey <tom@tromey.com>
303 * tui/tui-regs.c (tui_reg_layout): Move later.
304 (tui_show_registers): Don't enable TUI mode or change layout.
306 2019-08-20 Tom Tromey <tom@tromey.com>
308 * tui/tui-regs.h (struct tui_data_item_window)
309 <~tui_data_item_window>: Remove.
310 <content>: Now a unique_xmalloc_ptr.
311 * tui/tui-regs.c (tui_register_format): Return a
313 (tui_get_register): Update.
314 (~tui_data_item_window): Remove.
315 (tui_data_window::display_registers_from, tui_display_register):
317 * tui/tui-io.h (tui_expand_tabs): Update.
318 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
319 Remove "col" parameter.
321 2019-08-20 Tom Tromey <tom@tromey.com>
323 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
325 * tui/tui-regs.c (~tui_data_item_window): Update.
327 2019-08-20 Tom Tromey <tom@tromey.com>
329 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
332 2019-08-20 Tom Tromey <tom@tromey.com>
334 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
336 2019-08-20 Tom Tromey <tom@tromey.com>
338 * tui/tui-source.h (struct tui_source_window): Update.
339 * tui/tui-regs.c (tui_show_registers): Update.
340 * tui/tui-disasm.h (struct tui_disasm_window): Update.
341 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
342 (NO_REGS_STRING): Remove defines.
344 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
346 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
347 unnecessary thread walk if remote doesn't support the packet.
349 2019-08-19 Tom Tromey <tromey@adacore.com>
351 * python/py-value.c (value_has_field): Fix indentation.
353 2019-08-19 Tom Tromey <tromey@adacore.com>
355 * printcmd.c (do_one_display, info_display_command): Update.
356 * block.h (contained_in): Return bool. Add allow_nested
358 * block.c (contained_in): Return bool. Add allow_nested
361 2019-08-19 Tom Tromey <tom@tromey.com>
363 * configure: Rebuild.
364 * configure.ac: Disallow the combination of -static-libstdc++ and
366 * source-cache.c (get_language_name): Handle rust.
367 (source_cache::get_source_lines): Ignore highlighting exceptions.
369 2019-08-16 Tom Tromey <tom@tromey.com>
371 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
372 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
373 (struct tui_source_window_base) <make_visible, refresh_window,
374 resize>: Remove methods.
375 <execution_info>: Remove field.
376 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
377 (tui_show_source_line, tui_source_window_base)
378 (~tui_source_window_base): Update.
379 (tui_source_window_base::resize)
380 (tui_source_window_base::make_visible)
381 (tui_source_window_base::refresh_window): Remove.
382 (tui_source_window_base::update_exec_info): Update.
383 * tui/tui-source.c (tui_source_window::set_contents): Update.
384 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
386 2019-08-16 Tom Tromey <tom@tromey.com>
388 * tui/tui-hooks.c (tui_remove_hooks): Don't set
389 deprecated_query_hook.
391 2019-08-16 Tom Tromey <tom@tromey.com>
393 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
394 (tui_update_source_windows_with_line): Update.
395 * tui/tui-source.h (struct tui_source_window)
396 <show_symtab_source>: Declare.
397 (tui_show_symtab_source): Don't declare.
398 * tui/tui-source.c (tui_show_symtab_source): Rename from
399 tui_show_symtab_source.
401 2019-08-16 Tom Tromey <tom@tromey.com>
403 * tui/tui-winsource.h (struct tui_source_window_base)
404 <set_contents>: Declare.
405 * tui/tui-winsource.c
406 (tui_source_window_base::update_source_window_as_is): Update.
407 * tui/tui-source.h (struct tui_source_window) <set_contents>:
409 (tui_set_source_content): Don't declare.
410 * tui/tui-source.c (tui_source_window::set_contents): Rename from
411 tui_set_source_content.
412 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
414 (tui_set_disassem_content): Don't declare.
415 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
416 tui_set_disassem_content.
418 2019-08-16 Tom Tromey <tom@tromey.com>
420 * tui/tui-winsource.h (struct tui_source_window_base)
421 <update_breakpoint_info>: Declare.
422 (tui_update_breakpoint_info): Don't declare.
423 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
424 (tui_update_all_breakpoint_info): Update.
425 (tui_source_window_base::update_breakpoint_info): Rename from
426 tui_update_breakpoint_info.
427 (tui_source_window_base::update_exec_info): Update.
429 2019-08-16 Tom Tromey <tom@tromey.com>
431 * tui/tui-winsource.h (struct tui_source_window_base)
432 <update_source_window>: Declare.
433 (tui_update_source_window): Don't declare.
434 * tui/tui-winsource.c
435 (tui_source_window_base::update_source_window): Rename from
436 tui_update_source_window.
437 (tui_source_window_base::rerender): Update.
438 * tui/tui-source.c (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::maybe_update): Update.
443 2019-08-16 Tom Tromey <tom@tromey.com>
445 * tui/tui-winsource.h (struct tui_source_window_base)
446 <update_source_window_as_is>: Declare.
447 (tui_update_source_window_as_is): Don't declare.
448 * tui/tui-winsource.c (tui_update_source_window): Update
449 (tui_source_window_base::update_source_window_as_is): Rename from
450 tui_update_source_window_as_is.
451 (tui_source_window_base::refill): Update.
452 * tui/tui-source.c (tui_show_symtab_source): Update.
453 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
456 2019-08-16 Tom Tromey <tom@tromey.com>
458 * tui/tui-winsource.h (tui_update_source_window)
459 (tui_update_source_window_as_is): Remove "noerror" parameter.
460 * tui/tui-winsource.c (tui_update_source_window)
461 (tui_update_source_window_as_is): Remove "noerror" parameter.
462 (tui_update_source_windows_with_addr)
463 (tui_update_source_windows_with_line)
464 (tui_source_window_base::rerender)
465 (tui_source_window_base::refill): Update.
466 * tui/tui-source.h (tui_set_source_content)
467 (tui_show_symtab_source): Remove "noerror" parameter.
468 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
470 (tui_show_symtab_source): Likewise.
471 (tui_source_window::maybe_update): Update.
472 * tui/tui-disasm.c (tui_show_disassem)
473 (tui_show_disassem_and_update_source)
474 (tui_disasm_window::do_scroll_vertical)
475 (tui_disasm_window::maybe_update): Update.
477 2019-08-16 Tom Tromey <tom@tromey.com>
479 * tui/tui.c (tui_is_window_visible): Update.
480 * tui/tui-wingeneral.c (tui_make_window)
481 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
482 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
483 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
484 (tui_set_win_height_command, parse_scrolling_args): Update.
485 * tui/tui-source.c (tui_source_window::style_changed): Update.
486 * tui/tui-regs.c (tui_show_registers)
487 (tui_data_window::first_data_item_displayed)
488 (tui_data_window::delete_data_content_windows)
489 (tui_check_register_values, tui_reg_command): Update.
490 * tui/tui-disasm.c (tui_show_disassem): Update.
491 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
493 <is_visible>: Remove field.
494 * tui/tui-data.c (tui_next_win, tui_prev_win)
495 (tui_delete_invisible_windows): Update.
497 2019-08-16 Tom Tromey <tom@tromey.com>
499 * tui/tui-winsource.h (struct tui_source_window_base)
500 <m_has_locator>: Remove.
501 * tui/tui-layout.c (show_source_disasm_command, show_data)
502 (show_source_or_disasm_and_command): Update.
504 2019-08-16 Alan Hayward <alan.hayward@arm.com>
506 * NEWS (Other MI changes): New subsection.
507 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
508 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
509 * arch-utils.c (default_get_pc_address_flags): New function.
510 * arch-utils.h (default_get_pc_address_flags): New declaration.
511 * gdbarch.sh: Add get_pc_address_flags.
512 * gdbarch.c: Regenerate.
513 * gdbarch.h: Likewise.
514 * stack.c (print_pc): New function.
515 (print_frame_info) (print_frame): Call print_pc.
517 2019-08-16 Tom de Vries <tdevries@suse.de>
519 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
520 print_objfile_section_info.
522 2019-08-15 Tom Tromey <tom@tromey.com>
524 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
525 calling update_cmdwin_start_line.
526 * tui/tui-winsource.h (struct tui_source_window_base)
527 <do_make_visible_with_new_height, set_new_height>: Don't declare.
529 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
531 (tui_source_window_base::set_new_height): Remove.
532 (tui_source_window_base::rerender): Rename from
533 do_make_visible_with_new_height.
534 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
536 (tui_win_info::make_invisible_and_set_new_height)
537 (tui_win_info::make_visible_with_new_height): Remove.
538 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
540 * tui/tui-stack.c (tui_locator_window::rerender): New method.
541 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
542 do_make_visible_with_new_height>: Don't declare.
544 * tui/tui-regs.c (tui_data_window::rerender): Rename from
546 (tui_data_window::do_make_visible_with_new_height): Remove.
547 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
548 call tui_show_locator_content.
549 (tui_gen_win_info::resize): Call rerender.
550 (show_source_or_disasm_and_command): Don't call
551 tui_show_locator_content.
552 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
554 (struct tui_win_info) <rerender>: Declare.
555 <set_new_height, make_invisible_and_set_new_height,
556 make_visible_with_new_height>: Don't declare.
557 * tui/tui-data.c (tui_win_list::rerender): New method.
558 * tui/tui-command.h (struct tui_cmd_window)
559 <do_make_visible_with_new_height>: Don't declare.
561 (tui_cmd_window::do_make_visible_with_new_height): Remove.
563 2019-08-15 Tom Tromey <tromey@adacore.com>
565 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
566 * ada-lang.c (ada_enum_name): Likewise.
568 2019-08-15 Christian Biesinger <cbiesinger@google.com>
570 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
572 (GdbOutputErrorFile): Likewise.
573 (global scope): Adjust constructor calls to GdbOutput{,Error}File
575 (execute_unwinders): Rename to have a leading underscore.
576 (auto_load_packages): Likewise.
577 (global scope): Adjust call to auto_load_packages accordingly.
578 (GdbSetPythonDirectory): Likewise.
579 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
580 instead of execute_unwinders.
582 2019-08-15 Tom Tromey <tom@tromey.com>
584 * tui/tui-layout.c (show_layout, show_source_disasm_command)
585 (show_data): Don't change window visibility.
586 (tui_gen_win_info::resize): Remove special case for command
587 window. Use wresize, when available.
588 (show_source_or_disasm_and_command): Don't change window
590 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
591 <make_visible>: New method.
592 * tui/tui-command.c (tui_cmd_window::resize): New method.
594 2019-08-15 Tom Tromey <tom@tromey.com>
596 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
597 (struct tui_source_windows): New.
598 * tui/tui-winsource.c (tui_display_main): Update.
599 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
600 (new_height_ok, parse_scrolling_args): Update.
601 * tui/tui-layout.c (show_layout, show_data): Update.
602 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
603 (tui_add_to_source_windows): Don't declare.
604 * tui/tui-data.c (source_windows, tui_source_windows)
605 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
607 2019-08-15 Tom Tromey <tom@tromey.com>
609 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
611 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
612 * tui/tui-layout.c (show_source_disasm_command, show_data):
614 (tui_gen_win_info::resize): Rename.
615 (show_source_or_disasm_and_command): Update.
616 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
619 2019-08-15 Tom Tromey <tom@tromey.com>
621 * tui/tui-stack.c (tui_initialize_static_data): Remove.
622 * tui/tui-interp.c (tui_interp::init): Don't call
623 tui_initialize_static_data.
624 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
626 2019-08-15 Tom Tromey <tom@tromey.com>
628 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
629 examine tui_win_list.
631 2019-08-15 Tom Tromey <tom@tromey.com>
633 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
634 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
635 tui_clear_source_content.
636 (tui_clear_source_content): Remove.
637 (tui_source_window_base::do_erase_source_content): Hoist call to
639 * tui/tui-stack.c (tui_show_frame_info): Don't call
640 tui_clear_source_content.
642 2019-08-15 Tom Tromey <tom@tromey.com>
644 * tui/tui-winsource.h (struct tui_source_window_base)
645 <do_erase_source_content>: New method.
646 <erase_source_content>: New method.
647 (tui_erase_source_content): Don't declare.
648 * tui/tui-winsource.c (tui_clear_source_content): Update.
649 (tui_source_window_base::do_erase_source_content): Rename from
650 tui_erase_source_content.
651 (tui_source_window_base::show_source_content): Update.
652 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
653 * tui/tui-source.h (struct tui_source_window)
654 <erase_source_content>: New method.
655 * tui/tui-disasm.h (struct tui_disasm_window)
656 <erase_source_content>: New method.
658 2019-08-15 Tom Tromey <tom@tromey.com>
660 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
661 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
663 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
664 * tui/tui-source.c (tui_set_source_content): Update.
665 * tui/tui-disasm.c (tui_set_disassem_content): Update.
667 2019-08-15 Tom Tromey <tom@tromey.com>
669 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
670 * tui/tui-winsource.c (tui_line_is_displayed): Move to
672 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
674 * tui/tui-source.c (tui_source_window::line_is_displayed): New
676 (tui_source_window::maybe_update): Update.
678 2019-08-15 Tom Tromey <tom@tromey.com>
680 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
681 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
683 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
685 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
687 (tui_disasm_window::maybe_update): Update.
689 2019-08-15 Tom Tromey <tom@tromey.com>
691 * tui/tui-winsource.h (struct tui_source_window_base)
692 <maybe_update>: Declare.
693 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
695 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
697 * tui/tui-source.c (tui_source_window::maybe_update): New method.
698 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
700 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
702 2019-08-15 Tom Tromey <tom@tromey.com>
704 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
706 2019-08-15 Tom Tromey <tom@tromey.com>
708 * tui/tui-wingeneral.c: Include tui-stack.h.
709 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
710 (struct tui_locator_window): Move from tui-data.h.
711 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
712 (tui_initialize_static_data): Move from tui-data.c.
713 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
714 (struct tui_locator_window): Move to tui-stack.c.
715 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
716 (tui_initialize_static_data): Move to tui-stack.c.
718 2019-08-15 Tom Tromey <tom@tromey.com>
720 * tui/tui-layout.c (show_source_disasm_command)
721 (show_source_or_disasm_and_command): Use make_visible method, not
723 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
726 2019-08-15 Tom Tromey <tom@tromey.com>
728 * tui/tui-wingeneral.h (tui_make_window): Update.
729 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
731 (tui_gen_win_info::make_visible): Update.
732 * tui/tui-regs.c (tui_data_window::display_registers_from):
734 * tui/tui-layout.c (show_source_disasm_command)
735 (show_source_or_disasm_and_command): Update.
736 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
737 (enum tui_box): Remove.
738 (struct tui_win_info) <can_box>: New method.
739 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
742 2019-08-15 Tom de Vries <tdevries@suse.de>
744 * linux-nat-trad.c: Include gdbarch.h.
746 2019-08-14 Alan Hayward <alan.hayward@arm.com>
748 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
751 2019-08-14 Tom Tromey <tromey@adacore.com>
753 * darwin-nat.c: Include gdbarch.h.
754 * darwin-nat-info.c: Include gdbarch.h.
756 2019-08-13 Tom Tromey <tom@tromey.com>
758 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
760 * tui/tui-data.c (tui_initialize_static_data): Update.
762 2019-08-13 Tom Tromey <tom@tromey.com>
764 * tui/tui-winsource.h (struct tui_exec_info_window)
765 <~tui_exec_info_window, maybe_allocate_content, get_content,
767 (struct tui_source_window_base) <set_exec_info_content,
768 show_exec_info_content>: Don't declare.
769 * tui/tui-winsource.c
770 (tui_exec_info_window::maybe_allocate_content): Remove.
771 (tui_source_window_base::update_exec_info): Rename from
772 set_exec_info_content.
773 (tui_source_window_base::show_exec_info_content)
774 (tui_source_window_base::update_exec_info): Remove.
776 2019-08-13 Tom Tromey <tom@tromey.com>
778 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
780 * tui/tui-winsource.c (tui_update_source_window_as_is)
781 (tui_update_source_windows_with_addr, tui_erase_source_content):
783 (tui_clear_exec_info_content): Remove.
785 2019-08-13 Tom Tromey <tom@tromey.com>
787 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
789 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
790 call tui_erase_exec_info_content.
791 (tui_clear_exec_info_content): Rename from
792 tui_erase_exec_info_content.
793 (tui_clear_exec_info_content): Delete.
795 2019-08-13 Tom Tromey <tom@tromey.com>
797 * tui/tui-winsource.h (struct tui_source_window_base)
798 <show_exec_info_content>: Declare.
799 (tui_show_exec_info_content): Don't declare.
800 * tui/tui-winsource.c
801 (tui_source_window_base::show_exec_info_content): Rename from
802 tui_show_exec_info_content.
803 (tui_source_window_base::update_exec_info): Update.
805 2019-08-13 Tom Tromey <tom@tromey.com>
807 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
808 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
809 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
810 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
811 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
812 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
815 2019-08-13 Tom Tromey <tom@tromey.com>
817 * tui/tui-winsource.h (struct tui_source_window_base)
818 <update_exec_info>: Declare.
819 (tui_update_exec_info): Don't declare.
820 * tui/tui-winsource.c (tui_update_source_window_as_is)
821 (tui_source_window_base::refresh_all)
822 (tui_update_all_breakpoint_info): Update.
823 (tui_source_window_base::update_exec_info): Rename from
824 tui_update_exec_info.
825 * tui/tui-stack.c (tui_show_frame_info): Update.
827 2019-08-13 Tom Tromey <tom@tromey.com>
829 * tui/tui-winsource.h (struct tui_source_window_base)
830 <set_exec_info_content>: Declare.
831 (tui_set_exec_info_content): Don't declare.
832 * tui/tui-winsource.c
833 (tui_source_window_base::set_exec_info_content): Rename from
834 tui_set_exec_info_content.
835 (tui_update_exec_info): Update.
837 2019-08-13 Tom Tromey <tom@tromey.com>
839 * tui/tui-winsource.h (struct tui_source_window_base)
840 <show_source_content>: Declare.
841 (tui_show_source_content): Don't declare.
842 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
843 (tui_source_window_base::show_source_content): Rename from
844 tui_show_source_content.
845 (tui_source_window_base::refresh_all): Update.
846 * tui/tui-layout.c (show_source_disasm_command)
847 (show_source_or_disasm_and_command): Update.
849 2019-08-13 Tom Tromey <tom@tromey.com>
851 * tui/tui-winsource.c (tui_erase_source_content)
852 (tui_show_source_content, tui_source_window_base::refresh_all):
854 * tui/tui-wingeneral.h
855 (tui_check_and_display_highlight_if_needed): Don't declare.
856 * tui/tui-wingeneral.c
857 (tui_win_info::check_and_display_highlight_if_needed): Rename from
858 check_and_display_highlight_if_needed.
859 * tui/tui-win.c (tui_rehighlight_all)
860 (tui_win_info::make_visible_with_new_height): Update.
861 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
862 (tui_data_window::erase_data_content)
863 (tui_data_window::display_all_data): Update.
864 * tui/tui-data.h (struct tui_win_info)
865 <check_and_display_highlight_if_needed>: Declare.
867 2019-08-13 Tom Tromey <tom@tromey.com>
869 * tui/tui-win.c (tui_resize_all): Call
870 tui_delete_invisible_windows.
871 * tui/tui-layout.c (show_layout): Call
872 tui_delete_invisible_windows.
873 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
874 * tui/tui-data.c (tui_delete_invisible_windows): New function.
876 2019-08-13 Tom Tromey <tom@tromey.com>
878 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
879 tui_add_win_to_layout.
881 2019-08-13 Tom Tromey <tom@tromey.com>
883 * tui/tui-layout.h (tui_default_win_height): Don't declare.
884 * tui/tui-layout.c (tui_default_win_height): Now static.
886 2019-08-13 Tom Tromey <tom@tromey.com>
888 * tui/tui-layout.c (show_layout): Unify all layout cases into a
890 (show_source_disasm_command, show_source_or_disasm_and_command):
891 Don't check current layout.
893 2019-08-13 Tom Tromey <tom@tromey.com>
895 * tui/tui-wingeneral.c (make_all_visible): Remove.
896 (tui_make_all_invisible): Simplify.
897 * tui/tui-layout.c (tui_make_all_invisible): Move from
898 tui-wingeneral.c; simplify.
899 (show_layout): Hoist call to tui_make_all_invisible.
900 (show_data): Don't call tui_make_all_invisible.
902 2019-08-13 Tom Tromey <tom@tromey.com>
904 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
905 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
907 2019-08-13 Tom Tromey <tom@tromey.com>
909 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
911 (show_source_disasm_command, show_data)
912 (show_source_or_disasm_and_command): Don't use
913 tui_set_current_layout_to.
914 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
915 * tui/tui-data.c (current_layout, tui_current_layout): Move to
917 (tui_set_current_layout_to): Remove.
919 2019-08-13 Tom Tromey <tom@tromey.com>
921 * tui/tui-layout.c (tui_set_layout): Update.
922 * tui/tui-data.h (struct tui_layout_def): Remove.
923 (tui_layout_def): Don't declare.
924 * tui/tui-data.c (layout_def): Remove.
925 (tui_layout_def): Remove.
927 2019-08-13 Tom Tromey <tom@tromey.com>
929 * tui/tui-winsource.h (struct tui_source_window_base)
930 <clear_detail>: No longer "override".
931 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
932 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
933 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
934 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
936 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
938 2019-08-13 Tom Tromey <tromey@adacore.com>
940 * tracepoint.c: Don't include readline.h or history.h.
942 2019-08-12 Tom Tromey <tom@tromey.com>
944 * configure: Rebuild.
945 * configure.ac: Check for readline 7.
946 * NEWS: Mention readline 7 requirement.
949 2019-08-12 Tom Tromey <tom@tromey.com>
951 * mingw-hdep.c (gdb_select): Remove readline hack.
953 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
955 * blockframe.c (find_pc_partial_function): Set *block to nullptr
956 when the function fails.
958 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
960 * s390-tdep.c (s390_type_align): New function.
961 (s390_gdbarch_init): Set it as type_align gdbarch method.
963 2019-08-09 Tom de Vries <tdevries@suse.de>
966 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
967 pc_low with relocation offset.
969 2019-08-07 Tom Tromey <tromey@adacore.com>
971 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
972 (print_frame_args): Update.
973 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
975 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
976 * frame.h (struct frame_arg): Add initializers.
977 <error>: Now a unique_xmalloc_ptr.
979 2019-08-07 Alan Hayward <alan.hayward@arm.com>
981 * NEWS: Expand the Pointer Authentication entry.
982 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
983 (aarch64_frame_unmask_lr): ... to this.
984 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
985 Call aarch64_frame_unmask_lr.
986 * frame.c (struct frame_info): Add "masked" variable.
987 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
988 (fprint_frame): Check for masked pc.
989 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
991 * python/py-framefilter.c (py_print_frame): Check for masked pc.
992 * stack.c (print_frame): Check for masked pc.
994 2019-08-06 Tom Tromey <tom@tromey.com>
996 * stabsread.c (patch_block_stabs, read_one_struct_field)
997 (read_enum_type): Use obstack_strndup.
998 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
999 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1000 * dwarf2read.c (guess_full_die_structure_name)
1001 (anonymous_struct_prefix): Use obstack_strndup.
1002 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1003 * c-exp.y (yylex): Use obstack_strndup.
1004 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1005 (write_var_or_type): Use obstack_strndup.
1007 2019-08-06 Tom Tromey <tom@tromey.com>
1009 * symfile.c (reread_symbols): Use obstack_strdup.
1010 * stabsread.c (read_type): Use obstack_strdup.
1011 * gdb_obstack.h (obstack_strdup): New overload.
1012 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1013 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1014 (dwarf2_canonicalize_name): Use obstack_strdup.
1015 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1016 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1019 2019-08-06 Tom Tromey <tom@tromey.com>
1021 * gdb_obstack.h (obstack_strdup): Define.
1022 * gdb_obstack.c (obstack_strdup): Don't define.
1024 2019-08-06 Tom Tromey <tom@tromey.com>
1026 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1028 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1030 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1031 * stabsread.c (common_block_start): Use obstack_strdup.
1032 * objfiles.c (set_objfile_main_name, objfile): Use
1034 * namespace.c (add_using_directive): Use obstack_strdup.
1035 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1036 * jit.c (finalize_symtab): Use obstack_strdup.
1037 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1038 (guess_partial_die_structure_name, partial_die_info::fixup)
1039 (dwarf2_name): Use obstack_strdup.
1040 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1042 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1043 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1045 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1047 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1049 * unittests/help-doc-selftests.c: New file.
1050 * Makefile.in: Add the new file.
1052 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1054 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1055 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1056 the full first line, except when FOR_VALUE_PREFIX. In this case,
1057 the trailing '.' is not output, and the first character is uppercased.
1058 (print_help_for_command): Update call to print_doc_line.
1059 (print_doc_of_command): Likewise.
1060 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1061 * cli/cli-option.c (append_indented_doc): Do not append newline.
1062 (build_help_option): Append newline after first appended_indented_doc
1063 only if a second call is done.
1064 (build_help): Append 2 new lines before each option, except the first
1066 * compile/compile.c (_initialize_compile): Add new lines after
1067 %OPTIONS%, when not at the end of the help.
1068 Change help doc or code
1069 producing the help doc to respect the invariants.
1070 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1071 Also removed the new line after 'Options:', as all other commands
1072 do not put an empty line between 'Options:' and the first option.
1073 * printcmd.c (_initialize_printcmd): Likewise.
1074 * stack.c (_initialize_stack): Likewise.
1075 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1076 incorrectly telling COMMAND is optional.
1077 * ada-lang.c (_initialize_ada_language): Change help doc or code
1078 producing the help doc to respect the invariants.
1079 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1080 * breakpoint.c (_initialize_breakpoint): Likewise.
1081 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1082 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1083 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1084 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1085 _initialize_cli_style): Likewise.
1086 * corelow.c (core_target_info): Likewise.
1087 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1088 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1089 * filesystem.c (_initialize_filesystem): Likewise.
1090 * frame.c (_initialize_frame): Likewise.
1091 * gnu-nat.c (add_task_commands): Likewise.
1092 * infcall.c (_initialize_infcall): Likewise.
1093 * infcmd.c (_initialize_infcmd): Likewise.
1094 * interps.c (_initialize_interpreter): Likewise.
1095 * language.c (_initialize_language): Likewise.
1096 * linux-fork.c (_initialize_linux_fork): Likewise.
1097 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1098 * maint.c (_initialize_maint_cmds): Likewise.
1099 * memattr.c (_initialize_mem): Likewise.
1100 * printcmd.c (_initialize_printcmd): Likewise.
1101 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1103 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1104 * record-btrace.c (_initialize_record_btrace): Likewise.
1105 * record-full.c (_initialize_record_full): Likewise.
1106 * record.c (_initialize_record): Likewise.
1107 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1108 * regcache.c (_initialize_regcache): Likewise.
1109 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1110 _initialize_remote): Likewise.
1111 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1112 * serial.c (_initialize_serial): Likewise.
1113 * skip.c (_initialize_step_skip): Likewise.
1114 * source.c (_initialize_source): Likewise.
1115 * stack.c (_initialize_stack): Likewise.
1116 * symfile.c (_initialize_symfile): Likewise.
1117 * symtab.c (_initialize_symtab): Likewise.
1118 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1119 * top.c (init_main): Likewise.
1120 * tracefile-tfile.c (tfile_target_info): Likewise.
1121 * tracepoint.c (_initialize_tracepoint): Likewise.
1122 * tui/tui-win.c (_initialize_tui_win): Likewise.
1123 * utils.c (add_internal_problem_command): Likewise.
1124 * valprint.c (value_print_option_defs): Likewise.
1126 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1129 * configure.ac: Drop enable-libmcheck support.
1130 * configure, config.in: Rebuild.
1131 * libmcheck.m4: Remove.
1132 * acinclude.m4: Don't include it.
1133 * Makefile.in: Don't distribute it.
1134 * top.c (print_gdb_configuration): Don't mention it.
1136 2019-08-06 Tom Tromey <tom@tromey.com>
1138 * utils.c (set_output_style): Sometimes pass stream to
1140 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1141 * record-btrace.c (btrace_insn_history): Update.
1142 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1144 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1145 Update initializers.
1146 <m_uiout>: New field.
1148 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1149 Remove "uiout" parameter.
1150 (dump_insns): Update.
1151 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1152 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1154 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1156 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1157 (error_in_psymtab_expansion): Likewise.
1158 (lookup_symbol_via_quick_fns): Likewise.
1159 (basic_lookup_transparent_type_quick): Likewise.
1160 (basic_lookup_transparent_type_1): Likewise.
1162 2019-08-06 Tom Tromey <tromey@adacore.com>
1164 * source.c (last_source_error): Now bool.
1165 (print_source_lines_base): Make "noprint" bool. Only open
1166 source file when last_source_visited changes.
1168 2019-08-06 Tom Tromey <tromey@adacore.com>
1170 * annotate.c (annotate_source_line): Use g_source_cache.
1171 * source-cache.c (source_cache::get_plain_source_lines): Change
1172 parameters. Populate m_offset_cache.
1173 (source_cache::ensure): New method.
1174 (source_cache::get_line_charpos): New method.
1175 (extract_lines): Move lower. Change parameters.
1176 (source_cache::get_source_lines): Move lower.
1177 * source-cache.h (class source_cache): Update comment.
1178 <get_line_charpos>: New method.
1179 <get_source_lines>: Update comment.
1180 <clear>: Clear m_offset_cache.
1181 <get_plain_source_lines>: Change parameters.
1182 <ensure>: New method
1183 <m_offset_cache>: New member.
1184 * source.c (forget_cached_source_info_for_objfile): Update.
1185 (info_source_command): Use g_source_cache.
1186 (find_source_lines, open_source_file_with_line_charpos): Remove.
1187 (print_source_lines_base, search_command_helper): Use g_source_cache.
1188 * source.h (open_source_file_with_line_charpos): Don't declare.
1189 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1190 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1193 2019-08-06 Tom Tromey <tromey@adacore.com>
1195 * source-cache.c (source_cache::get_plain_source_lines):
1196 Remove "first_line" and "last_line" parameters.
1197 (source_cache::get_source_lines): Cache plain text.
1198 * source-cache.h (class source_cache)
1199 <get_plain_source_lines>: Update.
1201 2019-08-06 Tom Tromey <tromey@adacore.com>
1203 * source-cache.c (extract_lines): No longer a method.
1204 Changed type of parameter. Include final newline.
1205 (selftests::extract_lines_test): New function.
1206 (_initialize_source_cache): Likewise.
1207 * source-cache.h (class source_cache)
1208 <extract_lines>: Don't declare.
1210 2019-08-06 Tom Tromey <tromey@adacore.com>
1212 * breakpoint.c (init_breakpoint_sal): Update.
1213 (breakpoint): Update.
1214 * breakpoint.h (struct breakpoint) <filter>: Now a
1217 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1219 * NEWS: Mention dictionary access on blocks.
1220 * python/py-block.c (blpy_getitem): New function.
1221 (block_object_as_mapping): New struct.
1222 (block_object_type): Use new struct for tp_as_mapping field.
1224 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1226 * objfiles.h (objfile): Add a comment describing partial symbols.
1228 2019-08-05 Tom Tromey <tromey@adacore.com>
1230 * compile/compile.c (_initialize_compile): Use _(), not N_().
1231 * thread.c (_initialize_thread): Use _(), not N_().
1232 * stack.c (_initialize_stack): Use _(), not N_().
1233 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1235 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1237 * dwarf2read.c (struct dw2_symtab_iterator):
1238 <want_specific_block>: Remove.
1239 <block_index>: Change type to gdb::optional.
1240 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1241 change type of BLOCK_INDEX parameter to gdb::optional.
1242 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1243 (dw2_lookup_symbol): Don't pass argument for
1244 WANT_SPECIFIC_BLOCK.
1245 (dw2_expand_symtabs_for_function): Don't pass argument for
1246 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1247 (class dw2_debug_names_iterator)
1248 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1249 parameter, change BLOCK_INDEX type to gdb::optional.
1250 <m_want_specific_block>: Remove.
1251 <m_block_index>: Change type to gdb::optional.
1252 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1253 gdb::optional. Re-write in function of gdb::optional.
1254 (dw2_debug_names_lookup_symbol): Don't pass argument for
1255 WANT_SPECIFIC_BLOCK.
1256 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1257 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1260 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1262 * NEWS: Mention changes to "info sources" command.
1264 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1266 * symtab.c (filename_partial_match_opts): New struct type.
1267 (struct output_source_filename_data): New members
1268 regexp, c_regexp, partial_match.
1269 (output_source_filename): Use new members to decide to print file.
1270 (info_sources_option_defs): New variable.
1271 (make_info_sources_options_def_group, print_info_sources_header,
1272 info_sources_command_completer):
1274 (info_sources_command): Read new optional arguments.
1275 (_initialize_symtab): Update info sources help.
1277 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1279 * ada-lang.c (exception_support_info_v0): Renamed from...
1280 (default_exception_support_info): ... this. Create new
1282 (ada_has_this_exception_support): Look up catch_handlers_sym.
1283 (ada_exception_support_info_sniffer): Try v0 after default.
1285 2019-08-01 Tom Tromey <tromey@adacore.com>
1287 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1290 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1292 * s12z-tdep.c: Fix include path for s12z-opc.h.
1294 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1296 * NEWS: Require GNU make 3.82.
1298 2019-07-16 Tom Tromey <tom@tromey.com>
1300 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1303 2019-07-30 Tom Tromey <tromey@adacore.com>
1305 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1307 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1309 * printcmd.c (print_address_symbolic): Print negative offsets.
1310 (build_address_symbolic): Force signed arithmetic when computing
1313 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1315 PR/24474: Add a function to lookup static variables.
1316 * NEWS: Mention this new function.
1317 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1318 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1319 * python/python.c (python_GdbMethods): Add new function.
1321 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1323 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1324 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1325 (objfpy_lookup_static_symbol): New function.
1326 (objfile_object_methods): Add new functions.
1328 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1330 * NEWS: Mention 'set|show print frame-info'. Mention new
1331 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1332 backtrace argument. Mention that python frame filtering code
1333 is now consistent with what 'backtrace' command prints.
1335 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1337 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1339 (print_frame_info_auto, print_frame_info_source_line,
1340 print_frame_info_location, print_frame_info_source_and_location,
1341 print_frame_info_location_and_address, print_frame_info_short_location):
1343 (struct frame_print_options): New member print_frame_info.
1344 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1345 * stack.h (get_user_print_what_frame_info): New declaration.
1346 (frame_show_address): New declaration.
1347 * stack.c (print_frame_arguments_choices): New value 'presence'.
1348 (print_frame_info_auto, print_frame_info_source_line,
1349 print_frame_info_location, print_frame_info_source_and_location,
1350 print_frame_info_location_and_address, print_frame_info_short_location,
1351 print_frame_info_choices, print_frame_info_print_what): New definitions.
1352 (print_frame_args): Only print dots for args if print frame-arguments
1354 (frame_print_option_defs): New element for "frame-info".
1355 (get_user_print_what_frame_info): New function.
1356 (frame_show_address): Make non static. Move comment to stack.h.
1357 (print_frame_info_to_print_what): New function.
1358 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1359 to decide what to print.
1360 (backtrace_command_1): Handle the new print_frame_arguments_presence
1362 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1363 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1364 (py_print_frame): In non-mi mode, use LOCATION as default for
1365 print_what, similarly to frame information printed directly by
1366 backtrace command. Handle frame-info user option in non MI mode.
1368 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1370 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1371 Add case for debugging 32-bit target on 64-bit host. Revise
1374 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1376 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1377 instead of find_function_entry_range_from_pc.
1379 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1381 * stack.c (find_frame_funname): Remove code which preferred
1382 minsym over symtab sym in "certain pathological cases".
1384 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1385 parameter. Change type of "do_demangle" to bool.
1386 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1387 Pass suitable "prefer_sym_over_minsym" flag to
1388 build_address_symbolic(). Don't output "+" for negative offsets.
1389 * printcmd.c (print_address_symbolic): Update invocation of
1390 build_address_symbolic to include a "prefer_sym_over_minsym"
1392 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1393 Restrict cases in which use of minimal symbol is preferred to that
1394 of a found symbol. Update comments.
1396 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1397 for entry pc when entry pc is out of range for that FDE.
1399 2019-07-26 Brian Callahan <bcallah@openbsd.org>
1402 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1405 2019-07-25 Christian Biesinger <cbiesinger@google.com>
1407 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1408 this function's Python signature.
1411 2019-07-24 Christian Biesinger <cbiesinger@google.com>
1413 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1414 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1415 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1416 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1417 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1420 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1422 * h8300-tdep.c (h8300_register_name_common): New.
1423 h8300_register_name): Use h8300_register_name_common.
1424 (h8300s_register_name): Likewise.
1425 (h8300sx_register_name): Likewise.
1426 (h8300h_register_nam): New.
1427 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1430 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1432 * arm-tdep.c (arm_skip_cmse_entry): New function.
1433 (arm_is_sgstubs_section): New function.
1434 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1436 2019-07-22 Tom Tromey <tom@tromey.com>
1438 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1441 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1443 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1446 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1448 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1449 so that GDB doesn't match any msymbols when searching in the
1451 (print_symbol_info): Print using typedef_print or type_print based
1452 on the type of the symbol. Add updated FIXME comment moved from...
1453 (_initialize_symtab): ... move and update FIXME comment to above.
1455 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1457 * NEWS: Mention adding -q option to "info types".
1458 * symtab.c (struct info_types_options): New struct.
1459 (info_types_options_defs): New variable.
1460 (make_info_types_options_def_group): New function.
1461 (info_types_command): Use gdb::option framework to parse options.
1462 (info_types_command_completer): New function.
1463 (_initialize_symtab): Extend the help text on "info types" and
1464 register command completer.
1466 2019-07-21 Christian Biesinger <cbiesinger@google.com>
1468 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1469 (lookup_symbol_in_objfile): Change int to block_enum and add a
1470 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1472 2019-07-20 Christian Biesinger <cbiesinger@google.com>
1474 * MAINTAINERS (Write After Approval): Add self.
1476 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1478 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1479 instruction to the dummy code region.
1481 2019-07-19 Tom Tromey <tromey@adacore.com>
1483 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1484 (ARGSUSED, PARAMS, __func__): Remove rules.
1486 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1488 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1489 * features/arm/arm-with-iwmmxt.c: Remove.
1490 * features/arm/arm-with-iwmmxt.xml: Remove.
1491 * features/arm/arm-with-m-fpa-layout.c: Remove.
1492 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1493 * features/arm/arm-with-m-vfp-d16.c: Remove.
1494 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1495 * features/arm/arm-with-m.c: Remove.
1496 * features/arm/arm-with-m.xml: Remove.
1497 * features/arm/arm-with-neon.c: Remove.
1498 * features/arm/arm-with-neon.xml: Remove.
1499 * features/arm/arm-with-vfpv2.c: Remove.
1500 * features/arm/arm-with-vfpv2.xml: Remove.
1501 * features/arm/arm-with-vfpv3.c: Remove.
1502 * features/arm/arm-with-vfpv3.xml: Remove.
1504 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1506 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1508 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1510 * arch/aarch32.c (aarch32_create_target_description): Create
1511 target descriptions using features.
1512 * arch/arm.c (arm_create_target_description)
1513 (arm_create_mprofile_target_description): Likewise.
1514 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1516 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1518 * Makefile.in: Add new files.
1519 * aarch32-tdep.c: New file.
1520 * aarch32-tdep.h: New file.
1521 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1522 Call aarch32_read_description.
1523 * arch/aarch32.c: New file.
1524 * arch/aarch32.h: New file.
1525 * arch/arm.c (arm_create_target_description)
1526 (arm_create_mprofile_target_description): New function.
1527 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1528 (arm_create_target_description)
1529 (arm_create_mprofile_target_description): New declaration.
1530 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1531 read_description functions.
1532 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1534 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1535 * arm-tdep.c (tdesc_arm_list): New variable.
1536 (arm_register_g_packet_guesses): Call create description functions.
1537 (arm_read_description) (arm_read_mprofile_description): New
1539 * arm-tdep.h (arm_read_description)
1540 (arm_read_mprofile_description): Add declaration.
1541 * configure.tgt: Add new files.
1543 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1545 * top.c (new_ui_command): Open specified terminal just once.
1547 2019-07-18 Tom Tromey <tromey@adacore.com>
1549 * symtab.c (main_name): Constify return type.
1550 * symfile.c (set_initial_language): Update.
1551 * symtab.h (main_name): Constify return type.
1553 2019-07-17 Tom Tromey <tom@tromey.com>
1555 * tui/tui-winsource.c (tui_update_source_window)
1556 (tui_update_source_window_as_is)
1557 (tui_update_source_windows_with_line): Remove return.
1558 * tui/tui-disasm.c (tui_show_disassem)
1559 (tui_show_disassem_and_update_source): Remove return.
1560 * tui/tui.c (tui_reset): Remove return.
1561 * tui/tui-wingeneral.c
1562 (tui_check_and_display_highlight_if_needed): Remove return.
1564 2019-07-17 Tom Tromey <tom@tromey.com>
1566 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1568 2019-07-17 Tom Tromey <tom@tromey.com>
1570 * tui/tui-winsource.h (struct tui_exec_info_window)
1571 (struct tui_source_window_base): Move from tui-data.h.
1572 * tui/tui-winsource.c: Move many method definitions from
1573 elsewhere. Remove "structuring" comments.
1574 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1575 (tui_source_window_base::refresh_window): Move to
1577 * tui/tui-win.c (tui_source_window_base::refresh_all)
1578 (tui_source_window_base::update_tab_width)
1579 (tui_source_window_base::set_new_height)
1580 (tui_source_window_base::do_make_visible_with_new_height): Move to
1582 * tui/tui-source.h: Update.
1583 * tui/tui-source.c (tui_source_window_base::reset): Move to
1585 * tui/tui-disasm.h: Update.
1586 * tui/tui-data.h (struct tui_exec_info_window): Move to
1588 (struct tui_source_window_base): Likewise.
1589 * tui/tui-data.c (tui_source_window_base::clear_detail)
1590 (tui_source_window_base, ~tui_source_window_base): Move to
1593 2019-07-17 Tom Tromey <tom@tromey.com>
1595 * tui/tui-win.c (tui_resize_all)
1596 (tui_source_window_base::update_tab_width)
1597 (tui_adjust_win_heights): Update.
1598 (tui_win_info::make_invisible_and_set_new_height): Rename from
1599 make_invisible_and_set_new_height.
1600 * tui/tui-data.h (struct tui_win_info)
1601 <make_invisible_and_set_new_height>: New method.
1603 2019-07-17 Tom Tromey <tom@tromey.com>
1605 * tui/tui.c: Update.
1606 * tui/tui-source.h (struct tui_source_window): Move from
1608 * tui/tui-layout.c: Update.
1609 * tui/tui-disasm.c: Update.
1610 * tui/tui-data.h (struct tui_source_window): Move to
1613 2019-07-17 Tom Tromey <tom@tromey.com>
1615 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1617 * tui/tui-data.h (struct tui_disasm_window): Move to
1620 2019-07-17 Tom Tromey <tom@tromey.com>
1622 * tui/tui-regs.h (struct tui_data_item_window): Move from
1624 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1625 * tui/tui-data.h (struct tui_data_item_window): Move to
1627 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1629 2019-07-17 Tom Tromey <tom@tromey.com>
1631 * tui/tui.c: Update.
1632 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1633 (tui_cmd_window::max_height): Move to tui-command.c.
1634 * tui/tui-layout.c: Update.
1635 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1636 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1638 * tui/tui-command.h (struct tui_cmd_window): Move from
1640 * tui/tui-command.c: Remove "structuring" comments.
1641 (tui_cmd_window::clear_detail)
1642 (tui_cmd_window::do_make_visible_with_new_height)
1643 (tui_cmd_window::max_height): Move from elsewhere.
1645 2019-07-17 Tom Tromey <tom@tromey.com>
1647 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1649 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1650 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1652 2019-07-17 Tom Tromey <tom@tromey.com>
1654 * tui/tui.c: Update.
1655 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1657 * tui/tui-windata.h: Remove file.
1658 * tui/tui-windata.c: Remove file.
1659 * tui/tui-win.c (tui_data_window::set_new_height)
1660 (tui_data_window::do_make_visible_with_new_height): Move to
1662 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1663 * tui/tui-regs.c: Remove "structuring" comments.
1664 (tui_data_window::first_data_item_displayed)
1665 (tui_data_window::delete_data_content_windows)
1666 (tui_data_window::erase_data_content)
1667 (tui_data_window::display_all_data)
1668 (tui_data_window::refresh_all)
1669 (tui_data_window::do_scroll_vertical)
1670 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1671 (tui_data_window::do_make_visible_with_new_height)
1672 (tui_data_window::refresh_window): Move from elsewhere.
1673 (_initialize_tui_regs): Move to end of file.
1674 * tui/tui-layout.c: Update.
1675 * tui/tui-hooks.c: Update.
1676 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1677 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1679 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1681 2019-07-17 Tom Tromey <tom@tromey.com>
1683 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1686 2019-07-17 Tom Tromey <tom@tromey.com>
1688 * tui/tui-win.c (tui_source_window_base::set_new_height)
1689 (tui_source_window_base::do_make_visible_with_new_height): Use
1690 m_has_locator field directly.
1691 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1693 (struct tui_source_window_base) <has_locator>: Likewise.
1695 2019-07-17 Tom Tromey <tom@tromey.com>
1697 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1699 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1701 * tui/tui-win.c (tui_source_window_base::set_new_height)
1702 (tui_source_window_base::set_new_height)
1703 (make_invisible_and_set_new_height)
1704 (tui_source_window_base::do_make_visible_with_new_height)
1705 (tui_source_window_base::do_make_visible_with_new_height):
1707 * tui/tui-layout.c (show_source_disasm_command, show_data)
1708 (show_source_or_disasm_and_command): Update.
1709 * tui/tui-layout.c (show_layout): Update.
1711 2019-07-17 Tom Tromey <tom@tromey.com>
1713 * tui/tui-layout.c (make_data_window): Remove.
1714 (show_data): Unify creation and re-initialization cases.
1716 2019-07-17 Tom Tromey <tom@tromey.com>
1718 * tui/tui-layout.c (make_source_window, make_disasm_window):
1720 (show_data): Unify creation and re-initialization cases.
1722 2019-07-17 Tom Tromey <tom@tromey.com>
1724 * tui/tui-layout.c (make_command_window): Remove.
1725 (show_source_disasm_command, show_source_or_disasm_and_command):
1726 Unify creation and re-initialization cases.
1728 2019-07-17 Tom Tromey <tom@tromey.com>
1730 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1731 creation and re-initialization cases.
1733 2019-07-17 Tom Tromey <tom@tromey.com>
1735 * tui/tui-regs.c (tui_get_register): Return void.
1737 2019-07-17 Tom Tromey <tom@tromey.com>
1739 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1742 2019-07-17 Tom Tromey <tom@tromey.com>
1744 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1747 2019-07-17 Tom Tromey <tom@tromey.com>
1749 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1750 * tui/tui-regs.c (tui_reg_layout): New function.
1751 (tui_show_registers, tui_reg_command): Use it.
1752 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1753 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1755 (tui_layout_command): Remove.
1757 2019-07-17 Tom Tromey <tom@tromey.com>
1759 * tui/tui-layout.h (tui/tui-layout): Return void.
1760 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1762 2019-07-17 Tom Tromey <tom@tromey.com>
1764 * tui/tui-layout.c (show_source_disasm_command, show_data):
1766 (reset_locator): Remove.
1767 (show_source_or_disasm_and_command): Update.
1769 2019-07-17 Tom Tromey <tom@tromey.com>
1771 * tui/tui-source.c (tui_source_window_base::reset): Remove
1773 * tui/tui-layout.c (make_command_window, make_source_window)
1774 (make_disasm_window, make_data_window)
1775 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1776 (reset_locator, show_source_or_disasm_and_command): Update.
1777 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1779 (struct tui_source_window_base) <reset>: Likewise.
1781 2019-07-17 Tom Tromey <tom@tromey.com>
1783 * tui/tui-layout.c (show_source_disasm_command): Use
1785 (reset_locator): New function.
1786 (init_and_make_win): Remove.
1787 (show_source_or_disasm_and_command): Use reset_locator.
1789 2019-07-17 Tom Tromey <tom@tromey.com>
1791 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1793 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1795 * tui/tui-source.c (tui_source_window_base::reset): New method.
1796 * tui/tui-layout.c (make_command_window): Don't call
1798 (make_source_window, make_disasm_window): Don't call
1799 make_source_or_disasm_window.
1800 (make_data_window): Don't call init_and_make_win. Change calling
1802 (show_source_disasm_command, show_data): Simplify.
1803 (make_source_or_disasm_window): Remove.
1804 (show_source_or_disasm_and_command): Simplify.
1805 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1806 (struct tui_source_window_base) <reset>: Likewise.
1807 <execution_info>: Remove initializer.
1808 * tui/tui-data.c (tui_source_window_base): Initialize
1811 2019-07-17 Tom Tromey <tom@tromey.com>
1813 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1816 2019-07-17 Tom Tromey <tom@tromey.com>
1818 * tui/tui.c (tui_rl_other_window): Update.
1819 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1820 superclass method first. Always iterate over regs_content.
1821 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1823 * tui/tui-win.c (tui_set_focus_command): Update.
1825 2019-07-17 Tom Tromey <tom@tromey.com>
1827 * tui/tui-win.c (tui_set_focus_command): Rename from
1828 tui_set_focus. Call tui_enable.
1829 (tui_set_focus_command): Remove.
1831 2019-07-17 Tom Tromey <tom@tromey.com>
1833 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1835 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1837 (tui_data_window::refresh_window): Call refresh_window on data
1838 items. Always call superclass refresh_window.
1839 (tui_win_info::refresh): Remove.
1840 (tui_source_window_base::refresh_window): Update.
1841 (tui_refresh_all): Update.
1842 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1844 (show_source_or_disasm_and_command): Likewise.
1845 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1846 (struct tui_source_window_base) <refresh>: Likewise.
1848 2019-07-17 Tom Tromey <tom@tromey.com>
1850 * tui/tui-winsource.c (tui_clear_source_content)
1851 (tui_show_source_content): Update.
1852 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1853 whether content is empty.
1854 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1857 2019-07-17 Tom Tromey <tom@tromey.com>
1859 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1861 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1862 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1864 2019-07-17 Tom Tromey <tom@tromey.com>
1866 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1867 (struct tui_data_item_window): Update.
1869 2019-07-17 Tom Tromey <tom@tromey.com>
1871 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1872 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1875 2019-07-17 Tom Tromey <tom@tromey.com>
1877 * tui/tui-winsource.h (tui_erase_source_content)
1878 (tui_clear_source_content): Remove "display_prompt" parameter.
1879 * tui/tui-winsource.c (tui_update_source_window_as_is)
1880 (tui_update_source_windows_with_addr): Update.
1881 (tui_clear_source_content): Remove "display_prompt" parameter.
1882 (tui_erase_source_content): Likewise. Simplify.
1883 (tui_show_source_content): Update.
1884 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1885 * tui/tui-stack.c (tui_show_frame_info): Update.
1886 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1889 2019-07-17 Tom Tromey <tom@tromey.com>
1891 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1892 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1894 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1897 2019-07-17 Tom Tromey <tom@tromey.com>
1899 * tui/tui-winsource.c (tui_clear_source_content)
1900 (tui_show_source_content, tui_show_exec_info_content)
1901 (tui_clear_exec_info_content): Update.
1902 * tui/tui-stack.c (tui_show_locator_content): Update.
1903 (tui_show_frame_info): Update.
1904 * tui/tui-source.h (tui_source_window): Don't declare.
1905 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1906 from tui_source_is_displayed.
1907 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1909 (struct tui_source_window_base) <content_in_use>: New field. Now
1911 (struct tui_source_window) <showing_source_p>: New method.
1912 (TUI_SRC_WIN): Change cast.
1913 * tui/tui-data.c (tui_initialize_static_data): Update.
1915 2019-07-17 Tom Tromey <tom@tromey.com>
1917 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1919 * tui/tui-source.c (tui_source_window::location_matches_p): New
1921 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1923 * tui/tui-data.h (struct tui_source_window_base)
1924 <location_matches_p>: New method.
1925 (struct tui_source_window, struct tui_disasm_window)
1926 <location_matches_p>: Likewise.
1928 2019-07-17 Tom Tromey <tom@tromey.com>
1930 * tui/tui-win.c (tui_set_win_height_command): Rename from
1932 (tui_set_win_height_command): Remove.
1934 2019-07-17 Tom Tromey <tom@tromey.com>
1936 * tui/tui-source.c (tui_source_window): New constructor. Add
1938 (~tui_source_window): New destructor.
1939 (tui_source_window::style_changed): New method.
1940 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1941 (tui_attach_detach_observers): Update.
1942 * tui/tui-data.h (struct tui_source_window): Make constructor not
1943 inline. Add destructor.
1944 (struct tui_source_window) <style_changed>: New method.
1945 <m_observable>: New member.
1947 2019-07-17 Tom Tromey <tom@tromey.com>
1949 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1950 * tui/tui-win.c (tui_resize_all): Fix typo.
1952 2019-07-17 Tom Tromey <tom@tromey.com>
1954 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1955 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1956 (tui_refresh_all): Remove "list" parameter. Use foreach.
1957 * tui/tui-win.c (window_name_completer): Use foreach.
1958 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1959 (update_tab_width): Likewise.
1960 * tui/tui-layout.c (show_layout): Update.
1961 * tui/tui-data.h (class tui_window_iterator): New.
1962 (struct all_tui_windows): New.
1963 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1965 2019-07-17 Tom Tromey <tom@tromey.com>
1967 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1968 parameter. Don't reference globals.
1969 (tui_reg_command): Update.
1971 2019-07-17 Tom Tromey <tom@tromey.com>
1973 * tui/tui-regs.c (tui_show_registers): Simplify.
1975 2019-07-17 Tom Tromey <tom@tromey.com>
1977 * tui/tui-regs.c (tui_show_registers): Update.
1978 (tui_show_register_group): Add win_info parameter.
1980 2019-07-17 Tom Tromey <tom@tromey.com>
1982 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1983 Rename from tui_display_reg_element_at_line.
1984 (tui_data_window::display_registers_from_line): Update.
1985 * tui/tui-data.h (struct tui_data_window)
1986 <display_reg_element_at_line>: New method.
1988 2019-07-17 Tom Tromey <tom@tromey.com>
1990 * tui/tui-regs.h (tui_display_registers_from)
1991 (tui_display_registers_from_line): Don't declare.
1992 * tui/tui-windata.c (tui_data_window::display_all_data)
1993 (tui_data_window::refresh_all)
1994 (tui_data_window::do_scroll_vertical): Update.
1995 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1996 from tui_display_registers_from.
1997 (tui_display_reg_element_at_line): Update.
1998 (tui_data_window::display_registers_from_line): Rename from
1999 tui_display_registers_from_line.
2000 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2001 display_registers_from_line>: New methods.
2003 2019-07-17 Tom Tromey <tom@tromey.com>
2005 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2006 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2007 from tui_erase_data_content.
2008 (tui_data_window::display_all_data)
2009 (tui_data_window::refresh_all)
2010 (tui_data_window::do_scroll_vertical): Update.
2011 * tui/tui-regs.c (tui_show_registers): Update.
2012 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2015 2019-07-17 Tom Tromey <tom@tromey.com>
2017 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2020 (tui_data_window::delete_data_content_windows): Rename from
2021 tui_delete_data_content_windows.
2022 (tui_data_window::display_all_data)
2023 (tui_data_window::do_scroll_vertical): Update.
2024 * tui/tui-data.h (struct tui_data_window)
2025 <delete_data_content_windows>: New method.
2027 2019-07-17 Tom Tromey <tom@tromey.com>
2029 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2030 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2032 2019-07-17 Tom Tromey <tom@tromey.com>
2034 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2035 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2036 from tui_display_all_data.
2038 (tui_data_window::do_make_visible_with_new_height): Update.
2039 * tui/tui-regs.c (tui_show_registers): Update.
2040 * tui/tui-layout.c (tui_set_layout): Update.
2041 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2044 2019-07-17 Tom Tromey <tom@tromey.com>
2046 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2047 * tui/tui-windata.c (tui_display_data_from): Remove.
2048 (tui_data_window::refresh_all): Update.
2050 2019-07-17 Tom Tromey <tom@tromey.com>
2052 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2053 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2054 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2055 tui_display_registers_from_line.
2056 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2057 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2058 "force_display" parameter.
2060 2019-07-17 Tom Tromey <tom@tromey.com>
2062 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2064 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2065 Rename from tui_first_reg_element_no_inline.
2066 (tui_display_reg_element_at_line)
2067 (tui_display_registers_from_line): Update.
2068 * tui/tui-data.h (struct tui_data_window)
2069 <first_reg_element_no_inline>: New method.
2071 2019-07-17 Tom Tromey <tom@tromey.com>
2073 * tui/tui-windata.c (tui_display_data_from)
2074 (tui_data_window::do_scroll_vertical): Update.
2075 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2076 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2077 Rename from tui_line_from_reg_element_no.
2078 (tui_display_registers_from_line): Update.
2079 * tui/tui-data.h (struct tui_data_window)
2080 <line_from_reg_element_no>: New method.
2082 2019-07-17 Tom Tromey <tom@tromey.com>
2084 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2085 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2086 tui_last_regs_line_no.
2087 (tui_display_reg_element_at_line)
2088 (tui_display_registers_from_line): Update.
2089 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2092 2019-07-17 Tom Tromey <tom@tromey.com>
2095 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2096 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2097 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2098 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2099 (tui_update_breakpoint_info): Likewise.
2100 * tui/tui-hooks.c (tui_event_create_breakpoint)
2101 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2104 2019-07-17 Tom Tromey <tom@tromey.com>
2106 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2108 2019-07-17 Tom Tromey <tom@tromey.com>
2110 * tui/tui-winsource.c (tui_update_source_window_as_is)
2111 (tui_update_source_windows_with_addr): Update.
2112 * tui/tui-source.h (tui_set_source_content)
2113 (tui_show_symtab_source): Add "win_info" parameter.
2114 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2116 (tui_show_symtab_source): Likewise.
2118 2019-07-17 Tom Tromey <tom@tromey.com>
2120 * tui/tui-wingeneral.c
2121 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2123 2019-07-17 Tom Tromey <tom@tromey.com>
2125 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2126 (struct tui_cmd_window) <can_scroll>: New method.
2127 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2130 2019-07-17 Tom Tromey <tromey@adacore.com>
2132 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2133 do_field_signed>: Rename. Change type of "value".
2134 * ui-out.c (ui_out::field_signed): Rename from field_int.
2135 Change type of "value".
2136 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2138 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2139 do_field_int. Change type of "value".
2140 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2141 do_field_int. Change type of "value".
2142 * tracepoint.c (trace_status_mi, tfind_1)
2143 (print_one_static_tracepoint_marker): Update.
2144 * thread.c (print_thread_info_1, print_selected_thread_frame):
2146 * stack.c (print_frame, print_frame_info): Update.
2147 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2149 * source.c (print_source_lines_base): Update.
2150 * skip.c (info_skip_command): Update.
2151 * record-btrace.c (btrace_ui_out_decode_error)
2152 (btrace_call_history_src_line): Update.
2153 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2155 * progspace.c (print_program_space): Update.
2156 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2157 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2158 do_field_int. Change type of "value".
2159 * mi/mi-out.c (mi_ui_out::do_table_begin)
2160 (mi_ui_out::do_table_header): Update.
2161 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2163 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2164 (mi_cmd_data_list_changed_registers, output_register)
2165 (mi_cmd_data_read_memory, mi_load_progress)
2166 (mi_cmd_trace_frame_collected): Update.
2167 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2169 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2170 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2171 (mi_cmd_var_list_children, varobj_update_one): Update.
2172 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2173 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2174 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2175 * inferior.c (print_inferior): Update.
2176 * gdb_bfd.c (print_one_bfd): Update.
2177 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2179 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2180 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2181 do_field_int. Change type of "value".
2182 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2183 do_field_int. Change type of "value".
2184 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2185 (print_one_breakpoint_location, print_it_catch_fork)
2186 (print_one_catch_fork, print_it_catch_vfork)
2187 (print_one_catch_vfork, print_it_catch_solib)
2188 (print_it_catch_exec, print_it_ranged_breakpoint)
2189 (print_mention_watchpoint, print_mention_masked_watchpoint)
2190 (bkpt_print_it, update_static_tracepoint): Update.
2191 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2192 * break-catch-syscall.c (print_it_catch_syscall): Update.
2193 * ada-tasks.c (print_ada_task_info): Update.
2194 * ada-lang.c (print_it_exception, print_mention_exception):
2197 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2199 PR breakpoints/24541
2200 * gdbarch.c: Regenerate.
2201 * gdbarch.h: Regenerate.
2202 * gdbarch.sh: Adjust return type and parameter types for
2203 'stap_adjust_register'.
2204 (i386_stap_adjust_register): Adjust signature and return new
2206 * stap-probe.c (stap_parse_register_operand): Adjust use of
2207 'gdbarch_stap_adjust_register'.
2209 2019-07-17 Tom Tromey <tromey@adacore.com>
2211 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2213 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2215 (struct s390_process_info): Add initializers.
2216 (s390_add_process): Use new.
2217 (s390_linux_nat_target::low_forget_process): Use delete.
2218 (s390_linux_nat_target::low_new_fork)
2219 (s390_linux_nat_target::stopped_by_watchpoint)
2220 (s390_linux_nat_target::low_prepare_to_resume)
2221 (s390_linux_nat_target::insert_watchpoint)
2222 (s390_linux_nat_target::insert_hw_breakpoint)
2223 (s390_linux_nat_target::remove_watchpoint)
2224 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2226 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2228 * aarch64-fbsd-nat.c: Include regcache.h.
2229 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2231 (aarch64_fbsd_nat_target::fetch_registers)
2232 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2234 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2236 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2238 * fbsd-nat.c: Include gdbarch.h.
2240 2019-07-15 Tom Tromey <tromey@adacore.com>
2242 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2244 2019-07-15 Tom Tromey <tromey@adacore.com>
2246 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2247 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2248 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2249 * cli-out.c (cli_ui_out::do_field_int): New method.
2250 * ui-out.c (ui_out::field_unsigned): New method.
2251 * symfile.c (generic_load): Use field_unsigned.
2252 (print_transfer_performance): Likewise.
2253 * record-btrace.c (ui_out_field_uint): Remove.
2254 (btrace_call_history_insn_range, btrace_call_history): Use
2256 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2258 * ui-out.h (class ui_out) <field_unsigned>: New method.
2259 <do_field_unsigned>: Likewise.
2261 2019-07-15 Tom Tromey <tromey@adacore.com>
2263 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2264 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2265 * target.c (flash_erase_command): Use field_string.
2266 * infrun.c (print_signal_received_reason): Use field_string.
2267 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2268 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2270 * ada-tasks.c (print_ada_task_info): Use field_string.
2272 2019-07-15 Tom Tromey <tromey@adacore.com>
2274 * target.c (flash_erase_command): Use field_core_addr.
2275 * symfile.c (generic_load): Use field_core_addr.
2276 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2277 Use field_core_addr.
2278 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2281 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2283 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2284 value if its desired type is smaller than a CORE_ADDR and signed.
2286 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2288 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2289 of changes to field names, and use new is_reference field to
2290 decide if a property is a reference or not.
2291 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2293 (struct dwarf2_property_baton): Update header comment, rename
2294 'referenced_type' to 'property_type' and update comments.
2295 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2296 default property type, store in property baton, update to take
2297 accound of renamed field.
2298 (read_func_scope): Update call to attr_to_dynamic_prop.
2299 (read_array_type): Likewise.
2300 (dwarf2_per_cu_addr_sized_int_type): New function.
2301 (read_subrange_index_type): Move type finding code to
2302 dwarf2_per_cu_addr_sized_int_type.
2303 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2304 (dwarf2_per_cu_addr_type): New function.
2305 (set_die_type): Update calls to attr_to_dynamic_prop.
2307 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2309 * dwarf2read.c (read_subrange_index_type): New function.
2310 (read_subrange_type): Move code into new function and call it.
2311 * gdbtypes.c (create_range_type): Add some asserts.
2313 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2315 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2316 update return statements.
2317 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2318 declaration, and update comment to match.
2319 * gdbtypes.c (resolve_dynamic_array): Update call to
2320 dwarf2_evaluate_property to match new return type.
2322 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2324 * valarith.c (value_subscripted_rvalue): Change lowerbound
2325 parameter type from int to LONGEST.
2326 * value.h (value_subscripted_rvalue): Likewise in declaration.
2328 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2330 * cli/cli-utils.c (info_print_command_completer): New function.
2331 * cli/cli-utils.h: Add 'completer.h' include, and forward
2332 declaration for 'struct cmd_list_element'.
2333 (info_print_command_completer): Declare.
2334 * stack.c (_initialize_stack): Add completer for 'info locals' and
2336 * symtab.c (_initialize_symtab): Add completer for 'info
2337 variables' and 'info functions'.
2338 * NEWS: Mention completion for additional info commands.
2340 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2342 * cli/cli-utils.c (extract_info_print_args): Delete.
2343 (extract_arg_maybe_quoted): Delete.
2344 (info_print_options_defs): New variable.
2345 (make_info_print_options_def_group): New function.
2346 (extract_info_print_options): Define new function.
2347 * cli/cli-utils.h (extract_info_print_args): Delete.
2348 (struct info_print_options): New structure.
2349 (extract_info_print_options): Declare new function.
2350 * stack.c (info_locals_command): Update to use new
2351 extract_info_print_options, also add a header comment.
2352 (info_args_command): Likewise.
2353 * symtab.c (info_variables_command): Likewise.
2354 (info_functions_command): Likewise.
2356 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2358 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2359 to extract string arguments.
2360 * common/common-utils.c (extract_string_maybe_quoted): New function.
2361 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2363 2019-07-11 Tom Tromey <tromey@adacore.com>
2365 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2366 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2367 * top.h (gdbinit): Don't declare.
2368 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2370 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2371 * top.c (gdb_init): Don't call init_cli_cmds.
2373 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2375 2019-07-11 Tom Tromey <tromey@adacore.com>
2377 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2378 after it has been moved.
2380 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2382 * valops.c (value_must_coerce_to_target): Change return type to
2384 * value.h (value_must_coerce_to_target): Likewise.
2386 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
2388 * breakpoint.c (is_hardware_watchpoint): Remove
2389 forward-declaration.
2390 (is_masked_watchpoint): Change return type to bool.
2391 (is_tracepoint): Likewise.
2392 (is_breakpoint): Likewise.
2393 (is_hardware_watchpoint): Likewise.
2394 (is_watchpoint): Likewise.
2395 (is_no_memory_software_watchpoint): Likewise.
2396 (is_catchpoint): Likewise.
2397 (breakpoint_1): Make FILTER parameter's return type bool.
2398 is_masked_watchpoint): Change return type to bool.
2399 (save_breakpoints): Make FILTER parameter's return type bool.
2400 * breakpoint.h (is_breakpoint): Change return type to bool.
2401 (is_watchpoint): Likewise.
2402 (is_catchpoint): Likewise.
2403 (is_tracepoint): Likewise.
2405 2019-07-10 Tom Tromey <tom@tromey.com>
2407 * defs.h: Don't include gdbarch.h.
2408 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2409 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2410 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2411 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2412 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2413 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2414 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2415 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2416 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2417 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2418 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2419 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2420 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2421 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2422 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2423 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2424 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2425 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2426 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2427 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2428 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2429 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2430 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2431 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2432 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2433 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2434 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2436 2019-07-10 Tom Tromey <tromey@adacore.com>
2438 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2439 * breakpoint.c (init_ada_exception_breakpoint): Register as
2441 (print_one_breakpoint_location, print_one_breakpoint): Use
2442 is_ada_exception_catchpoint.
2443 * ada-lang.c (class ada_catchpoint_location): Pass
2444 bp_loc_software_breakpoint to bp_location constructor.
2445 (is_ada_exception_catchpoint): New function.
2447 2019-07-10 Tom Tromey <tromey@adacore.com>
2449 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2451 (struct arm_exidx_entry): New method operator<.
2452 (struct arm_exidx_data) <section_maps>: Change type.
2453 (arm_exidx_data_free): Remove.
2454 (arm_exidx_data_key): Change type. Move lower.
2455 (arm_exidx_new_objfile): Update.
2456 (arm_compare_exidx_entries): Remove.
2457 (arm_find_exidx_entry, _initialize_arm_tdep)
2459 2019-07-10 Tom Tromey <tromey@adacore.com>
2461 * solib-spu.c (ocl_program_data_key): Change type.
2462 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2465 2019-07-10 Tom Tromey <tromey@adacore.com>
2467 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2468 (struct solib_aix_inferior_data) <library_list>: Change type.
2469 (solib_aix_inferior_data_handle): Change type.
2470 (get_solib_aix_inferior_data): Update.
2471 (solib_aix_free_library_list): Remove.
2472 (library_list_start_library): Update.
2473 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2475 (solib_aix_get_library_list)
2476 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2477 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2479 2019-07-10 Tom Tromey <tromey@adacore.com>
2481 * solib-dsbt.c (struct dsbt_info): Add initializers.
2482 (solib_dsbt_pspace_data): Change type.
2483 (dsbt_pspace_data_cleanup): Remove.
2484 (get_dsbt_info, _initialize_dsbt_solib): Update.
2486 2019-07-10 Tom Tromey <tromey@adacore.com>
2488 * spu-tdep.c (spu_overlay_data): Change type.
2489 (spu_get_overlay_table, spu_overlay_new_objfile)
2490 (_initialize_spu_tdep): Update.
2492 2019-07-10 Tom Tromey <tromey@adacore.com>
2494 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2496 (dbx_objfile_data_key): Change type and declare later.
2497 (DBX_SYMFILE_INFO): Rewrite.
2498 * dbxread.c (dbx_objfile_data_key): Change type.
2499 (dbx_symfile_init): Update.
2500 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2501 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2502 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2504 2019-07-10 Tom Tromey <tromey@adacore.com>
2506 * jit.c (jit_program_space_key): Change type. Move lower.
2507 (get_jit_program_space_data): Update.
2508 (jit_program_space_data_cleanup): Remove.
2509 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2511 (struct jit_program_space_data): Add initializers.
2513 2019-07-10 Tom Tromey <tromey@adacore.com>
2515 * solib-darwin.c (struct darwin_info): Add initializers.
2516 (solib_darwin_pspace_data): Change type.
2517 (darwin_pspace_data_cleanup): Remove.
2518 (get_darwin_info, _initialize_darwin_solib): Update.
2520 2019-07-10 Tom Tromey <tromey@adacore.com>
2522 * remote-sim.c (struct sim_inferior_data): Add initializers,
2523 constructor, and destructor.
2524 (sim_inferior_data_key): Change type. Move lower.
2525 (check_for_duplicate_sim_descriptor): Update.
2526 (get_sim_inferior_data): Use new. Update.
2527 (~sim_inferior_data_cleanup): Rename from
2528 sim_inferior_data_cleanup. Simplify.
2529 (gdbsim_close_inferior, simulator_command)
2530 (sim_command_completer, _initialize_remote_sim): Update.
2531 (next_pid, INITIAL_PID): Move earlier.
2533 2019-07-10 Tom Tromey <tromey@adacore.com>
2535 * python/python-internal.h (create_thread_object): Return
2537 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2538 * python/py-inferior.c (struct threadlist_entry): Add
2540 <thread_obj>: Now a gdbpy_ref.
2541 (thread_to_thread_object): Update.
2542 (add_thread_object): Use new.
2543 (delete_thread_object): Use delete.
2544 (infpy_threads): Update.
2545 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2548 2019-07-10 Tom Tromey <tromey@adacore.com>
2550 * valops.c (value_cast): Specialize error message for Ada.
2552 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2554 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2556 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2558 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2559 bpstat_should_step): Return bool, adjust comments.
2560 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2561 bpstat_should_step): Likewise.
2563 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2565 * features/Makefile: Use feature target descriptions for Arm.
2566 * features/arm/arm-core.c: Generate new file.
2567 * features/arm/arm-fpa.c: Likewise.
2568 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2569 * features/arm/arm-m-profile.c: Likewise.
2570 * features/arm/arm-vfpv2.c: Likewise.
2571 * features/arm/arm-vfpv3.c: Likewise.
2572 * features/arm/xscale-iwmmxt.c: Likewise.
2573 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2575 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2577 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2580 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2582 * features/aarch64-pauth.c: Regenerate.
2584 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2586 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2588 (bpstat_what): Use false instead of 0.
2590 2019-07-09 Pedro Alves <palves@redhat.com>
2592 * break-catch-throw.c (is_exception_catchpoint): New.
2593 * breakpoint.c (print_one_breakpoint_location): New parameter
2594 'raw_loc'. Handle it. Use
2595 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2596 looking at the breakpoint's type.
2597 (print_one_breakpoint): If handling "maint info breakpoints", also
2598 print locations of exception catchpoints.
2599 * breakpoint.h (is_exception_catchpoint): Declare.
2601 2019-07-09 Pedro Alves <palves@redhat.com>
2603 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2605 (allocate_location_exception_catchpoint): New.
2606 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2607 (initialize_throw_catchpoint_ops): Install
2608 allocate_location_exception_catchpoint as allocate_location
2610 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2611 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2613 (breakpoint_address_is_meaningful): Delete.
2614 (bl_address_is_meaningful): New.
2615 (breakpoint_locations_match): Adjust comment.
2616 (bp_location_from_bp_type): New, factored out of...
2617 (bp_location::bp_location(breakpoint *)): ... this.
2618 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2620 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2621 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2622 breakpoint_address_is_meaningful.
2623 (bp_locations_compare): Adjust comment.
2624 (update_global_location_list): Use bl_address_is_meaningful
2625 instead of breakpoint_address_is_meaningful.
2626 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2628 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2629 * python/py-breakpoint.c (bppy_get_location): No longer check
2630 whether location is null.
2632 2019-07-09 Pedro Alves <palves@redhat.com>
2635 * breakpoint.c (print_one_breakpoint_location): Remove
2636 single-location assert.
2638 2019-07-09 Tom Tromey <tom@tromey.com>
2640 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2641 * configure: Rebuild.
2642 * configure.ac: Change common to gdbsupport.
2643 * gdbsupport: Rename from common.
2644 * acinclude.m4: Change common to gdbsupport.
2645 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2646 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2648 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2649 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2650 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2651 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2652 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2653 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2654 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2655 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2656 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2657 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2658 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2659 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2660 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2661 coff-pe-read.c, command.h, compile/compile-c-support.c,
2662 compile/compile-c.h, compile/compile-cplus-symbols.c,
2663 compile/compile-cplus-types.c, compile/compile-cplus.h,
2664 compile/compile-loc2c.c, compile/compile.c, completer.c,
2665 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2666 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2667 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2668 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2669 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2670 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2671 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2672 features/aarch64-core.c, features/aarch64-fpu.c,
2673 features/aarch64-pauth.c, features/aarch64-sve.c,
2674 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2675 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2676 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2677 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2678 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2679 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2680 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2681 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2682 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2683 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2684 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2685 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2686 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2687 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2688 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2689 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2690 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2691 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2692 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2693 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2694 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2695 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2696 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2697 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2698 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2699 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2700 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2701 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2702 minsyms.c, mips-linux-tdep.c, namespace.h,
2703 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2704 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2705 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2706 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2707 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2708 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2709 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2710 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2711 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2712 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2713 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2714 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2715 procfs.c, producer.c, progspace.h, psymtab.h,
2716 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2717 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2718 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2719 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2720 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2721 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2722 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2723 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2724 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2725 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2726 target-memory.c, target.c, target.h, target/waitstatus.c,
2727 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2728 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2729 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2730 unittests/array-view-selftests.c,
2731 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2732 unittests/common-utils-selftests.c,
2733 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2734 unittests/format_pieces-selftests.c,
2735 unittests/function-view-selftests.c,
2736 unittests/lookup_name_info-selftests.c,
2737 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2738 unittests/mkdir-recursive-selftests.c,
2739 unittests/observable-selftests.c,
2740 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2741 unittests/parse-connection-spec-selftests.c,
2742 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2743 unittests/scoped_fd-selftests.c,
2744 unittests/scoped_mmap-selftests.c,
2745 unittests/scoped_restore-selftests.c,
2746 unittests/string_view-selftests.c, unittests/style-selftests.c,
2747 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2748 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2749 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2750 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2751 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2752 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2754 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2756 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2758 (decode_digits_ordinary): Set explicit_line field in sal.
2759 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2760 symtab_and_line that was set on an explicit line number in
2761 assembler code. Do always update the recorded symtab and line if
2762 we do skip the prologue.
2764 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2766 * breakpoint.c (set_breakpoint_location_function): Remove
2767 explicit_loc parameter.
2768 (momentary_breakpoint_from_master): Update call to
2769 set_breakpoint_location_function.
2770 (add_location_to_breakpoint): Likewise.
2772 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2774 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2775 required features based on default bfd type when no specific bfd
2778 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2780 * NEWS: Mention that GDB printf and eval commands can now print
2781 C-style and Ada-style convenience var strings without
2782 calling the inferior.
2783 * printcmd.c (printf_c_string): Locally print GDB internal var
2784 instead of transiting via the inferior.
2785 (printf_wide_c_string): Likewise.
2787 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2789 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2791 2019-07-04 Tom Tromey <tom@tromey.com>
2794 * tui/tui-winsource.c (tui_clear_source_content): Update.
2795 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2796 (tui_update_breakpoint_info): Update.
2797 (tui_set_exec_info_content): Update.
2798 * tui/tui-source.c (tui_set_source_content_nil): Update.
2799 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2801 * tui/tui-data.h (enum tui_bp_flag): New.
2802 (tui_bp_flags): New enum flags type.
2803 (struct tui_source_element) <break_mode>: Change type. Rename
2805 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2806 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2808 * tui/tui-winsource.h: Fix comment.
2810 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2812 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2813 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2814 (store_fpregs_to_thread)
2815 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2816 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2817 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2818 (IWMMXT_REGS_SIZE): Add define.
2819 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2820 (fetch_vfp_regs, store_vfp_regs)
2821 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2822 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2824 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2826 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2828 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2829 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2830 (ARM_INT_REGISTER_SIZE): ...to this.
2831 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2832 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2833 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2834 (arm_linux_collect_gregset, supply_nwfpe_register)
2835 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2837 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2838 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2839 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2840 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2841 (arm_return_in_memory, arm_store_return_value)
2842 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2843 (arm_record_ld_st_multiple): Likewise.
2844 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2845 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2847 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2849 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2850 AARCH64_DISPLACED_MODIFIED_INSNS.
2851 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2852 (aarch64_displaced_step_copy_insn): Likewise.
2853 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2854 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2855 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2856 ARM_DISPLACED_MODIFIED_INSNS.
2857 * arm-tdep.c (arm_gdbarch_init): Likewise.
2858 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2859 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2860 (struct arm_displaced_step_closure): Use
2861 ARM_DISPLACED_MODIFIED_INSNS.
2863 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2865 * features/Makefile: Remove unused xml files.
2866 * features/aarch64.xml: Remove.
2867 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2868 * features/i386/amd64-avx-avx512.xml: Remove.
2869 * features/i386/amd64-avx-linux.xml: Remove.
2870 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2871 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2872 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2873 * features/i386/amd64-avx-mpx.xml: Remove.
2874 * features/i386/amd64-avx.xml: Remove.
2875 * features/i386/amd64-linux.xml: Remove.
2876 * features/i386/amd64-mpx-linux.xml: Remove.
2877 * features/i386/amd64-mpx.xml: Remove.
2878 * features/i386/amd64.xml: Remove.
2879 * features/i386/i386-avx-avx512-linux.xml: Remove.
2880 * features/i386/i386-avx-avx512.xml: Remove.
2881 * features/i386/i386-avx-linux.xml: Remove.
2882 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2883 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2884 * features/i386/i386-avx-mpx-linux.xml: Remove.
2885 * features/i386/i386-avx-mpx.xml: Remove.
2886 * features/i386/i386-avx.xml: Remove.
2887 * features/i386/i386-linux.xml: Remove.
2888 * features/i386/i386-mmx-linux.xml: Remove.
2889 * features/i386/i386-mmx.xml: Remove.
2890 * features/i386/i386-mpx-linux.xml: Remove.
2891 * features/i386/i386-mpx.xml: Remove.
2892 * features/i386/i386.xml: Remove.
2893 * features/i386/x32-avx-avx512-linux.xml: Remove.
2894 * features/i386/x32-avx-linux.xml: Remove.
2895 * features/i386/x32-linux.xml: Remove.
2897 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2899 * regformats/aarch64.dat: Remove.
2900 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2901 * regformats/i386/amd64-avx-linux.dat: Remove.
2902 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2903 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2904 * regformats/i386/amd64-linux.dat: Remove.
2905 * regformats/i386/amd64-mpx-linux.dat: Remove.
2906 * regformats/i386/amd64.dat: Remove.
2907 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2908 * regformats/i386/i386-avx-linux.dat: Remove.
2909 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2910 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2911 * regformats/i386/i386-linux.dat: Remove.
2912 * regformats/i386/i386-mmx-linux.dat: Remove.
2913 * regformats/i386/i386-mpx-linux.dat: Remove.
2914 * regformats/i386/i386.dat: Remove.
2915 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2916 * regformats/i386/x32-avx-linux.dat: Remove.
2917 * regformats/i386/x32-linux.dat: Remove.
2919 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2921 * aarch64-tdep.c: Remove xml self tests.
2922 * amd64-linux-tdep.c: Likewise.
2923 * amd64-tdep.c: Likewise.
2924 * i386-linux-tdep.c: Likewise.
2925 * i386-tdep.c: Likewise.
2927 2019-07-03 Pedro Alves <palves@redhat.com>
2930 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2931 (pipe_cmd_option_defs): New.
2932 (make_pipe_cmd_options_def_group): New.
2933 (pipe_command): Use gdb::option::process_options.
2934 (pipe_command_completer): New function.
2935 (_initialize_cli_cmds): Install completer for "pipe" command.
2937 2019-07-03 Pedro Alves <palves@redhat.com>
2939 * cli/cli-option.c (union option_value) <string>: New field.
2940 (struct option_def_and_value): Add ctor, move ctor, dtor and
2941 use DISABLE_COPY_AND_ASSIGN.
2942 (option_def_and_value::clear_value): New.
2943 (parse_option, save_option_value_in_ctx, get_val_type_str)
2944 (add_setshow_cmds_for_options): Handle var_string.
2945 * cli-option.h (union option_def::var_address) <string>: New
2947 (struct string_option_def): New.
2948 * maint-test-options.c (struct test_options_opts): Add default
2949 ctor and use DISABLE_COPY_AND_ASSIGN.
2950 <string_opt>: New field.
2951 (test_options_opts::~test_options_opts): New.
2952 (test_options_opts::dump): Also dump "-string".
2953 (test_options_option_defs): Install "string.
2955 2019-07-03 Pedro Alves <palves@redhat.com>
2957 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2958 option_value with a null enumeration.
2959 (complete_options): Save the option values in the context.
2960 (save_option_value_in_ctx): New, factored out from ...
2961 (process_options): ... here.
2962 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2964 * maint-test-options.c (test_options_opts::dump): New, factored
2966 (maintenance_test_options_command_mode): ... here.
2967 (maintenance_test_options_command_completion_result): Delete.
2968 (maintenance_test_options_command_completion_text): Update
2970 (maintenance_show_test_options_completion_result): Change
2971 prototype. Just print
2972 maintenance_test_options_command_completion_text.
2973 (save_completion_result): New.
2974 (maintenance_test_options_completer_mode): Pass options context to
2975 complete_options, and then save a dump.
2976 (_initialize_maint_test_options): Use add_cmd to install "maint
2977 show test-options-completion-result".
2979 2019-07-03 Pedro Alves <palves@redhat.com>
2981 * NEWS (New commands): Mention "with" and "maint with".
2982 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2983 (with_command, with_command_completer): New.
2984 (pipe_command): Adjust to new repeat_previous
2986 (_initialize_cli_cmds): Install the "with" command and its "w"
2988 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2990 * cli/cli-setshow.c (parse_cli_var_uinteger)
2991 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2992 argument strings for all var_types.
2993 (get_setshow_command_value_string): New, factored out from ...
2994 (do_show_command): ... this.
2995 * cli/cli-setshow.h: Include <string>.
2996 (get_setshow_command_value_string): Declare.
2997 * command.h (repeat_previous): Now returns const char *. Adjust
2999 * maint.c: Include "cli/cli-cmds.h".
3000 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3001 (_initialize_maint_cmds): Register the "maintenance with" command.
3002 * top.c (repeat_previous): Move bits from pipe_command here:
3003 Return the saved command line, if any; error out if there's no
3004 command to relaunch.
3006 2019-07-03 Pedro Alves <palves@redhat.com>
3008 * NEWS (New commands): Mention "maint set/show test-settings"
3009 instead of "maint test-settings".
3010 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3011 (maintenance_test_settings_set_list): Rename to ...
3012 (maintenance_set_test_settings_list): ... this.
3013 (maintenance_test_settings_show_list): Rename to ...
3014 (maintenance_show_test_settings_list): ... this.
3015 (maintenance_test_settings_cmd): Delete.
3016 (maintenance_test_settings_set_cmd): ...
3017 (maintenance_set_test_settings_cmd): ... this.
3018 (maintenance_test_settings_show_cmd): ...
3019 (maintenance_show_test_settings_cmd): ... this.
3020 (maintenance_test_settings_show_value_cmd):
3021 (maintenance_show_test_settings_value_cmd): ... this.
3022 (_initialize_maint_test_settings): No longer install the "maint
3023 test-settings" prefix command. Rename "maint test-settings set"
3024 to "maint set test-settings", and "maint test-settings show" to
3025 "maint show test-settings". Adjust all subcommands.
3027 2019-07-03 Pedro Alves <palves@redhat.com>
3029 * maint-test-settings.c: Fix file's intro comment. Replace all
3030 references to "test-options" with references to "test-settings",
3033 2019-07-03 Pedro Alves <palves@redhat.com>
3035 * maint-test-settings.c (maintenance_test_settings_xxx)
3036 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3038 (maintenance_test_settings_enums): Use them.
3039 (maintenance_test_settings_enum): Default to
3040 maintenance_test_settings_xxx.
3041 (_initialize_maint_test_settings): Initialize
3042 MAINTENANCE_TEST_SETTINGS_FILENAME.
3044 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3046 * breakpoint.h (remove_breakpoints_inf): Change return type to
3047 void, move function documentation here.
3048 * breakpoint.c (remove_breakpoints_inf): Change return type to
3049 void, move function documentation to header.
3051 2019-07-02 Pedro Alves <palves@redhat.com>
3053 * NEWS (Completion improvements): Mention "info threads".
3054 * thread.c (struct info_threads_opts, info_threads_option_defs)
3055 (make_info_threads_options_def_group): New.
3056 (info_threads_command): Use gdb::option::process_options.
3057 (info_threads_command_completer): New.
3058 (_initialize_thread): Use gdb::option::build_help to build the
3059 help text for "info threads".
3061 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3063 * defs.h (generic_load): Move from here...
3064 * symfile.h (generic_load): ... to here. Rename name parameter
3066 * symfile.c (generic_load): Add comment.
3068 2019-07-01 Tom Tromey <tromey@adacore.com>
3071 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3072 declaration of without_params. Fix formatting.
3074 2019-07-01 Tom Tromey <tromey@adacore.com>
3076 * ada-exp.y (find_primitive_type): Update.
3077 * ada-lang.h (ada_lookup_symbol): Update.
3078 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3080 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3082 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3084 PR breakpoints/24541
3085 * gdbarch.c: Regenerate.
3086 * gdbarch.h: Regenerate.
3087 * gdbarch.sh: Add 'stap_adjust_register'.
3088 * i386-tdep.c: Include '<unordered_set>'.
3089 (i386_stap_adjust_register): New function.
3090 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3091 * stap-probe.c (stap_parse_register_operand): Call
3092 'gdbarch_stap_adjust_register'.
3094 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3097 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3098 * python/python.c (do_start_initialization): Use 'xmalloc'
3099 instead of 'PyMem_Malloc'.
3101 2019-06-28 Tom Tromey <tromey@adacore.com>
3103 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3106 2019-06-27 Tom Tromey <tromey@adacore.com>
3108 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3110 (arm_find_mapping_symbol, arm_record_special_symbol)
3111 (_initialize_arm_tdep): Update.
3112 (arm_objfile_data_free): Remove.
3114 2019-06-27 Tom Tromey <tromey@adacore.com>
3116 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3117 to cp_print_static_field.
3119 2019-06-26 Tom Tromey <tromey@adacore.com>
3121 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3122 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3125 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3127 * features/aarch64-core.c (create_feature_aarch64_core):
3129 * features/aarch64-core.xml: Add cpsr flags.
3131 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3133 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3134 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3136 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3138 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3140 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3142 (arm_record_special_symbol): Don't insert new symbol in sorted
3143 position, push it at the end.
3145 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3147 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3148 (arm_mapping_symbol_s): Remove.
3149 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3150 (arm_mapping_symbol_vec): New typedef.
3151 (struct arm_per_objfile): Add constructor.
3152 <section_maps>: Change type to
3153 std::unique_ptr<arm_mapping_symbol_vec[]>.
3154 (arm_compare_mapping_symbols): Remove.
3155 (arm_find_mapping_symbol): Adjust to section_maps type change.
3156 (arm_objfile_data_free): Call delete on arm_per_objfile.
3157 (arm_record_special_symbol): Adjust to section_maps type change.
3158 Allocate arm_per_objfile with new.
3160 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3162 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3163 with the command prefix.
3165 2019-06-25 Tom Tromey <tom@tromey.com>
3167 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3168 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3170 2019-06-25 Tom Tromey <tom@tromey.com>
3172 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3174 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3177 2019-06-25 Tom Tromey <tom@tromey.com>
3179 * tui/tui-winsource.c
3180 (tui_source_window_base::set_is_exec_point_at): Add check against
3183 2019-06-25 Tom Tromey <tom@tromey.com>
3185 * tui/tui-source.c (tui_set_source_content): Don't check before
3187 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3189 2019-06-25 Tom Tromey <tom@tromey.com>
3191 * tui/tui-winsource.h (tui_update_source_window_as_is)
3192 (tui_alloc_source_buffer, tui_line_is_displayed)
3193 (tui_addr_is_displayed): Change type of win_info.
3194 * tui/tui-winsource.c (tui_update_source_window_as_is)
3195 (tui_clear_source_content, tui_show_source_line)
3196 (tui_show_source_content, tui_source_window_base::refill)
3197 (tui_source_window_base::set_is_exec_point_at)
3198 (tui_source_window_base::set_is_exec_point_at)
3199 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3200 (tui_alloc_source_buffer, tui_line_is_displayed)
3201 (tui_addr_is_displayed): Change type of win_info. Update.
3202 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3203 (tui_source_window_base::do_make_visible_with_new_height):
3205 * tui/tui-source.c (tui_set_source_content)
3206 (tui_set_source_content_nil)
3207 (tui_source_window::do_scroll_vertical): Update.
3208 * tui/tui-layout.c (show_layout): Update.
3209 * tui/tui-disasm.c (tui_set_disassem_content)
3210 (tui_disasm_window::do_scroll_vertical): Update.
3211 * tui/tui-data.h (tui_win_content): Remove.
3212 (struct tui_gen_win_info) <content, content_size>: Remove.
3213 (struct tui_source_element): Add initializers and destructor.
3214 (union tui_which_element, struct tui_win_element): Remove.
3215 (struct tui_source_window_base) <content>: New field.
3216 (struct tui_data_window): Remove destructor.
3217 (tui_alloc_content, tui_free_win_content)
3218 (tui_free_all_source_wins_content): Don't declare.
3219 * tui/tui-data.c (tui_initialize_static_data): Update.
3220 (init_content_element, tui_alloc_content): Remove.
3221 (~tui_gen_win_info): Update.
3222 (~tui_data_window, tui_free_all_source_wins_content)
3223 (tui_free_win_content, free_content, free_content_elements):
3226 2019-06-25 Tom Tromey <tom@tromey.com>
3228 * tui/tui-winsource.h (tui_clear_source_content)
3229 (tui_erase_source_content, tui_show_source_content): Change type
3231 * tui/tui-winsource.c (tui_clear_source_content)
3232 (tui_erase_source_content, tui_show_source_content): Change type
3234 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3235 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3237 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3239 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3241 2019-06-25 Tom Tromey <tom@tromey.com>
3243 * tui/tui-winsource.c (tui_clear_source_content)
3244 (tui_source_window_base::set_is_exec_point_at): Update.
3245 * tui/tui-source.c (tui_set_source_content_nil): Update.
3246 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3248 * tui/tui-data.c (init_content_element): Update.
3250 2019-06-25 Tom Tromey <tom@tromey.com>
3252 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3253 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3254 * tui/tui-layout.c (init_and_make_win): Update.
3255 * tui/tui.h (enum tui_win_type): Update.
3256 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3257 tui_win_is_auxillary.
3258 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3259 tui_win_is_auxillary.
3261 2019-06-25 Tom Tromey <tom@tromey.com>
3263 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3264 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3265 (tui_delete_data_content_windows, tui_display_all_data)
3266 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3268 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3269 * tui/tui-regs.c (tui_last_regs_line_no)
3270 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3271 (tui_show_registers): Update.
3272 (tui_show_register_group): Return void. Update.
3273 (tui_display_registers_from, tui_display_reg_element_at_line)
3274 (tui_display_registers_from_line, tui_check_register_values):
3276 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3278 (struct tui_data_window) <regs_content>: Now a std::vector.
3279 <regs_content_count>: Remove.
3280 (tui_add_content_elements, tui_free_data_content): Don't declare.
3281 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3282 (init_content_element): Remove DATA_WIN case. Add assert.
3283 (tui_add_content_elements): Remove.
3284 (tui_data_window): Update.
3285 (tui_free_data_content): Remove.
3286 (free_content_elements): Remove DATA_WIN case.
3288 2019-06-25 Tom Tromey <tom@tromey.com>
3290 * tui/tui-data.c (tui_data_item_window): Update.
3291 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3292 * tui/tui-windata.c (tui_display_all_data)
3293 (tui_display_data_from_line): Update.
3294 (tui_check_data_values): Remove.
3295 * tui/tui-regs.c (tui_show_register_group)
3296 (tui_display_reg_element_at_line): Update.
3297 * tui/tui-hooks.c (tui_register_changed)
3298 (tui_refresh_frame_and_register_information): Call
3299 tui_check_register_values.
3300 * tui/tui-data.h (struct tui_data_window) <data_content,
3301 data_content_count, data_type>: Remove.
3302 (enum tui_data_type): Remove.
3304 * tui/tui-data.c (tui_data_window::clear_detail)
3305 (~tui_data_window): Update.
3307 2019-06-25 Tom Tromey <tom@tromey.com>
3309 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3311 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3312 Rename from tui_first_data_item_displayed. Update.
3313 (tui_data_window::refresh_all)
3314 (tui_data_window::do_scroll_vertical): Update.
3315 * tui/tui-data.h (struct tui_data_window)
3316 <first_data_item_displayed>: Declare new method.
3318 2019-06-25 Tom Tromey <tom@tromey.com>
3320 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3321 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3323 (tui_initialize_static_data): ...here.
3325 2019-06-25 Tom Tromey <tom@tromey.com>
3327 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3328 (tui_display_registers_from, tui_check_register_values): Update.
3329 (tui_display_register): Remove win_info parameter; update.
3330 (tui_get_register): Change type of parameters.
3331 * tui/tui-data.h (struct tui_data_element): Remove.
3332 (union tui_which_element) <data>: Remove.
3333 <data_window>: Change type.
3334 (struct tui_data_item_window): New.
3335 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3337 (~tui_data_item_window): New destructor.
3338 (free_content_elements): Remove DATA_ITEM_WIN case.
3340 2019-06-25 Tom Tromey <tom@tromey.com>
3342 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3345 2019-06-25 Tom Tromey <tom@tromey.com>
3347 * tui/tui-data.h (struct tui_command_element): Remove.
3348 (union tui_which_element) <command>: Remove.
3349 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3351 (free_content_elements): Remove CMD_WIN case.
3353 2019-06-25 Tom Tromey <tom@tromey.com>
3355 * tui/tui-layout.c (tui_set_layout): Update.
3356 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3357 * tui/tui-data.c (layout_def): Update.
3359 2019-06-25 Tom Tromey <tom@tromey.com>
3361 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3362 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3363 (tui_source_window_base::set_new_height): Update.
3364 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3366 (tui_set_locator_fullname, tui_set_locator_info)
3367 (tui_show_frame_info): Update.
3368 * tui/tui-source.c (tui_set_source_content)
3369 (tui_source_is_displayed): Update.
3370 * tui/tui-layout.c (show_source_disasm_command, show_data)
3371 (show_source_or_disasm_and_command): Update.
3372 * tui/tui-disasm.c (tui_set_disassem_content)
3373 (tui_get_begin_asm_address): Update.
3374 * tui/tui-data.h (struct tui_locator_element): Remove.
3375 (union tui_which_element) <locator>: Remove.
3376 (struct tui_locator_window): New.
3377 (tui_locator_win_info_ptr): Change return type.
3378 * tui/tui-data.c (_locator): Change type.
3379 (tui_locator_win_info_ptr): Change return type.
3380 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3381 (tui_alloc_content): Add assert.
3383 2019-06-25 Tom Tromey <tom@tromey.com>
3385 * tui/tui-winsource.c
3386 (tui_exec_info_window::maybe_allocate_content): New method.
3387 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3388 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3389 (make_source_or_disasm_window): Add cast.
3390 * tui/tui-data.h (union tui_which_element) <simple_string>:
3392 (struct tui_source_info): New.
3393 (struct tui_source_window_base) <execution_info>: Change type.
3394 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3395 case, and add assert.
3396 (tui_alloc_content): Add assert.
3398 2019-06-25 Tom Tromey <tom@tromey.com>
3400 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3401 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3402 * tui/tui-data.c (tui_alloc_win_info): Remove.
3404 2019-06-25 Tom Tromey <tom@tromey.com>
3406 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3407 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3410 2019-06-25 Tom Tromey <tom@tromey.com>
3412 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3413 make_visible_with_new_height method.
3414 (tui_win_info::make_visible_with_new_height): New method.
3415 (tui_source_window_base::do_make_visible_with_new_height)
3416 (tui_data_window::do_make_visible_with_new_height)
3417 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3418 (make_visible_with_new_height): Remove.
3419 (tui_resize_all, tui_adjust_win_heights): Use
3420 make_visible_with_new_height method.
3421 * tui/tui-data.h (struct tui_win_info)
3422 <do_make_visible_with_new_height, make_visible_with_new_height>:
3424 (struct tui_source_window_base, struct tui_data_window)
3425 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3428 2019-06-25 Tom Tromey <tom@tromey.com>
3430 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3432 (update_tab_width): Call update_tab_width method.
3433 * tui/tui-data.h (struct tui_win_info)
3434 (struct tui_source_window_base) <update_tab_width>: New methods.
3436 2019-06-25 Tom Tromey <tom@tromey.com>
3438 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3440 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3442 (tui_gen_win_info::make_visible): Update.
3443 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3445 * tui/tui-data.h (enum tui_box): New enum.
3446 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3448 2019-06-25 Tom Tromey <tom@tromey.com>
3450 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3451 init_and_make_win for EXEC_INFO_WIN.
3452 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3454 (struct tui_win_info) <~tui_win_info>: Inline.
3455 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3457 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3458 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3460 (tui_initialize_static_data): Update.
3461 (~tui_gen_win_info): Handle more cleanup here.
3462 (~tui_source_window_base): Delete "execution_info".
3463 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3465 2019-06-25 Tom Tromey <tom@tromey.com>
3467 * tui/tui-layout.c (make_command_window): Don't set
3469 (show_source_disasm_command): Call the reset method.
3470 (show_data): Don't set can_highlight. Call the reset method.
3471 (tui_gen_win_info::reset): Rename from init_gen_win_info
3472 (init_and_make_win): Simplify. Return tui_gen_win_info.
3473 (show_source_or_disasm_and_command): Call the reset method.
3474 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3475 (struct tui_cmd_window): Set can_highlight.
3477 2019-06-25 Tom Tromey <tom@tromey.com>
3479 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3481 (tui_make_visible, tui_make_invisible): Rewrite.
3482 (tui_win_info::make_visible): Remove.
3483 (tui_source_window_base::make_visible): Update.
3484 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3485 method. Moved from...
3486 (struct tui_win_info) <make_visible>: ...here.
3488 2019-06-25 Tom Tromey <tom@tromey.com>
3490 * tui/tui-winsource.c
3491 (tui_source_window_base::do_scroll_horizontal): Remove direction
3493 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3494 direction parameter.
3495 * tui/tui-win.c (tui_win_info::forward_scroll)
3496 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3497 (tui_win_info::right_scroll): Update.
3498 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3499 direction parameter.
3500 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3501 direction parameter.
3502 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3503 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3504 Remove direction parameter.
3505 (struct tui_source_window_base, struct tui_source_window)
3506 (struct tui_disasm_window, struct tui_data_window)
3507 (struct tui_cmd_window): Update.
3509 2019-06-25 Tom Tromey <tom@tromey.com>
3511 * tui/tui-winsource.h (tui_set_exec_info_content)
3512 (tui_show_exec_info_content, tui_erase_exec_info_content)
3513 (tui_clear_exec_info_content, tui_update_exec_info): Change
3514 argument to tui_source_window_base.
3515 * tui/tui-winsource.c (tui_set_exec_info_content)
3516 (tui_show_exec_info_content, tui_erase_exec_info_content)
3517 (tui_clear_exec_info_content, tui_update_exec_info): Change
3518 argument to tui_source_window_base.
3520 2019-06-25 Tom Tromey <tom@tromey.com>
3522 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3523 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3525 2019-06-25 Tom Tromey <tom@tromey.com>
3527 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3530 2019-06-25 Tom Tromey <tom@tromey.com>
3532 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3534 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3536 * tui/tui-source.c (tui_set_source_content): Update.
3537 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3539 2019-06-25 Tom Tromey <tom@tromey.com>
3541 * tui/tui-win.c (window_name_completer, tui_set_focus)
3542 (tui_all_windows_info): Use name method.
3543 * tui/tui-data.h (struct tui_gen_win_info)
3544 (struct tui_source_window, struct tui_disasm_window)
3545 (struct tui_data_window, struct tui_cmd_window) <name>: New
3547 (tui_win_name): Don't declare.
3548 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3549 (tui_win_name): Remove.
3551 2019-06-25 Tom Tromey <tom@tromey.com>
3553 * tui/tui-winsource.h (tui_update_source_window)
3554 (tui_update_source_window_as_is): Change parameter type.
3555 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3556 to be a tui_source_window_base.
3557 (tui_update_source_window_as_is): Likewise.
3558 * tui/tui-win.c (make_visible_with_new_height): Update.
3560 2019-06-25 Tom Tromey <tom@tromey.com>
3562 * tui/tui-winsource.c (tui_erase_source_content)
3563 (tui_show_source_content, tui_show_exec_info_content)
3564 (tui_erase_exec_info_content): Use refresh_window method.
3565 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3566 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3567 from tui_refresh_win.
3568 (tui_data_window::refresh_window): New method.
3569 (tui_win_info::refresh, tui_source_window_base::refresh)
3570 (tui_refresh_all): Use refresh_window method.
3571 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3573 * tui/tui-regs.c (tui_display_register): Call refresh_window
3575 * tui/tui-layout.c (show_source_disasm_command)
3576 (show_source_or_disasm_and_command): Call refresh_window method.
3577 * tui/tui-data.h (struct tui_gen_win_info)
3578 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3581 2019-06-25 Tom Tromey <tom@tromey.com>
3583 * tui/tui.c (tui_rl_other_window, tui_enable)
3584 (tui_is_window_visible, tui_get_command_dimension): Update.
3585 * tui/tui-winsource.c (tui_update_source_window_as_is)
3586 (tui_clear_source_content, tui_erase_source_content)
3587 (tui_show_source_line, tui_source_window_base::refill)
3588 (tui_source_window_base::do_scroll_horizontal)
3589 (tui_source_window_base::set_is_exec_point_at)
3590 (tui_update_breakpoint_info, tui_set_exec_info_content)
3591 (tui_alloc_source_buffer, tui_line_is_displayed)
3592 (tui_addr_is_displayed): Update.
3593 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3594 (tui_check_and_display_highlight_if_needed)
3595 (tui_win_info::make_visible, tui_win_info::refresh)
3596 (tui_refresh_all): Update.
3597 * tui/tui-windata.c (tui_first_data_item_displayed)
3598 (tui_delete_data_content_windows, tui_erase_data_content)
3599 (tui_display_all_data, tui_data_window::refresh_all)
3600 (tui_check_data_values): Update.
3601 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3602 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3603 (tui_win_info::backward_scroll, tui_refresh_all_win)
3604 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3605 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3606 (tui_source_window_base::set_new_height)
3607 (tui_data_window::set_new_height)
3608 (make_invisible_and_set_new_height)
3609 (make_visible_with_new_height, new_height_ok)
3610 (parse_scrolling_args): Update.
3611 * tui/tui-stack.c (tui_show_frame_info): Update.
3612 * tui/tui-source.c (tui_set_source_content)
3613 (tui_set_source_content_nil, tui_source_is_displayed)
3614 (tui_source_window::do_scroll_vertical): Update.
3615 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3616 (tui_display_registers_from, tui_display_reg_element_at_line)
3617 (tui_check_register_values, tui_reg_command): Update.
3618 * tui/tui-layout.c (tui_default_win_height)
3619 (show_source_disasm_command, show_data, init_and_make_win)
3620 (show_source_or_disasm_and_command): Update.
3621 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3622 (tui_redisplay_readline, tui_mld_flush)
3623 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3625 * tui/tui-disasm.c (tui_set_disassem_content)
3626 (tui_disasm_window::do_scroll_vertical): Update.
3627 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3629 (struct tui_win_info): Derive from tui_gen_win_info.
3630 <~tui_win_info>: Mark as override.
3631 <generic>: Remove member.
3632 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3633 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3634 (~tui_data_window, ~tui_win_info)
3635 (tui_free_all_source_wins_content): Update.
3636 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3638 2019-06-25 Tom Tromey <tom@tromey.com>
3640 * tui/tui-layout.c (init_and_make_win): Use new.
3641 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3642 destructor, initializers.
3643 (tui_alloc_generic_win_info): Don't declare.
3644 * tui/tui-data.c (_locator): Add argument to constructor.
3645 (source_win, disasm_win): New globals.
3646 (exec_info): Remove.
3647 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3649 (tui_alloc_generic_win_info): Remove.
3650 (init_content_element): Use new.
3651 (tui_win_info::tui_win_info): Update.
3652 (free_content_elements) <case DATA_WIN>: Use delete.
3654 2019-06-25 Tom Tromey <tom@tromey.com>
3656 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3657 * tui/tui-windata.c (tui_first_data_item_displayed)
3658 (tui_delete_data_content_windows): Update.
3659 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3660 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3661 (tui_display_registers_from, tui_check_register_values): Update.
3662 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3664 * tui/tui-data.c (init_content_element): Update. Allocate the new
3666 (tui_free_data_content): Update.
3667 (free_content_elements) <case DATA_WIN>: Free the window.
3669 2019-06-25 Tom Tromey <tom@tromey.com>
3671 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3673 * tui/tui-layout.c (make_command_window)
3674 (show_source_disasm_command, show_data, init_and_make_win)
3675 (show_source_or_disasm_and_command): Update.
3676 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3678 <can_highight, is_highlighted>: Now bool.
3679 (tui_set_win_highlight): Don't declare.
3680 * tui/tui-data.c (tui_set_win_highlight): Remove.
3682 2019-06-25 Tom Tromey <tom@tromey.com>
3684 * tui/tui-wingeneral.c (make_visible): Remove check of window
3687 2019-06-25 Tom Tromey <tom@tromey.com>
3689 * tui/tui-win.c (tui_win_info::max_height)
3690 (tui_cmd_window::max_height): New methods.
3691 (new_height_ok): Call max_height.
3692 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3693 <max_height>: New method.
3695 2019-06-25 Tom Tromey <tom@tromey.com>
3697 * tui/tui-win.c (tui_source_window_base::set_new_height)
3698 (tui_data_window::set_new_height): New methods.
3699 (make_invisible_and_set_new_height): Call set_new_height method.
3700 * tui/tui-data.h (struct tui_win_info)
3701 (struct tui_source_window_base, struct tui_data_window)
3702 <set_new_height>: New method.
3704 2019-06-25 Tom Tromey <tom@tromey.com>
3706 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3707 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3708 tui_refresh_data_win.
3709 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3711 (tui_refresh_all_win): Call the refresh_all method.
3712 (tui_set_focus): Likewise.
3713 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3714 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3717 2019-06-25 Tom Tromey <tom@tromey.com>
3719 * tui/tui-winsource.h (tui_refill_source_window)
3720 (tui_set_is_exec_point_at): Don't declare.
3721 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3722 (tui_source_window_base::refill): Rename from
3723 tui_refill_source_window.
3724 (tui_source_window_base::do_scroll_horizontal): Update.
3725 (tui_source_window_base::set_is_exec_point_at): Rename from
3726 tui_set_is_exec_point_at.
3727 (tui_update_all_breakpoint_info): Update.
3728 * tui/tui-stack.c (tui_show_frame_info): Update.
3729 * tui/tui-layout.c (show_data): Add cast.
3730 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3731 * tui/tui-data.h (struct tui_source_window_base) <refill,
3732 set_is_exec_point_at>: New methods.
3733 (tui_source_windows, tui_add_to_source_windows): Update types.
3734 (tui_add_to_source_windows): Remove redundant declaration.
3735 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3736 (tui_source_windows): Change return type.
3737 (tui_clear_source_windows_detail): Update.
3738 (tui_add_to_source_windows): Change type of parameter.
3739 (tui_free_all_source_wins_content): Update.
3741 2019-06-25 Tom Tromey <tom@tromey.com>
3743 * tui/tui-wingeneral.c (tui_win_info::refresh)
3744 (tui_source_window_base::refresh): New methods.
3745 (tui_refresh_all): Call the refresh method.
3746 * tui/tui-data.h (struct tui_win_info)
3747 (struct tui_source_window_base) <refresh>: New method.
3749 2019-06-25 Tom Tromey <tom@tromey.com>
3751 * tui/tui.h (tui_is_window_visible): Return bool.
3752 * tui/tui.c (tui_is_window_visible): Return bool.
3753 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3754 (tui_make_visible, tui_make_invisible)
3755 (tui_win_info::make_visible)
3756 (tui_source_window_base::make_visible, make_all_visible)
3757 (tui_make_all_visible, tui_make_all_invisible): Update.
3758 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3759 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3761 (struct tui_win_info, struct tui_source_window_base)
3762 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3763 * tui/tui-data.c (tui_init_generic_part): Update.
3765 2019-06-25 Tom Tromey <tom@tromey.com>
3767 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3768 (tui_source_window_base::make_visible): New methods.
3769 (make_all_visible): Make method call.
3770 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3771 (struct tui_source_window_base, struct tui_cmd_window): Override
3773 (tui_win_is_source_type): Don't declare.
3774 * tui/tui-data.c (tui_win_is_source_type): Remove.
3776 2019-06-25 Tom Tromey <tom@tromey.com>
3778 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3781 2019-06-25 Tom Tromey <tom@tromey.com>
3783 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3784 Inline constructor. Add initializers for members.
3785 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3786 constructors; now inline in class.
3788 2019-06-25 Tom Tromey <tom@tromey.com>
3790 * tui/tui-regs.c (tui_show_registers): Update.
3791 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3793 * tui/tui-data.c (tui_data_window::clear_detail)
3794 (tui_data_window): Update.
3796 2019-06-25 Tom Tromey <tom@tromey.com>
3798 * tui/tui-windata.c (tui_display_all_data)
3799 (tui_display_data_from_line, tui_display_data_from)
3800 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3802 * tui/tui-regs.c (tui_last_regs_line_no)
3803 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3804 (tui_show_registers, tui_show_register_group)
3805 (tui_display_registers_from, tui_display_reg_element_at_line)
3806 (tui_display_registers_from_line, tui_check_register_values)
3807 (tui_reg_next, tui_reg_prev): Update.
3808 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3809 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3811 (struct tui_win_info) <detail>: Remove. Add new fields from
3813 (TUI_DATA_WIN): Add cast.
3814 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3815 (~tui_data_window): Simplify.
3817 2019-06-25 Tom Tromey <tom@tromey.com>
3819 * tui/tui-layout.c (show_source_disasm_command)
3820 (show_source_or_disasm_and_command): Update.
3821 * tui/tui-io.c (update_cmdwin_start_line)
3822 (tui_redisplay_readline): Update.
3823 * tui/tui-data.h (struct tui_command_info): Remove.
3824 (struct tui_win_info) <detail>: Remove command_info member.
3825 (struct tui_data_window) <start_line>: New member, from
3827 (TUI_CMD_WIN): Add casts.
3829 2019-06-25 Tom Tromey <tom@tromey.com>
3831 * tui/tui-winsource.c (tui_update_source_window)
3832 (tui_refill_source_window)
3833 (tui_source_window_base::do_scroll_horizontal)
3834 (tui_update_breakpoint_info, tui_set_exec_info_content)
3835 (tui_show_exec_info_content, tui_erase_exec_info_content)
3836 (tui_clear_exec_info_content): Update.
3837 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3839 * tui/tui-win.c (make_invisible_and_set_new_height)
3840 (make_visible_with_new_height): Update.
3841 * tui/tui-source.c (tui_set_source_content)
3842 (tui_show_symtab_source): Update.
3843 * tui/tui-layout.c (extract_display_start_addr)
3844 (show_source_disasm_command, show_data)
3845 (make_source_or_disasm_window)
3846 (show_source_or_disasm_and_command): Update.
3847 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3848 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3850 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3851 to tui_source_window_base.
3852 (struct tui_win_info) <detail>: Remove source_info member.
3853 (struct tui_source_window_base) <has_locator>: Inline.
3854 Move contents from tui_source_info; rename has_locator member to
3856 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3857 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3859 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3861 (tui_free_all_source_wins_content): Cast to
3862 tui_source_window_base.
3864 2019-06-25 Tom Tromey <tom@tromey.com>
3866 * tui/tui-win.c (make_invisible_and_set_new_height)
3867 (make_visible_with_new_height): Call has_locator method.
3868 * tui/tui-layout.c (show_source_disasm_command, show_data)
3869 (show_source_or_disasm_and_command): Update for bool change.
3870 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3871 (tui_win_info) <has_locator>: New method.
3872 (struct tui_source_window_base) <has_locator>: New method.
3873 (tui_win_has_locator): Don't declare.
3874 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3875 from tui_win_has_locator.
3876 (tui_source_window_base): Use false, not FALSE.
3878 2019-06-25 Tom Tromey <tom@tromey.com>
3880 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3881 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3882 clear_detail method directly.
3883 (tui_clear_win_detail): Remove.
3885 2019-06-25 Tom Tromey <tom@tromey.com>
3887 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3888 "this", not TUI_DISASM_WIN.
3890 2019-06-25 Tom Tromey <tom@tromey.com>
3892 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3894 * tui/tui-winsource.c
3895 (tui_source_window_base::do_scroll_horizontal): Rename from
3896 tui_horizontal_source_scroll.
3897 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3898 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3899 from tui_vertical_data_scroll.
3900 * tui/tui-win.h (tui_scroll): Don't declare.
3901 * tui/tui-win.c (tui_win_info::forward_scroll)
3902 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3903 (tui_win_info::right_scroll): Rename and update.
3904 (tui_scroll_forward_command, tui_scroll_backward_command)
3905 (tui_scroll_left_command, tui_scroll_right_command): Update.
3906 (tui_scroll): Remove.
3907 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3908 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3909 from tui_vertical_source_scroll.
3910 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3911 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3912 from tui_vertical_disassem_scroll.
3913 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3914 do_scroll_horizontal>: New methods.
3915 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3917 (struct tui_source_window_base): Add do_scroll_horizontal.
3918 (struct tui_source_window, struct tui_disasm_window): Add
3920 (struct tui_data_window, struct tui_cmd_window): Add
3921 do_scroll_horizontal and do_scroll_vertical.
3922 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3924 2019-06-25 Tom Tromey <tom@tromey.com>
3926 * tui/tui-data.h (struct tui_source_window_base): New struct.
3927 (struct tui_source_window): Derive from tui_source_window_base.
3928 (struct tui_disasm_window): New struct.
3929 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3930 from tui_source_window::clear_detail.
3931 (tui_source_window_base): Rename from tui_source_window.
3932 (~tui_source_window_base): Rename from ~tui_source_window.
3933 (tui_alloc_win_info): Create a tui_disasm_window.
3935 2019-06-25 Tom Tromey <tom@tromey.com>
3937 * tui/tui-data.h (struct tui_source_window)
3938 (struct tui_data_window): Declare destructors.
3939 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3941 (tui_win_info): Simplify.
3943 2019-06-25 Tom Tromey <tom@tromey.com>
3945 * tui/tui-winsource.c (tui_display_main)
3946 (tui_update_source_windows_with_addr)
3947 (tui_update_all_breakpoint_info): Update.
3948 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3949 (new_height_ok, parse_scrolling_args): Update.
3950 * tui/tui-stack.c (tui_show_frame_info): Update.
3951 * tui/tui-data.h (struct tui_list): Remove.
3952 (tui_source_windows): Return a reference to a std::vector.
3953 * tui/tui-data.c (source_windows): Now a std::vector.
3954 (tui_source_windows): Change return type.
3955 (tui_clear_source_windows): Rewrite.
3956 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3957 (tui_free_all_source_wins_content): Rewrite.
3959 2019-06-25 Tom Tromey <tom@tromey.com>
3961 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3962 (struct tui_data_window, struct tui_cmd_window): Declare
3963 clear_detail method.
3964 * tui/tui-data.c (tui_source_window::clear_detail)
3965 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3967 (tui_clear_win_detail): Simplify.
3969 2019-06-25 Tom Tromey <tom@tromey.com>
3971 * tui/tui-layout.c (make_source_window, make_disasm_window)
3972 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3973 Return the new window.
3974 (show_source_disasm_command, show_data)
3975 (show_source_or_disasm_and_command): Update.
3977 2019-06-25 Tom Tromey <tom@tromey.com>
3979 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3980 parameter. Return the new window.
3981 (show_source_disasm_command): Update and remove NULL check.
3982 (show_source_or_disasm_and_command): Update.
3984 2019-06-25 Tom Tromey <tom@tromey.com>
3986 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3988 2019-06-25 Tom Tromey <tom@tromey.com>
3990 * tui/tui-data.h (struct tui_win_info): Make constructor
3991 protected. Make destructor virtual. Add initializers.
3992 (tui_source_window, tui_data_window, tui_cmd_window): New
3994 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3995 constructor. Add "type" parameter.
3996 (tui_source_window, tui_data_window, tui_cmd_window): New
3998 (tui_alloc_win_info): Instantiate the appropriate subclass.
4000 2019-06-25 Tom Tromey <tom@tromey.com>
4002 * tui/tui-win.c (tui_resize_all): Use delete.
4003 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4005 (tui_free_window): Don't declare.
4006 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4009 2019-06-25 Tom Tromey <tom@tromey.com>
4011 * tui/tui-data.h (struct tui_win_info): Add constructor.
4012 * tui/tui-data.c (tui_alloc_win_info): Use new.
4013 (tui_free_window): Use delete.
4015 2019-06-22 Tom Tromey <tom@tromey.com>
4017 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4019 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4021 2019-06-22 Tom Tromey <tom@tromey.com>
4023 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4025 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4027 2019-06-22 Tom de Vries <tdevries@suse.de>
4029 * dwarf2read.c (create_addrmap_from_aranges)
4030 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4033 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4035 * dwarf2read.h (dwarf2_section_info_def): Remove.
4036 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4037 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4038 std::vector<dwarf2_section_info>.
4039 (struct dwo_file) <~dwo_file>: Remove.
4040 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4042 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4043 (dwarf2_read_debug_names): Likewise.
4044 (create_debug_types_hash_table): Change parameter type to
4045 array_view, adjust code accordingly.
4046 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4047 (partial_die_info::fixup): Likewise.
4048 (determine_prefix): Likewise.
4049 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4051 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4053 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4055 <~dwo_file>: Remove call to gdb_bfd_unref.
4056 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4057 gdb_bfd_ref_ptr::get.
4059 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4061 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4063 * dwarf2read.c (struct dwo_file): Initialize fields.
4065 (free_dwo_file): Remove, move content to ~dwo_file.
4066 (struct dwo_file_deleter): Remove.
4067 (dwo_file_up>: Remove custom deleter.
4068 (free_dwo_files): Remove.
4069 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4071 (process_skeletonless_type_units): Call unique_ptr::get.
4072 (allocate_dwo_file_hash_table): Add deleter to created hash
4073 table. Change return type to htab_up.
4074 (lookup_dwo_file_slot): Don't memset dwo_file, call
4076 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4077 (create_dwo_unit_in_dwp_v2): Likewise.
4078 (open_and_init_dwo_file): Likewise.
4079 (free_dwo_file_from_slot): Remove.
4081 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4083 * dwarf2read.h (struct dwarf2_section_info) <readin,
4084 is_virtual>: Change type to bool.
4085 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4088 2019-06-19 Tom Tromey <tom@tromey.com>
4090 * tui/tui-data.h (tui_init_content_element): Don't declare.
4092 2019-06-19 Tom Tromey <tom@tromey.com>
4094 * tui/tui-data.h (tui_init_win_info): Don't declare.
4096 2019-06-19 Tom de Vries <tdevries@suse.de>
4098 * dwarf2read.h (abstract_to_concrete): Change type to
4099 std::unordered_map<sect_offset, std::vector<sect_offset>,
4100 gdb::hash_enum<sect_offset>>.
4102 2019-06-19 Tom Tromey <tromey@adacore.com>
4104 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4105 EVAL_AVOID_SIDE_EFFECTS specially.
4107 2019-06-19 Tom Tromey <tromey@adacore.com>
4109 * source-cache.c (highlighter): New global.
4110 (source_cache::get_source_lines): Create a highlighter on demand.
4112 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4114 * defs.h (deprecated_interactive_hook): Delete declaration.
4115 * interps.c (clear_interpreter_hooks): Remove use of
4116 deprecated_interactive_hook.
4117 * top.c (deprecated_interactive_hook): Delete definition.
4118 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4120 2019-06-18 Tom de Vries <tdevries@suse.de>
4123 * dwarf2read.h (abstract_to_concrete): Change type from
4124 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4125 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4126 * dwarf2read.c (read_variable): Update.
4127 (dwarf2_fetch_die_loc_sect_off): Update.
4129 2019-06-17 Tom de Vries <tdevries@suse.de>
4132 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4133 accessing parent[parent_len - 1].
4135 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4138 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4139 call dtrace_process_dof with NULL dof.
4141 2019-06-16 Tom de Vries <tdevries@suse.de>
4144 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4146 2019-06-16 Tom Tromey <tom@tromey.com>
4148 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4149 (make_all_visible): Use address of member.
4151 2019-06-16 Tom Tromey <tom@tromey.com>
4153 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4154 (tui_free_window, free_content, free_content_elements): Remove
4156 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4158 * tui/tui-regs.c (tui_show_register_group)
4159 (tui_display_registers_from, tui_display_reg_element_at_line):
4160 Remove unnecessary cast.
4162 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4164 * linux-nat.c (normal_mask): Delete.
4165 (_initialize_linux_nat): Don't initialise normal_mask.
4167 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4170 * dwarf-index-write.h (write_psymtabs_to_index): Add
4171 dwz_basename parameter.
4172 * dwarf-index-write.c (write_gdbindex): Move file writing to
4173 write_gdbindex_1. Change return type void.
4174 (assert_file_size): Move up, remove filename parameter.
4175 (write_gdbindex_1): New function.
4176 (write_debug_names): Change return type to void, call
4178 (struct index_wip_file): New struct.
4179 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4180 file logic to index_wip_file. Write index for dwz file if
4182 (save_gdb_index_command): Pass basename of dwz file, if present.
4183 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4184 build-id of dwz file, if present.
4185 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4186 (dwarf2_get_dwz_file): Likewise.
4187 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4188 (dwarf2_get_dwz_file): Likewise.
4190 2019-06-16 Tom Tromey <tom@tromey.com>
4192 * coffread.c (process_coff_symbol): Use xstrdup.
4193 * value.c (create_internalvar): Use xstrdup.
4195 2019-06-16 Tom Tromey <tom@tromey.com>
4197 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4198 * breakpoint.c (stopin_command, stopat_command)
4199 (until_break_command, decode_location_default): Remove unnecessary
4201 * utils.c (subset_compare): Remove unnecessary cast.
4202 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4204 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4206 * infcmd.c (path_command): Remove unnecessary cast.
4207 * coffread.c (decode_type): Remove unnecessary cast.
4208 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4209 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4210 * tui/tui-stack.c (tui_show_locator_content)
4211 (tui_show_frame_info): Remove unnecessary cast.
4212 * tui/tui-win.c (tui_scroll_forward_command)
4213 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4214 (parse_scrolling_args): Remove unnecessary cast.
4215 * tui/tui-data.c (init_win_info, tui_del_window)
4216 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4217 (free_content_elements): Remove unnecessary cast.
4218 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4220 * tui/tui-source.c (tui_set_source_content)
4221 (tui_vertical_source_scroll): Remove unnecessary cast.
4222 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4224 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4225 * tui/tui-regs.c (tui_display_registers_from)
4226 (tui_display_register): Remove unnecessary cast.
4227 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4228 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4229 (make_visible): Remove unnecessary cast.
4230 * tui/tui-winsource.c (tui_erase_source_content)
4231 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4233 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4234 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4235 * stabsread.c (read_type, read_array_type, read_range_type):
4236 Remove unnecessary cast.
4237 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4238 (parse_symbol, parse_type, upgrade_type, parse_external)
4239 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4241 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4243 2019-06-16 Tom Tromey <tom@tromey.com>
4245 * tui/tui-data.c (tui_alloc_generic_win_info)
4246 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4249 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4250 Andrew Burgess <andrew.burgess@embecosm.com>
4252 * f-typeprint.c (f_print_type): Don't return early for not
4253 associated or not allocated types.
4254 (f_type_print_varspec_suffix): Add print_rank parameter and print
4255 ranks of array types in case they dangling.
4256 (f_type_print_base): Add print_rank parameter.
4258 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4260 * NEWS: Mention new MI commands.
4261 * break-catch-throw.c (enum exception_event_kind): Move to
4263 (print_mention_exception_catchpoint): Output text as a single
4265 (catch_exception_command_1): Rename to...
4266 (catch_exception_event): ...this, make non-static, update header
4267 command, and change some parameter types.
4268 (catch_catch_command): Update for changes to
4269 catch_exception_command_1.
4270 (catch_throw_command): Likewise.
4271 (catch_rethrow_command): Likewise.
4272 * breakpoint.c (enum exception_event_kind): Delete.
4273 * breakpoint.h (enum exception_event_kind): Moved here from
4274 break-catch-throw.c.
4275 (catch_exception_event): Declare.
4276 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4277 (mi_cmd_catch_throw): New function.
4278 (mi_cmd_catch_rethrow): New function.
4279 (mi_cmd_catch_catch): New function.
4280 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4281 'catch-catch' entries.
4282 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4283 (mi_cmd_catch_rethrow): Declare.
4284 (mi_cmd_catch_catch): Declare.
4286 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4288 * annotate.c (annotate_source_line): Change return type to void,
4289 update implementation to match.
4290 * annotate.h (annotate_source_line): Change return type to void,
4291 update header comment.
4292 * stack.c (print_frame_info): Don't change what frame information
4293 is printed based on whether annotations are on or not.
4295 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4297 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4298 (annotate_source): Make static.
4299 (annotate_source_line): Moved from source.c and renamed from
4300 identify_source_line. Update the return type.
4301 * annotate.h (annotate_source): Delete declaration.
4302 (annotate_source_line): Declaration moved from source.h, and
4303 renamed from identify_source_line. Return type updated.
4304 * source.c (identify_source_line): Moved to annotate.c and renamed
4305 to annotate_source_line.
4306 (info_line_command): Remove check of annotation_level.
4307 * source.h (identify_source_line): Move declaration to annotate.h
4308 and rename to annotate_source_line.
4309 * stack.c: Add 'annotate.h' include.
4310 (print_frame_info): Remove check of annotation_level before
4311 calling annotate_source_line.
4313 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4315 * source-cache.c (source_cache::get_plain_source_lines): Use
4316 open_source_file_with_line_charpos instead of just
4317 open_source_file, remove call to find_source_lines.
4318 (source_cache::get_source_lines): Likewise.
4319 * source.c (find_source_lines): Make static.
4320 (get_filename_and_charpos): Renamed into...
4321 (open_source_file_with_line_charpos): ..this along with changes to
4322 return a scoped_fd, and some other minor clean ups.
4323 (identify_source_line): Use open_source_file_with_line_charpos.
4324 (search_command_helper): Use open_source_file_with_line_charpos
4325 instead of just open_source_file, remove call to
4327 * source.h (open_source_file_with_line_charpos): Declare new
4329 (find_source_lines): Delete declaration.
4331 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4333 * source.c (get_filename_and_charpos): Remove fullname
4335 (identify_source_line): Update call to get_filename_and_charpos.
4337 2019-06-14 Tom Tromey <tromey@adacore.com>
4340 * ui-style.h (skip_ansi_escape): Update comment.
4341 * ui-file.h (class no_terminal_escape_file): New class.
4342 * ui-file.c (no_terminal_escape_file::write)
4343 (no_terminal_escape_file::puts): New methods.
4344 * cli/cli-logging.c (handle_redirections): Use
4345 no_terminal_escape_file.
4347 2019-06-14 Tom Tromey <tromey@adacore.com>
4349 * NEWS: Move convenience variable news above Python news.
4351 2019-06-14 Tom Tromey <tom@tromey.com>
4353 * gnulib: Move directory to top-level.
4354 * configure.ac: Don't configure gnulib.
4355 * configure: Rebuild.
4356 * common/common-defs.h: Use new path to gnulib.
4357 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4359 (INCGNU): Look in new gnulib location.
4360 (HFILES_NO_SRCDIR): Remove gnulib files.
4361 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4362 (generated_files): Remove GNULIB_H.
4363 ($(LIBGNU), all-lib): Remove targets.
4364 (distclean): Don't mention GNULIB_BUILDDIR.
4365 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4367 2019-06-14 Tom Tromey <tromey@adacore.com>
4369 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4370 Warn if symbol file does not provide any symbols.
4372 2019-06-14 Tom Tromey <tromey@adacore.com>
4374 * source.c (find_and_open_source): Respect basenames_may_differ.
4376 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4378 * annotate.c (annotate_breakpoints_invalid): Make use of
4379 scoped_restore_terminal_state.
4380 (annotate_frames_invalid): Likewise.
4382 2019-06-14 Tom Tromey <tromey@adacore.com>
4384 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4385 allow assignment to an internalvar.
4387 2019-06-14 Tom Tromey <tromey@adacore.com>
4389 * ada-lex.l: Allow "_" in attribute names.
4391 2019-06-14 Tom Tromey <tromey@adacore.com>
4394 * regcache.c (registers_changed): Don't call alloca.
4395 * top.c (execute_command): Don't call alloca.
4397 2019-06-13 Pedro Alves <palves@redhat.com>
4399 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4400 'expression'. When parsing an expression, error out if there's
4401 junk after "unlimited".
4402 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4403 (do_set_command): Adjust calls to is_unlimited_literal.
4405 2019-06-13 Pedro Alves <palves@redhat.com>
4407 * compile/compile.c (make_compile_options_def_group): Add braces
4408 around array_view initializer.
4409 * thread.c (make_thread_apply_all_options_def_group)
4410 (make_thread_apply_all_options_def_group): Likewise.
4412 2019-06-13 Pedro Alves <palves@redhat.com>
4414 * NEWS (New commands): Mention "maint test-options
4415 require-delimiter", "maint test-options unknown-is-error", "maint
4416 test-options unknown-is-operand" and "maint show
4417 test-options-completion-result".
4418 (New command options, command completion): New section.
4419 (Completion improvements): New section.
4420 Mention that you can abbreviate "unlimited".
4422 2019-06-13 Pedro Alves <palves@redhat.com>
4424 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4425 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4426 * unittests/cli-utils-selftests.c (test_parse_flags)
4427 (test_parse_flags_qcs): Delete.
4428 (test_cli_utils): Don't call deleted functions.
4430 2019-06-13 Pedro Alves <palves@redhat.com>
4432 * thread.c: Include "cli/cli-option.h".
4433 (tp_array_compar_ascending): Global.
4434 (tp_array_compar): Delete function.
4435 (tp_array_compar_ascending, tp_array_compar_descending): New
4437 (ascending_option_def, qcs_flag_option_def)
4438 (thr_qcs_flags_option_defs)
4439 (make_thread_apply_all_options_def_group)
4440 (make_thread_apply_options_def_group): New.
4441 (thread_apply_all_command): Use gdb::option::process_options.
4442 (thread_apply_command_completer)
4443 (thread_apply_all_command_completer): New.
4444 (thread_apply_command): Use gdb::option::process_options.
4445 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4446 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4447 to generate help text of "thread apply". Adjust "taas"'s help.
4448 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4449 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4451 2019-06-13 Pedro Alves <palves@redhat.com>
4453 * thread.c (thread_apply_command): Check for invalid TID with
4454 isdigit instead of !isalpha.
4456 2019-06-13 Pedro Alves <palves@redhat.com>
4458 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4459 (validate_flags_qcs): New.
4460 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4461 (validate_flags_qcs): Declare.
4462 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4463 (make_frame_apply_options_def_group): New.
4464 (frame_apply_command_count): Process options with
4465 gdb::option::process_options.
4466 (frame_apply_completer): New.
4467 (frame_apply_level_completer, frame_apply_all_completer)
4468 (frame_apply_completer): New.
4469 (_initialize_stack): Update help of "frame apply", "frame apply
4470 level", "frame apply all" and "faas" to mention supported options
4471 and install command completers.
4472 * stack.h (frame_apply_all_completer): Declare.
4473 * thread.c: Include "stack.h".
4474 (tfaas_command): Add "--".
4475 (_initialize_thread): Update help "tfaas" to mention supported
4476 options and install command completer.
4478 2019-06-13 Pedro Alves <palves@redhat.com>
4480 * completer.c (complete_nested_command_line): New.
4481 (gdb_completion_word_break_characters_throw): Add assertion.
4482 * completer.h (complete_nested_command_line): Declare.
4484 2019-06-13 Pedro Alves <palves@redhat.com>
4486 * stack.c (parse_backtrace_qualifiers): New.
4487 (backtrace_command): Use it.
4488 (backtrace_command_completer): Complete on qualifiers.
4490 2019-06-13 Pedro Alves <palves@redhat.com>
4492 * frame.c: Include "cli/cli-option.h.
4493 (user_set_backtrace_options): New.
4494 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4496 (get_prev_frame): Adjust.
4497 (boolean_option_def, uinteger_option_def)
4498 (set_backtrace_option_defs): New.
4499 (_initialize_frame): Adjust and use
4500 gdb::option::add_setshow_cmds_for_options to install "set
4501 backtrace past-main" and "set backtrace past-entry".
4502 * frame.h: Include "cli/cli-option.h".
4503 (struct frame_print_options): Forward declare.
4504 (print_frame_arguments_all, print_frame_arguments_scalars)
4505 (print_frame_arguments_none): Declare.
4506 (print_entry_values): Delete declaration.
4507 (struct frame_print_options, user_frame_print_options): New.
4508 (struct set_backtrace_options): New.
4509 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4510 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4511 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4512 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4513 (list_args_or_locals): Add frame_print_options parameter.
4514 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4515 * python/py-framefilter.c (enumerate_args): Pass down
4516 USER_FRAME_PRINT_OPTIONS.
4517 * stack.c: Include "cli/cli-option.h".
4518 (print_frame_arguments_all, print_frame_arguments_scalars)
4519 (print_frame_arguments_none): Declare.
4520 (print_raw_frame_arguments, print_entry_values): Delete.
4521 (user_frame_print_options): New.
4522 (boolean_option_def, enum_option_def, frame_print_option_defs):
4524 (struct backtrace_cmd_options): New.
4525 (bt_flag_option_def): New.
4526 (backtrace_command_option_defs): New.
4527 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4528 (print_frame_arg, read_frame_arg, print_frame_args)
4529 (print_frame_info, print_frame): Add frame_print_options parameter
4531 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4532 (backtrace_command_1): Add frame_print_options and
4533 backtrace_cmd_options parameters and use them.
4534 (make_backtrace_options_def_group): New.
4535 (backtrace_command): Process command options with
4536 gdb::option::process_options.
4537 (backtrace_command_completer): New.
4538 (_initialize_stack): Extend "backtrace"'s help to mention
4539 supported options. Install completer for "backtrace".
4540 Install some settings commands with add_setshow_cmds_for_options.
4542 2019-06-13 Pedro Alves <palves@redhat.com>
4544 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4545 and that "set/show print raw frame-arguments" are now deprecated.
4547 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4549 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4550 * stack.c (_initialize_stack): Install "set/show print
4551 raw-frame-arguments", and deprecate "set/show print raw
4553 * valprint.c (_initialize_valprint): Deprecate "set/show print
4556 2019-06-13 Pedro Alves <palves@redhat.com>
4558 * compile/compile.c (struct compile_options): New.
4559 (compile_flag_option_def, compile_command_option_defs)
4560 (make_compile_options_def_group): New.
4561 (compile_file_command): Handle options with
4562 gdb::option::process_options.
4563 (compile_file_command_completer): New function.
4564 (compile_code_command): Handle options with
4565 gdb::option::process_options.
4566 (compile_code_command_completer): New function.
4567 (_initialize_compiler): Install completers for "compile code" and
4568 "compile file". Mention available options in "compile code" and
4569 "compile code"'s help.
4570 * completer.c (advance_to_completion_word): New, factored out from
4572 (advance_to_expression_complete_word_point): ... this.
4573 (advance_to_filename_complete_word_point): New.
4574 * completer.h (advance_to_filename_complete_word_point): New
4577 2019-06-13 Pedro Alves <palves@redhat.com>
4579 * compile/compile.c: Include "cli/cli-option.h".
4580 (compile_print_value): Scope data pointer is now a
4581 value_print_options pointer; adjust.
4582 (compile_print_command): Process options. Scope data pointer is
4583 now a value_print_options pointer; adjust.
4584 (_initialize_compile): Update "compile print"'s help to include
4585 supported options. Install a completer for "compile print".
4586 * cp-valprint.c (show_vtblprint, show_objectprint)
4587 (show_static_field_print): Delete.
4588 (_initialize_cp_valprint): Don't install "set print
4589 static-members", "set print vtbl", "set print object" here.
4590 * printcmd.c: Include "cli/cli-option.h" and
4591 "common/gdb_optional.h".
4592 (print_command_parse_format): Rework to fill in a
4593 value_print_options instead of a format_data.
4594 (print_value): Change parameter type from format_data pointer to
4595 value_print_options reference. Adjust.
4596 (print_command_1): Process options. Adjust to pass down a
4597 value_print_options.
4598 (print_command_completer): New.
4599 (_initialize_printcmd): Install print_command_completer as
4600 handle_brkchars completer for the "print" command. Update
4601 "print"'s help to include supported options.
4602 * valprint.c: Include "cli/cli-option.h".
4603 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4604 here from cp-valprint.c.
4605 (boolean_option_def, uinteger_option_def)
4606 (value_print_option_defs, make_value_print_options_def_group):
4607 New. Use gdb::option::add_setshow_cmds_for_options to install
4608 "set print elements", "set print null-stop", "set print repeats",
4609 "set print pretty", "set print union", "set print array", "set
4610 print address", "set print symbol", "set print array-indexes".
4611 * valprint.h: Include <string> and "cli/cli-option.h".
4612 (make_value_print_options_def_group): Declare.
4613 (print_value): Change parameter type from format_data pointer to
4614 value_print_options reference.
4615 (print_command_completer): Declare.
4617 2019-06-13 Pedro Alves <palves@redhat.com>
4619 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4620 (COMMON_SFILES): Add maint-test-settings.c.
4621 * cli/cli-decode.c (boolean_enums): New global, factored out from
4623 (add_setshow_boolean_cmd): ... here.
4624 * cli/cli-decode.h (boolean_enums): Declare.
4625 * cli/cli-option.c: New file.
4626 * cli/cli-option.h: New file.
4627 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4628 factored out from ...
4629 (parse_cli_boolean_value(const char *)): ... this.
4630 (is_unlimited_literal): Change parameter type to pointer to
4631 pointer. Adjust and advance ARG pointer.
4632 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4633 (parse_cli_var_enum): New, factored out from ...
4634 (do_set_command): ... this. Adjust.
4635 * cli/cli-setshow.h (parse_cli_boolean_value)
4636 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4637 (parse_cli_var_enum): Declare.
4638 * cli/cli-utils.c: Include "cli/cli-option.h".
4639 (get_ulongest): New.
4640 * cli/cli-utils.h (get_ulongest): Declare.
4641 (check_for_argument): New overloads.
4642 * maint-test-options.c: New file.
4644 2019-06-13 Pedro Alves <palves@redhat.com>
4646 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4647 parse a range if "-" is at the end of the string.
4649 2019-06-13 Pedro Alves <palves@redhat.com>
4651 * cli/cli-setshow.c (parse_auto_binary_operation)
4652 (parse_cli_boolean_value): Don't allow "o".
4654 2019-06-13 Pedro Alves <palves@redhat.com>
4656 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4657 * NEWS: Mention maint test-settings KIND.
4658 * maint-test-settings.c: New file.
4660 2019-06-13 Pedro Alves <palves@redhat.com>
4662 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4664 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4667 2019-06-13 Pedro Alves <palves@redhat.com>
4669 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4672 2019-06-13 Pedro Alves <palves@redhat.com>
4674 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4676 2019-06-13 Pedro Alves <palves@redhat.com>
4678 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4679 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4681 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4682 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4684 (check_for_argument): Skip spaces after argument.
4686 2019-06-13 Pedro Alves <palves@redhat.com>
4688 * thread.c (thread_apply_command): Adjust TID parsing.
4689 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4690 detected before end of string.
4691 (tid_is_in_list): Error out if LIST is invalid.
4693 2019-06-13 Pedro Alves <palves@redhat.com>
4695 * completer.c (complete_line_internal_1): Rewind completion word
4697 (completion_tracker::advance_custom_word_point_by): Change
4698 parameter type to int.
4699 * completer.h (completion_tracker::advance_custom_word_point_by):
4702 2019-06-13 Pedro Alves <palves@redhat.com>
4704 * completer.c (advance_to_completion_word): Handle delimiters.
4706 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4708 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4710 2019-06-11 Tom Tromey <tom@tromey.com>
4712 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4713 (xmalloc_failed): Move to alloc.c.
4714 * alloc.c: New file.
4715 * Makefile.in (COMMON_SFILES): Add alloc.c.
4717 2019-06-11 Tom Tromey <tom@tromey.com>
4719 * nat/linux-waitpid.c: Don't include server.h.
4720 (linux_debug): Remove.
4721 (my_waitpid): Update.
4723 2019-06-11 Tom Tromey <tromey@adacore.com>
4725 * infcall.c (_initialize_infcall): Remove trailing newline from
4727 * user-regs.c (_initialize_user_regs): Remove trailing newline
4729 * typeprint.c (_initialize_typeprint): Remove trailing newline
4731 * reverse.c (_initialize_reverse): Remove trailing newlines from
4733 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4735 * language.c (add_set_language_command): Remove trailing newline
4737 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4739 * disasm.c (_initialize_disasm): Remove trailing newline from
4741 * top.c (init_main): Remove trailing newline from help.
4742 * interps.c (_initialize_interpreter): Remove trailing newline
4744 * btrace.c (_initialize_btrace): Remove trailing newlines from
4746 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4748 * python/python.c (_initialize_python): Remove trailing newline
4750 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4752 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4753 from help. Reformat some text.
4754 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4756 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4759 2019-06-11 Tom Tromey <tromey@adacore.com>
4761 * darwin-nat.c (darwin_decode_exception_message)
4762 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4764 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4766 * valops.c (value_slice): Check for not allocated or not
4769 2019-06-10 Tom de Vries <tdevries@suse.de>
4772 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4773 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4776 2019-06-10 Tom de Vries <tdevries@suse.de>
4779 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4780 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4782 2019-06-10 Tom de Vries <tdevries@suse.de>
4785 * symtab.c (struct demangled_name_entry): Add language field.
4786 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4787 static minimal symbol". Set and use language field.
4789 2019-06-10 Tom Tromey <tromey@adacore.com>
4791 * ada-lang.c (_initialize_ada_language): Update help text.
4793 2019-06-10 Tom Tromey <tromey@adacore.com>
4795 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4797 * guile/guile.c (handle_boot_error): Don't end warning with a
4799 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4800 warning with a newline.
4801 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4803 (s12z_frame_cache): Likewise.
4804 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4806 * solib-svr4.c (disable_probes_interface): Don't end warning with
4808 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4810 * python/python.c (do_finish_initialization): Don't end warning
4813 2019-06-10 Tom Tromey <tom@tromey.com>
4815 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4816 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4819 2019-06-10 Tom Tromey <tromey@adacore.com>
4821 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4823 (elf_new_init): Don't call stabsread_new_init.
4824 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4825 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4826 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4828 2019-06-10 Tom de Vries <tdevries@suse.de>
4832 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4834 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4836 * source.c (find_and_open_source): Also rewrite relative file
4839 2019-04-26 Amos Bird <amosbird@gmail.com>
4841 * annotate.c (annotate_thread_exited): Add "thread-exited"
4844 2019-06-06 Tom Tromey <tromey@adacore.com>
4846 * maint.h (class scoped_command_stats): Use
4847 DISABLE_COPY_AND_ASSIGN.
4848 <print_time>: New method.
4849 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4851 (scoped_command_stats::print_time): New method.
4853 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4855 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4856 instructions of lengths 6 or 8 bytes.
4858 2019-06-04 Pedro Alves <palves@redhat.com>
4860 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4862 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4863 * breakpoint.c (condition_completer): Likewise.
4864 * cli/cli-dump.c (scan_expression): Likewise.
4865 * common/filestuff.c (mkdir_recursive): Likewise.
4866 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4867 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4868 (gdb_abspath): Likewise.
4869 * compile/compile-cplus-types.c
4870 (compile_cplus_instance::decl_name): Likewise.
4871 * completer.c (complete_explicit_location):
4872 (signal_completer, reg_or_group_completer_1): Likewise.
4873 * cp-support.c (cp_remove_params_if_any): Likewise.
4874 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4875 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4876 * infcmd.c (strip_bg_char): Likewise.
4877 * linespec.c (copy_token_string): Likewise.
4878 * mi/mi-main.c (output_cores): Likewise.
4879 * psymtab.c (psymtab_search_name):
4880 * symfile.c (test_set_ext_lang_command): Likewise.
4881 * target.c (target_fileio_read_stralloc): Likewise.
4882 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4883 * value.c (complete_internalvar): Likewise.
4885 2019-06-04 Christian Biesinger <cbiesinger@google.com>
4887 Add objfile property to gdb.Type.
4888 * NEWS: Mention Python API addition.
4889 * python/py-type.c (typy_get_objfile): New method.
4891 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4893 * NEWS: Mention the new set|show style [title|highlight].
4894 Mention changes to "show style", "help" and "apropos".
4896 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4898 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4899 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4900 instead of print_help_for_command.
4901 (print_doc_of_command): New function.
4902 (help_list): Add 'apropos -v word' suggestion.
4903 (print_help_for_command): Style the command name using title style.
4904 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4905 (_initialize_cli_cmds): Describe -v in apropos_command help.
4907 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4909 * cli/cli-style.h (cli_style_option): Add name in constructor,
4910 add m_name class member, add constructor with intensity,
4911 add name class function.
4912 (cli_style_option::add_setshow_commands): Remove name argument.
4913 (highlight_style, title_style): New styles.
4914 * cli/cli-style.c (do_show): New function that shows a style
4915 characteristic styling the style name with itself.
4916 (set_style_name): New function.
4917 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4918 Update all callers according to the changes in cli/cli-style.h.
4919 * utils.h (fputs_highlighted): New function.
4920 * utils.c (fputs_highlighted): Likewise.
4922 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4924 * NEWS: Mention new pipe command and new convenience variables.
4926 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4928 * cli/cli-cmds.c (pipe_command): New function.
4929 (_initialize_cli_cmds): Call add_com for pipe_command.
4930 Define | as an alias for pipe.
4931 (exit_status_set_internal_vars): New function.
4932 (shell_escape): Call exit_status_set_internal_vars.
4933 cli/cli-decode.c (find_command_name_length): Recognize | as
4934 a single character command.
4936 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4938 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4939 top.c (execute_command_to_ui_file): New function, mostly a copy
4940 of execute_command_to_string.
4941 (execute_command_to_string): Implement by calling
4942 execute_command_to_ui_file.
4944 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4946 * top.h (saved_command_line): Remove declaration.
4947 * top.c (previous_saved_command_line, previous_repeat_arguments):
4949 (saved_command_line): Make static, define together with other
4951 (dont_repeat): Clear repeat_arguments.
4952 (repeat_previous, get_saved_command_line, save_command_line):
4954 (gdb_init): Initialize saved_command_line
4955 and previous_saved_command_line.
4956 * main.c (captured_main_1): Remove saved_command_line initialization.
4957 * event-top.c (handle_line_of_input): Update to use
4958 the new 'repeat' related functions instead of direct access to
4960 * command.h (repeat_previous, get_saved_command_line,
4961 save_command_line): New declarations.
4962 (dont_repeat): Add comment.
4964 2019-05-30 Tom Tromey <tromey@adacore.com>
4966 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4968 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4970 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4973 * completer.c (complete): Initialize variable word.
4975 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4977 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4978 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4979 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4980 'body' is NULL to the outter 'if', protecting the '!is_define'
4983 2019-05-29 Tom Tromey <tromey@adacore.com>
4985 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4986 (dwarf_unknown): New function.
4987 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4988 (dwarf_type_encoding_name): Use dwarf_unknown.
4990 2019-05-29 Tom Tromey <tromey@adacore.com>
4993 * cp-valprint.c (cp_print_value_fields): Call
4994 cp_print_static_field inside "try".
4996 2019-05-29 Tom Tromey <tromey@adacore.com>
4998 * inflow.c (struct terminal_info): Add default operator=.
4999 * configure: Rebuild.
5000 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5001 -Wdeprecated-copy-dtor, -Wredundant-move.
5003 2019-05-29 Tom Tromey <tromey@adacore.com>
5006 * infcmd.c (print_return_value_1): Handle finish_print
5008 (show_print_finish): New function.
5009 (_initialize_infcmd): Add "set/show print finish" commands.
5010 * valprint.c (user_print_options): Initialize new member.
5011 * valprint.h (struct value_print_options) <finish_print>: New
5014 2019-05-28 Tom Tromey <tromey@adacore.com>
5016 * ada-lang.c (ada_remove_Xbn_suffix)
5017 (find_old_style_renaming_symbol)
5018 (parse_old_style_renaming): Remove.
5019 (ada_find_renaming_symbol): Don't call
5020 find_old_style_renaming_symbol.
5021 (ada_is_renaming_symbol): Rename from
5022 ada_find_renaming_symbol. Remove "block" parameter. Return
5024 (ada_read_var_value): Update and simplify.
5025 * ada-exp.y (write_var_or_type): Remove old code.
5027 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5029 * event-top.c: Remove include comment.
5030 * inflow.c (class scoped_ignore_sigttou): Move from here...
5031 * inflow.h (class scoped_ignore_sigttou): ...to here.
5032 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5033 * top.c: Remove include comment.
5035 2019-05-27 Tom Tromey <tom@tromey.com>
5039 2019-05-22 Tom Tromey <tromey@adacore.com>
5041 * target.c (target_follow_exec): Constify parameter.
5042 * target-delegates.c: Rebuild.
5043 * remote.c (remote_target::follow_exec): Constify parameter.
5044 * infrun.c (follow_exec): Constify parameter.
5045 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5046 (target_follow_exec): Likewise.
5048 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5050 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5051 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5053 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5055 * NEWS: Add debugredirect and testsuite sections.
5057 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5059 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5060 target descriptions using exclusively floating point register name
5063 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5066 * f-lang.c (build_fortran_types): Handle the case where
5067 gdbarch_floatformat_for_type returns a nullptr.
5069 2019-05-21 Tom de Vries <tdevries@suse.de>
5072 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5074 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5077 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5079 * i386-tdep.c (i386_floatformat_for_type): Use
5080 floatformats_ia64_quad for the 16-byte floating point component
5081 within a fortran 32-byte complex number.
5083 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5085 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5086 delete default constructor.
5087 (find_partial_die): Update to return const struct.
5088 (partial_die_parent_scope): Move variable declaration into scope
5089 of its use and change its type to auto.
5090 (guess_partial_die_structure_name): Likewise.
5091 (partial_die_info::fixup): Likewise.
5093 2019-05-17 Tom Tromey <tromey@adacore.com>
5095 * source.c (find_and_open_source): Remove cast.
5097 2019-05-17 Tom Tromey <tromey@adacore.com>
5099 * annotate.c (annotate_source): Make "filename" const.
5100 * annotate.h (annotate_source): Use const.
5102 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5104 * disasm.c (set_disassembler_options): Send errors to stderr.
5106 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5108 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5109 (cli_interp_base::set_logging): Check debug_redirect.
5110 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5111 * cli/cli-logging.c (debug_redirect): Add static variable.
5112 (pop_output_files): Add default param.
5113 (handle_redirections): Print debug setting.
5114 (show_logging_command): Likewise.
5115 (_initialize_cli_logging): Add debugredirect command.
5116 * interps.c (current_interp_set_logging): Add debug_redirect
5118 * interps.h (set_logging): Add debug_redirect parameter.
5119 (current_interp_set_logging): Likewise.
5120 * mi/mi-common.h: Likewise.
5121 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5123 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5124 Tom Tromey <tromey@adacore.com>
5126 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5128 * cli/cli-interp.h (make_logging_output): Remove declaration.
5129 * cli/cli-logging.c (make_logging_output): Remove function.
5130 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5132 * ui-file.c (tee_file::tee_file): Remove bools.
5133 (tee_file::~tee_file): Remove deletes.
5134 * ui-file.h (tee_file): Remove bools.
5136 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5138 * mi/mi-cmds.h (mi_cmd_complete): New function.
5139 * mi/mi-main.c (mi_cmd_complete): Likewise.
5140 * mi/mi-cmds.c: Define new MI command -complete.
5141 * NEWS: Mention new -complete command.
5143 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5145 * completer.h (complete): New function.
5146 * completer.c (complete): Likewise.
5147 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5148 function defined in completer.h.
5150 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5152 * MAINTAINERS (Write After Approval): Add myself.
5154 2019-05-17 Tom de Vries <tdevries@suse.de>
5157 * dwarf2read.c (struct cu_partial_die_info): New struct.
5158 (find_partial_die): Return cu_partial_die_info.
5159 (partial_die_parent_scope, guess_partial_die_structure_name)
5160 (partial_die_info::fixup): Handle new return type of find_partial_die.
5162 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5164 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5165 "std::string", simplifying the algorithm.
5167 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5169 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5170 (stap_static_probe_ops::get_probes): Likewise.
5172 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5174 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5175 '-')" and "else if".
5176 (stap_parse_single_operand): Join checks for
5177 "gdbarch_stap_parse_special_token_p" and
5178 "gdbarch_stap_parse_special_token" in the same "if" statement.
5179 Invert check when verifying for operation on register
5182 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5184 * stap-probe.c (stap_get_opcode): Update comment.
5185 (stap_get_expected_argument_type): Likewise.
5186 (handle_stap_probe): Likewise.
5188 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5190 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5191 return type to 'bool'. Adjust comment. Use 'bool' when
5193 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5194 * stap-probe.c (stap_parse_argument_1): Likewise.
5195 (stap_is_operator): Likewise.
5196 (stap_is_generic_prefix): Likewise.
5197 (stap_is_register_prefix): Likewise.
5198 (stap_is_register_indirection_prefix): Likewise.
5199 (stap_is_integer_prefix): Likewise.
5200 (stap_generic_check_suffix): Likewise.
5201 (stap_check_integer_suffix): Likewise.
5202 (stap_check_register_suffix): Likewise.
5203 (stap_check_register_indirection_suffix): Likewise.
5204 (stap_parse_register_operand): Likewise.
5205 (stap_parse_single_operand): Likewise.
5206 (stap_parse_argument_1): Likewise.
5207 (stap_probe::get_argument_count): Likewise.
5208 (stap_is_operator): Likewise.
5210 2019-05-16 Tom Tromey <tromey@adacore.com>
5212 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5215 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5217 * linux-thread-db.c (try_thread_db_load_1): Change return type
5219 (try_thread_db_load): Likewise.
5220 (try_thread_db_load_from_pdir_1): Likewise.
5221 (try_thread_db_load_from_pdir): Likewise.
5222 (try_thread_db_load_from_sdir): Likewise.
5223 (try_thread_db_load_from_dir): Likewise.
5224 (thread_db_load_search): Likewise.
5225 (has_libpthread): Likewise.
5226 (thread_db_load): Likewise.
5228 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5230 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5231 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5232 NULL, and complain/return if that's the case.
5234 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5236 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5237 (advance, posn, abstract_read_memory): New functions.
5238 [struct mem_read_abstraction]: New struct.
5239 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5241 2019-05-14 Tom Tromey <tromey@adacore.com>
5243 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5244 value is not lval_memory.
5246 2019-05-14 Tom Tromey <tromey@adacore.com>
5248 * solib.c (info_sharedlibrary_command): Style the file name.
5250 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5252 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5253 (aarch64_vnv_type): Likewise.
5254 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5255 * common/tdesc.c: Likewise.
5256 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5257 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5258 * features/aarch64-fpu.xml: Add ieee half view.
5259 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5260 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5261 * gdbtypes.h (struct builtin_type): Likewise.
5262 (struct objfile_type): Likewise.
5264 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5266 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5268 * location.h (string_to_event_location): Likewise.
5270 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5274 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5276 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5277 New variable declaration.
5278 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5280 (print_one_breakpoint): Use ui_out::test_flags and new global
5281 variable to compute use_fixed_output.
5282 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5284 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5285 (mi_multi_location_breakpoint_output_fixed): Remove.
5286 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5288 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5289 fix_multi_location_breakpoint_output flag if version >= 3.
5290 * ui-out.h (enum ui_out_flag)
5291 <fix_multi_location_breakpoint_output>: New enumerator.
5293 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5295 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5297 2019-05-10 Tom Tromey <tromey@adacore.com>
5299 * ada-lang.c (catch_ada_completer): New function.
5300 (_initialize_ada_language): Use it.
5302 2019-05-10 Tom Tromey <tromey@adacore.com>
5304 * thread.c (print_thread_info): Make "requested_threads" const.
5305 * gdbthread.h (print_thread_info): Make "requested_threads"
5307 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5308 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5310 2019-05-08 Tom Tromey <tom@tromey.com>
5312 * gdbtypes.c (objfile_type_data): Change type.
5313 (objfile_type, _initialize_gdbtypes): Update.
5315 2019-05-08 Tom Tromey <tom@tromey.com>
5317 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5318 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5319 (_initialize_dwarf2_frame): Update.
5321 2019-05-08 Tom Tromey <tom@tromey.com>
5323 * objc-lang.c (objc_objfile_data): Change type.
5324 (find_methods): Update.
5325 (_initialize_objc_lang): Remove.
5327 2019-05-08 Tom Tromey <tom@tromey.com>
5329 * stabsread.c (rs6000_builtin_type_data): Change type.
5330 (rs6000_builtin_type, _initialize_stabsread): Update.
5332 2019-05-08 Tom Tromey <tom@tromey.com>
5334 * mips-tdep.c (mips_pdr_data): Remove.
5335 (_initialize_mips_tdep): Update.
5337 2019-05-08 Tom Tromey <tom@tromey.com>
5339 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5340 (hppa_init_objfile_priv_data, read_unwind_info)
5341 (find_unwind_entry, _initialize_hppa_tdep): Update.
5343 2019-05-08 Tom Tromey <tom@tromey.com>
5345 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5346 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5348 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5350 2019-05-08 Tom Tromey <tom@tromey.com>
5352 * mdebugread.c (basic_type_data): Change type.
5353 (basic_type, _initialize_mdebugread): Update.
5355 2019-05-08 Tom Tromey <tom@tromey.com>
5357 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5359 2019-05-08 Tom Tromey <tom@tromey.com>
5361 * nto-tdep.c (nto_inferior_data_reg): Change type.
5362 (nto_inferior_data): Update.
5363 (nto_inferior_data_cleanup, nto_new_inferior_data)
5364 (_initialize_nto_tdep): Remove.
5365 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5367 2019-05-08 Tom Tromey <tom@tromey.com>
5369 * ada-lang.c (struct ada_inferior_data): Add initializers.
5370 (ada_inferior_data): Change type.
5371 (ada_inferior_data_cleanup): Remove.
5372 (get_ada_inferior_data, ada_inferior_exit)
5373 (struct ada_pspace_data): Add initializers, destructor.
5374 (ada_pspace_data_handle): Change type.
5375 (get_ada_pspace_data): Update.
5376 (ada_pspace_data_cleanup): Remove.
5378 2019-05-08 Tom Tromey <tom@tromey.com>
5380 * coffread.c (struct coff_symfile_info): Add initializers.
5381 (coff_objfile_data_key): Move lower. Change type.
5382 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5384 (coff_free_info): Remove.
5386 2019-05-08 Tom Tromey <tom@tromey.com>
5388 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5389 (fbsd_pspace_data_handle): Move lower. Change type.
5390 (get_fbsd_pspace_data): Update.
5391 (fbsd_pspace_data_cleanup): Remove.
5392 (_initialize_fbsd_tdep): Update.
5394 2019-05-08 Tom Tromey <tom@tromey.com>
5396 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5397 (get_ada_tasks_pspace_data): Update.
5398 (ada_tasks_pspace_data_cleanup): Remove.
5399 (_initialize_tasks): Update.
5400 (ada_tasks_inferior_data_handle): Change type.
5401 (get_ada_tasks_inferior_data): Update.
5402 (ada_tasks_inferior_data_cleanup): Remove.
5403 (struct ada_tasks_pspace_data): Add initializers.
5405 2019-05-08 Tom Tromey <tom@tromey.com>
5407 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5408 * symfile-debug.c (debug_sym_get_probes): Change type.
5409 * stap-probe.c (handle_stap_probe):
5410 (stap_static_probe_ops::get_probes): Change type.
5411 * probe.h (class static_probe_ops) <get_probes>: Change type.
5412 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5413 (parse_probes_in_pspace): Update.
5414 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5416 (any_static_probe_ops::get_probes): Change type.
5417 * elfread.c (elfread_data): New typedef.
5418 (probe_key): Change type.
5419 (elf_get_probes): Likewise. Update.
5420 (probe_key_free): Remove.
5421 (_initialize_elfread): Update.
5422 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5424 (dtrace_process_dof_probe, dtrace_process_dof)
5425 (dtrace_static_probe_ops::get_probe): Change type.
5427 2019-05-08 Tom Tromey <tom@tromey.com>
5429 * xcoffread.c (struct xcoff_symfile_info): Rename from
5430 coff_symfile_info. Add initializers.
5431 (xcoff_objfile_data_key): Move lower. Change type.
5432 (XCOFF_DATA): Rewrite.
5433 (xcoff_free_info): Remove.
5434 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5435 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5436 (xcoff_initial_scan): Update.
5438 2019-05-08 Tom Tromey <tom@tromey.com>
5440 * solib-svr4.c (struct svr4_info): Add initializers and
5442 <probes_table>: Now an htab_up.
5443 (solib_svr4_pspace_data): Change type.
5444 (free_probes_table): Simplify.
5445 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5446 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5447 (probes_table_remove_objfile_probes, register_solib_event_probe)
5448 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5449 (_initialize_svr4_solib): Update.
5451 2019-05-08 Tom Tromey <tom@tromey.com>
5453 * remote.c (remote_pspace_data): Change type.
5454 (remote_pspace_data_cleanup): Remove.
5455 (get_remote_exec_file, set_pspace_remote_exec_file)
5456 (_initialize_remote): Update.
5458 2019-05-08 Tom Tromey <tom@tromey.com>
5460 * breakpoint.c (breakpoint_objfile_key): Change type.
5461 (get_breakpoint_objfile_data): Update.
5462 (free_breakpoint_objfile_data): Remove.
5463 (_initialize_breakpoint): Update.
5465 2019-05-08 Tom Tromey <tom@tromey.com>
5467 * linux-tdep.c (struct linux_info): Add initializers.
5468 (linux_inferior_data): Move. Change type.
5469 (invalidate_linux_cache_inf): Update.
5470 (linux_inferior_data_cleanup): Remove.
5471 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5473 2019-05-08 Tom Tromey <tom@tromey.com>
5475 * auxv.c (auxv_inferior_data): Move. Change type.
5476 (auxv_inferior_data_cleanup): Remove.
5477 (invalidate_auxv_cache_inf): Rewrite.
5478 (get_auxv_inferior_data, _initialize_auxv): Update.
5480 2019-05-08 Tom Tromey <tom@tromey.com>
5482 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5483 (symfile_debug_objfile_data_key): Change type.
5484 (symfile_debug_installed, debug_qf_has_symbols)
5485 (debug_qf_find_last_source_symtab)
5486 (debug_qf_forget_cached_source_info)
5487 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5488 (debug_qf_print_stats, debug_qf_dump)
5489 (debug_qf_expand_symtabs_for_function)
5490 (debug_qf_expand_all_symtabs)
5491 (debug_qf_expand_symtabs_with_fullname)
5492 (debug_qf_map_matching_symbols)
5493 (debug_qf_expand_symtabs_matching)
5494 (debug_qf_find_pc_sect_compunit_symtab)
5495 (debug_qf_map_symbol_filenames)
5496 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5497 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5498 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5499 (debug_sym_read_linetable, debug_sym_relocate): Update.
5500 (symfile_debug_free_objfile): Remove.
5501 (install_symfile_debug_logging, _initialize_symfile_debug):
5504 2019-05-08 Tom Tromey <tom@tromey.com>
5506 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5507 allocate_on_obstack.
5508 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5509 (get_dwarf2_per_objfile): Update.
5510 (set_dwarf2_per_objfile): Remove.
5511 (dwarf2_has_info, dwarf2_get_section_info): Update.
5512 (dwarf2_free_objfile): Remove.
5513 (_initialize_dwarf2_read): Update.
5515 2019-05-08 Tom Tromey <tom@tromey.com>
5517 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5519 <unsupported_script_warning_printed,
5520 script_not_found_warning_printed>: Now bool.
5521 (auto_load_pspace_data): Change type.
5522 (~auto_load_pspace_info): Rename from
5523 auto_load_pspace_data_cleanup.
5524 (get_auto_load_pspace_data, init_loaded_scripts_info)
5525 (clear_section_scripts, maybe_print_unsupported_script_warning)
5526 (maybe_print_script_not_found_warning, _initialize_auto_load):
5529 2019-05-08 Tom Tromey <tom@tromey.com>
5531 * objfiles.c (objfile_pspace_info): Add destructor and
5533 (objfiles_pspace_data): Change type.
5534 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5535 (get_objfile_pspace_data): Update.
5536 (objfiles_bfd_data): Change type.
5537 (get_objfile_bfd_data): Update.
5538 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5540 2019-05-08 Tom Tromey <tom@tromey.com>
5542 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5544 (get_catch_syscall_inferior_data): Update.
5545 (catch_syscall_inferior_data_cleanup): Remove.
5546 (_initialize_break_catch_syscall): Update.
5548 2019-05-08 Tom Tromey <tom@tromey.com>
5550 * inflow.c (struct terminal_info): Add destructor and
5552 (inflow_inferior_data): Change type.
5553 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5554 (get_inflow_inferior_data, inflow_inferior_exit)
5555 (swap_terminal_info, _initialize_inflow): Update.
5557 2019-05-08 Tom Tromey <tom@tromey.com>
5559 * target-dcache.c (target_dcache_cleanup): Remove.
5560 (target_dcache_aspace_key): Change type.
5561 (target_dcache_init_p, target_dcache_invalidate)
5562 (target_dcache_get, target_dcache_get_or_init)
5563 (_initialize_target_dcache): Update.
5564 * dcache.h (struct dcache_deleter): New.
5566 2019-05-08 Tom Tromey <tom@tromey.com>
5568 * symtab.c (struct symbol_cache): Add destructor and
5570 (symbol_cache_key): Move. Change type.
5571 (make_symbol_cache, free_symbol_cache): Remove.
5572 (get_symbol_cache): Update.
5573 (symbol_cache_cleanup): Remove.
5574 (ALL_PSPACES, symbol_cache_flush)
5575 (maintenance_print_symbol_cache)
5576 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5579 2019-05-08 Tom Tromey <tom@tromey.com>
5581 * symtab.c (struct main_info): Add destructor and initializers.
5582 (main_progspace_key): Move. Change type.
5583 (get_main_info): Update.
5584 (main_info_cleanup): Remove.
5585 (_initialize_symtab): Update.
5587 2019-05-08 Tom Tromey <tom@tromey.com>
5589 * registry.h (DECLARE_REGISTRY): Define the _key class.
5591 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5593 * NEWS: Merge two 'New commands' sections.
5595 2019-05-08 Joel Brobecker <brobecker@adacore.com>
5597 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5598 parameter and use Ada language definition instead.
5599 (ada_val_print_ptr): Remove unused language parameter.
5600 (ada_val_print_num): Remove language parameter and use Ada language
5602 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5604 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5605 parameter and use Ada language definition instead.
5606 (ada_val_print_1): Update all ada_val_print_xxx calls.
5607 Remove language parameter.
5608 (ada_val_print): Update ada_val_print_1 call.
5610 2019-05-08 Tom Tromey <tromey@adacore.com>
5612 * remote.c (remote_hw_watchpoint_limit)
5613 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5616 2019-05-08 Tom Tromey <tromey@adacore.com>
5618 * maint.c (_initialize_maint_cmds): Move initialization code to
5620 (watchdog, show_watchdog): Move to remote.c.
5621 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5623 (_initialize_remote): Move initialization code from maint.c.
5624 * defs.h (watchdog): Don't declare.
5626 2019-05-08 Tom Tromey <tromey@adacore.com>
5628 * tui/tui-interp.c: Include main.h.
5629 * interps.c: Include main.h.
5630 * main.h (interpreter_p): Declare.
5631 * defs.h (interpreter_p): Don't declare.
5633 2019-05-08 Tom Tromey <tromey@adacore.com>
5635 * dwarf2loc.c: Include dwarf2read.h.
5636 * defs.h (read_unsigned_leb128): Don't declare.
5637 * dwarf2read.h (read_unsigned_leb128): Declare.
5639 2019-05-08 Tom Tromey <tromey@adacore.com>
5641 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5644 2019-05-08 Tom Tromey <tromey@adacore.com>
5646 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5647 when no wrap column is set.
5649 2019-05-08 Tom Tromey <tromey@adacore.com>
5651 * c-lang.c (c_get_string): Handle non-C-style arrays.
5653 2019-05-08 Tom Tromey <tromey@adacore.com>
5655 * typeprint.c (print_offset_data::update): Print the bit offset,
5656 not the number of bits remaining.
5658 2019-05-08 Tom Tromey <tromey@adacore.com>
5660 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5661 padding at end of comment.
5663 2019-05-08 Tom Tromey <tromey@adacore.com>
5665 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5668 2019-05-06 Tom Tromey <tom@tromey.com>
5670 * common/scoped_mmap.c: Include common-defs.h.
5671 * common/scoped_mmap.h: Don't include config.h.
5673 2019-05-04 Tom Tromey <tom@tromey.com>
5675 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5676 (struct aarch64_call_info): Add initializers.
5677 <si>: Now a std::vector.
5678 (pass_on_stack, aarch64_push_dummy_call): Update.
5680 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
5681 Tom Tromey <tom@tromey.com>
5683 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5684 (ppc_threads): Now a std::vector. Now static.
5685 (hwdebug_find_thread_points_by_tid)
5686 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5689 2019-05-04 Tom Tromey <tom@tromey.com>
5691 * arc-tdep.c (arc_tdesc_init): Return bool.
5693 2019-05-04 Tom Tromey <tom@tromey.com>
5695 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5696 Use gdb_assert_not_reached.
5698 2019-05-04 Tom Tromey <tom@tromey.com>
5700 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5703 2019-05-04 Tom Tromey <tom@tromey.com>
5705 * arc-tdep.c (arc_tdesc_init): Use bool.
5707 2019-05-04 Tom Tromey <tom@tromey.com>
5709 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5711 2019-05-04 Tom Tromey <tom@tromey.com>
5713 * cli/cli-cmds.c (valid_command_p): Return bool.
5715 2019-05-04 Tom Tromey <tom@tromey.com>
5717 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5718 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5720 2019-05-04 Raul Tambre <raul@tambre.ee>
5722 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5723 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5724 operator for comparison.
5726 2019-05-04 Tom Tromey <tom@tromey.com>
5728 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5729 (lookup_partial_symbol, print_partial_symbols)
5730 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5731 (psymbol_compare): Update.
5732 (add_psymbol_to_bcache): Clear the entire psymbol.
5733 (maintenance_check_psymtabs): Update.
5734 * psympriv.h (struct partial_symbol): Don't derive from
5735 general_symbol_info.
5736 <obj_section, unrelocated_address, address,
5737 set_unrelocated_address>: Update.
5738 <ginfo>: New member.
5739 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5740 (debug_names::write_psymbols): Update.
5742 2019-05-04 Tom de Vries <tdevries@suse.de>
5744 * contrib/cc-with-tweaks.sh: Support -n arg.
5746 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5748 * corelow.c (core_target::detach): Ensure frame cache and
5749 register caches are cleared.
5750 inferior.c (exit_inferior_1): Likewise.
5752 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5753 Tom Tromey <tom@tromey.com>
5755 * dictionary.c (collate_pending_symbols_by_language): Remove
5756 "struct" from foreach.
5757 * symtab.c (lookup_global_symbol_from_objfile)
5758 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5760 * ser-tcp.c (net_open): Remove "struct" from foreach.
5761 * objfiles.c (objfile_relocate, objfile_rebase)
5762 (objfile_has_symbols): Remove "struct" from foreach.
5763 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5765 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5767 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5768 "struct" from foreach.
5769 * ada-lang.c (create_excep_cond_exprs)
5770 (ada_exception_catchpoint_cond_string): Remove "struct" from
5773 2019-05-03 Tom Tromey <tromey@adacore.com>
5775 * ada-exp.y (convert_char_literal): Check suffix of each
5778 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5781 * ada-exp.y (yywrap): Don't define.
5782 * ada-lex.l (%option): Add noyywrap
5785 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5787 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5788 _WIN32_WINNT to the XP level, unless already defined to a higher
5791 * unittests/parse-connection-spec-selftests.c:
5793 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5796 * symfile.c (find_separate_debug_file): Remove colon from the
5797 drive spec of DOS/Windows file names of the target, so that the
5798 file name produced from DEBUGDIR and the target's directory will
5799 be valid on DOS/Windows systems.
5801 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5803 * rust-lang.c (val_print_struct): Handle printing structures
5806 2019-05-02 Tom Tromey <tromey@adacore.com>
5808 * valarith.c (_initialize_valarith): Remove.
5810 2019-05-01 Tom Tromey <tromey@adacore.com>
5812 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5815 2019-05-01 Tom Tromey <tromey@adacore.com>
5817 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5818 for big-endian copies.
5820 2019-04-30 Ali Tamur <tamur@google.com>
5821 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5822 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5823 (read_3_bytes): New function.
5825 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5827 * windows-nat.c (main_thread_id): Delete.
5828 (handle_output_debug_string): Replace main_thread_id by
5829 current_event.dwThreadId.
5830 (fake_create_process): Likewise.
5831 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5832 Do not set main_thread_id.
5833 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5834 current_event.dwThreadId.
5835 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5837 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5839 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5840 Use current_event.dwThreadId instead of main_thread_id.
5842 2019-04-30 Tom Tromey <tromey@adacore.com>
5844 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5845 (create_excep_cond_exprs): Iterate over program spaces.
5846 (ada_exception_catchpoint_cond_string): Examine all minimal
5847 symbols for exception types.
5849 2019-04-30 Tom Tromey <tromey@adacore.com>
5852 * dwarf2read.c (process_structure_scope): Handle case where type
5853 has template parameters but no symbol was created.
5855 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5856 Chris January <chris.january@arm.com>
5858 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5860 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5862 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5864 * f-typeprint.c (f_print_type): Update rules for printing
5866 (f_type_print_varspec_suffix): Likewise.
5868 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5869 Chris January <chris.january@arm.com>
5871 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5874 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5876 * f-lang.c (build_fortran_types): Change name of void type to
5878 * f-typeprint.c (f_type_print_base): Print the name of the void
5879 type, rather than a fixed string.
5880 * f-valprint.c (f_decorations): Use lower case void string.
5882 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5883 Chris January <chris.january@arm.com>
5885 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5888 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5889 Chris January <chris.january@arm.com>
5890 David Lecomber <david.lecomber@arm.com>
5892 * f-exp.y (BINOP_INTRINSIC): New token.
5893 (exp): New parser rule handling BINOP_INTRINSIC.
5894 (f77_keywords): Add new builtin procedures.
5895 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5896 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5897 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5898 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5899 (print_unop_subexp_f): New function.
5900 (print_binop_subexp_f): New function.
5901 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5902 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5903 (dump_subexp_body_f): Likewise.
5904 (operator_check_f): Likewise.
5905 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5906 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5908 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5910 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5912 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5913 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5914 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5915 (operator_length_f): New fuction.
5916 (print_subexp_f): New function.
5917 (op_name_f): New function.
5918 (dump_subexp_body_f): New function.
5919 (operator_check_f): New function.
5920 (exp_descriptor_f): Replace standard expression handling functions
5922 * gdb/fortran-operator.def: New file.
5923 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5924 * gdb/std-operator.def: Remove UNOP_KIND.
5926 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5928 * std-operator.def: Remove unbalanced, stray double quote
5931 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5932 Chris January <chris.january@arm.com>
5933 Daniel Everett <daniel.everett@arm.com>
5934 Nick Forrington <nick.forrington@arm.com>
5935 Richard Bunt <richard.bunt@arm.com>
5937 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5938 of depth when printing anonymous structs or unions.
5939 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5940 Don't print either the top-level value, or the children if the
5941 max-depth is exceeded.
5942 (ppscm_print_children): When printing the key of a map, allow one
5943 extra level of depth.
5944 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5945 print either the top-level value, or the children if the max-depth
5947 (print_children): When printing the key of a map, allow one extra
5949 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5950 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5951 (user_print_options): Initialise max_depth field.
5952 (val_print_scalar_or_string_type_p): New function.
5953 (val_print): Check to see if the max depth has been reached.
5954 (val_print_check_max_depth): Define new function.
5955 (show_print_max_depth): New function.
5956 (_initialize_valprint): Add 'print max-depth' option.
5957 * valprint.h (struct value_print_options) <max_depth>: New field.
5958 (val_print_check_max_depth): Declare new function.
5959 * NEWS: Document new feature.
5961 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5963 * ada-lang.c (ada_language_defn): Initialise new field.
5964 * c-lang.c (c_is_string_type_p): New function.
5965 (c_language_defn): Initialise new field.
5966 (cplus_language_defn): Initialise new field.
5967 (asm_language_defn): Initialise new field.
5968 (minimal_language_defn): Initialise new field.
5969 * c-lang.h (c_is_string_type_p): Declare new function.
5970 * d-lang.c (d_language_defn): Initialise new field.
5971 * f-lang.c (f_is_string_type_p): New function.
5972 (f_language_defn): Initialise new field.
5973 * go-lang.c (go_is_string_type_p): New function.
5974 (go_language_defn): Initialise new field.
5975 * language.c (default_is_string_type_p): New function.
5976 (unknown_language_defn): Initialise new field.
5977 (auto_language_defn): Initialise new field.
5978 * language.h (struct language_defn) <la_is_string_type_p>: New
5980 (default_is_string_type_p): Declare new function.
5981 * m2-lang.c (m2_language_defn): Initialise new field.
5982 * objc-lang.c (objc_language_defn): Initialise new field.
5983 * opencl-lang.c (opencl_language_defn): Initialise new field.
5984 * p-lang.c (pascal_is_string_type_p): New function.
5985 (pascal_language_defn): Initialise new field.
5986 * rust-lang.c (rust_is_string_type_p): New function.
5987 (rust_language_defn): Initialise new field.
5989 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5991 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5993 * ada-lang.c (ada_language_defn): Initialise new field.
5994 * c-lang.c (c_language_defn): Likewise.
5995 (cplus_language_defn): Likewise.
5996 (asm_language_defn): Likewise.
5997 (minimal_language_defn): Likewise.
5998 * d-lang.c (d_language_defn): Likewise.
5999 * f-lang.c (f_language_defn): Likewise.
6000 * go-lang.c (go_language_defn): Likewise.
6001 * language.c (unknown_language_defn): Likewise.
6002 (auto_language_defn): Likewise.
6003 * m2-lang.c (m2_language_defn): Likewise.
6004 * objc-lang.c (objc_language_defn): Likewise.
6005 * opencl-lang.c (opencl_language_defn): Likewise.
6006 * p-lang.c (pascal_language_defn): Likewise.
6007 * rust-lang.c (rust_language_defn): Likewise.
6009 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6011 * ada-lang.c (ada_is_character_type): Change return type to bool.
6012 (ada_is_string_type): Likewise.
6013 * ada-lang.h (ada_is_character_type): Update declaration
6014 (ada_is_string_type): Likewise.
6016 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6018 Support style in 'frame|thread apply'
6020 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6021 * record.c (record_start, record_stop): Update callers of
6022 execute_command_to_string with false.
6023 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6024 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6026 (class string_file): New constructor with term_out parameter.
6027 Override methods term_out and can_emit_style_escape. New member
6029 (class stdio_file): Override can_emit_style_escape.
6030 (class tee_file): Override term_out and can_emit_style_escape.
6031 * utils.h (can_emit_style_escape): Remove.
6032 * utils.c (can_emit_style_escape): Likewise.
6033 Update all callers of can_emit_style_escape (SOMESTREAM) to
6034 SOMESTREAM->can_emit_style_escape.
6035 * source-cache.c (source_cache::get_source_lines): Likewise.
6036 * stack.c (frame_apply_command_count): Call execute_command_to_string
6037 passing the term_out characteristic of the current gdb_stdout.
6038 * thread.c (thr_try_catch_cmd): Likewise.
6039 * top.c (execute_command_to_string): pass term_out parameter
6040 to construct the string_file for the command output.
6041 * ui-file.c (term_cli_styling): New function (most code moved
6042 from utils.c can_emit_style_escape).
6043 (string_file::string_file, string_file::can_emit_style_escape,
6044 stdio_file::can_emit_style_escape, tee_file::term_out,
6045 tee_file::can_emit_style_escape): New functions.
6047 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6049 * NEWS: Mention the new set|show may-call-functions.
6050 * infcall.c (may_call_functions_p): New variable.
6051 (show_may_call_functions_p): New function.
6052 (call_function_by_hand_dummy): Throws an error if not
6054 (_initialize_infcall): Call add_setshow_boolean_cmd for
6057 2019-04-25 Keith Seitz <keiths@redhat.com>
6060 * cp-support.c (inspect_type): Don't attempt substitutions
6061 of symbol with the same name.
6063 2019-04-25 Tom Tromey <tromey@adacore.com>
6066 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6069 2019-04-25 Tom Tromey <tromey@adacore.com>
6071 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6073 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6074 (gdb_xml_parser::parse): Use std::move.
6075 * python/python-internal.h (gdbpy_convert_exception): Take a const
6077 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6079 * python/py-utils.c (gdbpy_convert_exception): Take a const
6081 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6083 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6085 * mi/mi-main.c (mi_print_exception): Take a const reference.
6086 * main.c (handle_command_errors): Take a const reference.
6087 * linespec.c (parse_linespec): Use std::move.
6088 * infcall.c (run_inferior_call): Use std::move.
6089 (call_function_by_hand_dummy): Use std::move.
6090 * exec.c (try_open_exec_file): Use std::move.
6091 * exceptions.h (exception_print, exception_fprintf)
6092 (exception_print_same): Update.
6093 * exceptions.c (print_exception, exception_print)
6094 (exception_fprintf, exception_print_same): Change parameters to
6096 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6097 * common/new-op.c: Use std::move.
6098 * common/common-exceptions.h (struct gdb_exception): Add move
6100 (struct gdb_exception_error, struct gdb_exception_quit, struct
6101 gdb_quit_bad_alloc): Change constructor to move constructor.
6102 (throw_exception): Change parameter to rvalue reference.
6103 * common/common-exceptions.c (throw_exception): Take rvalue
6105 * cli/cli-interp.c (safe_execute_command): Use std::move.
6106 * breakpoint.c (insert_bp_location, location_to_sals): Use
6109 2019-04-25 Tom Tromey <tromey@adacore.com>
6111 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6112 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6113 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6114 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6115 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6116 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6117 guile/scm-value.c: Use unpack.
6118 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6119 gdbscm_gdb_exception.
6120 (gdbscm_throw_gdb_exception): Likewise.
6121 (struct gdbscm_gdb_exception): New.
6122 (unpack): New function.
6123 (gdbscm_wrap): Use unpack.
6125 2019-04-25 Tom Tromey <tromey@adacore.com>
6127 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6128 (gdb_rl_callback_handler): Use std::move.
6129 * common/common-exceptions.h (struct gdb_exception): Add move
6130 assignment operator.
6131 (throw_exception_sjlj): Change "exception" to const reference.
6132 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6133 (throw_exception_sjlj): Change "exception" to const reference.
6135 2019-04-25 Tom Tromey <tromey@adacore.com>
6137 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6138 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6139 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6141 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6143 * mi/mi-interp.c (mi_interp::exec): Update.
6144 * linespec.c (parse_linespec): Update.
6145 * infcall.c (run_inferior_call): Update.
6146 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6147 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6148 (gdbscm_lookup_global_symbol): Update.
6149 * guile/scm-param.c (gdbscm_parameter_value): Update.
6150 * guile/scm-frame.c (gdbscm_frame_read_register)
6151 (gdbscm_frame_read_var): Update.
6152 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6153 * exec.c (try_open_exec_file): Update.
6154 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6155 (gdb_rl_callback_handler): Update.
6156 * common/common-exceptions.h (exception_none): Don't declare.
6157 * common/common-exceptions.c (exception_none): Don't define.
6158 (struct catcher) <exception>: Update.
6159 * cli/cli-interp.c (safe_execute_command): Update.
6160 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6162 2019-04-25 Ali Tamur <tamur@google.com>
6164 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6165 (read_attribute_value): Likewise.
6166 (dwarf2_read_addr_index): Update comment.
6167 (read_str_index): Add DW_FORM_strx.
6168 (dwarf2_string_attr): Likewise.
6169 (dwarf2_const_value_attr): Likewise.
6170 (dump_die_shallow): Likewise.
6171 (dwarf2_fetch_constant_bytes): Likewise.
6172 (skip_form_bytes): Likewise.
6173 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6175 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6179 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6180 OFFSET. Verify if current mapping contains an ELF header.
6181 (linux_find_memory_regions_full): Adjust call to
6184 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6185 Kang Li <kanglictf@gmail.com>
6189 * dwarf2-frame.c (read_initial_length): Be consistent about using
6190 unsigned representation of length.
6191 (decode_frame_entry_1): Likewise. Check for wraparound of
6192 end pointer as well as buffer overflow.
6194 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6196 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6199 2019-04-24 Tom Tromey <tromey@adacore.com>
6201 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6203 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6205 * s12z-tdep.c (s12z_unwind_pc): Delete.
6206 (s12z_unwind_sp): Delete.
6207 (s12z_gdbarch_init): Don't register deleted functions with
6210 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6212 * rl78-tdep.c (rl78_unwind_sp): Delete.
6213 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6215 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6217 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6218 (xstormy16_unwind_pc): Delete.
6219 (xstormy16_dummy_id): Delete.
6220 (xstormy16_gdbarch_init): Don't register deleted functions with
6223 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6225 * vax-tdep.c (vax_unwind_pc): Delete.
6226 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6228 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6230 * v850-tdep.c (v850_unwind_sp): Delete.
6231 (v850_unwind_pc): Delete.
6232 (v850_dummy_id): Delete.
6233 (v850_gdbarch_init): Don't register deleted functions with
6236 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6238 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6239 (tilegx_unwind_pc): Delete.
6240 (tilegx_unwind_dummy_id): Delete.
6241 (tilegx_gdbarch_init): Don't register deleted functions with
6244 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6246 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6247 (tic6x_dummy_id): Delete.
6248 (tic6x_gdbarch_init): Don't register deleted functions with
6251 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6253 * sparc-tdep.c (sparc_unwind_pc): Delete.
6254 (sparc32_gdbarch_init): Don't register deleted function with
6257 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6259 * sh-tdep.c (sh_unwind_sp): Delete.
6260 (sh_unwind_pc): Delete.
6261 (sh_dummy_id): Delete.
6262 (sh_gdbarch_init): Don't register deleted functions with
6265 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6267 * score-tdep.c (score_unwind_sp): Delete.
6268 (score_unwind_pc): Delete.
6269 (score_dummy_id): Delete.
6270 (score_gdbarch_init): Don't register deleted functions with
6273 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6275 * rx-tdep.c (rx_unwind_pc): Delete.
6276 (rx_unwind_sp): Delete.
6277 (rx_dummy_id): Delete.
6278 (rx_gdbarch_init): Don't register deleted functions with
6279 gdbarch. Update comment.
6281 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6283 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6284 (rs6000_dummy_id): Delete.
6285 (rs6000_gdbarch_init): Don't register deleted functions with
6288 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6290 * or1k-tdep.c (or1k_dummy_id): Delete.
6291 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6293 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6295 * nios2-tdep.c (nios2_dummy_id): Delete.
6296 (nios2_unwind_sp): Delete.
6297 (nios2_gdbarch_init): Don't register deleted functions with
6300 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6302 * nds32-tdep.c (nds32_dummy_id): Delete.
6303 (nds32_unwind_pc): Delete.
6304 (nds32_unwind_sp): Delete.
6305 (nds32_gdbarch_init): Don't register deleted functions with
6308 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6310 * msp430-tdep.c (msp430_unwind_pc): Delete.
6311 (msp430_unwind_sp): Delete.
6312 (msp430_dummy_id): Delete.
6313 (msp430_gdbarch_init): Don't register deleted functions with
6316 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6318 * moxie-tdep.c (moxie_unwind_sp): Delete.
6319 (moxie_unwind_pc): Delete.
6320 (moxie_dummy_id): Delete.
6321 (moxie_gdbarch_init): Don't register deleted functions with
6324 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6326 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6327 (mn10300_unwind_pc): Delete.
6328 (mn10300_unwind_sp): Delete.
6329 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6331 (mn10300_frame_unwind_init): Don't register deleted functions with
6334 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6336 * mep-tdep.c (mep_unwind_pc): Delete.
6337 (mep_unwind_sp): Delete.
6338 (mep_dummy_id): Delete.
6339 (mep_gdbarch_init): Don't register deleted functions with
6342 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6344 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6345 (m68hc11_unwind_sp): Delete.
6346 (m68hc11_gdbarch_init): Don't register deleted functions with
6349 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6351 * m32r-tdep.c (m32r_unwind_sp): Delete.
6352 (m32r_unwind_pc): Delete.
6353 (m32r_dummy_id): Delete.
6354 (m32r_gdbarch_init): Don't register deleted functions with
6357 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6359 * m32c-tdep.c (m32c_unwind_pc): Delete.
6360 (m32c_unwind_sp): Delete.
6361 (m32c_dummy_id): Delete.
6362 (m32c_gdbarch_init): Don't register deleted functions with
6365 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6367 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6368 (lm32_unwind_pc): Delete.
6369 (lm32_dummy_id): Delete.
6370 (lm32_gdbarch_init): Don't register deleted functions with
6373 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6375 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6376 (iq2000_unwind_pc): Delete.
6377 (iq2000_dummy_id): Delete.
6378 (iq2000_gdbarch_init): Don't register deleted functions with
6381 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6383 * nds32-tdep.c (nds32_type_align): Delete.
6384 (nds32_push_dummy_call): Use type_align instead.
6386 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6388 * arm-tdep.c (arm_type_align): Only handle vector override case.
6389 (arm_push_dummy_call): Use type_align.
6390 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6392 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6394 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6396 (pass_on_stack): Use type_align.
6397 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6400 2019-04-23 Tom Tromey <tromey@adacore.com>
6402 * dwarf2read.c (line_header::file_name_at): Remove unused
6405 2019-04-23 Tom de Vries <tdevries@suse.de>
6408 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6412 2019-03-27 Ali Tamur <tamur@google.com>
6414 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6415 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6416 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6417 (dwarf_expr_context::get_addr_index): Likewise
6418 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6419 (symbol_needs_eval_context::get_addr_index): Likewise
6420 (disassemble_dwarf_expression): Add DW_OP_addrx
6421 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6422 (read_cutu_die_from_dwo): Update comment
6423 (skip_one_die): Add DW_FORM_addrx
6424 (read_attribute_value): Likewise
6425 (var_decode_location): Add DW_OP_addrx
6426 (dwarf2_const_value_attr): Add DW_FORM_addrx
6427 (dump_die_shallow): Likewise
6428 (dwarf2_fetch_constant_bytes): Likewise
6429 (decode_locdesc): Add DW_OP_addrx
6430 (skip_form_bytes): Add DW_FORM_addrx
6432 2019-04-22 Ali Tamur <tamur@google.com>
6434 * MAINTAINERS (Write After Approval): Add self.
6436 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
6438 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6439 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6440 (open_symbol_file_object): Likewise.
6441 (svr4_default_sos): Add info parameter.
6442 (svr4_read_so_list): Likewise.
6443 (svr4_current_sos_direct): Adjust functions calls to pass down
6445 (svr4_current_sos_1): Add info parameter.
6446 (svr4_current_sos): Call get_svr4_info, pass info down to
6448 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6450 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6452 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6454 (probes_table_remove_objfile_probes): Likewise.
6455 (register_solib_event_probe): Add info parameter.
6456 (solist_update_incremental): Pass info parameter down to
6458 (disable_probes_interface): Add info parameter.
6459 (svr4_handle_solib_event): Pass current_program_space to
6460 get_svr4_info. Adjust disable_probes_interface cleanup.
6461 (svr4_create_probe_breakpoints): Add info parameter, pass it
6462 down to register_solib_event_probe.
6463 (svr4_create_solib_event_breakpoints): Add info parameter,
6464 pass it down to svr4_create_probe_breakpoints.
6465 (enable_break): Pass info down to
6466 svr4_create_solib_event_breakpoints.
6467 (svr4_solib_create_inferior_hook): Pass current_program_space to
6469 (svr4_clear_solib): Likewise.
6471 2019-04-22 Pedro Alves <palves@redhat.com>
6473 * solib-svr4.c (svr4_free_objfile_observer): New.
6474 (probe_and_action::objfile): New field.
6475 (probes_table_htab_remove_objfile_probes)
6476 (probes_table_remove_objfile_probes): New functions.
6477 (register_solib_event_probe): Add 'objfile' parameter. Store it
6478 in the new probe_and_action. Don't store the probe in 'lookup'.
6479 (svr4_create_probe_breakpoints): Pass objfile to
6480 register_solib_event_probe.
6481 (_initialize_svr4_solib): Register a free_objfile observer.
6483 2019-04-19 Tom Tromey <tom@tromey.com>
6485 * common/queue.h: Remove.
6487 2019-04-19 Tom Tromey <tom@tromey.com>
6489 * event-loop.c: Don't include "common/queue.h".
6491 2019-04-19 Tom Tromey <tom@tromey.com>
6493 * remote.c (remote_target): Use delete.
6494 * remote-notif.h: Include <list>, not "common/queue.h".
6495 (notif_client_p): Remove typedef.
6496 (remote_notif_state): Add constructor, destructor, initializer.
6497 <notif_queue>: Now a std::list.
6498 (remote_notif_state_xfree): Don't declare.
6499 * remote-notif.c (remote_notif_process, handle_notification)
6500 (remote_notif_state_allocate): Update.
6501 (~remote_notif_state): Rename from remote_notif_state_xfree.
6503 2019-04-19 Tom Tromey <tom@tromey.com>
6505 * symfile.c (reread_symbols): Update.
6506 * objfiles.c (objfile_register_static_link)
6507 (objfile_lookup_static_link): Update
6508 (~objfile) Don't delete static_links.
6509 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6511 2019-04-19 Tom Tromey <tom@tromey.com>
6513 * type-stack.h (struct type_stack) <insert>: Constify string.
6514 * type-stack.c (type_stack::insert): Constify string.
6515 * gdbtypes.h (lookup_template_type): Update.
6516 (address_space_name_to_int): Update.
6517 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6519 (lookup_template_type): Make name const.
6520 * c-exp.y: Update rules.
6521 (lex_one_token, classify_name, classify_inner_name)
6522 (c_print_token): Update.
6523 * p-exp.y: Update rules.
6525 * f-exp.y: Update rules.
6527 * d-exp.y: Update rules.
6528 (lex_one_token, classify_name, classify_inner_name): Update.
6529 * parse.c (write_dollar_variable, copy_name): Return std::string.
6530 * parser-defs.h (copy_name): Change return type.
6531 * m2-exp.y: Update rules.
6533 * go-exp.y (lex_one_token): Update.
6535 (classify_unsafe_function, classify_packaged_name)
6536 (classify_name, yylex): Update.
6538 2019-04-19 Sergei Trofimovich <siarheit@google.com>
6540 * configure.ac: add --enable-source-highlight switch.
6541 * configure: Regenerate.
6542 * top.c (print_gdb_version): plumb --enable-source-highlight
6543 status to "show configuration".
6545 2019-04-19 Tom Tromey <tromey@adacore.com>
6547 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6549 (empty_record, ada_template_to_fixed_record_type_1)
6550 (template_to_static_fixed_type)
6551 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6552 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6553 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6556 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6559 * source.c (print_source_lines_base): Advance "iter" when a
6560 control character is seen.
6562 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6564 * inferior.h (struct infcall_suspend_state_deleter):
6565 Catch exception in destructor to avoid crash.
6567 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6569 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6570 close to the add_com "shell".
6572 2019-04-18 Tom Tromey <tromey@adacore.com>
6574 * process-stratum-target.h (class process_stratum_target)
6575 <stratum>: Add "final".
6577 2019-04-17 Tom Tromey <tromey@adacore.com>
6579 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6580 against nullptr before use.
6582 2019-04-17 Alan Hayward <alan.hayward@arm.com>
6584 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6586 2019-04-17 Jim Wilson <jimw@sifive.com>
6587 Andrew Burgess <andrew.burgess@embecosm.com>
6589 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6590 code read might fail, assume 4-byte breakpoint in that case.
6592 2019-04-15 Leszek Swirski <leszeks@google.com>
6594 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6595 rather than a hand-rolled POD check when checking for forced MEMORY
6598 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6600 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6601 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6603 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6604 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6605 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6608 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6610 * aarch64-linux-nat.c
6611 (aarch64_linux_nat_target::thread_architecture): Add override.
6612 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6615 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6617 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6619 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6621 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6622 target types of size 96-bits, add some additional comments, and
6623 check that the builtin type we found was the correct size.
6625 2019-04-12 Eli Zaretskii <eliz@gnu.org>
6627 * utils.c (prompt_for_continue): Don't restore the styling at the
6628 end, as applied_style has the wrong value. This fixes styling in
6629 long lists of file names that are interrupted by the "Continue?"
6632 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6634 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6635 * c-lang.c (c_language_defn): Likewise.
6636 (cplus_language_defn): Likewise.
6637 (asm_language_defn): Likewise.
6638 (minimal_language_defn): Likewise.
6639 * d-lang.c (d_language_defn): Likewise.
6640 * f-lang.c (f_language_defn): Likewise.
6641 * go-lang.c (go_language_defn): Likewise.
6642 * language.c (unknown_language_defn): Likewise.
6643 (auto_language_defn): Likewise.
6644 * language.h (struct language_defn): Remove la_magic field.
6645 (LANG_MAGIC): Delete.
6646 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6647 * objc-lang.c (objc_language_defn): Likewise.
6648 * opencl-lang.c (opencl_language_defn): Likewise.
6649 * p-lang.c (pascal_language_defn): Likewise.
6650 * rust-lang.c (rust_language_defn): Likewise.
6652 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6654 * riscv-tdep.c (riscv_type_align): New function.
6655 (riscv_type_alignment): Delete.
6656 (riscv_arg_location): Use 'type_align'.
6657 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6659 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6661 * gdbtypes.c (type_align): A struct with no non-static fields also
6664 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6666 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6668 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6670 (riscv_struct_info::analyse): New implementation using new
6671 analyse_inner member function.
6672 (riscv_struct_info::field_offset): New member function.
6673 (riscv_struct_info::m_offsets): New member variable.
6674 (riscv_struct_info::analyse_inner): New private member function,
6675 takes the old implementation of riscv_struct_info::analyse but
6676 extended to track field offsets.
6677 (riscv_call_arg_struct): Update the struct folding special cases
6678 to handle cases where empty C++ structs, which are non-zero
6680 (riscv_arg_location): Initialise the length of each location, a
6681 non-zero length now indicates the location is in use.
6682 (riscv_push_dummy_call): Allow for the first location having a
6683 non-zero offset when setting up arguments.
6684 (riscv_return_value): Likewise, but for return values.
6686 2019-04-11 Tom Tromey <tromey@adacore.com>
6688 * utils.c (internal_vproblem): Make "msg" const.
6690 2019-04-11 Alan Hayward <alan.hayward@arm.com>
6692 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6693 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6694 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6695 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6697 2019-04-10 Kevin Buettner <kevinb@redhat.com>
6699 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6701 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6702 of amd64_collect_native_gregset.
6703 (amd64_linux_nat_target::store_registers): Likewise.
6705 2019-04-10 Tom Tromey <tom@tromey.com>
6707 * symtab.c (lookup_global_symbol_from_objfile)
6708 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6709 * objfiles.h (class separate_debug_iterator): New.
6710 (class separate_debug_range): New.
6711 (struct objfile) <separate_debug_objfiles>: New method.
6712 (objfile_separate_debug_iterate): Don't declare.
6713 * objfiles.c (separate_debug_iterator::operator++): Rename from
6714 objfile_separate_debug_iterate.
6715 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6717 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6720 2019-04-10 Tom Tromey <tom@tromey.com>
6722 * symfile.c (reread_symbols): Remove old comment.
6723 * objfiles.c (free_all_objfiles): Fix a typo.
6725 2019-04-10 Tom Tromey <tom@tromey.com>
6727 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6728 * minsyms.c (lookup_minimal_symbol): Use foreach.
6729 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6730 (lookup_minimal_symbol_solib_trampoline): Likewise.
6731 * symfile.c (reread_symbols): Use foreach.
6733 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
6734 Tom Tromey <tromey@adacore.com>
6737 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6738 (rust_lex_int_test): Change "value" to be LONGEST.
6739 (rust_lex_tests): Add test for long integer literal.
6741 2019-04-09 Tom Tromey <tromey@adacore.com>
6743 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6745 (extended_remote_target::attach): Update.
6746 (remote_target::remote_notice_new_inferior): Update.
6747 (remote_target::add_current_inferior_and_thread): Update.
6748 * inferior.c (exit_inferior_1): Use "false".
6749 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6751 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
6753 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6754 the "start" command.
6756 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6758 * python/py-inferior.c (infpy_thread_from_thread_handle):
6759 Adjust comments to reflect renaming of thread_from_thread_handle
6760 to thread_from_handle. Adjust keywords. Fix type error message.
6761 (inferior_object_methods): Add thread_from_handle. Retain
6762 thread_from_thread_handle, but mark it as deprecated.
6764 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6766 * gdbthread.h (find_thread_by_handle): Revise declaration.
6767 * thread.c (find_thread_by_handle): Likewise. Adjust
6769 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6770 support for buffer objects as handles.
6772 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6774 * python/py-infthread.c (thpy_thread_handle): New function.
6775 (thread_object_methods): Register thpy_thread_handle.
6777 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6779 * gdbthread.h (thread_to_thread_handle): Declare.
6780 * thread.c (gdbtypes.h): Include.
6781 (thread_to_thread_handle): New function.
6783 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6784 (target_thread_info_to_thread_handle): Declare.
6785 * target.c (target_thread_info_to_thread_handle): New function.
6786 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6787 * target-delegates.c: Regenerate.
6789 * linux-thread-db.c (class thread_db_target): Add method
6790 thread_info_to_thread_handle.
6791 (thread_db_target::thread_info_to_thread_handle): Define.
6792 * remote.c (class remote_target): Add new method
6793 thread_info_to_thread_handle.
6794 (remote_target::thread_info_to_thread_handle): Define.
6796 2019-04-08 Pedro Alves <palves@redhat.com>
6798 * common/common-exceptions.c (throw_exception): Don't create
6799 named object to throw; throw directly.
6800 (throw_it): Likewise. Don't initialize gdb_exception::message
6801 here, with new; pass FMT and AP to the ctor instead.
6802 * common/common-exceptions.h: Include <string>.
6803 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6804 const char *, va_list)): New ctor. Use std::make_shared.
6805 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6807 (gdb_exception_error::gdb_exception_error(enum errors, const char
6809 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6811 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6813 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6814 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6817 2019-04-08 Tom Tromey <tom@tromey.com>
6819 * valops.c (value_rtti_indirect_type): Replace throw_exception
6821 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6823 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6825 * target.c (target_translate_tls_address): Replace throw_exception
6827 * stack.c (frame_apply_command_count): Replace throw_exception
6829 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6831 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6833 * rs6000-tdep.c (rs6000_frame_cache)
6834 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6835 * remote.c: Replace throw_exception with throw.
6836 * record-full.c (record_full_message, record_full_wait_1)
6837 (record_full_restore): Replace throw_exception with throw.
6839 (get_thread_current_frame_id, record_btrace_start_replaying)
6840 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6841 (cmd_record_btrace_start): Replace throw_exception with throw.
6842 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6844 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6845 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6847 (find_linespec_symbols): Replace throw_exception with throw.
6848 * infrun.c (displaced_step_prepare, resume): Replace
6849 throw_exception with throw.
6850 * infcmd.c (post_create_inferior): Replace throw_exception with
6852 * inf-loop.c (inferior_event_handler): Replace throw_exception
6854 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6855 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6856 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6857 (get_prev_frame_always, get_frame_pc_if_available)
6858 (get_frame_address_in_block_if_available, get_frame_language):
6859 Replace throw_exception with throw.
6860 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6861 throw_exception with throw.
6862 * eval.c (fetch_subexp_value, evaluate_var_value)
6863 (evaluate_funcall, evaluate_subexp_standard): Replace
6864 throw_exception with throw.
6865 * dwarf2loc.c (call_site_find_chain)
6866 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6867 Replace throw_exception with throw.
6868 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6870 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6872 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6873 * completer.c (complete_line_internal): Replace throw_exception
6875 * compile/compile-object-run.c (compile_object_run): Replace
6876 throw_exception with throw.
6877 * cli/cli-script.c (process_next_line): Replace throw_exception
6879 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6880 (btrace_enable, btrace_maint_update_pt_packets): Replace
6881 throw_exception with throw.
6882 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6883 throw_exception with throw.
6884 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6885 throw_exception with throw.
6886 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6887 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6888 * aarch64-tdep.c (aarch64_make_prologue_cache)
6889 (aarch64_make_stub_cache): Replace throw_exception with throw.
6891 2019-04-08 Tom Tromey <tom@tromey.com>
6893 * common/common-exceptions.c (throw_exception): Rename from
6894 throw_exception_cxx. Remove old copy. Make argument const.
6895 (throw_it): Create and throw exception objects directly.
6896 * common/common-exceptions.h (throw_exception): Make argument
6898 (struct gdb_exception_error): Add constructor.
6899 (struct gdb_exception_quit): Add constructor.
6901 2019-04-08 Tom Tromey <tom@tromey.com>
6903 * common/common-exceptions.h (exception_rethrow): Don't declare.
6904 (TRY_SJLJ): Update comment.
6905 (TRY, CATCH, END_CATCH): Remove.
6906 * common/common-exceptions.c (exception_rethrow): Remove.
6908 2019-04-08 Tom Tromey <tom@tromey.com>
6910 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6912 (gdb_exception_error): Rename from
6913 gdb_exception_RETURN_MASK_ERROR.
6914 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6915 (gdb_quit_bad_alloc): Update.
6916 * aarch64-tdep.c: Update.
6917 * ada-lang.c: Update.
6918 * ada-typeprint.c: Update.
6919 * ada-valprint.c: Update.
6920 * amd64-tdep.c: Update.
6921 * arch-utils.c: Update.
6922 * break-catch-throw.c: Update.
6923 * breakpoint.c: Update.
6925 * c-varobj.c: Update.
6926 * cli/cli-cmds.c: Update.
6927 * cli/cli-interp.c: Update.
6928 * cli/cli-script.c: Update.
6929 * common/common-exceptions.c: Update.
6930 * common/new-op.c: Update.
6931 * common/selftest.c: Update.
6932 * compile/compile-c-symbols.c: Update.
6933 * compile/compile-cplus-symbols.c: Update.
6934 * compile/compile-object-load.c: Update.
6935 * compile/compile-object-run.c: Update.
6936 * completer.c: Update.
6937 * corelow.c: Update.
6939 * cp-support.c: Update.
6940 * cp-valprint.c: Update.
6941 * darwin-nat.c: Update.
6942 * disasm-selftests.c: Update.
6943 * dtrace-probe.c: Update.
6944 * dwarf-index-cache.c: Update.
6945 * dwarf-index-write.c: Update.
6946 * dwarf2-frame-tailcall.c: Update.
6947 * dwarf2-frame.c: Update.
6948 * dwarf2loc.c: Update.
6949 * dwarf2read.c: Update.
6951 * event-loop.c: Update.
6952 * event-top.c: Update.
6954 * f-valprint.c: Update.
6955 * fbsd-tdep.c: Update.
6956 * frame-unwind.c: Update.
6958 * gdbtypes.c: Update.
6959 * gnu-v3-abi.c: Update.
6960 * guile/guile-internal.h: Update.
6961 * guile/scm-block.c: Update.
6962 * guile/scm-breakpoint.c: Update.
6963 * guile/scm-cmd.c: Update.
6964 * guile/scm-disasm.c: Update.
6965 * guile/scm-frame.c: Update.
6966 * guile/scm-lazy-string.c: Update.
6967 * guile/scm-math.c: Update.
6968 * guile/scm-param.c: Update.
6969 * guile/scm-ports.c: Update.
6970 * guile/scm-pretty-print.c: Update.
6971 * guile/scm-symbol.c: Update.
6972 * guile/scm-symtab.c: Update.
6973 * guile/scm-type.c: Update.
6974 * guile/scm-value.c: Update.
6975 * i386-linux-tdep.c: Update.
6976 * i386-tdep.c: Update.
6977 * inf-loop.c: Update.
6978 * infcall.c: Update.
6982 * language.c: Update.
6983 * linespec.c: Update.
6984 * linux-fork.c: Update.
6985 * linux-nat.c: Update.
6986 * linux-tdep.c: Update.
6987 * linux-thread-db.c: Update.
6989 * mi/mi-cmd-break.c: Update.
6990 * mi/mi-cmd-stack.c: Update.
6991 * mi/mi-interp.c: Update.
6992 * mi/mi-main.c: Update.
6993 * objc-lang.c: Update.
6994 * p-valprint.c: Update.
6996 * ppc-linux-tdep.c: Update.
6997 * printcmd.c: Update.
6998 * python/py-arch.c: Update.
6999 * python/py-breakpoint.c: Update.
7000 * python/py-cmd.c: Update.
7001 * python/py-finishbreakpoint.c: Update.
7002 * python/py-frame.c: Update.
7003 * python/py-framefilter.c: Update.
7004 * python/py-gdb-readline.c: Update.
7005 * python/py-inferior.c: Update.
7006 * python/py-infthread.c: Update.
7007 * python/py-lazy-string.c: Update.
7008 * python/py-linetable.c: Update.
7009 * python/py-objfile.c: Update.
7010 * python/py-param.c: Update.
7011 * python/py-prettyprint.c: Update.
7012 * python/py-progspace.c: Update.
7013 * python/py-record-btrace.c: Update.
7014 * python/py-record.c: Update.
7015 * python/py-symbol.c: Update.
7016 * python/py-type.c: Update.
7017 * python/py-unwind.c: Update.
7018 * python/py-utils.c: Update.
7019 * python/py-value.c: Update.
7020 * python/python.c: Update.
7021 * record-btrace.c: Update.
7022 * record-full.c: Update.
7023 * remote-fileio.c: Update.
7025 * riscv-tdep.c: Update.
7026 * rs6000-aix-tdep.c: Update.
7027 * rs6000-tdep.c: Update.
7028 * rust-exp.y: Update.
7029 * rust-lang.c: Update.
7030 * s390-tdep.c: Update.
7031 * selftest-arch.c: Update.
7032 * solib-dsbt.c: Update.
7033 * solib-frv.c: Update.
7034 * solib-spu.c: Update.
7035 * solib-svr4.c: Update.
7037 * sparc64-linux-tdep.c: Update.
7039 * symfile-mem.c: Update.
7040 * symmisc.c: Update.
7044 * tracefile-tfile.c: Update.
7045 * tui/tui.c: Update.
7046 * typeprint.c: Update.
7047 * unittests/cli-utils-selftests.c: Update.
7048 * unittests/parse-connection-spec-selftests.c: Update.
7050 * valprint.c: Update.
7053 * windows-nat.c: Update.
7054 * x86-linux-nat.c: Update.
7055 * xml-support.c: Update.
7057 2019-04-08 Tom Tromey <tom@tromey.com>
7059 * xml-support.c: Use C++ exception handling.
7060 * x86-linux-nat.c: Use C++ exception handling.
7061 * windows-nat.c: Use C++ exception handling.
7062 * varobj.c: Use C++ exception handling.
7063 * value.c: Use C++ exception handling.
7064 * valprint.c: Use C++ exception handling.
7065 * valops.c: Use C++ exception handling.
7066 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7068 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7069 * typeprint.c: Use C++ exception handling.
7070 * tui/tui.c: Use C++ exception handling.
7071 * tracefile-tfile.c: Use C++ exception handling.
7072 * top.c: Use C++ exception handling.
7073 * thread.c: Use C++ exception handling.
7074 * target.c: Use C++ exception handling.
7075 * symmisc.c: Use C++ exception handling.
7076 * symfile-mem.c: Use C++ exception handling.
7077 * stack.c: Use C++ exception handling.
7078 * sparc64-linux-tdep.c: Use C++ exception handling.
7079 * solib.c: Use C++ exception handling.
7080 * solib-svr4.c: Use C++ exception handling.
7081 * solib-spu.c: Use C++ exception handling.
7082 * solib-frv.c: Use C++ exception handling.
7083 * solib-dsbt.c: Use C++ exception handling.
7084 * selftest-arch.c: Use C++ exception handling.
7085 * s390-tdep.c: Use C++ exception handling.
7086 * rust-lang.c: Use C++ exception handling.
7087 * rust-exp.y: Use C++ exception handling.
7088 * rs6000-tdep.c: Use C++ exception handling.
7089 * rs6000-aix-tdep.c: Use C++ exception handling.
7090 * riscv-tdep.c: Use C++ exception handling.
7091 * remote.c: Use C++ exception handling.
7092 * remote-fileio.c: Use C++ exception handling.
7093 * record-full.c: Use C++ exception handling.
7094 * record-btrace.c: Use C++ exception handling.
7095 * python/python.c: Use C++ exception handling.
7096 * python/py-value.c: Use C++ exception handling.
7097 * python/py-utils.c: Use C++ exception handling.
7098 * python/py-unwind.c: Use C++ exception handling.
7099 * python/py-type.c: Use C++ exception handling.
7100 * python/py-symbol.c: Use C++ exception handling.
7101 * python/py-record.c: Use C++ exception handling.
7102 * python/py-record-btrace.c: Use C++ exception handling.
7103 * python/py-progspace.c: Use C++ exception handling.
7104 * python/py-prettyprint.c: Use C++ exception handling.
7105 * python/py-param.c: Use C++ exception handling.
7106 * python/py-objfile.c: Use C++ exception handling.
7107 * python/py-linetable.c: Use C++ exception handling.
7108 * python/py-lazy-string.c: Use C++ exception handling.
7109 * python/py-infthread.c: Use C++ exception handling.
7110 * python/py-inferior.c: Use C++ exception handling.
7111 * python/py-gdb-readline.c: Use C++ exception handling.
7112 * python/py-framefilter.c: Use C++ exception handling.
7113 * python/py-frame.c: Use C++ exception handling.
7114 * python/py-finishbreakpoint.c: Use C++ exception handling.
7115 * python/py-cmd.c: Use C++ exception handling.
7116 * python/py-breakpoint.c: Use C++ exception handling.
7117 * python/py-arch.c: Use C++ exception handling.
7118 * printcmd.c: Use C++ exception handling.
7119 * ppc-linux-tdep.c: Use C++ exception handling.
7120 * parse.c: Use C++ exception handling.
7121 * p-valprint.c: Use C++ exception handling.
7122 * objc-lang.c: Use C++ exception handling.
7123 * mi/mi-main.c: Use C++ exception handling.
7124 * mi/mi-interp.c: Use C++ exception handling.
7125 * mi/mi-cmd-stack.c: Use C++ exception handling.
7126 * mi/mi-cmd-break.c: Use C++ exception handling.
7127 * main.c: Use C++ exception handling.
7128 * linux-thread-db.c: Use C++ exception handling.
7129 * linux-tdep.c: Use C++ exception handling.
7130 * linux-nat.c: Use C++ exception handling.
7131 * linux-fork.c: Use C++ exception handling.
7132 * linespec.c: Use C++ exception handling.
7133 * language.c: Use C++ exception handling.
7134 * jit.c: Use C++ exception handling.
7135 * infrun.c: Use C++ exception handling.
7136 * infcmd.c: Use C++ exception handling.
7137 * infcall.c: Use C++ exception handling.
7138 * inf-loop.c: Use C++ exception handling.
7139 * i386-tdep.c: Use C++ exception handling.
7140 * i386-linux-tdep.c: Use C++ exception handling.
7141 * guile/scm-value.c: Use C++ exception handling.
7142 * guile/scm-type.c: Use C++ exception handling.
7143 * guile/scm-symtab.c: Use C++ exception handling.
7144 * guile/scm-symbol.c: Use C++ exception handling.
7145 * guile/scm-pretty-print.c: Use C++ exception handling.
7146 * guile/scm-ports.c: Use C++ exception handling.
7147 * guile/scm-param.c: Use C++ exception handling.
7148 * guile/scm-math.c: Use C++ exception handling.
7149 * guile/scm-lazy-string.c: Use C++ exception handling.
7150 * guile/scm-frame.c: Use C++ exception handling.
7151 * guile/scm-disasm.c: Use C++ exception handling.
7152 * guile/scm-cmd.c: Use C++ exception handling.
7153 * guile/scm-breakpoint.c: Use C++ exception handling.
7154 * guile/scm-block.c: Use C++ exception handling.
7155 * guile/guile-internal.h: Use C++ exception handling.
7156 * gnu-v3-abi.c: Use C++ exception handling.
7157 * gdbtypes.c: Use C++ exception handling.
7158 * frame.c: Use C++ exception handling.
7159 * frame-unwind.c: Use C++ exception handling.
7160 * fbsd-tdep.c: Use C++ exception handling.
7161 * f-valprint.c: Use C++ exception handling.
7162 * exec.c: Use C++ exception handling.
7163 * event-top.c: Use C++ exception handling.
7164 * event-loop.c: Use C++ exception handling.
7165 * eval.c: Use C++ exception handling.
7166 * dwarf2read.c: Use C++ exception handling.
7167 * dwarf2loc.c: Use C++ exception handling.
7168 * dwarf2-frame.c: Use C++ exception handling.
7169 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7170 * dwarf-index-write.c: Use C++ exception handling.
7171 * dwarf-index-cache.c: Use C++ exception handling.
7172 * dtrace-probe.c: Use C++ exception handling.
7173 * disasm-selftests.c: Use C++ exception handling.
7174 * darwin-nat.c: Use C++ exception handling.
7175 * cp-valprint.c: Use C++ exception handling.
7176 * cp-support.c: Use C++ exception handling.
7177 * cp-abi.c: Use C++ exception handling.
7178 * corelow.c: Use C++ exception handling.
7179 * completer.c: Use C++ exception handling.
7180 * compile/compile-object-run.c: Use C++ exception handling.
7181 * compile/compile-object-load.c: Use C++ exception handling.
7182 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7183 * compile/compile-c-symbols.c: Use C++ exception handling.
7184 * common/selftest.c: Use C++ exception handling.
7185 * common/new-op.c: Use C++ exception handling.
7186 * cli/cli-script.c: Use C++ exception handling.
7187 * cli/cli-interp.c: Use C++ exception handling.
7188 * cli/cli-cmds.c: Use C++ exception handling.
7189 * c-varobj.c: Use C++ exception handling.
7190 * btrace.c: Use C++ exception handling.
7191 * breakpoint.c: Use C++ exception handling.
7192 * break-catch-throw.c: Use C++ exception handling.
7193 * arch-utils.c: Use C++ exception handling.
7194 * amd64-tdep.c: Use C++ exception handling.
7195 * ada-valprint.c: Use C++ exception handling.
7196 * ada-typeprint.c: Use C++ exception handling.
7197 * ada-lang.c: Use C++ exception handling.
7198 * aarch64-tdep.c: Use C++ exception handling.
7200 2019-04-08 Tom Tromey <tom@tromey.com>
7202 * xml-support.c (gdb_xml_parser::parse): Update.
7203 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7204 * value.c (show_convenience): Update.
7205 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7206 (test_parse_flags_qcs): Update.
7207 * thread.c (thr_try_catch_cmd): Update.
7208 * target.c (target_translate_tls_address): Update.
7209 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7210 (info_frame_command_core, frame_apply_command_count): Update.
7211 * rust-exp.y (rust_lex_exception_test): Update.
7212 * riscv-tdep.c (riscv_print_one_register_info): Update.
7213 * remote.c (remote_target::enable_btrace): Update.
7214 * record-btrace.c (record_btrace_enable_warn): Update.
7215 * python/py-utils.c (gdbpy_convert_exception): Update.
7216 * printcmd.c (do_one_display, print_variable_and_value): Update.
7217 * mi/mi-main.c (mi_print_exception): Update.
7218 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7219 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7220 * linux-nat.c (linux_nat_target::attach): Update.
7221 * linux-fork.c (class scoped_switch_fork_info): Update.
7222 * infrun.c (displaced_step_prepare): Update.
7223 * infcall.c (call_function_by_hand_dummy): Update.
7224 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7225 * gnu-v3-abi.c (print_one_vtable): Update.
7226 * frame.c (get_prev_frame_always): Update.
7227 * f-valprint.c (info_common_command_for_block): Update.
7228 * exec.c (try_open_exec_file): Update.
7229 * exceptions.c (print_exception, exception_print)
7230 (exception_fprintf, exception_print_same): Update.
7231 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7232 * dwarf-index-cache.c (index_cache::store)
7233 (index_cache::lookup_gdb_index): Update.
7234 * darwin-nat.c (maybe_cache_shell): Update.
7235 * cp-valprint.c (cp_print_value_fields): Update.
7236 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7237 (gcc_cplus_symbol_address): Update.
7238 * compile/compile-c-symbols.c (gcc_convert_symbol)
7239 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7240 * common/selftest.c: Update.
7241 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7243 (exception_try_scope_entry, exception_try_scope_exit): Don't
7245 (struct exception_try_scope): Remove.
7246 (TRY): Don't use exception_try_scope.
7247 (struct gdb_exception): Add constructor, operator=.
7249 (struct gdb_exception_RETURN_MASK_ALL)
7250 (struct gdb_exception_RETURN_MASK_ERROR)
7251 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7252 (struct gdb_quit_bad_alloc): Update.
7253 * common/common-exceptions.c (exception_none): Change
7255 (struct catcher) <state, exception>: Initialize inline.
7256 <prev>: Remove member.
7257 (current_catcher): Remove.
7258 (catchers): New global.
7259 (exceptions_state_mc_init): Simplify.
7260 (catcher_pop): Remove.
7261 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7262 (try_scope_depth, exception_try_scope_entry)
7263 (exception_try_scope_exit): Remove.
7264 (throw_exception_sjlj): Update.
7265 (exception_messages, exception_messages_size): Remove.
7266 (throw_it): Simplify.
7267 (gdb_exception_sliced_copy): Remove.
7268 (throw_exception_cxx): Update.
7269 * cli/cli-script.c (script_from_file): Update.
7270 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7272 * ada-valprint.c (ada_val_print): Update.
7273 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7274 (create_excep_cond_exprs): Update.
7276 2019-04-08 Tom Tromey <tom@tromey.com>
7278 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7279 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7280 (TRY, CATCH, END_CATCH): Remove some definitions.
7281 * common/common-exceptions.c: Don't use GDB_XCPT.
7282 (catcher_list_size): Remove.
7283 (throw_exception, throw_it): Simplify.
7285 2019-04-05 Tom Tromey <tom@tromey.com>
7287 Revert the header-sorting patch.
7288 * ft32-tdep.c: Revert.
7289 * frv-tdep.c: Revert.
7290 * frv-linux-tdep.c: Revert.
7292 * frame-unwind.c: Revert.
7293 * frame-base.c: Revert.
7294 * fork-child.c: Revert.
7295 * findvar.c: Revert.
7296 * findcmd.c: Revert.
7297 * filesystem.c: Revert.
7298 * filename-seen-cache.h: Revert.
7299 * filename-seen-cache.c: Revert.
7300 * fbsd-tdep.c: Revert.
7301 * fbsd-nat.h: Revert.
7302 * fbsd-nat.c: Revert.
7303 * f-valprint.c: Revert.
7304 * f-typeprint.c: Revert.
7306 * extension.h: Revert.
7307 * extension.c: Revert.
7308 * extension-priv.h: Revert.
7309 * expprint.c: Revert.
7312 * exceptions.c: Revert.
7313 * event-top.c: Revert.
7314 * event-loop.c: Revert.
7316 * elfread.c: Revert.
7317 * dwarf2read.h: Revert.
7318 * dwarf2read.c: Revert.
7319 * dwarf2loc.c: Revert.
7320 * dwarf2expr.h: Revert.
7321 * dwarf2expr.c: Revert.
7322 * dwarf2-frame.c: Revert.
7323 * dwarf2-frame-tailcall.c: Revert.
7324 * dwarf-index-write.h: Revert.
7325 * dwarf-index-write.c: Revert.
7326 * dwarf-index-common.c: Revert.
7327 * dwarf-index-cache.h: Revert.
7328 * dwarf-index-cache.c: Revert.
7329 * dummy-frame.c: Revert.
7330 * dtrace-probe.c: Revert.
7333 * disasm-selftests.c: Revert.
7334 * dictionary.c: Revert.
7335 * dicos-tdep.c: Revert.
7336 * demangle.c: Revert.
7339 * darwin-nat.h: Revert.
7340 * darwin-nat.c: Revert.
7341 * darwin-nat-info.c: Revert.
7342 * d-valprint.c: Revert.
7343 * d-namespace.c: Revert.
7346 * csky-tdep.c: Revert.
7347 * csky-linux-tdep.c: Revert.
7348 * cris-tdep.c: Revert.
7349 * cris-linux-tdep.c: Revert.
7350 * cp-valprint.c: Revert.
7351 * cp-support.c: Revert.
7352 * cp-namespace.c: Revert.
7354 * corelow.c: Revert.
7355 * corefile.c: Revert.
7356 * continuations.c: Revert.
7357 * completer.h: Revert.
7358 * completer.c: Revert.
7359 * complaints.c: Revert.
7360 * coffread.c: Revert.
7361 * coff-pe-read.c: Revert.
7362 * cli-out.h: Revert.
7363 * cli-out.c: Revert.
7364 * charset.c: Revert.
7365 * c-varobj.c: Revert.
7366 * c-valprint.c: Revert.
7367 * c-typeprint.c: Revert.
7369 * buildsym.c: Revert.
7370 * buildsym-legacy.c: Revert.
7371 * build-id.h: Revert.
7372 * build-id.c: Revert.
7374 * bsd-uthread.c: Revert.
7375 * breakpoint.h: Revert.
7376 * breakpoint.c: Revert.
7377 * break-catch-throw.c: Revert.
7378 * break-catch-syscall.c: Revert.
7379 * break-catch-sig.c: Revert.
7380 * blockframe.c: Revert.
7382 * bfin-tdep.c: Revert.
7383 * bfin-linux-tdep.c: Revert.
7384 * bfd-target.c: Revert.
7386 * ax-general.c: Revert.
7389 * avr-tdep.c: Revert.
7391 * auto-load.c: Revert.
7392 * arm-wince-tdep.c: Revert.
7393 * arm-tdep.c: Revert.
7394 * arm-symbian-tdep.c: Revert.
7395 * arm-pikeos-tdep.c: Revert.
7396 * arm-obsd-tdep.c: Revert.
7397 * arm-nbsd-tdep.c: Revert.
7398 * arm-nbsd-nat.c: Revert.
7399 * arm-linux-tdep.c: Revert.
7400 * arm-linux-nat.c: Revert.
7401 * arm-fbsd-tdep.c: Revert.
7402 * arm-fbsd-nat.c: Revert.
7403 * arm-bsd-tdep.c: Revert.
7404 * arch-utils.c: Revert.
7405 * arc-tdep.c: Revert.
7406 * arc-newlib-tdep.c: Revert.
7407 * annotate.h: Revert.
7408 * annotate.c: Revert.
7409 * amd64-windows-tdep.c: Revert.
7410 * amd64-windows-nat.c: Revert.
7411 * amd64-tdep.c: Revert.
7412 * amd64-sol2-tdep.c: Revert.
7413 * amd64-obsd-tdep.c: Revert.
7414 * amd64-obsd-nat.c: Revert.
7415 * amd64-nbsd-tdep.c: Revert.
7416 * amd64-nbsd-nat.c: Revert.
7417 * amd64-nat.c: Revert.
7418 * amd64-linux-tdep.c: Revert.
7419 * amd64-linux-nat.c: Revert.
7420 * amd64-fbsd-tdep.c: Revert.
7421 * amd64-fbsd-nat.c: Revert.
7422 * amd64-dicos-tdep.c: Revert.
7423 * amd64-darwin-tdep.c: Revert.
7424 * amd64-bsd-nat.c: Revert.
7425 * alpha-tdep.c: Revert.
7426 * alpha-obsd-tdep.c: Revert.
7427 * alpha-nbsd-tdep.c: Revert.
7428 * alpha-mdebug-tdep.c: Revert.
7429 * alpha-linux-tdep.c: Revert.
7430 * alpha-linux-nat.c: Revert.
7431 * alpha-bsd-tdep.c: Revert.
7432 * alpha-bsd-nat.c: Revert.
7433 * aix-thread.c: Revert.
7435 * addrmap.c: Revert.
7436 * ada-varobj.c: Revert.
7437 * ada-valprint.c: Revert.
7438 * ada-typeprint.c: Revert.
7439 * ada-tasks.c: Revert.
7440 * ada-lang.c: Revert.
7441 * aarch64-tdep.c: Revert.
7442 * aarch64-ravenscar-thread.c: Revert.
7443 * aarch64-newlib-tdep.c: Revert.
7444 * aarch64-linux-tdep.c: Revert.
7445 * aarch64-linux-nat.c: Revert.
7446 * aarch64-fbsd-tdep.c: Revert.
7447 * aarch64-fbsd-nat.c: Revert.
7448 * aarch32-linux-nat.c: Revert.
7450 2019-04-05 Tom Tromey <tom@tromey.com>
7452 * ft32-tdep.c: Sort headers.
7453 * frv-tdep.c: Sort headers.
7454 * frv-linux-tdep.c: Sort headers.
7455 * frame.c: Sort headers.
7456 * frame-unwind.c: Sort headers.
7457 * frame-base.c: Sort headers.
7458 * fork-child.c: Sort headers.
7459 * findvar.c: Sort headers.
7460 * findcmd.c: Sort headers.
7461 * filesystem.c: Sort headers.
7462 * filename-seen-cache.h: Sort headers.
7463 * filename-seen-cache.c: Sort headers.
7464 * fbsd-tdep.c: Sort headers.
7465 * fbsd-nat.h: Sort headers.
7466 * fbsd-nat.c: Sort headers.
7467 * f-valprint.c: Sort headers.
7468 * f-typeprint.c: Sort headers.
7469 * f-lang.c: Sort headers.
7470 * extension.h: Sort headers.
7471 * extension.c: Sort headers.
7472 * extension-priv.h: Sort headers.
7473 * expprint.c: Sort headers.
7474 * exec.h: Sort headers.
7475 * exec.c: Sort headers.
7476 * exceptions.c: Sort headers.
7477 * event-top.c: Sort headers.
7478 * event-loop.c: Sort headers.
7479 * eval.c: Sort headers.
7480 * elfread.c: Sort headers.
7481 * dwarf2read.h: Sort headers.
7482 * dwarf2read.c: Sort headers.
7483 * dwarf2loc.c: Sort headers.
7484 * dwarf2expr.h: Sort headers.
7485 * dwarf2expr.c: Sort headers.
7486 * dwarf2-frame.c: Sort headers.
7487 * dwarf2-frame-tailcall.c: Sort headers.
7488 * dwarf-index-write.h: Sort headers.
7489 * dwarf-index-write.c: Sort headers.
7490 * dwarf-index-common.c: Sort headers.
7491 * dwarf-index-cache.h: Sort headers.
7492 * dwarf-index-cache.c: Sort headers.
7493 * dummy-frame.c: Sort headers.
7494 * dtrace-probe.c: Sort headers.
7495 * disasm.h: Sort headers.
7496 * disasm.c: Sort headers.
7497 * disasm-selftests.c: Sort headers.
7498 * dictionary.c: Sort headers.
7499 * dicos-tdep.c: Sort headers.
7500 * demangle.c: Sort headers.
7501 * dcache.h: Sort headers.
7502 * dcache.c: Sort headers.
7503 * darwin-nat.h: Sort headers.
7504 * darwin-nat.c: Sort headers.
7505 * darwin-nat-info.c: Sort headers.
7506 * d-valprint.c: Sort headers.
7507 * d-namespace.c: Sort headers.
7508 * d-lang.c: Sort headers.
7509 * ctf.c: Sort headers.
7510 * csky-tdep.c: Sort headers.
7511 * csky-linux-tdep.c: Sort headers.
7512 * cris-tdep.c: Sort headers.
7513 * cris-linux-tdep.c: Sort headers.
7514 * cp-valprint.c: Sort headers.
7515 * cp-support.c: Sort headers.
7516 * cp-namespace.c: Sort headers.
7517 * cp-abi.c: Sort headers.
7518 * corelow.c: Sort headers.
7519 * corefile.c: Sort headers.
7520 * continuations.c: Sort headers.
7521 * completer.h: Sort headers.
7522 * completer.c: Sort headers.
7523 * complaints.c: Sort headers.
7524 * coffread.c: Sort headers.
7525 * coff-pe-read.c: Sort headers.
7526 * cli-out.h: Sort headers.
7527 * cli-out.c: Sort headers.
7528 * charset.c: Sort headers.
7529 * c-varobj.c: Sort headers.
7530 * c-valprint.c: Sort headers.
7531 * c-typeprint.c: Sort headers.
7532 * c-lang.c: Sort headers.
7533 * buildsym.c: Sort headers.
7534 * buildsym-legacy.c: Sort headers.
7535 * build-id.h: Sort headers.
7536 * build-id.c: Sort headers.
7537 * btrace.c: Sort headers.
7538 * bsd-uthread.c: Sort headers.
7539 * breakpoint.h: Sort headers.
7540 * breakpoint.c: Sort headers.
7541 * break-catch-throw.c: Sort headers.
7542 * break-catch-syscall.c: Sort headers.
7543 * break-catch-sig.c: Sort headers.
7544 * blockframe.c: Sort headers.
7545 * block.c: Sort headers.
7546 * bfin-tdep.c: Sort headers.
7547 * bfin-linux-tdep.c: Sort headers.
7548 * bfd-target.c: Sort headers.
7549 * bcache.c: Sort headers.
7550 * ax-general.c: Sort headers.
7551 * ax-gdb.h: Sort headers.
7552 * ax-gdb.c: Sort headers.
7553 * avr-tdep.c: Sort headers.
7554 * auxv.c: Sort headers.
7555 * auto-load.c: Sort headers.
7556 * arm-wince-tdep.c: Sort headers.
7557 * arm-tdep.c: Sort headers.
7558 * arm-symbian-tdep.c: Sort headers.
7559 * arm-pikeos-tdep.c: Sort headers.
7560 * arm-obsd-tdep.c: Sort headers.
7561 * arm-nbsd-tdep.c: Sort headers.
7562 * arm-nbsd-nat.c: Sort headers.
7563 * arm-linux-tdep.c: Sort headers.
7564 * arm-linux-nat.c: Sort headers.
7565 * arm-fbsd-tdep.c: Sort headers.
7566 * arm-fbsd-nat.c: Sort headers.
7567 * arm-bsd-tdep.c: Sort headers.
7568 * arch-utils.c: Sort headers.
7569 * arc-tdep.c: Sort headers.
7570 * arc-newlib-tdep.c: Sort headers.
7571 * annotate.h: Sort headers.
7572 * annotate.c: Sort headers.
7573 * amd64-windows-tdep.c: Sort headers.
7574 * amd64-windows-nat.c: Sort headers.
7575 * amd64-tdep.c: Sort headers.
7576 * amd64-sol2-tdep.c: Sort headers.
7577 * amd64-obsd-tdep.c: Sort headers.
7578 * amd64-obsd-nat.c: Sort headers.
7579 * amd64-nbsd-tdep.c: Sort headers.
7580 * amd64-nbsd-nat.c: Sort headers.
7581 * amd64-nat.c: Sort headers.
7582 * amd64-linux-tdep.c: Sort headers.
7583 * amd64-linux-nat.c: Sort headers.
7584 * amd64-fbsd-tdep.c: Sort headers.
7585 * amd64-fbsd-nat.c: Sort headers.
7586 * amd64-dicos-tdep.c: Sort headers.
7587 * amd64-darwin-tdep.c: Sort headers.
7588 * amd64-bsd-nat.c: Sort headers.
7589 * alpha-tdep.c: Sort headers.
7590 * alpha-obsd-tdep.c: Sort headers.
7591 * alpha-nbsd-tdep.c: Sort headers.
7592 * alpha-mdebug-tdep.c: Sort headers.
7593 * alpha-linux-tdep.c: Sort headers.
7594 * alpha-linux-nat.c: Sort headers.
7595 * alpha-bsd-tdep.c: Sort headers.
7596 * alpha-bsd-nat.c: Sort headers.
7597 * aix-thread.c: Sort headers.
7598 * agent.c: Sort headers.
7599 * addrmap.c: Sort headers.
7600 * ada-varobj.c: Sort headers.
7601 * ada-valprint.c: Sort headers.
7602 * ada-typeprint.c: Sort headers.
7603 * ada-tasks.c: Sort headers.
7604 * ada-lang.c: Sort headers.
7605 * aarch64-tdep.c: Sort headers.
7606 * aarch64-ravenscar-thread.c: Sort headers.
7607 * aarch64-newlib-tdep.c: Sort headers.
7608 * aarch64-linux-tdep.c: Sort headers.
7609 * aarch64-linux-nat.c: Sort headers.
7610 * aarch64-fbsd-tdep.c: Sort headers.
7611 * aarch64-fbsd-nat.c: Sort headers.
7612 * aarch32-linux-nat.c: Sort headers.
7614 2019-04-04 Tom Tromey <tom@tromey.com>
7616 * varobj.c (varobj_create): Update.
7617 * rust-exp.y (struct rust_parser) <update_innermost_block,
7618 lookup_symbol>: New methods.
7619 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7621 (rust_parser::rust_lookup_type)
7622 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7623 * printcmd.c (display_command, do_one_display): Update.
7624 * parser-defs.h (struct parser_state) <parser_state>: Add
7625 "tracker" parameter.
7626 (block_tracker): New member.
7627 (class innermost_block_tracker) <innermost_block_tracker>: Add
7629 <reset>: Remove method.
7630 (innermost_block): Don't declare.
7631 (null_post_parser): Update.
7632 * parse.c (innermost_block): Remove global.
7633 (write_dollar_variable): Update.
7634 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7635 Remove "tracker_types" parameter.
7636 (parse_expression): Add "tracker" parameter.
7637 (parse_expression_for_completion): Update.
7638 (null_post_parser): Add "tracker" parameter.
7639 * p-exp.y: Update rules.
7640 * m2-exp.y: Update rules.
7641 * language.h (struct language_defn) <la_post_parser>: Add
7642 "tracker" parameter.
7643 * go-exp.y: Update rules.
7644 * f-exp.y: Update rules.
7645 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7647 * d-exp.y: Update rules.
7648 * c-exp.y: Update rules.
7649 * breakpoint.c (set_breakpoint_condition): Create an
7650 innermost_block_tracker.
7651 (watch_command_1): Likewise.
7652 * ada-lang.c (resolve): Add "tracker" parameter.
7653 (resolve_subexp): Likewise.
7654 * ada-exp.y (write_var_from_sym): Update.
7656 2019-04-04 Tom Tromey <tom@tromey.com>
7658 * type-stack.h: New file.
7659 * type-stack.c: New file.
7660 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7662 (insert_into_type_stack, insert_type, push_type, push_type_int)
7663 (insert_type_address_space, pop_type, pop_type_int)
7664 (pop_typelist, pop_type_stack, append_type_stack)
7665 (push_type_stack, get_type_stack, push_typelist)
7666 (follow_type_instance_flags, follow_types): Don't declare.
7667 * parse.c (type_stack): Remove global.
7668 (parse_exp_in_context): Update.
7669 (insert_into_type_stack, insert_type, push_type, push_type_int)
7670 (insert_type_address_space, pop_type, pop_type_int)
7671 (pop_typelist, pop_type_stack, append_type_stack)
7672 (push_type_stack, get_type_stack, push_typelist)
7673 (follow_type_instance_flags, follow_types): Remove (moved to
7675 * f-exp.y (type_stack): New global.
7677 (push_kind_type, f_parse): Update.
7678 * d-exp.y (type_stack): New global.
7681 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7683 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7684 (HFILES_NO_SRCDIR): Add type-stack.h.
7686 2019-04-04 Tom Tromey <tom@tromey.com>
7688 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7689 (rust_parser::convert_ast_to_expression, rust_parse)
7690 (rust_lex_test_completion, rust_lex_tests): Update.
7691 * parser-defs.h (struct expr_completion_state): New.
7692 (struct parser_state) <parser_state>: Add completion parameter.
7693 <mark_struct_expression, mark_completion_tag>: New methods.
7694 <parse_completion, m_completion_state>: New members.
7695 (prefixify_expression, null_post_parser): Update.
7696 (mark_struct_expression, mark_completion_tag): Don't declare.
7697 * parse.c (parse_completion, expout_last_struct)
7698 (expout_tag_completion_type, expout_completion_name): Remove
7700 (parser_state::mark_struct_expression)
7701 (parser_state::mark_completion_tag): Now methods.
7702 (prefixify_expression): Add last_struct parameter.
7703 (prefixify_subexp): Likewise.
7704 (parse_exp_1): Update.
7705 (parse_exp_in_context): Add cstate parameter. Update.
7706 (parse_expression_for_completion): Create an
7707 expr_completion_state.
7708 (null_post_parser): Add "completion" parameter.
7709 * p-exp.y: Update rules.
7711 * language.h (struct language_defn) <la_post_parser>: Add
7712 "completing" parameter.
7713 * go-exp.y: Update rules.
7714 (lex_one_token): Update.
7715 * expression.h (parse_completion): Don't declare.
7716 * d-exp.y: Update rules.
7717 (lex_one_token): Update rules.
7718 * c-exp.y: Update rules.
7719 (lex_one_token): Update.
7720 * ada-lang.c (resolve): Add "parse_completion" parameter.
7721 (resolve_subexp): Likewise.
7722 (ada_resolve_function): Likewise.
7724 2019-04-04 Tom Tromey <tom@tromey.com>
7726 * parser-defs.h (struct parser_state) <start_arglist,
7727 end_arglist>: New methods.
7728 <arglist_len, m_funcall_chain>: New members.
7729 (arglist_len, start_arglist, end_arglist): Don't declare.
7730 * parse.c (arglist_len, funcall_chain): Remove global.
7731 (start_arglist, end_arglist): Remove functions.
7732 (parse_exp_in_context): Update.
7733 * p-exp.y: Update rules.
7734 * m2-exp.y: Update rules.
7735 * go-exp.y: Update rules.
7736 * f-exp.y: Update rules.
7737 * d-exp.y: Update rules.
7738 * c-exp.y: Update rules.
7740 2019-04-04 Tom Tromey <tom@tromey.com>
7742 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7743 lex_operator, push_back>: New methods.
7745 (rust_parser::lex_hex, lex_escape): Rename and update.
7746 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7747 (rust_parser::lex_operator): Rename and update.
7748 (rust_parser::lex_number, rustyylex, rustyyerror)
7749 (rust_lex_test_init, rust_lex_test_sequence)
7750 (rust_lex_test_push_back, rust_lex_tests): Update.
7751 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7753 <lexptr, prev_lexptr>: New members.
7754 (lexptr, prev_lexptr): Don't declare.
7755 * parse.c (lexptr, prev_lexptr): Remove globals.
7756 (parse_exp_in_context): Update.
7757 * p-exp.y (yylex, yyerror): Update.
7758 * m2-exp.y (parse_number, yylex, yyerror): Update.
7759 * go-exp.y (lex_one_token, yyerror): Update.
7760 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7761 * d-exp.y (lex_one_token, yyerror): Update.
7762 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7763 (lex_one_token, yyerror): Update.
7764 * ada-lex.l (YY_INPUT): Update.
7765 (rewind_to_char): Update.
7766 * ada-exp.y (yyerror): Update.
7768 2019-04-04 Tom Tromey <tom@tromey.com>
7770 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7771 * parser-defs.h (struct parser_state) <parser_state>: Add new
7773 <comma_terminates>: New member.
7774 (comma_terminates): Don't declare global.
7775 * parse.c (comma_terminates): Remove global.
7776 (parse_exp_in_context): Update.
7777 * p-exp.y (yylex): Update.
7778 * m2-exp.y (yylex): Update.
7779 * go-exp.y (lex_one_token): Update.
7780 * f-exp.y (yylex): Update.
7781 * d-exp.y (lex_one_token): Update.
7782 * c-exp.y (lex_one_token): Update.
7783 * ada-lex.l: Update.
7785 2019-04-04 Tom Tromey <tom@tromey.com>
7787 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7788 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7789 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7790 * parser-defs.h (paren_depth): Don't declare.
7791 * parse.c (paren_depth): Remove global.
7792 (parse_exp_in_context): Update.
7793 * p-exp.y (paren_depth): New global.
7794 (pascal_parse): Initialize it.
7795 * m2-exp.y (paren_depth): New global.
7796 (m2_parse): Initialize it.
7797 * go-exp.y (paren_depth): New global.
7798 (go_parse): Initialize it.
7799 * f-exp.y (paren_depth): New global.
7800 (f_parse): Initialize it.
7801 * d-exp.y (paren_depth): New global.
7802 (d_parse): Initialize it.
7803 * c-exp.y (paren_depth): New global.
7804 (c_parse): Initialize it.
7805 * ada-lex.l (paren_depth): New global.
7806 (lexer_init): Initialize it.
7808 2019-04-04 Tom Tromey <tom@tromey.com>
7810 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7811 (rust_parser::convert_ast_to_type)
7812 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7813 * parser-defs.h (struct parser_state) <parser_state>: Add
7814 parameters. Initialize new members.
7815 <expression_context_block, expression_context_pc>: New members.
7816 * parse.c (expression_context_block, expression_context_pc):
7818 (parse_exp_in_context): Update.
7819 * p-exp.y: Update all rules.
7821 * m2-exp.y: Update all rules.
7823 * go-exp.y (yylex): Update.
7824 * f-exp.y (yylex): Update.
7825 * d-exp.y: Update all rules.
7827 * c-exp.y: Update all rules.
7828 (lex_one_token, classify_name, yylex, c_parse): Update.
7829 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7831 2019-04-04 Tom Tromey <tom@tromey.com>
7833 * gdbarch.h, gdbarch.c: Rebuild.
7834 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7836 (struct stap_parse_info): Replace "parser_state" with
7838 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7839 (parser_state): New class.
7840 * parse.c (expr_builder): Rename.
7841 (expr_builder::release): Rename.
7842 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7843 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7844 (write_exp_elt_longcst, write_exp_elt_floatcst)
7845 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7846 (write_exp_string_vector, write_exp_bitstring)
7847 (write_exp_msymbol, mark_struct_expression)
7848 (write_dollar_variable)
7849 (insert_type_address_space, increase_expout_size): Replace
7850 "parser_state" with "expr_builder".
7851 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7852 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7853 "parser_state" with "expr_builder".
7855 2019-04-04 Tom Tromey <tom@tromey.com>
7857 * rust-exp.y: Replace "parse_language" with method call.
7859 (yylex): Replace "parse_language" with method call.
7861 (yylex): Replace "parse_language" with method call.
7862 * go-exp.y (classify_name): Replace "parse_language" with method
7864 * f-exp.y (yylex): Replace "parse_language" with method call.
7865 * d-exp.y (lex_one_token): Replace "parse_language" with method
7868 (lex_one_token, classify_name, yylex): Replace "parse_language"
7870 * ada-exp.y (find_primitive_type, type_char)
7871 (type_system_address): Replace "parse_language" with method call.
7873 2019-04-04 Tom Tromey <tom@tromey.com>
7875 * rust-exp.y: Replace "parse_gdbarch" with method call.
7876 * parse.c (write_dollar_variable, insert_type_address_space):
7877 Replace "parse_gdbarch" with method call.
7878 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7880 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7882 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7883 "parse_gdbarch" with method call.
7884 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7886 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7887 "parse_gdbarch" with method call.
7888 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7889 "parse_gdbarch" with method call.
7890 * c-exp.y (parse_type, parse_number, classify_name): Replace
7891 "parse_gdbarch" with method call.
7892 * ada-lex.l: Replace "parse_gdbarch" with method call.
7893 * ada-exp.y (parse_type, find_primitive_type, type_char)
7894 (type_system_address): Replace "parse_gdbarch" with method call.
7896 2019-04-04 Tom Tromey <tom@tromey.com>
7898 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7899 * stap-probe.c (stap_parse_argument): Update.
7900 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7901 initial_size parameter.
7902 * rust-exp.y (rust_lex_tests): Update.
7903 * parse.c (parser_state): Update.
7904 (parse_exp_in_context): Update.
7905 * parser-defs.h (struct parser_state) <parser_state>: Remove
7906 "initial_size" parameter.
7908 2019-04-04 Tom Tromey <tom@tromey.com>
7910 * parser-defs.h (increase_expout_size): Don't declare.
7911 * parse.c (increase_expout_size): Now static.
7913 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7915 * gnu-nat.c (gnu_nat_target::wait): Fix
7916 target_waitstatus_to_string call.
7918 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7920 * eval.c (evaluate_subexp_standard): Handle internal functions
7921 during Fortran function call handling.
7923 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7925 * NEWS: Mention new internal functions.
7926 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7927 (read_base_type): Use dwarf2_init_complex_target_type.
7928 * value.c (creal_internal_fn): New function.
7929 (cimag_internal_fn): New function.
7930 (_initialize_values): Register new internal functions.
7932 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7934 * infrun.c (stop_all_threads): If debug_infrun, always
7935 trace the wait status after wait_one, using
7936 target_waitstatus_to_string and target_pid_to_str.
7937 (handle_inferior_event): Replace various trace of
7938 wait status kind by a single trace.
7939 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7940 wait status kind image by target_waitstatus_to_string.
7941 * target/waitstatus.c (target_waitstatus_to_string): Fix
7944 2019-04-01 Tom Tromey <tromey@adacore.com>
7947 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7949 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7950 Pedro Alves <palves@redhat.com>
7952 * top.c (quit_force): Call 'finalize_values'.
7953 * value.c (finalize_values): New function.
7954 * value.h (finalize_values): Declare.
7956 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7958 * NEWS: Announce $_gdb_major and $_gdb_minor.
7960 * top.c (init_gdb_version_vars): New function.
7961 (gdb_init): Call init_gdb_version_vars.
7963 2019-03-29 Tom Tromey <tromey@adacore.com>
7965 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7966 help text. Remove dead code.
7968 2019-03-29 Keith Seitz <keiths@redhat.com>
7970 From Siddhesh Poyarekar:
7971 * f-lang.h (f77_get_upperbound): Return LONGEST.
7972 (f77_get_lowerbound): Likewise.
7973 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7974 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7976 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7977 plongest to format print it.
7978 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7979 (f77_get_upperbound): Likewise.
7980 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7981 LOWER_BOUND to LONGEST.
7982 (f77_create_arrayprint_offset_tbl): Likewise.
7984 2019-03-29 Keith Seitz <keiths@redhat.com>
7986 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7987 %s/pulongest for TYPE_LENGTH instead of %d in format
7989 * ada-typerint.c (ada_print_type): Likewise.
7990 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7991 * compile/compile-c-support.c (generate_register_struct): Likewise.
7992 * gdbtypes.c (recursive_dump_type): Likewise.
7993 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7994 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7995 instead of %d in format strings.
7996 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7997 to std::min to ULONGEST.
7998 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7999 instead of %d in format strings.
8000 * tracepoint.c (info_scope_command): Likewise.
8001 * typeprint.c (print_offset_data::update)
8002 (print_offset_data::finish): Likewise.
8003 * xtensa-tdep.c (xtensa_store_return_value)
8004 (xtensa_push_dummy_call): Likewise.
8006 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8008 * windows-nat.c (display_selector): Fixed format specifications
8011 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8013 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8015 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8017 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8018 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8019 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8020 (nios2_linux_init_abi): Install it.
8022 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8024 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8026 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8028 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8030 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8031 Tom Tromey <tromey@adacore.com>
8033 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8035 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8037 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8038 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8039 method to compute the bounds of range types. Also print "[evaluated]"
8040 if the bounds' values come from a dynamic evaluation.
8042 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8044 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8045 whitespace when pretty printing is on.
8047 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8049 * ppc-linux-nat.c: Add include.
8051 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8053 * NEWS: Mention AArch64 Pointer Authentication.
8055 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8057 * arm-linux-nat.c: Add include.
8059 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8061 * source-cache.c (source_cache::get_source_lines): Re-read
8062 fullname after calling open_source_file.
8064 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8066 * NEWS: Mention TLS support for FreeBSD.
8068 2019-03-25 Tom Tromey <tromey@adacore.com>
8070 * minsyms.c (BUNCH_SIZE): Update comment.
8071 (~minimal_symbol_reader): Remove old comment.
8072 (compact_minimal_symbols): Update comment.
8073 (minimal_symbol_reader::install): Remove old comment. Update
8076 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8078 * s390-linux-nat.c: Add include.
8080 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8082 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8083 Call linux_get_hwcap.
8084 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8086 (aarch64_linux_get_hwcap): Remove function.
8087 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8089 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8091 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8092 * linux-tdep.c (linux_get_hwcap): Add function.
8093 (linux_get_hwcap2): Likewise.
8094 * linux-tdep.h (linux_get_hwcap): Add declaration.
8095 (linux_get_hwcap2): Likewise.
8096 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8097 (ppc_linux_get_hwcap2): Likewise.
8098 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8100 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8101 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8102 (ppc_linux_nat_target::read_description): Likewise.
8103 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8104 * s390-linux-nat.c: Likewise.
8105 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8107 2019-03-24 Tom Tromey <tom@tromey.com>
8109 * ada-lang.c (standard_lookup): Simplify initialization.
8110 (ada_lookup_symbol_nonlocal): Simplify return.
8111 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8112 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8113 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8114 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8116 * solib.c (solib_global_lookup): Simplify.
8117 * symtab.c (null_block_symbol): Remove.
8118 (symbol_cache_lookup): Simplify returns.
8119 (lookup_language_this): Simplify returns.
8120 (lookup_symbol_aux): Simplify return.
8121 (lookup_local_symbol): Simplify returns.
8122 (lookup_global_symbol_from_objfile): Simplify return.
8123 (lookup_symbol_in_objfile_symtabs)
8124 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8125 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8126 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8127 * cp-namespace.c (cp_lookup_bare_symbol)
8128 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8129 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8130 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8131 (cp_lookup_symbol_via_imports): Simplify initialization.
8132 (find_symbol_in_baseclass): Likewise.
8133 * symtab.h (null_block_symbol): Remove.
8134 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8135 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8136 (d_lookup_symbol_module): Likewise.
8137 (find_symbol_in_baseclass): Simplify initialization.
8139 2019-03-24 Tom Tromey <tom@tromey.com>
8141 * expression.h: Don't include symtab.h.
8142 (struct block): Forward declare.
8144 2019-03-24 Tom Tromey <tom@tromey.com>
8146 * c-exp.y (typebase): Remove casts.
8147 * gdbtypes.c (lookup_unsigned_typename, )
8148 (lookup_signed_typename): Remove cast.
8149 * eval.c (parse_to_comma_and_eval): Remove cast.
8150 * parse.c (write_dollar_variable): Remove cast.
8151 * block.h (struct block) <superblock>: Now const.
8152 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8153 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8154 (map_block): Make "block" const.
8155 * symfile.h (struct quick_symbol_functions)
8156 <map_matching_symbols>: Constify block argument to "callback".
8157 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8159 (find_pc_sect_compunit_symtab): Make "b" const.
8160 (find_symbol_at_address): Likewise.
8161 (search_symbols): Likewise.
8162 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8163 (dw2_debug_names_lookup_symbol): Likewise.
8164 (dw2_map_matching_symbols): Update.
8165 * p-valprint.c (pascal_val_print): Remove "block".
8166 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8167 (aux_add_nonlocal_symbols): Make "block" const.
8168 (resolve_subexp): Remove cast.
8169 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8171 (iterate_over_file_blocks): Likewise.
8172 * f-exp.y (%union) <bval>: Remove.
8173 * coffread.c (patch_opaque_types): Make "b" const.
8174 * spu-tdep.c (spu_catch_start): Make "block" const.
8175 * c-valprint.c (print_unpacked_pointer): Remove "block".
8176 * symmisc.c (dump_symtab_1): Make "b" const.
8177 (block_depth): Make "block" const.
8178 * d-exp.y (%union) <bval>: Remove.
8179 * cp-support.h (cp_lookup_rtti_type): Update.
8180 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8181 * psymtab.c (psym_lookup_symbol): Make "block" const.
8182 (maintenance_check_psymtabs): Make "b" const.
8183 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8184 (enumerate_locals, enumerate_args): Update.
8185 * python/py-symtab.c (stpy_global_block): Make "block" const.
8186 (stpy_static_block): Likewise.
8187 * inline-frame.c (block_starting_point_at): Make "new_block"
8189 * block.c (find_block_in_blockvector): Make return type const.
8190 (blockvector_for_pc_sect): Make "b" const.
8191 (find_block_in_blockvector): Make "b" const.
8193 2019-03-23 Tom Tromey <tom@tromey.com>
8195 * varobj.c (varobj_create): Update.
8196 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8197 * printcmd.c (display_command, do_one_display): Don't reset
8199 * parser-defs.h (enum innermost_block_tracker_type): Move to
8201 (innermost_block): Update comment.
8202 * parse.c (parse_exp_1): Add tracker_types parameter.
8203 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8204 tracker_types parameter. Reset innermost_block.
8205 (parse_exp_in_context): Remove.
8206 (parse_expression_for_completion): Update.
8207 * objfiles.c (~objfile): Don't reset expression_context_block or
8209 * expression.h (enum innermost_block_tracker_type): Move from
8211 (parse_exp_1): Add tracker_types parameter.
8212 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8213 reset innermost_block.
8215 2019-03-23 Tom Tromey <tom@tromey.com>
8217 * objfiles.h: Include bcache.h.
8219 2019-03-23 Tom Tromey <tom@tromey.com>
8221 * linespec.c (get_current_search_block): Use
8222 scoped_restore_current_language.
8223 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8225 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8226 Jiong Wang <jiong.wang@arm.com>
8228 * aarch64-linux-tdep.c
8229 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8231 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8233 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8234 Jiong Wang <jiong.wang@arm.com>
8236 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8238 (aarch64_analyze_prologue_test): Add PACIASP test.
8239 (aarch64_prologue_prev_register): Unmask PC value.
8241 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8242 Jiong Wang <jiong.wang@arm.com>
8244 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8245 (aarch64_dwarf2_prev_register): Unmask PC value.
8246 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8247 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8248 DW_CFA_AARCH64_negate_ra_state.
8249 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8251 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8252 Jiong Wang <jiong.wang@arm.com>
8254 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8256 (aarch64_pseudo_register_name): Likewise.
8257 (aarch64_pseudo_register_type): Likewise.
8258 (aarch64_pseudo_register_reggroup_p): Likewise.
8259 (aarch64_gdbarch_init): Add pauth registers.
8260 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8261 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8262 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8263 (struct gdbarch_tdep): Add regnum for ra_state.
8265 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8266 Jiong Wang <jiong.wang@arm.com>
8268 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8270 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8271 Jiong Wang <jiong.wang@arm.com>
8273 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8275 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8276 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8277 (aarch64_gdbarch_init): Add puth registers.
8278 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8279 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8280 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8282 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8283 Jiong Wang <jiong.wang@arm.com>
8285 * aarch64-linux-nat.c
8286 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8287 * aarch64-linux-tdep.c
8288 (aarch64_linux_core_read_description): Likewise.
8289 (aarch64_linux_get_hwcap): New function.
8290 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8291 (aarch64_linux_get_hwcap): New declaration.
8293 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8294 Jiong Wang <jiong.wang@arm.com>
8296 * aarch64-linux-nat.c
8297 (aarch64_linux_nat_target::read_description): Add pauth param.
8298 * aarch64-linux-tdep.c
8299 (aarch64_linux_core_read_description): Likewise.
8300 * aarch64-tdep.c (struct target_desc): Add in pauth.
8301 (aarch64_read_description): Add pauth param.
8302 (aarch64_gdbarch_init): Likewise.
8303 * aarch64-tdep.h (aarch64_read_description): Likewise.
8304 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8305 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8306 * features/Makefile: Add new files.
8307 * features/aarch64-pauth.c: New file.
8308 * features/aarch64-pauth.xml: New file.
8310 2019-03-20 Tom Tromey <tromey@adacore.com>
8312 * infrun.c (handle_inferior_event): Rename from
8313 handle_inferior_event_1. Create a scoped_value_mark.
8314 (handle_inferior_event): Remove.
8316 2019-03-19 Tom Tromey <tromey@adacore.com>
8318 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8319 * infrun.h (print_stop_event): Add "displays" parameter.
8320 * infrun.c (print_stop_event): Add "displays" parameter.
8322 2019-03-19 Pedro Alves <palves@redhat.com>
8324 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8325 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8326 to -1. Fix TABs vs spaces.
8327 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8328 * tui/tui-out.h (tui_ui_out) Add intro comments.
8329 <m_line, m_start_of_line>: In-class initialize, and add describing
8332 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8334 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8336 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8338 2019-03-18 Pedro Alves <palves@redhat.com>
8339 Eli Zaretskii <eliz@gnu.org>
8341 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8342 m_line and m_start_of_line.
8344 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8346 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8347 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8348 it returns a newline. This fixes a regression in TU mode, whereby
8349 the next line is output on the same screen line as the user input.
8351 2019-03-18 Tom Tromey <tromey@adacore.com>
8353 * minsyms.c (minimal_symbol_reader::install): Remove call to
8356 2019-03-18 Pedro Alves <palves@redhat.com>
8358 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8360 (apply_style): New, factored out from ...
8361 (apply_ansi_escape): ... this. Handle reverse video mode.
8362 (tui_set_reverse_mode): New function.
8363 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8364 * tui/tui-winsource.c (tui_show_source_line): Use
8365 tui_set_reverse_mode instead of setting A_STANDOUT.
8366 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8369 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
8371 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8374 2019-03-18 Tom Tromey <tromey@adacore.com>
8376 * ada-lang.c (empty_array): Add "high" parameter.
8377 (ada_evaluate_subexp): Update.
8379 2019-03-17 Sergei Trofimovich <siarheit@google.com>
8381 * unittests/string_view-selftests.c: Define
8382 _initialize_string_view_selftests unconditionally.
8384 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8387 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8389 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8392 * windows-nat.c (display_selector): Fix format specifiers.
8394 2019-03-17 Eli Zaretskii <eliz@gnu.org>
8396 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8397 tui_refill_source_window instead of tui_refresh_win, to update the
8398 current execution line. This fixes redisplay of the current line
8399 when stepping through the code with "next" or "step".
8401 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8403 * source-cache.c (source_cache::get_source_lines): Call
8404 find_source_lines to initialize s->nlines. This fixes vertical
8405 scrolling of TUI source window when the DOWN arrow is pressed.
8407 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8409 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8410 linux-thread-db.c (_initialize_thread_db): Likewise.
8412 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8414 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8415 wclrtoeol in tui_show_source_line". This reverts changes made in
8416 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8418 2019-03-15 Tom Tromey <tom@tromey.com>
8420 * symtab.h (struct minimal_symbol): Derive from
8421 general_symbol_info.
8422 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8423 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8424 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8425 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8426 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8427 (MSYMBOL_SEARCH_NAME): Update.
8428 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8429 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8430 * minsyms.c (minimal_symbol_reader::record_full): Update.
8432 2019-03-15 Tom Tromey <tom@tromey.com>
8434 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8436 2019-03-15 Tom Tromey <tom@tromey.com>
8438 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8440 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8442 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8443 (build_minimal_symbol_hash_tables)
8444 (minimal_symbol_reader::install): Update.
8446 2019-03-15 Tom Tromey <tom@tromey.com>
8448 * symtab.c (create_demangled_names_hash): Update.
8449 (symbol_set_names): Update.
8450 * objfiles.h (struct objfile_per_bfd_storage)
8451 <demangled_names_hash>: Now an htab_up.
8452 * objfiles.c (objfile_per_bfd_storage): Simplify.
8454 2019-03-15 Tom Tromey <tom@tromey.com>
8456 * objfiles.h (struct objfile_per_bfd_storage): Declare
8458 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8460 (get_objfile_bfd_data): Use new. Don't initialize
8462 (free_objfile_per_bfd_storage): Remove.
8463 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8465 2019-03-15 Tom Tromey <tom@tromey.com>
8467 * symfile.c (reread_symbols): Update.
8468 * objfiles.c (objfile::objfile): Update.
8469 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8470 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8472 (minimal_symbol_reader::install): Update.
8473 (terminate_minimal_symbol_table): Remove.
8474 * jit.c (jit_object_close_impl): Update.
8476 2019-03-15 Tom Tromey <tom@tromey.com>
8478 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8481 2019-03-15 Tom Tromey <tom@tromey.com>
8483 * objfiles.h (struct objfile_per_bfd_storage)
8484 <demangled_hash_languages>: Now a bitset.
8485 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8486 (lookup_minimal_symbol): Update.
8488 2019-03-15 Tom Tromey <tom@tromey.com>
8490 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8491 Don't return the symbol.
8492 * coffread.c (record_minimal_symbol): Use record_full.
8494 2019-03-14 Eli Zaretskii <eliz@gnu.org>
8496 The MS-Windows port of ncurses fails to switch to a color pair if
8497 one or both of the colors are the implicit default colors. This
8498 change records the default colors when TUI is initialized, and
8499 then specifies them explicitly when a color pair uses the default
8500 colors. This allows color styling in TUI mode on MS-Windows.
8502 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8504 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8505 colors in ncurses_norm_attr.
8506 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8507 "none", replace it with the default color recorded in
8510 2019-03-14 Tom Tromey <tromey@adacore.com>
8512 * source-cache.h (class source_cache) <get_source_lines>: Return
8514 * source-cache.c (source_cache::extract_lines): Handle case where
8515 first_pos==npos. Return std::string.
8516 (source_cache::get_source_lines): Update.
8518 2019-03-14 Tom Tromey <tromey@adacore.com>
8520 * NEWS: Add item for "style sources" commands.
8521 * source-cache.c (source_cache::get_source_lines): Check
8523 * cli/cli-style.c (source_styling): New global.
8524 (_initialize_cli_style): Add "style sources" commands.
8525 (show_style_sources): New function.
8526 * cli/cli-style.h (source_styling): Declare.
8528 2019-03-14 Pedro Alves <palves@redhat.com>
8529 Tom Tromey <tromey@adacore.com>
8531 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8532 * tui/tui-winsource.c (tui_refill_source_window): New function,
8534 (tui_horizontal_source_scroll): ... here. Move some logic.
8535 * cli/cli-style.c (set_style_enabled): Notify new observable.
8536 * tui/tui-hooks.c (tui_redisplay_source): New function.
8537 (tui_attach_detach_observers): Attach or detach
8538 tui_redisplay_source.
8539 * observable.h (source_styling_changed): New observable.
8540 * observable.c: Define source_styling_changed observable.
8542 2019-03-13 Tom Tromey <tromey@adacore.com>
8544 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8545 (i386_gnu_nat_target::store_registers): Update.
8546 * target-debug.h (target_debug_print_std_string): New macro.
8547 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8548 * windows-tdep.c (display_one_tib): Update.
8549 * tui/tui-stack.c (tui_make_status_line): Update.
8550 * top.c (print_inferior_quit_action): Update.
8551 * thread.c (thr_try_catch_cmd): Update.
8552 (add_thread_with_info): Update.
8553 (thread_target_id_str): Update.
8554 (thr_try_catch_cmd): Update.
8555 (thread_command): Update.
8556 (thread_find_command): Update.
8557 * record-btrace.c (record_btrace_target::info_record)
8558 (record_btrace_resume_thread, record_btrace_target::resume)
8559 (record_btrace_cancel_resume, record_btrace_step_thread)
8560 (record_btrace_target::wait, record_btrace_target::wait)
8561 (record_btrace_target::wait, record_btrace_target::stop): Update.
8562 * progspace.c (print_program_space): Update.
8563 * process-stratum-target.c
8564 (process_stratum_target::thread_address_space): Update.
8565 * linux-fork.c (linux_fork_mourn_inferior)
8566 (detach_checkpoint_command, info_checkpoints_command)
8567 (linux_fork_context): Update.
8568 (linux_fork_detach): Update.
8569 (class scoped_switch_fork_info): Update.
8570 (delete_checkpoint_command): Update.
8571 * infrun.c (follow_fork_inferior): Update.
8572 (follow_fork_inferior): Update.
8573 (proceed_after_vfork_done): Update.
8574 (handle_vfork_child_exec_or_exit): Update.
8575 (follow_exec): Update.
8576 (displaced_step_prepare_throw): Update.
8577 (displaced_step_restore): Update.
8578 (start_step_over): Update.
8580 (clear_proceed_status_thread): Update.
8582 (print_target_wait_results): Update.
8583 (do_target_wait): Update.
8584 (context_switch): Update.
8585 (stop_all_threads): Update.
8586 (restart_threads): Update.
8587 (finish_step_over): Update.
8588 (handle_signal_stop): Update.
8589 (switch_back_to_stepped_thread): Update.
8590 (keep_going_pass_signal): Update.
8591 (print_exited_reason): Update.
8592 (normal_stop): Update.
8593 * inferior.c (inferior_pid_to_str): Change return type.
8594 (print_selected_inferior): Update.
8595 (add_inferior): Update.
8596 (detach_inferior): Update.
8597 * dummy-frame.c (fprint_dummy_frames): Update.
8598 * dcache.c (dcache_info_1): Update.
8599 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8600 (btrace_fetch, btrace_clear): Update.
8601 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8602 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8604 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8605 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8606 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8607 * gdbarch.c, gdbarch.h: Rebuild.
8608 * gdbarch.sh (core_pid_to_str): Change return type.
8609 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8611 (windows_nat_target::pid_to_str): Change return type.
8612 (windows_delete_thread): Update.
8613 (windows_nat_target::attach): Update.
8614 (windows_nat_target::files_info): Update.
8615 * target-delegates.c: Rebuild.
8616 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8618 (sol_thread_target::pid_to_str): Change return type.
8619 * remote.c (class remote_target) <pid_to_str>: Change return
8621 (remote_target::pid_to_str): Change return type.
8622 (extended_remote_target::attach, remote_target::remote_stop_ns)
8623 (remote_target::remote_notif_remove_queued_reply)
8624 (remote_target::push_stop_reply, remote_target::disable_btrace):
8626 (extended_remote_target::attach): Update.
8627 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8629 (gdbsim_target::pid_to_str): Change return type.
8630 * ravenscar-thread.c (struct ravenscar_thread_target)
8631 <pid_to_str>: Change return type.
8632 (ravenscar_thread_target::pid_to_str): Change return type.
8633 * procfs.c (class procfs_target) <pid_to_str>: Change return
8635 (procfs_target::pid_to_str): Change return type.
8636 (procfs_target::attach): Update.
8637 (procfs_target::detach): Update.
8638 (procfs_target::fetch_registers): Update.
8639 (procfs_target::store_registers): Update.
8640 (procfs_target::wait): Update.
8641 (procfs_target::files_info): Update.
8642 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8643 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8645 (nto_procfs_target::pid_to_str): Change return type.
8646 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8647 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8649 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8651 (attach_proc_task_lwp_callback, get_detach_signal)
8652 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8653 (linux_nat_target::resume, wait_lwp, stop_callback)
8654 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8655 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8656 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8657 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8658 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8660 (inf_ptrace_target::attach): Update.
8661 (inf_ptrace_target::files_info): Update.
8662 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8664 (go32_nat_target::pid_to_str): Change return type.
8665 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8666 (gnu_nat_target::wait): Update.
8667 (gnu_nat_target::wait): Update.
8668 (gnu_nat_target::resume): Update.
8669 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8670 (fbsd_nat_target::wait): Update.
8671 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8673 (darwin_nat_target::attach): Update.
8674 * corelow.c (class core_target) <pid_to_str>: Change return type.
8675 (core_target::pid_to_str): Change return type.
8676 * target.c (normal_pid_to_str): Change return type.
8677 (default_pid_to_str): Likewise.
8678 (target_pid_to_str): Change return type.
8679 (target_translate_tls_address): Update.
8680 (target_announce_detach): Update.
8681 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8683 (bsd_uthread_target::pid_to_str): Change return type.
8684 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8686 (bsd_kvm_target::pid_to_str): Change return type.
8687 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8689 (aix_thread_target::pid_to_str): Change return type.
8690 * target.h (struct target_ops) <pid_to_str>: Change return type.
8691 (target_pid_to_str, normal_pid_to_str): Likewise.
8692 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8694 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8696 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8698 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8700 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8702 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8705 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8707 * NEWS: Mention that the new default MI version is 3. Mention
8708 changes to the output of commands and events that deal with
8709 multi-location breakpoints.
8710 * breakpoint.c: Include "mi/mi-out.h".
8711 (print_one_breakpoint): Change output syntax if using MI version
8713 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8715 (mi_multi_location_breakpoint_output_fixed): New.
8716 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8717 (mi_cmd_fix_multi_location_breakpoint_output): New.
8718 (mi_multi_location_breakpoint_output_fixed): New.
8719 * mi/mi-cmds.c (mi_cmds): Register command
8720 -fix-multi-location-breakpoint-output.
8721 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8724 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8726 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8727 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8728 instantiate mi_ui_out based on interpreter name.
8729 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8730 * mi/mi-main.c (mi_load_progress): Likewise.
8732 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8734 * NEWS: Combine separate "New targets" sections for 8.3.
8736 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8738 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8739 (ppcfbsd_init_abi): Install gdbarch
8740 "fetch_tls_load_module_address" and "get_thread_local_address"
8743 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8745 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8746 (riscv_fbsd_init_abi): Install gdbarch
8747 "fetch_tls_load_module_address" and "get_thread_local_address"
8750 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8752 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8753 (i386fbsd_init_abi): Install gdbarch
8754 "fetch_tls_load_module_address" and "get_thread_local_address"
8757 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8759 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8760 (amd64fbsd_init_abi): Install gdbarch
8761 "fetch_tls_load_module_address" and "get_thread_local_address"
8764 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8766 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8767 (struct fbsd_pspace_data): New type.
8768 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8769 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8770 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8771 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8772 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8774 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8776 * gdbtypes.c (lookup_struct_elt): New function.
8777 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8778 * gdbtypes.h (struct struct_elt): New type.
8779 (lookup_struct_elt): New prototype.
8781 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8783 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8784 remove disabled code block.
8786 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8788 * gdbarch.sh (get_thread_local_address): New method.
8789 * gdbarch.h, gdbarch.c: Regenerate.
8790 * target.c (target_translate_tls_address): Use
8791 gdbarch_get_thread_local_address if present instead of
8792 target::get_thread_local_address.
8794 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8796 * target.h (target::get_thread_local_address): Update comment.
8798 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8800 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8801 objfile->separate_debug_objfile_backlink if not NULL.
8803 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8805 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8806 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8807 (amd64bsd_store_inferior_registers): Likewise.
8808 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8809 Enable segment base registers.
8810 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8811 PT_GETFSBASE and PT_GETGSBASE.
8812 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8814 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8815 segment base registers.
8816 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8818 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8820 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8821 Update calls to i386_target_description to add 'segments'
8823 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8824 add segment base registers.
8825 * arch/i386.c (i386_create_target_description): Add 'segments'
8826 parameter to enable segment base registers.
8827 * arch/i386.h (i386_create_target_description): Likewise.
8828 * features/i386/32bit-segments.xml: New file.
8829 * features/i386/32bit-segments.c: Generate.
8830 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8831 call to i386_target_description to add 'segments' parameter.
8832 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8833 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8834 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8835 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8836 if feature is present.
8837 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8838 Add 'segments' parameter to call to i386_target_description.
8839 (i386_target_description): Add 'segments' parameter to enable
8840 segment base registers.
8841 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8842 to call to i386_target_description.
8843 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8844 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8845 Define I386_NUM_REGS.
8846 (i386_target_description): Add 'segments' parameter to enable
8847 segment base registers.
8849 2019-03-12 Eli Zaretskii <eliz@gnu.org>
8852 * source-cache.c: #undef open and close, to avoid unresolved
8853 externals during linking.
8855 2019-03-12 Tom Tromey <tromey@adacore.com>
8857 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8858 const. Add initializers.
8859 (_initialize_remote): Don't initialize ptid globals.
8861 2019-03-12 Pedro Alves <palves@redhat.com>
8863 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8865 2019-03-12 Pedro Alves <palves@redhat.com>
8867 * cp-name-parser.y (main): Remove unused 'len' variable.
8869 2019-03-12 Tom Tromey <tromey@adacore.com>
8871 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8872 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8874 2019-03-12 Tom Tromey <tromey@adacore.com>
8876 * linux-nat.c (iterate_over_lwps): Update.
8877 (stop_callback): Remove parameter.
8878 (stop_wait_callback, detach_callback, resume_set_callback)
8879 (select_singlestep_lwp_callback, set_ignore_sigint)
8880 (status_callback, resumed_callback, resume_clear_callback)
8881 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8883 (linux_nat_target::detach, linux_nat_target::resume)
8884 (linux_stop_and_wait_all_lwps, select_event_lwp)
8885 (linux_nat_filter_event, linux_nat_wait_1)
8886 (linux_nat_target::kill, linux_nat_target::stop)
8887 (linux_nat_target::stop): Update.
8888 (linux_nat_resume_callback): Change type.
8889 (resume_stopped_resumed_lwps, count_events_callback)
8890 (select_event_lwp_callback): Likewise.
8891 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8892 * arm-linux-nat.c (struct update_registers_data): Remove.
8893 (update_registers_callback): Change type.
8894 (arm_linux_insert_hw_breakpoint1): Update.
8895 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8897 (x86_linux_dr_set_addr): Update.
8898 (x86_linux_dr_set_control): Update.
8899 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8900 (iterate_over_lwps): Use gdb::function_view.
8901 * nat/aarch64-linux-hw-point.c (struct
8902 aarch64_dr_update_callback_param): Remove.
8903 (debug_reg_change_callback): Change type.
8904 (aarch64_notify_debug_reg_change): Update.
8905 * s390-linux-nat.c (s390_refresh_per_info): Update.
8907 2019-03-11 Tom Tromey <tromey@adacore.com>
8909 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8910 redundant assignment to "this_cu".
8912 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8914 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8916 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8918 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8920 (rank_one_type): ... this.
8922 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8924 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8926 (rank_one_type): ... this.
8928 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8930 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8932 (rank_one_type): ... this.
8934 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8936 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8938 (rank_one_type): ... this.
8940 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8942 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8944 (rank_one_type): ... this.
8946 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8948 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8950 (rank_one_type): ... this.
8952 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8954 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8956 (rank_one_type): ... this.
8958 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8960 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8962 (rank_one_type): ... this.
8964 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8966 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8968 (rank_one_type): ... this.
8970 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8972 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8974 (rank_one_type): ... this.
8976 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8978 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8980 (rank_one_type): ... this.
8982 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8984 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8986 (rank_one_type): ... this.
8988 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8990 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8991 inferior-events' shows the example events.
8993 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8995 Support styling on native MS-Windows console
8998 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8999 on MS-Windows if $TERM is not defined.
9001 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9003 * posix-hdep.c (gdb_console_fputs):
9004 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9006 * ui-file.h (gdb_console_fputs): Add prototype.
9008 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9009 back to fputs only if the former returns zero.
9011 2019-03-07 Tom Tromey <tom@tromey.com>
9013 * symmisc.c (print_symbol_bcache_statistics): Update.
9014 (print_objfile_statistics): Update.
9015 * symfile.c (allocate_symtab): Update.
9016 * stabsread.c: Don't include bcache.h.
9017 * psymtab.h (struct psymbol_bcache): Don't declare.
9018 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9019 (psymbol_bcache_init, psymbol_bcache_free)
9020 (psymbol_bcache_get_bcache): Don't declare.
9021 * psymtab.c (struct psymbol_bcache): Remove.
9022 (psymtab_storage::psymtab_storage): Update.
9023 (psymtab_storage::~psymtab_storage): Update.
9024 (psymbol_bcache_init, psymbol_bcache_free)
9025 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9026 (add_psymbol_to_bcache): Update.
9027 (allocate_psymtab): Update.
9028 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9029 macro_cache>: No longer pointers.
9030 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9031 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9032 * macrotab.c (macro_bcache): Update.
9033 * macroexp.c: Don't include bcache.h.
9034 * gdbtypes.c (check_types_worklist): Update.
9035 (types_deeply_equal): Remove TRY/CATCH. Update.
9036 * elfread.c (elf_symtab_read): Update.
9037 * dwarf2read.c: Don't include bcache.h.
9038 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9039 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9040 (print_bcache_statistics, bcache_memory_used): Don't declare.
9041 (struct bcache): Move from bcache.c. Add constructor, destructor,
9042 methods. Rename all data members.
9043 * bcache.c (struct bcache): Move to bcache.h.
9044 (bcache::expand_hash_table): Rename from expand_hash_table.
9046 (bcache::insert): Rename from bcache_full.
9047 (bcache::compare): Rename from bcache_compare.
9048 (bcache_xmalloc): Remove.
9049 (bcache::~bcache): Rename from bcache_xfree.
9050 (bcache::print_statistics): Rename from print_bcache_statistics.
9051 (bcache::memory_used): Rename from bcache_memory_used.
9053 2019-03-07 Pedro Alves <palves@redhat.com>
9055 * infrun.c (normal_stop): Also check for
9056 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9058 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9060 * f-lang.c (value_from_host_double): Moved to...
9061 * value.c (value_from_host_double): ...here.
9062 * value.h (value_from_host_double): Declare.
9063 * guile/scm-math.c (vlscm_convert_typed_number): Use
9064 value_from_host_double.
9065 (vlscm_convert_number): Likewise.
9066 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9067 * python/py-value.c (convert_value_from_python): Likewise.
9069 2019-03-06 Tom Tromey <tom@tromey.com>
9071 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9073 2019-03-06 Tom Tromey <tom@tromey.com>
9075 * utils.h (free_current_contents): Don't declare.
9076 * utils.c (free_current_contents): Remove.
9078 2019-03-06 Tom Tromey <tom@tromey.com>
9080 * top.c (quit_force): Update.
9081 * main.c (captured_command_loop): Update.
9082 * common/new-op.c (operator new): Update.
9083 * common/common-exceptions.c (struct catcher)
9084 <save_cleanup_chain>: Remove member.
9085 (exceptions_state_mc_init): Update.
9086 (exception_try_scope_entry): Return nullptr.
9087 (exception_try_scope_exit, exception_rethrow)
9088 (throw_exception_sjlj, throw_exception_cxx): Update.
9089 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9090 (all_cleanups, do_cleanups, discard_cleanups)
9091 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9092 (restore_cleanups, restore_final_cleanups): Don't declare.
9093 (do_final_cleanups): Remove parameter.
9094 * common/cleanups.c (cleanup_chain, make_cleanup)
9095 (make_cleanup_dtor, all_cleanups, do_cleanups)
9096 (discard_my_cleanups, discard_cleanups)
9097 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9098 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9099 (null_cleanup): Remove.
9100 (do_final_cleanups): Remove parameter.
9102 2019-03-06 Tom Tromey <tom@tromey.com>
9104 * remote.c (remote_target::remote_parse_stop_reply): Use
9107 2019-03-06 Tom Tromey <tom@tromey.com>
9109 * stabsread.c (struct stabs_field_info): Rename from field_info.
9110 <list, fnlist>: Add initializers.
9111 <obstack>: New member.
9112 (read_member_functions, read_struct_fields, read_baseclasses):
9113 Allocate on obstack. Don't use cleanups.
9114 (read_one_struct_field, read_member_functions, read_struct_fields)
9115 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9116 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9117 (read_struct_type): Update.
9119 2019-03-06 Tom Tromey <tom@tromey.com>
9121 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9122 * common/filestuff.h (make_cleanup_close): Don't declare.
9123 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9126 2019-03-06 Tom Tromey <tom@tromey.com>
9128 * solib-aix.c: Use make_scope_exit.
9130 2019-03-06 Tom Tromey <tom@tromey.com>
9132 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9133 Use make_scope_exit.
9135 2019-03-06 Tom Tromey <tom@tromey.com>
9137 * solib-svr4.c (disable_probes_interface): Remove parameter.
9138 (svr4_handle_solib_event): Use make_scope_exit.
9140 2019-03-06 Tom Tromey <tom@tromey.com>
9142 * remote.c (struct stop_reply_deleter): Remove.
9143 (stop_reply_up): Update.
9144 (struct stop_reply): Derive from notif_event. Don't typedef.
9145 <regcache>: Now a std::vector.
9146 (stop_reply_xfree): Remove.
9147 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9148 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9149 (remote_target::discard_pending_stop_replies): Use delete.
9150 (remote_target::remote_parse_stop_reply): Update.
9151 (remote_target::process_stop_reply): Update.
9152 * remote-notif.h (struct notif_event): Add virtual destructor.
9153 Remove "dtr" member.
9154 (struct notif_client) <alloc_event>: Return a unique_ptr.
9155 (notif_event_xfree): Don't declare.
9156 (notif_event_up): New typedef.
9157 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9158 (notif_event_xfree, do_notif_event_xfree): Remove.
9159 (remote_notif_state_xfree): Update.
9161 2019-03-06 Tom Tromey <tom@tromey.com>
9163 * infrun.c (displaced_step_clear_cleanup): Now a
9164 forward_scope_exit type.
9165 (displaced_step_prepare_throw): Update.
9166 (displaced_step_fixup): Update.
9168 2019-03-06 Tom Tromey <tom@tromey.com>
9170 * inferior.h (class inferior): Update comment.
9171 * gdbthread.h (class thread_info): Update comment.
9173 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9174 Tom Tromey <tom@tromey.com>
9176 * stabsread.h (struct stab_section_list): Remove.
9177 (coffstab_build_psymtabs): Update.
9178 * dbxread.c (symbuf_sections): Now a std::vector.
9179 (sect_idx): New global.
9180 (fill_symbuf): Update.
9181 (coffstab_build_psymtabs): Change type of stabsects parameter.
9183 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9185 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9186 (coff_locate_sections): Update.
9187 (coff_symfile_read): Remove cleanups. Update.
9188 (init_stringtab): Add storage parameter.
9189 (free_stringtab, free_stringtab_cleanup): Remove.
9190 (init_lineno): Add storage parameter.
9191 (free_linetab, free_linetab_cleanup): Remove.
9193 2019-03-06 Pedro Alves <palves@redhat.com>
9195 * linux-fork.c (fork_info::clobber_regs): Delete.
9196 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9197 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9199 (scoped_switch_fork_info::scoped_switch_fork_info)
9200 (checkpoint_command, linux_fork_context): Adjust
9201 fork_save_infrun_state calls.
9203 2019-03-06 Pedro Alves <palves@redhat.com>
9205 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9206 (inf_has_multiple_threads): Return 'bool' and rewrite using
9207 inferior_info::threads().
9209 2019-03-06 Pedro Alves <palves@redhat.com>
9211 * linux-fork.c: Include <list>.
9212 (fork_list): Now a std::list instance.
9213 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9214 (forks_exist_p, find_last_fork): Adjust.
9218 (free_fork): Delete, folded into fork_info::~fork_info().
9219 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9221 (init_fork_list): Delete.
9222 (linux_fork_killall, linux_fork_mourn_inferior)
9223 (linux_fork_detach, info_checkpoints_command): Adjust.
9224 (_initialize_linux_fork): No longer call init_fork_list.
9226 2019-03-06 Pedro Alves <palves@redhat.com>
9228 * linux-fork.c (new_fork): New, split out of ...
9229 (add_fork): ... this. Return void. Move "first fork" special
9230 case from here, to ...
9231 (checkpoint_command): ... here.
9232 * linux-linux.h (add_fork): Return void.
9234 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9236 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9238 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9239 Chris January <chris.january@arm.com>
9240 David Lecomber <david.lecomber@arm.com>
9242 * f-exp.y: New token, UNOP_INTRINSIC.
9243 (exp): New pattern using UNOP_INTRINSIC token.
9244 (f77_keywords): Add 'abs' keyword.
9245 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9246 (value_from_host_double): New function.
9247 (evaluate_subexp_f): Support UNOP_ABS.
9249 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9251 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9254 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9256 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9257 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9258 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9260 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9262 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9264 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9265 Chris January <chris.january@arm.com>
9267 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9268 * f-exp.y: Define 'KIND' token.
9269 (exp): New pattern for KIND expressions.
9270 (ptype): Handle types with a kind extension.
9271 (direct_abs_decl): Extend to spot kind extensions.
9272 (f77_keywords): Add 'kind' to the list.
9273 (push_kind_type): New function.
9274 (convert_to_kind_type): New function.
9275 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9276 * parse.c (operator_length_standard): Likewise.
9277 * parser-defs.h (enum type_pieces): Add tp_kind.
9278 * std-operator.def: Add UNOP_KIND.
9280 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9282 * f-exp.y (f_parse): Set yydebug.
9284 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9286 * f-lang.c (evaluate_subexp_f): New function.
9287 (exp_descriptor_f): New global.
9288 (f_language_defn): Use exp_descriptor_f instead of
9289 exp_descriptor_standard.
9291 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9293 * f-exp.y (struct token): Add comments.
9294 (dot_ops): Remove uppercase versions and the end marker.
9295 (f77_keywords): Likewise.
9296 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9297 entries in the dot_ops array are case insensitive, and use
9298 strncasecmp to compare strings. Also some whitespace cleanup in
9299 this area. Similar for the f77_keywords array, except entries in
9300 this list might be case sensitive.
9302 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9304 * f-exp.y (struct f77_boolean_val): Add comments.
9305 (boolean_values): Remove uppercase versions, and end marker.
9306 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9307 and use strncasecmp to achieve case insensitivity. Additionally,
9308 perform whitespace cleanup around this code.
9310 2019-03-06 Tom Tromey <tromey@adacore.com>
9312 * remote-sim.c (gdbsim_target_open): Use result of
9315 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9316 Dirk Schubert <dirk.schubert@arm.com>
9317 Chris January <chris.january@arm.com>
9319 * eval.c (evaluate_subexp_standard): Call Fortran argument
9321 * f-lang.c (struct value): A value which can be passed into a
9322 Fortran function call.
9323 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9325 (struct type): Value ready for a Fortran function call.
9326 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9328 * f-lang.h (fortran_argument_convert): Declaration.
9329 (fortran_preserve_arg_pointer): Declaration.
9330 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9332 2019-03-05 Tom Tromey <tromey@adacore.com>
9334 * python/py-prettyprint.c (print_string_repr): Remove #if.
9335 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9337 2019-03-05 Tom Tromey <tromey@adacore.com>
9339 * target.c (the_dummy_target): Move later. Change type to
9341 (initialize_targets): Don't initialize the_dummy_target.
9343 2019-03-05 Tom Tromey <tromey@adacore.com>
9345 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9346 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9348 2019-03-05 Tom Tromey <tromey@adacore.com>
9350 * windows-nat.c (windows_nat_target::attach)
9351 (windows_nat_target::detach): Don't call gdb_flush.
9352 * valprint.c (generic_val_print, val_print, val_print_string):
9353 Don't call gdb_flush.
9354 * utils.c (defaulted_query): Don't call gdb_flush.
9355 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9356 * target.c (target_announce_detach): Don't call gdb_flush.
9357 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9358 * remote.c (extended_remote_target::attach): Don't call
9360 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9361 * printcmd.c (do_examine): Don't call gdb_flush.
9362 (info_display_command): Don't call gdb_flush.
9363 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9364 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9365 * memattr.c (info_mem_command): Don't call gdb_flush.
9366 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9367 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9368 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9369 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9370 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9371 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9372 (gnu_nat_target::detach): Don't call gdb_flush.
9373 * f-valprint.c (f_val_print): Don't call gdb_flush.
9374 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9375 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9376 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9378 * c-valprint.c (c_val_print): Don't call gdb_flush.
9379 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9381 2019-03-05 Tom Tromey <tromey@adacore.com>
9383 * varobj.c (update_dynamic_varobj_children): Update.
9384 (install_default_visualizer): Use reset, not release.
9385 * value.c (set_internalvar): Update.
9386 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9387 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9388 ATTRIBUTE_UNUSED_RESULT.
9390 2019-03-05 Tom Tromey <tromey@adacore.com>
9392 * remote.c (class scoped_remote_fd) <release>: Add
9393 ATTRIBUTE_UNUSED_RESULT.
9395 2019-03-05 Tom Tromey <tromey@adacore.com>
9397 * macroexp.c (struct macro_buffer) <release>: Add
9398 ATTRIBUTE_UNUSED_RESULT.
9400 2019-03-05 Tom Tromey <tromey@adacore.com>
9402 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9403 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9404 ATTRIBUTE_UNUSED_RESULT.
9406 2019-03-05 Tom Tromey <tromey@adacore.com>
9408 * common/scoped_fd.h (class scoped_fd) <release>: Add
9409 ATTRIBUTE_UNUSED_RESULT.
9411 2019-03-05 Tom Tromey <tromey@adacore.com>
9413 * parser-defs.h (struct parser_state) <release>: Add
9414 ATTRIBUTE_UNUSED_RESULT.
9416 2019-03-05 Tom Tromey <tromey@adacore.com>
9418 * utils.h (class gdb_argv) <release>: Add
9419 ATTRIBUTE_UNUSED_RESULT.
9420 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9422 2019-03-02 Eli Zaretskii <eliz@gnu.org>
9424 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9425 for-loop range, to avoid compiler warnings.
9427 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9428 avoid compiler warnings about unused variables.
9430 * NEWS: Mention end of support for native debugging on MS-Windows
9434 * common/netstuff.c:
9435 * gdbserver/gdbreplay.c
9436 * gdbserver/remote-utils.c:
9438 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9439 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9440 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9441 'getaddrinfo' and 'freeaddrinfo' were not available before
9442 Windows XP, and mingw.org's MinGW headers by default define
9443 _WIN32_WINNT to 0x500.
9445 2019-03-01 Gary Benson <gbenson@redhat.com>
9447 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9449 2019-02-28 Brian Vandenberg <phantall@gmail.com>
9450 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9453 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9454 set_sigint_trap, clear_sigint_trap.
9456 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9458 * target.c (target_detach): Clear the regcache and the
9461 2019-02-27 Pedro Alves <palves@redhat.com>
9463 * utils.c (set_screen_size): When we cap the height/width sizes,
9464 tweak the corresponding command variable to show "unlimited":
9466 2019-02-27 Saagar Jha <saagar@saagarjha.com>
9467 Pedro Alves <palves@redhat.com>
9469 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9470 before calling rl_set_screen_size.
9472 2019-02-27 Tom Tromey <tromey@adacore.com>
9474 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9476 * python/py-value.c: Remove Python 2.4 workaround.
9477 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9479 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9480 Python 2.4 workaround.
9481 * python/python-internal.h: Remove Python 2.4 comment.
9482 (Py_ssize_t): Don't define.
9483 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9484 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9485 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9486 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9487 * python/python.c (do_start_initialization): Remove Python 2.4
9489 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9490 (print_children): Remove Python 2.4 workaround.
9491 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9493 (CHARBUFFERPROC_NAME): Remove.
9494 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9495 Python 2.4 workaround.
9497 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9499 * NEWS: Note minimum Python version.
9501 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9503 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9504 code from these functions. Remove corresponding ifdefs. Use
9505 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9506 Remove gotos and target of gotos.
9507 (infpy_search_memory): Likewise.
9509 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9511 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9512 (hppa_gdbarch_init): Don't register deleted functions with
9515 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9517 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9518 (h8300_unwind_sp): Delete.
9519 (h8300_dummy_id): Delete.
9520 (h8300_gdbarch_init): Don't register deleted functions with
9523 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9525 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9526 (ft32_unwind_pc): Delete.
9527 (ft32_unwind_sp): Delete.
9528 (ft32_gdbarch_init): Don't register deleted functions with
9531 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9533 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9534 (frv_unwind_pc): Delete.
9535 (frv_unwind_sp): Delete.
9536 (frv_gdbarch_init): Don't register deleted functions with
9539 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9541 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9542 (riscv_unwind_pc): Delete.
9543 (riscv_unwind_sp): Delete.
9544 (riscv_gdbarch_init): Don't register deleted functions with
9547 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9549 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9550 (csky_unwind_pc): Delete.
9551 (csky_unwind_sp): Delete.
9552 (csky_gdbarch_init): Don't register deleted functions with
9555 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9557 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9558 (cris_unwind_pc): Delete.
9559 (cris_unwind_sp): Delete.
9560 (cris_gdbarch_init): Don't register deleted functions with
9563 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9565 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9566 (bfin_unwind_pc): Delete.
9567 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9569 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9571 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9572 (arm_unwind_pc): Delete.
9573 (arm_unwind_sp): Delete.
9574 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9576 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9578 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9579 (arc_unwind_pc): Delete.
9580 (arc_unwind_sp): Delete.
9581 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9583 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9585 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9586 (alpha_unwind_pc): Delete.
9587 (alpha_gdbarch_init): Don't register deleted functions with
9590 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9592 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9593 (aarch64_unwind_pc): Delete.
9594 (aarch64_unwind_sp): Delete.
9595 (aarch64_gdbarch_init): Don't register deleted functions with
9598 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9600 * gdbtypes.c (type_align): Don't consider static members when
9601 computing structure alignment.
9603 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9605 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9606 return 0 for other types.
9607 * arch-utils.c (default_type_align): Always return 0.
9608 * gdbarch.h: Regenerate.
9609 * gdbarch.sh (type_align): Extend comment.
9610 * gdbtypes.c (type_align): Add additional comments, always call
9611 gdbarch_type_align before applying the default rules.
9612 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9613 generic code will then apply a suitable default.
9614 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9615 types, return 0 for other types.
9617 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9619 * NEWS: Create a new section for the next release branch.
9620 Rename the section of the current branch, now that it has
9623 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9625 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9626 * version.in: Bump version to 8.3.50.DATE-git.
9628 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9630 * aix-thread.c (ptid_cmp): Remove unused variable.
9631 (get_signaled_thread): Likewise.
9632 (store_regs_user_thread): Likewise.
9633 (store_regs_kernel_thread): Likewise.
9634 (fetch_regs_kernel_thread): Remove shadowed variable.
9636 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9638 * features/riscv/32bit-cpu.xml: Add register numbers.
9639 * features/riscv/32bit-fpu.c: Regenerate.
9640 * features/riscv/32bit-fpu.xml: Add register numbers.
9641 * features/riscv/64bit-cpu.xml: Add register numbers.
9642 * features/riscv/64bit-fpu.c: Regenerate.
9643 * features/riscv/64bit-fpu.xml: Add register numbers.
9645 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9647 * NEWS: Mention two argument form of gdb.Value constructor.
9648 * python/py-value.c (convert_buffer_and_type_to_value): New
9650 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9651 Add support for handling an optional second argument. Call
9652 convert_buffer_and_type_to_value as appropriate.
9653 * python/python-internal.h (Py_buffer_deleter): New struct.
9654 (Py_buffer_up): New typedef.
9656 2019-02-25 John Baldwin <jhb@FreeBSD.org>
9658 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9659 instead of releasing ownership.
9661 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
9663 * dwarf2read.c (open_and_init_dwp_file): Call
9664 elf_numsections instead of bfd_count_sections to initialize
9665 dwp_file->num_sections.
9667 2019-02-25 Tom Tromey <tromey@adacore.com>
9669 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9671 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9673 * gcore.in: Add '--readnever' option when invoking GDB.
9675 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9677 * MAINTAINERS: Update my email address.
9679 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9681 * build-id.c (build_id_to_debug_bfd_1): New function.
9682 (build_id_to_debug_bfd): Look for separate debug file in
9685 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9687 * gdbarch.sh: Update the copyright year range that is placed into
9690 2019-02-22 Keith Seitz <keiths@redhat.com>
9693 * linespec.c (create_sals_line_offset): Search for the default
9694 symtab's filename instead of its fullname.
9696 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9698 * NEWS: Update style defaults.
9700 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9702 * main.c (captured_main_1): Disable styling in batch mode.
9704 2019-02-20 Tom Tromey <tom@tromey.com>
9706 * symtab.c (symtab_symbol_info): Fix typos.
9708 2019-02-20 Tom Tromey <tromey@adacore.com>
9710 * findcmd.c (_initialize_mem_search): Use upper case for
9711 metasyntactic variables.
9713 2019-02-20 Alan Hayward <alan.hayward@arm.com>
9715 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9716 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9718 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9720 * top.h (source_file_name): Change to std::string.
9721 * top.c (source_file_name): Likewise.
9722 (command_line_input): Adjust.
9723 * cli/cli-script.c (script_from_file): Adjust.
9725 2019-02-19 Tom Tromey <tromey@adacore.com>
9727 * ravenscar-thread.c
9728 (ravenscar_thread_target::update_thread_list): Don't call
9729 ada_build_task_list.
9730 * ada-lang.h (ada_build_task_list): Don't declare.
9731 * ada-tasks.c (struct ada_tasks_inferior_data)
9732 <task_list_valid_p>: Now bool.
9733 (read_known_tasks, ada_task_list_changed)
9734 (ada_tasks_invalidate_inferior_data): Update.
9735 (read_known_tasks_array): Return bool.
9736 (read_known_tasks_list): Likewise.
9737 (read_known_tasks): Return void.
9738 (ada_build_task_list): Now static.
9740 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9742 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9743 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9745 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9747 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9748 variant for ada_tasks_pspace_data_handle and
9749 ada_tasks_inferior_data_handle.
9750 (ada_tasks_pspace_data_cleanup): New function.
9751 (ada_tasks_inferior_data_cleanup): New function.
9753 2019-02-17 Tom Tromey <tom@tromey.com>
9755 * macrotab.h (macro_source_fullname): Return a std::string.
9756 * macrotab.c (macro_include, check_for_redefinition)
9757 (macro_undef, macro_lookup_definition, foreach_macro)
9758 (foreach_macro_in_scope): Update.
9759 (macro_source_fullname): Return a std::string.
9760 * macrocmd.c (show_pp_source_pos): Update.
9762 2019-02-17 Tom Tromey <tom@tromey.com>
9764 * macrocmd.c (show_pp_source_pos): Style the file names.
9766 2019-02-17 Tom Tromey <tom@tromey.com>
9769 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9771 2019-02-17 Tom Tromey <tom@tromey.com>
9773 * ada-lang.c (user_select_syms): Use filtered printing.
9774 * utils.c (wrap_style): New global.
9775 (desired_style): Remove.
9776 (emit_style_escape): Add stream parameter.
9777 (set_output_style, reset_terminal_style, prompt_for_continue):
9779 (flush_wrap_buffer): Only flush gdb_stdout.
9780 (wrap_here): Set wrap_style.
9781 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9782 treat escape sequences as a character. Change when wrap buffer is
9784 (fputs_styled): Do not set the output style when the default is
9786 * ui-style.h (struct ui_file_style) <is_default>: New method.
9787 * source.c (print_source_lines_base): Emit escape sequences in one
9790 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9792 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9793 integers and enumeration types.
9795 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9797 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9798 instead of lookup_symbol_in_language
9799 (do_exact_match): New function.
9800 (ada_get_symbol_name_matcher): Return do_exact_match when
9801 doing a verbatim match.
9803 2019-02-15 Tom Tromey <tromey@adacore.com>
9805 * ravenscar-thread.c (ravenscar_thread_target::resume)
9806 (ravenscar_thread_target::wait): Special case wildcard requests.
9808 2019-02-15 Tom Tromey <tromey@adacore.com>
9810 * ravenscar-thread.c (base_ptid): Remove.
9811 (struct ravenscar_thread_target) <close>: New method.
9812 <m_base_ptid>: New member.
9813 <update_inferior_ptid, active_task, task_is_currently_active,
9814 runtime_initialized>: Declare methods.
9815 <ravenscar_thread_target>: Add constructor.
9816 (ravenscar_thread_target::task_is_currently_active)
9817 (ravenscar_thread_target::update_inferior_ptid)
9818 (ravenscar_runtime_initialized): Rename. Now methods.
9819 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9820 (ravenscar_thread_target::update_thread_list): Update.
9821 (ravenscar_thread_target::active_task): Now method.
9822 (ravenscar_thread_target::store_registers)
9823 (ravenscar_thread_target::prepare_to_store)
9824 (ravenscar_thread_target::prepare_to_store)
9825 (ravenscar_thread_target::mourn_inferior): Update.
9826 (ravenscar_inferior_created): Use "new" to create target.
9827 (ravenscar_thread_target::get_ada_task_ptid): Update.
9828 (_initialize_ravenscar): Don't initialize base_ptid.
9829 (ravenscar_ops): Remove global.
9831 2019-02-15 Tom Tromey <tromey@adacore.com>
9833 * target.h (push_target): Declare new overload.
9834 * target.c (push_target): New overload, taking an rvalue reference.
9835 * remote.c (remote_target::open_1): Use push_target overload.
9836 * corelow.c (core_target_open): Use push_target overload.
9838 2019-02-15 Tom Tromey <tromey@adacore.com>
9840 * ravenscar-thread.c (is_ravenscar_task)
9841 (ravenscar_task_is_currently_active): Return bool.
9842 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9843 (_initialize_ravenscar): Remove "(void)".
9844 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9847 2019-02-15 Tom Tromey <tromey@adacore.com>
9849 * ravenscar-thread.c (ravenscar_runtime_initializer)
9850 (has_ravenscar_runtime, get_running_thread_id)
9851 (ravenscar_thread_target::resume): Fix indentation.
9853 2019-02-15 Tom Tromey <tromey@adacore.com>
9855 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9856 from ravenscar_arch_ops.
9857 (sparc_ravenscar_ops::fetch_registers)
9858 (sparc_ravenscar_ops::store_registers): Now methods.
9859 (sparc_ravenscar_prepare_to_store): Remove.
9860 (sparc_ravenscar_ops): Redefine.
9861 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9862 methods and destructor. Remove members.
9863 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9864 (ravenscar_thread_target::store_registers)
9865 (ravenscar_thread_target::prepare_to_store): Update.
9866 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9868 (struct ppc_ravenscar_powerpc_ops): Derive from
9870 (ppc_ravenscar_powerpc_ops::fetch_registers)
9871 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9872 (ppc_ravenscar_powerpc_ops): Redefine.
9873 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9874 (ppc_ravenscar_e500_ops::fetch_registers)
9875 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9876 (ppc_ravenscar_e500_ops): Redefine.
9877 * aarch64-ravenscar-thread.c
9878 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9879 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9880 (aarch64_ravenscar_fetch_registers)
9881 (aarch64_ravenscar_store_registers): Now methods.
9882 (aarch64_ravenscar_ops): Redefine.
9884 2019-02-15 Tom Tromey <tromey@adacore.com>
9886 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9887 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9888 (ravenscar_thread_target::stopped_by_watchpoint)
9889 (ravenscar_thread_target::stopped_data_address)
9890 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9892 2019-02-15 Tom Tromey <tromey@adacore.com>
9894 * ravenscar-thread.c: Fix some typos.
9896 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9897 Tom Tromey <tromey@adacore.com>
9899 * ada-lang.c (ada_exception_sal): Change addr_string to a
9901 (create_ada_exception_catchpoint): Update.
9903 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9904 Tom Tromey <tromey@adacore.com>
9906 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9907 (bp_location_ops): Remove.
9908 (base_breakpoint_allocate_location): Update.
9909 (free_bp_location): Update.
9910 * ada-lang.c (class ada_catchpoint_location)
9911 <ada_catchpoint_location>: Remove ops parameter.
9912 (ada_catchpoint_location_dtor): Remove.
9913 (ada_catchpoint_location_ops): Remove.
9914 (allocate_location_exception): Update.
9915 * breakpoint.h (struct bp_location_ops): Remove.
9916 (class bp_location) <bp_location>: Remove bp_location_ops
9918 <~bp_location>: Add destructor.
9921 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9922 Pedro Alves <palves@redhat.com>
9924 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9927 2019-02-14 David Michael <fedora.dm0@gmail.com>
9928 Samuel Thibault <samuel.thibault@gnu.org>
9929 Thomas Schwinge <thomas@codesourcery.com>
9931 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9932 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9934 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9936 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9937 (check_empty): Use "const char *".
9939 * gnu-nat.c (gnu_nat_target::detach): Instead of
9940 'detach_inferior (pid)' call
9941 'detach_inferior (find_inferior_pid (pid))'.
9943 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9944 'nat/fork-inferior.o'.
9945 * gnu-nat.c: #include "nat/fork-inferior.h".
9947 * gnu-nat.c (gnu_nat_target::detach): Instead of
9948 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9949 * gnu-nat.h: #include "inf-child.h".
9950 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9951 'i386_gnu_nat_target::fetch_registers'.
9952 (gnu_store_registers): Rename/move to
9953 'i386_gnu_nat_target::store_registers'.
9955 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9956 * gnu-nat.h (mach_thread_info): New function.
9957 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9959 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9961 2019-02-14 Frederic Konrad <konrad@adacore.com>
9963 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9965 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9967 * windows-nat.c (windows_add_thread): Add new parameter
9968 "main_thread_p" with default value set to false. Update
9969 function documentation as well as all callers.
9970 (windows_delete_thread): Likewise.
9971 (fake_create_process): Update call to windows_add_thread.
9972 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9973 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9974 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9975 call to windows_delete_thread.
9977 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9979 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9981 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9983 * symfile.c (find_separate_debug_file): Use canonical path of
9984 sysroot with child_path instead of gdb_sysroot if it is valid.
9986 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9988 * symfile.c (find_separate_debug_file): Use child_path to
9989 determine if an object file is under a sysroot.
9991 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9993 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9994 unittests/child-path-selftests.c.
9995 * common/pathstuff.c (child_path): New function.
9996 * common/pathstuff.h (child_path): New prototype.
9997 * unittests/child-path-selftests.c: New file.
9999 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10001 * symfile.c (find_separate_debug_file): Look for separate debug
10002 files in debug directories under the sysroot.
10004 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10006 * symtab.h (struct minimal_symbol data_p): New const method.
10007 (struct minimal_symbol text_p): Likewise.
10008 * symtab.c (output_source_filename): Use file name style
10009 to print file name.
10010 (print_symbol_info): Likewise.
10011 (print_msymbol_info): Use address style to print addresses.
10012 Use function name style to print executable text symbols.
10013 (expand_symtab_containing_pc): Use data_p.
10014 (find_pc_sect_compunit_symtab): Likewise.
10016 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10018 * breakpoint.c (describe_other_breakpoints): Use address style
10019 to print addresses.
10020 (say_where): Likewise.
10022 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10024 * ada-typeprint.c (print_func_type): Print function name
10025 style to print function name.
10026 * c-typeprint.c (c_print_type_1): Likewise.
10028 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10030 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10033 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10035 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10038 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10040 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10041 TYPE_CODE_REF types.
10043 2019-02-08 Jim Wilson <jimw@sifive.com>
10045 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10046 (riscv_linux_fregset): New.
10047 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10049 2019-02-07 Tom Tromey <tom@tromey.com>
10051 * thread.c (thread_cancel_execution_command): Update.
10052 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10054 (struct thread_fsm_ops): Remove.
10055 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10056 (thread_fsm_should_stop, thread_fsm_return_value)
10057 (thread_fsm_set_finished, thread_fsm_finished_p)
10058 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10060 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10061 * infrun.c (clear_proceed_status_thread)
10062 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10063 (print_stop_event): Update.
10064 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10066 (step_command_fsm_ops): Remove.
10067 (new_step_command_fsm): Remove.
10069 (step_command_fsm::should_stop): Rename from
10070 step_command_fsm_should_stop.
10071 (step_command_fsm::clean_up): Rename from
10072 step_command_fsm_clean_up.
10073 (step_command_fsm::do_async_reply_reason): Rename from
10074 step_command_fsm_async_reply_reason.
10075 (struct until_next_fsm): Inherit from thread_fsm. Add
10077 (until_next_fsm_ops): Remove.
10078 (new_until_next_fsm): Remove.
10079 (until_next_fsm::should_stop): Rename from
10080 until_next_fsm_should_stop.
10081 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10082 (until_next_fsm::do_async_reply_reason): Rename from
10083 until_next_fsm_async_reply_reason.
10084 (struct finish_command_fsm): Inherit from thread_fsm. Add
10085 constructor. Change type of breakpoint.
10086 (finish_command_fsm_ops): Remove.
10087 (new_finish_command_fsm): Remove.
10088 (finish_command_fsm::should_stop): Rename from
10089 finish_command_fsm_should_stop.
10090 (finish_command_fsm::clean_up): Rename from
10091 finish_command_fsm_clean_up.
10092 (finish_command_fsm::return_value): Rename from
10093 finish_command_fsm_return_value.
10094 (finish_command_fsm::do_async_reply_reason): Rename from
10095 finish_command_fsm_async_reply_reason.
10096 (finish_command): Update.
10097 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10099 (call_thread_fsm_ops): Remove.
10100 (call_thread_fsm::call_thread_fsm): Rename from
10101 new_call_thread_fsm.
10102 (call_thread_fsm::should_stop): Rename from
10103 call_thread_fsm_should_stop.
10104 (call_thread_fsm::should_notify_stop): Rename from
10105 call_thread_fsm_should_notify_stop.
10106 (run_inferior_call, call_function_by_hand_dummy): Update.
10107 * cli/cli-interp.c (should_print_stop_to_console): Update.
10108 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10109 Add constructor. Change type of location_breakpoint,
10111 (until_break_fsm_ops): Remove.
10112 (new_until_break_fsm): Remove.
10113 (until_break_fsm::should_stop): Rename from
10114 until_break_fsm_should_stop.
10115 (until_break_fsm::clean_up): Rename from
10116 until_break_fsm_clean_up.
10117 (until_break_fsm::do_async_reply_reason): Rename from
10118 until_break_fsm_async_reply_reason.
10119 (until_break_command): Update.
10120 * thread-fsm.c: Remove.
10121 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10123 2019-02-07 Tom Tromey <tom@tromey.com>
10125 * yy-remap.h: Add include guard.
10126 * xtensa-tdep.h: Add include guard.
10127 * xcoffread.h: Rename include guard.
10128 * varobj-iter.h: Add include guard.
10129 * tui/tui.h: Rename include guard.
10130 * tui/tui-winsource.h: Rename include guard.
10131 * tui/tui-wingeneral.h: Rename include guard.
10132 * tui/tui-windata.h: Rename include guard.
10133 * tui/tui-win.h: Rename include guard.
10134 * tui/tui-stack.h: Rename include guard.
10135 * tui/tui-source.h: Rename include guard.
10136 * tui/tui-regs.h: Rename include guard.
10137 * tui/tui-out.h: Rename include guard.
10138 * tui/tui-layout.h: Rename include guard.
10139 * tui/tui-io.h: Rename include guard.
10140 * tui/tui-hooks.h: Rename include guard.
10141 * tui/tui-file.h: Rename include guard.
10142 * tui/tui-disasm.h: Rename include guard.
10143 * tui/tui-data.h: Rename include guard.
10144 * tui/tui-command.h: Rename include guard.
10145 * tic6x-tdep.h: Add include guard.
10146 * target/waitstatus.h: Rename include guard.
10147 * target/wait.h: Rename include guard.
10148 * target/target.h: Rename include guard.
10149 * target/resume.h: Rename include guard.
10150 * target-float.h: Rename include guard.
10151 * stabsread.h: Add include guard.
10152 * rs6000-tdep.h: Add include guard.
10153 * riscv-fbsd-tdep.h: Add include guard.
10154 * regformats/regdef.h: Rename include guard.
10155 * record.h: Rename include guard.
10156 * python/python.h: Rename include guard.
10157 * python/python-internal.h: Rename include guard.
10158 * python/py-stopevent.h: Rename include guard.
10159 * python/py-ref.h: Rename include guard.
10160 * python/py-record.h: Rename include guard.
10161 * python/py-record-full.h: Rename include guard.
10162 * python/py-record-btrace.h: Rename include guard.
10163 * python/py-instruction.h: Rename include guard.
10164 * python/py-events.h: Rename include guard.
10165 * python/py-event.h: Rename include guard.
10166 * procfs.h: Add include guard.
10167 * proc-utils.h: Add include guard.
10168 * p-lang.h: Add include guard.
10169 * or1k-tdep.h: Rename include guard.
10170 * observable.h: Rename include guard.
10171 * nto-tdep.h: Rename include guard.
10172 * nat/x86-linux.h: Rename include guard.
10173 * nat/x86-linux-dregs.h: Rename include guard.
10174 * nat/x86-gcc-cpuid.h: Add include guard.
10175 * nat/x86-dregs.h: Rename include guard.
10176 * nat/x86-cpuid.h: Rename include guard.
10177 * nat/ppc-linux.h: Rename include guard.
10178 * nat/mips-linux-watch.h: Rename include guard.
10179 * nat/linux-waitpid.h: Rename include guard.
10180 * nat/linux-ptrace.h: Rename include guard.
10181 * nat/linux-procfs.h: Rename include guard.
10182 * nat/linux-osdata.h: Rename include guard.
10183 * nat/linux-nat.h: Rename include guard.
10184 * nat/linux-namespaces.h: Rename include guard.
10185 * nat/linux-btrace.h: Rename include guard.
10186 * nat/glibc_thread_db.h: Rename include guard.
10187 * nat/gdb_thread_db.h: Rename include guard.
10188 * nat/gdb_ptrace.h: Rename include guard.
10189 * nat/fork-inferior.h: Rename include guard.
10190 * nat/amd64-linux-siginfo.h: Rename include guard.
10191 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10192 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10193 * nat/aarch64-linux.h: Rename include guard.
10194 * nat/aarch64-linux-hw-point.h: Rename include guard.
10195 * mn10300-tdep.h: Add include guard.
10196 * mips-linux-tdep.h: Add include guard.
10197 * mi/mi-parse.h: Rename include guard.
10198 * mi/mi-out.h: Rename include guard.
10199 * mi/mi-main.h: Rename include guard.
10200 * mi/mi-interp.h: Rename include guard.
10201 * mi/mi-getopt.h: Rename include guard.
10202 * mi/mi-console.h: Rename include guard.
10203 * mi/mi-common.h: Rename include guard.
10204 * mi/mi-cmds.h: Rename include guard.
10205 * mi/mi-cmd-break.h: Rename include guard.
10206 * m2-lang.h: Add include guard.
10207 * location.h: Rename include guard.
10208 * linux-record.h: Rename include guard.
10209 * linux-nat.h: Add include guard.
10210 * linux-fork.h: Add include guard.
10211 * i386-darwin-tdep.h: Rename include guard.
10212 * hppa-linux-offsets.h: Add include guard.
10213 * guile/guile.h: Rename include guard.
10214 * guile/guile-internal.h: Rename include guard.
10215 * gnu-nat.h: Rename include guard.
10216 * gdb-stabs.h: Rename include guard.
10217 * frv-tdep.h: Add include guard.
10218 * f-lang.h: Add include guard.
10219 * event-loop.h: Add include guard.
10220 * darwin-nat.h: Rename include guard.
10221 * cp-abi.h: Rename include guard.
10222 * config/sparc/nm-sol2.h: Rename include guard.
10223 * config/nm-nto.h: Rename include guard.
10224 * config/nm-linux.h: Add include guard.
10225 * config/i386/nm-i386gnu.h: Rename include guard.
10226 * config/djgpp/nl_types.h: Rename include guard.
10227 * config/djgpp/langinfo.h: Rename include guard.
10228 * compile/gcc-cp-plugin.h: Add include guard.
10229 * compile/gcc-c-plugin.h: Add include guard.
10230 * compile/compile.h: Rename include guard.
10231 * compile/compile-object-run.h: Rename include guard.
10232 * compile/compile-object-load.h: Rename include guard.
10233 * compile/compile-internal.h: Rename include guard.
10234 * compile/compile-cplus.h: Rename include guard.
10235 * compile/compile-c.h: Rename include guard.
10236 * common/xml-utils.h: Rename include guard.
10237 * common/x86-xstate.h: Rename include guard.
10238 * common/version.h: Rename include guard.
10239 * common/vec.h: Rename include guard.
10240 * common/tdesc.h: Rename include guard.
10241 * common/selftest.h: Rename include guard.
10242 * common/scoped_restore.h: Rename include guard.
10243 * common/scoped_mmap.h: Rename include guard.
10244 * common/scoped_fd.h: Rename include guard.
10245 * common/safe-iterator.h: Rename include guard.
10246 * common/run-time-clock.h: Rename include guard.
10247 * common/refcounted-object.h: Rename include guard.
10248 * common/queue.h: Rename include guard.
10249 * common/ptid.h: Rename include guard.
10250 * common/print-utils.h: Rename include guard.
10251 * common/preprocessor.h: Rename include guard.
10252 * common/pathstuff.h: Rename include guard.
10253 * common/observable.h: Rename include guard.
10254 * common/netstuff.h: Rename include guard.
10255 * common/job-control.h: Rename include guard.
10256 * common/host-defs.h: Rename include guard.
10257 * common/gdb_wait.h: Rename include guard.
10258 * common/gdb_vecs.h: Rename include guard.
10259 * common/gdb_unlinker.h: Rename include guard.
10260 * common/gdb_unique_ptr.h: Rename include guard.
10261 * common/gdb_tilde_expand.h: Rename include guard.
10262 * common/gdb_sys_time.h: Rename include guard.
10263 * common/gdb_string_view.h: Rename include guard.
10264 * common/gdb_splay_tree.h: Rename include guard.
10265 * common/gdb_setjmp.h: Rename include guard.
10266 * common/gdb_ref_ptr.h: Rename include guard.
10267 * common/gdb_optional.h: Rename include guard.
10268 * common/gdb_locale.h: Rename include guard.
10269 * common/gdb_assert.h: Rename include guard.
10270 * common/filtered-iterator.h: Rename include guard.
10271 * common/filestuff.h: Rename include guard.
10272 * common/fileio.h: Rename include guard.
10273 * common/environ.h: Rename include guard.
10274 * common/common-utils.h: Rename include guard.
10275 * common/common-types.h: Rename include guard.
10276 * common/common-regcache.h: Rename include guard.
10277 * common/common-inferior.h: Rename include guard.
10278 * common/common-gdbthread.h: Rename include guard.
10279 * common/common-exceptions.h: Rename include guard.
10280 * common/common-defs.h: Rename include guard.
10281 * common/common-debug.h: Rename include guard.
10282 * common/cleanups.h: Rename include guard.
10283 * common/buffer.h: Rename include guard.
10284 * common/btrace-common.h: Rename include guard.
10285 * common/break-common.h: Rename include guard.
10286 * cli/cli-utils.h: Rename include guard.
10287 * cli/cli-style.h: Rename include guard.
10288 * cli/cli-setshow.h: Rename include guard.
10289 * cli/cli-script.h: Rename include guard.
10290 * cli/cli-interp.h: Rename include guard.
10291 * cli/cli-decode.h: Rename include guard.
10292 * cli/cli-cmds.h: Rename include guard.
10293 * charset-list.h: Add include guard.
10294 * buildsym-legacy.h: Rename include guard.
10295 * bfin-tdep.h: Add include guard.
10296 * ax.h: Rename include guard.
10297 * arm-linux-tdep.h: Add include guard.
10298 * arm-fbsd-tdep.h: Add include guard.
10299 * arch/xtensa.h: Rename include guard.
10300 * arch/tic6x.h: Add include guard.
10301 * arch/i386.h: Add include guard.
10302 * arch/arm.h: Rename include guard.
10303 * arch/arm-linux.h: Rename include guard.
10304 * arch/arm-get-next-pcs.h: Rename include guard.
10305 * arch/amd64.h: Add include guard.
10306 * arch/aarch64-insn.h: Rename include guard.
10307 * arch-utils.h: Rename include guard.
10308 * annotate.h: Add include guard.
10309 * amd64-darwin-tdep.h: Rename include guard.
10310 * aarch64-linux-tdep.h: Add include guard.
10311 * aarch64-fbsd-tdep.h: Add include guard.
10312 * aarch32-linux-nat.h: Add include guard.
10314 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10316 * macrotab.c (macro_define_internal): New function that
10317 factorizes macro_define_object_internal and macro_define_function
10319 (macro_define_object_internal): Use macro_define_internal.
10320 (macro_define_function): Likewise.
10322 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10324 * macrocmd.c (extract_identifier): Return
10325 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10328 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10330 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10332 2019-02-05 Tom Tromey <tom@tromey.com>
10334 * target.c (target_stack::unpush): Move assertion earlier.
10336 2019-01-30 Tom Tromey <tom@tromey.com>
10339 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10340 (gdbpy_parse_and_eval): Likewise.
10341 * python/python-internal.h (gdbpy_allow_threads): New class.
10343 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10345 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10346 (aarch64_fbsd_fpregmap): Move earlier.
10347 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10348 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10349 instead of individual calls to trad_frame_set_reg_addr.
10350 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10352 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10353 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10354 instead of individual calls to trad_frame_set_reg_addr.
10356 2019-01-28 Alan Hayward <alan.hayward@arm.com>
10358 * CONTRIBUTE: Replace contribution list with wiki link.
10360 2019-01-25 Tom Tromey <tom@tromey.com>
10362 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10364 2019-01-25 Tom Tromey <tom@tromey.com>
10366 * xtensa-linux-nat.c: Fix common/ includes.
10367 * xml-support.h: Fix common/ includes.
10368 * xml-support.c: Fix common/ includes.
10369 * x86-linux-nat.c: Fix common/ includes.
10370 * windows-nat.c: Fix common/ includes.
10371 * varobj.h: Fix common/ includes.
10372 * varobj.c: Fix common/ includes.
10373 * value.c: Fix common/ includes.
10374 * valops.c: Fix common/ includes.
10375 * utils.c: Fix common/ includes.
10376 * unittests/xml-utils-selftests.c: Fix common/ includes.
10377 * unittests/utils-selftests.c: Fix common/ includes.
10378 * unittests/unpack-selftests.c: Fix common/ includes.
10379 * unittests/tracepoint-selftests.c: Fix common/ includes.
10380 * unittests/style-selftests.c: Fix common/ includes.
10381 * unittests/string_view-selftests.c: Fix common/ includes.
10382 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10383 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10384 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10385 * unittests/rsp-low-selftests.c: Fix common/ includes.
10386 * unittests/parse-connection-spec-selftests.c: Fix common/
10388 * unittests/optional-selftests.c: Fix common/ includes.
10389 * unittests/offset-type-selftests.c: Fix common/ includes.
10390 * unittests/observable-selftests.c: Fix common/ includes.
10391 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10392 * unittests/memrange-selftests.c: Fix common/ includes.
10393 * unittests/memory-map-selftests.c: Fix common/ includes.
10394 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10395 * unittests/function-view-selftests.c: Fix common/ includes.
10396 * unittests/environ-selftests.c: Fix common/ includes.
10397 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10398 * unittests/common-utils-selftests.c: Fix common/ includes.
10399 * unittests/cli-utils-selftests.c: Fix common/ includes.
10400 * unittests/array-view-selftests.c: Fix common/ includes.
10401 * ui-file.c: Fix common/ includes.
10402 * tui/tui-io.c: Fix common/ includes.
10403 * tracepoint.h: Fix common/ includes.
10404 * tracepoint.c: Fix common/ includes.
10405 * tracefile-tfile.c: Fix common/ includes.
10406 * top.h: Fix common/ includes.
10407 * top.c: Fix common/ includes.
10408 * thread.c: Fix common/ includes.
10409 * target/waitstatus.h: Fix common/ includes.
10410 * target/waitstatus.c: Fix common/ includes.
10411 * target.h: Fix common/ includes.
10412 * target.c: Fix common/ includes.
10413 * target-memory.c: Fix common/ includes.
10414 * target-descriptions.c: Fix common/ includes.
10415 * symtab.h: Fix common/ includes.
10416 * symfile.c: Fix common/ includes.
10417 * stap-probe.c: Fix common/ includes.
10418 * spu-linux-nat.c: Fix common/ includes.
10419 * sparc-nat.c: Fix common/ includes.
10420 * source.c: Fix common/ includes.
10421 * solib.c: Fix common/ includes.
10422 * solib-target.c: Fix common/ includes.
10423 * ser-unix.c: Fix common/ includes.
10424 * ser-tcp.c: Fix common/ includes.
10425 * ser-pipe.c: Fix common/ includes.
10426 * ser-base.c: Fix common/ includes.
10427 * selftest-arch.c: Fix common/ includes.
10428 * s12z-tdep.c: Fix common/ includes.
10429 * rust-exp.y: Fix common/ includes.
10430 * rs6000-aix-tdep.c: Fix common/ includes.
10431 * riscv-tdep.c: Fix common/ includes.
10432 * remote.c: Fix common/ includes.
10433 * remote-notif.h: Fix common/ includes.
10434 * remote-fileio.h: Fix common/ includes.
10435 * remote-fileio.c: Fix common/ includes.
10436 * regcache.h: Fix common/ includes.
10437 * regcache.c: Fix common/ includes.
10438 * record-btrace.c: Fix common/ includes.
10439 * python/python.c: Fix common/ includes.
10440 * python/py-type.c: Fix common/ includes.
10441 * python/py-inferior.c: Fix common/ includes.
10442 * progspace.h: Fix common/ includes.
10443 * producer.c: Fix common/ includes.
10444 * procfs.c: Fix common/ includes.
10445 * proc-api.c: Fix common/ includes.
10446 * printcmd.c: Fix common/ includes.
10447 * ppc-linux-nat.c: Fix common/ includes.
10448 * parser-defs.h: Fix common/ includes.
10449 * osdata.c: Fix common/ includes.
10450 * obsd-nat.c: Fix common/ includes.
10451 * nat/x86-linux.c: Fix common/ includes.
10452 * nat/x86-linux-dregs.c: Fix common/ includes.
10453 * nat/x86-dregs.h: Fix common/ includes.
10454 * nat/x86-dregs.c: Fix common/ includes.
10455 * nat/ppc-linux.c: Fix common/ includes.
10456 * nat/mips-linux-watch.h: Fix common/ includes.
10457 * nat/mips-linux-watch.c: Fix common/ includes.
10458 * nat/linux-waitpid.c: Fix common/ includes.
10459 * nat/linux-ptrace.h: Fix common/ includes.
10460 * nat/linux-ptrace.c: Fix common/ includes.
10461 * nat/linux-procfs.c: Fix common/ includes.
10462 * nat/linux-personality.c: Fix common/ includes.
10463 * nat/linux-osdata.c: Fix common/ includes.
10464 * nat/linux-namespaces.c: Fix common/ includes.
10465 * nat/linux-btrace.h: Fix common/ includes.
10466 * nat/linux-btrace.c: Fix common/ includes.
10467 * nat/fork-inferior.c: Fix common/ includes.
10468 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10469 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10470 * nat/aarch64-linux.c: Fix common/ includes.
10471 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10472 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10473 * namespace.h: Fix common/ includes.
10474 * mips-linux-tdep.c: Fix common/ includes.
10475 * minsyms.c: Fix common/ includes.
10476 * mi/mi-parse.h: Fix common/ includes.
10477 * mi/mi-main.c: Fix common/ includes.
10478 * mi/mi-cmd-env.c: Fix common/ includes.
10479 * memrange.h: Fix common/ includes.
10480 * memattr.c: Fix common/ includes.
10481 * maint.h: Fix common/ includes.
10482 * maint.c: Fix common/ includes.
10483 * main.c: Fix common/ includes.
10484 * machoread.c: Fix common/ includes.
10485 * location.c: Fix common/ includes.
10486 * linux-thread-db.c: Fix common/ includes.
10487 * linux-nat.c: Fix common/ includes.
10488 * linux-fork.c: Fix common/ includes.
10489 * inline-frame.c: Fix common/ includes.
10490 * infrun.c: Fix common/ includes.
10491 * inflow.c: Fix common/ includes.
10492 * inferior.h: Fix common/ includes.
10493 * inferior.c: Fix common/ includes.
10494 * infcmd.c: Fix common/ includes.
10495 * inf-ptrace.c: Fix common/ includes.
10496 * inf-child.c: Fix common/ includes.
10497 * ia64-linux-nat.c: Fix common/ includes.
10498 * i387-tdep.c: Fix common/ includes.
10499 * i386-tdep.c: Fix common/ includes.
10500 * i386-linux-tdep.c: Fix common/ includes.
10501 * i386-linux-nat.c: Fix common/ includes.
10502 * i386-go32-tdep.c: Fix common/ includes.
10503 * i386-fbsd-tdep.c: Fix common/ includes.
10504 * i386-fbsd-nat.c: Fix common/ includes.
10505 * guile/scm-type.c: Fix common/ includes.
10506 * guile/guile.c: Fix common/ includes.
10507 * go32-nat.c: Fix common/ includes.
10508 * gnu-nat.c: Fix common/ includes.
10509 * gdbthread.h: Fix common/ includes.
10510 * gdbarch-selftests.c: Fix common/ includes.
10511 * gdb_usleep.c: Fix common/ includes.
10512 * gdb_select.h: Fix common/ includes.
10513 * gdb_bfd.c: Fix common/ includes.
10514 * gcore.c: Fix common/ includes.
10515 * fork-child.c: Fix common/ includes.
10516 * findvar.c: Fix common/ includes.
10517 * fbsd-nat.c: Fix common/ includes.
10518 * event-top.c: Fix common/ includes.
10519 * event-loop.c: Fix common/ includes.
10520 * dwarf2read.c: Fix common/ includes.
10521 * dwarf2loc.c: Fix common/ includes.
10522 * dwarf2-frame.c: Fix common/ includes.
10523 * dwarf-index-cache.c: Fix common/ includes.
10524 * dtrace-probe.c: Fix common/ includes.
10525 * disasm-selftests.c: Fix common/ includes.
10526 * defs.h: Fix common/ includes.
10527 * csky-tdep.c: Fix common/ includes.
10528 * cp-valprint.c: Fix common/ includes.
10529 * cp-support.h: Fix common/ includes.
10530 * cp-support.c: Fix common/ includes.
10531 * corelow.c: Fix common/ includes.
10532 * completer.h: Fix common/ includes.
10533 * completer.c: Fix common/ includes.
10534 * compile/compile.c: Fix common/ includes.
10535 * compile/compile-loc2c.c: Fix common/ includes.
10536 * compile/compile-cplus-types.c: Fix common/ includes.
10537 * compile/compile-cplus-symbols.c: Fix common/ includes.
10538 * command.h: Fix common/ includes.
10539 * cli/cli-dump.c: Fix common/ includes.
10540 * cli/cli-cmds.c: Fix common/ includes.
10541 * charset.c: Fix common/ includes.
10542 * build-id.c: Fix common/ includes.
10543 * btrace.h: Fix common/ includes.
10544 * btrace.c: Fix common/ includes.
10545 * breakpoint.h: Fix common/ includes.
10546 * breakpoint.c: Fix common/ includes.
10548 (enum agent_op): Fix common/ includes.
10549 * ax-general.c (struct aop_map): Fix common/ includes.
10550 * ax-gdb.c: Fix common/ includes.
10551 * auxv.c: Fix common/ includes.
10552 * auto-load.c: Fix common/ includes.
10553 * arm-tdep.c: Fix common/ includes.
10554 * arch/riscv.c: Fix common/ includes.
10555 * arch/ppc-linux-common.c: Fix common/ includes.
10556 * arch/i386.c: Fix common/ includes.
10557 * arch/arm.c: Fix common/ includes.
10558 * arch/arm-linux.c: Fix common/ includes.
10559 * arch/arm-get-next-pcs.c: Fix common/ includes.
10560 * arch/amd64.c: Fix common/ includes.
10561 * arch/aarch64.c: Fix common/ includes.
10562 * arch/aarch64-insn.c: Fix common/ includes.
10563 * arch-utils.c: Fix common/ includes.
10564 * amd64-windows-tdep.c: Fix common/ includes.
10565 * amd64-tdep.c: Fix common/ includes.
10566 * amd64-sol2-tdep.c: Fix common/ includes.
10567 * amd64-obsd-tdep.c: Fix common/ includes.
10568 * amd64-nbsd-tdep.c: Fix common/ includes.
10569 * amd64-linux-tdep.c: Fix common/ includes.
10570 * amd64-linux-nat.c: Fix common/ includes.
10571 * amd64-fbsd-tdep.c: Fix common/ includes.
10572 * amd64-fbsd-nat.c: Fix common/ includes.
10573 * amd64-dicos-tdep.c: Fix common/ includes.
10574 * amd64-darwin-tdep.c: Fix common/ includes.
10575 * agent.c: Fix common/ includes.
10576 * ada-lang.h: Fix common/ includes.
10577 * ada-lang.c: Fix common/ includes.
10578 * aarch64-tdep.c: Fix common/ includes.
10580 2019-01-25 Tom Tromey <tom@tromey.com>
10582 * common/create-version.sh: Use common/version.h.
10584 2019-01-24 Pedro Alves <palves@redhat.com>
10586 * infrun.c (signal_stop, signal_print, signal_program)
10587 (signal_catch, signal_pass): Now arrays instead of pointers.
10588 (update_signals_program_target, do_target_resume)
10589 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10590 * linux-nat.c (linux_nat_target::pass_signals)
10591 (linux_nat_target::create_inferior, linux_nat_target::attach):
10593 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10594 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10595 * procfs.c (procfs_target::pass_signals): Adjust.
10596 * record-full.c (record_full_target::resume): Adjust.
10597 * remote.c (remote_target::pass_signals)
10598 (remote_target::program_signals): Adjust.
10599 * target-debug.h (target_debug_print_signals): Now takes a
10600 gdb::array_view as parameter. Adjust.
10601 * target.h (target_ops) <pass_signals, program_signals>: Replace
10602 pointer and length parameters with gdb::array_view.
10603 (target_pass_signals, target_program_signals): Likewise.
10604 * target-delegates.c: Regenerate.
10606 2019-01-24 Pedro Alves <palves@redhat.com>
10608 * common/forward-scope-exit.h
10609 (forward_scope_exit::forward_scope_exit): Pass arguments to
10610 m_bind_function directly, instead of creating a std::bind and
10613 2019-01-24 Alan Hayward <alan.hayward@arm.com>
10615 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10616 for static members.
10617 (pass_in_v_vfp_candidate): Likewise.
10619 2019-01-23 Tom Tromey <tom@tromey.com>
10620 Pedro Alves <palves@redhat.com>
10622 * regcache.c (class regcache_invalidator): Remove.
10623 (regcache::raw_write): Use make_scope_exit.
10625 2019-01-23 Tom Tromey <tom@tromey.com>
10627 * ui-out.h (class ui_out_emit_type): Update comment.
10629 2019-01-23 Tom Tromey <tom@tromey.com>
10631 * infrun.c (fetch_inferior_event): Update comment.
10633 2019-01-23 Tom Tromey <tom@tromey.com>
10634 Pedro Alves <palves@redhat.com>
10636 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10638 (fetch_inferior_event): Use SCOPE_EXIT.
10641 2019-01-23 Tom Tromey <tom@tromey.com>
10642 Pedro Alves <palves@redhat.com>
10644 * infrun.c (disable_thread_events): Delete.
10645 (stop_all_threads): Use SCOPE_EXIT.
10647 2019-01-23 Tom Tromey <tom@tromey.com>
10648 Pedro Alves <palves@redhat.com>
10650 * symfile.c: Include forward-scope-exit.h.
10651 (clear_symtab_users_cleanup): Replace forward declaration with
10652 a FORWARD_SCOPE_EXIT.
10653 (syms_from_objfile_1): Use the forward_scope_exit and
10654 gdb::optional instead of cleanup_function.
10655 (reread_symbols): Use the forward_scope_exit instead of
10657 (clear_symtab_users_cleanup): Remove function.
10659 2019-01-23 Tom Tromey <tom@tromey.com>
10660 Pedro Alves <palves@redhat.com>
10662 * linux-nat.c: Include scope-exit.h.
10663 (cleanup_target_stop): Remove.
10664 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10667 2019-01-23 Tom Tromey <tom@tromey.com>
10668 Pedro Alves <palves@redhat.com>
10670 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10671 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10673 2019-01-23 Tom Tromey <tom@tromey.com>
10674 Andrew Burgess <andrew.burgess@embecosm.com>
10675 Pedro Alves <palves@redhat.com>
10677 * infrun.c (fetch_inferior_event): Use scope_exit.
10678 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10679 * top.c (execute_command): Use scope_exit.
10680 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10681 * utils.c (do_bpstat_clear_actions_cleanup)
10682 (make_bpstat_clear_actions_cleanup): Remove.
10684 2019-01-23 Tom Tromey <tom@tromey.com>
10685 Pedro Alves <palves@redhat.com>
10687 * infrun.c: Include "common/scope-exit.h"
10688 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10689 (wait_for_inferior): Use SCOPE_EXIT.
10690 (fetch_inferior_event): Use scope_exit.
10692 2019-01-23 Tom Tromey <tom@tromey.com>
10693 Pedro Alves <palves@redhat.com>
10695 * breakpoint.c (create_breakpoint): Remove cleanup.
10697 2019-01-23 Tom Tromey <tom@tromey.com>
10698 Andrew Burgess <andrew.burgess@embecosm.com>
10699 Pedro Alves <palves@redhat.com>
10701 2019-01-23 Pedro Alves <palves@redhat.com>
10703 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10705 2019-01-23 Pedro Alves <palves@redhat.com>
10706 Andrew Burgess <andrew.burgess@embecosm.com>
10708 * gdbthread.h: Include "common/forward-scope-exit.h".
10709 (scoped_finish_thread_state): Redefine custom class in terms of
10710 forward_scope_exit.
10712 2019-01-23 Pedro Alves <palves@redhat.com>
10713 Andrew Burgess <andrew.burgess@embecosm.com>
10715 * common/forward-scope-exit.h: New file.
10717 2019-01-23 Pedro Alves <palves@redhat.com>
10718 Andrew Burgess <andrew.burgess@embecosm.com>
10719 Tom Tromey <tom@tromey.com>
10721 * common/scope-exit.h: New file.
10723 2019-01-23 Pedro Alves <palves@redhat.com>
10725 * common/preprocessor.h (ESC): Rename to ...
10726 (ESC_PARENS): ... this.
10727 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10728 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10730 2019-01-23 Tom Tromey <tom@tromey.com>
10732 * language.h (class scoped_switch_to_sym_language_if_auto):
10733 Initialize m_lang in both cases.
10735 2019-01-23 Alan Hayward <alan.hayward@arm.com>
10737 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10740 2019-01-22 Tom Tromey <tom@tromey.com>
10742 * corelow.c: Do not include sys/file.h.
10744 2019-01-22 Tom Tromey <tom@tromey.com>
10746 * tui/tui-wingeneral.h: Include gdb_curses.h.
10748 2019-01-22 Tom Tromey <tom@tromey.com>
10750 * source-cache.h (class source_cache) <get_source_lines,
10751 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10753 2019-01-22 Tom Tromey <tom@tromey.com>
10755 * remote-fileio.h (struct remote_target): Declare.
10757 2019-01-22 Tom Tromey <tom@tromey.com>
10759 * python/py-arch.c: Do not include py-ref.h.
10760 * python/py-bpevent.c: Do not include py-ref.h.
10761 * python/py-cmd.c: Do not include py-ref.h.
10762 * python/py-continueevent.c: Do not include py-ref.h.
10763 * python/py-event.h: Do not include py-ref.h.
10764 * python/py-evtregistry.c: Do not include py-ref.h.
10765 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10766 * python/py-frame.c: Do not include py-ref.h.
10767 * python/py-framefilter.c: Do not include py-ref.h.
10768 * python/py-function.c: Do not include py-ref.h.
10769 * python/py-infevents.c: Do not include py-ref.h.
10770 * python/py-linetable.c: Do not include py-ref.h.
10771 * python/py-objfile.c: Do not include py-ref.h.
10772 * python/py-param.c: Do not include py-ref.h.
10773 * python/py-prettyprint.c: Do not include py-ref.h.
10774 * python/py-progspace.c: Do not include py-ref.h.
10775 * python/py-symbol.c: Do not include py-ref.h.
10776 * python/py-symtab.c: Do not include py-ref.h.
10777 * python/py-type.c: Do not include py-ref.h.
10778 * python/py-unwind.c: Do not include py-ref.h.
10779 * python/py-utils.c: Do not include py-ref.h.
10780 * python/py-value.c: Do not include py-ref.h.
10781 * python/py-varobj.c: Do not include py-ref.h.
10782 * python/py-xmethods.c: Do not include py-ref.h.
10783 * python/python.c: Do not include py-ref.h.
10784 * varobj.c: Do not include py-ref.h.
10786 2019-01-22 Tom Tromey <tom@tromey.com>
10788 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10789 keyword for bcache.
10791 2019-01-22 Tom Tromey <tom@tromey.com>
10793 * compile/compile-cplus-types.c: Remove a comment by #include.
10795 2019-01-22 Tom Tromey <tom@tromey.com>
10797 * compile/gcc-c-plugin.h: Include compile-internal.h.
10799 2019-01-22 Tom Tromey <tom@tromey.com>
10801 * stabsread.c (EXTERN): Do not define.
10802 (symnum, next_symbol_text_func, processing_gcc_compilation)
10803 (within_function, global_sym_chain, global_stabs)
10804 (previous_stab_code, this_object_header_files)
10805 (n_this_object_header_files)
10806 (n_allocated_this_object_header_files): Define.
10807 * stabsread.h (EXTERN): Never define. Use "extern".
10809 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10811 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10814 2019-01-21 Tom Tromey <tom@tromey.com>
10816 * ui-out.c: Fix includes.
10817 * tui/tui-source.c: Fix includes.
10818 * target.c: Fix includes.
10819 * remote.c: Fix includes.
10820 * regcache.c: Fix includes.
10821 * python/py-block.c: Fix includes.
10822 * printcmd.c: Fix includes.
10823 * or1k-tdep.c: Fix includes.
10824 * mi/mi-main.c: Fix includes.
10825 * m32r-tdep.c: Fix includes.
10826 * csky-tdep.c: Fix includes.
10827 * compile/compile-cplus-types.c: Fix includes.
10828 * cli/cli-interp.c: Fix includes.
10830 2019-01-21 Alan Hayward <alan.hayward@arm.com>
10832 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10835 2019-01-16 Tom Tromey <tom@tromey.com>
10837 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10839 (struct objfile) <msymbols_range>: Move from top level.
10840 <msymbols>: New method.
10841 (class objfile_msymbols): Remove.
10842 * symtab.c (default_collect_symbol_completion_matches_break_on):
10844 * symmisc.c (dump_msymbols): Update.
10845 * stabsread.c (scan_file_globals): Update.
10846 * objc-lang.c (info_selectors_command, info_classes_command)
10847 (find_methods): Update.
10848 * minsyms.c (find_solib_trampoline_target): Update.
10849 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10850 * coffread.c (coff_symfile_read): Update.
10851 * ada-lang.c (ada_lookup_simple_minsym)
10852 (ada_collect_symbol_completion_matches): Update.
10854 2019-01-16 Tom Tromey <tom@tromey.com>
10856 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10857 type. Remove no-argument constructor.
10858 <iterator::operator++>: Simplify.
10860 <end>: Use minimal_symbol_count.
10862 2019-01-16 Tom Tromey <tom@tromey.com>
10864 * objfiles.h (struct objfile) <psymtabs>: New method.
10865 (class objfile_psymtabs): Remove.
10866 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10868 <range>: New method.
10869 (require_partial_symbols): Change return type.
10870 * psymtab.c (require_partial_symbols)
10871 (psym_expand_symtabs_matching): Update.
10872 * mdebugread.c (parse_partial_symbols): Update.
10873 * dbxread.c (dbx_end_psymtab): Update.
10875 2019-01-15 Tom Tromey <tom@tromey.com>
10877 * symtab.c (lookup_objfile_from_block)
10878 (lookup_symbol_in_objfile_symtabs)
10879 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10880 (find_line_symtab, info_sources_command)
10881 (default_collect_symbol_completion_matches_break_on)
10882 (make_source_files_completion_list): Update.
10883 * symmisc.c (print_objfile_statistics, dump_objfile)
10884 (maintenance_print_symbols, maintenance_info_symtabs)
10885 (maintenance_check_symtabs, maintenance_info_line_tables):
10887 * source.c (select_source_symtab)
10888 (forget_cached_source_info_for_objfile): Update.
10889 * objfiles.h (class objfile_compunits): Remove.
10890 (struct objfile) <compunits_range>: New typedef.
10891 (compunits): New method.
10892 * objfiles.c (objfile_relocate1): Update.
10893 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10894 * maint.c (count_symtabs_and_blocks): Update.
10895 * linespec.c (iterate_over_all_matching_symtabs): Update.
10896 * cp-support.c (add_symbol_overload_list_qualified): Update.
10897 * coffread.c (coff_symtab_read): Update.
10898 * ada-lang.c (add_nonlocal_symbols)
10899 (ada_collect_symbol_completion_matches)
10900 (ada_add_global_exceptions): Update.
10902 2019-01-15 Tom Tromey <tom@tromey.com>
10904 * progspace.h (program_space) <objfiles_safe_range>: New
10906 <objfiles_safe>: New method.
10907 * objfiles.h (class all_objfiles_safe): Remove.
10908 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10909 * jit.c (jit_inferior_exit_hook): Update.
10911 2019-01-17 Tom Tromey <tom@tromey.com>
10913 * progspace.h (program_space) <objfiles_range>: New typedef.
10914 <objfiles>: New method.
10915 <objfiles_head>: Rename from objfiles.
10916 (object_files): Update.
10917 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10918 * guile/scm-pretty-print.c
10919 (ppscm_find_pretty_printer_from_objfiles): Update.
10920 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10921 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10923 * python/py-progspace.c (pspy_get_objfiles): Update.
10924 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10926 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10927 (objfpy_lookup_objfile_by_build_id): Update.
10928 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10929 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10931 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10932 (expand_symtab_containing_pc, lookup_objfile_from_block)
10933 (lookup_static_symbol, basic_lookup_transparent_type)
10934 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10935 (find_line_symtab, info_sources_command)
10936 (default_collect_symbol_completion_matches_break_on)
10937 (make_source_files_completion_list, find_main_name): Update.
10938 * symmisc.c (print_symbol_bcache_statistics)
10939 (print_objfile_statistics, maintenance_print_symbols)
10940 (maintenance_print_msymbols, maintenance_print_objfiles)
10941 (maintenance_info_symtabs, maintenance_check_symtabs)
10942 (maintenance_expand_symtabs, maintenance_info_line_tables):
10944 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10945 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10946 (map_overlay_command, unmap_overlay_command)
10947 (simple_overlay_update, expand_symtabs_matching)
10948 (map_symbol_filenames): Update.
10949 * symfile-debug.c (set_debug_symfile): Update.
10950 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10952 * source.c (select_source_symtab, forget_cached_source_info):
10954 * solib.c (solib_read_symbols): Update.
10955 * solib-spu.c (append_ocl_sos): Update.
10956 * psymtab.c (maintenance_print_psymbols)
10957 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10958 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10959 * printcmd.c (info_symbol_command): Update.
10960 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10962 * objfiles.h (class all_objfiles): Remove.
10963 * objfiles.c (have_partial_symbols, have_full_symbols)
10964 (have_minimal_symbols, qsort_cmp, update_section_map)
10965 (shared_objfile_contains_address_p)
10966 (default_iterate_over_objfiles_in_search_order): Update.
10967 * objc-lang.c (info_selectors_command, info_classes_command)
10968 (find_methods): Update.
10969 * minsyms.c (find_solib_trampoline_target): Update.
10970 * maint.c (maintenance_info_sections)
10971 (maintenance_translate_address, count_symtabs_and_blocks):
10973 * main.c (captured_main_1): Update.
10974 * linux-thread-db.c (try_thread_db_load_from_pdir)
10975 (has_libpthread): Update.
10976 * linespec.c (iterate_over_all_matching_symtabs)
10977 (search_minsyms_for_name): Update.
10978 * jit.c (jit_find_objf_with_entry_addr): Update.
10979 * hppa-tdep.c (find_unwind_entry)
10980 (hppa_lookup_stub_minimal_symbol): Update.
10981 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10983 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10984 (elf_gnu_ifunc_resolve_by_got): Update.
10985 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10986 * dwarf-index-write.c (save_gdb_index_command): Update.
10987 * cp-support.c (add_symbol_overload_list_qualified): Update.
10988 * breakpoint.c (create_overlay_event_breakpoint)
10989 (create_longjmp_master_breakpoint)
10990 (create_std_terminate_master_breakpoint)
10991 (create_exception_master_breakpoint): Update.
10992 * blockframe.c (find_pc_partial_function): Update.
10993 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10994 (ada_collect_symbol_completion_matches)
10995 (ada_add_global_exceptions): Update.
10997 2019-01-17 Tom Tromey <tom@tromey.com>
10999 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11001 (solib_target_parse_libraries): Change return type.
11002 (library_list_start_segment, library_list_start_section)
11003 (library_list_end_library, library_list_start_library); Update.
11004 (solib_target_free_library_list): Remove.
11005 (solib_target_parse_libraries): Remove cleanup. Change return
11007 (solib_target_current_sos): Update.
11009 2019-01-17 Tom Tromey <tromey@bapiya>
11011 * valprint.c: Replace "the the" with "the".
11012 * symtab.c: Replace "the the" with "the".
11013 * solib.c: Replace "the the" with "the".
11014 * solib-dsbt.c: Replace "the the" with "the".
11015 * linespec.c: Replace "the the" with "the".
11016 * dwarf2loc.h: Replace "the the" with "the".
11017 * amd64-windows-tdep.c: Replace "the the" with "the".
11018 * aarch64-tdep.c: Replace "the the" with "the".
11020 2019-01-16 Keith Seitz <keiths@redhat.com>
11023 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11024 <builder>: Rename to ..
11025 <m_builder>: ... this and make private.
11026 (dwarf2_cu::get_builder): New method. Change all users of
11027 `builder' to use this method.
11028 (dwarf2_start_symtab): Move to ...
11029 (dwarf2_cu::start_symtab): ... here. Update all callers
11030 (setup_type_unit_groups): Move to ...
11031 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11033 (dwarf2_cu::reset_builder): New method.
11034 (process_full_compunit, process_full_type_unit): Use
11035 dwarf2_cu::reset_builder.
11036 (follow_die_offset): Record the ancestor CU if it is different
11037 from the followed DIE's CU.
11038 (follow_die_sig_1): Likewise.
11040 2019-01-15 Tom Tromey <tom@tromey.com>
11042 * remote.c (class remote_state) <buf>: Now a char_vector.
11043 <buf_size>: Remove.
11044 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11046 (remote_target::getpkt_or_notif_sane_1)
11047 (remote_target::getpkt_sane)
11048 (remote_target::getpkt_or_notif_sane): Likewise.
11049 (class remote_target) <putpkt>: New overload.
11050 (remote_target::read_frame): Change type of "buf_p". Remove
11051 sizeof_p parameter.
11052 (packet_ok): New overload.
11053 (packet_check_result): New overload.
11056 2019-01-14 Tom Tromey <tom@tromey.com>
11058 * remote-notif.c (handle_notification, remote_notif_ack)
11059 (remote_notif_parse): Make "buf" const.
11060 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11062 (remote_notif_parse, remote_notif_ack, handle_notification):
11064 * remote.c (remote_notif_stop_parse): Make "buf" const.
11065 (remote_target::remote_parse_stop_reply): Make "buf" const.
11066 (remote_notif_stop_ack): Make "buf" const.
11068 2019-01-14 Tom Tromey <tom@tromey.com>
11070 * remote.c (remote_console_output): Make parameter const.
11072 2019-01-14 Tom Tromey <tom@tromey.com>
11074 * target-debug.h (target_debug_print_signals): Constify.
11075 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11076 * procfs.c (procfs_target::pass_signals): Update.
11077 * linux-nat.c (linux_nat_target::pass_signals): Update.
11078 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11079 * target-delegates.c: Rebuild.
11080 * remote.c (remote_target::program_signals): Update.
11081 (remote_target::pass_signals): Update.
11082 * target.c (target_pass_signals): Constify argument.
11083 (target_program_signals): Likewise.
11084 * target.h (struct target_ops) <pass_signals, program_signals>:
11086 (target_pass_signals, target_program_signals): Constify argument.
11088 2019-01-14 Tom Tromey <tom@tromey.com>
11091 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11093 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11095 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11097 * rs6000-tdep.c: Include reggroups.h.
11098 (IS_V_ALIAS_PSEUDOREG): Define.
11099 (rs6000_register_name): Return names for the "vX" aliases.
11100 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11101 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11102 aliases. Call default_register_reggroup_p for all other
11104 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11106 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11107 Handle "vX" aliases.
11108 (v_alias_pseudo_register_collect): New function.
11109 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11110 (rs6000_gdbarch_init): Initialize "vX" aliases as
11111 pseudo-registers. Restore registration of
11112 rs6000_pseudo_register_reggroup_p with
11113 set_tdesc_pseudo_register_reggroup_p.
11115 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11117 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11118 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11119 set_gdbarch_num_pseudo_regs.
11121 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11123 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11124 Remove arg prefixname, add do_set and do_show.
11125 Add member functions set_list and show_list.
11126 * cli/cli-style.c (class cli_style_option): Update accordingly.
11127 (style_set_list): Move to file scope.
11128 (style_show_list): Likewise.
11129 (set_style): Call help_list.
11130 (show_style): Call cmd_show_list.
11131 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11132 Update to use the new macro.
11134 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11136 * ada-lang.c (_initialize_ada_language): Expand the help text
11137 for the "catch exception" command.
11139 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11141 * symtab.c (matching_obj_sections): Initialize obj,
11142 declare it closer to its usage.
11144 2019-01-10 Tom Tromey <tom@tromey.com>
11146 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11147 (basic_inf_threads_range): Remove.
11148 (inf_threads_range, inf_non_exited_threads_range)
11149 (safe_inf_threads_range): Use next_adapter.
11151 2019-01-10 Keith Seitz <keiths@redhat.com>
11155 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11156 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11158 2019-01-10 Keith Seitz <keiths@redhat.com>
11162 * dictionary.c (pending_to_vector): Remove.
11163 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11164 Remove _1 suffix, replacing functions of the same name. Update
11166 (dict_create_hashed, dict_create_hashed_expandable)
11167 (dict_create_linear, dict_create_linear_expandable, dict_free)
11168 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11169 Make functions static.
11171 2019-01-10 Keith Seitz <keiths@redhat.com>
11175 * dictionary.h (struct dictionary): Replace declaration with
11177 (dict_create_hashed, dict_create_hashed_expandable)
11178 (dict_create_linear, dict_create_linear_expandable)
11179 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11180 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11181 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11182 taking multidictionary argument.
11183 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11184 * block.h (struct block) <dict>: Change to multidictionary
11185 and rename `multidict'.
11186 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11187 symmisc.c: Update all dictionary references to multidictionary.
11189 2019-01-10 Keith Seitz <keiths@redhat.com>
11193 * dictionary.c: Include unordered_map.
11194 (pending_to_vector): New function.
11195 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11196 Rewrite the non-"_1" functions to take vector instead
11198 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11199 "new" _1 versions of the same name.
11200 (multidictionary): Define.
11201 (std::hash<enum language): New definition.
11202 (collate_pending_symbols_by_language, mdict_create_hashed)
11203 (mdict_create_hashed_expandable, mdict_create_linear)
11204 (mdict_create_linear_expandable, mdict_free)
11205 (find_language_dictionary, create_new_language_dictionary)
11206 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11207 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11208 (mdict_size, mdict_empty): New functions.
11209 * dictionary.h (mdict_iterator): Define.
11211 2019-01-10 Pedro Alves <palves@redhat.com>
11213 * breakpoint.c (read_uploaded_action)
11214 (create_tracepoint_from_upload): Adjust to use
11215 gdb::unique_xmalloc_ptr.
11216 * ctf.c (ctf_write_uploaded_tp):
11217 (SET_ARRAY_FIELD): Use emplace_back.
11218 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11219 * tracefile-tfile.c (tfile_write_uploaded_tp):
11220 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11221 gdb::unique_xmalloc_ptr.
11222 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11223 at_string, cond_string, cmd_strings>: Replace char pointers
11224 with gdb::unique_xmalloc_ptr.
11226 2019-01-10 Pedro Alves <palves@redhat.com>
11228 * solib-target.c (library_list_start_library): Don't xstrdup name.
11230 2019-01-10 Pedro Alves <palves@redhat.com>
11232 * mdebugread.c (parse_partial_symbols): Use
11233 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11235 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11237 * linux-fork.c (scoped_switch_fork_info)
11238 <~scoped_switch_fork_info>: Fix incorrect variable name.
11240 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11242 * linux-fork.c (scoped_switch_fork_info)
11243 <scoped_switch_fork_info>: Make explicit.
11244 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11246 2019-01-10 Tom Tromey <tom@tromey.com>
11248 * objfiles.h (objfile::reset_psymtabs): Update.
11249 * objfiles.c (objfile::objfile): Update.
11250 * psymtab.h (psymtab_storage::obstack): Update.
11251 (psymtab_storage::m_obstack): Use gdb::optional.
11252 (class psymtab_storage): Update comment. Remove objfile
11254 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11256 2019-01-10 Tom Tromey <tom@tromey.com>
11258 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11259 <free_psymtabs>: Now private.
11260 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11261 (allocate_psymtab): Use new method.
11263 2019-01-10 Tom Tromey <tom@tromey.com>
11265 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11266 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11267 * mdebugread.c (parse_partial_symbols): Use
11268 allocate_dependencies.
11269 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11270 allocate_dependencies.
11271 (process_psymtab_comp_unit_reader)
11272 (build_type_psymtab_dependencies): Likewise.
11273 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11275 2019-01-10 Tom Tromey <tom@tromey.com>
11277 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11278 PSYMBOL_SET_LANGUAGE.
11279 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11281 2019-01-10 Tom Tromey <tom@tromey.com>
11283 * psymtab.h (psymtab_storage::obstack): New method.
11284 <m_obstack>: Rename from obstack; now private.
11285 * psymtab.c (psymtab_storage): Update.
11286 * dwarf2read.c (create_addrmap_from_index)
11287 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11290 2019-01-10 Tom Tromey <tom@tromey.com>
11292 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11293 * objfiles.h (objfile::reset_psymtabs): New method.
11295 2019-01-10 Tom Tromey <tom@tromey.com>
11297 * symmisc.c (print_symbol_bcache_statistics): Update.
11298 (print_objfile_statistics): Update.
11299 * symfile.c (reread_symbols): Update.
11300 * psymtab.h (class psymtab_storage): New.
11301 * psymtab.c (psymtab_storage): New constructor.
11302 (~psymtab_storage): New destructor.
11303 (require_partial_symbols): Update.
11304 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11305 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11306 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11307 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11308 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11309 (start_psymtab_common, end_psymtab_common)
11310 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11311 (allocate_psymtab): Update.
11312 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11314 (dump_psymtab_addrmap, maintenance_print_psymbols)
11315 (maintenance_check_psymtabs): Update.
11316 (class objfile_psymtabs): Move to objfiles.h.
11317 * psympriv.h (discard_psymtab): Now inline.
11318 (psymtab_discarder::psymtab_discarder): Update.
11319 (psymtab_discarder::~psymtab_discarder): Update.
11320 (ALL_OBJFILE_PSYMTABS): Rewrite.
11321 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11322 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11324 <partial_symtabs>: New field.
11325 (class objfile_psymtabs): Move from psymtab.h. Update.
11326 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11328 (objfile::~objfile): Don't destroy psymbol_cache.
11329 * mdebugread.c (parse_partial_symbols): Update.
11330 * dwarf2read.c (create_addrmap_from_index)
11331 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11332 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11333 (add_partial_subprogram, dwarf2_ranges_read): Update.
11334 * dwarf-index-write.c (write_address_map)
11335 (write_one_signatured_type, recursively_write_psymbols)
11336 (class debug_names, class debug_names, write_psymtabs_to_index):
11339 2019-01-10 Tom Tromey <tom@tromey.com>
11341 * symtab.h (SYMBOL_SET_NAMES): Update.
11342 (symbol_set_names): Update.
11343 (MSYMBOL_SET_NAMES): Update.
11344 * symtab.c (symbol_set_names): Change argument to be an
11345 objfile_per_bfd_storage.
11346 * psymtab.c (add_psymbol_to_bcache): Update.
11347 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11349 2019-01-10 Tom Tromey <tom@tromey.com>
11351 * symtab.c (create_demangled_names_hash): Change argument to be an
11352 objfile_per_bfd_storage.
11353 (symbol_set_names): Update.
11355 2019-01-10 Tom Tromey <tom@tromey.com>
11357 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11359 * psymtab.c (init_psymbol_list): Do nothing if already called.
11360 * psympriv.h (init_psymbol_list): Add comment.
11361 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11363 * dbxread.c (dbx_symfile_read): Unconditionally call
11366 2019-01-10 Tom Tromey <tom@tromey.com>
11368 * xcoffread.c (scan_xcoff_symtab): Update.
11369 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11371 * mdebugread.c (parse_partial_symbols)
11372 (handle_psymbol_enumerators): Update.
11373 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11374 * dbxread.c (read_dbx_symtab): Update.
11375 * psympriv.h (psymbol_placement): New enum.
11376 (add_psymbol_to_list): Update.
11378 2019-01-10 Tom Tromey <tom@tromey.com>
11380 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11381 static_psymbols parameters.
11382 (scan_xcoff_symtab): Update.
11383 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11384 static_psymbols parameters.
11385 * psympriv.h (start_psymtab_common): Update.
11386 * mdebugread.c (parse_partial_symbols): Update.
11387 * dwarf2read.c (create_partial_symtab): Update.
11388 * dbxread.c (read_dbx_symtab): Update.
11389 (start_psymtab): Remove global_psymbols and static_psymbols
11392 2019-01-10 Tom Tromey <tom@tromey.com>
11394 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11395 * psymtab.c (allocate_psymtab): Add comment.
11396 * psympriv.h (allocate_psymtab): Add comment.
11397 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11399 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11401 2019-01-10 Tom Tromey <tom@tromey.com>
11403 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11405 * mipsread.c: Include mdebugread.h.
11406 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11408 * elfread.c: Include mdebugread.h.
11410 2019-01-09 Tom Tromey <tom@tromey.com>
11412 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11413 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11414 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11415 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11416 (psym_lookup_symbol, psym_find_last_source_symtab)
11417 (psym_forget_cached_source_info, psym_print_stats)
11418 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11419 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11420 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11421 (psym_find_compunit_symtab_by_address)
11422 (maintenance_print_psymbols, maintenance_info_psymtabs)
11423 (maintenance_check_psymtabs): Use ranged for.
11424 * psymtab.h (class objfile_psymtabs): New.
11425 (require_partial_symbols): Return objfile_psymtabs.
11426 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11428 2019-01-09 Tom Tromey <tom@tromey.com>
11430 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11431 (find_pc_mapped_section, list_overlays_command)
11432 (map_overlay_command, unmap_overlay_command)
11433 (simple_overlay_update): Use all_objfiles.
11434 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11435 * printcmd.c (info_symbol_command): Use all_objfiles.
11436 * objfiles.h (ALL_OBJSECTIONS): Remove.
11437 * maint.c (maintenance_translate_address): Use all_objfiles.
11438 * gcore.c (gcore_create_callback): Use all_objfiles.
11439 (objfile_find_memory_regions): Likewise.
11441 2019-01-09 Tom Tromey <tom@tromey.com>
11443 * symtab.c (find_line_symtab, info_sources_command)
11444 (make_source_files_completion_list): Use objfile_compunits.
11445 * source.c (select_source_symtab): Use objfile_compunits.
11446 * objfiles.h (struct objfile): Update comment.
11447 (ALL_OBJFILES): Remove.
11448 (ALL_FILETABS): Remove.
11449 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11452 2019-01-09 Tom Tromey <tom@tromey.com>
11454 * symmisc.c (print_objfile_statistics, dump_objfile)
11455 (maintenance_print_symbols): Use compunit_filetabs.
11456 * source.c (forget_cached_source_info_for_objfile): Use
11458 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11459 (ALL_FILETABS): Use compunit_filetabs.
11460 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11461 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11463 2019-01-09 Tom Tromey <tom@tromey.com>
11465 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11466 (compunit_filetabs): New.
11467 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11469 (info_sources_command, make_source_files_completion_list): Remove
11471 * symmisc.c (print_objfile_statistics, dump_objfile)
11472 (maintenance_print_symbols): Remove declaration.
11473 (maintenance_info_symtabs): Use compunit_filetabs.
11474 (maintenance_info_line_tables): Likewise.
11475 * source.c (select_source_symtab): Change local variable name.
11476 (forget_cached_source_info_for_objfile): Remove declaration.
11477 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11478 * objfiles.c (objfile_relocate1): Remove declaration.
11479 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11481 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11482 * coffread.c (coff_symtab_read): Remove declaration.
11483 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11486 2019-01-09 Tom Tromey <tom@tromey.com>
11488 * symtab.c (lookup_objfile_from_block)
11489 (find_pc_sect_compunit_symtab, search_symbols)
11490 (default_collect_symbol_completion_matches_break_on): Use
11492 * objfiles.h (ALL_COMPUNITS): Remove.
11493 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11494 * cp-support.c (add_symbol_overload_list_qualified): Use
11496 * ada-lang.c (ada_collect_symbol_completion_matches)
11497 (ada_add_global_exceptions): Use objfile_compunits.
11499 2019-01-09 Tom Tromey <tom@tromey.com>
11501 * source.c (select_source_symtab)
11502 (forget_cached_source_info_for_objfile): Remove declaration.
11503 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11505 * maint.c (count_symtabs_and_blocks): Remove declaration.
11506 * cp-support.c (add_symbol_overload_list_qualified): Remove
11508 * coffread.c (coff_symtab_read): Remove declaration.
11509 * symtab.c (lookup_symbol_in_objfile_symtabs)
11510 (basic_lookup_transparent_type_1): Use objfile_compunits.
11511 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11512 (info_sources_command, search_symbols)
11513 (default_collect_symbol_completion_matches_break_on)
11514 (make_source_files_completion_list): Remove declaration.
11515 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11516 (ada_collect_symbol_completion_matches)
11517 (ada_add_global_exceptions): Remove declaration.
11518 * linespec.c (iterate_over_all_matching_symtabs): Use
11520 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11521 (class objfile_compunits): New.
11522 (ALL_COMPUNITS): Use objfile_compunits.
11523 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11524 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11526 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11528 2019-01-09 Tom Tromey <tom@tromey.com>
11530 * symtab.c (search_symbols)
11531 (default_collect_symbol_completion_matches_break_on): Use
11533 * ada-lang.c (ada_lookup_simple_minsym)
11534 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11535 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11536 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11538 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11539 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11540 * objc-lang.c (find_methods): Use objfile_msymbols.
11541 (info_selectors_command, info_classes_command): Likewise.
11542 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11543 * objfiles.h (class objfile_msymbols): New.
11544 (ALL_OBJFILE_MSYMBOLS): Remove.
11545 (ALL_MSYMBOLS): Remove.
11547 2019-01-09 Tom Tromey <tom@tromey.com>
11549 * common/next-iterator.h (next_adapter): Add Iterator template
11551 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11552 (class all_objfiles_safe): New.
11553 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11554 * objfiles.c (put_objfile_before): Update comment.
11555 (add_separate_debug_objfile): Likewise.
11556 (free_all_objfiles): Use all_objfiles_safe.
11557 (objfile_purge_solibs): Likewise.
11559 2019-01-09 Tom Tromey <tom@tromey.com>
11561 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11562 (expand_symtab_containing_pc, lookup_static_symbol)
11563 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11564 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11566 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11567 * breakpoint.c (create_overlay_event_breakpoint)
11568 (create_longjmp_master_breakpoint)
11569 (create_std_terminate_master_breakpoint)
11570 (create_exception_master_breakpoint): Use all_objfiles.
11571 * linux-thread-db.c (try_thread_db_load_from_pdir)
11572 (has_libpthread): Use all_objfiles.
11573 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11574 * linespec.c (iterate_over_all_matching_symtabs)
11575 (search_minsyms_for_name): Use all_objfiles.
11576 * maint.c (maintenance_info_sections): Use all_objfiles.
11577 * main.c (captured_main_1): Use all_objfiles.
11578 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11579 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11580 * guile/scm-pretty-print.c
11581 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11582 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11583 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11584 (maintenance_print_msymbols): Use all_objfiles.
11585 * source.c (select_source_symtab): Use all_objfiles.
11586 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11587 * symfile.c (remove_symbol_file_command)
11588 (expand_symtabs_matching, map_symbol_filenames): Use
11590 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11592 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11593 * objc-lang.c (find_methods): Use all_objfiles.
11594 * objfiles.c (have_partial_symbols, have_full_symbols)
11595 (have_minimal_symbols, qsort_cmp)
11596 (default_iterate_over_objfiles_in_search_order): Use
11598 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11599 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11600 (maintenance_check_psymtabs): Use all_objfiles.
11601 (ALL_PSYMTABS): Remove.
11602 * compile/compile-object-run.c (do_module_cleanup): Use
11604 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11605 * cp-support.c (add_symbol_overload_list_qualified): Use
11607 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11609 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11610 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11612 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11613 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11614 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11616 * solib.c (solib_read_symbols): Use all_objfiles
11618 2019-01-09 Tom Tromey <tom@tromey.com>
11620 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11621 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11623 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11624 * symmisc.c (print_symbol_bcache_statistics)
11625 (print_objfile_statistics, maintenance_print_objfiles)
11626 (maintenance_info_symtabs, maintenance_check_symtabs)
11627 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11629 * source.c (forget_cached_source_info): Use all_objfiles.
11630 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11631 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11632 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11633 * objfiles.c (update_section_map): Use all_objfiles.
11634 (shared_objfile_contains_address_p): Likewise.
11635 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11636 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11638 2019-01-09 Tom Tromey <tom@tromey.com>
11640 * common/next-iterator.h: New file.
11641 * objfiles.h (class all_objfiles): New.
11642 (struct objfile_iterator): New.
11644 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11646 * NEWS: Move the description of the changed "frame", "select-frame",
11647 and "info frame" commands to the Changed commands section.
11649 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11651 * gdbtypes.c (check_stub_method_group): Remove handling of old
11653 * linespec.c (find_methods): Likewise.
11654 * stabsread.c (read_member_functions): Likewise.
11655 * valops.c (search_struct_method): Likewise.
11656 (value_struct_elt_for_reference): Likewise.
11657 * NEWS: Mention this change.
11659 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11661 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11662 print_source_lines.
11663 * source.c (print_source_lines_base): Update line number check.
11664 (print_source_lines): New function.
11665 (source_lines_range::source_lines_range): New function.
11666 * source.h (class source_lines_range): New class.
11667 (print_source_lines): New declaration.
11669 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11671 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11673 2019-01-08 Tom Tromey <tom@tromey.com>
11674 Simon Marchi <simon.marchi@ericsson.com>
11677 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11678 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11679 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11680 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11681 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11682 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11684 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11686 * source.c (select_source_symtab): Move header comment to
11687 declaration in source.h.
11688 (forget_cached_source_info_for_objfile): Likewise.
11689 (forget_cached_source_info): Likewise.
11690 (identify_source_line): Likewise.
11691 * source.h (identify_source_line): Move declaration from symtab.h
11692 and add comment from source.c
11693 (print_source_lines): Likewise.
11694 (forget_cached_source_info_for_objfile): Likewise.
11695 (forget_cached_source_info): Likewise.
11696 (select_source_symtab): Likewise.
11697 (enum print_source_lines_flag): Move definition from symtab.h.
11698 * symtab.h (identify_source_line): Move declaration to source.h.
11699 (print_source_lines): Likewise.
11700 (forget_cached_source_info_for_objfile): Likewise.
11701 (forget_cached_source_info): Likewise.
11702 (select_source_symtab): Likewise.
11703 (enum print_source_lines_flag): Move definition to source.h.
11704 * tui/tui-hooks.c: Add 'source.h' include.
11706 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11708 * source.c (print_source_lines_base): Handle requests to print
11709 reverse line number sequences, and guard against empty lines
11712 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11714 * source.c (print_source_lines_base): Fix skip of '\r' if next
11717 2019-01-06 Tom Tromey <tom@tromey.com>
11719 * c-exp.y (struct c_parse_state) <macro_original_text,
11720 expansion_obstack>: New member.
11721 (macro_original_text, expansion_obstack): Remove globals.
11722 (scan_macro_expansion, scanning_macro_expansion)
11723 (finished_macro_expansion): Update.
11724 (scan_macro_cleanup): Remove.
11725 (yylex, c_parse): Update.
11727 2019-01-06 Tom Tromey <tom@tromey.com>
11729 * c-exp.y (struct c_parse_state) <strings>: New member.
11730 (operator_stoken): Update.
11732 2019-01-06 Tom Tromey <tom@tromey.com>
11734 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11735 (union type_stack_elt) <typelist_val>: Now a pointer to
11737 (type_stack_cleanup): Don't declare.
11738 (push_typelist): Update.
11739 * parse.c (pop_typelist): Return a std::vector.
11740 (push_typelist): Take a std::vector.
11741 (follow_types): Update. Do not free args.
11742 (type_stack_cleanup): Remove.
11743 * c-exp.y (struct c_parse_state): New.
11744 (cpstate): New global.
11745 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11746 (nonempty_typelist): Update.
11747 (func_mod): Create a new vector.
11748 (c_parse): Create a c_parse_state.
11749 (check_parameter_typelist): Do not delete params.
11750 (function_method): Update. Do not delete type_list.
11752 2019-01-06 Tom Tromey <tom@tromey.com>
11755 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11757 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11758 (print_return_value): Likewise.
11760 2019-01-05 Tom Tromey <tom@tromey.com>
11762 * contrib/cleanup_check.py: Remove.
11763 * contrib/gcc-with-excheck: Remove.
11764 * contrib/exsummary.py: Remove.
11765 * contrib/excheck.py: Remove.
11767 2019-01-05 Joel Brobecker <brobecker@adacore.com>
11769 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11770 NULL. Initialize tpprev to NULL instead of assigning it
11771 to NULL on the next statement.
11772 * windows-nat.c (windows_delete_thread): Remove check for
11773 main_thread_id before printing thread exit notifications.
11774 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11775 Remove thread ID check against main_thread_id.
11776 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11777 windows_delete_thread.
11778 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11780 2019-01-04 Tom Tromey <tom@tromey.com>
11782 * compile/compile.c (_initialize_compile): Use upper case for
11783 metasyntactic variables.
11784 * symmisc.c (_initialize_symmisc): Use upper case for
11785 metasyntactic variables.
11786 * psymtab.c (_initialize_psymtab): Use upper case for
11787 metasyntactic variables.
11788 * demangle.c (demangle_command): Use upper case for metasyntactic
11790 (_initialize_demangler): Likewise.
11791 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11794 2019-01-03 Tom Tromey <tom@tromey.com>
11796 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11798 2019-01-03 Tom Tromey <tom@tromey.com>
11800 * python/py-symtab.c (salpy_str): Update.
11801 (struct salpy_sal_object) <symtab>: Now a PyObject.
11802 (salpy_dealloc): Update.
11803 (del_objfile_sal): Use gdbpy_ref.
11805 2019-01-03 Tom Tromey <tom@tromey.com>
11807 * python/py-type.c (convert_field): Use new_reference. Return
11809 (make_fielditem): Return gdbpy_ref.
11810 (typy_fields): Update.
11811 (typy_getitem): Update.
11812 (field_name): Return gdbpy_ref. Use new_reference.
11813 (typy_iterator_iternext): Update.
11815 2019-01-03 Tom Tromey <tom@tromey.com>
11817 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11819 2019-01-03 Tom Tromey <tom@tromey.com>
11821 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11822 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11823 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11824 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11825 (pspy_set_type_printers): Likewise.
11826 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11827 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11828 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11829 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11830 (objfpy_set_type_printers): Likewise.
11832 2019-01-03 Tom Tromey <tom@tromey.com>
11834 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11835 (gdbpy_print_stack): Use gdbpy_err_fetch.
11836 * python/python-internal.h (class gdbpy_err_fetch): New class.
11837 (class gdbpy_enter) <m_error_type, m_error_value,
11838 m_error_traceback>: Remove.
11839 <m_error>: New member.
11840 (gdbpy_exception_to_string): Don't declare.
11841 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11842 * python/py-value.c (convert_value_from_python): Use
11844 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11845 gdbpy_exception_to_string.
11846 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11847 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11850 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11852 * linux-nat.c (delete_lwp_cleanup): Delete.
11853 (struct lwp_deleter): New struct.
11854 (lwp_info_up): New typedef.
11855 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11858 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11860 * linux-fork.c (class scoped_switch_fork_info): New class.
11861 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11863 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11865 * valops.c (find_overload_match): Remove use of null_cleanup, and
11866 calls to do_cleanups.
11868 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11870 * compile/compile-cplus-types.c
11871 (compile_cplus_instance::decl_name): Handle changes to
11873 * cp-support.c (cp_func_name): Update header comment, update
11875 * cp-support.h (cp_func_name): Update return type in declaration.
11876 * valops.c (find_overload_match): Move temp_func local to top
11877 level of function and change its type. Use temp_func to hold and
11878 delete temporary string obtained from cp_func_name.
11880 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11882 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11883 gdb::char_vector, remove cleanup, and update uses of `msg`.
11885 2019-01-03 Jim Wilson <jimw@sifive.com>
11887 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11889 2019-01-02 Tom Tromey <tom@tromey.com>
11891 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11892 (tdesc_parse_xml): Remove cleanups.
11893 * target-descriptions.h (make_cleanup_free_target_description):
11895 (target_desc_deleter): New struct.
11896 (target_desc_up): New typedef.
11897 * target-descriptions.c (target_desc_deleter::operator()): Rename
11898 from free_target_description.
11899 (make_cleanup_free_target_description): Remove.
11901 2019-01-02 Tom Tromey <tom@tromey.com>
11903 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11904 constructor, destructor.
11905 (linespec_parser): Remove typedef.
11906 (~linespec_parser): Rename from linespec_parser_delete.
11907 (linespec_lex_to_end, linespec_complete_label)
11908 (linespec_complete): Update.
11909 (decode_line_full): Remove cleanups.
11910 (decode_line_1): Update.
11912 2019-01-02 Tom Tromey <tom@tromey.com>
11914 * python/python-internal.h (inferior_to_inferior_object): Change
11916 * python/py-exitedevent.c (create_exited_event_object): Update.
11917 * python/py-inferior.c (inferior_to_inferior_object): Return
11919 (python_new_inferior, python_inferior_deleted)
11920 (thread_to_thread_object, delete_thread_object)
11921 (build_inferior_list, gdbpy_selected_inferior): Update.
11922 * python/py-infthread.c (create_thread_object): Update. Also fail
11923 if inferior_to_inferior_object fails.
11925 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11927 * inferior.h (class inferior) <displaced_step_state>: New field.
11928 * infrun.h (struct displaced_step_state): Move here from
11929 infrun.c. Initialize fields, add constructor.
11930 <inf>: Remove field.
11931 <reset>: New method.
11932 * infrun.c (struct displaced_step_inferior_state): Move to
11934 (displaced_step_inferior_states): Remove.
11935 (get_displaced_stepping_state): Adust.
11936 (displaced_step_in_progress_any_inferior): Adjust.
11937 (displaced_step_in_progress_thread): Adjust.
11938 (displaced_step_in_progress): Adjust.
11939 (add_displaced_stepping_state): Remove.
11940 (get_displaced_step_closure_by_addr): Adjust.
11941 (remove_displaced_stepping_state): Remove.
11942 (infrun_inferior_exit): Call displaced_step_state.reset.
11943 (use_displaced_stepping): Don't check for NULL.
11944 (displaced_step_prepare_throw): Call
11945 get_displaced_stepping_state.
11946 (displaced_step_fixup): Don't check for NULL.
11947 (prepare_for_detach): Don't check for NULL.
11949 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11951 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11952 in case of call that did not complete.
11954 2019-01-02 Andrey Utkin <autkin@undo.io>
11956 * symfile.c (find_separate_debug_file): Fix search of debug files for
11959 2019-01-02 Tom Tromey <tom@tromey.com>
11961 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11963 * python/py-frame.c (frapy_older): Remove cast.
11964 (frapy_newer): Likewise.
11965 * python/py-breakpoint.c (local_setattro): Remove cast.
11966 * python/py-arch.c (archpy_name): Remove local variable.
11967 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11969 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11971 * unittests/basic_string_view/element_access/char/empty.cc:
11972 Fix year range in copyright header.
11974 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11976 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11978 <operator==>: Update with for removed field.
11980 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11981 <isa_features>: ...this.
11982 <abi_features>: New field.
11983 (riscv_isa_flen): Update comment.
11984 (riscv_abi_xlen): New declaration.
11985 (riscv_abi_flen): New declaration.
11986 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11988 (riscv_abi_xlen): New function.
11989 (riscv_isa_flen): Update to get answer from isa_features.
11990 (riscv_abi_flen): New function.
11991 (riscv_has_fp_abi): Update to get answer from abi_features.
11992 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11994 (riscv_call_info) <xlen, flen>: Update comment.
11995 (riscv_call_arg_struct): Remove invalid assertions
11996 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11998 (riscv_gdbarch_init): Gather isa features and abi features
11999 separately, ensure both match on the gdbarch when reusing an old
12000 gdbarch. Relax an error check to allow 32-bit abi float to run on
12001 a target with 64-bit float hardware.
12003 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12005 * source.c (search_command_helper): Stop reverse search
12006 when line 1 has been searched.
12008 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12010 * record-full.c (record_full_base_target::close): Rewrite
12011 record_full_core_buf_list free logic.
12013 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12015 * break-catch-syscall.c (print_one_catch_syscall): xfree
12018 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12020 * top.c (print_gdb_version): Update Copyright year in version
12023 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12025 Update copyright year range in all GDB files.
12027 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12029 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12031 For older changes see ChangeLog-2018.
12037 version-control: never