1 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4 represent whether the symbol is static, dynamic, or we don't
7 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
9 * gdb/rx-tdep.c (rx_register_names): New.
10 (rx_register_name): Delete.
11 (rx_psw_type): Delete.
12 (rx_fpsw_type): Delete.
13 (rx_register_type): Delete.
14 (rx_gdbarch_init): Convert target-descriptions.
15 (_initialize_rx_tdep): Add initialize_tdesc_rx.
16 * gdb/features/Makefile: Add rx.xml.
17 * gdb/features/rx.xml: New.
18 * gdb/features/rx.c: Generated.
19 * gdb/NEWS: Mention target description support.
21 2019-08-22 Christian Biesinger <cbiesinger@google.com>
23 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
26 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
28 * configure.ac: Don't check for 'dlfcn.h' (moved to
29 gdbsupport/common.m4).
30 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
32 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
33 * compile/compile-c-support.c: Include
34 'gdbsupport/gdb-dlfcn.h'.
35 * gdbsupport/common.m4: Check for 'dlfcn.h'.
36 * gdb-dlfcn.c: Move to...
37 * gdbsupport/gdb-dlfcn.c: ... here.
38 * gdb-dlfcn.h: Move to...
39 * gdbsupport/gdb-dlfcn.h: ... here.
41 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
43 * nios2-tdep.c (struct reg_value): Improve comments. Make
44 the offset field signed.
46 2019-08-22 Christian Biesinger <cbiesinger@google.com>
48 * python/lib/gdb/__init__.py (_execute_file): New function.
49 * python/python.c (python_run_simple_file): Call gdb._execute_file
52 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
54 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
55 all uses as this was never set to anything but a zero value.
57 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
59 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
61 2019-08-21 Christian Biesinger <cbiesinger@google.com>
63 * tui/tui-data.h (tui_gen_win_info): Add an =default
64 move constructor, required by some GCC versions.
66 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
68 * go32-nat.c (go32_sysinfo): Add hygon_p.
70 2019-08-20 Tom Tromey <tom@tromey.com>
72 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
73 line_from_reg_element_no, first_reg_element_no_inline,
74 display_all_data, delete_data_content_windows,
75 erase_data_content>: Now private.
77 2019-08-20 Tom Tromey <tom@tromey.com>
79 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
80 (tui_unhighlight_win, tui_highlight_win)
81 (tui_win_info::make_window): Update.
82 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
84 2019-08-20 Tom Tromey <tom@tromey.com>
86 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
87 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
88 (MAX_PID_WIDTH): Move to tui-stack.c.
89 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
90 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
91 (MAX_PID_WIDTH): Move from tui-data.h.
93 2019-08-20 Tom Tromey <tom@tromey.com>
95 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
96 * tui/tui-wingeneral.c (box_win): Change type of win_info.
98 (tui_gen_win_info::make_window): Rename from tui_make_window.
99 (tui_win_info::make_window): New method.
100 (tui_gen_win_info::make_visible): Update.
101 * tui/tui-source.c (tui_source_window::set_contents): Update.
102 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
103 (tui_data_window::display_registers_from): Update.
104 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
105 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
109 (struct tui_win_info) <make_window>: Declare.
110 <can_box>: Now virtual.
112 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
113 * tui/tui-command.c (tui_cmd_window::resize): Update.
115 2019-08-20 Tom Tromey <tom@tromey.com>
117 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
118 * tui/tui-regs.c (tui_data_window::show_registers): Update.
119 (tui_data_window::check_register_values): Update.
121 2019-08-20 Tom Tromey <tom@tromey.com>
123 * tui/tui-regs.h (struct tui_data_window): Use
124 DISABLE_COPY_AND_ASSIGN.
125 <regs_content>: Change type, removing unique_ptr.
126 <tui_data_window>: Add move constructor.
127 * tui/tui-regs.c (tui_data_window::show_registers)
128 (tui_data_window::show_register_group)
129 (tui_data_window::display_registers_from)
130 (tui_data_window::display_registers_from)
131 (tui_data_window::first_data_item_displayed)
132 (tui_data_window::delete_data_content_windows)
133 (tui_data_window::rerender, tui_data_window::refresh_window)
134 (tui_data_window::check_register_values): Update.
136 2019-08-20 Tom Tromey <tom@tromey.com>
138 * tui/tui-regs.h (struct tui_data_window) <show_registers,
139 show_register_group>: Declare.
140 (tui_show_register_group): Don't declare.
141 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
143 (tui_data_window::show_register_group): Rename from
144 tui_show_register_group.
145 (tui_data_window::check_register_values, tui_reg_command):
147 * tui/tui-layout.c (tui_set_layout): Update.
149 2019-08-20 Tom Tromey <tom@tromey.com>
151 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
153 (tui_check_register_values): Don't declare.
154 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
155 from tui_check_register_values.
156 * tui/tui-hooks.c (tui_register_changed): Update.
158 2019-08-20 Tom Tromey <tom@tromey.com>
160 * tui/tui-regs.c (tui_reg_layout): Move later.
161 (tui_show_registers): Don't enable TUI mode or change layout.
163 2019-08-20 Tom Tromey <tom@tromey.com>
165 * tui/tui-regs.h (struct tui_data_item_window)
166 <~tui_data_item_window>: Remove.
167 <content>: Now a unique_xmalloc_ptr.
168 * tui/tui-regs.c (tui_register_format): Return a
170 (tui_get_register): Update.
171 (~tui_data_item_window): Remove.
172 (tui_data_window::display_registers_from, tui_display_register):
174 * tui/tui-io.h (tui_expand_tabs): Update.
175 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
176 Remove "col" parameter.
178 2019-08-20 Tom Tromey <tom@tromey.com>
180 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
182 * tui/tui-regs.c (~tui_data_item_window): Update.
184 2019-08-20 Tom Tromey <tom@tromey.com>
186 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
189 2019-08-20 Tom Tromey <tom@tromey.com>
191 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
193 2019-08-20 Tom Tromey <tom@tromey.com>
195 * tui/tui-source.h (struct tui_source_window): Update.
196 * tui/tui-regs.c (tui_show_registers): Update.
197 * tui/tui-disasm.h (struct tui_disasm_window): Update.
198 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
199 (NO_REGS_STRING): Remove defines.
201 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
203 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
204 unnecessary thread walk if remote doesn't support the packet.
206 2019-08-19 Tom Tromey <tromey@adacore.com>
208 * python/py-value.c (value_has_field): Fix indentation.
210 2019-08-19 Tom Tromey <tromey@adacore.com>
212 * printcmd.c (do_one_display, info_display_command): Update.
213 * block.h (contained_in): Return bool. Add allow_nested
215 * block.c (contained_in): Return bool. Add allow_nested
218 2019-08-19 Tom Tromey <tom@tromey.com>
220 * configure: Rebuild.
221 * configure.ac: Disallow the combination of -static-libstdc++ and
223 * source-cache.c (get_language_name): Handle rust.
224 (source_cache::get_source_lines): Ignore highlighting exceptions.
226 2019-08-16 Tom Tromey <tom@tromey.com>
228 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
229 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
230 (struct tui_source_window_base) <make_visible, refresh_window,
231 resize>: Remove methods.
232 <execution_info>: Remove field.
233 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
234 (tui_show_source_line, tui_source_window_base)
235 (~tui_source_window_base): Update.
236 (tui_source_window_base::resize)
237 (tui_source_window_base::make_visible)
238 (tui_source_window_base::refresh_window): Remove.
239 (tui_source_window_base::update_exec_info): Update.
240 * tui/tui-source.c (tui_source_window::set_contents): Update.
241 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
243 2019-08-16 Tom Tromey <tom@tromey.com>
245 * tui/tui-hooks.c (tui_remove_hooks): Don't set
246 deprecated_query_hook.
248 2019-08-16 Tom Tromey <tom@tromey.com>
250 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
251 (tui_update_source_windows_with_line): Update.
252 * tui/tui-source.h (struct tui_source_window)
253 <show_symtab_source>: Declare.
254 (tui_show_symtab_source): Don't declare.
255 * tui/tui-source.c (tui_show_symtab_source): Rename from
256 tui_show_symtab_source.
258 2019-08-16 Tom Tromey <tom@tromey.com>
260 * tui/tui-winsource.h (struct tui_source_window_base)
261 <set_contents>: Declare.
262 * tui/tui-winsource.c
263 (tui_source_window_base::update_source_window_as_is): Update.
264 * tui/tui-source.h (struct tui_source_window) <set_contents>:
266 (tui_set_source_content): Don't declare.
267 * tui/tui-source.c (tui_source_window::set_contents): Rename from
268 tui_set_source_content.
269 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
271 (tui_set_disassem_content): Don't declare.
272 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
273 tui_set_disassem_content.
275 2019-08-16 Tom Tromey <tom@tromey.com>
277 * tui/tui-winsource.h (struct tui_source_window_base)
278 <update_breakpoint_info>: Declare.
279 (tui_update_breakpoint_info): Don't declare.
280 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
281 (tui_update_all_breakpoint_info): Update.
282 (tui_source_window_base::update_breakpoint_info): Rename from
283 tui_update_breakpoint_info.
284 (tui_source_window_base::update_exec_info): Update.
286 2019-08-16 Tom Tromey <tom@tromey.com>
288 * tui/tui-winsource.h (struct tui_source_window_base)
289 <update_source_window>: Declare.
290 (tui_update_source_window): Don't declare.
291 * tui/tui-winsource.c
292 (tui_source_window_base::update_source_window): Rename from
293 tui_update_source_window.
294 (tui_source_window_base::rerender): Update.
295 * tui/tui-source.c (tui_source_window::maybe_update): Update.
296 * tui/tui-disasm.c (tui_show_disassem)
297 (tui_show_disassem_and_update_source)
298 (tui_disasm_window::maybe_update): Update.
300 2019-08-16 Tom Tromey <tom@tromey.com>
302 * tui/tui-winsource.h (struct tui_source_window_base)
303 <update_source_window_as_is>: Declare.
304 (tui_update_source_window_as_is): Don't declare.
305 * tui/tui-winsource.c (tui_update_source_window): Update
306 (tui_source_window_base::update_source_window_as_is): Rename from
307 tui_update_source_window_as_is.
308 (tui_source_window_base::refill): Update.
309 * tui/tui-source.c (tui_show_symtab_source): Update.
310 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
313 2019-08-16 Tom Tromey <tom@tromey.com>
315 * tui/tui-winsource.h (tui_update_source_window)
316 (tui_update_source_window_as_is): Remove "noerror" parameter.
317 * tui/tui-winsource.c (tui_update_source_window)
318 (tui_update_source_window_as_is): Remove "noerror" parameter.
319 (tui_update_source_windows_with_addr)
320 (tui_update_source_windows_with_line)
321 (tui_source_window_base::rerender)
322 (tui_source_window_base::refill): Update.
323 * tui/tui-source.h (tui_set_source_content)
324 (tui_show_symtab_source): Remove "noerror" parameter.
325 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
327 (tui_show_symtab_source): Likewise.
328 (tui_source_window::maybe_update): Update.
329 * tui/tui-disasm.c (tui_show_disassem)
330 (tui_show_disassem_and_update_source)
331 (tui_disasm_window::do_scroll_vertical)
332 (tui_disasm_window::maybe_update): Update.
334 2019-08-16 Tom Tromey <tom@tromey.com>
336 * tui/tui.c (tui_is_window_visible): Update.
337 * tui/tui-wingeneral.c (tui_make_window)
338 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
339 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
340 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
341 (tui_set_win_height_command, parse_scrolling_args): Update.
342 * tui/tui-source.c (tui_source_window::style_changed): Update.
343 * tui/tui-regs.c (tui_show_registers)
344 (tui_data_window::first_data_item_displayed)
345 (tui_data_window::delete_data_content_windows)
346 (tui_check_register_values, tui_reg_command): Update.
347 * tui/tui-disasm.c (tui_show_disassem): Update.
348 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
350 <is_visible>: Remove field.
351 * tui/tui-data.c (tui_next_win, tui_prev_win)
352 (tui_delete_invisible_windows): Update.
354 2019-08-16 Tom Tromey <tom@tromey.com>
356 * tui/tui-winsource.h (struct tui_source_window_base)
357 <m_has_locator>: Remove.
358 * tui/tui-layout.c (show_source_disasm_command, show_data)
359 (show_source_or_disasm_and_command): Update.
361 2019-08-16 Alan Hayward <alan.hayward@arm.com>
363 * NEWS (Other MI changes): New subsection.
364 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
365 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
366 * arch-utils.c (default_get_pc_address_flags): New function.
367 * arch-utils.h (default_get_pc_address_flags): New declaration.
368 * gdbarch.sh: Add get_pc_address_flags.
369 * gdbarch.c: Regenerate.
370 * gdbarch.h: Likewise.
371 * stack.c (print_pc): New function.
372 (print_frame_info) (print_frame): Call print_pc.
374 2019-08-16 Tom de Vries <tdevries@suse.de>
376 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
377 print_objfile_section_info.
379 2019-08-15 Tom Tromey <tom@tromey.com>
381 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
382 calling update_cmdwin_start_line.
383 * tui/tui-winsource.h (struct tui_source_window_base)
384 <do_make_visible_with_new_height, set_new_height>: Don't declare.
386 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
388 (tui_source_window_base::set_new_height): Remove.
389 (tui_source_window_base::rerender): Rename from
390 do_make_visible_with_new_height.
391 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
393 (tui_win_info::make_invisible_and_set_new_height)
394 (tui_win_info::make_visible_with_new_height): Remove.
395 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
397 * tui/tui-stack.c (tui_locator_window::rerender): New method.
398 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
399 do_make_visible_with_new_height>: Don't declare.
401 * tui/tui-regs.c (tui_data_window::rerender): Rename from
403 (tui_data_window::do_make_visible_with_new_height): Remove.
404 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
405 call tui_show_locator_content.
406 (tui_gen_win_info::resize): Call rerender.
407 (show_source_or_disasm_and_command): Don't call
408 tui_show_locator_content.
409 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
411 (struct tui_win_info) <rerender>: Declare.
412 <set_new_height, make_invisible_and_set_new_height,
413 make_visible_with_new_height>: Don't declare.
414 * tui/tui-data.c (tui_win_list::rerender): New method.
415 * tui/tui-command.h (struct tui_cmd_window)
416 <do_make_visible_with_new_height>: Don't declare.
418 (tui_cmd_window::do_make_visible_with_new_height): Remove.
420 2019-08-15 Tom Tromey <tromey@adacore.com>
422 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
423 * ada-lang.c (ada_enum_name): Likewise.
425 2019-08-15 Christian Biesinger <cbiesinger@google.com>
427 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
429 (GdbOutputErrorFile): Likewise.
430 (global scope): Adjust constructor calls to GdbOutput{,Error}File
432 (execute_unwinders): Rename to have a leading underscore.
433 (auto_load_packages): Likewise.
434 (global scope): Adjust call to auto_load_packages accordingly.
435 (GdbSetPythonDirectory): Likewise.
436 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
437 instead of execute_unwinders.
439 2019-08-15 Tom Tromey <tom@tromey.com>
441 * tui/tui-layout.c (show_layout, show_source_disasm_command)
442 (show_data): Don't change window visibility.
443 (tui_gen_win_info::resize): Remove special case for command
444 window. Use wresize, when available.
445 (show_source_or_disasm_and_command): Don't change window
447 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
448 <make_visible>: New method.
449 * tui/tui-command.c (tui_cmd_window::resize): New method.
451 2019-08-15 Tom Tromey <tom@tromey.com>
453 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
454 (struct tui_source_windows): New.
455 * tui/tui-winsource.c (tui_display_main): Update.
456 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
457 (new_height_ok, parse_scrolling_args): Update.
458 * tui/tui-layout.c (show_layout, show_data): Update.
459 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
460 (tui_add_to_source_windows): Don't declare.
461 * tui/tui-data.c (source_windows, tui_source_windows)
462 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
464 2019-08-15 Tom Tromey <tom@tromey.com>
466 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
468 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
469 * tui/tui-layout.c (show_source_disasm_command, show_data):
471 (tui_gen_win_info::resize): Rename.
472 (show_source_or_disasm_and_command): Update.
473 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
476 2019-08-15 Tom Tromey <tom@tromey.com>
478 * tui/tui-stack.c (tui_initialize_static_data): Remove.
479 * tui/tui-interp.c (tui_interp::init): Don't call
480 tui_initialize_static_data.
481 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
483 2019-08-15 Tom Tromey <tom@tromey.com>
485 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
486 examine tui_win_list.
488 2019-08-15 Tom Tromey <tom@tromey.com>
490 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
491 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
492 tui_clear_source_content.
493 (tui_clear_source_content): Remove.
494 (tui_source_window_base::do_erase_source_content): Hoist call to
496 * tui/tui-stack.c (tui_show_frame_info): Don't call
497 tui_clear_source_content.
499 2019-08-15 Tom Tromey <tom@tromey.com>
501 * tui/tui-winsource.h (struct tui_source_window_base)
502 <do_erase_source_content>: New method.
503 <erase_source_content>: New method.
504 (tui_erase_source_content): Don't declare.
505 * tui/tui-winsource.c (tui_clear_source_content): Update.
506 (tui_source_window_base::do_erase_source_content): Rename from
507 tui_erase_source_content.
508 (tui_source_window_base::show_source_content): Update.
509 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
510 * tui/tui-source.h (struct tui_source_window)
511 <erase_source_content>: New method.
512 * tui/tui-disasm.h (struct tui_disasm_window)
513 <erase_source_content>: New method.
515 2019-08-15 Tom Tromey <tom@tromey.com>
517 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
518 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
520 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
521 * tui/tui-source.c (tui_set_source_content): Update.
522 * tui/tui-disasm.c (tui_set_disassem_content): Update.
524 2019-08-15 Tom Tromey <tom@tromey.com>
526 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
527 * tui/tui-winsource.c (tui_line_is_displayed): Move to
529 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
531 * tui/tui-source.c (tui_source_window::line_is_displayed): New
533 (tui_source_window::maybe_update): Update.
535 2019-08-15 Tom Tromey <tom@tromey.com>
537 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
538 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
540 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
542 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
544 (tui_disasm_window::maybe_update): Update.
546 2019-08-15 Tom Tromey <tom@tromey.com>
548 * tui/tui-winsource.h (struct tui_source_window_base)
549 <maybe_update>: Declare.
550 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
552 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
554 * tui/tui-source.c (tui_source_window::maybe_update): New method.
555 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
557 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
559 2019-08-15 Tom Tromey <tom@tromey.com>
561 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
563 2019-08-15 Tom Tromey <tom@tromey.com>
565 * tui/tui-wingeneral.c: Include tui-stack.h.
566 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
567 (struct tui_locator_window): Move from tui-data.h.
568 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
569 (tui_initialize_static_data): Move from tui-data.c.
570 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
571 (struct tui_locator_window): Move to tui-stack.c.
572 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
573 (tui_initialize_static_data): Move to tui-stack.c.
575 2019-08-15 Tom Tromey <tom@tromey.com>
577 * tui/tui-layout.c (show_source_disasm_command)
578 (show_source_or_disasm_and_command): Use make_visible method, not
580 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
583 2019-08-15 Tom Tromey <tom@tromey.com>
585 * tui/tui-wingeneral.h (tui_make_window): Update.
586 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
588 (tui_gen_win_info::make_visible): Update.
589 * tui/tui-regs.c (tui_data_window::display_registers_from):
591 * tui/tui-layout.c (show_source_disasm_command)
592 (show_source_or_disasm_and_command): Update.
593 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
594 (enum tui_box): Remove.
595 (struct tui_win_info) <can_box>: New method.
596 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
599 2019-08-15 Tom de Vries <tdevries@suse.de>
601 * linux-nat-trad.c: Include gdbarch.h.
603 2019-08-14 Alan Hayward <alan.hayward@arm.com>
605 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
608 2019-08-14 Tom Tromey <tromey@adacore.com>
610 * darwin-nat.c: Include gdbarch.h.
611 * darwin-nat-info.c: Include gdbarch.h.
613 2019-08-13 Tom Tromey <tom@tromey.com>
615 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
617 * tui/tui-data.c (tui_initialize_static_data): Update.
619 2019-08-13 Tom Tromey <tom@tromey.com>
621 * tui/tui-winsource.h (struct tui_exec_info_window)
622 <~tui_exec_info_window, maybe_allocate_content, get_content,
624 (struct tui_source_window_base) <set_exec_info_content,
625 show_exec_info_content>: Don't declare.
626 * tui/tui-winsource.c
627 (tui_exec_info_window::maybe_allocate_content): Remove.
628 (tui_source_window_base::update_exec_info): Rename from
629 set_exec_info_content.
630 (tui_source_window_base::show_exec_info_content)
631 (tui_source_window_base::update_exec_info): Remove.
633 2019-08-13 Tom Tromey <tom@tromey.com>
635 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
637 * tui/tui-winsource.c (tui_update_source_window_as_is)
638 (tui_update_source_windows_with_addr, tui_erase_source_content):
640 (tui_clear_exec_info_content): Remove.
642 2019-08-13 Tom Tromey <tom@tromey.com>
644 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
646 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
647 call tui_erase_exec_info_content.
648 (tui_clear_exec_info_content): Rename from
649 tui_erase_exec_info_content.
650 (tui_clear_exec_info_content): Delete.
652 2019-08-13 Tom Tromey <tom@tromey.com>
654 * tui/tui-winsource.h (struct tui_source_window_base)
655 <show_exec_info_content>: Declare.
656 (tui_show_exec_info_content): Don't declare.
657 * tui/tui-winsource.c
658 (tui_source_window_base::show_exec_info_content): Rename from
659 tui_show_exec_info_content.
660 (tui_source_window_base::update_exec_info): Update.
662 2019-08-13 Tom Tromey <tom@tromey.com>
664 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
665 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
666 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
667 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
668 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
669 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
672 2019-08-13 Tom Tromey <tom@tromey.com>
674 * tui/tui-winsource.h (struct tui_source_window_base)
675 <update_exec_info>: Declare.
676 (tui_update_exec_info): Don't declare.
677 * tui/tui-winsource.c (tui_update_source_window_as_is)
678 (tui_source_window_base::refresh_all)
679 (tui_update_all_breakpoint_info): Update.
680 (tui_source_window_base::update_exec_info): Rename from
681 tui_update_exec_info.
682 * tui/tui-stack.c (tui_show_frame_info): Update.
684 2019-08-13 Tom Tromey <tom@tromey.com>
686 * tui/tui-winsource.h (struct tui_source_window_base)
687 <set_exec_info_content>: Declare.
688 (tui_set_exec_info_content): Don't declare.
689 * tui/tui-winsource.c
690 (tui_source_window_base::set_exec_info_content): Rename from
691 tui_set_exec_info_content.
692 (tui_update_exec_info): Update.
694 2019-08-13 Tom Tromey <tom@tromey.com>
696 * tui/tui-winsource.h (struct tui_source_window_base)
697 <show_source_content>: Declare.
698 (tui_show_source_content): Don't declare.
699 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
700 (tui_source_window_base::show_source_content): Rename from
701 tui_show_source_content.
702 (tui_source_window_base::refresh_all): Update.
703 * tui/tui-layout.c (show_source_disasm_command)
704 (show_source_or_disasm_and_command): Update.
706 2019-08-13 Tom Tromey <tom@tromey.com>
708 * tui/tui-winsource.c (tui_erase_source_content)
709 (tui_show_source_content, tui_source_window_base::refresh_all):
711 * tui/tui-wingeneral.h
712 (tui_check_and_display_highlight_if_needed): Don't declare.
713 * tui/tui-wingeneral.c
714 (tui_win_info::check_and_display_highlight_if_needed): Rename from
715 check_and_display_highlight_if_needed.
716 * tui/tui-win.c (tui_rehighlight_all)
717 (tui_win_info::make_visible_with_new_height): Update.
718 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
719 (tui_data_window::erase_data_content)
720 (tui_data_window::display_all_data): Update.
721 * tui/tui-data.h (struct tui_win_info)
722 <check_and_display_highlight_if_needed>: Declare.
724 2019-08-13 Tom Tromey <tom@tromey.com>
726 * tui/tui-win.c (tui_resize_all): Call
727 tui_delete_invisible_windows.
728 * tui/tui-layout.c (show_layout): Call
729 tui_delete_invisible_windows.
730 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
731 * tui/tui-data.c (tui_delete_invisible_windows): New function.
733 2019-08-13 Tom Tromey <tom@tromey.com>
735 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
736 tui_add_win_to_layout.
738 2019-08-13 Tom Tromey <tom@tromey.com>
740 * tui/tui-layout.h (tui_default_win_height): Don't declare.
741 * tui/tui-layout.c (tui_default_win_height): Now static.
743 2019-08-13 Tom Tromey <tom@tromey.com>
745 * tui/tui-layout.c (show_layout): Unify all layout cases into a
747 (show_source_disasm_command, show_source_or_disasm_and_command):
748 Don't check current layout.
750 2019-08-13 Tom Tromey <tom@tromey.com>
752 * tui/tui-wingeneral.c (make_all_visible): Remove.
753 (tui_make_all_invisible): Simplify.
754 * tui/tui-layout.c (tui_make_all_invisible): Move from
755 tui-wingeneral.c; simplify.
756 (show_layout): Hoist call to tui_make_all_invisible.
757 (show_data): Don't call tui_make_all_invisible.
759 2019-08-13 Tom Tromey <tom@tromey.com>
761 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
762 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
764 2019-08-13 Tom Tromey <tom@tromey.com>
766 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
768 (show_source_disasm_command, show_data)
769 (show_source_or_disasm_and_command): Don't use
770 tui_set_current_layout_to.
771 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
772 * tui/tui-data.c (current_layout, tui_current_layout): Move to
774 (tui_set_current_layout_to): Remove.
776 2019-08-13 Tom Tromey <tom@tromey.com>
778 * tui/tui-layout.c (tui_set_layout): Update.
779 * tui/tui-data.h (struct tui_layout_def): Remove.
780 (tui_layout_def): Don't declare.
781 * tui/tui-data.c (layout_def): Remove.
782 (tui_layout_def): Remove.
784 2019-08-13 Tom Tromey <tom@tromey.com>
786 * tui/tui-winsource.h (struct tui_source_window_base)
787 <clear_detail>: No longer "override".
788 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
789 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
790 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
791 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
793 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
795 2019-08-13 Tom Tromey <tromey@adacore.com>
797 * tracepoint.c: Don't include readline.h or history.h.
799 2019-08-12 Tom Tromey <tom@tromey.com>
801 * configure: Rebuild.
802 * configure.ac: Check for readline 7.
803 * NEWS: Mention readline 7 requirement.
806 2019-08-12 Tom Tromey <tom@tromey.com>
808 * mingw-hdep.c (gdb_select): Remove readline hack.
810 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
812 * blockframe.c (find_pc_partial_function): Set *block to nullptr
813 when the function fails.
815 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
817 * s390-tdep.c (s390_type_align): New function.
818 (s390_gdbarch_init): Set it as type_align gdbarch method.
820 2019-08-09 Tom de Vries <tdevries@suse.de>
823 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
824 pc_low with relocation offset.
826 2019-08-07 Tom Tromey <tromey@adacore.com>
828 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
829 (print_frame_args): Update.
830 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
832 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
833 * frame.h (struct frame_arg): Add initializers.
834 <error>: Now a unique_xmalloc_ptr.
836 2019-08-07 Alan Hayward <alan.hayward@arm.com>
838 * NEWS: Expand the Pointer Authentication entry.
839 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
840 (aarch64_frame_unmask_lr): ... to this.
841 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
842 Call aarch64_frame_unmask_lr.
843 * frame.c (struct frame_info): Add "masked" variable.
844 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
845 (fprint_frame): Check for masked pc.
846 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
848 * python/py-framefilter.c (py_print_frame): Check for masked pc.
849 * stack.c (print_frame): Check for masked pc.
851 2019-08-06 Tom Tromey <tom@tromey.com>
853 * stabsread.c (patch_block_stabs, read_one_struct_field)
854 (read_enum_type): Use obstack_strndup.
855 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
856 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
857 * dwarf2read.c (guess_full_die_structure_name)
858 (anonymous_struct_prefix): Use obstack_strndup.
859 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
860 * c-exp.y (yylex): Use obstack_strndup.
861 * ada-exp.y (write_object_renaming, write_ambiguous_var)
862 (write_var_or_type): Use obstack_strndup.
864 2019-08-06 Tom Tromey <tom@tromey.com>
866 * symfile.c (reread_symbols): Use obstack_strdup.
867 * stabsread.c (read_type): Use obstack_strdup.
868 * gdb_obstack.h (obstack_strdup): New overload.
869 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
870 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
871 (dwarf2_canonicalize_name): Use obstack_strdup.
872 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
873 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
876 2019-08-06 Tom Tromey <tom@tromey.com>
878 * gdb_obstack.h (obstack_strdup): Define.
879 * gdb_obstack.c (obstack_strdup): Don't define.
881 2019-08-06 Tom Tromey <tom@tromey.com>
883 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
885 * typeprint.c (typedef_hash_table::find_global_typedef): Use
887 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
888 * stabsread.c (common_block_start): Use obstack_strdup.
889 * objfiles.c (set_objfile_main_name, objfile): Use
891 * namespace.c (add_using_directive): Use obstack_strdup.
892 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
893 * jit.c (finalize_symtab): Use obstack_strdup.
894 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
895 (guess_partial_die_structure_name, partial_die_info::fixup)
896 (dwarf2_name): Use obstack_strdup.
897 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
899 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
900 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
902 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
904 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
906 * unittests/help-doc-selftests.c: New file.
907 * Makefile.in: Add the new file.
909 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
911 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
912 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
913 the full first line, except when FOR_VALUE_PREFIX. In this case,
914 the trailing '.' is not output, and the first character is uppercased.
915 (print_help_for_command): Update call to print_doc_line.
916 (print_doc_of_command): Likewise.
917 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
918 * cli/cli-option.c (append_indented_doc): Do not append newline.
919 (build_help_option): Append newline after first appended_indented_doc
920 only if a second call is done.
921 (build_help): Append 2 new lines before each option, except the first
923 * compile/compile.c (_initialize_compile): Add new lines after
924 %OPTIONS%, when not at the end of the help.
925 Change help doc or code
926 producing the help doc to respect the invariants.
927 * maint-test-options.c (_initialize_maint_test_options): Likewise.
928 Also removed the new line after 'Options:', as all other commands
929 do not put an empty line between 'Options:' and the first option.
930 * printcmd.c (_initialize_printcmd): Likewise.
931 * stack.c (_initialize_stack): Likewise.
932 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
933 incorrectly telling COMMAND is optional.
934 * ada-lang.c (_initialize_ada_language): Change help doc or code
935 producing the help doc to respect the invariants.
936 * ada-tasks.c (_initialize_ada_tasks): Likewise.
937 * breakpoint.c (_initialize_breakpoint): Likewise.
938 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
939 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
940 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
941 * cli/cli-style.c (cli_style_option::add_setshow_commands,
942 _initialize_cli_style): Likewise.
943 * corelow.c (core_target_info): Likewise.
944 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
945 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
946 * filesystem.c (_initialize_filesystem): Likewise.
947 * frame.c (_initialize_frame): Likewise.
948 * gnu-nat.c (add_task_commands): Likewise.
949 * infcall.c (_initialize_infcall): Likewise.
950 * infcmd.c (_initialize_infcmd): Likewise.
951 * interps.c (_initialize_interpreter): Likewise.
952 * language.c (_initialize_language): Likewise.
953 * linux-fork.c (_initialize_linux_fork): Likewise.
954 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
955 * maint.c (_initialize_maint_cmds): Likewise.
956 * memattr.c (_initialize_mem): Likewise.
957 * printcmd.c (_initialize_printcmd): Likewise.
958 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
960 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
961 * record-btrace.c (_initialize_record_btrace): Likewise.
962 * record-full.c (_initialize_record_full): Likewise.
963 * record.c (_initialize_record): Likewise.
964 * regcache-dump.c (_initialize_regcache_dump): Likewise.
965 * regcache.c (_initialize_regcache): Likewise.
966 * remote.c (add_packet_config_cmd, init_remote_threadtests,
967 _initialize_remote): Likewise.
968 * ser-tcp.c (_initialize_ser_tcp): Likewise.
969 * serial.c (_initialize_serial): Likewise.
970 * skip.c (_initialize_step_skip): Likewise.
971 * source.c (_initialize_source): Likewise.
972 * stack.c (_initialize_stack): Likewise.
973 * symfile.c (_initialize_symfile): Likewise.
974 * symtab.c (_initialize_symtab): Likewise.
975 * target-descriptions.c (_initialize_target_descriptions): Likewise.
976 * top.c (init_main): Likewise.
977 * tracefile-tfile.c (tfile_target_info): Likewise.
978 * tracepoint.c (_initialize_tracepoint): Likewise.
979 * tui/tui-win.c (_initialize_tui_win): Likewise.
980 * utils.c (add_internal_problem_command): Likewise.
981 * valprint.c (value_print_option_defs): Likewise.
983 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
986 * configure.ac: Drop enable-libmcheck support.
987 * configure, config.in: Rebuild.
988 * libmcheck.m4: Remove.
989 * acinclude.m4: Don't include it.
990 * Makefile.in: Don't distribute it.
991 * top.c (print_gdb_configuration): Don't mention it.
993 2019-08-06 Tom Tromey <tom@tromey.com>
995 * utils.c (set_output_style): Sometimes pass stream to
997 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
998 * record-btrace.c (btrace_insn_history): Update.
999 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1001 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1002 Update initializers.
1003 <m_uiout>: New field.
1005 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1006 Remove "uiout" parameter.
1007 (dump_insns): Update.
1008 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1009 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1011 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1013 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1014 (error_in_psymtab_expansion): Likewise.
1015 (lookup_symbol_via_quick_fns): Likewise.
1016 (basic_lookup_transparent_type_quick): Likewise.
1017 (basic_lookup_transparent_type_1): Likewise.
1019 2019-08-06 Tom Tromey <tromey@adacore.com>
1021 * source.c (last_source_error): Now bool.
1022 (print_source_lines_base): Make "noprint" bool. Only open
1023 source file when last_source_visited changes.
1025 2019-08-06 Tom Tromey <tromey@adacore.com>
1027 * annotate.c (annotate_source_line): Use g_source_cache.
1028 * source-cache.c (source_cache::get_plain_source_lines): Change
1029 parameters. Populate m_offset_cache.
1030 (source_cache::ensure): New method.
1031 (source_cache::get_line_charpos): New method.
1032 (extract_lines): Move lower. Change parameters.
1033 (source_cache::get_source_lines): Move lower.
1034 * source-cache.h (class source_cache): Update comment.
1035 <get_line_charpos>: New method.
1036 <get_source_lines>: Update comment.
1037 <clear>: Clear m_offset_cache.
1038 <get_plain_source_lines>: Change parameters.
1039 <ensure>: New method
1040 <m_offset_cache>: New member.
1041 * source.c (forget_cached_source_info_for_objfile): Update.
1042 (info_source_command): Use g_source_cache.
1043 (find_source_lines, open_source_file_with_line_charpos): Remove.
1044 (print_source_lines_base, search_command_helper): Use g_source_cache.
1045 * source.h (open_source_file_with_line_charpos): Don't declare.
1046 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1047 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1050 2019-08-06 Tom Tromey <tromey@adacore.com>
1052 * source-cache.c (source_cache::get_plain_source_lines):
1053 Remove "first_line" and "last_line" parameters.
1054 (source_cache::get_source_lines): Cache plain text.
1055 * source-cache.h (class source_cache)
1056 <get_plain_source_lines>: Update.
1058 2019-08-06 Tom Tromey <tromey@adacore.com>
1060 * source-cache.c (extract_lines): No longer a method.
1061 Changed type of parameter. Include final newline.
1062 (selftests::extract_lines_test): New function.
1063 (_initialize_source_cache): Likewise.
1064 * source-cache.h (class source_cache)
1065 <extract_lines>: Don't declare.
1067 2019-08-06 Tom Tromey <tromey@adacore.com>
1069 * breakpoint.c (init_breakpoint_sal): Update.
1070 (breakpoint): Update.
1071 * breakpoint.h (struct breakpoint) <filter>: Now a
1074 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1076 * NEWS: Mention dictionary access on blocks.
1077 * python/py-block.c (blpy_getitem): New function.
1078 (block_object_as_mapping): New struct.
1079 (block_object_type): Use new struct for tp_as_mapping field.
1081 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1083 * objfiles.h (objfile): Add a comment describing partial symbols.
1085 2019-08-05 Tom Tromey <tromey@adacore.com>
1087 * compile/compile.c (_initialize_compile): Use _(), not N_().
1088 * thread.c (_initialize_thread): Use _(), not N_().
1089 * stack.c (_initialize_stack): Use _(), not N_().
1090 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1092 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1094 * dwarf2read.c (struct dw2_symtab_iterator):
1095 <want_specific_block>: Remove.
1096 <block_index>: Change type to gdb::optional.
1097 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1098 change type of BLOCK_INDEX parameter to gdb::optional.
1099 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1100 (dw2_lookup_symbol): Don't pass argument for
1101 WANT_SPECIFIC_BLOCK.
1102 (dw2_expand_symtabs_for_function): Don't pass argument for
1103 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1104 (class dw2_debug_names_iterator)
1105 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1106 parameter, change BLOCK_INDEX type to gdb::optional.
1107 <m_want_specific_block>: Remove.
1108 <m_block_index>: Change type to gdb::optional.
1109 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1110 gdb::optional. Re-write in function of gdb::optional.
1111 (dw2_debug_names_lookup_symbol): Don't pass argument for
1112 WANT_SPECIFIC_BLOCK.
1113 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1114 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1117 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1119 * NEWS: Mention changes to "info sources" command.
1121 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1123 * symtab.c (filename_partial_match_opts): New struct type.
1124 (struct output_source_filename_data): New members
1125 regexp, c_regexp, partial_match.
1126 (output_source_filename): Use new members to decide to print file.
1127 (info_sources_option_defs): New variable.
1128 (make_info_sources_options_def_group, print_info_sources_header,
1129 info_sources_command_completer):
1131 (info_sources_command): Read new optional arguments.
1132 (_initialize_symtab): Update info sources help.
1134 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1136 * ada-lang.c (exception_support_info_v0): Renamed from...
1137 (default_exception_support_info): ... this. Create new
1139 (ada_has_this_exception_support): Look up catch_handlers_sym.
1140 (ada_exception_support_info_sniffer): Try v0 after default.
1142 2019-08-01 Tom Tromey <tromey@adacore.com>
1144 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1147 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1149 * s12z-tdep.c: Fix include path for s12z-opc.h.
1151 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1153 * NEWS: Require GNU make 3.82.
1155 2019-07-16 Tom Tromey <tom@tromey.com>
1157 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1160 2019-07-30 Tom Tromey <tromey@adacore.com>
1162 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1164 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1166 * printcmd.c (print_address_symbolic): Print negative offsets.
1167 (build_address_symbolic): Force signed arithmetic when computing
1170 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1172 PR/24474: Add a function to lookup static variables.
1173 * NEWS: Mention this new function.
1174 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1175 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1176 * python/python.c (python_GdbMethods): Add new function.
1178 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1180 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1181 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1182 (objfpy_lookup_static_symbol): New function.
1183 (objfile_object_methods): Add new functions.
1185 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1187 * NEWS: Mention 'set|show print frame-info'. Mention new
1188 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1189 backtrace argument. Mention that python frame filtering code
1190 is now consistent with what 'backtrace' command prints.
1192 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1194 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1196 (print_frame_info_auto, print_frame_info_source_line,
1197 print_frame_info_location, print_frame_info_source_and_location,
1198 print_frame_info_location_and_address, print_frame_info_short_location):
1200 (struct frame_print_options): New member print_frame_info.
1201 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1202 * stack.h (get_user_print_what_frame_info): New declaration.
1203 (frame_show_address): New declaration.
1204 * stack.c (print_frame_arguments_choices): New value 'presence'.
1205 (print_frame_info_auto, print_frame_info_source_line,
1206 print_frame_info_location, print_frame_info_source_and_location,
1207 print_frame_info_location_and_address, print_frame_info_short_location,
1208 print_frame_info_choices, print_frame_info_print_what): New definitions.
1209 (print_frame_args): Only print dots for args if print frame-arguments
1211 (frame_print_option_defs): New element for "frame-info".
1212 (get_user_print_what_frame_info): New function.
1213 (frame_show_address): Make non static. Move comment to stack.h.
1214 (print_frame_info_to_print_what): New function.
1215 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1216 to decide what to print.
1217 (backtrace_command_1): Handle the new print_frame_arguments_presence
1219 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1220 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1221 (py_print_frame): In non-mi mode, use LOCATION as default for
1222 print_what, similarly to frame information printed directly by
1223 backtrace command. Handle frame-info user option in non MI mode.
1225 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1227 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1228 Add case for debugging 32-bit target on 64-bit host. Revise
1231 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1233 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1234 instead of find_function_entry_range_from_pc.
1236 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1238 * stack.c (find_frame_funname): Remove code which preferred
1239 minsym over symtab sym in "certain pathological cases".
1241 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1242 parameter. Change type of "do_demangle" to bool.
1243 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1244 Pass suitable "prefer_sym_over_minsym" flag to
1245 build_address_symbolic(). Don't output "+" for negative offsets.
1246 * printcmd.c (print_address_symbolic): Update invocation of
1247 build_address_symbolic to include a "prefer_sym_over_minsym"
1249 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1250 Restrict cases in which use of minimal symbol is preferred to that
1251 of a found symbol. Update comments.
1253 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1254 for entry pc when entry pc is out of range for that FDE.
1256 2019-07-26 Brian Callahan <bcallah@openbsd.org>
1259 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1262 2019-07-25 Christian Biesinger <cbiesinger@google.com>
1264 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1265 this function's Python signature.
1268 2019-07-24 Christian Biesinger <cbiesinger@google.com>
1270 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1271 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1272 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1273 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1274 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1277 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1279 * h8300-tdep.c (h8300_register_name_common): New.
1280 h8300_register_name): Use h8300_register_name_common.
1281 (h8300s_register_name): Likewise.
1282 (h8300sx_register_name): Likewise.
1283 (h8300h_register_nam): New.
1284 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1287 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1289 * arm-tdep.c (arm_skip_cmse_entry): New function.
1290 (arm_is_sgstubs_section): New function.
1291 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1293 2019-07-22 Tom Tromey <tom@tromey.com>
1295 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1298 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1300 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1303 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1305 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1306 so that GDB doesn't match any msymbols when searching in the
1308 (print_symbol_info): Print using typedef_print or type_print based
1309 on the type of the symbol. Add updated FIXME comment moved from...
1310 (_initialize_symtab): ... move and update FIXME comment to above.
1312 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1314 * NEWS: Mention adding -q option to "info types".
1315 * symtab.c (struct info_types_options): New struct.
1316 (info_types_options_defs): New variable.
1317 (make_info_types_options_def_group): New function.
1318 (info_types_command): Use gdb::option framework to parse options.
1319 (info_types_command_completer): New function.
1320 (_initialize_symtab): Extend the help text on "info types" and
1321 register command completer.
1323 2019-07-21 Christian Biesinger <cbiesinger@google.com>
1325 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1326 (lookup_symbol_in_objfile): Change int to block_enum and add a
1327 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1329 2019-07-20 Christian Biesinger <cbiesinger@google.com>
1331 * MAINTAINERS (Write After Approval): Add self.
1333 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1335 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1336 instruction to the dummy code region.
1338 2019-07-19 Tom Tromey <tromey@adacore.com>
1340 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1341 (ARGSUSED, PARAMS, __func__): Remove rules.
1343 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1345 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1346 * features/arm/arm-with-iwmmxt.c: Remove.
1347 * features/arm/arm-with-iwmmxt.xml: Remove.
1348 * features/arm/arm-with-m-fpa-layout.c: Remove.
1349 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1350 * features/arm/arm-with-m-vfp-d16.c: Remove.
1351 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1352 * features/arm/arm-with-m.c: Remove.
1353 * features/arm/arm-with-m.xml: Remove.
1354 * features/arm/arm-with-neon.c: Remove.
1355 * features/arm/arm-with-neon.xml: Remove.
1356 * features/arm/arm-with-vfpv2.c: Remove.
1357 * features/arm/arm-with-vfpv2.xml: Remove.
1358 * features/arm/arm-with-vfpv3.c: Remove.
1359 * features/arm/arm-with-vfpv3.xml: Remove.
1361 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1363 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1365 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1367 * arch/aarch32.c (aarch32_create_target_description): Create
1368 target descriptions using features.
1369 * arch/arm.c (arm_create_target_description)
1370 (arm_create_mprofile_target_description): Likewise.
1371 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1373 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1375 * Makefile.in: Add new files.
1376 * aarch32-tdep.c: New file.
1377 * aarch32-tdep.h: New file.
1378 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1379 Call aarch32_read_description.
1380 * arch/aarch32.c: New file.
1381 * arch/aarch32.h: New file.
1382 * arch/arm.c (arm_create_target_description)
1383 (arm_create_mprofile_target_description): New function.
1384 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1385 (arm_create_target_description)
1386 (arm_create_mprofile_target_description): New declaration.
1387 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1388 read_description functions.
1389 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1391 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1392 * arm-tdep.c (tdesc_arm_list): New variable.
1393 (arm_register_g_packet_guesses): Call create description functions.
1394 (arm_read_description) (arm_read_mprofile_description): New
1396 * arm-tdep.h (arm_read_description)
1397 (arm_read_mprofile_description): Add declaration.
1398 * configure.tgt: Add new files.
1400 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1402 * top.c (new_ui_command): Open specified terminal just once.
1404 2019-07-18 Tom Tromey <tromey@adacore.com>
1406 * symtab.c (main_name): Constify return type.
1407 * symfile.c (set_initial_language): Update.
1408 * symtab.h (main_name): Constify return type.
1410 2019-07-17 Tom Tromey <tom@tromey.com>
1412 * tui/tui-winsource.c (tui_update_source_window)
1413 (tui_update_source_window_as_is)
1414 (tui_update_source_windows_with_line): Remove return.
1415 * tui/tui-disasm.c (tui_show_disassem)
1416 (tui_show_disassem_and_update_source): Remove return.
1417 * tui/tui.c (tui_reset): Remove return.
1418 * tui/tui-wingeneral.c
1419 (tui_check_and_display_highlight_if_needed): Remove return.
1421 2019-07-17 Tom Tromey <tom@tromey.com>
1423 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1425 2019-07-17 Tom Tromey <tom@tromey.com>
1427 * tui/tui-winsource.h (struct tui_exec_info_window)
1428 (struct tui_source_window_base): Move from tui-data.h.
1429 * tui/tui-winsource.c: Move many method definitions from
1430 elsewhere. Remove "structuring" comments.
1431 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1432 (tui_source_window_base::refresh_window): Move to
1434 * tui/tui-win.c (tui_source_window_base::refresh_all)
1435 (tui_source_window_base::update_tab_width)
1436 (tui_source_window_base::set_new_height)
1437 (tui_source_window_base::do_make_visible_with_new_height): Move to
1439 * tui/tui-source.h: Update.
1440 * tui/tui-source.c (tui_source_window_base::reset): Move to
1442 * tui/tui-disasm.h: Update.
1443 * tui/tui-data.h (struct tui_exec_info_window): Move to
1445 (struct tui_source_window_base): Likewise.
1446 * tui/tui-data.c (tui_source_window_base::clear_detail)
1447 (tui_source_window_base, ~tui_source_window_base): Move to
1450 2019-07-17 Tom Tromey <tom@tromey.com>
1452 * tui/tui-win.c (tui_resize_all)
1453 (tui_source_window_base::update_tab_width)
1454 (tui_adjust_win_heights): Update.
1455 (tui_win_info::make_invisible_and_set_new_height): Rename from
1456 make_invisible_and_set_new_height.
1457 * tui/tui-data.h (struct tui_win_info)
1458 <make_invisible_and_set_new_height>: New method.
1460 2019-07-17 Tom Tromey <tom@tromey.com>
1462 * tui/tui.c: Update.
1463 * tui/tui-source.h (struct tui_source_window): Move from
1465 * tui/tui-layout.c: Update.
1466 * tui/tui-disasm.c: Update.
1467 * tui/tui-data.h (struct tui_source_window): Move to
1470 2019-07-17 Tom Tromey <tom@tromey.com>
1472 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1474 * tui/tui-data.h (struct tui_disasm_window): Move to
1477 2019-07-17 Tom Tromey <tom@tromey.com>
1479 * tui/tui-regs.h (struct tui_data_item_window): Move from
1481 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1482 * tui/tui-data.h (struct tui_data_item_window): Move to
1484 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1486 2019-07-17 Tom Tromey <tom@tromey.com>
1488 * tui/tui.c: Update.
1489 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1490 (tui_cmd_window::max_height): Move to tui-command.c.
1491 * tui/tui-layout.c: Update.
1492 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1493 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1495 * tui/tui-command.h (struct tui_cmd_window): Move from
1497 * tui/tui-command.c: Remove "structuring" comments.
1498 (tui_cmd_window::clear_detail)
1499 (tui_cmd_window::do_make_visible_with_new_height)
1500 (tui_cmd_window::max_height): Move from elsewhere.
1502 2019-07-17 Tom Tromey <tom@tromey.com>
1504 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1506 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1507 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1509 2019-07-17 Tom Tromey <tom@tromey.com>
1511 * tui/tui.c: Update.
1512 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1514 * tui/tui-windata.h: Remove file.
1515 * tui/tui-windata.c: Remove file.
1516 * tui/tui-win.c (tui_data_window::set_new_height)
1517 (tui_data_window::do_make_visible_with_new_height): Move to
1519 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1520 * tui/tui-regs.c: Remove "structuring" comments.
1521 (tui_data_window::first_data_item_displayed)
1522 (tui_data_window::delete_data_content_windows)
1523 (tui_data_window::erase_data_content)
1524 (tui_data_window::display_all_data)
1525 (tui_data_window::refresh_all)
1526 (tui_data_window::do_scroll_vertical)
1527 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1528 (tui_data_window::do_make_visible_with_new_height)
1529 (tui_data_window::refresh_window): Move from elsewhere.
1530 (_initialize_tui_regs): Move to end of file.
1531 * tui/tui-layout.c: Update.
1532 * tui/tui-hooks.c: Update.
1533 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1534 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1536 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1538 2019-07-17 Tom Tromey <tom@tromey.com>
1540 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1543 2019-07-17 Tom Tromey <tom@tromey.com>
1545 * tui/tui-win.c (tui_source_window_base::set_new_height)
1546 (tui_source_window_base::do_make_visible_with_new_height): Use
1547 m_has_locator field directly.
1548 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1550 (struct tui_source_window_base) <has_locator>: Likewise.
1552 2019-07-17 Tom Tromey <tom@tromey.com>
1554 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1556 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1558 * tui/tui-win.c (tui_source_window_base::set_new_height)
1559 (tui_source_window_base::set_new_height)
1560 (make_invisible_and_set_new_height)
1561 (tui_source_window_base::do_make_visible_with_new_height)
1562 (tui_source_window_base::do_make_visible_with_new_height):
1564 * tui/tui-layout.c (show_source_disasm_command, show_data)
1565 (show_source_or_disasm_and_command): Update.
1566 * tui/tui-layout.c (show_layout): Update.
1568 2019-07-17 Tom Tromey <tom@tromey.com>
1570 * tui/tui-layout.c (make_data_window): Remove.
1571 (show_data): Unify creation and re-initialization cases.
1573 2019-07-17 Tom Tromey <tom@tromey.com>
1575 * tui/tui-layout.c (make_source_window, make_disasm_window):
1577 (show_data): Unify creation and re-initialization cases.
1579 2019-07-17 Tom Tromey <tom@tromey.com>
1581 * tui/tui-layout.c (make_command_window): Remove.
1582 (show_source_disasm_command, show_source_or_disasm_and_command):
1583 Unify creation and re-initialization cases.
1585 2019-07-17 Tom Tromey <tom@tromey.com>
1587 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1588 creation and re-initialization cases.
1590 2019-07-17 Tom Tromey <tom@tromey.com>
1592 * tui/tui-regs.c (tui_get_register): Return void.
1594 2019-07-17 Tom Tromey <tom@tromey.com>
1596 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1599 2019-07-17 Tom Tromey <tom@tromey.com>
1601 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1604 2019-07-17 Tom Tromey <tom@tromey.com>
1606 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1607 * tui/tui-regs.c (tui_reg_layout): New function.
1608 (tui_show_registers, tui_reg_command): Use it.
1609 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1610 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1612 (tui_layout_command): Remove.
1614 2019-07-17 Tom Tromey <tom@tromey.com>
1616 * tui/tui-layout.h (tui/tui-layout): Return void.
1617 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1619 2019-07-17 Tom Tromey <tom@tromey.com>
1621 * tui/tui-layout.c (show_source_disasm_command, show_data):
1623 (reset_locator): Remove.
1624 (show_source_or_disasm_and_command): Update.
1626 2019-07-17 Tom Tromey <tom@tromey.com>
1628 * tui/tui-source.c (tui_source_window_base::reset): Remove
1630 * tui/tui-layout.c (make_command_window, make_source_window)
1631 (make_disasm_window, make_data_window)
1632 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1633 (reset_locator, show_source_or_disasm_and_command): Update.
1634 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1636 (struct tui_source_window_base) <reset>: Likewise.
1638 2019-07-17 Tom Tromey <tom@tromey.com>
1640 * tui/tui-layout.c (show_source_disasm_command): Use
1642 (reset_locator): New function.
1643 (init_and_make_win): Remove.
1644 (show_source_or_disasm_and_command): Use reset_locator.
1646 2019-07-17 Tom Tromey <tom@tromey.com>
1648 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1650 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1652 * tui/tui-source.c (tui_source_window_base::reset): New method.
1653 * tui/tui-layout.c (make_command_window): Don't call
1655 (make_source_window, make_disasm_window): Don't call
1656 make_source_or_disasm_window.
1657 (make_data_window): Don't call init_and_make_win. Change calling
1659 (show_source_disasm_command, show_data): Simplify.
1660 (make_source_or_disasm_window): Remove.
1661 (show_source_or_disasm_and_command): Simplify.
1662 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1663 (struct tui_source_window_base) <reset>: Likewise.
1664 <execution_info>: Remove initializer.
1665 * tui/tui-data.c (tui_source_window_base): Initialize
1668 2019-07-17 Tom Tromey <tom@tromey.com>
1670 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1673 2019-07-17 Tom Tromey <tom@tromey.com>
1675 * tui/tui.c (tui_rl_other_window): Update.
1676 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1677 superclass method first. Always iterate over regs_content.
1678 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1680 * tui/tui-win.c (tui_set_focus_command): Update.
1682 2019-07-17 Tom Tromey <tom@tromey.com>
1684 * tui/tui-win.c (tui_set_focus_command): Rename from
1685 tui_set_focus. Call tui_enable.
1686 (tui_set_focus_command): Remove.
1688 2019-07-17 Tom Tromey <tom@tromey.com>
1690 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1692 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1694 (tui_data_window::refresh_window): Call refresh_window on data
1695 items. Always call superclass refresh_window.
1696 (tui_win_info::refresh): Remove.
1697 (tui_source_window_base::refresh_window): Update.
1698 (tui_refresh_all): Update.
1699 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1701 (show_source_or_disasm_and_command): Likewise.
1702 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1703 (struct tui_source_window_base) <refresh>: Likewise.
1705 2019-07-17 Tom Tromey <tom@tromey.com>
1707 * tui/tui-winsource.c (tui_clear_source_content)
1708 (tui_show_source_content): Update.
1709 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1710 whether content is empty.
1711 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1714 2019-07-17 Tom Tromey <tom@tromey.com>
1716 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1718 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1719 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1721 2019-07-17 Tom Tromey <tom@tromey.com>
1723 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1724 (struct tui_data_item_window): Update.
1726 2019-07-17 Tom Tromey <tom@tromey.com>
1728 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1729 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1732 2019-07-17 Tom Tromey <tom@tromey.com>
1734 * tui/tui-winsource.h (tui_erase_source_content)
1735 (tui_clear_source_content): Remove "display_prompt" parameter.
1736 * tui/tui-winsource.c (tui_update_source_window_as_is)
1737 (tui_update_source_windows_with_addr): Update.
1738 (tui_clear_source_content): Remove "display_prompt" parameter.
1739 (tui_erase_source_content): Likewise. Simplify.
1740 (tui_show_source_content): Update.
1741 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1742 * tui/tui-stack.c (tui_show_frame_info): Update.
1743 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1746 2019-07-17 Tom Tromey <tom@tromey.com>
1748 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1749 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1751 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1754 2019-07-17 Tom Tromey <tom@tromey.com>
1756 * tui/tui-winsource.c (tui_clear_source_content)
1757 (tui_show_source_content, tui_show_exec_info_content)
1758 (tui_clear_exec_info_content): Update.
1759 * tui/tui-stack.c (tui_show_locator_content): Update.
1760 (tui_show_frame_info): Update.
1761 * tui/tui-source.h (tui_source_window): Don't declare.
1762 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1763 from tui_source_is_displayed.
1764 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1766 (struct tui_source_window_base) <content_in_use>: New field. Now
1768 (struct tui_source_window) <showing_source_p>: New method.
1769 (TUI_SRC_WIN): Change cast.
1770 * tui/tui-data.c (tui_initialize_static_data): Update.
1772 2019-07-17 Tom Tromey <tom@tromey.com>
1774 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1776 * tui/tui-source.c (tui_source_window::location_matches_p): New
1778 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1780 * tui/tui-data.h (struct tui_source_window_base)
1781 <location_matches_p>: New method.
1782 (struct tui_source_window, struct tui_disasm_window)
1783 <location_matches_p>: Likewise.
1785 2019-07-17 Tom Tromey <tom@tromey.com>
1787 * tui/tui-win.c (tui_set_win_height_command): Rename from
1789 (tui_set_win_height_command): Remove.
1791 2019-07-17 Tom Tromey <tom@tromey.com>
1793 * tui/tui-source.c (tui_source_window): New constructor. Add
1795 (~tui_source_window): New destructor.
1796 (tui_source_window::style_changed): New method.
1797 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1798 (tui_attach_detach_observers): Update.
1799 * tui/tui-data.h (struct tui_source_window): Make constructor not
1800 inline. Add destructor.
1801 (struct tui_source_window) <style_changed>: New method.
1802 <m_observable>: New member.
1804 2019-07-17 Tom Tromey <tom@tromey.com>
1806 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1807 * tui/tui-win.c (tui_resize_all): Fix typo.
1809 2019-07-17 Tom Tromey <tom@tromey.com>
1811 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1812 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1813 (tui_refresh_all): Remove "list" parameter. Use foreach.
1814 * tui/tui-win.c (window_name_completer): Use foreach.
1815 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1816 (update_tab_width): Likewise.
1817 * tui/tui-layout.c (show_layout): Update.
1818 * tui/tui-data.h (class tui_window_iterator): New.
1819 (struct all_tui_windows): New.
1820 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1822 2019-07-17 Tom Tromey <tom@tromey.com>
1824 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1825 parameter. Don't reference globals.
1826 (tui_reg_command): Update.
1828 2019-07-17 Tom Tromey <tom@tromey.com>
1830 * tui/tui-regs.c (tui_show_registers): Simplify.
1832 2019-07-17 Tom Tromey <tom@tromey.com>
1834 * tui/tui-regs.c (tui_show_registers): Update.
1835 (tui_show_register_group): Add win_info parameter.
1837 2019-07-17 Tom Tromey <tom@tromey.com>
1839 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1840 Rename from tui_display_reg_element_at_line.
1841 (tui_data_window::display_registers_from_line): Update.
1842 * tui/tui-data.h (struct tui_data_window)
1843 <display_reg_element_at_line>: New method.
1845 2019-07-17 Tom Tromey <tom@tromey.com>
1847 * tui/tui-regs.h (tui_display_registers_from)
1848 (tui_display_registers_from_line): Don't declare.
1849 * tui/tui-windata.c (tui_data_window::display_all_data)
1850 (tui_data_window::refresh_all)
1851 (tui_data_window::do_scroll_vertical): Update.
1852 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1853 from tui_display_registers_from.
1854 (tui_display_reg_element_at_line): Update.
1855 (tui_data_window::display_registers_from_line): Rename from
1856 tui_display_registers_from_line.
1857 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1858 display_registers_from_line>: New methods.
1860 2019-07-17 Tom Tromey <tom@tromey.com>
1862 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1863 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1864 from tui_erase_data_content.
1865 (tui_data_window::display_all_data)
1866 (tui_data_window::refresh_all)
1867 (tui_data_window::do_scroll_vertical): Update.
1868 * tui/tui-regs.c (tui_show_registers): Update.
1869 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1872 2019-07-17 Tom Tromey <tom@tromey.com>
1874 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1877 (tui_data_window::delete_data_content_windows): Rename from
1878 tui_delete_data_content_windows.
1879 (tui_data_window::display_all_data)
1880 (tui_data_window::do_scroll_vertical): Update.
1881 * tui/tui-data.h (struct tui_data_window)
1882 <delete_data_content_windows>: New method.
1884 2019-07-17 Tom Tromey <tom@tromey.com>
1886 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1887 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1889 2019-07-17 Tom Tromey <tom@tromey.com>
1891 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1892 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1893 from tui_display_all_data.
1895 (tui_data_window::do_make_visible_with_new_height): Update.
1896 * tui/tui-regs.c (tui_show_registers): Update.
1897 * tui/tui-layout.c (tui_set_layout): Update.
1898 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1901 2019-07-17 Tom Tromey <tom@tromey.com>
1903 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1904 * tui/tui-windata.c (tui_display_data_from): Remove.
1905 (tui_data_window::refresh_all): Update.
1907 2019-07-17 Tom Tromey <tom@tromey.com>
1909 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1910 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1911 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1912 tui_display_registers_from_line.
1913 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1914 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1915 "force_display" parameter.
1917 2019-07-17 Tom Tromey <tom@tromey.com>
1919 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1921 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1922 Rename from tui_first_reg_element_no_inline.
1923 (tui_display_reg_element_at_line)
1924 (tui_display_registers_from_line): Update.
1925 * tui/tui-data.h (struct tui_data_window)
1926 <first_reg_element_no_inline>: New method.
1928 2019-07-17 Tom Tromey <tom@tromey.com>
1930 * tui/tui-windata.c (tui_display_data_from)
1931 (tui_data_window::do_scroll_vertical): Update.
1932 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1933 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1934 Rename from tui_line_from_reg_element_no.
1935 (tui_display_registers_from_line): Update.
1936 * tui/tui-data.h (struct tui_data_window)
1937 <line_from_reg_element_no>: New method.
1939 2019-07-17 Tom Tromey <tom@tromey.com>
1941 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1942 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1943 tui_last_regs_line_no.
1944 (tui_display_reg_element_at_line)
1945 (tui_display_registers_from_line): Update.
1946 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1949 2019-07-17 Tom Tromey <tom@tromey.com>
1952 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1953 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1954 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1955 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1956 (tui_update_breakpoint_info): Likewise.
1957 * tui/tui-hooks.c (tui_event_create_breakpoint)
1958 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1961 2019-07-17 Tom Tromey <tom@tromey.com>
1963 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1965 2019-07-17 Tom Tromey <tom@tromey.com>
1967 * tui/tui-winsource.c (tui_update_source_window_as_is)
1968 (tui_update_source_windows_with_addr): Update.
1969 * tui/tui-source.h (tui_set_source_content)
1970 (tui_show_symtab_source): Add "win_info" parameter.
1971 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1973 (tui_show_symtab_source): Likewise.
1975 2019-07-17 Tom Tromey <tom@tromey.com>
1977 * tui/tui-wingeneral.c
1978 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1980 2019-07-17 Tom Tromey <tom@tromey.com>
1982 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1983 (struct tui_cmd_window) <can_scroll>: New method.
1984 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1987 2019-07-17 Tom Tromey <tromey@adacore.com>
1989 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1990 do_field_signed>: Rename. Change type of "value".
1991 * ui-out.c (ui_out::field_signed): Rename from field_int.
1992 Change type of "value".
1993 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1995 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1996 do_field_int. Change type of "value".
1997 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1998 do_field_int. Change type of "value".
1999 * tracepoint.c (trace_status_mi, tfind_1)
2000 (print_one_static_tracepoint_marker): Update.
2001 * thread.c (print_thread_info_1, print_selected_thread_frame):
2003 * stack.c (print_frame, print_frame_info): Update.
2004 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2006 * source.c (print_source_lines_base): Update.
2007 * skip.c (info_skip_command): Update.
2008 * record-btrace.c (btrace_ui_out_decode_error)
2009 (btrace_call_history_src_line): Update.
2010 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2012 * progspace.c (print_program_space): Update.
2013 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2014 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2015 do_field_int. Change type of "value".
2016 * mi/mi-out.c (mi_ui_out::do_table_begin)
2017 (mi_ui_out::do_table_header): Update.
2018 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2020 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2021 (mi_cmd_data_list_changed_registers, output_register)
2022 (mi_cmd_data_read_memory, mi_load_progress)
2023 (mi_cmd_trace_frame_collected): Update.
2024 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2026 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2027 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2028 (mi_cmd_var_list_children, varobj_update_one): Update.
2029 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2030 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2031 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2032 * inferior.c (print_inferior): Update.
2033 * gdb_bfd.c (print_one_bfd): Update.
2034 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2036 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2037 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2038 do_field_int. Change type of "value".
2039 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2040 do_field_int. Change type of "value".
2041 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2042 (print_one_breakpoint_location, print_it_catch_fork)
2043 (print_one_catch_fork, print_it_catch_vfork)
2044 (print_one_catch_vfork, print_it_catch_solib)
2045 (print_it_catch_exec, print_it_ranged_breakpoint)
2046 (print_mention_watchpoint, print_mention_masked_watchpoint)
2047 (bkpt_print_it, update_static_tracepoint): Update.
2048 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2049 * break-catch-syscall.c (print_it_catch_syscall): Update.
2050 * ada-tasks.c (print_ada_task_info): Update.
2051 * ada-lang.c (print_it_exception, print_mention_exception):
2054 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2056 PR breakpoints/24541
2057 * gdbarch.c: Regenerate.
2058 * gdbarch.h: Regenerate.
2059 * gdbarch.sh: Adjust return type and parameter types for
2060 'stap_adjust_register'.
2061 (i386_stap_adjust_register): Adjust signature and return new
2063 * stap-probe.c (stap_parse_register_operand): Adjust use of
2064 'gdbarch_stap_adjust_register'.
2066 2019-07-17 Tom Tromey <tromey@adacore.com>
2068 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2070 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2072 (struct s390_process_info): Add initializers.
2073 (s390_add_process): Use new.
2074 (s390_linux_nat_target::low_forget_process): Use delete.
2075 (s390_linux_nat_target::low_new_fork)
2076 (s390_linux_nat_target::stopped_by_watchpoint)
2077 (s390_linux_nat_target::low_prepare_to_resume)
2078 (s390_linux_nat_target::insert_watchpoint)
2079 (s390_linux_nat_target::insert_hw_breakpoint)
2080 (s390_linux_nat_target::remove_watchpoint)
2081 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2083 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2085 * aarch64-fbsd-nat.c: Include regcache.h.
2086 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2088 (aarch64_fbsd_nat_target::fetch_registers)
2089 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2091 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2093 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2095 * fbsd-nat.c: Include gdbarch.h.
2097 2019-07-15 Tom Tromey <tromey@adacore.com>
2099 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2101 2019-07-15 Tom Tromey <tromey@adacore.com>
2103 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2104 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2105 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2106 * cli-out.c (cli_ui_out::do_field_int): New method.
2107 * ui-out.c (ui_out::field_unsigned): New method.
2108 * symfile.c (generic_load): Use field_unsigned.
2109 (print_transfer_performance): Likewise.
2110 * record-btrace.c (ui_out_field_uint): Remove.
2111 (btrace_call_history_insn_range, btrace_call_history): Use
2113 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2115 * ui-out.h (class ui_out) <field_unsigned>: New method.
2116 <do_field_unsigned>: Likewise.
2118 2019-07-15 Tom Tromey <tromey@adacore.com>
2120 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2121 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2122 * target.c (flash_erase_command): Use field_string.
2123 * infrun.c (print_signal_received_reason): Use field_string.
2124 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2125 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2127 * ada-tasks.c (print_ada_task_info): Use field_string.
2129 2019-07-15 Tom Tromey <tromey@adacore.com>
2131 * target.c (flash_erase_command): Use field_core_addr.
2132 * symfile.c (generic_load): Use field_core_addr.
2133 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2134 Use field_core_addr.
2135 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2138 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2140 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2141 value if its desired type is smaller than a CORE_ADDR and signed.
2143 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2145 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2146 of changes to field names, and use new is_reference field to
2147 decide if a property is a reference or not.
2148 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2150 (struct dwarf2_property_baton): Update header comment, rename
2151 'referenced_type' to 'property_type' and update comments.
2152 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2153 default property type, store in property baton, update to take
2154 accound of renamed field.
2155 (read_func_scope): Update call to attr_to_dynamic_prop.
2156 (read_array_type): Likewise.
2157 (dwarf2_per_cu_addr_sized_int_type): New function.
2158 (read_subrange_index_type): Move type finding code to
2159 dwarf2_per_cu_addr_sized_int_type.
2160 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2161 (dwarf2_per_cu_addr_type): New function.
2162 (set_die_type): Update calls to attr_to_dynamic_prop.
2164 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2166 * dwarf2read.c (read_subrange_index_type): New function.
2167 (read_subrange_type): Move code into new function and call it.
2168 * gdbtypes.c (create_range_type): Add some asserts.
2170 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2172 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2173 update return statements.
2174 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2175 declaration, and update comment to match.
2176 * gdbtypes.c (resolve_dynamic_array): Update call to
2177 dwarf2_evaluate_property to match new return type.
2179 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2181 * valarith.c (value_subscripted_rvalue): Change lowerbound
2182 parameter type from int to LONGEST.
2183 * value.h (value_subscripted_rvalue): Likewise in declaration.
2185 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2187 * cli/cli-utils.c (info_print_command_completer): New function.
2188 * cli/cli-utils.h: Add 'completer.h' include, and forward
2189 declaration for 'struct cmd_list_element'.
2190 (info_print_command_completer): Declare.
2191 * stack.c (_initialize_stack): Add completer for 'info locals' and
2193 * symtab.c (_initialize_symtab): Add completer for 'info
2194 variables' and 'info functions'.
2195 * NEWS: Mention completion for additional info commands.
2197 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2199 * cli/cli-utils.c (extract_info_print_args): Delete.
2200 (extract_arg_maybe_quoted): Delete.
2201 (info_print_options_defs): New variable.
2202 (make_info_print_options_def_group): New function.
2203 (extract_info_print_options): Define new function.
2204 * cli/cli-utils.h (extract_info_print_args): Delete.
2205 (struct info_print_options): New structure.
2206 (extract_info_print_options): Declare new function.
2207 * stack.c (info_locals_command): Update to use new
2208 extract_info_print_options, also add a header comment.
2209 (info_args_command): Likewise.
2210 * symtab.c (info_variables_command): Likewise.
2211 (info_functions_command): Likewise.
2213 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2215 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2216 to extract string arguments.
2217 * common/common-utils.c (extract_string_maybe_quoted): New function.
2218 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2220 2019-07-11 Tom Tromey <tromey@adacore.com>
2222 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2223 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2224 * top.h (gdbinit): Don't declare.
2225 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2227 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2228 * top.c (gdb_init): Don't call init_cli_cmds.
2230 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2232 2019-07-11 Tom Tromey <tromey@adacore.com>
2234 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2235 after it has been moved.
2237 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2239 * valops.c (value_must_coerce_to_target): Change return type to
2241 * value.h (value_must_coerce_to_target): Likewise.
2243 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
2245 * breakpoint.c (is_hardware_watchpoint): Remove
2246 forward-declaration.
2247 (is_masked_watchpoint): Change return type to bool.
2248 (is_tracepoint): Likewise.
2249 (is_breakpoint): Likewise.
2250 (is_hardware_watchpoint): Likewise.
2251 (is_watchpoint): Likewise.
2252 (is_no_memory_software_watchpoint): Likewise.
2253 (is_catchpoint): Likewise.
2254 (breakpoint_1): Make FILTER parameter's return type bool.
2255 is_masked_watchpoint): Change return type to bool.
2256 (save_breakpoints): Make FILTER parameter's return type bool.
2257 * breakpoint.h (is_breakpoint): Change return type to bool.
2258 (is_watchpoint): Likewise.
2259 (is_catchpoint): Likewise.
2260 (is_tracepoint): Likewise.
2262 2019-07-10 Tom Tromey <tom@tromey.com>
2264 * defs.h: Don't include gdbarch.h.
2265 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2266 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2267 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2268 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2269 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2270 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2271 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2272 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2273 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2274 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2275 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2276 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2277 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2278 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2279 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2280 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2281 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2282 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2283 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2284 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2285 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2286 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2287 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2288 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2289 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2290 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2291 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2293 2019-07-10 Tom Tromey <tromey@adacore.com>
2295 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2296 * breakpoint.c (init_ada_exception_breakpoint): Register as
2298 (print_one_breakpoint_location, print_one_breakpoint): Use
2299 is_ada_exception_catchpoint.
2300 * ada-lang.c (class ada_catchpoint_location): Pass
2301 bp_loc_software_breakpoint to bp_location constructor.
2302 (is_ada_exception_catchpoint): New function.
2304 2019-07-10 Tom Tromey <tromey@adacore.com>
2306 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2308 (struct arm_exidx_entry): New method operator<.
2309 (struct arm_exidx_data) <section_maps>: Change type.
2310 (arm_exidx_data_free): Remove.
2311 (arm_exidx_data_key): Change type. Move lower.
2312 (arm_exidx_new_objfile): Update.
2313 (arm_compare_exidx_entries): Remove.
2314 (arm_find_exidx_entry, _initialize_arm_tdep)
2316 2019-07-10 Tom Tromey <tromey@adacore.com>
2318 * solib-spu.c (ocl_program_data_key): Change type.
2319 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2322 2019-07-10 Tom Tromey <tromey@adacore.com>
2324 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2325 (struct solib_aix_inferior_data) <library_list>: Change type.
2326 (solib_aix_inferior_data_handle): Change type.
2327 (get_solib_aix_inferior_data): Update.
2328 (solib_aix_free_library_list): Remove.
2329 (library_list_start_library): Update.
2330 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2332 (solib_aix_get_library_list)
2333 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2334 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2336 2019-07-10 Tom Tromey <tromey@adacore.com>
2338 * solib-dsbt.c (struct dsbt_info): Add initializers.
2339 (solib_dsbt_pspace_data): Change type.
2340 (dsbt_pspace_data_cleanup): Remove.
2341 (get_dsbt_info, _initialize_dsbt_solib): Update.
2343 2019-07-10 Tom Tromey <tromey@adacore.com>
2345 * spu-tdep.c (spu_overlay_data): Change type.
2346 (spu_get_overlay_table, spu_overlay_new_objfile)
2347 (_initialize_spu_tdep): Update.
2349 2019-07-10 Tom Tromey <tromey@adacore.com>
2351 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2353 (dbx_objfile_data_key): Change type and declare later.
2354 (DBX_SYMFILE_INFO): Rewrite.
2355 * dbxread.c (dbx_objfile_data_key): Change type.
2356 (dbx_symfile_init): Update.
2357 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2358 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2359 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2361 2019-07-10 Tom Tromey <tromey@adacore.com>
2363 * jit.c (jit_program_space_key): Change type. Move lower.
2364 (get_jit_program_space_data): Update.
2365 (jit_program_space_data_cleanup): Remove.
2366 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2368 (struct jit_program_space_data): Add initializers.
2370 2019-07-10 Tom Tromey <tromey@adacore.com>
2372 * solib-darwin.c (struct darwin_info): Add initializers.
2373 (solib_darwin_pspace_data): Change type.
2374 (darwin_pspace_data_cleanup): Remove.
2375 (get_darwin_info, _initialize_darwin_solib): Update.
2377 2019-07-10 Tom Tromey <tromey@adacore.com>
2379 * remote-sim.c (struct sim_inferior_data): Add initializers,
2380 constructor, and destructor.
2381 (sim_inferior_data_key): Change type. Move lower.
2382 (check_for_duplicate_sim_descriptor): Update.
2383 (get_sim_inferior_data): Use new. Update.
2384 (~sim_inferior_data_cleanup): Rename from
2385 sim_inferior_data_cleanup. Simplify.
2386 (gdbsim_close_inferior, simulator_command)
2387 (sim_command_completer, _initialize_remote_sim): Update.
2388 (next_pid, INITIAL_PID): Move earlier.
2390 2019-07-10 Tom Tromey <tromey@adacore.com>
2392 * python/python-internal.h (create_thread_object): Return
2394 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2395 * python/py-inferior.c (struct threadlist_entry): Add
2397 <thread_obj>: Now a gdbpy_ref.
2398 (thread_to_thread_object): Update.
2399 (add_thread_object): Use new.
2400 (delete_thread_object): Use delete.
2401 (infpy_threads): Update.
2402 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2405 2019-07-10 Tom Tromey <tromey@adacore.com>
2407 * valops.c (value_cast): Specialize error message for Ada.
2409 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2411 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2413 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2415 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2416 bpstat_should_step): Return bool, adjust comments.
2417 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2418 bpstat_should_step): Likewise.
2420 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2422 * features/Makefile: Use feature target descriptions for Arm.
2423 * features/arm/arm-core.c: Generate new file.
2424 * features/arm/arm-fpa.c: Likewise.
2425 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2426 * features/arm/arm-m-profile.c: Likewise.
2427 * features/arm/arm-vfpv2.c: Likewise.
2428 * features/arm/arm-vfpv3.c: Likewise.
2429 * features/arm/xscale-iwmmxt.c: Likewise.
2430 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2432 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2434 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2437 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2439 * features/aarch64-pauth.c: Regenerate.
2441 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2443 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2445 (bpstat_what): Use false instead of 0.
2447 2019-07-09 Pedro Alves <palves@redhat.com>
2449 * break-catch-throw.c (is_exception_catchpoint): New.
2450 * breakpoint.c (print_one_breakpoint_location): New parameter
2451 'raw_loc'. Handle it. Use
2452 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2453 looking at the breakpoint's type.
2454 (print_one_breakpoint): If handling "maint info breakpoints", also
2455 print locations of exception catchpoints.
2456 * breakpoint.h (is_exception_catchpoint): Declare.
2458 2019-07-09 Pedro Alves <palves@redhat.com>
2460 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2462 (allocate_location_exception_catchpoint): New.
2463 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2464 (initialize_throw_catchpoint_ops): Install
2465 allocate_location_exception_catchpoint as allocate_location
2467 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2468 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2470 (breakpoint_address_is_meaningful): Delete.
2471 (bl_address_is_meaningful): New.
2472 (breakpoint_locations_match): Adjust comment.
2473 (bp_location_from_bp_type): New, factored out of...
2474 (bp_location::bp_location(breakpoint *)): ... this.
2475 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2477 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2478 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2479 breakpoint_address_is_meaningful.
2480 (bp_locations_compare): Adjust comment.
2481 (update_global_location_list): Use bl_address_is_meaningful
2482 instead of breakpoint_address_is_meaningful.
2483 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2485 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2486 * python/py-breakpoint.c (bppy_get_location): No longer check
2487 whether location is null.
2489 2019-07-09 Pedro Alves <palves@redhat.com>
2492 * breakpoint.c (print_one_breakpoint_location): Remove
2493 single-location assert.
2495 2019-07-09 Tom Tromey <tom@tromey.com>
2497 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2498 * configure: Rebuild.
2499 * configure.ac: Change common to gdbsupport.
2500 * gdbsupport: Rename from common.
2501 * acinclude.m4: Change common to gdbsupport.
2502 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2503 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2505 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2506 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2507 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2508 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2509 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2510 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2511 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2512 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2513 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2514 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2515 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2516 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2517 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2518 coff-pe-read.c, command.h, compile/compile-c-support.c,
2519 compile/compile-c.h, compile/compile-cplus-symbols.c,
2520 compile/compile-cplus-types.c, compile/compile-cplus.h,
2521 compile/compile-loc2c.c, compile/compile.c, completer.c,
2522 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2523 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2524 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2525 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2526 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2527 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2528 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2529 features/aarch64-core.c, features/aarch64-fpu.c,
2530 features/aarch64-pauth.c, features/aarch64-sve.c,
2531 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2532 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2533 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2534 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2535 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2536 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2537 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2538 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2539 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2540 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2541 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2542 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2543 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2544 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2545 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2546 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2547 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2548 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2549 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2550 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2551 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2552 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2553 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2554 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2555 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2556 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2557 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2558 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2559 minsyms.c, mips-linux-tdep.c, namespace.h,
2560 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2561 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2562 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2563 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2564 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2565 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2566 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2567 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2568 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2569 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2570 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2571 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2572 procfs.c, producer.c, progspace.h, psymtab.h,
2573 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2574 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2575 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2576 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2577 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2578 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2579 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2580 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2581 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2582 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2583 target-memory.c, target.c, target.h, target/waitstatus.c,
2584 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2585 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2586 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2587 unittests/array-view-selftests.c,
2588 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2589 unittests/common-utils-selftests.c,
2590 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2591 unittests/format_pieces-selftests.c,
2592 unittests/function-view-selftests.c,
2593 unittests/lookup_name_info-selftests.c,
2594 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2595 unittests/mkdir-recursive-selftests.c,
2596 unittests/observable-selftests.c,
2597 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2598 unittests/parse-connection-spec-selftests.c,
2599 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2600 unittests/scoped_fd-selftests.c,
2601 unittests/scoped_mmap-selftests.c,
2602 unittests/scoped_restore-selftests.c,
2603 unittests/string_view-selftests.c, unittests/style-selftests.c,
2604 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2605 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2606 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2607 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2608 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2609 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2611 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2613 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2615 (decode_digits_ordinary): Set explicit_line field in sal.
2616 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2617 symtab_and_line that was set on an explicit line number in
2618 assembler code. Do always update the recorded symtab and line if
2619 we do skip the prologue.
2621 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2623 * breakpoint.c (set_breakpoint_location_function): Remove
2624 explicit_loc parameter.
2625 (momentary_breakpoint_from_master): Update call to
2626 set_breakpoint_location_function.
2627 (add_location_to_breakpoint): Likewise.
2629 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2631 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2632 required features based on default bfd type when no specific bfd
2635 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2637 * NEWS: Mention that GDB printf and eval commands can now print
2638 C-style and Ada-style convenience var strings without
2639 calling the inferior.
2640 * printcmd.c (printf_c_string): Locally print GDB internal var
2641 instead of transiting via the inferior.
2642 (printf_wide_c_string): Likewise.
2644 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2646 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2648 2019-07-04 Tom Tromey <tom@tromey.com>
2651 * tui/tui-winsource.c (tui_clear_source_content): Update.
2652 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2653 (tui_update_breakpoint_info): Update.
2654 (tui_set_exec_info_content): Update.
2655 * tui/tui-source.c (tui_set_source_content_nil): Update.
2656 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2658 * tui/tui-data.h (enum tui_bp_flag): New.
2659 (tui_bp_flags): New enum flags type.
2660 (struct tui_source_element) <break_mode>: Change type. Rename
2662 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2663 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2665 * tui/tui-winsource.h: Fix comment.
2667 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2669 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2670 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2671 (store_fpregs_to_thread)
2672 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2673 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2674 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2675 (IWMMXT_REGS_SIZE): Add define.
2676 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2677 (fetch_vfp_regs, store_vfp_regs)
2678 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2679 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2681 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2683 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2685 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2686 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2687 (ARM_INT_REGISTER_SIZE): ...to this.
2688 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2689 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2690 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2691 (arm_linux_collect_gregset, supply_nwfpe_register)
2692 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2694 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2695 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2696 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2697 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2698 (arm_return_in_memory, arm_store_return_value)
2699 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2700 (arm_record_ld_st_multiple): Likewise.
2701 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2702 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2704 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2706 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2707 AARCH64_DISPLACED_MODIFIED_INSNS.
2708 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2709 (aarch64_displaced_step_copy_insn): Likewise.
2710 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2711 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2712 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2713 ARM_DISPLACED_MODIFIED_INSNS.
2714 * arm-tdep.c (arm_gdbarch_init): Likewise.
2715 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2716 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2717 (struct arm_displaced_step_closure): Use
2718 ARM_DISPLACED_MODIFIED_INSNS.
2720 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2722 * features/Makefile: Remove unused xml files.
2723 * features/aarch64.xml: Remove.
2724 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2725 * features/i386/amd64-avx-avx512.xml: Remove.
2726 * features/i386/amd64-avx-linux.xml: Remove.
2727 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2728 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2729 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2730 * features/i386/amd64-avx-mpx.xml: Remove.
2731 * features/i386/amd64-avx.xml: Remove.
2732 * features/i386/amd64-linux.xml: Remove.
2733 * features/i386/amd64-mpx-linux.xml: Remove.
2734 * features/i386/amd64-mpx.xml: Remove.
2735 * features/i386/amd64.xml: Remove.
2736 * features/i386/i386-avx-avx512-linux.xml: Remove.
2737 * features/i386/i386-avx-avx512.xml: Remove.
2738 * features/i386/i386-avx-linux.xml: Remove.
2739 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2740 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2741 * features/i386/i386-avx-mpx-linux.xml: Remove.
2742 * features/i386/i386-avx-mpx.xml: Remove.
2743 * features/i386/i386-avx.xml: Remove.
2744 * features/i386/i386-linux.xml: Remove.
2745 * features/i386/i386-mmx-linux.xml: Remove.
2746 * features/i386/i386-mmx.xml: Remove.
2747 * features/i386/i386-mpx-linux.xml: Remove.
2748 * features/i386/i386-mpx.xml: Remove.
2749 * features/i386/i386.xml: Remove.
2750 * features/i386/x32-avx-avx512-linux.xml: Remove.
2751 * features/i386/x32-avx-linux.xml: Remove.
2752 * features/i386/x32-linux.xml: Remove.
2754 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2756 * regformats/aarch64.dat: Remove.
2757 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2758 * regformats/i386/amd64-avx-linux.dat: Remove.
2759 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2760 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2761 * regformats/i386/amd64-linux.dat: Remove.
2762 * regformats/i386/amd64-mpx-linux.dat: Remove.
2763 * regformats/i386/amd64.dat: Remove.
2764 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2765 * regformats/i386/i386-avx-linux.dat: Remove.
2766 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2767 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2768 * regformats/i386/i386-linux.dat: Remove.
2769 * regformats/i386/i386-mmx-linux.dat: Remove.
2770 * regformats/i386/i386-mpx-linux.dat: Remove.
2771 * regformats/i386/i386.dat: Remove.
2772 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2773 * regformats/i386/x32-avx-linux.dat: Remove.
2774 * regformats/i386/x32-linux.dat: Remove.
2776 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2778 * aarch64-tdep.c: Remove xml self tests.
2779 * amd64-linux-tdep.c: Likewise.
2780 * amd64-tdep.c: Likewise.
2781 * i386-linux-tdep.c: Likewise.
2782 * i386-tdep.c: Likewise.
2784 2019-07-03 Pedro Alves <palves@redhat.com>
2787 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2788 (pipe_cmd_option_defs): New.
2789 (make_pipe_cmd_options_def_group): New.
2790 (pipe_command): Use gdb::option::process_options.
2791 (pipe_command_completer): New function.
2792 (_initialize_cli_cmds): Install completer for "pipe" command.
2794 2019-07-03 Pedro Alves <palves@redhat.com>
2796 * cli/cli-option.c (union option_value) <string>: New field.
2797 (struct option_def_and_value): Add ctor, move ctor, dtor and
2798 use DISABLE_COPY_AND_ASSIGN.
2799 (option_def_and_value::clear_value): New.
2800 (parse_option, save_option_value_in_ctx, get_val_type_str)
2801 (add_setshow_cmds_for_options): Handle var_string.
2802 * cli-option.h (union option_def::var_address) <string>: New
2804 (struct string_option_def): New.
2805 * maint-test-options.c (struct test_options_opts): Add default
2806 ctor and use DISABLE_COPY_AND_ASSIGN.
2807 <string_opt>: New field.
2808 (test_options_opts::~test_options_opts): New.
2809 (test_options_opts::dump): Also dump "-string".
2810 (test_options_option_defs): Install "string.
2812 2019-07-03 Pedro Alves <palves@redhat.com>
2814 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2815 option_value with a null enumeration.
2816 (complete_options): Save the option values in the context.
2817 (save_option_value_in_ctx): New, factored out from ...
2818 (process_options): ... here.
2819 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2821 * maint-test-options.c (test_options_opts::dump): New, factored
2823 (maintenance_test_options_command_mode): ... here.
2824 (maintenance_test_options_command_completion_result): Delete.
2825 (maintenance_test_options_command_completion_text): Update
2827 (maintenance_show_test_options_completion_result): Change
2828 prototype. Just print
2829 maintenance_test_options_command_completion_text.
2830 (save_completion_result): New.
2831 (maintenance_test_options_completer_mode): Pass options context to
2832 complete_options, and then save a dump.
2833 (_initialize_maint_test_options): Use add_cmd to install "maint
2834 show test-options-completion-result".
2836 2019-07-03 Pedro Alves <palves@redhat.com>
2838 * NEWS (New commands): Mention "with" and "maint with".
2839 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2840 (with_command, with_command_completer): New.
2841 (pipe_command): Adjust to new repeat_previous
2843 (_initialize_cli_cmds): Install the "with" command and its "w"
2845 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2847 * cli/cli-setshow.c (parse_cli_var_uinteger)
2848 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2849 argument strings for all var_types.
2850 (get_setshow_command_value_string): New, factored out from ...
2851 (do_show_command): ... this.
2852 * cli/cli-setshow.h: Include <string>.
2853 (get_setshow_command_value_string): Declare.
2854 * command.h (repeat_previous): Now returns const char *. Adjust
2856 * maint.c: Include "cli/cli-cmds.h".
2857 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2858 (_initialize_maint_cmds): Register the "maintenance with" command.
2859 * top.c (repeat_previous): Move bits from pipe_command here:
2860 Return the saved command line, if any; error out if there's no
2861 command to relaunch.
2863 2019-07-03 Pedro Alves <palves@redhat.com>
2865 * NEWS (New commands): Mention "maint set/show test-settings"
2866 instead of "maint test-settings".
2867 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2868 (maintenance_test_settings_set_list): Rename to ...
2869 (maintenance_set_test_settings_list): ... this.
2870 (maintenance_test_settings_show_list): Rename to ...
2871 (maintenance_show_test_settings_list): ... this.
2872 (maintenance_test_settings_cmd): Delete.
2873 (maintenance_test_settings_set_cmd): ...
2874 (maintenance_set_test_settings_cmd): ... this.
2875 (maintenance_test_settings_show_cmd): ...
2876 (maintenance_show_test_settings_cmd): ... this.
2877 (maintenance_test_settings_show_value_cmd):
2878 (maintenance_show_test_settings_value_cmd): ... this.
2879 (_initialize_maint_test_settings): No longer install the "maint
2880 test-settings" prefix command. Rename "maint test-settings set"
2881 to "maint set test-settings", and "maint test-settings show" to
2882 "maint show test-settings". Adjust all subcommands.
2884 2019-07-03 Pedro Alves <palves@redhat.com>
2886 * maint-test-settings.c: Fix file's intro comment. Replace all
2887 references to "test-options" with references to "test-settings",
2890 2019-07-03 Pedro Alves <palves@redhat.com>
2892 * maint-test-settings.c (maintenance_test_settings_xxx)
2893 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2895 (maintenance_test_settings_enums): Use them.
2896 (maintenance_test_settings_enum): Default to
2897 maintenance_test_settings_xxx.
2898 (_initialize_maint_test_settings): Initialize
2899 MAINTENANCE_TEST_SETTINGS_FILENAME.
2901 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2903 * breakpoint.h (remove_breakpoints_inf): Change return type to
2904 void, move function documentation here.
2905 * breakpoint.c (remove_breakpoints_inf): Change return type to
2906 void, move function documentation to header.
2908 2019-07-02 Pedro Alves <palves@redhat.com>
2910 * NEWS (Completion improvements): Mention "info threads".
2911 * thread.c (struct info_threads_opts, info_threads_option_defs)
2912 (make_info_threads_options_def_group): New.
2913 (info_threads_command): Use gdb::option::process_options.
2914 (info_threads_command_completer): New.
2915 (_initialize_thread): Use gdb::option::build_help to build the
2916 help text for "info threads".
2918 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2920 * defs.h (generic_load): Move from here...
2921 * symfile.h (generic_load): ... to here. Rename name parameter
2923 * symfile.c (generic_load): Add comment.
2925 2019-07-01 Tom Tromey <tromey@adacore.com>
2928 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2929 declaration of without_params. Fix formatting.
2931 2019-07-01 Tom Tromey <tromey@adacore.com>
2933 * ada-exp.y (find_primitive_type): Update.
2934 * ada-lang.h (ada_lookup_symbol): Update.
2935 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2937 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2939 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2941 PR breakpoints/24541
2942 * gdbarch.c: Regenerate.
2943 * gdbarch.h: Regenerate.
2944 * gdbarch.sh: Add 'stap_adjust_register'.
2945 * i386-tdep.c: Include '<unordered_set>'.
2946 (i386_stap_adjust_register): New function.
2947 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2948 * stap-probe.c (stap_parse_register_operand): Call
2949 'gdbarch_stap_adjust_register'.
2951 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2954 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2955 * python/python.c (do_start_initialization): Use 'xmalloc'
2956 instead of 'PyMem_Malloc'.
2958 2019-06-28 Tom Tromey <tromey@adacore.com>
2960 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2963 2019-06-27 Tom Tromey <tromey@adacore.com>
2965 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2967 (arm_find_mapping_symbol, arm_record_special_symbol)
2968 (_initialize_arm_tdep): Update.
2969 (arm_objfile_data_free): Remove.
2971 2019-06-27 Tom Tromey <tromey@adacore.com>
2973 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2974 to cp_print_static_field.
2976 2019-06-26 Tom Tromey <tromey@adacore.com>
2978 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2979 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2982 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2984 * features/aarch64-core.c (create_feature_aarch64_core):
2986 * features/aarch64-core.xml: Add cpsr flags.
2988 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2990 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2991 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2993 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2995 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2997 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2999 (arm_record_special_symbol): Don't insert new symbol in sorted
3000 position, push it at the end.
3002 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3004 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3005 (arm_mapping_symbol_s): Remove.
3006 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3007 (arm_mapping_symbol_vec): New typedef.
3008 (struct arm_per_objfile): Add constructor.
3009 <section_maps>: Change type to
3010 std::unique_ptr<arm_mapping_symbol_vec[]>.
3011 (arm_compare_mapping_symbols): Remove.
3012 (arm_find_mapping_symbol): Adjust to section_maps type change.
3013 (arm_objfile_data_free): Call delete on arm_per_objfile.
3014 (arm_record_special_symbol): Adjust to section_maps type change.
3015 Allocate arm_per_objfile with new.
3017 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3019 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3020 with the command prefix.
3022 2019-06-25 Tom Tromey <tom@tromey.com>
3024 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3025 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3027 2019-06-25 Tom Tromey <tom@tromey.com>
3029 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3031 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3034 2019-06-25 Tom Tromey <tom@tromey.com>
3036 * tui/tui-winsource.c
3037 (tui_source_window_base::set_is_exec_point_at): Add check against
3040 2019-06-25 Tom Tromey <tom@tromey.com>
3042 * tui/tui-source.c (tui_set_source_content): Don't check before
3044 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3046 2019-06-25 Tom Tromey <tom@tromey.com>
3048 * tui/tui-winsource.h (tui_update_source_window_as_is)
3049 (tui_alloc_source_buffer, tui_line_is_displayed)
3050 (tui_addr_is_displayed): Change type of win_info.
3051 * tui/tui-winsource.c (tui_update_source_window_as_is)
3052 (tui_clear_source_content, tui_show_source_line)
3053 (tui_show_source_content, tui_source_window_base::refill)
3054 (tui_source_window_base::set_is_exec_point_at)
3055 (tui_source_window_base::set_is_exec_point_at)
3056 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3057 (tui_alloc_source_buffer, tui_line_is_displayed)
3058 (tui_addr_is_displayed): Change type of win_info. Update.
3059 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3060 (tui_source_window_base::do_make_visible_with_new_height):
3062 * tui/tui-source.c (tui_set_source_content)
3063 (tui_set_source_content_nil)
3064 (tui_source_window::do_scroll_vertical): Update.
3065 * tui/tui-layout.c (show_layout): Update.
3066 * tui/tui-disasm.c (tui_set_disassem_content)
3067 (tui_disasm_window::do_scroll_vertical): Update.
3068 * tui/tui-data.h (tui_win_content): Remove.
3069 (struct tui_gen_win_info) <content, content_size>: Remove.
3070 (struct tui_source_element): Add initializers and destructor.
3071 (union tui_which_element, struct tui_win_element): Remove.
3072 (struct tui_source_window_base) <content>: New field.
3073 (struct tui_data_window): Remove destructor.
3074 (tui_alloc_content, tui_free_win_content)
3075 (tui_free_all_source_wins_content): Don't declare.
3076 * tui/tui-data.c (tui_initialize_static_data): Update.
3077 (init_content_element, tui_alloc_content): Remove.
3078 (~tui_gen_win_info): Update.
3079 (~tui_data_window, tui_free_all_source_wins_content)
3080 (tui_free_win_content, free_content, free_content_elements):
3083 2019-06-25 Tom Tromey <tom@tromey.com>
3085 * tui/tui-winsource.h (tui_clear_source_content)
3086 (tui_erase_source_content, tui_show_source_content): Change type
3088 * tui/tui-winsource.c (tui_clear_source_content)
3089 (tui_erase_source_content, tui_show_source_content): Change type
3091 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3092 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3094 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3096 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3098 2019-06-25 Tom Tromey <tom@tromey.com>
3100 * tui/tui-winsource.c (tui_clear_source_content)
3101 (tui_source_window_base::set_is_exec_point_at): Update.
3102 * tui/tui-source.c (tui_set_source_content_nil): Update.
3103 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3105 * tui/tui-data.c (init_content_element): Update.
3107 2019-06-25 Tom Tromey <tom@tromey.com>
3109 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3110 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3111 * tui/tui-layout.c (init_and_make_win): Update.
3112 * tui/tui.h (enum tui_win_type): Update.
3113 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3114 tui_win_is_auxillary.
3115 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3116 tui_win_is_auxillary.
3118 2019-06-25 Tom Tromey <tom@tromey.com>
3120 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3121 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3122 (tui_delete_data_content_windows, tui_display_all_data)
3123 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3125 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3126 * tui/tui-regs.c (tui_last_regs_line_no)
3127 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3128 (tui_show_registers): Update.
3129 (tui_show_register_group): Return void. Update.
3130 (tui_display_registers_from, tui_display_reg_element_at_line)
3131 (tui_display_registers_from_line, tui_check_register_values):
3133 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3135 (struct tui_data_window) <regs_content>: Now a std::vector.
3136 <regs_content_count>: Remove.
3137 (tui_add_content_elements, tui_free_data_content): Don't declare.
3138 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3139 (init_content_element): Remove DATA_WIN case. Add assert.
3140 (tui_add_content_elements): Remove.
3141 (tui_data_window): Update.
3142 (tui_free_data_content): Remove.
3143 (free_content_elements): Remove DATA_WIN case.
3145 2019-06-25 Tom Tromey <tom@tromey.com>
3147 * tui/tui-data.c (tui_data_item_window): Update.
3148 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3149 * tui/tui-windata.c (tui_display_all_data)
3150 (tui_display_data_from_line): Update.
3151 (tui_check_data_values): Remove.
3152 * tui/tui-regs.c (tui_show_register_group)
3153 (tui_display_reg_element_at_line): Update.
3154 * tui/tui-hooks.c (tui_register_changed)
3155 (tui_refresh_frame_and_register_information): Call
3156 tui_check_register_values.
3157 * tui/tui-data.h (struct tui_data_window) <data_content,
3158 data_content_count, data_type>: Remove.
3159 (enum tui_data_type): Remove.
3161 * tui/tui-data.c (tui_data_window::clear_detail)
3162 (~tui_data_window): Update.
3164 2019-06-25 Tom Tromey <tom@tromey.com>
3166 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3168 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3169 Rename from tui_first_data_item_displayed. Update.
3170 (tui_data_window::refresh_all)
3171 (tui_data_window::do_scroll_vertical): Update.
3172 * tui/tui-data.h (struct tui_data_window)
3173 <first_data_item_displayed>: Declare new method.
3175 2019-06-25 Tom Tromey <tom@tromey.com>
3177 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3178 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3180 (tui_initialize_static_data): ...here.
3182 2019-06-25 Tom Tromey <tom@tromey.com>
3184 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3185 (tui_display_registers_from, tui_check_register_values): Update.
3186 (tui_display_register): Remove win_info parameter; update.
3187 (tui_get_register): Change type of parameters.
3188 * tui/tui-data.h (struct tui_data_element): Remove.
3189 (union tui_which_element) <data>: Remove.
3190 <data_window>: Change type.
3191 (struct tui_data_item_window): New.
3192 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3194 (~tui_data_item_window): New destructor.
3195 (free_content_elements): Remove DATA_ITEM_WIN case.
3197 2019-06-25 Tom Tromey <tom@tromey.com>
3199 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3202 2019-06-25 Tom Tromey <tom@tromey.com>
3204 * tui/tui-data.h (struct tui_command_element): Remove.
3205 (union tui_which_element) <command>: Remove.
3206 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3208 (free_content_elements): Remove CMD_WIN case.
3210 2019-06-25 Tom Tromey <tom@tromey.com>
3212 * tui/tui-layout.c (tui_set_layout): Update.
3213 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3214 * tui/tui-data.c (layout_def): Update.
3216 2019-06-25 Tom Tromey <tom@tromey.com>
3218 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3219 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3220 (tui_source_window_base::set_new_height): Update.
3221 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3223 (tui_set_locator_fullname, tui_set_locator_info)
3224 (tui_show_frame_info): Update.
3225 * tui/tui-source.c (tui_set_source_content)
3226 (tui_source_is_displayed): Update.
3227 * tui/tui-layout.c (show_source_disasm_command, show_data)
3228 (show_source_or_disasm_and_command): Update.
3229 * tui/tui-disasm.c (tui_set_disassem_content)
3230 (tui_get_begin_asm_address): Update.
3231 * tui/tui-data.h (struct tui_locator_element): Remove.
3232 (union tui_which_element) <locator>: Remove.
3233 (struct tui_locator_window): New.
3234 (tui_locator_win_info_ptr): Change return type.
3235 * tui/tui-data.c (_locator): Change type.
3236 (tui_locator_win_info_ptr): Change return type.
3237 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3238 (tui_alloc_content): Add assert.
3240 2019-06-25 Tom Tromey <tom@tromey.com>
3242 * tui/tui-winsource.c
3243 (tui_exec_info_window::maybe_allocate_content): New method.
3244 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3245 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3246 (make_source_or_disasm_window): Add cast.
3247 * tui/tui-data.h (union tui_which_element) <simple_string>:
3249 (struct tui_source_info): New.
3250 (struct tui_source_window_base) <execution_info>: Change type.
3251 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3252 case, and add assert.
3253 (tui_alloc_content): Add assert.
3255 2019-06-25 Tom Tromey <tom@tromey.com>
3257 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3258 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3259 * tui/tui-data.c (tui_alloc_win_info): Remove.
3261 2019-06-25 Tom Tromey <tom@tromey.com>
3263 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3264 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3267 2019-06-25 Tom Tromey <tom@tromey.com>
3269 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3270 make_visible_with_new_height method.
3271 (tui_win_info::make_visible_with_new_height): New method.
3272 (tui_source_window_base::do_make_visible_with_new_height)
3273 (tui_data_window::do_make_visible_with_new_height)
3274 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3275 (make_visible_with_new_height): Remove.
3276 (tui_resize_all, tui_adjust_win_heights): Use
3277 make_visible_with_new_height method.
3278 * tui/tui-data.h (struct tui_win_info)
3279 <do_make_visible_with_new_height, make_visible_with_new_height>:
3281 (struct tui_source_window_base, struct tui_data_window)
3282 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3285 2019-06-25 Tom Tromey <tom@tromey.com>
3287 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3289 (update_tab_width): Call update_tab_width method.
3290 * tui/tui-data.h (struct tui_win_info)
3291 (struct tui_source_window_base) <update_tab_width>: New methods.
3293 2019-06-25 Tom Tromey <tom@tromey.com>
3295 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3297 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3299 (tui_gen_win_info::make_visible): Update.
3300 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3302 * tui/tui-data.h (enum tui_box): New enum.
3303 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3305 2019-06-25 Tom Tromey <tom@tromey.com>
3307 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3308 init_and_make_win for EXEC_INFO_WIN.
3309 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3311 (struct tui_win_info) <~tui_win_info>: Inline.
3312 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3314 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3315 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3317 (tui_initialize_static_data): Update.
3318 (~tui_gen_win_info): Handle more cleanup here.
3319 (~tui_source_window_base): Delete "execution_info".
3320 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3322 2019-06-25 Tom Tromey <tom@tromey.com>
3324 * tui/tui-layout.c (make_command_window): Don't set
3326 (show_source_disasm_command): Call the reset method.
3327 (show_data): Don't set can_highlight. Call the reset method.
3328 (tui_gen_win_info::reset): Rename from init_gen_win_info
3329 (init_and_make_win): Simplify. Return tui_gen_win_info.
3330 (show_source_or_disasm_and_command): Call the reset method.
3331 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3332 (struct tui_cmd_window): Set can_highlight.
3334 2019-06-25 Tom Tromey <tom@tromey.com>
3336 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3338 (tui_make_visible, tui_make_invisible): Rewrite.
3339 (tui_win_info::make_visible): Remove.
3340 (tui_source_window_base::make_visible): Update.
3341 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3342 method. Moved from...
3343 (struct tui_win_info) <make_visible>: ...here.
3345 2019-06-25 Tom Tromey <tom@tromey.com>
3347 * tui/tui-winsource.c
3348 (tui_source_window_base::do_scroll_horizontal): Remove direction
3350 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3351 direction parameter.
3352 * tui/tui-win.c (tui_win_info::forward_scroll)
3353 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3354 (tui_win_info::right_scroll): Update.
3355 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3356 direction parameter.
3357 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3358 direction parameter.
3359 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3360 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3361 Remove direction parameter.
3362 (struct tui_source_window_base, struct tui_source_window)
3363 (struct tui_disasm_window, struct tui_data_window)
3364 (struct tui_cmd_window): Update.
3366 2019-06-25 Tom Tromey <tom@tromey.com>
3368 * tui/tui-winsource.h (tui_set_exec_info_content)
3369 (tui_show_exec_info_content, tui_erase_exec_info_content)
3370 (tui_clear_exec_info_content, tui_update_exec_info): Change
3371 argument to tui_source_window_base.
3372 * tui/tui-winsource.c (tui_set_exec_info_content)
3373 (tui_show_exec_info_content, tui_erase_exec_info_content)
3374 (tui_clear_exec_info_content, tui_update_exec_info): Change
3375 argument to tui_source_window_base.
3377 2019-06-25 Tom Tromey <tom@tromey.com>
3379 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3380 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3382 2019-06-25 Tom Tromey <tom@tromey.com>
3384 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3387 2019-06-25 Tom Tromey <tom@tromey.com>
3389 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3391 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3393 * tui/tui-source.c (tui_set_source_content): Update.
3394 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3396 2019-06-25 Tom Tromey <tom@tromey.com>
3398 * tui/tui-win.c (window_name_completer, tui_set_focus)
3399 (tui_all_windows_info): Use name method.
3400 * tui/tui-data.h (struct tui_gen_win_info)
3401 (struct tui_source_window, struct tui_disasm_window)
3402 (struct tui_data_window, struct tui_cmd_window) <name>: New
3404 (tui_win_name): Don't declare.
3405 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3406 (tui_win_name): Remove.
3408 2019-06-25 Tom Tromey <tom@tromey.com>
3410 * tui/tui-winsource.h (tui_update_source_window)
3411 (tui_update_source_window_as_is): Change parameter type.
3412 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3413 to be a tui_source_window_base.
3414 (tui_update_source_window_as_is): Likewise.
3415 * tui/tui-win.c (make_visible_with_new_height): Update.
3417 2019-06-25 Tom Tromey <tom@tromey.com>
3419 * tui/tui-winsource.c (tui_erase_source_content)
3420 (tui_show_source_content, tui_show_exec_info_content)
3421 (tui_erase_exec_info_content): Use refresh_window method.
3422 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3423 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3424 from tui_refresh_win.
3425 (tui_data_window::refresh_window): New method.
3426 (tui_win_info::refresh, tui_source_window_base::refresh)
3427 (tui_refresh_all): Use refresh_window method.
3428 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3430 * tui/tui-regs.c (tui_display_register): Call refresh_window
3432 * tui/tui-layout.c (show_source_disasm_command)
3433 (show_source_or_disasm_and_command): Call refresh_window method.
3434 * tui/tui-data.h (struct tui_gen_win_info)
3435 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3438 2019-06-25 Tom Tromey <tom@tromey.com>
3440 * tui/tui.c (tui_rl_other_window, tui_enable)
3441 (tui_is_window_visible, tui_get_command_dimension): Update.
3442 * tui/tui-winsource.c (tui_update_source_window_as_is)
3443 (tui_clear_source_content, tui_erase_source_content)
3444 (tui_show_source_line, tui_source_window_base::refill)
3445 (tui_source_window_base::do_scroll_horizontal)
3446 (tui_source_window_base::set_is_exec_point_at)
3447 (tui_update_breakpoint_info, tui_set_exec_info_content)
3448 (tui_alloc_source_buffer, tui_line_is_displayed)
3449 (tui_addr_is_displayed): Update.
3450 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3451 (tui_check_and_display_highlight_if_needed)
3452 (tui_win_info::make_visible, tui_win_info::refresh)
3453 (tui_refresh_all): Update.
3454 * tui/tui-windata.c (tui_first_data_item_displayed)
3455 (tui_delete_data_content_windows, tui_erase_data_content)
3456 (tui_display_all_data, tui_data_window::refresh_all)
3457 (tui_check_data_values): Update.
3458 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3459 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3460 (tui_win_info::backward_scroll, tui_refresh_all_win)
3461 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3462 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3463 (tui_source_window_base::set_new_height)
3464 (tui_data_window::set_new_height)
3465 (make_invisible_and_set_new_height)
3466 (make_visible_with_new_height, new_height_ok)
3467 (parse_scrolling_args): Update.
3468 * tui/tui-stack.c (tui_show_frame_info): Update.
3469 * tui/tui-source.c (tui_set_source_content)
3470 (tui_set_source_content_nil, tui_source_is_displayed)
3471 (tui_source_window::do_scroll_vertical): Update.
3472 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3473 (tui_display_registers_from, tui_display_reg_element_at_line)
3474 (tui_check_register_values, tui_reg_command): Update.
3475 * tui/tui-layout.c (tui_default_win_height)
3476 (show_source_disasm_command, show_data, init_and_make_win)
3477 (show_source_or_disasm_and_command): Update.
3478 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3479 (tui_redisplay_readline, tui_mld_flush)
3480 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3482 * tui/tui-disasm.c (tui_set_disassem_content)
3483 (tui_disasm_window::do_scroll_vertical): Update.
3484 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3486 (struct tui_win_info): Derive from tui_gen_win_info.
3487 <~tui_win_info>: Mark as override.
3488 <generic>: Remove member.
3489 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3490 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3491 (~tui_data_window, ~tui_win_info)
3492 (tui_free_all_source_wins_content): Update.
3493 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3495 2019-06-25 Tom Tromey <tom@tromey.com>
3497 * tui/tui-layout.c (init_and_make_win): Use new.
3498 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3499 destructor, initializers.
3500 (tui_alloc_generic_win_info): Don't declare.
3501 * tui/tui-data.c (_locator): Add argument to constructor.
3502 (source_win, disasm_win): New globals.
3503 (exec_info): Remove.
3504 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3506 (tui_alloc_generic_win_info): Remove.
3507 (init_content_element): Use new.
3508 (tui_win_info::tui_win_info): Update.
3509 (free_content_elements) <case DATA_WIN>: Use delete.
3511 2019-06-25 Tom Tromey <tom@tromey.com>
3513 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3514 * tui/tui-windata.c (tui_first_data_item_displayed)
3515 (tui_delete_data_content_windows): Update.
3516 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3517 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3518 (tui_display_registers_from, tui_check_register_values): Update.
3519 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3521 * tui/tui-data.c (init_content_element): Update. Allocate the new
3523 (tui_free_data_content): Update.
3524 (free_content_elements) <case DATA_WIN>: Free the window.
3526 2019-06-25 Tom Tromey <tom@tromey.com>
3528 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3530 * tui/tui-layout.c (make_command_window)
3531 (show_source_disasm_command, show_data, init_and_make_win)
3532 (show_source_or_disasm_and_command): Update.
3533 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3535 <can_highight, is_highlighted>: Now bool.
3536 (tui_set_win_highlight): Don't declare.
3537 * tui/tui-data.c (tui_set_win_highlight): Remove.
3539 2019-06-25 Tom Tromey <tom@tromey.com>
3541 * tui/tui-wingeneral.c (make_visible): Remove check of window
3544 2019-06-25 Tom Tromey <tom@tromey.com>
3546 * tui/tui-win.c (tui_win_info::max_height)
3547 (tui_cmd_window::max_height): New methods.
3548 (new_height_ok): Call max_height.
3549 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3550 <max_height>: New method.
3552 2019-06-25 Tom Tromey <tom@tromey.com>
3554 * tui/tui-win.c (tui_source_window_base::set_new_height)
3555 (tui_data_window::set_new_height): New methods.
3556 (make_invisible_and_set_new_height): Call set_new_height method.
3557 * tui/tui-data.h (struct tui_win_info)
3558 (struct tui_source_window_base, struct tui_data_window)
3559 <set_new_height>: New method.
3561 2019-06-25 Tom Tromey <tom@tromey.com>
3563 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3564 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3565 tui_refresh_data_win.
3566 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3568 (tui_refresh_all_win): Call the refresh_all method.
3569 (tui_set_focus): Likewise.
3570 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3571 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3574 2019-06-25 Tom Tromey <tom@tromey.com>
3576 * tui/tui-winsource.h (tui_refill_source_window)
3577 (tui_set_is_exec_point_at): Don't declare.
3578 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3579 (tui_source_window_base::refill): Rename from
3580 tui_refill_source_window.
3581 (tui_source_window_base::do_scroll_horizontal): Update.
3582 (tui_source_window_base::set_is_exec_point_at): Rename from
3583 tui_set_is_exec_point_at.
3584 (tui_update_all_breakpoint_info): Update.
3585 * tui/tui-stack.c (tui_show_frame_info): Update.
3586 * tui/tui-layout.c (show_data): Add cast.
3587 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3588 * tui/tui-data.h (struct tui_source_window_base) <refill,
3589 set_is_exec_point_at>: New methods.
3590 (tui_source_windows, tui_add_to_source_windows): Update types.
3591 (tui_add_to_source_windows): Remove redundant declaration.
3592 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3593 (tui_source_windows): Change return type.
3594 (tui_clear_source_windows_detail): Update.
3595 (tui_add_to_source_windows): Change type of parameter.
3596 (tui_free_all_source_wins_content): Update.
3598 2019-06-25 Tom Tromey <tom@tromey.com>
3600 * tui/tui-wingeneral.c (tui_win_info::refresh)
3601 (tui_source_window_base::refresh): New methods.
3602 (tui_refresh_all): Call the refresh method.
3603 * tui/tui-data.h (struct tui_win_info)
3604 (struct tui_source_window_base) <refresh>: New method.
3606 2019-06-25 Tom Tromey <tom@tromey.com>
3608 * tui/tui.h (tui_is_window_visible): Return bool.
3609 * tui/tui.c (tui_is_window_visible): Return bool.
3610 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3611 (tui_make_visible, tui_make_invisible)
3612 (tui_win_info::make_visible)
3613 (tui_source_window_base::make_visible, make_all_visible)
3614 (tui_make_all_visible, tui_make_all_invisible): Update.
3615 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3616 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3618 (struct tui_win_info, struct tui_source_window_base)
3619 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3620 * tui/tui-data.c (tui_init_generic_part): Update.
3622 2019-06-25 Tom Tromey <tom@tromey.com>
3624 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3625 (tui_source_window_base::make_visible): New methods.
3626 (make_all_visible): Make method call.
3627 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3628 (struct tui_source_window_base, struct tui_cmd_window): Override
3630 (tui_win_is_source_type): Don't declare.
3631 * tui/tui-data.c (tui_win_is_source_type): Remove.
3633 2019-06-25 Tom Tromey <tom@tromey.com>
3635 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3638 2019-06-25 Tom Tromey <tom@tromey.com>
3640 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3641 Inline constructor. Add initializers for members.
3642 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3643 constructors; now inline in class.
3645 2019-06-25 Tom Tromey <tom@tromey.com>
3647 * tui/tui-regs.c (tui_show_registers): Update.
3648 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3650 * tui/tui-data.c (tui_data_window::clear_detail)
3651 (tui_data_window): Update.
3653 2019-06-25 Tom Tromey <tom@tromey.com>
3655 * tui/tui-windata.c (tui_display_all_data)
3656 (tui_display_data_from_line, tui_display_data_from)
3657 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3659 * tui/tui-regs.c (tui_last_regs_line_no)
3660 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3661 (tui_show_registers, tui_show_register_group)
3662 (tui_display_registers_from, tui_display_reg_element_at_line)
3663 (tui_display_registers_from_line, tui_check_register_values)
3664 (tui_reg_next, tui_reg_prev): Update.
3665 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3666 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3668 (struct tui_win_info) <detail>: Remove. Add new fields from
3670 (TUI_DATA_WIN): Add cast.
3671 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3672 (~tui_data_window): Simplify.
3674 2019-06-25 Tom Tromey <tom@tromey.com>
3676 * tui/tui-layout.c (show_source_disasm_command)
3677 (show_source_or_disasm_and_command): Update.
3678 * tui/tui-io.c (update_cmdwin_start_line)
3679 (tui_redisplay_readline): Update.
3680 * tui/tui-data.h (struct tui_command_info): Remove.
3681 (struct tui_win_info) <detail>: Remove command_info member.
3682 (struct tui_data_window) <start_line>: New member, from
3684 (TUI_CMD_WIN): Add casts.
3686 2019-06-25 Tom Tromey <tom@tromey.com>
3688 * tui/tui-winsource.c (tui_update_source_window)
3689 (tui_refill_source_window)
3690 (tui_source_window_base::do_scroll_horizontal)
3691 (tui_update_breakpoint_info, tui_set_exec_info_content)
3692 (tui_show_exec_info_content, tui_erase_exec_info_content)
3693 (tui_clear_exec_info_content): Update.
3694 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3696 * tui/tui-win.c (make_invisible_and_set_new_height)
3697 (make_visible_with_new_height): Update.
3698 * tui/tui-source.c (tui_set_source_content)
3699 (tui_show_symtab_source): Update.
3700 * tui/tui-layout.c (extract_display_start_addr)
3701 (show_source_disasm_command, show_data)
3702 (make_source_or_disasm_window)
3703 (show_source_or_disasm_and_command): Update.
3704 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3705 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3707 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3708 to tui_source_window_base.
3709 (struct tui_win_info) <detail>: Remove source_info member.
3710 (struct tui_source_window_base) <has_locator>: Inline.
3711 Move contents from tui_source_info; rename has_locator member to
3713 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3714 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3716 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3718 (tui_free_all_source_wins_content): Cast to
3719 tui_source_window_base.
3721 2019-06-25 Tom Tromey <tom@tromey.com>
3723 * tui/tui-win.c (make_invisible_and_set_new_height)
3724 (make_visible_with_new_height): Call has_locator method.
3725 * tui/tui-layout.c (show_source_disasm_command, show_data)
3726 (show_source_or_disasm_and_command): Update for bool change.
3727 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3728 (tui_win_info) <has_locator>: New method.
3729 (struct tui_source_window_base) <has_locator>: New method.
3730 (tui_win_has_locator): Don't declare.
3731 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3732 from tui_win_has_locator.
3733 (tui_source_window_base): Use false, not FALSE.
3735 2019-06-25 Tom Tromey <tom@tromey.com>
3737 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3738 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3739 clear_detail method directly.
3740 (tui_clear_win_detail): Remove.
3742 2019-06-25 Tom Tromey <tom@tromey.com>
3744 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3745 "this", not TUI_DISASM_WIN.
3747 2019-06-25 Tom Tromey <tom@tromey.com>
3749 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3751 * tui/tui-winsource.c
3752 (tui_source_window_base::do_scroll_horizontal): Rename from
3753 tui_horizontal_source_scroll.
3754 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3755 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3756 from tui_vertical_data_scroll.
3757 * tui/tui-win.h (tui_scroll): Don't declare.
3758 * tui/tui-win.c (tui_win_info::forward_scroll)
3759 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3760 (tui_win_info::right_scroll): Rename and update.
3761 (tui_scroll_forward_command, tui_scroll_backward_command)
3762 (tui_scroll_left_command, tui_scroll_right_command): Update.
3763 (tui_scroll): Remove.
3764 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3765 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3766 from tui_vertical_source_scroll.
3767 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3768 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3769 from tui_vertical_disassem_scroll.
3770 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3771 do_scroll_horizontal>: New methods.
3772 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3774 (struct tui_source_window_base): Add do_scroll_horizontal.
3775 (struct tui_source_window, struct tui_disasm_window): Add
3777 (struct tui_data_window, struct tui_cmd_window): Add
3778 do_scroll_horizontal and do_scroll_vertical.
3779 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3781 2019-06-25 Tom Tromey <tom@tromey.com>
3783 * tui/tui-data.h (struct tui_source_window_base): New struct.
3784 (struct tui_source_window): Derive from tui_source_window_base.
3785 (struct tui_disasm_window): New struct.
3786 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3787 from tui_source_window::clear_detail.
3788 (tui_source_window_base): Rename from tui_source_window.
3789 (~tui_source_window_base): Rename from ~tui_source_window.
3790 (tui_alloc_win_info): Create a tui_disasm_window.
3792 2019-06-25 Tom Tromey <tom@tromey.com>
3794 * tui/tui-data.h (struct tui_source_window)
3795 (struct tui_data_window): Declare destructors.
3796 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3798 (tui_win_info): Simplify.
3800 2019-06-25 Tom Tromey <tom@tromey.com>
3802 * tui/tui-winsource.c (tui_display_main)
3803 (tui_update_source_windows_with_addr)
3804 (tui_update_all_breakpoint_info): Update.
3805 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3806 (new_height_ok, parse_scrolling_args): Update.
3807 * tui/tui-stack.c (tui_show_frame_info): Update.
3808 * tui/tui-data.h (struct tui_list): Remove.
3809 (tui_source_windows): Return a reference to a std::vector.
3810 * tui/tui-data.c (source_windows): Now a std::vector.
3811 (tui_source_windows): Change return type.
3812 (tui_clear_source_windows): Rewrite.
3813 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3814 (tui_free_all_source_wins_content): Rewrite.
3816 2019-06-25 Tom Tromey <tom@tromey.com>
3818 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3819 (struct tui_data_window, struct tui_cmd_window): Declare
3820 clear_detail method.
3821 * tui/tui-data.c (tui_source_window::clear_detail)
3822 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3824 (tui_clear_win_detail): Simplify.
3826 2019-06-25 Tom Tromey <tom@tromey.com>
3828 * tui/tui-layout.c (make_source_window, make_disasm_window)
3829 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3830 Return the new window.
3831 (show_source_disasm_command, show_data)
3832 (show_source_or_disasm_and_command): Update.
3834 2019-06-25 Tom Tromey <tom@tromey.com>
3836 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3837 parameter. Return the new window.
3838 (show_source_disasm_command): Update and remove NULL check.
3839 (show_source_or_disasm_and_command): Update.
3841 2019-06-25 Tom Tromey <tom@tromey.com>
3843 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3845 2019-06-25 Tom Tromey <tom@tromey.com>
3847 * tui/tui-data.h (struct tui_win_info): Make constructor
3848 protected. Make destructor virtual. Add initializers.
3849 (tui_source_window, tui_data_window, tui_cmd_window): New
3851 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3852 constructor. Add "type" parameter.
3853 (tui_source_window, tui_data_window, tui_cmd_window): New
3855 (tui_alloc_win_info): Instantiate the appropriate subclass.
3857 2019-06-25 Tom Tromey <tom@tromey.com>
3859 * tui/tui-win.c (tui_resize_all): Use delete.
3860 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3862 (tui_free_window): Don't declare.
3863 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3866 2019-06-25 Tom Tromey <tom@tromey.com>
3868 * tui/tui-data.h (struct tui_win_info): Add constructor.
3869 * tui/tui-data.c (tui_alloc_win_info): Use new.
3870 (tui_free_window): Use delete.
3872 2019-06-22 Tom Tromey <tom@tromey.com>
3874 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3876 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3878 2019-06-22 Tom Tromey <tom@tromey.com>
3880 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3882 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3884 2019-06-22 Tom de Vries <tdevries@suse.de>
3886 * dwarf2read.c (create_addrmap_from_aranges)
3887 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3890 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
3892 * dwarf2read.h (dwarf2_section_info_def): Remove.
3893 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3894 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3895 std::vector<dwarf2_section_info>.
3896 (struct dwo_file) <~dwo_file>: Remove.
3897 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3899 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3900 (dwarf2_read_debug_names): Likewise.
3901 (create_debug_types_hash_table): Change parameter type to
3902 array_view, adjust code accordingly.
3903 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3904 (partial_die_info::fixup): Likewise.
3905 (determine_prefix): Likewise.
3906 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3908 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3910 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3912 <~dwo_file>: Remove call to gdb_bfd_unref.
3913 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3914 gdb_bfd_ref_ptr::get.
3916 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3918 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3920 * dwarf2read.c (struct dwo_file): Initialize fields.
3922 (free_dwo_file): Remove, move content to ~dwo_file.
3923 (struct dwo_file_deleter): Remove.
3924 (dwo_file_up>: Remove custom deleter.
3925 (free_dwo_files): Remove.
3926 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3928 (process_skeletonless_type_units): Call unique_ptr::get.
3929 (allocate_dwo_file_hash_table): Add deleter to created hash
3930 table. Change return type to htab_up.
3931 (lookup_dwo_file_slot): Don't memset dwo_file, call
3933 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3934 (create_dwo_unit_in_dwp_v2): Likewise.
3935 (open_and_init_dwo_file): Likewise.
3936 (free_dwo_file_from_slot): Remove.
3938 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3940 * dwarf2read.h (struct dwarf2_section_info) <readin,
3941 is_virtual>: Change type to bool.
3942 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3945 2019-06-19 Tom Tromey <tom@tromey.com>
3947 * tui/tui-data.h (tui_init_content_element): Don't declare.
3949 2019-06-19 Tom Tromey <tom@tromey.com>
3951 * tui/tui-data.h (tui_init_win_info): Don't declare.
3953 2019-06-19 Tom de Vries <tdevries@suse.de>
3955 * dwarf2read.h (abstract_to_concrete): Change type to
3956 std::unordered_map<sect_offset, std::vector<sect_offset>,
3957 gdb::hash_enum<sect_offset>>.
3959 2019-06-19 Tom Tromey <tromey@adacore.com>
3961 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3962 EVAL_AVOID_SIDE_EFFECTS specially.
3964 2019-06-19 Tom Tromey <tromey@adacore.com>
3966 * source-cache.c (highlighter): New global.
3967 (source_cache::get_source_lines): Create a highlighter on demand.
3969 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3971 * defs.h (deprecated_interactive_hook): Delete declaration.
3972 * interps.c (clear_interpreter_hooks): Remove use of
3973 deprecated_interactive_hook.
3974 * top.c (deprecated_interactive_hook): Delete definition.
3975 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3977 2019-06-18 Tom de Vries <tdevries@suse.de>
3980 * dwarf2read.h (abstract_to_concrete): Change type from
3981 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3982 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3983 * dwarf2read.c (read_variable): Update.
3984 (dwarf2_fetch_die_loc_sect_off): Update.
3986 2019-06-17 Tom de Vries <tdevries@suse.de>
3989 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3990 accessing parent[parent_len - 1].
3992 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3995 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3996 call dtrace_process_dof with NULL dof.
3998 2019-06-16 Tom de Vries <tdevries@suse.de>
4001 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4003 2019-06-16 Tom Tromey <tom@tromey.com>
4005 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4006 (make_all_visible): Use address of member.
4008 2019-06-16 Tom Tromey <tom@tromey.com>
4010 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4011 (tui_free_window, free_content, free_content_elements): Remove
4013 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4015 * tui/tui-regs.c (tui_show_register_group)
4016 (tui_display_registers_from, tui_display_reg_element_at_line):
4017 Remove unnecessary cast.
4019 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4021 * linux-nat.c (normal_mask): Delete.
4022 (_initialize_linux_nat): Don't initialise normal_mask.
4024 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4027 * dwarf-index-write.h (write_psymtabs_to_index): Add
4028 dwz_basename parameter.
4029 * dwarf-index-write.c (write_gdbindex): Move file writing to
4030 write_gdbindex_1. Change return type void.
4031 (assert_file_size): Move up, remove filename parameter.
4032 (write_gdbindex_1): New function.
4033 (write_debug_names): Change return type to void, call
4035 (struct index_wip_file): New struct.
4036 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4037 file logic to index_wip_file. Write index for dwz file if
4039 (save_gdb_index_command): Pass basename of dwz file, if present.
4040 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4041 build-id of dwz file, if present.
4042 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4043 (dwarf2_get_dwz_file): Likewise.
4044 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4045 (dwarf2_get_dwz_file): Likewise.
4047 2019-06-16 Tom Tromey <tom@tromey.com>
4049 * coffread.c (process_coff_symbol): Use xstrdup.
4050 * value.c (create_internalvar): Use xstrdup.
4052 2019-06-16 Tom Tromey <tom@tromey.com>
4054 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4055 * breakpoint.c (stopin_command, stopat_command)
4056 (until_break_command, decode_location_default): Remove unnecessary
4058 * utils.c (subset_compare): Remove unnecessary cast.
4059 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4061 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4063 * infcmd.c (path_command): Remove unnecessary cast.
4064 * coffread.c (decode_type): Remove unnecessary cast.
4065 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4066 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4067 * tui/tui-stack.c (tui_show_locator_content)
4068 (tui_show_frame_info): Remove unnecessary cast.
4069 * tui/tui-win.c (tui_scroll_forward_command)
4070 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4071 (parse_scrolling_args): Remove unnecessary cast.
4072 * tui/tui-data.c (init_win_info, tui_del_window)
4073 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4074 (free_content_elements): Remove unnecessary cast.
4075 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4077 * tui/tui-source.c (tui_set_source_content)
4078 (tui_vertical_source_scroll): Remove unnecessary cast.
4079 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4081 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4082 * tui/tui-regs.c (tui_display_registers_from)
4083 (tui_display_register): Remove unnecessary cast.
4084 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4085 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4086 (make_visible): Remove unnecessary cast.
4087 * tui/tui-winsource.c (tui_erase_source_content)
4088 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4090 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4091 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4092 * stabsread.c (read_type, read_array_type, read_range_type):
4093 Remove unnecessary cast.
4094 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4095 (parse_symbol, parse_type, upgrade_type, parse_external)
4096 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4098 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4100 2019-06-16 Tom Tromey <tom@tromey.com>
4102 * tui/tui-data.c (tui_alloc_generic_win_info)
4103 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4106 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4107 Andrew Burgess <andrew.burgess@embecosm.com>
4109 * f-typeprint.c (f_print_type): Don't return early for not
4110 associated or not allocated types.
4111 (f_type_print_varspec_suffix): Add print_rank parameter and print
4112 ranks of array types in case they dangling.
4113 (f_type_print_base): Add print_rank parameter.
4115 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4117 * NEWS: Mention new MI commands.
4118 * break-catch-throw.c (enum exception_event_kind): Move to
4120 (print_mention_exception_catchpoint): Output text as a single
4122 (catch_exception_command_1): Rename to...
4123 (catch_exception_event): ...this, make non-static, update header
4124 command, and change some parameter types.
4125 (catch_catch_command): Update for changes to
4126 catch_exception_command_1.
4127 (catch_throw_command): Likewise.
4128 (catch_rethrow_command): Likewise.
4129 * breakpoint.c (enum exception_event_kind): Delete.
4130 * breakpoint.h (enum exception_event_kind): Moved here from
4131 break-catch-throw.c.
4132 (catch_exception_event): Declare.
4133 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4134 (mi_cmd_catch_throw): New function.
4135 (mi_cmd_catch_rethrow): New function.
4136 (mi_cmd_catch_catch): New function.
4137 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4138 'catch-catch' entries.
4139 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4140 (mi_cmd_catch_rethrow): Declare.
4141 (mi_cmd_catch_catch): Declare.
4143 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4145 * annotate.c (annotate_source_line): Change return type to void,
4146 update implementation to match.
4147 * annotate.h (annotate_source_line): Change return type to void,
4148 update header comment.
4149 * stack.c (print_frame_info): Don't change what frame information
4150 is printed based on whether annotations are on or not.
4152 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4154 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4155 (annotate_source): Make static.
4156 (annotate_source_line): Moved from source.c and renamed from
4157 identify_source_line. Update the return type.
4158 * annotate.h (annotate_source): Delete declaration.
4159 (annotate_source_line): Declaration moved from source.h, and
4160 renamed from identify_source_line. Return type updated.
4161 * source.c (identify_source_line): Moved to annotate.c and renamed
4162 to annotate_source_line.
4163 (info_line_command): Remove check of annotation_level.
4164 * source.h (identify_source_line): Move declaration to annotate.h
4165 and rename to annotate_source_line.
4166 * stack.c: Add 'annotate.h' include.
4167 (print_frame_info): Remove check of annotation_level before
4168 calling annotate_source_line.
4170 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4172 * source-cache.c (source_cache::get_plain_source_lines): Use
4173 open_source_file_with_line_charpos instead of just
4174 open_source_file, remove call to find_source_lines.
4175 (source_cache::get_source_lines): Likewise.
4176 * source.c (find_source_lines): Make static.
4177 (get_filename_and_charpos): Renamed into...
4178 (open_source_file_with_line_charpos): ..this along with changes to
4179 return a scoped_fd, and some other minor clean ups.
4180 (identify_source_line): Use open_source_file_with_line_charpos.
4181 (search_command_helper): Use open_source_file_with_line_charpos
4182 instead of just open_source_file, remove call to
4184 * source.h (open_source_file_with_line_charpos): Declare new
4186 (find_source_lines): Delete declaration.
4188 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4190 * source.c (get_filename_and_charpos): Remove fullname
4192 (identify_source_line): Update call to get_filename_and_charpos.
4194 2019-06-14 Tom Tromey <tromey@adacore.com>
4197 * ui-style.h (skip_ansi_escape): Update comment.
4198 * ui-file.h (class no_terminal_escape_file): New class.
4199 * ui-file.c (no_terminal_escape_file::write)
4200 (no_terminal_escape_file::puts): New methods.
4201 * cli/cli-logging.c (handle_redirections): Use
4202 no_terminal_escape_file.
4204 2019-06-14 Tom Tromey <tromey@adacore.com>
4206 * NEWS: Move convenience variable news above Python news.
4208 2019-06-14 Tom Tromey <tom@tromey.com>
4210 * gnulib: Move directory to top-level.
4211 * configure.ac: Don't configure gnulib.
4212 * configure: Rebuild.
4213 * common/common-defs.h: Use new path to gnulib.
4214 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4216 (INCGNU): Look in new gnulib location.
4217 (HFILES_NO_SRCDIR): Remove gnulib files.
4218 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4219 (generated_files): Remove GNULIB_H.
4220 ($(LIBGNU), all-lib): Remove targets.
4221 (distclean): Don't mention GNULIB_BUILDDIR.
4222 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4224 2019-06-14 Tom Tromey <tromey@adacore.com>
4226 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4227 Warn if symbol file does not provide any symbols.
4229 2019-06-14 Tom Tromey <tromey@adacore.com>
4231 * source.c (find_and_open_source): Respect basenames_may_differ.
4233 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4235 * annotate.c (annotate_breakpoints_invalid): Make use of
4236 scoped_restore_terminal_state.
4237 (annotate_frames_invalid): Likewise.
4239 2019-06-14 Tom Tromey <tromey@adacore.com>
4241 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4242 allow assignment to an internalvar.
4244 2019-06-14 Tom Tromey <tromey@adacore.com>
4246 * ada-lex.l: Allow "_" in attribute names.
4248 2019-06-14 Tom Tromey <tromey@adacore.com>
4251 * regcache.c (registers_changed): Don't call alloca.
4252 * top.c (execute_command): Don't call alloca.
4254 2019-06-13 Pedro Alves <palves@redhat.com>
4256 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4257 'expression'. When parsing an expression, error out if there's
4258 junk after "unlimited".
4259 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4260 (do_set_command): Adjust calls to is_unlimited_literal.
4262 2019-06-13 Pedro Alves <palves@redhat.com>
4264 * compile/compile.c (make_compile_options_def_group): Add braces
4265 around array_view initializer.
4266 * thread.c (make_thread_apply_all_options_def_group)
4267 (make_thread_apply_all_options_def_group): Likewise.
4269 2019-06-13 Pedro Alves <palves@redhat.com>
4271 * NEWS (New commands): Mention "maint test-options
4272 require-delimiter", "maint test-options unknown-is-error", "maint
4273 test-options unknown-is-operand" and "maint show
4274 test-options-completion-result".
4275 (New command options, command completion): New section.
4276 (Completion improvements): New section.
4277 Mention that you can abbreviate "unlimited".
4279 2019-06-13 Pedro Alves <palves@redhat.com>
4281 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4282 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4283 * unittests/cli-utils-selftests.c (test_parse_flags)
4284 (test_parse_flags_qcs): Delete.
4285 (test_cli_utils): Don't call deleted functions.
4287 2019-06-13 Pedro Alves <palves@redhat.com>
4289 * thread.c: Include "cli/cli-option.h".
4290 (tp_array_compar_ascending): Global.
4291 (tp_array_compar): Delete function.
4292 (tp_array_compar_ascending, tp_array_compar_descending): New
4294 (ascending_option_def, qcs_flag_option_def)
4295 (thr_qcs_flags_option_defs)
4296 (make_thread_apply_all_options_def_group)
4297 (make_thread_apply_options_def_group): New.
4298 (thread_apply_all_command): Use gdb::option::process_options.
4299 (thread_apply_command_completer)
4300 (thread_apply_all_command_completer): New.
4301 (thread_apply_command): Use gdb::option::process_options.
4302 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4303 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4304 to generate help text of "thread apply". Adjust "taas"'s help.
4305 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4306 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4308 2019-06-13 Pedro Alves <palves@redhat.com>
4310 * thread.c (thread_apply_command): Check for invalid TID with
4311 isdigit instead of !isalpha.
4313 2019-06-13 Pedro Alves <palves@redhat.com>
4315 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4316 (validate_flags_qcs): New.
4317 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4318 (validate_flags_qcs): Declare.
4319 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4320 (make_frame_apply_options_def_group): New.
4321 (frame_apply_command_count): Process options with
4322 gdb::option::process_options.
4323 (frame_apply_completer): New.
4324 (frame_apply_level_completer, frame_apply_all_completer)
4325 (frame_apply_completer): New.
4326 (_initialize_stack): Update help of "frame apply", "frame apply
4327 level", "frame apply all" and "faas" to mention supported options
4328 and install command completers.
4329 * stack.h (frame_apply_all_completer): Declare.
4330 * thread.c: Include "stack.h".
4331 (tfaas_command): Add "--".
4332 (_initialize_thread): Update help "tfaas" to mention supported
4333 options and install command completer.
4335 2019-06-13 Pedro Alves <palves@redhat.com>
4337 * completer.c (complete_nested_command_line): New.
4338 (gdb_completion_word_break_characters_throw): Add assertion.
4339 * completer.h (complete_nested_command_line): Declare.
4341 2019-06-13 Pedro Alves <palves@redhat.com>
4343 * stack.c (parse_backtrace_qualifiers): New.
4344 (backtrace_command): Use it.
4345 (backtrace_command_completer): Complete on qualifiers.
4347 2019-06-13 Pedro Alves <palves@redhat.com>
4349 * frame.c: Include "cli/cli-option.h.
4350 (user_set_backtrace_options): New.
4351 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4353 (get_prev_frame): Adjust.
4354 (boolean_option_def, uinteger_option_def)
4355 (set_backtrace_option_defs): New.
4356 (_initialize_frame): Adjust and use
4357 gdb::option::add_setshow_cmds_for_options to install "set
4358 backtrace past-main" and "set backtrace past-entry".
4359 * frame.h: Include "cli/cli-option.h".
4360 (struct frame_print_options): Forward declare.
4361 (print_frame_arguments_all, print_frame_arguments_scalars)
4362 (print_frame_arguments_none): Declare.
4363 (print_entry_values): Delete declaration.
4364 (struct frame_print_options, user_frame_print_options): New.
4365 (struct set_backtrace_options): New.
4366 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4367 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4368 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4369 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4370 (list_args_or_locals): Add frame_print_options parameter.
4371 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4372 * python/py-framefilter.c (enumerate_args): Pass down
4373 USER_FRAME_PRINT_OPTIONS.
4374 * stack.c: Include "cli/cli-option.h".
4375 (print_frame_arguments_all, print_frame_arguments_scalars)
4376 (print_frame_arguments_none): Declare.
4377 (print_raw_frame_arguments, print_entry_values): Delete.
4378 (user_frame_print_options): New.
4379 (boolean_option_def, enum_option_def, frame_print_option_defs):
4381 (struct backtrace_cmd_options): New.
4382 (bt_flag_option_def): New.
4383 (backtrace_command_option_defs): New.
4384 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4385 (print_frame_arg, read_frame_arg, print_frame_args)
4386 (print_frame_info, print_frame): Add frame_print_options parameter
4388 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4389 (backtrace_command_1): Add frame_print_options and
4390 backtrace_cmd_options parameters and use them.
4391 (make_backtrace_options_def_group): New.
4392 (backtrace_command): Process command options with
4393 gdb::option::process_options.
4394 (backtrace_command_completer): New.
4395 (_initialize_stack): Extend "backtrace"'s help to mention
4396 supported options. Install completer for "backtrace".
4397 Install some settings commands with add_setshow_cmds_for_options.
4399 2019-06-13 Pedro Alves <palves@redhat.com>
4401 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4402 and that "set/show print raw frame-arguments" are now deprecated.
4404 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4406 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4407 * stack.c (_initialize_stack): Install "set/show print
4408 raw-frame-arguments", and deprecate "set/show print raw
4410 * valprint.c (_initialize_valprint): Deprecate "set/show print
4413 2019-06-13 Pedro Alves <palves@redhat.com>
4415 * compile/compile.c (struct compile_options): New.
4416 (compile_flag_option_def, compile_command_option_defs)
4417 (make_compile_options_def_group): New.
4418 (compile_file_command): Handle options with
4419 gdb::option::process_options.
4420 (compile_file_command_completer): New function.
4421 (compile_code_command): Handle options with
4422 gdb::option::process_options.
4423 (compile_code_command_completer): New function.
4424 (_initialize_compiler): Install completers for "compile code" and
4425 "compile file". Mention available options in "compile code" and
4426 "compile code"'s help.
4427 * completer.c (advance_to_completion_word): New, factored out from
4429 (advance_to_expression_complete_word_point): ... this.
4430 (advance_to_filename_complete_word_point): New.
4431 * completer.h (advance_to_filename_complete_word_point): New
4434 2019-06-13 Pedro Alves <palves@redhat.com>
4436 * compile/compile.c: Include "cli/cli-option.h".
4437 (compile_print_value): Scope data pointer is now a
4438 value_print_options pointer; adjust.
4439 (compile_print_command): Process options. Scope data pointer is
4440 now a value_print_options pointer; adjust.
4441 (_initialize_compile): Update "compile print"'s help to include
4442 supported options. Install a completer for "compile print".
4443 * cp-valprint.c (show_vtblprint, show_objectprint)
4444 (show_static_field_print): Delete.
4445 (_initialize_cp_valprint): Don't install "set print
4446 static-members", "set print vtbl", "set print object" here.
4447 * printcmd.c: Include "cli/cli-option.h" and
4448 "common/gdb_optional.h".
4449 (print_command_parse_format): Rework to fill in a
4450 value_print_options instead of a format_data.
4451 (print_value): Change parameter type from format_data pointer to
4452 value_print_options reference. Adjust.
4453 (print_command_1): Process options. Adjust to pass down a
4454 value_print_options.
4455 (print_command_completer): New.
4456 (_initialize_printcmd): Install print_command_completer as
4457 handle_brkchars completer for the "print" command. Update
4458 "print"'s help to include supported options.
4459 * valprint.c: Include "cli/cli-option.h".
4460 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4461 here from cp-valprint.c.
4462 (boolean_option_def, uinteger_option_def)
4463 (value_print_option_defs, make_value_print_options_def_group):
4464 New. Use gdb::option::add_setshow_cmds_for_options to install
4465 "set print elements", "set print null-stop", "set print repeats",
4466 "set print pretty", "set print union", "set print array", "set
4467 print address", "set print symbol", "set print array-indexes".
4468 * valprint.h: Include <string> and "cli/cli-option.h".
4469 (make_value_print_options_def_group): Declare.
4470 (print_value): Change parameter type from format_data pointer to
4471 value_print_options reference.
4472 (print_command_completer): Declare.
4474 2019-06-13 Pedro Alves <palves@redhat.com>
4476 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4477 (COMMON_SFILES): Add maint-test-settings.c.
4478 * cli/cli-decode.c (boolean_enums): New global, factored out from
4480 (add_setshow_boolean_cmd): ... here.
4481 * cli/cli-decode.h (boolean_enums): Declare.
4482 * cli/cli-option.c: New file.
4483 * cli/cli-option.h: New file.
4484 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4485 factored out from ...
4486 (parse_cli_boolean_value(const char *)): ... this.
4487 (is_unlimited_literal): Change parameter type to pointer to
4488 pointer. Adjust and advance ARG pointer.
4489 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4490 (parse_cli_var_enum): New, factored out from ...
4491 (do_set_command): ... this. Adjust.
4492 * cli/cli-setshow.h (parse_cli_boolean_value)
4493 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4494 (parse_cli_var_enum): Declare.
4495 * cli/cli-utils.c: Include "cli/cli-option.h".
4496 (get_ulongest): New.
4497 * cli/cli-utils.h (get_ulongest): Declare.
4498 (check_for_argument): New overloads.
4499 * maint-test-options.c: New file.
4501 2019-06-13 Pedro Alves <palves@redhat.com>
4503 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4504 parse a range if "-" is at the end of the string.
4506 2019-06-13 Pedro Alves <palves@redhat.com>
4508 * cli/cli-setshow.c (parse_auto_binary_operation)
4509 (parse_cli_boolean_value): Don't allow "o".
4511 2019-06-13 Pedro Alves <palves@redhat.com>
4513 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4514 * NEWS: Mention maint test-settings KIND.
4515 * maint-test-settings.c: New file.
4517 2019-06-13 Pedro Alves <palves@redhat.com>
4519 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4521 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4524 2019-06-13 Pedro Alves <palves@redhat.com>
4526 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4529 2019-06-13 Pedro Alves <palves@redhat.com>
4531 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4533 2019-06-13 Pedro Alves <palves@redhat.com>
4535 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4536 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4538 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4539 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4541 (check_for_argument): Skip spaces after argument.
4543 2019-06-13 Pedro Alves <palves@redhat.com>
4545 * thread.c (thread_apply_command): Adjust TID parsing.
4546 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4547 detected before end of string.
4548 (tid_is_in_list): Error out if LIST is invalid.
4550 2019-06-13 Pedro Alves <palves@redhat.com>
4552 * completer.c (complete_line_internal_1): Rewind completion word
4554 (completion_tracker::advance_custom_word_point_by): Change
4555 parameter type to int.
4556 * completer.h (completion_tracker::advance_custom_word_point_by):
4559 2019-06-13 Pedro Alves <palves@redhat.com>
4561 * completer.c (advance_to_completion_word): Handle delimiters.
4563 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4565 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4567 2019-06-11 Tom Tromey <tom@tromey.com>
4569 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4570 (xmalloc_failed): Move to alloc.c.
4571 * alloc.c: New file.
4572 * Makefile.in (COMMON_SFILES): Add alloc.c.
4574 2019-06-11 Tom Tromey <tom@tromey.com>
4576 * nat/linux-waitpid.c: Don't include server.h.
4577 (linux_debug): Remove.
4578 (my_waitpid): Update.
4580 2019-06-11 Tom Tromey <tromey@adacore.com>
4582 * infcall.c (_initialize_infcall): Remove trailing newline from
4584 * user-regs.c (_initialize_user_regs): Remove trailing newline
4586 * typeprint.c (_initialize_typeprint): Remove trailing newline
4588 * reverse.c (_initialize_reverse): Remove trailing newlines from
4590 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4592 * language.c (add_set_language_command): Remove trailing newline
4594 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4596 * disasm.c (_initialize_disasm): Remove trailing newline from
4598 * top.c (init_main): Remove trailing newline from help.
4599 * interps.c (_initialize_interpreter): Remove trailing newline
4601 * btrace.c (_initialize_btrace): Remove trailing newlines from
4603 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4605 * python/python.c (_initialize_python): Remove trailing newline
4607 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4609 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4610 from help. Reformat some text.
4611 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4613 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4616 2019-06-11 Tom Tromey <tromey@adacore.com>
4618 * darwin-nat.c (darwin_decode_exception_message)
4619 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4621 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4623 * valops.c (value_slice): Check for not allocated or not
4626 2019-06-10 Tom de Vries <tdevries@suse.de>
4629 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4630 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4633 2019-06-10 Tom de Vries <tdevries@suse.de>
4636 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4637 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4639 2019-06-10 Tom de Vries <tdevries@suse.de>
4642 * symtab.c (struct demangled_name_entry): Add language field.
4643 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4644 static minimal symbol". Set and use language field.
4646 2019-06-10 Tom Tromey <tromey@adacore.com>
4648 * ada-lang.c (_initialize_ada_language): Update help text.
4650 2019-06-10 Tom Tromey <tromey@adacore.com>
4652 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4654 * guile/guile.c (handle_boot_error): Don't end warning with a
4656 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4657 warning with a newline.
4658 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4660 (s12z_frame_cache): Likewise.
4661 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4663 * solib-svr4.c (disable_probes_interface): Don't end warning with
4665 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4667 * python/python.c (do_finish_initialization): Don't end warning
4670 2019-06-10 Tom Tromey <tom@tromey.com>
4672 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4673 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4676 2019-06-10 Tom Tromey <tromey@adacore.com>
4678 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4680 (elf_new_init): Don't call stabsread_new_init.
4681 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4682 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4683 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4685 2019-06-10 Tom de Vries <tdevries@suse.de>
4689 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4691 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4693 * source.c (find_and_open_source): Also rewrite relative file
4696 2019-04-26 Amos Bird <amosbird@gmail.com>
4698 * annotate.c (annotate_thread_exited): Add "thread-exited"
4701 2019-06-06 Tom Tromey <tromey@adacore.com>
4703 * maint.h (class scoped_command_stats): Use
4704 DISABLE_COPY_AND_ASSIGN.
4705 <print_time>: New method.
4706 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4708 (scoped_command_stats::print_time): New method.
4710 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4712 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4713 instructions of lengths 6 or 8 bytes.
4715 2019-06-04 Pedro Alves <palves@redhat.com>
4717 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4719 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4720 * breakpoint.c (condition_completer): Likewise.
4721 * cli/cli-dump.c (scan_expression): Likewise.
4722 * common/filestuff.c (mkdir_recursive): Likewise.
4723 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4724 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4725 (gdb_abspath): Likewise.
4726 * compile/compile-cplus-types.c
4727 (compile_cplus_instance::decl_name): Likewise.
4728 * completer.c (complete_explicit_location):
4729 (signal_completer, reg_or_group_completer_1): Likewise.
4730 * cp-support.c (cp_remove_params_if_any): Likewise.
4731 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4732 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4733 * infcmd.c (strip_bg_char): Likewise.
4734 * linespec.c (copy_token_string): Likewise.
4735 * mi/mi-main.c (output_cores): Likewise.
4736 * psymtab.c (psymtab_search_name):
4737 * symfile.c (test_set_ext_lang_command): Likewise.
4738 * target.c (target_fileio_read_stralloc): Likewise.
4739 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4740 * value.c (complete_internalvar): Likewise.
4742 2019-06-04 Christian Biesinger <cbiesinger@google.com>
4744 Add objfile property to gdb.Type.
4745 * NEWS: Mention Python API addition.
4746 * python/py-type.c (typy_get_objfile): New method.
4748 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4750 * NEWS: Mention the new set|show style [title|highlight].
4751 Mention changes to "show style", "help" and "apropos".
4753 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4755 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4756 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4757 instead of print_help_for_command.
4758 (print_doc_of_command): New function.
4759 (help_list): Add 'apropos -v word' suggestion.
4760 (print_help_for_command): Style the command name using title style.
4761 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4762 (_initialize_cli_cmds): Describe -v in apropos_command help.
4764 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4766 * cli/cli-style.h (cli_style_option): Add name in constructor,
4767 add m_name class member, add constructor with intensity,
4768 add name class function.
4769 (cli_style_option::add_setshow_commands): Remove name argument.
4770 (highlight_style, title_style): New styles.
4771 * cli/cli-style.c (do_show): New function that shows a style
4772 characteristic styling the style name with itself.
4773 (set_style_name): New function.
4774 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4775 Update all callers according to the changes in cli/cli-style.h.
4776 * utils.h (fputs_highlighted): New function.
4777 * utils.c (fputs_highlighted): Likewise.
4779 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4781 * NEWS: Mention new pipe command and new convenience variables.
4783 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4785 * cli/cli-cmds.c (pipe_command): New function.
4786 (_initialize_cli_cmds): Call add_com for pipe_command.
4787 Define | as an alias for pipe.
4788 (exit_status_set_internal_vars): New function.
4789 (shell_escape): Call exit_status_set_internal_vars.
4790 cli/cli-decode.c (find_command_name_length): Recognize | as
4791 a single character command.
4793 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4795 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4796 top.c (execute_command_to_ui_file): New function, mostly a copy
4797 of execute_command_to_string.
4798 (execute_command_to_string): Implement by calling
4799 execute_command_to_ui_file.
4801 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4803 * top.h (saved_command_line): Remove declaration.
4804 * top.c (previous_saved_command_line, previous_repeat_arguments):
4806 (saved_command_line): Make static, define together with other
4808 (dont_repeat): Clear repeat_arguments.
4809 (repeat_previous, get_saved_command_line, save_command_line):
4811 (gdb_init): Initialize saved_command_line
4812 and previous_saved_command_line.
4813 * main.c (captured_main_1): Remove saved_command_line initialization.
4814 * event-top.c (handle_line_of_input): Update to use
4815 the new 'repeat' related functions instead of direct access to
4817 * command.h (repeat_previous, get_saved_command_line,
4818 save_command_line): New declarations.
4819 (dont_repeat): Add comment.
4821 2019-05-30 Tom Tromey <tromey@adacore.com>
4823 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4825 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4827 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4830 * completer.c (complete): Initialize variable word.
4832 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4834 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4835 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4836 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4837 'body' is NULL to the outter 'if', protecting the '!is_define'
4840 2019-05-29 Tom Tromey <tromey@adacore.com>
4842 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4843 (dwarf_unknown): New function.
4844 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4845 (dwarf_type_encoding_name): Use dwarf_unknown.
4847 2019-05-29 Tom Tromey <tromey@adacore.com>
4850 * cp-valprint.c (cp_print_value_fields): Call
4851 cp_print_static_field inside "try".
4853 2019-05-29 Tom Tromey <tromey@adacore.com>
4855 * inflow.c (struct terminal_info): Add default operator=.
4856 * configure: Rebuild.
4857 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4858 -Wdeprecated-copy-dtor, -Wredundant-move.
4860 2019-05-29 Tom Tromey <tromey@adacore.com>
4863 * infcmd.c (print_return_value_1): Handle finish_print
4865 (show_print_finish): New function.
4866 (_initialize_infcmd): Add "set/show print finish" commands.
4867 * valprint.c (user_print_options): Initialize new member.
4868 * valprint.h (struct value_print_options) <finish_print>: New
4871 2019-05-28 Tom Tromey <tromey@adacore.com>
4873 * ada-lang.c (ada_remove_Xbn_suffix)
4874 (find_old_style_renaming_symbol)
4875 (parse_old_style_renaming): Remove.
4876 (ada_find_renaming_symbol): Don't call
4877 find_old_style_renaming_symbol.
4878 (ada_is_renaming_symbol): Rename from
4879 ada_find_renaming_symbol. Remove "block" parameter. Return
4881 (ada_read_var_value): Update and simplify.
4882 * ada-exp.y (write_var_or_type): Remove old code.
4884 2019-05-28 Alan Hayward <alan.hayward@arm.com>
4886 * event-top.c: Remove include comment.
4887 * inflow.c (class scoped_ignore_sigttou): Move from here...
4888 * inflow.h (class scoped_ignore_sigttou): ...to here.
4889 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4890 * top.c: Remove include comment.
4892 2019-05-27 Tom Tromey <tom@tromey.com>
4896 2019-05-22 Tom Tromey <tromey@adacore.com>
4898 * target.c (target_follow_exec): Constify parameter.
4899 * target-delegates.c: Rebuild.
4900 * remote.c (remote_target::follow_exec): Constify parameter.
4901 * infrun.c (follow_exec): Constify parameter.
4902 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4903 (target_follow_exec): Likewise.
4905 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4907 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4908 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4910 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4912 * NEWS: Add debugredirect and testsuite sections.
4914 2019-05-22 Simon Cook <simon.cook@embecosm.com>
4916 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4917 target descriptions using exclusively floating point register name
4920 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4923 * f-lang.c (build_fortran_types): Handle the case where
4924 gdbarch_floatformat_for_type returns a nullptr.
4926 2019-05-21 Tom de Vries <tdevries@suse.de>
4929 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4931 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4934 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4936 * i386-tdep.c (i386_floatformat_for_type): Use
4937 floatformats_ia64_quad for the 16-byte floating point component
4938 within a fortran 32-byte complex number.
4940 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4942 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4943 delete default constructor.
4944 (find_partial_die): Update to return const struct.
4945 (partial_die_parent_scope): Move variable declaration into scope
4946 of its use and change its type to auto.
4947 (guess_partial_die_structure_name): Likewise.
4948 (partial_die_info::fixup): Likewise.
4950 2019-05-17 Tom Tromey <tromey@adacore.com>
4952 * source.c (find_and_open_source): Remove cast.
4954 2019-05-17 Tom Tromey <tromey@adacore.com>
4956 * annotate.c (annotate_source): Make "filename" const.
4957 * annotate.h (annotate_source): Use const.
4959 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4961 * disasm.c (set_disassembler_options): Send errors to stderr.
4963 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4965 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4966 (cli_interp_base::set_logging): Check debug_redirect.
4967 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4968 * cli/cli-logging.c (debug_redirect): Add static variable.
4969 (pop_output_files): Add default param.
4970 (handle_redirections): Print debug setting.
4971 (show_logging_command): Likewise.
4972 (_initialize_cli_logging): Add debugredirect command.
4973 * interps.c (current_interp_set_logging): Add debug_redirect
4975 * interps.h (set_logging): Add debug_redirect parameter.
4976 (current_interp_set_logging): Likewise.
4977 * mi/mi-common.h: Likewise.
4978 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4980 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4981 Tom Tromey <tromey@adacore.com>
4983 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4985 * cli/cli-interp.h (make_logging_output): Remove declaration.
4986 * cli/cli-logging.c (make_logging_output): Remove function.
4987 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4989 * ui-file.c (tee_file::tee_file): Remove bools.
4990 (tee_file::~tee_file): Remove deletes.
4991 * ui-file.h (tee_file): Remove bools.
4993 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4995 * mi/mi-cmds.h (mi_cmd_complete): New function.
4996 * mi/mi-main.c (mi_cmd_complete): Likewise.
4997 * mi/mi-cmds.c: Define new MI command -complete.
4998 * NEWS: Mention new -complete command.
5000 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5002 * completer.h (complete): New function.
5003 * completer.c (complete): Likewise.
5004 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5005 function defined in completer.h.
5007 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5009 * MAINTAINERS (Write After Approval): Add myself.
5011 2019-05-17 Tom de Vries <tdevries@suse.de>
5014 * dwarf2read.c (struct cu_partial_die_info): New struct.
5015 (find_partial_die): Return cu_partial_die_info.
5016 (partial_die_parent_scope, guess_partial_die_structure_name)
5017 (partial_die_info::fixup): Handle new return type of find_partial_die.
5019 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5021 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5022 "std::string", simplifying the algorithm.
5024 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5026 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5027 (stap_static_probe_ops::get_probes): Likewise.
5029 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5031 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5032 '-')" and "else if".
5033 (stap_parse_single_operand): Join checks for
5034 "gdbarch_stap_parse_special_token_p" and
5035 "gdbarch_stap_parse_special_token" in the same "if" statement.
5036 Invert check when verifying for operation on register
5039 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5041 * stap-probe.c (stap_get_opcode): Update comment.
5042 (stap_get_expected_argument_type): Likewise.
5043 (handle_stap_probe): Likewise.
5045 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5047 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5048 return type to 'bool'. Adjust comment. Use 'bool' when
5050 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5051 * stap-probe.c (stap_parse_argument_1): Likewise.
5052 (stap_is_operator): Likewise.
5053 (stap_is_generic_prefix): Likewise.
5054 (stap_is_register_prefix): Likewise.
5055 (stap_is_register_indirection_prefix): Likewise.
5056 (stap_is_integer_prefix): Likewise.
5057 (stap_generic_check_suffix): Likewise.
5058 (stap_check_integer_suffix): Likewise.
5059 (stap_check_register_suffix): Likewise.
5060 (stap_check_register_indirection_suffix): Likewise.
5061 (stap_parse_register_operand): Likewise.
5062 (stap_parse_single_operand): Likewise.
5063 (stap_parse_argument_1): Likewise.
5064 (stap_probe::get_argument_count): Likewise.
5065 (stap_is_operator): Likewise.
5067 2019-05-16 Tom Tromey <tromey@adacore.com>
5069 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5072 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5074 * linux-thread-db.c (try_thread_db_load_1): Change return type
5076 (try_thread_db_load): Likewise.
5077 (try_thread_db_load_from_pdir_1): Likewise.
5078 (try_thread_db_load_from_pdir): Likewise.
5079 (try_thread_db_load_from_sdir): Likewise.
5080 (try_thread_db_load_from_dir): Likewise.
5081 (thread_db_load_search): Likewise.
5082 (has_libpthread): Likewise.
5083 (thread_db_load): Likewise.
5085 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5087 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5088 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5089 NULL, and complain/return if that's the case.
5091 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5093 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5094 (advance, posn, abstract_read_memory): New functions.
5095 [struct mem_read_abstraction]: New struct.
5096 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5098 2019-05-14 Tom Tromey <tromey@adacore.com>
5100 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5101 value is not lval_memory.
5103 2019-05-14 Tom Tromey <tromey@adacore.com>
5105 * solib.c (info_sharedlibrary_command): Style the file name.
5107 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5109 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5110 (aarch64_vnv_type): Likewise.
5111 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5112 * common/tdesc.c: Likewise.
5113 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5114 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5115 * features/aarch64-fpu.xml: Add ieee half view.
5116 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5117 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5118 * gdbtypes.h (struct builtin_type): Likewise.
5119 (struct objfile_type): Likewise.
5121 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5123 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5125 * location.h (string_to_event_location): Likewise.
5127 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5131 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5133 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5134 New variable declaration.
5135 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5137 (print_one_breakpoint): Use ui_out::test_flags and new global
5138 variable to compute use_fixed_output.
5139 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5141 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5142 (mi_multi_location_breakpoint_output_fixed): Remove.
5143 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5145 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5146 fix_multi_location_breakpoint_output flag if version >= 3.
5147 * ui-out.h (enum ui_out_flag)
5148 <fix_multi_location_breakpoint_output>: New enumerator.
5150 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5152 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5154 2019-05-10 Tom Tromey <tromey@adacore.com>
5156 * ada-lang.c (catch_ada_completer): New function.
5157 (_initialize_ada_language): Use it.
5159 2019-05-10 Tom Tromey <tromey@adacore.com>
5161 * thread.c (print_thread_info): Make "requested_threads" const.
5162 * gdbthread.h (print_thread_info): Make "requested_threads"
5164 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5165 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5167 2019-05-08 Tom Tromey <tom@tromey.com>
5169 * gdbtypes.c (objfile_type_data): Change type.
5170 (objfile_type, _initialize_gdbtypes): Update.
5172 2019-05-08 Tom Tromey <tom@tromey.com>
5174 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5175 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5176 (_initialize_dwarf2_frame): Update.
5178 2019-05-08 Tom Tromey <tom@tromey.com>
5180 * objc-lang.c (objc_objfile_data): Change type.
5181 (find_methods): Update.
5182 (_initialize_objc_lang): Remove.
5184 2019-05-08 Tom Tromey <tom@tromey.com>
5186 * stabsread.c (rs6000_builtin_type_data): Change type.
5187 (rs6000_builtin_type, _initialize_stabsread): Update.
5189 2019-05-08 Tom Tromey <tom@tromey.com>
5191 * mips-tdep.c (mips_pdr_data): Remove.
5192 (_initialize_mips_tdep): Update.
5194 2019-05-08 Tom Tromey <tom@tromey.com>
5196 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5197 (hppa_init_objfile_priv_data, read_unwind_info)
5198 (find_unwind_entry, _initialize_hppa_tdep): Update.
5200 2019-05-08 Tom Tromey <tom@tromey.com>
5202 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5203 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5205 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5207 2019-05-08 Tom Tromey <tom@tromey.com>
5209 * mdebugread.c (basic_type_data): Change type.
5210 (basic_type, _initialize_mdebugread): Update.
5212 2019-05-08 Tom Tromey <tom@tromey.com>
5214 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5216 2019-05-08 Tom Tromey <tom@tromey.com>
5218 * nto-tdep.c (nto_inferior_data_reg): Change type.
5219 (nto_inferior_data): Update.
5220 (nto_inferior_data_cleanup, nto_new_inferior_data)
5221 (_initialize_nto_tdep): Remove.
5222 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5224 2019-05-08 Tom Tromey <tom@tromey.com>
5226 * ada-lang.c (struct ada_inferior_data): Add initializers.
5227 (ada_inferior_data): Change type.
5228 (ada_inferior_data_cleanup): Remove.
5229 (get_ada_inferior_data, ada_inferior_exit)
5230 (struct ada_pspace_data): Add initializers, destructor.
5231 (ada_pspace_data_handle): Change type.
5232 (get_ada_pspace_data): Update.
5233 (ada_pspace_data_cleanup): Remove.
5235 2019-05-08 Tom Tromey <tom@tromey.com>
5237 * coffread.c (struct coff_symfile_info): Add initializers.
5238 (coff_objfile_data_key): Move lower. Change type.
5239 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5241 (coff_free_info): Remove.
5243 2019-05-08 Tom Tromey <tom@tromey.com>
5245 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5246 (fbsd_pspace_data_handle): Move lower. Change type.
5247 (get_fbsd_pspace_data): Update.
5248 (fbsd_pspace_data_cleanup): Remove.
5249 (_initialize_fbsd_tdep): Update.
5251 2019-05-08 Tom Tromey <tom@tromey.com>
5253 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5254 (get_ada_tasks_pspace_data): Update.
5255 (ada_tasks_pspace_data_cleanup): Remove.
5256 (_initialize_tasks): Update.
5257 (ada_tasks_inferior_data_handle): Change type.
5258 (get_ada_tasks_inferior_data): Update.
5259 (ada_tasks_inferior_data_cleanup): Remove.
5260 (struct ada_tasks_pspace_data): Add initializers.
5262 2019-05-08 Tom Tromey <tom@tromey.com>
5264 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5265 * symfile-debug.c (debug_sym_get_probes): Change type.
5266 * stap-probe.c (handle_stap_probe):
5267 (stap_static_probe_ops::get_probes): Change type.
5268 * probe.h (class static_probe_ops) <get_probes>: Change type.
5269 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5270 (parse_probes_in_pspace): Update.
5271 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5273 (any_static_probe_ops::get_probes): Change type.
5274 * elfread.c (elfread_data): New typedef.
5275 (probe_key): Change type.
5276 (elf_get_probes): Likewise. Update.
5277 (probe_key_free): Remove.
5278 (_initialize_elfread): Update.
5279 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5281 (dtrace_process_dof_probe, dtrace_process_dof)
5282 (dtrace_static_probe_ops::get_probe): Change type.
5284 2019-05-08 Tom Tromey <tom@tromey.com>
5286 * xcoffread.c (struct xcoff_symfile_info): Rename from
5287 coff_symfile_info. Add initializers.
5288 (xcoff_objfile_data_key): Move lower. Change type.
5289 (XCOFF_DATA): Rewrite.
5290 (xcoff_free_info): Remove.
5291 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5292 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5293 (xcoff_initial_scan): Update.
5295 2019-05-08 Tom Tromey <tom@tromey.com>
5297 * solib-svr4.c (struct svr4_info): Add initializers and
5299 <probes_table>: Now an htab_up.
5300 (solib_svr4_pspace_data): Change type.
5301 (free_probes_table): Simplify.
5302 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5303 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5304 (probes_table_remove_objfile_probes, register_solib_event_probe)
5305 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5306 (_initialize_svr4_solib): Update.
5308 2019-05-08 Tom Tromey <tom@tromey.com>
5310 * remote.c (remote_pspace_data): Change type.
5311 (remote_pspace_data_cleanup): Remove.
5312 (get_remote_exec_file, set_pspace_remote_exec_file)
5313 (_initialize_remote): Update.
5315 2019-05-08 Tom Tromey <tom@tromey.com>
5317 * breakpoint.c (breakpoint_objfile_key): Change type.
5318 (get_breakpoint_objfile_data): Update.
5319 (free_breakpoint_objfile_data): Remove.
5320 (_initialize_breakpoint): Update.
5322 2019-05-08 Tom Tromey <tom@tromey.com>
5324 * linux-tdep.c (struct linux_info): Add initializers.
5325 (linux_inferior_data): Move. Change type.
5326 (invalidate_linux_cache_inf): Update.
5327 (linux_inferior_data_cleanup): Remove.
5328 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5330 2019-05-08 Tom Tromey <tom@tromey.com>
5332 * auxv.c (auxv_inferior_data): Move. Change type.
5333 (auxv_inferior_data_cleanup): Remove.
5334 (invalidate_auxv_cache_inf): Rewrite.
5335 (get_auxv_inferior_data, _initialize_auxv): Update.
5337 2019-05-08 Tom Tromey <tom@tromey.com>
5339 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5340 (symfile_debug_objfile_data_key): Change type.
5341 (symfile_debug_installed, debug_qf_has_symbols)
5342 (debug_qf_find_last_source_symtab)
5343 (debug_qf_forget_cached_source_info)
5344 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5345 (debug_qf_print_stats, debug_qf_dump)
5346 (debug_qf_expand_symtabs_for_function)
5347 (debug_qf_expand_all_symtabs)
5348 (debug_qf_expand_symtabs_with_fullname)
5349 (debug_qf_map_matching_symbols)
5350 (debug_qf_expand_symtabs_matching)
5351 (debug_qf_find_pc_sect_compunit_symtab)
5352 (debug_qf_map_symbol_filenames)
5353 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5354 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5355 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5356 (debug_sym_read_linetable, debug_sym_relocate): Update.
5357 (symfile_debug_free_objfile): Remove.
5358 (install_symfile_debug_logging, _initialize_symfile_debug):
5361 2019-05-08 Tom Tromey <tom@tromey.com>
5363 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5364 allocate_on_obstack.
5365 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5366 (get_dwarf2_per_objfile): Update.
5367 (set_dwarf2_per_objfile): Remove.
5368 (dwarf2_has_info, dwarf2_get_section_info): Update.
5369 (dwarf2_free_objfile): Remove.
5370 (_initialize_dwarf2_read): Update.
5372 2019-05-08 Tom Tromey <tom@tromey.com>
5374 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5376 <unsupported_script_warning_printed,
5377 script_not_found_warning_printed>: Now bool.
5378 (auto_load_pspace_data): Change type.
5379 (~auto_load_pspace_info): Rename from
5380 auto_load_pspace_data_cleanup.
5381 (get_auto_load_pspace_data, init_loaded_scripts_info)
5382 (clear_section_scripts, maybe_print_unsupported_script_warning)
5383 (maybe_print_script_not_found_warning, _initialize_auto_load):
5386 2019-05-08 Tom Tromey <tom@tromey.com>
5388 * objfiles.c (objfile_pspace_info): Add destructor and
5390 (objfiles_pspace_data): Change type.
5391 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5392 (get_objfile_pspace_data): Update.
5393 (objfiles_bfd_data): Change type.
5394 (get_objfile_bfd_data): Update.
5395 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5397 2019-05-08 Tom Tromey <tom@tromey.com>
5399 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5401 (get_catch_syscall_inferior_data): Update.
5402 (catch_syscall_inferior_data_cleanup): Remove.
5403 (_initialize_break_catch_syscall): Update.
5405 2019-05-08 Tom Tromey <tom@tromey.com>
5407 * inflow.c (struct terminal_info): Add destructor and
5409 (inflow_inferior_data): Change type.
5410 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5411 (get_inflow_inferior_data, inflow_inferior_exit)
5412 (swap_terminal_info, _initialize_inflow): Update.
5414 2019-05-08 Tom Tromey <tom@tromey.com>
5416 * target-dcache.c (target_dcache_cleanup): Remove.
5417 (target_dcache_aspace_key): Change type.
5418 (target_dcache_init_p, target_dcache_invalidate)
5419 (target_dcache_get, target_dcache_get_or_init)
5420 (_initialize_target_dcache): Update.
5421 * dcache.h (struct dcache_deleter): New.
5423 2019-05-08 Tom Tromey <tom@tromey.com>
5425 * symtab.c (struct symbol_cache): Add destructor and
5427 (symbol_cache_key): Move. Change type.
5428 (make_symbol_cache, free_symbol_cache): Remove.
5429 (get_symbol_cache): Update.
5430 (symbol_cache_cleanup): Remove.
5431 (ALL_PSPACES, symbol_cache_flush)
5432 (maintenance_print_symbol_cache)
5433 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5436 2019-05-08 Tom Tromey <tom@tromey.com>
5438 * symtab.c (struct main_info): Add destructor and initializers.
5439 (main_progspace_key): Move. Change type.
5440 (get_main_info): Update.
5441 (main_info_cleanup): Remove.
5442 (_initialize_symtab): Update.
5444 2019-05-08 Tom Tromey <tom@tromey.com>
5446 * registry.h (DECLARE_REGISTRY): Define the _key class.
5448 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5450 * NEWS: Merge two 'New commands' sections.
5452 2019-05-08 Joel Brobecker <brobecker@adacore.com>
5454 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5455 parameter and use Ada language definition instead.
5456 (ada_val_print_ptr): Remove unused language parameter.
5457 (ada_val_print_num): Remove language parameter and use Ada language
5459 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5461 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5462 parameter and use Ada language definition instead.
5463 (ada_val_print_1): Update all ada_val_print_xxx calls.
5464 Remove language parameter.
5465 (ada_val_print): Update ada_val_print_1 call.
5467 2019-05-08 Tom Tromey <tromey@adacore.com>
5469 * remote.c (remote_hw_watchpoint_limit)
5470 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5473 2019-05-08 Tom Tromey <tromey@adacore.com>
5475 * maint.c (_initialize_maint_cmds): Move initialization code to
5477 (watchdog, show_watchdog): Move to remote.c.
5478 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5480 (_initialize_remote): Move initialization code from maint.c.
5481 * defs.h (watchdog): Don't declare.
5483 2019-05-08 Tom Tromey <tromey@adacore.com>
5485 * tui/tui-interp.c: Include main.h.
5486 * interps.c: Include main.h.
5487 * main.h (interpreter_p): Declare.
5488 * defs.h (interpreter_p): Don't declare.
5490 2019-05-08 Tom Tromey <tromey@adacore.com>
5492 * dwarf2loc.c: Include dwarf2read.h.
5493 * defs.h (read_unsigned_leb128): Don't declare.
5494 * dwarf2read.h (read_unsigned_leb128): Declare.
5496 2019-05-08 Tom Tromey <tromey@adacore.com>
5498 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5501 2019-05-08 Tom Tromey <tromey@adacore.com>
5503 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5504 when no wrap column is set.
5506 2019-05-08 Tom Tromey <tromey@adacore.com>
5508 * c-lang.c (c_get_string): Handle non-C-style arrays.
5510 2019-05-08 Tom Tromey <tromey@adacore.com>
5512 * typeprint.c (print_offset_data::update): Print the bit offset,
5513 not the number of bits remaining.
5515 2019-05-08 Tom Tromey <tromey@adacore.com>
5517 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5518 padding at end of comment.
5520 2019-05-08 Tom Tromey <tromey@adacore.com>
5522 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5525 2019-05-06 Tom Tromey <tom@tromey.com>
5527 * common/scoped_mmap.c: Include common-defs.h.
5528 * common/scoped_mmap.h: Don't include config.h.
5530 2019-05-04 Tom Tromey <tom@tromey.com>
5532 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5533 (struct aarch64_call_info): Add initializers.
5534 <si>: Now a std::vector.
5535 (pass_on_stack, aarch64_push_dummy_call): Update.
5537 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
5538 Tom Tromey <tom@tromey.com>
5540 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5541 (ppc_threads): Now a std::vector. Now static.
5542 (hwdebug_find_thread_points_by_tid)
5543 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5546 2019-05-04 Tom Tromey <tom@tromey.com>
5548 * arc-tdep.c (arc_tdesc_init): Return bool.
5550 2019-05-04 Tom Tromey <tom@tromey.com>
5552 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5553 Use gdb_assert_not_reached.
5555 2019-05-04 Tom Tromey <tom@tromey.com>
5557 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5560 2019-05-04 Tom Tromey <tom@tromey.com>
5562 * arc-tdep.c (arc_tdesc_init): Use bool.
5564 2019-05-04 Tom Tromey <tom@tromey.com>
5566 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5568 2019-05-04 Tom Tromey <tom@tromey.com>
5570 * cli/cli-cmds.c (valid_command_p): Return bool.
5572 2019-05-04 Tom Tromey <tom@tromey.com>
5574 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5575 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5577 2019-05-04 Raul Tambre <raul@tambre.ee>
5579 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5580 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5581 operator for comparison.
5583 2019-05-04 Tom Tromey <tom@tromey.com>
5585 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5586 (lookup_partial_symbol, print_partial_symbols)
5587 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5588 (psymbol_compare): Update.
5589 (add_psymbol_to_bcache): Clear the entire psymbol.
5590 (maintenance_check_psymtabs): Update.
5591 * psympriv.h (struct partial_symbol): Don't derive from
5592 general_symbol_info.
5593 <obj_section, unrelocated_address, address,
5594 set_unrelocated_address>: Update.
5595 <ginfo>: New member.
5596 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5597 (debug_names::write_psymbols): Update.
5599 2019-05-04 Tom de Vries <tdevries@suse.de>
5601 * contrib/cc-with-tweaks.sh: Support -n arg.
5603 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5605 * corelow.c (core_target::detach): Ensure frame cache and
5606 register caches are cleared.
5607 inferior.c (exit_inferior_1): Likewise.
5609 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5610 Tom Tromey <tom@tromey.com>
5612 * dictionary.c (collate_pending_symbols_by_language): Remove
5613 "struct" from foreach.
5614 * symtab.c (lookup_global_symbol_from_objfile)
5615 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5617 * ser-tcp.c (net_open): Remove "struct" from foreach.
5618 * objfiles.c (objfile_relocate, objfile_rebase)
5619 (objfile_has_symbols): Remove "struct" from foreach.
5620 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5622 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5624 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5625 "struct" from foreach.
5626 * ada-lang.c (create_excep_cond_exprs)
5627 (ada_exception_catchpoint_cond_string): Remove "struct" from
5630 2019-05-03 Tom Tromey <tromey@adacore.com>
5632 * ada-exp.y (convert_char_literal): Check suffix of each
5635 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5638 * ada-exp.y (yywrap): Don't define.
5639 * ada-lex.l (%option): Add noyywrap
5642 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5644 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5645 _WIN32_WINNT to the XP level, unless already defined to a higher
5648 * unittests/parse-connection-spec-selftests.c:
5650 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5653 * symfile.c (find_separate_debug_file): Remove colon from the
5654 drive spec of DOS/Windows file names of the target, so that the
5655 file name produced from DEBUGDIR and the target's directory will
5656 be valid on DOS/Windows systems.
5658 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5660 * rust-lang.c (val_print_struct): Handle printing structures
5663 2019-05-02 Tom Tromey <tromey@adacore.com>
5665 * valarith.c (_initialize_valarith): Remove.
5667 2019-05-01 Tom Tromey <tromey@adacore.com>
5669 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5672 2019-05-01 Tom Tromey <tromey@adacore.com>
5674 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5675 for big-endian copies.
5677 2019-04-30 Ali Tamur <tamur@google.com>
5678 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5679 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5680 (read_3_bytes): New function.
5682 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5684 * windows-nat.c (main_thread_id): Delete.
5685 (handle_output_debug_string): Replace main_thread_id by
5686 current_event.dwThreadId.
5687 (fake_create_process): Likewise.
5688 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5689 Do not set main_thread_id.
5690 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5691 current_event.dwThreadId.
5692 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5694 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5696 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5697 Use current_event.dwThreadId instead of main_thread_id.
5699 2019-04-30 Tom Tromey <tromey@adacore.com>
5701 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5702 (create_excep_cond_exprs): Iterate over program spaces.
5703 (ada_exception_catchpoint_cond_string): Examine all minimal
5704 symbols for exception types.
5706 2019-04-30 Tom Tromey <tromey@adacore.com>
5709 * dwarf2read.c (process_structure_scope): Handle case where type
5710 has template parameters but no symbol was created.
5712 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5713 Chris January <chris.january@arm.com>
5715 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5717 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5719 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5721 * f-typeprint.c (f_print_type): Update rules for printing
5723 (f_type_print_varspec_suffix): Likewise.
5725 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5726 Chris January <chris.january@arm.com>
5728 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5731 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5733 * f-lang.c (build_fortran_types): Change name of void type to
5735 * f-typeprint.c (f_type_print_base): Print the name of the void
5736 type, rather than a fixed string.
5737 * f-valprint.c (f_decorations): Use lower case void string.
5739 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5740 Chris January <chris.january@arm.com>
5742 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5745 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5746 Chris January <chris.january@arm.com>
5747 David Lecomber <david.lecomber@arm.com>
5749 * f-exp.y (BINOP_INTRINSIC): New token.
5750 (exp): New parser rule handling BINOP_INTRINSIC.
5751 (f77_keywords): Add new builtin procedures.
5752 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5753 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5754 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5755 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5756 (print_unop_subexp_f): New function.
5757 (print_binop_subexp_f): New function.
5758 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5759 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5760 (dump_subexp_body_f): Likewise.
5761 (operator_check_f): Likewise.
5762 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5763 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5765 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5767 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5769 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5770 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5771 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5772 (operator_length_f): New fuction.
5773 (print_subexp_f): New function.
5774 (op_name_f): New function.
5775 (dump_subexp_body_f): New function.
5776 (operator_check_f): New function.
5777 (exp_descriptor_f): Replace standard expression handling functions
5779 * gdb/fortran-operator.def: New file.
5780 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5781 * gdb/std-operator.def: Remove UNOP_KIND.
5783 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5785 * std-operator.def: Remove unbalanced, stray double quote
5788 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5789 Chris January <chris.january@arm.com>
5790 Daniel Everett <daniel.everett@arm.com>
5791 Nick Forrington <nick.forrington@arm.com>
5792 Richard Bunt <richard.bunt@arm.com>
5794 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5795 of depth when printing anonymous structs or unions.
5796 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5797 Don't print either the top-level value, or the children if the
5798 max-depth is exceeded.
5799 (ppscm_print_children): When printing the key of a map, allow one
5800 extra level of depth.
5801 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5802 print either the top-level value, or the children if the max-depth
5804 (print_children): When printing the key of a map, allow one extra
5806 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5807 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5808 (user_print_options): Initialise max_depth field.
5809 (val_print_scalar_or_string_type_p): New function.
5810 (val_print): Check to see if the max depth has been reached.
5811 (val_print_check_max_depth): Define new function.
5812 (show_print_max_depth): New function.
5813 (_initialize_valprint): Add 'print max-depth' option.
5814 * valprint.h (struct value_print_options) <max_depth>: New field.
5815 (val_print_check_max_depth): Declare new function.
5816 * NEWS: Document new feature.
5818 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5820 * ada-lang.c (ada_language_defn): Initialise new field.
5821 * c-lang.c (c_is_string_type_p): New function.
5822 (c_language_defn): Initialise new field.
5823 (cplus_language_defn): Initialise new field.
5824 (asm_language_defn): Initialise new field.
5825 (minimal_language_defn): Initialise new field.
5826 * c-lang.h (c_is_string_type_p): Declare new function.
5827 * d-lang.c (d_language_defn): Initialise new field.
5828 * f-lang.c (f_is_string_type_p): New function.
5829 (f_language_defn): Initialise new field.
5830 * go-lang.c (go_is_string_type_p): New function.
5831 (go_language_defn): Initialise new field.
5832 * language.c (default_is_string_type_p): New function.
5833 (unknown_language_defn): Initialise new field.
5834 (auto_language_defn): Initialise new field.
5835 * language.h (struct language_defn) <la_is_string_type_p>: New
5837 (default_is_string_type_p): Declare new function.
5838 * m2-lang.c (m2_language_defn): Initialise new field.
5839 * objc-lang.c (objc_language_defn): Initialise new field.
5840 * opencl-lang.c (opencl_language_defn): Initialise new field.
5841 * p-lang.c (pascal_is_string_type_p): New function.
5842 (pascal_language_defn): Initialise new field.
5843 * rust-lang.c (rust_is_string_type_p): New function.
5844 (rust_language_defn): Initialise new field.
5846 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5848 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5850 * ada-lang.c (ada_language_defn): Initialise new field.
5851 * c-lang.c (c_language_defn): Likewise.
5852 (cplus_language_defn): Likewise.
5853 (asm_language_defn): Likewise.
5854 (minimal_language_defn): Likewise.
5855 * d-lang.c (d_language_defn): Likewise.
5856 * f-lang.c (f_language_defn): Likewise.
5857 * go-lang.c (go_language_defn): Likewise.
5858 * language.c (unknown_language_defn): Likewise.
5859 (auto_language_defn): Likewise.
5860 * m2-lang.c (m2_language_defn): Likewise.
5861 * objc-lang.c (objc_language_defn): Likewise.
5862 * opencl-lang.c (opencl_language_defn): Likewise.
5863 * p-lang.c (pascal_language_defn): Likewise.
5864 * rust-lang.c (rust_language_defn): Likewise.
5866 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5868 * ada-lang.c (ada_is_character_type): Change return type to bool.
5869 (ada_is_string_type): Likewise.
5870 * ada-lang.h (ada_is_character_type): Update declaration
5871 (ada_is_string_type): Likewise.
5873 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5875 Support style in 'frame|thread apply'
5877 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5878 * record.c (record_start, record_stop): Update callers of
5879 execute_command_to_string with false.
5880 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5881 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5883 (class string_file): New constructor with term_out parameter.
5884 Override methods term_out and can_emit_style_escape. New member
5886 (class stdio_file): Override can_emit_style_escape.
5887 (class tee_file): Override term_out and can_emit_style_escape.
5888 * utils.h (can_emit_style_escape): Remove.
5889 * utils.c (can_emit_style_escape): Likewise.
5890 Update all callers of can_emit_style_escape (SOMESTREAM) to
5891 SOMESTREAM->can_emit_style_escape.
5892 * source-cache.c (source_cache::get_source_lines): Likewise.
5893 * stack.c (frame_apply_command_count): Call execute_command_to_string
5894 passing the term_out characteristic of the current gdb_stdout.
5895 * thread.c (thr_try_catch_cmd): Likewise.
5896 * top.c (execute_command_to_string): pass term_out parameter
5897 to construct the string_file for the command output.
5898 * ui-file.c (term_cli_styling): New function (most code moved
5899 from utils.c can_emit_style_escape).
5900 (string_file::string_file, string_file::can_emit_style_escape,
5901 stdio_file::can_emit_style_escape, tee_file::term_out,
5902 tee_file::can_emit_style_escape): New functions.
5904 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5906 * NEWS: Mention the new set|show may-call-functions.
5907 * infcall.c (may_call_functions_p): New variable.
5908 (show_may_call_functions_p): New function.
5909 (call_function_by_hand_dummy): Throws an error if not
5911 (_initialize_infcall): Call add_setshow_boolean_cmd for
5914 2019-04-25 Keith Seitz <keiths@redhat.com>
5917 * cp-support.c (inspect_type): Don't attempt substitutions
5918 of symbol with the same name.
5920 2019-04-25 Tom Tromey <tromey@adacore.com>
5923 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5926 2019-04-25 Tom Tromey <tromey@adacore.com>
5928 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5930 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5931 (gdb_xml_parser::parse): Use std::move.
5932 * python/python-internal.h (gdbpy_convert_exception): Take a const
5934 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5936 * python/py-utils.c (gdbpy_convert_exception): Take a const
5938 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5940 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5942 * mi/mi-main.c (mi_print_exception): Take a const reference.
5943 * main.c (handle_command_errors): Take a const reference.
5944 * linespec.c (parse_linespec): Use std::move.
5945 * infcall.c (run_inferior_call): Use std::move.
5946 (call_function_by_hand_dummy): Use std::move.
5947 * exec.c (try_open_exec_file): Use std::move.
5948 * exceptions.h (exception_print, exception_fprintf)
5949 (exception_print_same): Update.
5950 * exceptions.c (print_exception, exception_print)
5951 (exception_fprintf, exception_print_same): Change parameters to
5953 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5954 * common/new-op.c: Use std::move.
5955 * common/common-exceptions.h (struct gdb_exception): Add move
5957 (struct gdb_exception_error, struct gdb_exception_quit, struct
5958 gdb_quit_bad_alloc): Change constructor to move constructor.
5959 (throw_exception): Change parameter to rvalue reference.
5960 * common/common-exceptions.c (throw_exception): Take rvalue
5962 * cli/cli-interp.c (safe_execute_command): Use std::move.
5963 * breakpoint.c (insert_bp_location, location_to_sals): Use
5966 2019-04-25 Tom Tromey <tromey@adacore.com>
5968 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5969 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5970 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5971 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5972 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5973 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5974 guile/scm-value.c: Use unpack.
5975 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5976 gdbscm_gdb_exception.
5977 (gdbscm_throw_gdb_exception): Likewise.
5978 (struct gdbscm_gdb_exception): New.
5979 (unpack): New function.
5980 (gdbscm_wrap): Use unpack.
5982 2019-04-25 Tom Tromey <tromey@adacore.com>
5984 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5985 (gdb_rl_callback_handler): Use std::move.
5986 * common/common-exceptions.h (struct gdb_exception): Add move
5987 assignment operator.
5988 (throw_exception_sjlj): Change "exception" to const reference.
5989 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5990 (throw_exception_sjlj): Change "exception" to const reference.
5992 2019-04-25 Tom Tromey <tromey@adacore.com>
5994 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5995 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5996 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5998 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6000 * mi/mi-interp.c (mi_interp::exec): Update.
6001 * linespec.c (parse_linespec): Update.
6002 * infcall.c (run_inferior_call): Update.
6003 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6004 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6005 (gdbscm_lookup_global_symbol): Update.
6006 * guile/scm-param.c (gdbscm_parameter_value): Update.
6007 * guile/scm-frame.c (gdbscm_frame_read_register)
6008 (gdbscm_frame_read_var): Update.
6009 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6010 * exec.c (try_open_exec_file): Update.
6011 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6012 (gdb_rl_callback_handler): Update.
6013 * common/common-exceptions.h (exception_none): Don't declare.
6014 * common/common-exceptions.c (exception_none): Don't define.
6015 (struct catcher) <exception>: Update.
6016 * cli/cli-interp.c (safe_execute_command): Update.
6017 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6019 2019-04-25 Ali Tamur <tamur@google.com>
6021 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6022 (read_attribute_value): Likewise.
6023 (dwarf2_read_addr_index): Update comment.
6024 (read_str_index): Add DW_FORM_strx.
6025 (dwarf2_string_attr): Likewise.
6026 (dwarf2_const_value_attr): Likewise.
6027 (dump_die_shallow): Likewise.
6028 (dwarf2_fetch_constant_bytes): Likewise.
6029 (skip_form_bytes): Likewise.
6030 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6032 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6036 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6037 OFFSET. Verify if current mapping contains an ELF header.
6038 (linux_find_memory_regions_full): Adjust call to
6041 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6042 Kang Li <kanglictf@gmail.com>
6046 * dwarf2-frame.c (read_initial_length): Be consistent about using
6047 unsigned representation of length.
6048 (decode_frame_entry_1): Likewise. Check for wraparound of
6049 end pointer as well as buffer overflow.
6051 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6053 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6056 2019-04-24 Tom Tromey <tromey@adacore.com>
6058 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6060 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6062 * s12z-tdep.c (s12z_unwind_pc): Delete.
6063 (s12z_unwind_sp): Delete.
6064 (s12z_gdbarch_init): Don't register deleted functions with
6067 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6069 * rl78-tdep.c (rl78_unwind_sp): Delete.
6070 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6072 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6074 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6075 (xstormy16_unwind_pc): Delete.
6076 (xstormy16_dummy_id): Delete.
6077 (xstormy16_gdbarch_init): Don't register deleted functions with
6080 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6082 * vax-tdep.c (vax_unwind_pc): Delete.
6083 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6085 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6087 * v850-tdep.c (v850_unwind_sp): Delete.
6088 (v850_unwind_pc): Delete.
6089 (v850_dummy_id): Delete.
6090 (v850_gdbarch_init): Don't register deleted functions with
6093 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6095 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6096 (tilegx_unwind_pc): Delete.
6097 (tilegx_unwind_dummy_id): Delete.
6098 (tilegx_gdbarch_init): Don't register deleted functions with
6101 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6103 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6104 (tic6x_dummy_id): Delete.
6105 (tic6x_gdbarch_init): Don't register deleted functions with
6108 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6110 * sparc-tdep.c (sparc_unwind_pc): Delete.
6111 (sparc32_gdbarch_init): Don't register deleted function with
6114 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6116 * sh-tdep.c (sh_unwind_sp): Delete.
6117 (sh_unwind_pc): Delete.
6118 (sh_dummy_id): Delete.
6119 (sh_gdbarch_init): Don't register deleted functions with
6122 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6124 * score-tdep.c (score_unwind_sp): Delete.
6125 (score_unwind_pc): Delete.
6126 (score_dummy_id): Delete.
6127 (score_gdbarch_init): Don't register deleted functions with
6130 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6132 * rx-tdep.c (rx_unwind_pc): Delete.
6133 (rx_unwind_sp): Delete.
6134 (rx_dummy_id): Delete.
6135 (rx_gdbarch_init): Don't register deleted functions with
6136 gdbarch. Update comment.
6138 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6140 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6141 (rs6000_dummy_id): Delete.
6142 (rs6000_gdbarch_init): Don't register deleted functions with
6145 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6147 * or1k-tdep.c (or1k_dummy_id): Delete.
6148 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6150 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6152 * nios2-tdep.c (nios2_dummy_id): Delete.
6153 (nios2_unwind_sp): Delete.
6154 (nios2_gdbarch_init): Don't register deleted functions with
6157 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6159 * nds32-tdep.c (nds32_dummy_id): Delete.
6160 (nds32_unwind_pc): Delete.
6161 (nds32_unwind_sp): Delete.
6162 (nds32_gdbarch_init): Don't register deleted functions with
6165 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6167 * msp430-tdep.c (msp430_unwind_pc): Delete.
6168 (msp430_unwind_sp): Delete.
6169 (msp430_dummy_id): Delete.
6170 (msp430_gdbarch_init): Don't register deleted functions with
6173 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6175 * moxie-tdep.c (moxie_unwind_sp): Delete.
6176 (moxie_unwind_pc): Delete.
6177 (moxie_dummy_id): Delete.
6178 (moxie_gdbarch_init): Don't register deleted functions with
6181 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6183 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6184 (mn10300_unwind_pc): Delete.
6185 (mn10300_unwind_sp): Delete.
6186 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6188 (mn10300_frame_unwind_init): Don't register deleted functions with
6191 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6193 * mep-tdep.c (mep_unwind_pc): Delete.
6194 (mep_unwind_sp): Delete.
6195 (mep_dummy_id): Delete.
6196 (mep_gdbarch_init): Don't register deleted functions with
6199 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6201 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6202 (m68hc11_unwind_sp): Delete.
6203 (m68hc11_gdbarch_init): Don't register deleted functions with
6206 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6208 * m32r-tdep.c (m32r_unwind_sp): Delete.
6209 (m32r_unwind_pc): Delete.
6210 (m32r_dummy_id): Delete.
6211 (m32r_gdbarch_init): Don't register deleted functions with
6214 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6216 * m32c-tdep.c (m32c_unwind_pc): Delete.
6217 (m32c_unwind_sp): Delete.
6218 (m32c_dummy_id): Delete.
6219 (m32c_gdbarch_init): Don't register deleted functions with
6222 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6224 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6225 (lm32_unwind_pc): Delete.
6226 (lm32_dummy_id): Delete.
6227 (lm32_gdbarch_init): Don't register deleted functions with
6230 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6232 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6233 (iq2000_unwind_pc): Delete.
6234 (iq2000_dummy_id): Delete.
6235 (iq2000_gdbarch_init): Don't register deleted functions with
6238 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6240 * nds32-tdep.c (nds32_type_align): Delete.
6241 (nds32_push_dummy_call): Use type_align instead.
6243 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6245 * arm-tdep.c (arm_type_align): Only handle vector override case.
6246 (arm_push_dummy_call): Use type_align.
6247 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6249 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6251 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6253 (pass_on_stack): Use type_align.
6254 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6257 2019-04-23 Tom Tromey <tromey@adacore.com>
6259 * dwarf2read.c (line_header::file_name_at): Remove unused
6262 2019-04-23 Tom de Vries <tdevries@suse.de>
6265 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6269 2019-03-27 Ali Tamur <tamur@google.com>
6271 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6272 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6273 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6274 (dwarf_expr_context::get_addr_index): Likewise
6275 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6276 (symbol_needs_eval_context::get_addr_index): Likewise
6277 (disassemble_dwarf_expression): Add DW_OP_addrx
6278 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6279 (read_cutu_die_from_dwo): Update comment
6280 (skip_one_die): Add DW_FORM_addrx
6281 (read_attribute_value): Likewise
6282 (var_decode_location): Add DW_OP_addrx
6283 (dwarf2_const_value_attr): Add DW_FORM_addrx
6284 (dump_die_shallow): Likewise
6285 (dwarf2_fetch_constant_bytes): Likewise
6286 (decode_locdesc): Add DW_OP_addrx
6287 (skip_form_bytes): Add DW_FORM_addrx
6289 2019-04-22 Ali Tamur <tamur@google.com>
6291 * MAINTAINERS (Write After Approval): Add self.
6293 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
6295 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6296 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6297 (open_symbol_file_object): Likewise.
6298 (svr4_default_sos): Add info parameter.
6299 (svr4_read_so_list): Likewise.
6300 (svr4_current_sos_direct): Adjust functions calls to pass down
6302 (svr4_current_sos_1): Add info parameter.
6303 (svr4_current_sos): Call get_svr4_info, pass info down to
6305 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6307 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6309 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6311 (probes_table_remove_objfile_probes): Likewise.
6312 (register_solib_event_probe): Add info parameter.
6313 (solist_update_incremental): Pass info parameter down to
6315 (disable_probes_interface): Add info parameter.
6316 (svr4_handle_solib_event): Pass current_program_space to
6317 get_svr4_info. Adjust disable_probes_interface cleanup.
6318 (svr4_create_probe_breakpoints): Add info parameter, pass it
6319 down to register_solib_event_probe.
6320 (svr4_create_solib_event_breakpoints): Add info parameter,
6321 pass it down to svr4_create_probe_breakpoints.
6322 (enable_break): Pass info down to
6323 svr4_create_solib_event_breakpoints.
6324 (svr4_solib_create_inferior_hook): Pass current_program_space to
6326 (svr4_clear_solib): Likewise.
6328 2019-04-22 Pedro Alves <palves@redhat.com>
6330 * solib-svr4.c (svr4_free_objfile_observer): New.
6331 (probe_and_action::objfile): New field.
6332 (probes_table_htab_remove_objfile_probes)
6333 (probes_table_remove_objfile_probes): New functions.
6334 (register_solib_event_probe): Add 'objfile' parameter. Store it
6335 in the new probe_and_action. Don't store the probe in 'lookup'.
6336 (svr4_create_probe_breakpoints): Pass objfile to
6337 register_solib_event_probe.
6338 (_initialize_svr4_solib): Register a free_objfile observer.
6340 2019-04-19 Tom Tromey <tom@tromey.com>
6342 * common/queue.h: Remove.
6344 2019-04-19 Tom Tromey <tom@tromey.com>
6346 * event-loop.c: Don't include "common/queue.h".
6348 2019-04-19 Tom Tromey <tom@tromey.com>
6350 * remote.c (remote_target): Use delete.
6351 * remote-notif.h: Include <list>, not "common/queue.h".
6352 (notif_client_p): Remove typedef.
6353 (remote_notif_state): Add constructor, destructor, initializer.
6354 <notif_queue>: Now a std::list.
6355 (remote_notif_state_xfree): Don't declare.
6356 * remote-notif.c (remote_notif_process, handle_notification)
6357 (remote_notif_state_allocate): Update.
6358 (~remote_notif_state): Rename from remote_notif_state_xfree.
6360 2019-04-19 Tom Tromey <tom@tromey.com>
6362 * symfile.c (reread_symbols): Update.
6363 * objfiles.c (objfile_register_static_link)
6364 (objfile_lookup_static_link): Update
6365 (~objfile) Don't delete static_links.
6366 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6368 2019-04-19 Tom Tromey <tom@tromey.com>
6370 * type-stack.h (struct type_stack) <insert>: Constify string.
6371 * type-stack.c (type_stack::insert): Constify string.
6372 * gdbtypes.h (lookup_template_type): Update.
6373 (address_space_name_to_int): Update.
6374 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6376 (lookup_template_type): Make name const.
6377 * c-exp.y: Update rules.
6378 (lex_one_token, classify_name, classify_inner_name)
6379 (c_print_token): Update.
6380 * p-exp.y: Update rules.
6382 * f-exp.y: Update rules.
6384 * d-exp.y: Update rules.
6385 (lex_one_token, classify_name, classify_inner_name): Update.
6386 * parse.c (write_dollar_variable, copy_name): Return std::string.
6387 * parser-defs.h (copy_name): Change return type.
6388 * m2-exp.y: Update rules.
6390 * go-exp.y (lex_one_token): Update.
6392 (classify_unsafe_function, classify_packaged_name)
6393 (classify_name, yylex): Update.
6395 2019-04-19 Sergei Trofimovich <siarheit@google.com>
6397 * configure.ac: add --enable-source-highlight switch.
6398 * configure: Regenerate.
6399 * top.c (print_gdb_version): plumb --enable-source-highlight
6400 status to "show configuration".
6402 2019-04-19 Tom Tromey <tromey@adacore.com>
6404 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6406 (empty_record, ada_template_to_fixed_record_type_1)
6407 (template_to_static_fixed_type)
6408 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6409 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6410 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6413 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6416 * source.c (print_source_lines_base): Advance "iter" when a
6417 control character is seen.
6419 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6421 * inferior.h (struct infcall_suspend_state_deleter):
6422 Catch exception in destructor to avoid crash.
6424 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6426 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6427 close to the add_com "shell".
6429 2019-04-18 Tom Tromey <tromey@adacore.com>
6431 * process-stratum-target.h (class process_stratum_target)
6432 <stratum>: Add "final".
6434 2019-04-17 Tom Tromey <tromey@adacore.com>
6436 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6437 against nullptr before use.
6439 2019-04-17 Alan Hayward <alan.hayward@arm.com>
6441 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6443 2019-04-17 Jim Wilson <jimw@sifive.com>
6444 Andrew Burgess <andrew.burgess@embecosm.com>
6446 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6447 code read might fail, assume 4-byte breakpoint in that case.
6449 2019-04-15 Leszek Swirski <leszeks@google.com>
6451 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6452 rather than a hand-rolled POD check when checking for forced MEMORY
6455 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6457 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6458 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6460 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6461 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6462 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6465 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6467 * aarch64-linux-nat.c
6468 (aarch64_linux_nat_target::thread_architecture): Add override.
6469 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6472 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6474 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6476 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6478 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6479 target types of size 96-bits, add some additional comments, and
6480 check that the builtin type we found was the correct size.
6482 2019-04-12 Eli Zaretskii <eliz@gnu.org>
6484 * utils.c (prompt_for_continue): Don't restore the styling at the
6485 end, as applied_style has the wrong value. This fixes styling in
6486 long lists of file names that are interrupted by the "Continue?"
6489 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6491 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6492 * c-lang.c (c_language_defn): Likewise.
6493 (cplus_language_defn): Likewise.
6494 (asm_language_defn): Likewise.
6495 (minimal_language_defn): Likewise.
6496 * d-lang.c (d_language_defn): Likewise.
6497 * f-lang.c (f_language_defn): Likewise.
6498 * go-lang.c (go_language_defn): Likewise.
6499 * language.c (unknown_language_defn): Likewise.
6500 (auto_language_defn): Likewise.
6501 * language.h (struct language_defn): Remove la_magic field.
6502 (LANG_MAGIC): Delete.
6503 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6504 * objc-lang.c (objc_language_defn): Likewise.
6505 * opencl-lang.c (opencl_language_defn): Likewise.
6506 * p-lang.c (pascal_language_defn): Likewise.
6507 * rust-lang.c (rust_language_defn): Likewise.
6509 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6511 * riscv-tdep.c (riscv_type_align): New function.
6512 (riscv_type_alignment): Delete.
6513 (riscv_arg_location): Use 'type_align'.
6514 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6516 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6518 * gdbtypes.c (type_align): A struct with no non-static fields also
6521 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6523 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6525 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6527 (riscv_struct_info::analyse): New implementation using new
6528 analyse_inner member function.
6529 (riscv_struct_info::field_offset): New member function.
6530 (riscv_struct_info::m_offsets): New member variable.
6531 (riscv_struct_info::analyse_inner): New private member function,
6532 takes the old implementation of riscv_struct_info::analyse but
6533 extended to track field offsets.
6534 (riscv_call_arg_struct): Update the struct folding special cases
6535 to handle cases where empty C++ structs, which are non-zero
6537 (riscv_arg_location): Initialise the length of each location, a
6538 non-zero length now indicates the location is in use.
6539 (riscv_push_dummy_call): Allow for the first location having a
6540 non-zero offset when setting up arguments.
6541 (riscv_return_value): Likewise, but for return values.
6543 2019-04-11 Tom Tromey <tromey@adacore.com>
6545 * utils.c (internal_vproblem): Make "msg" const.
6547 2019-04-11 Alan Hayward <alan.hayward@arm.com>
6549 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6550 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6551 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6552 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6554 2019-04-10 Kevin Buettner <kevinb@redhat.com>
6556 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6558 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6559 of amd64_collect_native_gregset.
6560 (amd64_linux_nat_target::store_registers): Likewise.
6562 2019-04-10 Tom Tromey <tom@tromey.com>
6564 * symtab.c (lookup_global_symbol_from_objfile)
6565 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6566 * objfiles.h (class separate_debug_iterator): New.
6567 (class separate_debug_range): New.
6568 (struct objfile) <separate_debug_objfiles>: New method.
6569 (objfile_separate_debug_iterate): Don't declare.
6570 * objfiles.c (separate_debug_iterator::operator++): Rename from
6571 objfile_separate_debug_iterate.
6572 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6574 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6577 2019-04-10 Tom Tromey <tom@tromey.com>
6579 * symfile.c (reread_symbols): Remove old comment.
6580 * objfiles.c (free_all_objfiles): Fix a typo.
6582 2019-04-10 Tom Tromey <tom@tromey.com>
6584 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6585 * minsyms.c (lookup_minimal_symbol): Use foreach.
6586 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6587 (lookup_minimal_symbol_solib_trampoline): Likewise.
6588 * symfile.c (reread_symbols): Use foreach.
6590 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
6591 Tom Tromey <tromey@adacore.com>
6594 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6595 (rust_lex_int_test): Change "value" to be LONGEST.
6596 (rust_lex_tests): Add test for long integer literal.
6598 2019-04-09 Tom Tromey <tromey@adacore.com>
6600 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6602 (extended_remote_target::attach): Update.
6603 (remote_target::remote_notice_new_inferior): Update.
6604 (remote_target::add_current_inferior_and_thread): Update.
6605 * inferior.c (exit_inferior_1): Use "false".
6606 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6608 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
6610 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6611 the "start" command.
6613 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6615 * python/py-inferior.c (infpy_thread_from_thread_handle):
6616 Adjust comments to reflect renaming of thread_from_thread_handle
6617 to thread_from_handle. Adjust keywords. Fix type error message.
6618 (inferior_object_methods): Add thread_from_handle. Retain
6619 thread_from_thread_handle, but mark it as deprecated.
6621 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6623 * gdbthread.h (find_thread_by_handle): Revise declaration.
6624 * thread.c (find_thread_by_handle): Likewise. Adjust
6626 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6627 support for buffer objects as handles.
6629 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6631 * python/py-infthread.c (thpy_thread_handle): New function.
6632 (thread_object_methods): Register thpy_thread_handle.
6634 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6636 * gdbthread.h (thread_to_thread_handle): Declare.
6637 * thread.c (gdbtypes.h): Include.
6638 (thread_to_thread_handle): New function.
6640 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6641 (target_thread_info_to_thread_handle): Declare.
6642 * target.c (target_thread_info_to_thread_handle): New function.
6643 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6644 * target-delegates.c: Regenerate.
6646 * linux-thread-db.c (class thread_db_target): Add method
6647 thread_info_to_thread_handle.
6648 (thread_db_target::thread_info_to_thread_handle): Define.
6649 * remote.c (class remote_target): Add new method
6650 thread_info_to_thread_handle.
6651 (remote_target::thread_info_to_thread_handle): Define.
6653 2019-04-08 Pedro Alves <palves@redhat.com>
6655 * common/common-exceptions.c (throw_exception): Don't create
6656 named object to throw; throw directly.
6657 (throw_it): Likewise. Don't initialize gdb_exception::message
6658 here, with new; pass FMT and AP to the ctor instead.
6659 * common/common-exceptions.h: Include <string>.
6660 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6661 const char *, va_list)): New ctor. Use std::make_shared.
6662 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6664 (gdb_exception_error::gdb_exception_error(enum errors, const char
6666 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6668 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6670 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6671 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6674 2019-04-08 Tom Tromey <tom@tromey.com>
6676 * valops.c (value_rtti_indirect_type): Replace throw_exception
6678 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6680 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6682 * target.c (target_translate_tls_address): Replace throw_exception
6684 * stack.c (frame_apply_command_count): Replace throw_exception
6686 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6688 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6690 * rs6000-tdep.c (rs6000_frame_cache)
6691 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6692 * remote.c: Replace throw_exception with throw.
6693 * record-full.c (record_full_message, record_full_wait_1)
6694 (record_full_restore): Replace throw_exception with throw.
6696 (get_thread_current_frame_id, record_btrace_start_replaying)
6697 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6698 (cmd_record_btrace_start): Replace throw_exception with throw.
6699 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6701 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6702 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6704 (find_linespec_symbols): Replace throw_exception with throw.
6705 * infrun.c (displaced_step_prepare, resume): Replace
6706 throw_exception with throw.
6707 * infcmd.c (post_create_inferior): Replace throw_exception with
6709 * inf-loop.c (inferior_event_handler): Replace throw_exception
6711 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6712 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6713 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6714 (get_prev_frame_always, get_frame_pc_if_available)
6715 (get_frame_address_in_block_if_available, get_frame_language):
6716 Replace throw_exception with throw.
6717 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6718 throw_exception with throw.
6719 * eval.c (fetch_subexp_value, evaluate_var_value)
6720 (evaluate_funcall, evaluate_subexp_standard): Replace
6721 throw_exception with throw.
6722 * dwarf2loc.c (call_site_find_chain)
6723 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6724 Replace throw_exception with throw.
6725 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6727 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6729 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6730 * completer.c (complete_line_internal): Replace throw_exception
6732 * compile/compile-object-run.c (compile_object_run): Replace
6733 throw_exception with throw.
6734 * cli/cli-script.c (process_next_line): Replace throw_exception
6736 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6737 (btrace_enable, btrace_maint_update_pt_packets): Replace
6738 throw_exception with throw.
6739 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6740 throw_exception with throw.
6741 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6742 throw_exception with throw.
6743 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6744 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6745 * aarch64-tdep.c (aarch64_make_prologue_cache)
6746 (aarch64_make_stub_cache): Replace throw_exception with throw.
6748 2019-04-08 Tom Tromey <tom@tromey.com>
6750 * common/common-exceptions.c (throw_exception): Rename from
6751 throw_exception_cxx. Remove old copy. Make argument const.
6752 (throw_it): Create and throw exception objects directly.
6753 * common/common-exceptions.h (throw_exception): Make argument
6755 (struct gdb_exception_error): Add constructor.
6756 (struct gdb_exception_quit): Add constructor.
6758 2019-04-08 Tom Tromey <tom@tromey.com>
6760 * common/common-exceptions.h (exception_rethrow): Don't declare.
6761 (TRY_SJLJ): Update comment.
6762 (TRY, CATCH, END_CATCH): Remove.
6763 * common/common-exceptions.c (exception_rethrow): Remove.
6765 2019-04-08 Tom Tromey <tom@tromey.com>
6767 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6769 (gdb_exception_error): Rename from
6770 gdb_exception_RETURN_MASK_ERROR.
6771 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6772 (gdb_quit_bad_alloc): Update.
6773 * aarch64-tdep.c: Update.
6774 * ada-lang.c: Update.
6775 * ada-typeprint.c: Update.
6776 * ada-valprint.c: Update.
6777 * amd64-tdep.c: Update.
6778 * arch-utils.c: Update.
6779 * break-catch-throw.c: Update.
6780 * breakpoint.c: Update.
6782 * c-varobj.c: Update.
6783 * cli/cli-cmds.c: Update.
6784 * cli/cli-interp.c: Update.
6785 * cli/cli-script.c: Update.
6786 * common/common-exceptions.c: Update.
6787 * common/new-op.c: Update.
6788 * common/selftest.c: Update.
6789 * compile/compile-c-symbols.c: Update.
6790 * compile/compile-cplus-symbols.c: Update.
6791 * compile/compile-object-load.c: Update.
6792 * compile/compile-object-run.c: Update.
6793 * completer.c: Update.
6794 * corelow.c: Update.
6796 * cp-support.c: Update.
6797 * cp-valprint.c: Update.
6798 * darwin-nat.c: Update.
6799 * disasm-selftests.c: Update.
6800 * dtrace-probe.c: Update.
6801 * dwarf-index-cache.c: Update.
6802 * dwarf-index-write.c: Update.
6803 * dwarf2-frame-tailcall.c: Update.
6804 * dwarf2-frame.c: Update.
6805 * dwarf2loc.c: Update.
6806 * dwarf2read.c: Update.
6808 * event-loop.c: Update.
6809 * event-top.c: Update.
6811 * f-valprint.c: Update.
6812 * fbsd-tdep.c: Update.
6813 * frame-unwind.c: Update.
6815 * gdbtypes.c: Update.
6816 * gnu-v3-abi.c: Update.
6817 * guile/guile-internal.h: Update.
6818 * guile/scm-block.c: Update.
6819 * guile/scm-breakpoint.c: Update.
6820 * guile/scm-cmd.c: Update.
6821 * guile/scm-disasm.c: Update.
6822 * guile/scm-frame.c: Update.
6823 * guile/scm-lazy-string.c: Update.
6824 * guile/scm-math.c: Update.
6825 * guile/scm-param.c: Update.
6826 * guile/scm-ports.c: Update.
6827 * guile/scm-pretty-print.c: Update.
6828 * guile/scm-symbol.c: Update.
6829 * guile/scm-symtab.c: Update.
6830 * guile/scm-type.c: Update.
6831 * guile/scm-value.c: Update.
6832 * i386-linux-tdep.c: Update.
6833 * i386-tdep.c: Update.
6834 * inf-loop.c: Update.
6835 * infcall.c: Update.
6839 * language.c: Update.
6840 * linespec.c: Update.
6841 * linux-fork.c: Update.
6842 * linux-nat.c: Update.
6843 * linux-tdep.c: Update.
6844 * linux-thread-db.c: Update.
6846 * mi/mi-cmd-break.c: Update.
6847 * mi/mi-cmd-stack.c: Update.
6848 * mi/mi-interp.c: Update.
6849 * mi/mi-main.c: Update.
6850 * objc-lang.c: Update.
6851 * p-valprint.c: Update.
6853 * ppc-linux-tdep.c: Update.
6854 * printcmd.c: Update.
6855 * python/py-arch.c: Update.
6856 * python/py-breakpoint.c: Update.
6857 * python/py-cmd.c: Update.
6858 * python/py-finishbreakpoint.c: Update.
6859 * python/py-frame.c: Update.
6860 * python/py-framefilter.c: Update.
6861 * python/py-gdb-readline.c: Update.
6862 * python/py-inferior.c: Update.
6863 * python/py-infthread.c: Update.
6864 * python/py-lazy-string.c: Update.
6865 * python/py-linetable.c: Update.
6866 * python/py-objfile.c: Update.
6867 * python/py-param.c: Update.
6868 * python/py-prettyprint.c: Update.
6869 * python/py-progspace.c: Update.
6870 * python/py-record-btrace.c: Update.
6871 * python/py-record.c: Update.
6872 * python/py-symbol.c: Update.
6873 * python/py-type.c: Update.
6874 * python/py-unwind.c: Update.
6875 * python/py-utils.c: Update.
6876 * python/py-value.c: Update.
6877 * python/python.c: Update.
6878 * record-btrace.c: Update.
6879 * record-full.c: Update.
6880 * remote-fileio.c: Update.
6882 * riscv-tdep.c: Update.
6883 * rs6000-aix-tdep.c: Update.
6884 * rs6000-tdep.c: Update.
6885 * rust-exp.y: Update.
6886 * rust-lang.c: Update.
6887 * s390-tdep.c: Update.
6888 * selftest-arch.c: Update.
6889 * solib-dsbt.c: Update.
6890 * solib-frv.c: Update.
6891 * solib-spu.c: Update.
6892 * solib-svr4.c: Update.
6894 * sparc64-linux-tdep.c: Update.
6896 * symfile-mem.c: Update.
6897 * symmisc.c: Update.
6901 * tracefile-tfile.c: Update.
6902 * tui/tui.c: Update.
6903 * typeprint.c: Update.
6904 * unittests/cli-utils-selftests.c: Update.
6905 * unittests/parse-connection-spec-selftests.c: Update.
6907 * valprint.c: Update.
6910 * windows-nat.c: Update.
6911 * x86-linux-nat.c: Update.
6912 * xml-support.c: Update.
6914 2019-04-08 Tom Tromey <tom@tromey.com>
6916 * xml-support.c: Use C++ exception handling.
6917 * x86-linux-nat.c: Use C++ exception handling.
6918 * windows-nat.c: Use C++ exception handling.
6919 * varobj.c: Use C++ exception handling.
6920 * value.c: Use C++ exception handling.
6921 * valprint.c: Use C++ exception handling.
6922 * valops.c: Use C++ exception handling.
6923 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6925 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6926 * typeprint.c: Use C++ exception handling.
6927 * tui/tui.c: Use C++ exception handling.
6928 * tracefile-tfile.c: Use C++ exception handling.
6929 * top.c: Use C++ exception handling.
6930 * thread.c: Use C++ exception handling.
6931 * target.c: Use C++ exception handling.
6932 * symmisc.c: Use C++ exception handling.
6933 * symfile-mem.c: Use C++ exception handling.
6934 * stack.c: Use C++ exception handling.
6935 * sparc64-linux-tdep.c: Use C++ exception handling.
6936 * solib.c: Use C++ exception handling.
6937 * solib-svr4.c: Use C++ exception handling.
6938 * solib-spu.c: Use C++ exception handling.
6939 * solib-frv.c: Use C++ exception handling.
6940 * solib-dsbt.c: Use C++ exception handling.
6941 * selftest-arch.c: Use C++ exception handling.
6942 * s390-tdep.c: Use C++ exception handling.
6943 * rust-lang.c: Use C++ exception handling.
6944 * rust-exp.y: Use C++ exception handling.
6945 * rs6000-tdep.c: Use C++ exception handling.
6946 * rs6000-aix-tdep.c: Use C++ exception handling.
6947 * riscv-tdep.c: Use C++ exception handling.
6948 * remote.c: Use C++ exception handling.
6949 * remote-fileio.c: Use C++ exception handling.
6950 * record-full.c: Use C++ exception handling.
6951 * record-btrace.c: Use C++ exception handling.
6952 * python/python.c: Use C++ exception handling.
6953 * python/py-value.c: Use C++ exception handling.
6954 * python/py-utils.c: Use C++ exception handling.
6955 * python/py-unwind.c: Use C++ exception handling.
6956 * python/py-type.c: Use C++ exception handling.
6957 * python/py-symbol.c: Use C++ exception handling.
6958 * python/py-record.c: Use C++ exception handling.
6959 * python/py-record-btrace.c: Use C++ exception handling.
6960 * python/py-progspace.c: Use C++ exception handling.
6961 * python/py-prettyprint.c: Use C++ exception handling.
6962 * python/py-param.c: Use C++ exception handling.
6963 * python/py-objfile.c: Use C++ exception handling.
6964 * python/py-linetable.c: Use C++ exception handling.
6965 * python/py-lazy-string.c: Use C++ exception handling.
6966 * python/py-infthread.c: Use C++ exception handling.
6967 * python/py-inferior.c: Use C++ exception handling.
6968 * python/py-gdb-readline.c: Use C++ exception handling.
6969 * python/py-framefilter.c: Use C++ exception handling.
6970 * python/py-frame.c: Use C++ exception handling.
6971 * python/py-finishbreakpoint.c: Use C++ exception handling.
6972 * python/py-cmd.c: Use C++ exception handling.
6973 * python/py-breakpoint.c: Use C++ exception handling.
6974 * python/py-arch.c: Use C++ exception handling.
6975 * printcmd.c: Use C++ exception handling.
6976 * ppc-linux-tdep.c: Use C++ exception handling.
6977 * parse.c: Use C++ exception handling.
6978 * p-valprint.c: Use C++ exception handling.
6979 * objc-lang.c: Use C++ exception handling.
6980 * mi/mi-main.c: Use C++ exception handling.
6981 * mi/mi-interp.c: Use C++ exception handling.
6982 * mi/mi-cmd-stack.c: Use C++ exception handling.
6983 * mi/mi-cmd-break.c: Use C++ exception handling.
6984 * main.c: Use C++ exception handling.
6985 * linux-thread-db.c: Use C++ exception handling.
6986 * linux-tdep.c: Use C++ exception handling.
6987 * linux-nat.c: Use C++ exception handling.
6988 * linux-fork.c: Use C++ exception handling.
6989 * linespec.c: Use C++ exception handling.
6990 * language.c: Use C++ exception handling.
6991 * jit.c: Use C++ exception handling.
6992 * infrun.c: Use C++ exception handling.
6993 * infcmd.c: Use C++ exception handling.
6994 * infcall.c: Use C++ exception handling.
6995 * inf-loop.c: Use C++ exception handling.
6996 * i386-tdep.c: Use C++ exception handling.
6997 * i386-linux-tdep.c: Use C++ exception handling.
6998 * guile/scm-value.c: Use C++ exception handling.
6999 * guile/scm-type.c: Use C++ exception handling.
7000 * guile/scm-symtab.c: Use C++ exception handling.
7001 * guile/scm-symbol.c: Use C++ exception handling.
7002 * guile/scm-pretty-print.c: Use C++ exception handling.
7003 * guile/scm-ports.c: Use C++ exception handling.
7004 * guile/scm-param.c: Use C++ exception handling.
7005 * guile/scm-math.c: Use C++ exception handling.
7006 * guile/scm-lazy-string.c: Use C++ exception handling.
7007 * guile/scm-frame.c: Use C++ exception handling.
7008 * guile/scm-disasm.c: Use C++ exception handling.
7009 * guile/scm-cmd.c: Use C++ exception handling.
7010 * guile/scm-breakpoint.c: Use C++ exception handling.
7011 * guile/scm-block.c: Use C++ exception handling.
7012 * guile/guile-internal.h: Use C++ exception handling.
7013 * gnu-v3-abi.c: Use C++ exception handling.
7014 * gdbtypes.c: Use C++ exception handling.
7015 * frame.c: Use C++ exception handling.
7016 * frame-unwind.c: Use C++ exception handling.
7017 * fbsd-tdep.c: Use C++ exception handling.
7018 * f-valprint.c: Use C++ exception handling.
7019 * exec.c: Use C++ exception handling.
7020 * event-top.c: Use C++ exception handling.
7021 * event-loop.c: Use C++ exception handling.
7022 * eval.c: Use C++ exception handling.
7023 * dwarf2read.c: Use C++ exception handling.
7024 * dwarf2loc.c: Use C++ exception handling.
7025 * dwarf2-frame.c: Use C++ exception handling.
7026 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7027 * dwarf-index-write.c: Use C++ exception handling.
7028 * dwarf-index-cache.c: Use C++ exception handling.
7029 * dtrace-probe.c: Use C++ exception handling.
7030 * disasm-selftests.c: Use C++ exception handling.
7031 * darwin-nat.c: Use C++ exception handling.
7032 * cp-valprint.c: Use C++ exception handling.
7033 * cp-support.c: Use C++ exception handling.
7034 * cp-abi.c: Use C++ exception handling.
7035 * corelow.c: Use C++ exception handling.
7036 * completer.c: Use C++ exception handling.
7037 * compile/compile-object-run.c: Use C++ exception handling.
7038 * compile/compile-object-load.c: Use C++ exception handling.
7039 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7040 * compile/compile-c-symbols.c: Use C++ exception handling.
7041 * common/selftest.c: Use C++ exception handling.
7042 * common/new-op.c: Use C++ exception handling.
7043 * cli/cli-script.c: Use C++ exception handling.
7044 * cli/cli-interp.c: Use C++ exception handling.
7045 * cli/cli-cmds.c: Use C++ exception handling.
7046 * c-varobj.c: Use C++ exception handling.
7047 * btrace.c: Use C++ exception handling.
7048 * breakpoint.c: Use C++ exception handling.
7049 * break-catch-throw.c: Use C++ exception handling.
7050 * arch-utils.c: Use C++ exception handling.
7051 * amd64-tdep.c: Use C++ exception handling.
7052 * ada-valprint.c: Use C++ exception handling.
7053 * ada-typeprint.c: Use C++ exception handling.
7054 * ada-lang.c: Use C++ exception handling.
7055 * aarch64-tdep.c: Use C++ exception handling.
7057 2019-04-08 Tom Tromey <tom@tromey.com>
7059 * xml-support.c (gdb_xml_parser::parse): Update.
7060 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7061 * value.c (show_convenience): Update.
7062 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7063 (test_parse_flags_qcs): Update.
7064 * thread.c (thr_try_catch_cmd): Update.
7065 * target.c (target_translate_tls_address): Update.
7066 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7067 (info_frame_command_core, frame_apply_command_count): Update.
7068 * rust-exp.y (rust_lex_exception_test): Update.
7069 * riscv-tdep.c (riscv_print_one_register_info): Update.
7070 * remote.c (remote_target::enable_btrace): Update.
7071 * record-btrace.c (record_btrace_enable_warn): Update.
7072 * python/py-utils.c (gdbpy_convert_exception): Update.
7073 * printcmd.c (do_one_display, print_variable_and_value): Update.
7074 * mi/mi-main.c (mi_print_exception): Update.
7075 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7076 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7077 * linux-nat.c (linux_nat_target::attach): Update.
7078 * linux-fork.c (class scoped_switch_fork_info): Update.
7079 * infrun.c (displaced_step_prepare): Update.
7080 * infcall.c (call_function_by_hand_dummy): Update.
7081 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7082 * gnu-v3-abi.c (print_one_vtable): Update.
7083 * frame.c (get_prev_frame_always): Update.
7084 * f-valprint.c (info_common_command_for_block): Update.
7085 * exec.c (try_open_exec_file): Update.
7086 * exceptions.c (print_exception, exception_print)
7087 (exception_fprintf, exception_print_same): Update.
7088 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7089 * dwarf-index-cache.c (index_cache::store)
7090 (index_cache::lookup_gdb_index): Update.
7091 * darwin-nat.c (maybe_cache_shell): Update.
7092 * cp-valprint.c (cp_print_value_fields): Update.
7093 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7094 (gcc_cplus_symbol_address): Update.
7095 * compile/compile-c-symbols.c (gcc_convert_symbol)
7096 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7097 * common/selftest.c: Update.
7098 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7100 (exception_try_scope_entry, exception_try_scope_exit): Don't
7102 (struct exception_try_scope): Remove.
7103 (TRY): Don't use exception_try_scope.
7104 (struct gdb_exception): Add constructor, operator=.
7106 (struct gdb_exception_RETURN_MASK_ALL)
7107 (struct gdb_exception_RETURN_MASK_ERROR)
7108 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7109 (struct gdb_quit_bad_alloc): Update.
7110 * common/common-exceptions.c (exception_none): Change
7112 (struct catcher) <state, exception>: Initialize inline.
7113 <prev>: Remove member.
7114 (current_catcher): Remove.
7115 (catchers): New global.
7116 (exceptions_state_mc_init): Simplify.
7117 (catcher_pop): Remove.
7118 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7119 (try_scope_depth, exception_try_scope_entry)
7120 (exception_try_scope_exit): Remove.
7121 (throw_exception_sjlj): Update.
7122 (exception_messages, exception_messages_size): Remove.
7123 (throw_it): Simplify.
7124 (gdb_exception_sliced_copy): Remove.
7125 (throw_exception_cxx): Update.
7126 * cli/cli-script.c (script_from_file): Update.
7127 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7129 * ada-valprint.c (ada_val_print): Update.
7130 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7131 (create_excep_cond_exprs): Update.
7133 2019-04-08 Tom Tromey <tom@tromey.com>
7135 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7136 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7137 (TRY, CATCH, END_CATCH): Remove some definitions.
7138 * common/common-exceptions.c: Don't use GDB_XCPT.
7139 (catcher_list_size): Remove.
7140 (throw_exception, throw_it): Simplify.
7142 2019-04-05 Tom Tromey <tom@tromey.com>
7144 Revert the header-sorting patch.
7145 * ft32-tdep.c: Revert.
7146 * frv-tdep.c: Revert.
7147 * frv-linux-tdep.c: Revert.
7149 * frame-unwind.c: Revert.
7150 * frame-base.c: Revert.
7151 * fork-child.c: Revert.
7152 * findvar.c: Revert.
7153 * findcmd.c: Revert.
7154 * filesystem.c: Revert.
7155 * filename-seen-cache.h: Revert.
7156 * filename-seen-cache.c: Revert.
7157 * fbsd-tdep.c: Revert.
7158 * fbsd-nat.h: Revert.
7159 * fbsd-nat.c: Revert.
7160 * f-valprint.c: Revert.
7161 * f-typeprint.c: Revert.
7163 * extension.h: Revert.
7164 * extension.c: Revert.
7165 * extension-priv.h: Revert.
7166 * expprint.c: Revert.
7169 * exceptions.c: Revert.
7170 * event-top.c: Revert.
7171 * event-loop.c: Revert.
7173 * elfread.c: Revert.
7174 * dwarf2read.h: Revert.
7175 * dwarf2read.c: Revert.
7176 * dwarf2loc.c: Revert.
7177 * dwarf2expr.h: Revert.
7178 * dwarf2expr.c: Revert.
7179 * dwarf2-frame.c: Revert.
7180 * dwarf2-frame-tailcall.c: Revert.
7181 * dwarf-index-write.h: Revert.
7182 * dwarf-index-write.c: Revert.
7183 * dwarf-index-common.c: Revert.
7184 * dwarf-index-cache.h: Revert.
7185 * dwarf-index-cache.c: Revert.
7186 * dummy-frame.c: Revert.
7187 * dtrace-probe.c: Revert.
7190 * disasm-selftests.c: Revert.
7191 * dictionary.c: Revert.
7192 * dicos-tdep.c: Revert.
7193 * demangle.c: Revert.
7196 * darwin-nat.h: Revert.
7197 * darwin-nat.c: Revert.
7198 * darwin-nat-info.c: Revert.
7199 * d-valprint.c: Revert.
7200 * d-namespace.c: Revert.
7203 * csky-tdep.c: Revert.
7204 * csky-linux-tdep.c: Revert.
7205 * cris-tdep.c: Revert.
7206 * cris-linux-tdep.c: Revert.
7207 * cp-valprint.c: Revert.
7208 * cp-support.c: Revert.
7209 * cp-namespace.c: Revert.
7211 * corelow.c: Revert.
7212 * corefile.c: Revert.
7213 * continuations.c: Revert.
7214 * completer.h: Revert.
7215 * completer.c: Revert.
7216 * complaints.c: Revert.
7217 * coffread.c: Revert.
7218 * coff-pe-read.c: Revert.
7219 * cli-out.h: Revert.
7220 * cli-out.c: Revert.
7221 * charset.c: Revert.
7222 * c-varobj.c: Revert.
7223 * c-valprint.c: Revert.
7224 * c-typeprint.c: Revert.
7226 * buildsym.c: Revert.
7227 * buildsym-legacy.c: Revert.
7228 * build-id.h: Revert.
7229 * build-id.c: Revert.
7231 * bsd-uthread.c: Revert.
7232 * breakpoint.h: Revert.
7233 * breakpoint.c: Revert.
7234 * break-catch-throw.c: Revert.
7235 * break-catch-syscall.c: Revert.
7236 * break-catch-sig.c: Revert.
7237 * blockframe.c: Revert.
7239 * bfin-tdep.c: Revert.
7240 * bfin-linux-tdep.c: Revert.
7241 * bfd-target.c: Revert.
7243 * ax-general.c: Revert.
7246 * avr-tdep.c: Revert.
7248 * auto-load.c: Revert.
7249 * arm-wince-tdep.c: Revert.
7250 * arm-tdep.c: Revert.
7251 * arm-symbian-tdep.c: Revert.
7252 * arm-pikeos-tdep.c: Revert.
7253 * arm-obsd-tdep.c: Revert.
7254 * arm-nbsd-tdep.c: Revert.
7255 * arm-nbsd-nat.c: Revert.
7256 * arm-linux-tdep.c: Revert.
7257 * arm-linux-nat.c: Revert.
7258 * arm-fbsd-tdep.c: Revert.
7259 * arm-fbsd-nat.c: Revert.
7260 * arm-bsd-tdep.c: Revert.
7261 * arch-utils.c: Revert.
7262 * arc-tdep.c: Revert.
7263 * arc-newlib-tdep.c: Revert.
7264 * annotate.h: Revert.
7265 * annotate.c: Revert.
7266 * amd64-windows-tdep.c: Revert.
7267 * amd64-windows-nat.c: Revert.
7268 * amd64-tdep.c: Revert.
7269 * amd64-sol2-tdep.c: Revert.
7270 * amd64-obsd-tdep.c: Revert.
7271 * amd64-obsd-nat.c: Revert.
7272 * amd64-nbsd-tdep.c: Revert.
7273 * amd64-nbsd-nat.c: Revert.
7274 * amd64-nat.c: Revert.
7275 * amd64-linux-tdep.c: Revert.
7276 * amd64-linux-nat.c: Revert.
7277 * amd64-fbsd-tdep.c: Revert.
7278 * amd64-fbsd-nat.c: Revert.
7279 * amd64-dicos-tdep.c: Revert.
7280 * amd64-darwin-tdep.c: Revert.
7281 * amd64-bsd-nat.c: Revert.
7282 * alpha-tdep.c: Revert.
7283 * alpha-obsd-tdep.c: Revert.
7284 * alpha-nbsd-tdep.c: Revert.
7285 * alpha-mdebug-tdep.c: Revert.
7286 * alpha-linux-tdep.c: Revert.
7287 * alpha-linux-nat.c: Revert.
7288 * alpha-bsd-tdep.c: Revert.
7289 * alpha-bsd-nat.c: Revert.
7290 * aix-thread.c: Revert.
7292 * addrmap.c: Revert.
7293 * ada-varobj.c: Revert.
7294 * ada-valprint.c: Revert.
7295 * ada-typeprint.c: Revert.
7296 * ada-tasks.c: Revert.
7297 * ada-lang.c: Revert.
7298 * aarch64-tdep.c: Revert.
7299 * aarch64-ravenscar-thread.c: Revert.
7300 * aarch64-newlib-tdep.c: Revert.
7301 * aarch64-linux-tdep.c: Revert.
7302 * aarch64-linux-nat.c: Revert.
7303 * aarch64-fbsd-tdep.c: Revert.
7304 * aarch64-fbsd-nat.c: Revert.
7305 * aarch32-linux-nat.c: Revert.
7307 2019-04-05 Tom Tromey <tom@tromey.com>
7309 * ft32-tdep.c: Sort headers.
7310 * frv-tdep.c: Sort headers.
7311 * frv-linux-tdep.c: Sort headers.
7312 * frame.c: Sort headers.
7313 * frame-unwind.c: Sort headers.
7314 * frame-base.c: Sort headers.
7315 * fork-child.c: Sort headers.
7316 * findvar.c: Sort headers.
7317 * findcmd.c: Sort headers.
7318 * filesystem.c: Sort headers.
7319 * filename-seen-cache.h: Sort headers.
7320 * filename-seen-cache.c: Sort headers.
7321 * fbsd-tdep.c: Sort headers.
7322 * fbsd-nat.h: Sort headers.
7323 * fbsd-nat.c: Sort headers.
7324 * f-valprint.c: Sort headers.
7325 * f-typeprint.c: Sort headers.
7326 * f-lang.c: Sort headers.
7327 * extension.h: Sort headers.
7328 * extension.c: Sort headers.
7329 * extension-priv.h: Sort headers.
7330 * expprint.c: Sort headers.
7331 * exec.h: Sort headers.
7332 * exec.c: Sort headers.
7333 * exceptions.c: Sort headers.
7334 * event-top.c: Sort headers.
7335 * event-loop.c: Sort headers.
7336 * eval.c: Sort headers.
7337 * elfread.c: Sort headers.
7338 * dwarf2read.h: Sort headers.
7339 * dwarf2read.c: Sort headers.
7340 * dwarf2loc.c: Sort headers.
7341 * dwarf2expr.h: Sort headers.
7342 * dwarf2expr.c: Sort headers.
7343 * dwarf2-frame.c: Sort headers.
7344 * dwarf2-frame-tailcall.c: Sort headers.
7345 * dwarf-index-write.h: Sort headers.
7346 * dwarf-index-write.c: Sort headers.
7347 * dwarf-index-common.c: Sort headers.
7348 * dwarf-index-cache.h: Sort headers.
7349 * dwarf-index-cache.c: Sort headers.
7350 * dummy-frame.c: Sort headers.
7351 * dtrace-probe.c: Sort headers.
7352 * disasm.h: Sort headers.
7353 * disasm.c: Sort headers.
7354 * disasm-selftests.c: Sort headers.
7355 * dictionary.c: Sort headers.
7356 * dicos-tdep.c: Sort headers.
7357 * demangle.c: Sort headers.
7358 * dcache.h: Sort headers.
7359 * dcache.c: Sort headers.
7360 * darwin-nat.h: Sort headers.
7361 * darwin-nat.c: Sort headers.
7362 * darwin-nat-info.c: Sort headers.
7363 * d-valprint.c: Sort headers.
7364 * d-namespace.c: Sort headers.
7365 * d-lang.c: Sort headers.
7366 * ctf.c: Sort headers.
7367 * csky-tdep.c: Sort headers.
7368 * csky-linux-tdep.c: Sort headers.
7369 * cris-tdep.c: Sort headers.
7370 * cris-linux-tdep.c: Sort headers.
7371 * cp-valprint.c: Sort headers.
7372 * cp-support.c: Sort headers.
7373 * cp-namespace.c: Sort headers.
7374 * cp-abi.c: Sort headers.
7375 * corelow.c: Sort headers.
7376 * corefile.c: Sort headers.
7377 * continuations.c: Sort headers.
7378 * completer.h: Sort headers.
7379 * completer.c: Sort headers.
7380 * complaints.c: Sort headers.
7381 * coffread.c: Sort headers.
7382 * coff-pe-read.c: Sort headers.
7383 * cli-out.h: Sort headers.
7384 * cli-out.c: Sort headers.
7385 * charset.c: Sort headers.
7386 * c-varobj.c: Sort headers.
7387 * c-valprint.c: Sort headers.
7388 * c-typeprint.c: Sort headers.
7389 * c-lang.c: Sort headers.
7390 * buildsym.c: Sort headers.
7391 * buildsym-legacy.c: Sort headers.
7392 * build-id.h: Sort headers.
7393 * build-id.c: Sort headers.
7394 * btrace.c: Sort headers.
7395 * bsd-uthread.c: Sort headers.
7396 * breakpoint.h: Sort headers.
7397 * breakpoint.c: Sort headers.
7398 * break-catch-throw.c: Sort headers.
7399 * break-catch-syscall.c: Sort headers.
7400 * break-catch-sig.c: Sort headers.
7401 * blockframe.c: Sort headers.
7402 * block.c: Sort headers.
7403 * bfin-tdep.c: Sort headers.
7404 * bfin-linux-tdep.c: Sort headers.
7405 * bfd-target.c: Sort headers.
7406 * bcache.c: Sort headers.
7407 * ax-general.c: Sort headers.
7408 * ax-gdb.h: Sort headers.
7409 * ax-gdb.c: Sort headers.
7410 * avr-tdep.c: Sort headers.
7411 * auxv.c: Sort headers.
7412 * auto-load.c: Sort headers.
7413 * arm-wince-tdep.c: Sort headers.
7414 * arm-tdep.c: Sort headers.
7415 * arm-symbian-tdep.c: Sort headers.
7416 * arm-pikeos-tdep.c: Sort headers.
7417 * arm-obsd-tdep.c: Sort headers.
7418 * arm-nbsd-tdep.c: Sort headers.
7419 * arm-nbsd-nat.c: Sort headers.
7420 * arm-linux-tdep.c: Sort headers.
7421 * arm-linux-nat.c: Sort headers.
7422 * arm-fbsd-tdep.c: Sort headers.
7423 * arm-fbsd-nat.c: Sort headers.
7424 * arm-bsd-tdep.c: Sort headers.
7425 * arch-utils.c: Sort headers.
7426 * arc-tdep.c: Sort headers.
7427 * arc-newlib-tdep.c: Sort headers.
7428 * annotate.h: Sort headers.
7429 * annotate.c: Sort headers.
7430 * amd64-windows-tdep.c: Sort headers.
7431 * amd64-windows-nat.c: Sort headers.
7432 * amd64-tdep.c: Sort headers.
7433 * amd64-sol2-tdep.c: Sort headers.
7434 * amd64-obsd-tdep.c: Sort headers.
7435 * amd64-obsd-nat.c: Sort headers.
7436 * amd64-nbsd-tdep.c: Sort headers.
7437 * amd64-nbsd-nat.c: Sort headers.
7438 * amd64-nat.c: Sort headers.
7439 * amd64-linux-tdep.c: Sort headers.
7440 * amd64-linux-nat.c: Sort headers.
7441 * amd64-fbsd-tdep.c: Sort headers.
7442 * amd64-fbsd-nat.c: Sort headers.
7443 * amd64-dicos-tdep.c: Sort headers.
7444 * amd64-darwin-tdep.c: Sort headers.
7445 * amd64-bsd-nat.c: Sort headers.
7446 * alpha-tdep.c: Sort headers.
7447 * alpha-obsd-tdep.c: Sort headers.
7448 * alpha-nbsd-tdep.c: Sort headers.
7449 * alpha-mdebug-tdep.c: Sort headers.
7450 * alpha-linux-tdep.c: Sort headers.
7451 * alpha-linux-nat.c: Sort headers.
7452 * alpha-bsd-tdep.c: Sort headers.
7453 * alpha-bsd-nat.c: Sort headers.
7454 * aix-thread.c: Sort headers.
7455 * agent.c: Sort headers.
7456 * addrmap.c: Sort headers.
7457 * ada-varobj.c: Sort headers.
7458 * ada-valprint.c: Sort headers.
7459 * ada-typeprint.c: Sort headers.
7460 * ada-tasks.c: Sort headers.
7461 * ada-lang.c: Sort headers.
7462 * aarch64-tdep.c: Sort headers.
7463 * aarch64-ravenscar-thread.c: Sort headers.
7464 * aarch64-newlib-tdep.c: Sort headers.
7465 * aarch64-linux-tdep.c: Sort headers.
7466 * aarch64-linux-nat.c: Sort headers.
7467 * aarch64-fbsd-tdep.c: Sort headers.
7468 * aarch64-fbsd-nat.c: Sort headers.
7469 * aarch32-linux-nat.c: Sort headers.
7471 2019-04-04 Tom Tromey <tom@tromey.com>
7473 * varobj.c (varobj_create): Update.
7474 * rust-exp.y (struct rust_parser) <update_innermost_block,
7475 lookup_symbol>: New methods.
7476 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7478 (rust_parser::rust_lookup_type)
7479 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7480 * printcmd.c (display_command, do_one_display): Update.
7481 * parser-defs.h (struct parser_state) <parser_state>: Add
7482 "tracker" parameter.
7483 (block_tracker): New member.
7484 (class innermost_block_tracker) <innermost_block_tracker>: Add
7486 <reset>: Remove method.
7487 (innermost_block): Don't declare.
7488 (null_post_parser): Update.
7489 * parse.c (innermost_block): Remove global.
7490 (write_dollar_variable): Update.
7491 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7492 Remove "tracker_types" parameter.
7493 (parse_expression): Add "tracker" parameter.
7494 (parse_expression_for_completion): Update.
7495 (null_post_parser): Add "tracker" parameter.
7496 * p-exp.y: Update rules.
7497 * m2-exp.y: Update rules.
7498 * language.h (struct language_defn) <la_post_parser>: Add
7499 "tracker" parameter.
7500 * go-exp.y: Update rules.
7501 * f-exp.y: Update rules.
7502 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7504 * d-exp.y: Update rules.
7505 * c-exp.y: Update rules.
7506 * breakpoint.c (set_breakpoint_condition): Create an
7507 innermost_block_tracker.
7508 (watch_command_1): Likewise.
7509 * ada-lang.c (resolve): Add "tracker" parameter.
7510 (resolve_subexp): Likewise.
7511 * ada-exp.y (write_var_from_sym): Update.
7513 2019-04-04 Tom Tromey <tom@tromey.com>
7515 * type-stack.h: New file.
7516 * type-stack.c: New file.
7517 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7519 (insert_into_type_stack, insert_type, push_type, push_type_int)
7520 (insert_type_address_space, pop_type, pop_type_int)
7521 (pop_typelist, pop_type_stack, append_type_stack)
7522 (push_type_stack, get_type_stack, push_typelist)
7523 (follow_type_instance_flags, follow_types): Don't declare.
7524 * parse.c (type_stack): Remove global.
7525 (parse_exp_in_context): Update.
7526 (insert_into_type_stack, insert_type, push_type, push_type_int)
7527 (insert_type_address_space, pop_type, pop_type_int)
7528 (pop_typelist, pop_type_stack, append_type_stack)
7529 (push_type_stack, get_type_stack, push_typelist)
7530 (follow_type_instance_flags, follow_types): Remove (moved to
7532 * f-exp.y (type_stack): New global.
7534 (push_kind_type, f_parse): Update.
7535 * d-exp.y (type_stack): New global.
7538 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7540 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7541 (HFILES_NO_SRCDIR): Add type-stack.h.
7543 2019-04-04 Tom Tromey <tom@tromey.com>
7545 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7546 (rust_parser::convert_ast_to_expression, rust_parse)
7547 (rust_lex_test_completion, rust_lex_tests): Update.
7548 * parser-defs.h (struct expr_completion_state): New.
7549 (struct parser_state) <parser_state>: Add completion parameter.
7550 <mark_struct_expression, mark_completion_tag>: New methods.
7551 <parse_completion, m_completion_state>: New members.
7552 (prefixify_expression, null_post_parser): Update.
7553 (mark_struct_expression, mark_completion_tag): Don't declare.
7554 * parse.c (parse_completion, expout_last_struct)
7555 (expout_tag_completion_type, expout_completion_name): Remove
7557 (parser_state::mark_struct_expression)
7558 (parser_state::mark_completion_tag): Now methods.
7559 (prefixify_expression): Add last_struct parameter.
7560 (prefixify_subexp): Likewise.
7561 (parse_exp_1): Update.
7562 (parse_exp_in_context): Add cstate parameter. Update.
7563 (parse_expression_for_completion): Create an
7564 expr_completion_state.
7565 (null_post_parser): Add "completion" parameter.
7566 * p-exp.y: Update rules.
7568 * language.h (struct language_defn) <la_post_parser>: Add
7569 "completing" parameter.
7570 * go-exp.y: Update rules.
7571 (lex_one_token): Update.
7572 * expression.h (parse_completion): Don't declare.
7573 * d-exp.y: Update rules.
7574 (lex_one_token): Update rules.
7575 * c-exp.y: Update rules.
7576 (lex_one_token): Update.
7577 * ada-lang.c (resolve): Add "parse_completion" parameter.
7578 (resolve_subexp): Likewise.
7579 (ada_resolve_function): Likewise.
7581 2019-04-04 Tom Tromey <tom@tromey.com>
7583 * parser-defs.h (struct parser_state) <start_arglist,
7584 end_arglist>: New methods.
7585 <arglist_len, m_funcall_chain>: New members.
7586 (arglist_len, start_arglist, end_arglist): Don't declare.
7587 * parse.c (arglist_len, funcall_chain): Remove global.
7588 (start_arglist, end_arglist): Remove functions.
7589 (parse_exp_in_context): Update.
7590 * p-exp.y: Update rules.
7591 * m2-exp.y: Update rules.
7592 * go-exp.y: Update rules.
7593 * f-exp.y: Update rules.
7594 * d-exp.y: Update rules.
7595 * c-exp.y: Update rules.
7597 2019-04-04 Tom Tromey <tom@tromey.com>
7599 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7600 lex_operator, push_back>: New methods.
7602 (rust_parser::lex_hex, lex_escape): Rename and update.
7603 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7604 (rust_parser::lex_operator): Rename and update.
7605 (rust_parser::lex_number, rustyylex, rustyyerror)
7606 (rust_lex_test_init, rust_lex_test_sequence)
7607 (rust_lex_test_push_back, rust_lex_tests): Update.
7608 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7610 <lexptr, prev_lexptr>: New members.
7611 (lexptr, prev_lexptr): Don't declare.
7612 * parse.c (lexptr, prev_lexptr): Remove globals.
7613 (parse_exp_in_context): Update.
7614 * p-exp.y (yylex, yyerror): Update.
7615 * m2-exp.y (parse_number, yylex, yyerror): Update.
7616 * go-exp.y (lex_one_token, yyerror): Update.
7617 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7618 * d-exp.y (lex_one_token, yyerror): Update.
7619 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7620 (lex_one_token, yyerror): Update.
7621 * ada-lex.l (YY_INPUT): Update.
7622 (rewind_to_char): Update.
7623 * ada-exp.y (yyerror): Update.
7625 2019-04-04 Tom Tromey <tom@tromey.com>
7627 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7628 * parser-defs.h (struct parser_state) <parser_state>: Add new
7630 <comma_terminates>: New member.
7631 (comma_terminates): Don't declare global.
7632 * parse.c (comma_terminates): Remove global.
7633 (parse_exp_in_context): Update.
7634 * p-exp.y (yylex): Update.
7635 * m2-exp.y (yylex): Update.
7636 * go-exp.y (lex_one_token): Update.
7637 * f-exp.y (yylex): Update.
7638 * d-exp.y (lex_one_token): Update.
7639 * c-exp.y (lex_one_token): Update.
7640 * ada-lex.l: Update.
7642 2019-04-04 Tom Tromey <tom@tromey.com>
7644 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7645 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7646 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7647 * parser-defs.h (paren_depth): Don't declare.
7648 * parse.c (paren_depth): Remove global.
7649 (parse_exp_in_context): Update.
7650 * p-exp.y (paren_depth): New global.
7651 (pascal_parse): Initialize it.
7652 * m2-exp.y (paren_depth): New global.
7653 (m2_parse): Initialize it.
7654 * go-exp.y (paren_depth): New global.
7655 (go_parse): Initialize it.
7656 * f-exp.y (paren_depth): New global.
7657 (f_parse): Initialize it.
7658 * d-exp.y (paren_depth): New global.
7659 (d_parse): Initialize it.
7660 * c-exp.y (paren_depth): New global.
7661 (c_parse): Initialize it.
7662 * ada-lex.l (paren_depth): New global.
7663 (lexer_init): Initialize it.
7665 2019-04-04 Tom Tromey <tom@tromey.com>
7667 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7668 (rust_parser::convert_ast_to_type)
7669 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7670 * parser-defs.h (struct parser_state) <parser_state>: Add
7671 parameters. Initialize new members.
7672 <expression_context_block, expression_context_pc>: New members.
7673 * parse.c (expression_context_block, expression_context_pc):
7675 (parse_exp_in_context): Update.
7676 * p-exp.y: Update all rules.
7678 * m2-exp.y: Update all rules.
7680 * go-exp.y (yylex): Update.
7681 * f-exp.y (yylex): Update.
7682 * d-exp.y: Update all rules.
7684 * c-exp.y: Update all rules.
7685 (lex_one_token, classify_name, yylex, c_parse): Update.
7686 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7688 2019-04-04 Tom Tromey <tom@tromey.com>
7690 * gdbarch.h, gdbarch.c: Rebuild.
7691 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7693 (struct stap_parse_info): Replace "parser_state" with
7695 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7696 (parser_state): New class.
7697 * parse.c (expr_builder): Rename.
7698 (expr_builder::release): Rename.
7699 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7700 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7701 (write_exp_elt_longcst, write_exp_elt_floatcst)
7702 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7703 (write_exp_string_vector, write_exp_bitstring)
7704 (write_exp_msymbol, mark_struct_expression)
7705 (write_dollar_variable)
7706 (insert_type_address_space, increase_expout_size): Replace
7707 "parser_state" with "expr_builder".
7708 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7709 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7710 "parser_state" with "expr_builder".
7712 2019-04-04 Tom Tromey <tom@tromey.com>
7714 * rust-exp.y: Replace "parse_language" with method call.
7716 (yylex): Replace "parse_language" with method call.
7718 (yylex): Replace "parse_language" with method call.
7719 * go-exp.y (classify_name): Replace "parse_language" with method
7721 * f-exp.y (yylex): Replace "parse_language" with method call.
7722 * d-exp.y (lex_one_token): Replace "parse_language" with method
7725 (lex_one_token, classify_name, yylex): Replace "parse_language"
7727 * ada-exp.y (find_primitive_type, type_char)
7728 (type_system_address): Replace "parse_language" with method call.
7730 2019-04-04 Tom Tromey <tom@tromey.com>
7732 * rust-exp.y: Replace "parse_gdbarch" with method call.
7733 * parse.c (write_dollar_variable, insert_type_address_space):
7734 Replace "parse_gdbarch" with method call.
7735 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7737 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7739 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7740 "parse_gdbarch" with method call.
7741 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7743 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7744 "parse_gdbarch" with method call.
7745 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7746 "parse_gdbarch" with method call.
7747 * c-exp.y (parse_type, parse_number, classify_name): Replace
7748 "parse_gdbarch" with method call.
7749 * ada-lex.l: Replace "parse_gdbarch" with method call.
7750 * ada-exp.y (parse_type, find_primitive_type, type_char)
7751 (type_system_address): Replace "parse_gdbarch" with method call.
7753 2019-04-04 Tom Tromey <tom@tromey.com>
7755 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7756 * stap-probe.c (stap_parse_argument): Update.
7757 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7758 initial_size parameter.
7759 * rust-exp.y (rust_lex_tests): Update.
7760 * parse.c (parser_state): Update.
7761 (parse_exp_in_context): Update.
7762 * parser-defs.h (struct parser_state) <parser_state>: Remove
7763 "initial_size" parameter.
7765 2019-04-04 Tom Tromey <tom@tromey.com>
7767 * parser-defs.h (increase_expout_size): Don't declare.
7768 * parse.c (increase_expout_size): Now static.
7770 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7772 * gnu-nat.c (gnu_nat_target::wait): Fix
7773 target_waitstatus_to_string call.
7775 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7777 * eval.c (evaluate_subexp_standard): Handle internal functions
7778 during Fortran function call handling.
7780 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7782 * NEWS: Mention new internal functions.
7783 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7784 (read_base_type): Use dwarf2_init_complex_target_type.
7785 * value.c (creal_internal_fn): New function.
7786 (cimag_internal_fn): New function.
7787 (_initialize_values): Register new internal functions.
7789 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7791 * infrun.c (stop_all_threads): If debug_infrun, always
7792 trace the wait status after wait_one, using
7793 target_waitstatus_to_string and target_pid_to_str.
7794 (handle_inferior_event): Replace various trace of
7795 wait status kind by a single trace.
7796 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7797 wait status kind image by target_waitstatus_to_string.
7798 * target/waitstatus.c (target_waitstatus_to_string): Fix
7801 2019-04-01 Tom Tromey <tromey@adacore.com>
7804 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7806 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7807 Pedro Alves <palves@redhat.com>
7809 * top.c (quit_force): Call 'finalize_values'.
7810 * value.c (finalize_values): New function.
7811 * value.h (finalize_values): Declare.
7813 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7815 * NEWS: Announce $_gdb_major and $_gdb_minor.
7817 * top.c (init_gdb_version_vars): New function.
7818 (gdb_init): Call init_gdb_version_vars.
7820 2019-03-29 Tom Tromey <tromey@adacore.com>
7822 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7823 help text. Remove dead code.
7825 2019-03-29 Keith Seitz <keiths@redhat.com>
7827 From Siddhesh Poyarekar:
7828 * f-lang.h (f77_get_upperbound): Return LONGEST.
7829 (f77_get_lowerbound): Likewise.
7830 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7831 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7833 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7834 plongest to format print it.
7835 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7836 (f77_get_upperbound): Likewise.
7837 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7838 LOWER_BOUND to LONGEST.
7839 (f77_create_arrayprint_offset_tbl): Likewise.
7841 2019-03-29 Keith Seitz <keiths@redhat.com>
7843 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7844 %s/pulongest for TYPE_LENGTH instead of %d in format
7846 * ada-typerint.c (ada_print_type): Likewise.
7847 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7848 * compile/compile-c-support.c (generate_register_struct): Likewise.
7849 * gdbtypes.c (recursive_dump_type): Likewise.
7850 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7851 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7852 instead of %d in format strings.
7853 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7854 to std::min to ULONGEST.
7855 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7856 instead of %d in format strings.
7857 * tracepoint.c (info_scope_command): Likewise.
7858 * typeprint.c (print_offset_data::update)
7859 (print_offset_data::finish): Likewise.
7860 * xtensa-tdep.c (xtensa_store_return_value)
7861 (xtensa_push_dummy_call): Likewise.
7863 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7865 * windows-nat.c (display_selector): Fixed format specifications
7868 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7870 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7872 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7874 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7875 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7876 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7877 (nios2_linux_init_abi): Install it.
7879 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7881 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7883 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7885 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7887 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7888 Tom Tromey <tromey@adacore.com>
7890 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7892 2019-03-26 Joel Brobecker <brobecker@adacore.com>
7894 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7895 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7896 method to compute the bounds of range types. Also print "[evaluated]"
7897 if the bounds' values come from a dynamic evaluation.
7899 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7901 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7902 whitespace when pretty printing is on.
7904 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7906 * ppc-linux-nat.c: Add include.
7908 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7910 * NEWS: Mention AArch64 Pointer Authentication.
7912 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7914 * arm-linux-nat.c: Add include.
7916 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7918 * source-cache.c (source_cache::get_source_lines): Re-read
7919 fullname after calling open_source_file.
7921 2019-03-25 John Baldwin <jhb@FreeBSD.org>
7923 * NEWS: Mention TLS support for FreeBSD.
7925 2019-03-25 Tom Tromey <tromey@adacore.com>
7927 * minsyms.c (BUNCH_SIZE): Update comment.
7928 (~minimal_symbol_reader): Remove old comment.
7929 (compact_minimal_symbols): Update comment.
7930 (minimal_symbol_reader::install): Remove old comment. Update
7933 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7935 * s390-linux-nat.c: Add include.
7937 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7939 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7940 Call linux_get_hwcap.
7941 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7943 (aarch64_linux_get_hwcap): Remove function.
7944 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7946 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7948 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7949 * linux-tdep.c (linux_get_hwcap): Add function.
7950 (linux_get_hwcap2): Likewise.
7951 * linux-tdep.h (linux_get_hwcap): Add declaration.
7952 (linux_get_hwcap2): Likewise.
7953 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7954 (ppc_linux_get_hwcap2): Likewise.
7955 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7957 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7958 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7959 (ppc_linux_nat_target::read_description): Likewise.
7960 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7961 * s390-linux-nat.c: Likewise.
7962 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7964 2019-03-24 Tom Tromey <tom@tromey.com>
7966 * ada-lang.c (standard_lookup): Simplify initialization.
7967 (ada_lookup_symbol_nonlocal): Simplify return.
7968 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7969 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7970 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7971 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7973 * solib.c (solib_global_lookup): Simplify.
7974 * symtab.c (null_block_symbol): Remove.
7975 (symbol_cache_lookup): Simplify returns.
7976 (lookup_language_this): Simplify returns.
7977 (lookup_symbol_aux): Simplify return.
7978 (lookup_local_symbol): Simplify returns.
7979 (lookup_global_symbol_from_objfile): Simplify return.
7980 (lookup_symbol_in_objfile_symtabs)
7981 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7982 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7983 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7984 * cp-namespace.c (cp_lookup_bare_symbol)
7985 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7986 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7987 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7988 (cp_lookup_symbol_via_imports): Simplify initialization.
7989 (find_symbol_in_baseclass): Likewise.
7990 * symtab.h (null_block_symbol): Remove.
7991 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7992 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7993 (d_lookup_symbol_module): Likewise.
7994 (find_symbol_in_baseclass): Simplify initialization.
7996 2019-03-24 Tom Tromey <tom@tromey.com>
7998 * expression.h: Don't include symtab.h.
7999 (struct block): Forward declare.
8001 2019-03-24 Tom Tromey <tom@tromey.com>
8003 * c-exp.y (typebase): Remove casts.
8004 * gdbtypes.c (lookup_unsigned_typename, )
8005 (lookup_signed_typename): Remove cast.
8006 * eval.c (parse_to_comma_and_eval): Remove cast.
8007 * parse.c (write_dollar_variable): Remove cast.
8008 * block.h (struct block) <superblock>: Now const.
8009 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8010 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8011 (map_block): Make "block" const.
8012 * symfile.h (struct quick_symbol_functions)
8013 <map_matching_symbols>: Constify block argument to "callback".
8014 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8016 (find_pc_sect_compunit_symtab): Make "b" const.
8017 (find_symbol_at_address): Likewise.
8018 (search_symbols): Likewise.
8019 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8020 (dw2_debug_names_lookup_symbol): Likewise.
8021 (dw2_map_matching_symbols): Update.
8022 * p-valprint.c (pascal_val_print): Remove "block".
8023 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8024 (aux_add_nonlocal_symbols): Make "block" const.
8025 (resolve_subexp): Remove cast.
8026 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8028 (iterate_over_file_blocks): Likewise.
8029 * f-exp.y (%union) <bval>: Remove.
8030 * coffread.c (patch_opaque_types): Make "b" const.
8031 * spu-tdep.c (spu_catch_start): Make "block" const.
8032 * c-valprint.c (print_unpacked_pointer): Remove "block".
8033 * symmisc.c (dump_symtab_1): Make "b" const.
8034 (block_depth): Make "block" const.
8035 * d-exp.y (%union) <bval>: Remove.
8036 * cp-support.h (cp_lookup_rtti_type): Update.
8037 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8038 * psymtab.c (psym_lookup_symbol): Make "block" const.
8039 (maintenance_check_psymtabs): Make "b" const.
8040 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8041 (enumerate_locals, enumerate_args): Update.
8042 * python/py-symtab.c (stpy_global_block): Make "block" const.
8043 (stpy_static_block): Likewise.
8044 * inline-frame.c (block_starting_point_at): Make "new_block"
8046 * block.c (find_block_in_blockvector): Make return type const.
8047 (blockvector_for_pc_sect): Make "b" const.
8048 (find_block_in_blockvector): Make "b" const.
8050 2019-03-23 Tom Tromey <tom@tromey.com>
8052 * varobj.c (varobj_create): Update.
8053 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8054 * printcmd.c (display_command, do_one_display): Don't reset
8056 * parser-defs.h (enum innermost_block_tracker_type): Move to
8058 (innermost_block): Update comment.
8059 * parse.c (parse_exp_1): Add tracker_types parameter.
8060 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8061 tracker_types parameter. Reset innermost_block.
8062 (parse_exp_in_context): Remove.
8063 (parse_expression_for_completion): Update.
8064 * objfiles.c (~objfile): Don't reset expression_context_block or
8066 * expression.h (enum innermost_block_tracker_type): Move from
8068 (parse_exp_1): Add tracker_types parameter.
8069 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8070 reset innermost_block.
8072 2019-03-23 Tom Tromey <tom@tromey.com>
8074 * objfiles.h: Include bcache.h.
8076 2019-03-23 Tom Tromey <tom@tromey.com>
8078 * linespec.c (get_current_search_block): Use
8079 scoped_restore_current_language.
8080 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8082 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8083 Jiong Wang <jiong.wang@arm.com>
8085 * aarch64-linux-tdep.c
8086 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8088 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8090 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8091 Jiong Wang <jiong.wang@arm.com>
8093 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8095 (aarch64_analyze_prologue_test): Add PACIASP test.
8096 (aarch64_prologue_prev_register): Unmask PC value.
8098 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8099 Jiong Wang <jiong.wang@arm.com>
8101 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8102 (aarch64_dwarf2_prev_register): Unmask PC value.
8103 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8104 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8105 DW_CFA_AARCH64_negate_ra_state.
8106 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8108 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8109 Jiong Wang <jiong.wang@arm.com>
8111 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8113 (aarch64_pseudo_register_name): Likewise.
8114 (aarch64_pseudo_register_type): Likewise.
8115 (aarch64_pseudo_register_reggroup_p): Likewise.
8116 (aarch64_gdbarch_init): Add pauth registers.
8117 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8118 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8119 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8120 (struct gdbarch_tdep): Add regnum for ra_state.
8122 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8123 Jiong Wang <jiong.wang@arm.com>
8125 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8127 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8128 Jiong Wang <jiong.wang@arm.com>
8130 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8132 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8133 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8134 (aarch64_gdbarch_init): Add puth registers.
8135 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8136 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8137 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8139 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8140 Jiong Wang <jiong.wang@arm.com>
8142 * aarch64-linux-nat.c
8143 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8144 * aarch64-linux-tdep.c
8145 (aarch64_linux_core_read_description): Likewise.
8146 (aarch64_linux_get_hwcap): New function.
8147 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8148 (aarch64_linux_get_hwcap): New declaration.
8150 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8151 Jiong Wang <jiong.wang@arm.com>
8153 * aarch64-linux-nat.c
8154 (aarch64_linux_nat_target::read_description): Add pauth param.
8155 * aarch64-linux-tdep.c
8156 (aarch64_linux_core_read_description): Likewise.
8157 * aarch64-tdep.c (struct target_desc): Add in pauth.
8158 (aarch64_read_description): Add pauth param.
8159 (aarch64_gdbarch_init): Likewise.
8160 * aarch64-tdep.h (aarch64_read_description): Likewise.
8161 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8162 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8163 * features/Makefile: Add new files.
8164 * features/aarch64-pauth.c: New file.
8165 * features/aarch64-pauth.xml: New file.
8167 2019-03-20 Tom Tromey <tromey@adacore.com>
8169 * infrun.c (handle_inferior_event): Rename from
8170 handle_inferior_event_1. Create a scoped_value_mark.
8171 (handle_inferior_event): Remove.
8173 2019-03-19 Tom Tromey <tromey@adacore.com>
8175 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8176 * infrun.h (print_stop_event): Add "displays" parameter.
8177 * infrun.c (print_stop_event): Add "displays" parameter.
8179 2019-03-19 Pedro Alves <palves@redhat.com>
8181 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8182 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8183 to -1. Fix TABs vs spaces.
8184 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8185 * tui/tui-out.h (tui_ui_out) Add intro comments.
8186 <m_line, m_start_of_line>: In-class initialize, and add describing
8189 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8191 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8193 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8195 2019-03-18 Pedro Alves <palves@redhat.com>
8196 Eli Zaretskii <eliz@gnu.org>
8198 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8199 m_line and m_start_of_line.
8201 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8203 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8204 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8205 it returns a newline. This fixes a regression in TU mode, whereby
8206 the next line is output on the same screen line as the user input.
8208 2019-03-18 Tom Tromey <tromey@adacore.com>
8210 * minsyms.c (minimal_symbol_reader::install): Remove call to
8213 2019-03-18 Pedro Alves <palves@redhat.com>
8215 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8217 (apply_style): New, factored out from ...
8218 (apply_ansi_escape): ... this. Handle reverse video mode.
8219 (tui_set_reverse_mode): New function.
8220 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8221 * tui/tui-winsource.c (tui_show_source_line): Use
8222 tui_set_reverse_mode instead of setting A_STANDOUT.
8223 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8226 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
8228 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8231 2019-03-18 Tom Tromey <tromey@adacore.com>
8233 * ada-lang.c (empty_array): Add "high" parameter.
8234 (ada_evaluate_subexp): Update.
8236 2019-03-17 Sergei Trofimovich <siarheit@google.com>
8238 * unittests/string_view-selftests.c: Define
8239 _initialize_string_view_selftests unconditionally.
8241 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8244 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8246 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8249 * windows-nat.c (display_selector): Fix format specifiers.
8251 2019-03-17 Eli Zaretskii <eliz@gnu.org>
8253 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8254 tui_refill_source_window instead of tui_refresh_win, to update the
8255 current execution line. This fixes redisplay of the current line
8256 when stepping through the code with "next" or "step".
8258 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8260 * source-cache.c (source_cache::get_source_lines): Call
8261 find_source_lines to initialize s->nlines. This fixes vertical
8262 scrolling of TUI source window when the DOWN arrow is pressed.
8264 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8266 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8267 linux-thread-db.c (_initialize_thread_db): Likewise.
8269 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8271 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8272 wclrtoeol in tui_show_source_line". This reverts changes made in
8273 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8275 2019-03-15 Tom Tromey <tom@tromey.com>
8277 * symtab.h (struct minimal_symbol): Derive from
8278 general_symbol_info.
8279 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8280 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8281 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8282 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8283 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8284 (MSYMBOL_SEARCH_NAME): Update.
8285 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8286 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8287 * minsyms.c (minimal_symbol_reader::record_full): Update.
8289 2019-03-15 Tom Tromey <tom@tromey.com>
8291 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8293 2019-03-15 Tom Tromey <tom@tromey.com>
8295 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8297 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8299 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8300 (build_minimal_symbol_hash_tables)
8301 (minimal_symbol_reader::install): Update.
8303 2019-03-15 Tom Tromey <tom@tromey.com>
8305 * symtab.c (create_demangled_names_hash): Update.
8306 (symbol_set_names): Update.
8307 * objfiles.h (struct objfile_per_bfd_storage)
8308 <demangled_names_hash>: Now an htab_up.
8309 * objfiles.c (objfile_per_bfd_storage): Simplify.
8311 2019-03-15 Tom Tromey <tom@tromey.com>
8313 * objfiles.h (struct objfile_per_bfd_storage): Declare
8315 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8317 (get_objfile_bfd_data): Use new. Don't initialize
8319 (free_objfile_per_bfd_storage): Remove.
8320 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8322 2019-03-15 Tom Tromey <tom@tromey.com>
8324 * symfile.c (reread_symbols): Update.
8325 * objfiles.c (objfile::objfile): Update.
8326 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8327 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8329 (minimal_symbol_reader::install): Update.
8330 (terminate_minimal_symbol_table): Remove.
8331 * jit.c (jit_object_close_impl): Update.
8333 2019-03-15 Tom Tromey <tom@tromey.com>
8335 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8338 2019-03-15 Tom Tromey <tom@tromey.com>
8340 * objfiles.h (struct objfile_per_bfd_storage)
8341 <demangled_hash_languages>: Now a bitset.
8342 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8343 (lookup_minimal_symbol): Update.
8345 2019-03-15 Tom Tromey <tom@tromey.com>
8347 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8348 Don't return the symbol.
8349 * coffread.c (record_minimal_symbol): Use record_full.
8351 2019-03-14 Eli Zaretskii <eliz@gnu.org>
8353 The MS-Windows port of ncurses fails to switch to a color pair if
8354 one or both of the colors are the implicit default colors. This
8355 change records the default colors when TUI is initialized, and
8356 then specifies them explicitly when a color pair uses the default
8357 colors. This allows color styling in TUI mode on MS-Windows.
8359 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8361 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8362 colors in ncurses_norm_attr.
8363 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8364 "none", replace it with the default color recorded in
8367 2019-03-14 Tom Tromey <tromey@adacore.com>
8369 * source-cache.h (class source_cache) <get_source_lines>: Return
8371 * source-cache.c (source_cache::extract_lines): Handle case where
8372 first_pos==npos. Return std::string.
8373 (source_cache::get_source_lines): Update.
8375 2019-03-14 Tom Tromey <tromey@adacore.com>
8377 * NEWS: Add item for "style sources" commands.
8378 * source-cache.c (source_cache::get_source_lines): Check
8380 * cli/cli-style.c (source_styling): New global.
8381 (_initialize_cli_style): Add "style sources" commands.
8382 (show_style_sources): New function.
8383 * cli/cli-style.h (source_styling): Declare.
8385 2019-03-14 Pedro Alves <palves@redhat.com>
8386 Tom Tromey <tromey@adacore.com>
8388 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8389 * tui/tui-winsource.c (tui_refill_source_window): New function,
8391 (tui_horizontal_source_scroll): ... here. Move some logic.
8392 * cli/cli-style.c (set_style_enabled): Notify new observable.
8393 * tui/tui-hooks.c (tui_redisplay_source): New function.
8394 (tui_attach_detach_observers): Attach or detach
8395 tui_redisplay_source.
8396 * observable.h (source_styling_changed): New observable.
8397 * observable.c: Define source_styling_changed observable.
8399 2019-03-13 Tom Tromey <tromey@adacore.com>
8401 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8402 (i386_gnu_nat_target::store_registers): Update.
8403 * target-debug.h (target_debug_print_std_string): New macro.
8404 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8405 * windows-tdep.c (display_one_tib): Update.
8406 * tui/tui-stack.c (tui_make_status_line): Update.
8407 * top.c (print_inferior_quit_action): Update.
8408 * thread.c (thr_try_catch_cmd): Update.
8409 (add_thread_with_info): Update.
8410 (thread_target_id_str): Update.
8411 (thr_try_catch_cmd): Update.
8412 (thread_command): Update.
8413 (thread_find_command): Update.
8414 * record-btrace.c (record_btrace_target::info_record)
8415 (record_btrace_resume_thread, record_btrace_target::resume)
8416 (record_btrace_cancel_resume, record_btrace_step_thread)
8417 (record_btrace_target::wait, record_btrace_target::wait)
8418 (record_btrace_target::wait, record_btrace_target::stop): Update.
8419 * progspace.c (print_program_space): Update.
8420 * process-stratum-target.c
8421 (process_stratum_target::thread_address_space): Update.
8422 * linux-fork.c (linux_fork_mourn_inferior)
8423 (detach_checkpoint_command, info_checkpoints_command)
8424 (linux_fork_context): Update.
8425 (linux_fork_detach): Update.
8426 (class scoped_switch_fork_info): Update.
8427 (delete_checkpoint_command): Update.
8428 * infrun.c (follow_fork_inferior): Update.
8429 (follow_fork_inferior): Update.
8430 (proceed_after_vfork_done): Update.
8431 (handle_vfork_child_exec_or_exit): Update.
8432 (follow_exec): Update.
8433 (displaced_step_prepare_throw): Update.
8434 (displaced_step_restore): Update.
8435 (start_step_over): Update.
8437 (clear_proceed_status_thread): Update.
8439 (print_target_wait_results): Update.
8440 (do_target_wait): Update.
8441 (context_switch): Update.
8442 (stop_all_threads): Update.
8443 (restart_threads): Update.
8444 (finish_step_over): Update.
8445 (handle_signal_stop): Update.
8446 (switch_back_to_stepped_thread): Update.
8447 (keep_going_pass_signal): Update.
8448 (print_exited_reason): Update.
8449 (normal_stop): Update.
8450 * inferior.c (inferior_pid_to_str): Change return type.
8451 (print_selected_inferior): Update.
8452 (add_inferior): Update.
8453 (detach_inferior): Update.
8454 * dummy-frame.c (fprint_dummy_frames): Update.
8455 * dcache.c (dcache_info_1): Update.
8456 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8457 (btrace_fetch, btrace_clear): Update.
8458 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8459 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8461 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8462 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8463 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8464 * gdbarch.c, gdbarch.h: Rebuild.
8465 * gdbarch.sh (core_pid_to_str): Change return type.
8466 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8468 (windows_nat_target::pid_to_str): Change return type.
8469 (windows_delete_thread): Update.
8470 (windows_nat_target::attach): Update.
8471 (windows_nat_target::files_info): Update.
8472 * target-delegates.c: Rebuild.
8473 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8475 (sol_thread_target::pid_to_str): Change return type.
8476 * remote.c (class remote_target) <pid_to_str>: Change return
8478 (remote_target::pid_to_str): Change return type.
8479 (extended_remote_target::attach, remote_target::remote_stop_ns)
8480 (remote_target::remote_notif_remove_queued_reply)
8481 (remote_target::push_stop_reply, remote_target::disable_btrace):
8483 (extended_remote_target::attach): Update.
8484 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8486 (gdbsim_target::pid_to_str): Change return type.
8487 * ravenscar-thread.c (struct ravenscar_thread_target)
8488 <pid_to_str>: Change return type.
8489 (ravenscar_thread_target::pid_to_str): Change return type.
8490 * procfs.c (class procfs_target) <pid_to_str>: Change return
8492 (procfs_target::pid_to_str): Change return type.
8493 (procfs_target::attach): Update.
8494 (procfs_target::detach): Update.
8495 (procfs_target::fetch_registers): Update.
8496 (procfs_target::store_registers): Update.
8497 (procfs_target::wait): Update.
8498 (procfs_target::files_info): Update.
8499 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8500 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8502 (nto_procfs_target::pid_to_str): Change return type.
8503 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8504 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8506 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8508 (attach_proc_task_lwp_callback, get_detach_signal)
8509 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8510 (linux_nat_target::resume, wait_lwp, stop_callback)
8511 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8512 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8513 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8514 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8515 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8517 (inf_ptrace_target::attach): Update.
8518 (inf_ptrace_target::files_info): Update.
8519 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8521 (go32_nat_target::pid_to_str): Change return type.
8522 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8523 (gnu_nat_target::wait): Update.
8524 (gnu_nat_target::wait): Update.
8525 (gnu_nat_target::resume): Update.
8526 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8527 (fbsd_nat_target::wait): Update.
8528 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8530 (darwin_nat_target::attach): Update.
8531 * corelow.c (class core_target) <pid_to_str>: Change return type.
8532 (core_target::pid_to_str): Change return type.
8533 * target.c (normal_pid_to_str): Change return type.
8534 (default_pid_to_str): Likewise.
8535 (target_pid_to_str): Change return type.
8536 (target_translate_tls_address): Update.
8537 (target_announce_detach): Update.
8538 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8540 (bsd_uthread_target::pid_to_str): Change return type.
8541 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8543 (bsd_kvm_target::pid_to_str): Change return type.
8544 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8546 (aix_thread_target::pid_to_str): Change return type.
8547 * target.h (struct target_ops) <pid_to_str>: Change return type.
8548 (target_pid_to_str, normal_pid_to_str): Likewise.
8549 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8551 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8553 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8555 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8557 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8559 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8562 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8564 * NEWS: Mention that the new default MI version is 3. Mention
8565 changes to the output of commands and events that deal with
8566 multi-location breakpoints.
8567 * breakpoint.c: Include "mi/mi-out.h".
8568 (print_one_breakpoint): Change output syntax if using MI version
8570 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8572 (mi_multi_location_breakpoint_output_fixed): New.
8573 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8574 (mi_cmd_fix_multi_location_breakpoint_output): New.
8575 (mi_multi_location_breakpoint_output_fixed): New.
8576 * mi/mi-cmds.c (mi_cmds): Register command
8577 -fix-multi-location-breakpoint-output.
8578 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8581 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8583 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8584 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8585 instantiate mi_ui_out based on interpreter name.
8586 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8587 * mi/mi-main.c (mi_load_progress): Likewise.
8589 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8591 * NEWS: Combine separate "New targets" sections for 8.3.
8593 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8595 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8596 (ppcfbsd_init_abi): Install gdbarch
8597 "fetch_tls_load_module_address" and "get_thread_local_address"
8600 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8602 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8603 (riscv_fbsd_init_abi): Install gdbarch
8604 "fetch_tls_load_module_address" and "get_thread_local_address"
8607 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8609 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8610 (i386fbsd_init_abi): Install gdbarch
8611 "fetch_tls_load_module_address" and "get_thread_local_address"
8614 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8616 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8617 (amd64fbsd_init_abi): Install gdbarch
8618 "fetch_tls_load_module_address" and "get_thread_local_address"
8621 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8623 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8624 (struct fbsd_pspace_data): New type.
8625 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8626 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8627 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8628 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8629 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8631 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8633 * gdbtypes.c (lookup_struct_elt): New function.
8634 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8635 * gdbtypes.h (struct struct_elt): New type.
8636 (lookup_struct_elt): New prototype.
8638 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8640 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8641 remove disabled code block.
8643 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8645 * gdbarch.sh (get_thread_local_address): New method.
8646 * gdbarch.h, gdbarch.c: Regenerate.
8647 * target.c (target_translate_tls_address): Use
8648 gdbarch_get_thread_local_address if present instead of
8649 target::get_thread_local_address.
8651 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8653 * target.h (target::get_thread_local_address): Update comment.
8655 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8657 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8658 objfile->separate_debug_objfile_backlink if not NULL.
8660 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8662 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8663 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8664 (amd64bsd_store_inferior_registers): Likewise.
8665 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8666 Enable segment base registers.
8667 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8668 PT_GETFSBASE and PT_GETGSBASE.
8669 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8671 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8672 segment base registers.
8673 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8675 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8677 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8678 Update calls to i386_target_description to add 'segments'
8680 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8681 add segment base registers.
8682 * arch/i386.c (i386_create_target_description): Add 'segments'
8683 parameter to enable segment base registers.
8684 * arch/i386.h (i386_create_target_description): Likewise.
8685 * features/i386/32bit-segments.xml: New file.
8686 * features/i386/32bit-segments.c: Generate.
8687 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8688 call to i386_target_description to add 'segments' parameter.
8689 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8690 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8691 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8692 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8693 if feature is present.
8694 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8695 Add 'segments' parameter to call to i386_target_description.
8696 (i386_target_description): Add 'segments' parameter to enable
8697 segment base registers.
8698 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8699 to call to i386_target_description.
8700 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8701 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8702 Define I386_NUM_REGS.
8703 (i386_target_description): Add 'segments' parameter to enable
8704 segment base registers.
8706 2019-03-12 Eli Zaretskii <eliz@gnu.org>
8709 * source-cache.c: #undef open and close, to avoid unresolved
8710 externals during linking.
8712 2019-03-12 Tom Tromey <tromey@adacore.com>
8714 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8715 const. Add initializers.
8716 (_initialize_remote): Don't initialize ptid globals.
8718 2019-03-12 Pedro Alves <palves@redhat.com>
8720 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8722 2019-03-12 Pedro Alves <palves@redhat.com>
8724 * cp-name-parser.y (main): Remove unused 'len' variable.
8726 2019-03-12 Tom Tromey <tromey@adacore.com>
8728 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8729 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8731 2019-03-12 Tom Tromey <tromey@adacore.com>
8733 * linux-nat.c (iterate_over_lwps): Update.
8734 (stop_callback): Remove parameter.
8735 (stop_wait_callback, detach_callback, resume_set_callback)
8736 (select_singlestep_lwp_callback, set_ignore_sigint)
8737 (status_callback, resumed_callback, resume_clear_callback)
8738 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8740 (linux_nat_target::detach, linux_nat_target::resume)
8741 (linux_stop_and_wait_all_lwps, select_event_lwp)
8742 (linux_nat_filter_event, linux_nat_wait_1)
8743 (linux_nat_target::kill, linux_nat_target::stop)
8744 (linux_nat_target::stop): Update.
8745 (linux_nat_resume_callback): Change type.
8746 (resume_stopped_resumed_lwps, count_events_callback)
8747 (select_event_lwp_callback): Likewise.
8748 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8749 * arm-linux-nat.c (struct update_registers_data): Remove.
8750 (update_registers_callback): Change type.
8751 (arm_linux_insert_hw_breakpoint1): Update.
8752 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8754 (x86_linux_dr_set_addr): Update.
8755 (x86_linux_dr_set_control): Update.
8756 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8757 (iterate_over_lwps): Use gdb::function_view.
8758 * nat/aarch64-linux-hw-point.c (struct
8759 aarch64_dr_update_callback_param): Remove.
8760 (debug_reg_change_callback): Change type.
8761 (aarch64_notify_debug_reg_change): Update.
8762 * s390-linux-nat.c (s390_refresh_per_info): Update.
8764 2019-03-11 Tom Tromey <tromey@adacore.com>
8766 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8767 redundant assignment to "this_cu".
8769 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8771 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8773 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8775 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8777 (rank_one_type): ... this.
8779 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8781 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8783 (rank_one_type): ... this.
8785 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8787 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8789 (rank_one_type): ... this.
8791 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8793 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8795 (rank_one_type): ... this.
8797 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8799 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8801 (rank_one_type): ... this.
8803 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8805 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8807 (rank_one_type): ... this.
8809 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8811 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8813 (rank_one_type): ... this.
8815 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8817 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8819 (rank_one_type): ... this.
8821 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8823 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8825 (rank_one_type): ... this.
8827 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8829 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8831 (rank_one_type): ... this.
8833 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8835 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8837 (rank_one_type): ... this.
8839 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8841 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8843 (rank_one_type): ... this.
8845 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8847 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8848 inferior-events' shows the example events.
8850 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8852 Support styling on native MS-Windows console
8855 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8856 on MS-Windows if $TERM is not defined.
8858 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8860 * posix-hdep.c (gdb_console_fputs):
8861 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8863 * ui-file.h (gdb_console_fputs): Add prototype.
8865 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8866 back to fputs only if the former returns zero.
8868 2019-03-07 Tom Tromey <tom@tromey.com>
8870 * symmisc.c (print_symbol_bcache_statistics): Update.
8871 (print_objfile_statistics): Update.
8872 * symfile.c (allocate_symtab): Update.
8873 * stabsread.c: Don't include bcache.h.
8874 * psymtab.h (struct psymbol_bcache): Don't declare.
8875 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8876 (psymbol_bcache_init, psymbol_bcache_free)
8877 (psymbol_bcache_get_bcache): Don't declare.
8878 * psymtab.c (struct psymbol_bcache): Remove.
8879 (psymtab_storage::psymtab_storage): Update.
8880 (psymtab_storage::~psymtab_storage): Update.
8881 (psymbol_bcache_init, psymbol_bcache_free)
8882 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8883 (add_psymbol_to_bcache): Update.
8884 (allocate_psymtab): Update.
8885 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8886 macro_cache>: No longer pointers.
8887 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8888 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8889 * macrotab.c (macro_bcache): Update.
8890 * macroexp.c: Don't include bcache.h.
8891 * gdbtypes.c (check_types_worklist): Update.
8892 (types_deeply_equal): Remove TRY/CATCH. Update.
8893 * elfread.c (elf_symtab_read): Update.
8894 * dwarf2read.c: Don't include bcache.h.
8895 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8896 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8897 (print_bcache_statistics, bcache_memory_used): Don't declare.
8898 (struct bcache): Move from bcache.c. Add constructor, destructor,
8899 methods. Rename all data members.
8900 * bcache.c (struct bcache): Move to bcache.h.
8901 (bcache::expand_hash_table): Rename from expand_hash_table.
8903 (bcache::insert): Rename from bcache_full.
8904 (bcache::compare): Rename from bcache_compare.
8905 (bcache_xmalloc): Remove.
8906 (bcache::~bcache): Rename from bcache_xfree.
8907 (bcache::print_statistics): Rename from print_bcache_statistics.
8908 (bcache::memory_used): Rename from bcache_memory_used.
8910 2019-03-07 Pedro Alves <palves@redhat.com>
8912 * infrun.c (normal_stop): Also check for
8913 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8915 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8917 * f-lang.c (value_from_host_double): Moved to...
8918 * value.c (value_from_host_double): ...here.
8919 * value.h (value_from_host_double): Declare.
8920 * guile/scm-math.c (vlscm_convert_typed_number): Use
8921 value_from_host_double.
8922 (vlscm_convert_number): Likewise.
8923 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8924 * python/py-value.c (convert_value_from_python): Likewise.
8926 2019-03-06 Tom Tromey <tom@tromey.com>
8928 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8930 2019-03-06 Tom Tromey <tom@tromey.com>
8932 * utils.h (free_current_contents): Don't declare.
8933 * utils.c (free_current_contents): Remove.
8935 2019-03-06 Tom Tromey <tom@tromey.com>
8937 * top.c (quit_force): Update.
8938 * main.c (captured_command_loop): Update.
8939 * common/new-op.c (operator new): Update.
8940 * common/common-exceptions.c (struct catcher)
8941 <save_cleanup_chain>: Remove member.
8942 (exceptions_state_mc_init): Update.
8943 (exception_try_scope_entry): Return nullptr.
8944 (exception_try_scope_exit, exception_rethrow)
8945 (throw_exception_sjlj, throw_exception_cxx): Update.
8946 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8947 (all_cleanups, do_cleanups, discard_cleanups)
8948 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8949 (restore_cleanups, restore_final_cleanups): Don't declare.
8950 (do_final_cleanups): Remove parameter.
8951 * common/cleanups.c (cleanup_chain, make_cleanup)
8952 (make_cleanup_dtor, all_cleanups, do_cleanups)
8953 (discard_my_cleanups, discard_cleanups)
8954 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8955 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8956 (null_cleanup): Remove.
8957 (do_final_cleanups): Remove parameter.
8959 2019-03-06 Tom Tromey <tom@tromey.com>
8961 * remote.c (remote_target::remote_parse_stop_reply): Use
8964 2019-03-06 Tom Tromey <tom@tromey.com>
8966 * stabsread.c (struct stabs_field_info): Rename from field_info.
8967 <list, fnlist>: Add initializers.
8968 <obstack>: New member.
8969 (read_member_functions, read_struct_fields, read_baseclasses):
8970 Allocate on obstack. Don't use cleanups.
8971 (read_one_struct_field, read_member_functions, read_struct_fields)
8972 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8973 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8974 (read_struct_type): Update.
8976 2019-03-06 Tom Tromey <tom@tromey.com>
8978 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8979 * common/filestuff.h (make_cleanup_close): Don't declare.
8980 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8983 2019-03-06 Tom Tromey <tom@tromey.com>
8985 * solib-aix.c: Use make_scope_exit.
8987 2019-03-06 Tom Tromey <tom@tromey.com>
8989 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8990 Use make_scope_exit.
8992 2019-03-06 Tom Tromey <tom@tromey.com>
8994 * solib-svr4.c (disable_probes_interface): Remove parameter.
8995 (svr4_handle_solib_event): Use make_scope_exit.
8997 2019-03-06 Tom Tromey <tom@tromey.com>
8999 * remote.c (struct stop_reply_deleter): Remove.
9000 (stop_reply_up): Update.
9001 (struct stop_reply): Derive from notif_event. Don't typedef.
9002 <regcache>: Now a std::vector.
9003 (stop_reply_xfree): Remove.
9004 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9005 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9006 (remote_target::discard_pending_stop_replies): Use delete.
9007 (remote_target::remote_parse_stop_reply): Update.
9008 (remote_target::process_stop_reply): Update.
9009 * remote-notif.h (struct notif_event): Add virtual destructor.
9010 Remove "dtr" member.
9011 (struct notif_client) <alloc_event>: Return a unique_ptr.
9012 (notif_event_xfree): Don't declare.
9013 (notif_event_up): New typedef.
9014 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9015 (notif_event_xfree, do_notif_event_xfree): Remove.
9016 (remote_notif_state_xfree): Update.
9018 2019-03-06 Tom Tromey <tom@tromey.com>
9020 * infrun.c (displaced_step_clear_cleanup): Now a
9021 forward_scope_exit type.
9022 (displaced_step_prepare_throw): Update.
9023 (displaced_step_fixup): Update.
9025 2019-03-06 Tom Tromey <tom@tromey.com>
9027 * inferior.h (class inferior): Update comment.
9028 * gdbthread.h (class thread_info): Update comment.
9030 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9031 Tom Tromey <tom@tromey.com>
9033 * stabsread.h (struct stab_section_list): Remove.
9034 (coffstab_build_psymtabs): Update.
9035 * dbxread.c (symbuf_sections): Now a std::vector.
9036 (sect_idx): New global.
9037 (fill_symbuf): Update.
9038 (coffstab_build_psymtabs): Change type of stabsects parameter.
9040 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9042 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9043 (coff_locate_sections): Update.
9044 (coff_symfile_read): Remove cleanups. Update.
9045 (init_stringtab): Add storage parameter.
9046 (free_stringtab, free_stringtab_cleanup): Remove.
9047 (init_lineno): Add storage parameter.
9048 (free_linetab, free_linetab_cleanup): Remove.
9050 2019-03-06 Pedro Alves <palves@redhat.com>
9052 * linux-fork.c (fork_info::clobber_regs): Delete.
9053 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9054 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9056 (scoped_switch_fork_info::scoped_switch_fork_info)
9057 (checkpoint_command, linux_fork_context): Adjust
9058 fork_save_infrun_state calls.
9060 2019-03-06 Pedro Alves <palves@redhat.com>
9062 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9063 (inf_has_multiple_threads): Return 'bool' and rewrite using
9064 inferior_info::threads().
9066 2019-03-06 Pedro Alves <palves@redhat.com>
9068 * linux-fork.c: Include <list>.
9069 (fork_list): Now a std::list instance.
9070 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9071 (forks_exist_p, find_last_fork): Adjust.
9075 (free_fork): Delete, folded into fork_info::~fork_info().
9076 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9078 (init_fork_list): Delete.
9079 (linux_fork_killall, linux_fork_mourn_inferior)
9080 (linux_fork_detach, info_checkpoints_command): Adjust.
9081 (_initialize_linux_fork): No longer call init_fork_list.
9083 2019-03-06 Pedro Alves <palves@redhat.com>
9085 * linux-fork.c (new_fork): New, split out of ...
9086 (add_fork): ... this. Return void. Move "first fork" special
9087 case from here, to ...
9088 (checkpoint_command): ... here.
9089 * linux-linux.h (add_fork): Return void.
9091 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9093 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9095 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9096 Chris January <chris.january@arm.com>
9097 David Lecomber <david.lecomber@arm.com>
9099 * f-exp.y: New token, UNOP_INTRINSIC.
9100 (exp): New pattern using UNOP_INTRINSIC token.
9101 (f77_keywords): Add 'abs' keyword.
9102 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9103 (value_from_host_double): New function.
9104 (evaluate_subexp_f): Support UNOP_ABS.
9106 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9108 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9111 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9113 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9114 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9115 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9117 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9119 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9121 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9122 Chris January <chris.january@arm.com>
9124 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9125 * f-exp.y: Define 'KIND' token.
9126 (exp): New pattern for KIND expressions.
9127 (ptype): Handle types with a kind extension.
9128 (direct_abs_decl): Extend to spot kind extensions.
9129 (f77_keywords): Add 'kind' to the list.
9130 (push_kind_type): New function.
9131 (convert_to_kind_type): New function.
9132 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9133 * parse.c (operator_length_standard): Likewise.
9134 * parser-defs.h (enum type_pieces): Add tp_kind.
9135 * std-operator.def: Add UNOP_KIND.
9137 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9139 * f-exp.y (f_parse): Set yydebug.
9141 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9143 * f-lang.c (evaluate_subexp_f): New function.
9144 (exp_descriptor_f): New global.
9145 (f_language_defn): Use exp_descriptor_f instead of
9146 exp_descriptor_standard.
9148 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9150 * f-exp.y (struct token): Add comments.
9151 (dot_ops): Remove uppercase versions and the end marker.
9152 (f77_keywords): Likewise.
9153 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9154 entries in the dot_ops array are case insensitive, and use
9155 strncasecmp to compare strings. Also some whitespace cleanup in
9156 this area. Similar for the f77_keywords array, except entries in
9157 this list might be case sensitive.
9159 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9161 * f-exp.y (struct f77_boolean_val): Add comments.
9162 (boolean_values): Remove uppercase versions, and end marker.
9163 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9164 and use strncasecmp to achieve case insensitivity. Additionally,
9165 perform whitespace cleanup around this code.
9167 2019-03-06 Tom Tromey <tromey@adacore.com>
9169 * remote-sim.c (gdbsim_target_open): Use result of
9172 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9173 Dirk Schubert <dirk.schubert@arm.com>
9174 Chris January <chris.january@arm.com>
9176 * eval.c (evaluate_subexp_standard): Call Fortran argument
9178 * f-lang.c (struct value): A value which can be passed into a
9179 Fortran function call.
9180 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9182 (struct type): Value ready for a Fortran function call.
9183 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9185 * f-lang.h (fortran_argument_convert): Declaration.
9186 (fortran_preserve_arg_pointer): Declaration.
9187 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9189 2019-03-05 Tom Tromey <tromey@adacore.com>
9191 * python/py-prettyprint.c (print_string_repr): Remove #if.
9192 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9194 2019-03-05 Tom Tromey <tromey@adacore.com>
9196 * target.c (the_dummy_target): Move later. Change type to
9198 (initialize_targets): Don't initialize the_dummy_target.
9200 2019-03-05 Tom Tromey <tromey@adacore.com>
9202 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9203 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9205 2019-03-05 Tom Tromey <tromey@adacore.com>
9207 * windows-nat.c (windows_nat_target::attach)
9208 (windows_nat_target::detach): Don't call gdb_flush.
9209 * valprint.c (generic_val_print, val_print, val_print_string):
9210 Don't call gdb_flush.
9211 * utils.c (defaulted_query): Don't call gdb_flush.
9212 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9213 * target.c (target_announce_detach): Don't call gdb_flush.
9214 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9215 * remote.c (extended_remote_target::attach): Don't call
9217 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9218 * printcmd.c (do_examine): Don't call gdb_flush.
9219 (info_display_command): Don't call gdb_flush.
9220 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9221 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9222 * memattr.c (info_mem_command): Don't call gdb_flush.
9223 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9224 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9225 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9226 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9227 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9228 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9229 (gnu_nat_target::detach): Don't call gdb_flush.
9230 * f-valprint.c (f_val_print): Don't call gdb_flush.
9231 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9232 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9233 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9235 * c-valprint.c (c_val_print): Don't call gdb_flush.
9236 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9238 2019-03-05 Tom Tromey <tromey@adacore.com>
9240 * varobj.c (update_dynamic_varobj_children): Update.
9241 (install_default_visualizer): Use reset, not release.
9242 * value.c (set_internalvar): Update.
9243 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9244 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9245 ATTRIBUTE_UNUSED_RESULT.
9247 2019-03-05 Tom Tromey <tromey@adacore.com>
9249 * remote.c (class scoped_remote_fd) <release>: Add
9250 ATTRIBUTE_UNUSED_RESULT.
9252 2019-03-05 Tom Tromey <tromey@adacore.com>
9254 * macroexp.c (struct macro_buffer) <release>: Add
9255 ATTRIBUTE_UNUSED_RESULT.
9257 2019-03-05 Tom Tromey <tromey@adacore.com>
9259 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9260 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9261 ATTRIBUTE_UNUSED_RESULT.
9263 2019-03-05 Tom Tromey <tromey@adacore.com>
9265 * common/scoped_fd.h (class scoped_fd) <release>: Add
9266 ATTRIBUTE_UNUSED_RESULT.
9268 2019-03-05 Tom Tromey <tromey@adacore.com>
9270 * parser-defs.h (struct parser_state) <release>: Add
9271 ATTRIBUTE_UNUSED_RESULT.
9273 2019-03-05 Tom Tromey <tromey@adacore.com>
9275 * utils.h (class gdb_argv) <release>: Add
9276 ATTRIBUTE_UNUSED_RESULT.
9277 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9279 2019-03-02 Eli Zaretskii <eliz@gnu.org>
9281 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9282 for-loop range, to avoid compiler warnings.
9284 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9285 avoid compiler warnings about unused variables.
9287 * NEWS: Mention end of support for native debugging on MS-Windows
9291 * common/netstuff.c:
9292 * gdbserver/gdbreplay.c
9293 * gdbserver/remote-utils.c:
9295 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9296 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9297 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9298 'getaddrinfo' and 'freeaddrinfo' were not available before
9299 Windows XP, and mingw.org's MinGW headers by default define
9300 _WIN32_WINNT to 0x500.
9302 2019-03-01 Gary Benson <gbenson@redhat.com>
9304 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9306 2019-02-28 Brian Vandenberg <phantall@gmail.com>
9307 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9310 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9311 set_sigint_trap, clear_sigint_trap.
9313 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9315 * target.c (target_detach): Clear the regcache and the
9318 2019-02-27 Pedro Alves <palves@redhat.com>
9320 * utils.c (set_screen_size): When we cap the height/width sizes,
9321 tweak the corresponding command variable to show "unlimited":
9323 2019-02-27 Saagar Jha <saagar@saagarjha.com>
9324 Pedro Alves <palves@redhat.com>
9326 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9327 before calling rl_set_screen_size.
9329 2019-02-27 Tom Tromey <tromey@adacore.com>
9331 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9333 * python/py-value.c: Remove Python 2.4 workaround.
9334 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9336 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9337 Python 2.4 workaround.
9338 * python/python-internal.h: Remove Python 2.4 comment.
9339 (Py_ssize_t): Don't define.
9340 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9341 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9342 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9343 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9344 * python/python.c (do_start_initialization): Remove Python 2.4
9346 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9347 (print_children): Remove Python 2.4 workaround.
9348 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9350 (CHARBUFFERPROC_NAME): Remove.
9351 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9352 Python 2.4 workaround.
9354 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9356 * NEWS: Note minimum Python version.
9358 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9360 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9361 code from these functions. Remove corresponding ifdefs. Use
9362 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9363 Remove gotos and target of gotos.
9364 (infpy_search_memory): Likewise.
9366 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9368 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9369 (hppa_gdbarch_init): Don't register deleted functions with
9372 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9374 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9375 (h8300_unwind_sp): Delete.
9376 (h8300_dummy_id): Delete.
9377 (h8300_gdbarch_init): Don't register deleted functions with
9380 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9382 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9383 (ft32_unwind_pc): Delete.
9384 (ft32_unwind_sp): Delete.
9385 (ft32_gdbarch_init): Don't register deleted functions with
9388 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9390 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9391 (frv_unwind_pc): Delete.
9392 (frv_unwind_sp): Delete.
9393 (frv_gdbarch_init): Don't register deleted functions with
9396 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9398 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9399 (riscv_unwind_pc): Delete.
9400 (riscv_unwind_sp): Delete.
9401 (riscv_gdbarch_init): Don't register deleted functions with
9404 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9406 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9407 (csky_unwind_pc): Delete.
9408 (csky_unwind_sp): Delete.
9409 (csky_gdbarch_init): Don't register deleted functions with
9412 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9414 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9415 (cris_unwind_pc): Delete.
9416 (cris_unwind_sp): Delete.
9417 (cris_gdbarch_init): Don't register deleted functions with
9420 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9422 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9423 (bfin_unwind_pc): Delete.
9424 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9426 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9428 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9429 (arm_unwind_pc): Delete.
9430 (arm_unwind_sp): Delete.
9431 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9433 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9435 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9436 (arc_unwind_pc): Delete.
9437 (arc_unwind_sp): Delete.
9438 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9440 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9442 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9443 (alpha_unwind_pc): Delete.
9444 (alpha_gdbarch_init): Don't register deleted functions with
9447 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9449 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9450 (aarch64_unwind_pc): Delete.
9451 (aarch64_unwind_sp): Delete.
9452 (aarch64_gdbarch_init): Don't register deleted functions with
9455 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9457 * gdbtypes.c (type_align): Don't consider static members when
9458 computing structure alignment.
9460 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9462 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9463 return 0 for other types.
9464 * arch-utils.c (default_type_align): Always return 0.
9465 * gdbarch.h: Regenerate.
9466 * gdbarch.sh (type_align): Extend comment.
9467 * gdbtypes.c (type_align): Add additional comments, always call
9468 gdbarch_type_align before applying the default rules.
9469 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9470 generic code will then apply a suitable default.
9471 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9472 types, return 0 for other types.
9474 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9476 * NEWS: Create a new section for the next release branch.
9477 Rename the section of the current branch, now that it has
9480 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9482 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9483 * version.in: Bump version to 8.3.50.DATE-git.
9485 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9487 * aix-thread.c (ptid_cmp): Remove unused variable.
9488 (get_signaled_thread): Likewise.
9489 (store_regs_user_thread): Likewise.
9490 (store_regs_kernel_thread): Likewise.
9491 (fetch_regs_kernel_thread): Remove shadowed variable.
9493 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9495 * features/riscv/32bit-cpu.xml: Add register numbers.
9496 * features/riscv/32bit-fpu.c: Regenerate.
9497 * features/riscv/32bit-fpu.xml: Add register numbers.
9498 * features/riscv/64bit-cpu.xml: Add register numbers.
9499 * features/riscv/64bit-fpu.c: Regenerate.
9500 * features/riscv/64bit-fpu.xml: Add register numbers.
9502 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9504 * NEWS: Mention two argument form of gdb.Value constructor.
9505 * python/py-value.c (convert_buffer_and_type_to_value): New
9507 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9508 Add support for handling an optional second argument. Call
9509 convert_buffer_and_type_to_value as appropriate.
9510 * python/python-internal.h (Py_buffer_deleter): New struct.
9511 (Py_buffer_up): New typedef.
9513 2019-02-25 John Baldwin <jhb@FreeBSD.org>
9515 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9516 instead of releasing ownership.
9518 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
9520 * dwarf2read.c (open_and_init_dwp_file): Call
9521 elf_numsections instead of bfd_count_sections to initialize
9522 dwp_file->num_sections.
9524 2019-02-25 Tom Tromey <tromey@adacore.com>
9526 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9528 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9530 * gcore.in: Add '--readnever' option when invoking GDB.
9532 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9534 * MAINTAINERS: Update my email address.
9536 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9538 * build-id.c (build_id_to_debug_bfd_1): New function.
9539 (build_id_to_debug_bfd): Look for separate debug file in
9542 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9544 * gdbarch.sh: Update the copyright year range that is placed into
9547 2019-02-22 Keith Seitz <keiths@redhat.com>
9550 * linespec.c (create_sals_line_offset): Search for the default
9551 symtab's filename instead of its fullname.
9553 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9555 * NEWS: Update style defaults.
9557 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9559 * main.c (captured_main_1): Disable styling in batch mode.
9561 2019-02-20 Tom Tromey <tom@tromey.com>
9563 * symtab.c (symtab_symbol_info): Fix typos.
9565 2019-02-20 Tom Tromey <tromey@adacore.com>
9567 * findcmd.c (_initialize_mem_search): Use upper case for
9568 metasyntactic variables.
9570 2019-02-20 Alan Hayward <alan.hayward@arm.com>
9572 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9573 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9575 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9577 * top.h (source_file_name): Change to std::string.
9578 * top.c (source_file_name): Likewise.
9579 (command_line_input): Adjust.
9580 * cli/cli-script.c (script_from_file): Adjust.
9582 2019-02-19 Tom Tromey <tromey@adacore.com>
9584 * ravenscar-thread.c
9585 (ravenscar_thread_target::update_thread_list): Don't call
9586 ada_build_task_list.
9587 * ada-lang.h (ada_build_task_list): Don't declare.
9588 * ada-tasks.c (struct ada_tasks_inferior_data)
9589 <task_list_valid_p>: Now bool.
9590 (read_known_tasks, ada_task_list_changed)
9591 (ada_tasks_invalidate_inferior_data): Update.
9592 (read_known_tasks_array): Return bool.
9593 (read_known_tasks_list): Likewise.
9594 (read_known_tasks): Return void.
9595 (ada_build_task_list): Now static.
9597 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9599 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9600 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9602 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9604 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9605 variant for ada_tasks_pspace_data_handle and
9606 ada_tasks_inferior_data_handle.
9607 (ada_tasks_pspace_data_cleanup): New function.
9608 (ada_tasks_inferior_data_cleanup): New function.
9610 2019-02-17 Tom Tromey <tom@tromey.com>
9612 * macrotab.h (macro_source_fullname): Return a std::string.
9613 * macrotab.c (macro_include, check_for_redefinition)
9614 (macro_undef, macro_lookup_definition, foreach_macro)
9615 (foreach_macro_in_scope): Update.
9616 (macro_source_fullname): Return a std::string.
9617 * macrocmd.c (show_pp_source_pos): Update.
9619 2019-02-17 Tom Tromey <tom@tromey.com>
9621 * macrocmd.c (show_pp_source_pos): Style the file names.
9623 2019-02-17 Tom Tromey <tom@tromey.com>
9626 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9628 2019-02-17 Tom Tromey <tom@tromey.com>
9630 * ada-lang.c (user_select_syms): Use filtered printing.
9631 * utils.c (wrap_style): New global.
9632 (desired_style): Remove.
9633 (emit_style_escape): Add stream parameter.
9634 (set_output_style, reset_terminal_style, prompt_for_continue):
9636 (flush_wrap_buffer): Only flush gdb_stdout.
9637 (wrap_here): Set wrap_style.
9638 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9639 treat escape sequences as a character. Change when wrap buffer is
9641 (fputs_styled): Do not set the output style when the default is
9643 * ui-style.h (struct ui_file_style) <is_default>: New method.
9644 * source.c (print_source_lines_base): Emit escape sequences in one
9647 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9649 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9650 integers and enumeration types.
9652 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9654 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9655 instead of lookup_symbol_in_language
9656 (do_exact_match): New function.
9657 (ada_get_symbol_name_matcher): Return do_exact_match when
9658 doing a verbatim match.
9660 2019-02-15 Tom Tromey <tromey@adacore.com>
9662 * ravenscar-thread.c (ravenscar_thread_target::resume)
9663 (ravenscar_thread_target::wait): Special case wildcard requests.
9665 2019-02-15 Tom Tromey <tromey@adacore.com>
9667 * ravenscar-thread.c (base_ptid): Remove.
9668 (struct ravenscar_thread_target) <close>: New method.
9669 <m_base_ptid>: New member.
9670 <update_inferior_ptid, active_task, task_is_currently_active,
9671 runtime_initialized>: Declare methods.
9672 <ravenscar_thread_target>: Add constructor.
9673 (ravenscar_thread_target::task_is_currently_active)
9674 (ravenscar_thread_target::update_inferior_ptid)
9675 (ravenscar_runtime_initialized): Rename. Now methods.
9676 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9677 (ravenscar_thread_target::update_thread_list): Update.
9678 (ravenscar_thread_target::active_task): Now method.
9679 (ravenscar_thread_target::store_registers)
9680 (ravenscar_thread_target::prepare_to_store)
9681 (ravenscar_thread_target::prepare_to_store)
9682 (ravenscar_thread_target::mourn_inferior): Update.
9683 (ravenscar_inferior_created): Use "new" to create target.
9684 (ravenscar_thread_target::get_ada_task_ptid): Update.
9685 (_initialize_ravenscar): Don't initialize base_ptid.
9686 (ravenscar_ops): Remove global.
9688 2019-02-15 Tom Tromey <tromey@adacore.com>
9690 * target.h (push_target): Declare new overload.
9691 * target.c (push_target): New overload, taking an rvalue reference.
9692 * remote.c (remote_target::open_1): Use push_target overload.
9693 * corelow.c (core_target_open): Use push_target overload.
9695 2019-02-15 Tom Tromey <tromey@adacore.com>
9697 * ravenscar-thread.c (is_ravenscar_task)
9698 (ravenscar_task_is_currently_active): Return bool.
9699 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9700 (_initialize_ravenscar): Remove "(void)".
9701 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9704 2019-02-15 Tom Tromey <tromey@adacore.com>
9706 * ravenscar-thread.c (ravenscar_runtime_initializer)
9707 (has_ravenscar_runtime, get_running_thread_id)
9708 (ravenscar_thread_target::resume): Fix indentation.
9710 2019-02-15 Tom Tromey <tromey@adacore.com>
9712 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9713 from ravenscar_arch_ops.
9714 (sparc_ravenscar_ops::fetch_registers)
9715 (sparc_ravenscar_ops::store_registers): Now methods.
9716 (sparc_ravenscar_prepare_to_store): Remove.
9717 (sparc_ravenscar_ops): Redefine.
9718 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9719 methods and destructor. Remove members.
9720 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9721 (ravenscar_thread_target::store_registers)
9722 (ravenscar_thread_target::prepare_to_store): Update.
9723 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9725 (struct ppc_ravenscar_powerpc_ops): Derive from
9727 (ppc_ravenscar_powerpc_ops::fetch_registers)
9728 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9729 (ppc_ravenscar_powerpc_ops): Redefine.
9730 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9731 (ppc_ravenscar_e500_ops::fetch_registers)
9732 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9733 (ppc_ravenscar_e500_ops): Redefine.
9734 * aarch64-ravenscar-thread.c
9735 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9736 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9737 (aarch64_ravenscar_fetch_registers)
9738 (aarch64_ravenscar_store_registers): Now methods.
9739 (aarch64_ravenscar_ops): Redefine.
9741 2019-02-15 Tom Tromey <tromey@adacore.com>
9743 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9744 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9745 (ravenscar_thread_target::stopped_by_watchpoint)
9746 (ravenscar_thread_target::stopped_data_address)
9747 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9749 2019-02-15 Tom Tromey <tromey@adacore.com>
9751 * ravenscar-thread.c: Fix some typos.
9753 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9754 Tom Tromey <tromey@adacore.com>
9756 * ada-lang.c (ada_exception_sal): Change addr_string to a
9758 (create_ada_exception_catchpoint): Update.
9760 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9761 Tom Tromey <tromey@adacore.com>
9763 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9764 (bp_location_ops): Remove.
9765 (base_breakpoint_allocate_location): Update.
9766 (free_bp_location): Update.
9767 * ada-lang.c (class ada_catchpoint_location)
9768 <ada_catchpoint_location>: Remove ops parameter.
9769 (ada_catchpoint_location_dtor): Remove.
9770 (ada_catchpoint_location_ops): Remove.
9771 (allocate_location_exception): Update.
9772 * breakpoint.h (struct bp_location_ops): Remove.
9773 (class bp_location) <bp_location>: Remove bp_location_ops
9775 <~bp_location>: Add destructor.
9778 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9779 Pedro Alves <palves@redhat.com>
9781 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9784 2019-02-14 David Michael <fedora.dm0@gmail.com>
9785 Samuel Thibault <samuel.thibault@gnu.org>
9786 Thomas Schwinge <thomas@codesourcery.com>
9788 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9789 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9791 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9793 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9794 (check_empty): Use "const char *".
9796 * gnu-nat.c (gnu_nat_target::detach): Instead of
9797 'detach_inferior (pid)' call
9798 'detach_inferior (find_inferior_pid (pid))'.
9800 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9801 'nat/fork-inferior.o'.
9802 * gnu-nat.c: #include "nat/fork-inferior.h".
9804 * gnu-nat.c (gnu_nat_target::detach): Instead of
9805 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9806 * gnu-nat.h: #include "inf-child.h".
9807 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9808 'i386_gnu_nat_target::fetch_registers'.
9809 (gnu_store_registers): Rename/move to
9810 'i386_gnu_nat_target::store_registers'.
9812 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9813 * gnu-nat.h (mach_thread_info): New function.
9814 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9816 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9818 2019-02-14 Frederic Konrad <konrad@adacore.com>
9820 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9822 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9824 * windows-nat.c (windows_add_thread): Add new parameter
9825 "main_thread_p" with default value set to false. Update
9826 function documentation as well as all callers.
9827 (windows_delete_thread): Likewise.
9828 (fake_create_process): Update call to windows_add_thread.
9829 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9830 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9831 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9832 call to windows_delete_thread.
9834 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9836 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9838 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9840 * symfile.c (find_separate_debug_file): Use canonical path of
9841 sysroot with child_path instead of gdb_sysroot if it is valid.
9843 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9845 * symfile.c (find_separate_debug_file): Use child_path to
9846 determine if an object file is under a sysroot.
9848 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9850 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9851 unittests/child-path-selftests.c.
9852 * common/pathstuff.c (child_path): New function.
9853 * common/pathstuff.h (child_path): New prototype.
9854 * unittests/child-path-selftests.c: New file.
9856 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9858 * symfile.c (find_separate_debug_file): Look for separate debug
9859 files in debug directories under the sysroot.
9861 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9863 * symtab.h (struct minimal_symbol data_p): New const method.
9864 (struct minimal_symbol text_p): Likewise.
9865 * symtab.c (output_source_filename): Use file name style
9867 (print_symbol_info): Likewise.
9868 (print_msymbol_info): Use address style to print addresses.
9869 Use function name style to print executable text symbols.
9870 (expand_symtab_containing_pc): Use data_p.
9871 (find_pc_sect_compunit_symtab): Likewise.
9873 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9875 * breakpoint.c (describe_other_breakpoints): Use address style
9877 (say_where): Likewise.
9879 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9881 * ada-typeprint.c (print_func_type): Print function name
9882 style to print function name.
9883 * c-typeprint.c (c_print_type_1): Likewise.
9885 2019-02-11 Alan Hayward <alan.hayward@arm.com>
9887 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9890 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9892 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9895 2019-02-10 Joel Brobecker <brobecker@adacore.com>
9897 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9898 TYPE_CODE_REF types.
9900 2019-02-08 Jim Wilson <jimw@sifive.com>
9902 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9903 (riscv_linux_fregset): New.
9904 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9906 2019-02-07 Tom Tromey <tom@tromey.com>
9908 * thread.c (thread_cancel_execution_command): Update.
9909 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9911 (struct thread_fsm_ops): Remove.
9912 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9913 (thread_fsm_should_stop, thread_fsm_return_value)
9914 (thread_fsm_set_finished, thread_fsm_finished_p)
9915 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9917 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9918 * infrun.c (clear_proceed_status_thread)
9919 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9920 (print_stop_event): Update.
9921 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9923 (step_command_fsm_ops): Remove.
9924 (new_step_command_fsm): Remove.
9926 (step_command_fsm::should_stop): Rename from
9927 step_command_fsm_should_stop.
9928 (step_command_fsm::clean_up): Rename from
9929 step_command_fsm_clean_up.
9930 (step_command_fsm::do_async_reply_reason): Rename from
9931 step_command_fsm_async_reply_reason.
9932 (struct until_next_fsm): Inherit from thread_fsm. Add
9934 (until_next_fsm_ops): Remove.
9935 (new_until_next_fsm): Remove.
9936 (until_next_fsm::should_stop): Rename from
9937 until_next_fsm_should_stop.
9938 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9939 (until_next_fsm::do_async_reply_reason): Rename from
9940 until_next_fsm_async_reply_reason.
9941 (struct finish_command_fsm): Inherit from thread_fsm. Add
9942 constructor. Change type of breakpoint.
9943 (finish_command_fsm_ops): Remove.
9944 (new_finish_command_fsm): Remove.
9945 (finish_command_fsm::should_stop): Rename from
9946 finish_command_fsm_should_stop.
9947 (finish_command_fsm::clean_up): Rename from
9948 finish_command_fsm_clean_up.
9949 (finish_command_fsm::return_value): Rename from
9950 finish_command_fsm_return_value.
9951 (finish_command_fsm::do_async_reply_reason): Rename from
9952 finish_command_fsm_async_reply_reason.
9953 (finish_command): Update.
9954 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9956 (call_thread_fsm_ops): Remove.
9957 (call_thread_fsm::call_thread_fsm): Rename from
9958 new_call_thread_fsm.
9959 (call_thread_fsm::should_stop): Rename from
9960 call_thread_fsm_should_stop.
9961 (call_thread_fsm::should_notify_stop): Rename from
9962 call_thread_fsm_should_notify_stop.
9963 (run_inferior_call, call_function_by_hand_dummy): Update.
9964 * cli/cli-interp.c (should_print_stop_to_console): Update.
9965 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9966 Add constructor. Change type of location_breakpoint,
9968 (until_break_fsm_ops): Remove.
9969 (new_until_break_fsm): Remove.
9970 (until_break_fsm::should_stop): Rename from
9971 until_break_fsm_should_stop.
9972 (until_break_fsm::clean_up): Rename from
9973 until_break_fsm_clean_up.
9974 (until_break_fsm::do_async_reply_reason): Rename from
9975 until_break_fsm_async_reply_reason.
9976 (until_break_command): Update.
9977 * thread-fsm.c: Remove.
9978 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9980 2019-02-07 Tom Tromey <tom@tromey.com>
9982 * yy-remap.h: Add include guard.
9983 * xtensa-tdep.h: Add include guard.
9984 * xcoffread.h: Rename include guard.
9985 * varobj-iter.h: Add include guard.
9986 * tui/tui.h: Rename include guard.
9987 * tui/tui-winsource.h: Rename include guard.
9988 * tui/tui-wingeneral.h: Rename include guard.
9989 * tui/tui-windata.h: Rename include guard.
9990 * tui/tui-win.h: Rename include guard.
9991 * tui/tui-stack.h: Rename include guard.
9992 * tui/tui-source.h: Rename include guard.
9993 * tui/tui-regs.h: Rename include guard.
9994 * tui/tui-out.h: Rename include guard.
9995 * tui/tui-layout.h: Rename include guard.
9996 * tui/tui-io.h: Rename include guard.
9997 * tui/tui-hooks.h: Rename include guard.
9998 * tui/tui-file.h: Rename include guard.
9999 * tui/tui-disasm.h: Rename include guard.
10000 * tui/tui-data.h: Rename include guard.
10001 * tui/tui-command.h: Rename include guard.
10002 * tic6x-tdep.h: Add include guard.
10003 * target/waitstatus.h: Rename include guard.
10004 * target/wait.h: Rename include guard.
10005 * target/target.h: Rename include guard.
10006 * target/resume.h: Rename include guard.
10007 * target-float.h: Rename include guard.
10008 * stabsread.h: Add include guard.
10009 * rs6000-tdep.h: Add include guard.
10010 * riscv-fbsd-tdep.h: Add include guard.
10011 * regformats/regdef.h: Rename include guard.
10012 * record.h: Rename include guard.
10013 * python/python.h: Rename include guard.
10014 * python/python-internal.h: Rename include guard.
10015 * python/py-stopevent.h: Rename include guard.
10016 * python/py-ref.h: Rename include guard.
10017 * python/py-record.h: Rename include guard.
10018 * python/py-record-full.h: Rename include guard.
10019 * python/py-record-btrace.h: Rename include guard.
10020 * python/py-instruction.h: Rename include guard.
10021 * python/py-events.h: Rename include guard.
10022 * python/py-event.h: Rename include guard.
10023 * procfs.h: Add include guard.
10024 * proc-utils.h: Add include guard.
10025 * p-lang.h: Add include guard.
10026 * or1k-tdep.h: Rename include guard.
10027 * observable.h: Rename include guard.
10028 * nto-tdep.h: Rename include guard.
10029 * nat/x86-linux.h: Rename include guard.
10030 * nat/x86-linux-dregs.h: Rename include guard.
10031 * nat/x86-gcc-cpuid.h: Add include guard.
10032 * nat/x86-dregs.h: Rename include guard.
10033 * nat/x86-cpuid.h: Rename include guard.
10034 * nat/ppc-linux.h: Rename include guard.
10035 * nat/mips-linux-watch.h: Rename include guard.
10036 * nat/linux-waitpid.h: Rename include guard.
10037 * nat/linux-ptrace.h: Rename include guard.
10038 * nat/linux-procfs.h: Rename include guard.
10039 * nat/linux-osdata.h: Rename include guard.
10040 * nat/linux-nat.h: Rename include guard.
10041 * nat/linux-namespaces.h: Rename include guard.
10042 * nat/linux-btrace.h: Rename include guard.
10043 * nat/glibc_thread_db.h: Rename include guard.
10044 * nat/gdb_thread_db.h: Rename include guard.
10045 * nat/gdb_ptrace.h: Rename include guard.
10046 * nat/fork-inferior.h: Rename include guard.
10047 * nat/amd64-linux-siginfo.h: Rename include guard.
10048 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10049 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10050 * nat/aarch64-linux.h: Rename include guard.
10051 * nat/aarch64-linux-hw-point.h: Rename include guard.
10052 * mn10300-tdep.h: Add include guard.
10053 * mips-linux-tdep.h: Add include guard.
10054 * mi/mi-parse.h: Rename include guard.
10055 * mi/mi-out.h: Rename include guard.
10056 * mi/mi-main.h: Rename include guard.
10057 * mi/mi-interp.h: Rename include guard.
10058 * mi/mi-getopt.h: Rename include guard.
10059 * mi/mi-console.h: Rename include guard.
10060 * mi/mi-common.h: Rename include guard.
10061 * mi/mi-cmds.h: Rename include guard.
10062 * mi/mi-cmd-break.h: Rename include guard.
10063 * m2-lang.h: Add include guard.
10064 * location.h: Rename include guard.
10065 * linux-record.h: Rename include guard.
10066 * linux-nat.h: Add include guard.
10067 * linux-fork.h: Add include guard.
10068 * i386-darwin-tdep.h: Rename include guard.
10069 * hppa-linux-offsets.h: Add include guard.
10070 * guile/guile.h: Rename include guard.
10071 * guile/guile-internal.h: Rename include guard.
10072 * gnu-nat.h: Rename include guard.
10073 * gdb-stabs.h: Rename include guard.
10074 * frv-tdep.h: Add include guard.
10075 * f-lang.h: Add include guard.
10076 * event-loop.h: Add include guard.
10077 * darwin-nat.h: Rename include guard.
10078 * cp-abi.h: Rename include guard.
10079 * config/sparc/nm-sol2.h: Rename include guard.
10080 * config/nm-nto.h: Rename include guard.
10081 * config/nm-linux.h: Add include guard.
10082 * config/i386/nm-i386gnu.h: Rename include guard.
10083 * config/djgpp/nl_types.h: Rename include guard.
10084 * config/djgpp/langinfo.h: Rename include guard.
10085 * compile/gcc-cp-plugin.h: Add include guard.
10086 * compile/gcc-c-plugin.h: Add include guard.
10087 * compile/compile.h: Rename include guard.
10088 * compile/compile-object-run.h: Rename include guard.
10089 * compile/compile-object-load.h: Rename include guard.
10090 * compile/compile-internal.h: Rename include guard.
10091 * compile/compile-cplus.h: Rename include guard.
10092 * compile/compile-c.h: Rename include guard.
10093 * common/xml-utils.h: Rename include guard.
10094 * common/x86-xstate.h: Rename include guard.
10095 * common/version.h: Rename include guard.
10096 * common/vec.h: Rename include guard.
10097 * common/tdesc.h: Rename include guard.
10098 * common/selftest.h: Rename include guard.
10099 * common/scoped_restore.h: Rename include guard.
10100 * common/scoped_mmap.h: Rename include guard.
10101 * common/scoped_fd.h: Rename include guard.
10102 * common/safe-iterator.h: Rename include guard.
10103 * common/run-time-clock.h: Rename include guard.
10104 * common/refcounted-object.h: Rename include guard.
10105 * common/queue.h: Rename include guard.
10106 * common/ptid.h: Rename include guard.
10107 * common/print-utils.h: Rename include guard.
10108 * common/preprocessor.h: Rename include guard.
10109 * common/pathstuff.h: Rename include guard.
10110 * common/observable.h: Rename include guard.
10111 * common/netstuff.h: Rename include guard.
10112 * common/job-control.h: Rename include guard.
10113 * common/host-defs.h: Rename include guard.
10114 * common/gdb_wait.h: Rename include guard.
10115 * common/gdb_vecs.h: Rename include guard.
10116 * common/gdb_unlinker.h: Rename include guard.
10117 * common/gdb_unique_ptr.h: Rename include guard.
10118 * common/gdb_tilde_expand.h: Rename include guard.
10119 * common/gdb_sys_time.h: Rename include guard.
10120 * common/gdb_string_view.h: Rename include guard.
10121 * common/gdb_splay_tree.h: Rename include guard.
10122 * common/gdb_setjmp.h: Rename include guard.
10123 * common/gdb_ref_ptr.h: Rename include guard.
10124 * common/gdb_optional.h: Rename include guard.
10125 * common/gdb_locale.h: Rename include guard.
10126 * common/gdb_assert.h: Rename include guard.
10127 * common/filtered-iterator.h: Rename include guard.
10128 * common/filestuff.h: Rename include guard.
10129 * common/fileio.h: Rename include guard.
10130 * common/environ.h: Rename include guard.
10131 * common/common-utils.h: Rename include guard.
10132 * common/common-types.h: Rename include guard.
10133 * common/common-regcache.h: Rename include guard.
10134 * common/common-inferior.h: Rename include guard.
10135 * common/common-gdbthread.h: Rename include guard.
10136 * common/common-exceptions.h: Rename include guard.
10137 * common/common-defs.h: Rename include guard.
10138 * common/common-debug.h: Rename include guard.
10139 * common/cleanups.h: Rename include guard.
10140 * common/buffer.h: Rename include guard.
10141 * common/btrace-common.h: Rename include guard.
10142 * common/break-common.h: Rename include guard.
10143 * cli/cli-utils.h: Rename include guard.
10144 * cli/cli-style.h: Rename include guard.
10145 * cli/cli-setshow.h: Rename include guard.
10146 * cli/cli-script.h: Rename include guard.
10147 * cli/cli-interp.h: Rename include guard.
10148 * cli/cli-decode.h: Rename include guard.
10149 * cli/cli-cmds.h: Rename include guard.
10150 * charset-list.h: Add include guard.
10151 * buildsym-legacy.h: Rename include guard.
10152 * bfin-tdep.h: Add include guard.
10153 * ax.h: Rename include guard.
10154 * arm-linux-tdep.h: Add include guard.
10155 * arm-fbsd-tdep.h: Add include guard.
10156 * arch/xtensa.h: Rename include guard.
10157 * arch/tic6x.h: Add include guard.
10158 * arch/i386.h: Add include guard.
10159 * arch/arm.h: Rename include guard.
10160 * arch/arm-linux.h: Rename include guard.
10161 * arch/arm-get-next-pcs.h: Rename include guard.
10162 * arch/amd64.h: Add include guard.
10163 * arch/aarch64-insn.h: Rename include guard.
10164 * arch-utils.h: Rename include guard.
10165 * annotate.h: Add include guard.
10166 * amd64-darwin-tdep.h: Rename include guard.
10167 * aarch64-linux-tdep.h: Add include guard.
10168 * aarch64-fbsd-tdep.h: Add include guard.
10169 * aarch32-linux-nat.h: Add include guard.
10171 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10173 * macrotab.c (macro_define_internal): New function that
10174 factorizes macro_define_object_internal and macro_define_function
10176 (macro_define_object_internal): Use macro_define_internal.
10177 (macro_define_function): Likewise.
10179 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10181 * macrocmd.c (extract_identifier): Return
10182 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10185 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10187 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10189 2019-02-05 Tom Tromey <tom@tromey.com>
10191 * target.c (target_stack::unpush): Move assertion earlier.
10193 2019-01-30 Tom Tromey <tom@tromey.com>
10196 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10197 (gdbpy_parse_and_eval): Likewise.
10198 * python/python-internal.h (gdbpy_allow_threads): New class.
10200 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10202 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10203 (aarch64_fbsd_fpregmap): Move earlier.
10204 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10205 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10206 instead of individual calls to trad_frame_set_reg_addr.
10207 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10209 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10210 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10211 instead of individual calls to trad_frame_set_reg_addr.
10213 2019-01-28 Alan Hayward <alan.hayward@arm.com>
10215 * CONTRIBUTE: Replace contribution list with wiki link.
10217 2019-01-25 Tom Tromey <tom@tromey.com>
10219 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10221 2019-01-25 Tom Tromey <tom@tromey.com>
10223 * xtensa-linux-nat.c: Fix common/ includes.
10224 * xml-support.h: Fix common/ includes.
10225 * xml-support.c: Fix common/ includes.
10226 * x86-linux-nat.c: Fix common/ includes.
10227 * windows-nat.c: Fix common/ includes.
10228 * varobj.h: Fix common/ includes.
10229 * varobj.c: Fix common/ includes.
10230 * value.c: Fix common/ includes.
10231 * valops.c: Fix common/ includes.
10232 * utils.c: Fix common/ includes.
10233 * unittests/xml-utils-selftests.c: Fix common/ includes.
10234 * unittests/utils-selftests.c: Fix common/ includes.
10235 * unittests/unpack-selftests.c: Fix common/ includes.
10236 * unittests/tracepoint-selftests.c: Fix common/ includes.
10237 * unittests/style-selftests.c: Fix common/ includes.
10238 * unittests/string_view-selftests.c: Fix common/ includes.
10239 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10240 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10241 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10242 * unittests/rsp-low-selftests.c: Fix common/ includes.
10243 * unittests/parse-connection-spec-selftests.c: Fix common/
10245 * unittests/optional-selftests.c: Fix common/ includes.
10246 * unittests/offset-type-selftests.c: Fix common/ includes.
10247 * unittests/observable-selftests.c: Fix common/ includes.
10248 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10249 * unittests/memrange-selftests.c: Fix common/ includes.
10250 * unittests/memory-map-selftests.c: Fix common/ includes.
10251 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10252 * unittests/function-view-selftests.c: Fix common/ includes.
10253 * unittests/environ-selftests.c: Fix common/ includes.
10254 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10255 * unittests/common-utils-selftests.c: Fix common/ includes.
10256 * unittests/cli-utils-selftests.c: Fix common/ includes.
10257 * unittests/array-view-selftests.c: Fix common/ includes.
10258 * ui-file.c: Fix common/ includes.
10259 * tui/tui-io.c: Fix common/ includes.
10260 * tracepoint.h: Fix common/ includes.
10261 * tracepoint.c: Fix common/ includes.
10262 * tracefile-tfile.c: Fix common/ includes.
10263 * top.h: Fix common/ includes.
10264 * top.c: Fix common/ includes.
10265 * thread.c: Fix common/ includes.
10266 * target/waitstatus.h: Fix common/ includes.
10267 * target/waitstatus.c: Fix common/ includes.
10268 * target.h: Fix common/ includes.
10269 * target.c: Fix common/ includes.
10270 * target-memory.c: Fix common/ includes.
10271 * target-descriptions.c: Fix common/ includes.
10272 * symtab.h: Fix common/ includes.
10273 * symfile.c: Fix common/ includes.
10274 * stap-probe.c: Fix common/ includes.
10275 * spu-linux-nat.c: Fix common/ includes.
10276 * sparc-nat.c: Fix common/ includes.
10277 * source.c: Fix common/ includes.
10278 * solib.c: Fix common/ includes.
10279 * solib-target.c: Fix common/ includes.
10280 * ser-unix.c: Fix common/ includes.
10281 * ser-tcp.c: Fix common/ includes.
10282 * ser-pipe.c: Fix common/ includes.
10283 * ser-base.c: Fix common/ includes.
10284 * selftest-arch.c: Fix common/ includes.
10285 * s12z-tdep.c: Fix common/ includes.
10286 * rust-exp.y: Fix common/ includes.
10287 * rs6000-aix-tdep.c: Fix common/ includes.
10288 * riscv-tdep.c: Fix common/ includes.
10289 * remote.c: Fix common/ includes.
10290 * remote-notif.h: Fix common/ includes.
10291 * remote-fileio.h: Fix common/ includes.
10292 * remote-fileio.c: Fix common/ includes.
10293 * regcache.h: Fix common/ includes.
10294 * regcache.c: Fix common/ includes.
10295 * record-btrace.c: Fix common/ includes.
10296 * python/python.c: Fix common/ includes.
10297 * python/py-type.c: Fix common/ includes.
10298 * python/py-inferior.c: Fix common/ includes.
10299 * progspace.h: Fix common/ includes.
10300 * producer.c: Fix common/ includes.
10301 * procfs.c: Fix common/ includes.
10302 * proc-api.c: Fix common/ includes.
10303 * printcmd.c: Fix common/ includes.
10304 * ppc-linux-nat.c: Fix common/ includes.
10305 * parser-defs.h: Fix common/ includes.
10306 * osdata.c: Fix common/ includes.
10307 * obsd-nat.c: Fix common/ includes.
10308 * nat/x86-linux.c: Fix common/ includes.
10309 * nat/x86-linux-dregs.c: Fix common/ includes.
10310 * nat/x86-dregs.h: Fix common/ includes.
10311 * nat/x86-dregs.c: Fix common/ includes.
10312 * nat/ppc-linux.c: Fix common/ includes.
10313 * nat/mips-linux-watch.h: Fix common/ includes.
10314 * nat/mips-linux-watch.c: Fix common/ includes.
10315 * nat/linux-waitpid.c: Fix common/ includes.
10316 * nat/linux-ptrace.h: Fix common/ includes.
10317 * nat/linux-ptrace.c: Fix common/ includes.
10318 * nat/linux-procfs.c: Fix common/ includes.
10319 * nat/linux-personality.c: Fix common/ includes.
10320 * nat/linux-osdata.c: Fix common/ includes.
10321 * nat/linux-namespaces.c: Fix common/ includes.
10322 * nat/linux-btrace.h: Fix common/ includes.
10323 * nat/linux-btrace.c: Fix common/ includes.
10324 * nat/fork-inferior.c: Fix common/ includes.
10325 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10326 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10327 * nat/aarch64-linux.c: Fix common/ includes.
10328 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10329 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10330 * namespace.h: Fix common/ includes.
10331 * mips-linux-tdep.c: Fix common/ includes.
10332 * minsyms.c: Fix common/ includes.
10333 * mi/mi-parse.h: Fix common/ includes.
10334 * mi/mi-main.c: Fix common/ includes.
10335 * mi/mi-cmd-env.c: Fix common/ includes.
10336 * memrange.h: Fix common/ includes.
10337 * memattr.c: Fix common/ includes.
10338 * maint.h: Fix common/ includes.
10339 * maint.c: Fix common/ includes.
10340 * main.c: Fix common/ includes.
10341 * machoread.c: Fix common/ includes.
10342 * location.c: Fix common/ includes.
10343 * linux-thread-db.c: Fix common/ includes.
10344 * linux-nat.c: Fix common/ includes.
10345 * linux-fork.c: Fix common/ includes.
10346 * inline-frame.c: Fix common/ includes.
10347 * infrun.c: Fix common/ includes.
10348 * inflow.c: Fix common/ includes.
10349 * inferior.h: Fix common/ includes.
10350 * inferior.c: Fix common/ includes.
10351 * infcmd.c: Fix common/ includes.
10352 * inf-ptrace.c: Fix common/ includes.
10353 * inf-child.c: Fix common/ includes.
10354 * ia64-linux-nat.c: Fix common/ includes.
10355 * i387-tdep.c: Fix common/ includes.
10356 * i386-tdep.c: Fix common/ includes.
10357 * i386-linux-tdep.c: Fix common/ includes.
10358 * i386-linux-nat.c: Fix common/ includes.
10359 * i386-go32-tdep.c: Fix common/ includes.
10360 * i386-fbsd-tdep.c: Fix common/ includes.
10361 * i386-fbsd-nat.c: Fix common/ includes.
10362 * guile/scm-type.c: Fix common/ includes.
10363 * guile/guile.c: Fix common/ includes.
10364 * go32-nat.c: Fix common/ includes.
10365 * gnu-nat.c: Fix common/ includes.
10366 * gdbthread.h: Fix common/ includes.
10367 * gdbarch-selftests.c: Fix common/ includes.
10368 * gdb_usleep.c: Fix common/ includes.
10369 * gdb_select.h: Fix common/ includes.
10370 * gdb_bfd.c: Fix common/ includes.
10371 * gcore.c: Fix common/ includes.
10372 * fork-child.c: Fix common/ includes.
10373 * findvar.c: Fix common/ includes.
10374 * fbsd-nat.c: Fix common/ includes.
10375 * event-top.c: Fix common/ includes.
10376 * event-loop.c: Fix common/ includes.
10377 * dwarf2read.c: Fix common/ includes.
10378 * dwarf2loc.c: Fix common/ includes.
10379 * dwarf2-frame.c: Fix common/ includes.
10380 * dwarf-index-cache.c: Fix common/ includes.
10381 * dtrace-probe.c: Fix common/ includes.
10382 * disasm-selftests.c: Fix common/ includes.
10383 * defs.h: Fix common/ includes.
10384 * csky-tdep.c: Fix common/ includes.
10385 * cp-valprint.c: Fix common/ includes.
10386 * cp-support.h: Fix common/ includes.
10387 * cp-support.c: Fix common/ includes.
10388 * corelow.c: Fix common/ includes.
10389 * completer.h: Fix common/ includes.
10390 * completer.c: Fix common/ includes.
10391 * compile/compile.c: Fix common/ includes.
10392 * compile/compile-loc2c.c: Fix common/ includes.
10393 * compile/compile-cplus-types.c: Fix common/ includes.
10394 * compile/compile-cplus-symbols.c: Fix common/ includes.
10395 * command.h: Fix common/ includes.
10396 * cli/cli-dump.c: Fix common/ includes.
10397 * cli/cli-cmds.c: Fix common/ includes.
10398 * charset.c: Fix common/ includes.
10399 * build-id.c: Fix common/ includes.
10400 * btrace.h: Fix common/ includes.
10401 * btrace.c: Fix common/ includes.
10402 * breakpoint.h: Fix common/ includes.
10403 * breakpoint.c: Fix common/ includes.
10405 (enum agent_op): Fix common/ includes.
10406 * ax-general.c (struct aop_map): Fix common/ includes.
10407 * ax-gdb.c: Fix common/ includes.
10408 * auxv.c: Fix common/ includes.
10409 * auto-load.c: Fix common/ includes.
10410 * arm-tdep.c: Fix common/ includes.
10411 * arch/riscv.c: Fix common/ includes.
10412 * arch/ppc-linux-common.c: Fix common/ includes.
10413 * arch/i386.c: Fix common/ includes.
10414 * arch/arm.c: Fix common/ includes.
10415 * arch/arm-linux.c: Fix common/ includes.
10416 * arch/arm-get-next-pcs.c: Fix common/ includes.
10417 * arch/amd64.c: Fix common/ includes.
10418 * arch/aarch64.c: Fix common/ includes.
10419 * arch/aarch64-insn.c: Fix common/ includes.
10420 * arch-utils.c: Fix common/ includes.
10421 * amd64-windows-tdep.c: Fix common/ includes.
10422 * amd64-tdep.c: Fix common/ includes.
10423 * amd64-sol2-tdep.c: Fix common/ includes.
10424 * amd64-obsd-tdep.c: Fix common/ includes.
10425 * amd64-nbsd-tdep.c: Fix common/ includes.
10426 * amd64-linux-tdep.c: Fix common/ includes.
10427 * amd64-linux-nat.c: Fix common/ includes.
10428 * amd64-fbsd-tdep.c: Fix common/ includes.
10429 * amd64-fbsd-nat.c: Fix common/ includes.
10430 * amd64-dicos-tdep.c: Fix common/ includes.
10431 * amd64-darwin-tdep.c: Fix common/ includes.
10432 * agent.c: Fix common/ includes.
10433 * ada-lang.h: Fix common/ includes.
10434 * ada-lang.c: Fix common/ includes.
10435 * aarch64-tdep.c: Fix common/ includes.
10437 2019-01-25 Tom Tromey <tom@tromey.com>
10439 * common/create-version.sh: Use common/version.h.
10441 2019-01-24 Pedro Alves <palves@redhat.com>
10443 * infrun.c (signal_stop, signal_print, signal_program)
10444 (signal_catch, signal_pass): Now arrays instead of pointers.
10445 (update_signals_program_target, do_target_resume)
10446 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10447 * linux-nat.c (linux_nat_target::pass_signals)
10448 (linux_nat_target::create_inferior, linux_nat_target::attach):
10450 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10451 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10452 * procfs.c (procfs_target::pass_signals): Adjust.
10453 * record-full.c (record_full_target::resume): Adjust.
10454 * remote.c (remote_target::pass_signals)
10455 (remote_target::program_signals): Adjust.
10456 * target-debug.h (target_debug_print_signals): Now takes a
10457 gdb::array_view as parameter. Adjust.
10458 * target.h (target_ops) <pass_signals, program_signals>: Replace
10459 pointer and length parameters with gdb::array_view.
10460 (target_pass_signals, target_program_signals): Likewise.
10461 * target-delegates.c: Regenerate.
10463 2019-01-24 Pedro Alves <palves@redhat.com>
10465 * common/forward-scope-exit.h
10466 (forward_scope_exit::forward_scope_exit): Pass arguments to
10467 m_bind_function directly, instead of creating a std::bind and
10470 2019-01-24 Alan Hayward <alan.hayward@arm.com>
10472 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10473 for static members.
10474 (pass_in_v_vfp_candidate): Likewise.
10476 2019-01-23 Tom Tromey <tom@tromey.com>
10477 Pedro Alves <palves@redhat.com>
10479 * regcache.c (class regcache_invalidator): Remove.
10480 (regcache::raw_write): Use make_scope_exit.
10482 2019-01-23 Tom Tromey <tom@tromey.com>
10484 * ui-out.h (class ui_out_emit_type): Update comment.
10486 2019-01-23 Tom Tromey <tom@tromey.com>
10488 * infrun.c (fetch_inferior_event): Update comment.
10490 2019-01-23 Tom Tromey <tom@tromey.com>
10491 Pedro Alves <palves@redhat.com>
10493 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10495 (fetch_inferior_event): Use SCOPE_EXIT.
10498 2019-01-23 Tom Tromey <tom@tromey.com>
10499 Pedro Alves <palves@redhat.com>
10501 * infrun.c (disable_thread_events): Delete.
10502 (stop_all_threads): Use SCOPE_EXIT.
10504 2019-01-23 Tom Tromey <tom@tromey.com>
10505 Pedro Alves <palves@redhat.com>
10507 * symfile.c: Include forward-scope-exit.h.
10508 (clear_symtab_users_cleanup): Replace forward declaration with
10509 a FORWARD_SCOPE_EXIT.
10510 (syms_from_objfile_1): Use the forward_scope_exit and
10511 gdb::optional instead of cleanup_function.
10512 (reread_symbols): Use the forward_scope_exit instead of
10514 (clear_symtab_users_cleanup): Remove function.
10516 2019-01-23 Tom Tromey <tom@tromey.com>
10517 Pedro Alves <palves@redhat.com>
10519 * linux-nat.c: Include scope-exit.h.
10520 (cleanup_target_stop): Remove.
10521 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10524 2019-01-23 Tom Tromey <tom@tromey.com>
10525 Pedro Alves <palves@redhat.com>
10527 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10528 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10530 2019-01-23 Tom Tromey <tom@tromey.com>
10531 Andrew Burgess <andrew.burgess@embecosm.com>
10532 Pedro Alves <palves@redhat.com>
10534 * infrun.c (fetch_inferior_event): Use scope_exit.
10535 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10536 * top.c (execute_command): Use scope_exit.
10537 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10538 * utils.c (do_bpstat_clear_actions_cleanup)
10539 (make_bpstat_clear_actions_cleanup): Remove.
10541 2019-01-23 Tom Tromey <tom@tromey.com>
10542 Pedro Alves <palves@redhat.com>
10544 * infrun.c: Include "common/scope-exit.h"
10545 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10546 (wait_for_inferior): Use SCOPE_EXIT.
10547 (fetch_inferior_event): Use scope_exit.
10549 2019-01-23 Tom Tromey <tom@tromey.com>
10550 Pedro Alves <palves@redhat.com>
10552 * breakpoint.c (create_breakpoint): Remove cleanup.
10554 2019-01-23 Tom Tromey <tom@tromey.com>
10555 Andrew Burgess <andrew.burgess@embecosm.com>
10556 Pedro Alves <palves@redhat.com>
10558 2019-01-23 Pedro Alves <palves@redhat.com>
10560 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10562 2019-01-23 Pedro Alves <palves@redhat.com>
10563 Andrew Burgess <andrew.burgess@embecosm.com>
10565 * gdbthread.h: Include "common/forward-scope-exit.h".
10566 (scoped_finish_thread_state): Redefine custom class in terms of
10567 forward_scope_exit.
10569 2019-01-23 Pedro Alves <palves@redhat.com>
10570 Andrew Burgess <andrew.burgess@embecosm.com>
10572 * common/forward-scope-exit.h: New file.
10574 2019-01-23 Pedro Alves <palves@redhat.com>
10575 Andrew Burgess <andrew.burgess@embecosm.com>
10576 Tom Tromey <tom@tromey.com>
10578 * common/scope-exit.h: New file.
10580 2019-01-23 Pedro Alves <palves@redhat.com>
10582 * common/preprocessor.h (ESC): Rename to ...
10583 (ESC_PARENS): ... this.
10584 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10585 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10587 2019-01-23 Tom Tromey <tom@tromey.com>
10589 * language.h (class scoped_switch_to_sym_language_if_auto):
10590 Initialize m_lang in both cases.
10592 2019-01-23 Alan Hayward <alan.hayward@arm.com>
10594 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10597 2019-01-22 Tom Tromey <tom@tromey.com>
10599 * corelow.c: Do not include sys/file.h.
10601 2019-01-22 Tom Tromey <tom@tromey.com>
10603 * tui/tui-wingeneral.h: Include gdb_curses.h.
10605 2019-01-22 Tom Tromey <tom@tromey.com>
10607 * source-cache.h (class source_cache) <get_source_lines,
10608 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10610 2019-01-22 Tom Tromey <tom@tromey.com>
10612 * remote-fileio.h (struct remote_target): Declare.
10614 2019-01-22 Tom Tromey <tom@tromey.com>
10616 * python/py-arch.c: Do not include py-ref.h.
10617 * python/py-bpevent.c: Do not include py-ref.h.
10618 * python/py-cmd.c: Do not include py-ref.h.
10619 * python/py-continueevent.c: Do not include py-ref.h.
10620 * python/py-event.h: Do not include py-ref.h.
10621 * python/py-evtregistry.c: Do not include py-ref.h.
10622 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10623 * python/py-frame.c: Do not include py-ref.h.
10624 * python/py-framefilter.c: Do not include py-ref.h.
10625 * python/py-function.c: Do not include py-ref.h.
10626 * python/py-infevents.c: Do not include py-ref.h.
10627 * python/py-linetable.c: Do not include py-ref.h.
10628 * python/py-objfile.c: Do not include py-ref.h.
10629 * python/py-param.c: Do not include py-ref.h.
10630 * python/py-prettyprint.c: Do not include py-ref.h.
10631 * python/py-progspace.c: Do not include py-ref.h.
10632 * python/py-symbol.c: Do not include py-ref.h.
10633 * python/py-symtab.c: Do not include py-ref.h.
10634 * python/py-type.c: Do not include py-ref.h.
10635 * python/py-unwind.c: Do not include py-ref.h.
10636 * python/py-utils.c: Do not include py-ref.h.
10637 * python/py-value.c: Do not include py-ref.h.
10638 * python/py-varobj.c: Do not include py-ref.h.
10639 * python/py-xmethods.c: Do not include py-ref.h.
10640 * python/python.c: Do not include py-ref.h.
10641 * varobj.c: Do not include py-ref.h.
10643 2019-01-22 Tom Tromey <tom@tromey.com>
10645 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10646 keyword for bcache.
10648 2019-01-22 Tom Tromey <tom@tromey.com>
10650 * compile/compile-cplus-types.c: Remove a comment by #include.
10652 2019-01-22 Tom Tromey <tom@tromey.com>
10654 * compile/gcc-c-plugin.h: Include compile-internal.h.
10656 2019-01-22 Tom Tromey <tom@tromey.com>
10658 * stabsread.c (EXTERN): Do not define.
10659 (symnum, next_symbol_text_func, processing_gcc_compilation)
10660 (within_function, global_sym_chain, global_stabs)
10661 (previous_stab_code, this_object_header_files)
10662 (n_this_object_header_files)
10663 (n_allocated_this_object_header_files): Define.
10664 * stabsread.h (EXTERN): Never define. Use "extern".
10666 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10668 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10671 2019-01-21 Tom Tromey <tom@tromey.com>
10673 * ui-out.c: Fix includes.
10674 * tui/tui-source.c: Fix includes.
10675 * target.c: Fix includes.
10676 * remote.c: Fix includes.
10677 * regcache.c: Fix includes.
10678 * python/py-block.c: Fix includes.
10679 * printcmd.c: Fix includes.
10680 * or1k-tdep.c: Fix includes.
10681 * mi/mi-main.c: Fix includes.
10682 * m32r-tdep.c: Fix includes.
10683 * csky-tdep.c: Fix includes.
10684 * compile/compile-cplus-types.c: Fix includes.
10685 * cli/cli-interp.c: Fix includes.
10687 2019-01-21 Alan Hayward <alan.hayward@arm.com>
10689 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10692 2019-01-16 Tom Tromey <tom@tromey.com>
10694 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10696 (struct objfile) <msymbols_range>: Move from top level.
10697 <msymbols>: New method.
10698 (class objfile_msymbols): Remove.
10699 * symtab.c (default_collect_symbol_completion_matches_break_on):
10701 * symmisc.c (dump_msymbols): Update.
10702 * stabsread.c (scan_file_globals): Update.
10703 * objc-lang.c (info_selectors_command, info_classes_command)
10704 (find_methods): Update.
10705 * minsyms.c (find_solib_trampoline_target): Update.
10706 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10707 * coffread.c (coff_symfile_read): Update.
10708 * ada-lang.c (ada_lookup_simple_minsym)
10709 (ada_collect_symbol_completion_matches): Update.
10711 2019-01-16 Tom Tromey <tom@tromey.com>
10713 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10714 type. Remove no-argument constructor.
10715 <iterator::operator++>: Simplify.
10717 <end>: Use minimal_symbol_count.
10719 2019-01-16 Tom Tromey <tom@tromey.com>
10721 * objfiles.h (struct objfile) <psymtabs>: New method.
10722 (class objfile_psymtabs): Remove.
10723 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10725 <range>: New method.
10726 (require_partial_symbols): Change return type.
10727 * psymtab.c (require_partial_symbols)
10728 (psym_expand_symtabs_matching): Update.
10729 * mdebugread.c (parse_partial_symbols): Update.
10730 * dbxread.c (dbx_end_psymtab): Update.
10732 2019-01-15 Tom Tromey <tom@tromey.com>
10734 * symtab.c (lookup_objfile_from_block)
10735 (lookup_symbol_in_objfile_symtabs)
10736 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10737 (find_line_symtab, info_sources_command)
10738 (default_collect_symbol_completion_matches_break_on)
10739 (make_source_files_completion_list): Update.
10740 * symmisc.c (print_objfile_statistics, dump_objfile)
10741 (maintenance_print_symbols, maintenance_info_symtabs)
10742 (maintenance_check_symtabs, maintenance_info_line_tables):
10744 * source.c (select_source_symtab)
10745 (forget_cached_source_info_for_objfile): Update.
10746 * objfiles.h (class objfile_compunits): Remove.
10747 (struct objfile) <compunits_range>: New typedef.
10748 (compunits): New method.
10749 * objfiles.c (objfile_relocate1): Update.
10750 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10751 * maint.c (count_symtabs_and_blocks): Update.
10752 * linespec.c (iterate_over_all_matching_symtabs): Update.
10753 * cp-support.c (add_symbol_overload_list_qualified): Update.
10754 * coffread.c (coff_symtab_read): Update.
10755 * ada-lang.c (add_nonlocal_symbols)
10756 (ada_collect_symbol_completion_matches)
10757 (ada_add_global_exceptions): Update.
10759 2019-01-15 Tom Tromey <tom@tromey.com>
10761 * progspace.h (program_space) <objfiles_safe_range>: New
10763 <objfiles_safe>: New method.
10764 * objfiles.h (class all_objfiles_safe): Remove.
10765 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10766 * jit.c (jit_inferior_exit_hook): Update.
10768 2019-01-17 Tom Tromey <tom@tromey.com>
10770 * progspace.h (program_space) <objfiles_range>: New typedef.
10771 <objfiles>: New method.
10772 <objfiles_head>: Rename from objfiles.
10773 (object_files): Update.
10774 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10775 * guile/scm-pretty-print.c
10776 (ppscm_find_pretty_printer_from_objfiles): Update.
10777 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10778 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10780 * python/py-progspace.c (pspy_get_objfiles): Update.
10781 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10783 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10784 (objfpy_lookup_objfile_by_build_id): Update.
10785 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10786 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10788 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10789 (expand_symtab_containing_pc, lookup_objfile_from_block)
10790 (lookup_static_symbol, basic_lookup_transparent_type)
10791 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10792 (find_line_symtab, info_sources_command)
10793 (default_collect_symbol_completion_matches_break_on)
10794 (make_source_files_completion_list, find_main_name): Update.
10795 * symmisc.c (print_symbol_bcache_statistics)
10796 (print_objfile_statistics, maintenance_print_symbols)
10797 (maintenance_print_msymbols, maintenance_print_objfiles)
10798 (maintenance_info_symtabs, maintenance_check_symtabs)
10799 (maintenance_expand_symtabs, maintenance_info_line_tables):
10801 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10802 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10803 (map_overlay_command, unmap_overlay_command)
10804 (simple_overlay_update, expand_symtabs_matching)
10805 (map_symbol_filenames): Update.
10806 * symfile-debug.c (set_debug_symfile): Update.
10807 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10809 * source.c (select_source_symtab, forget_cached_source_info):
10811 * solib.c (solib_read_symbols): Update.
10812 * solib-spu.c (append_ocl_sos): Update.
10813 * psymtab.c (maintenance_print_psymbols)
10814 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10815 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10816 * printcmd.c (info_symbol_command): Update.
10817 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10819 * objfiles.h (class all_objfiles): Remove.
10820 * objfiles.c (have_partial_symbols, have_full_symbols)
10821 (have_minimal_symbols, qsort_cmp, update_section_map)
10822 (shared_objfile_contains_address_p)
10823 (default_iterate_over_objfiles_in_search_order): Update.
10824 * objc-lang.c (info_selectors_command, info_classes_command)
10825 (find_methods): Update.
10826 * minsyms.c (find_solib_trampoline_target): Update.
10827 * maint.c (maintenance_info_sections)
10828 (maintenance_translate_address, count_symtabs_and_blocks):
10830 * main.c (captured_main_1): Update.
10831 * linux-thread-db.c (try_thread_db_load_from_pdir)
10832 (has_libpthread): Update.
10833 * linespec.c (iterate_over_all_matching_symtabs)
10834 (search_minsyms_for_name): Update.
10835 * jit.c (jit_find_objf_with_entry_addr): Update.
10836 * hppa-tdep.c (find_unwind_entry)
10837 (hppa_lookup_stub_minimal_symbol): Update.
10838 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10840 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10841 (elf_gnu_ifunc_resolve_by_got): Update.
10842 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10843 * dwarf-index-write.c (save_gdb_index_command): Update.
10844 * cp-support.c (add_symbol_overload_list_qualified): Update.
10845 * breakpoint.c (create_overlay_event_breakpoint)
10846 (create_longjmp_master_breakpoint)
10847 (create_std_terminate_master_breakpoint)
10848 (create_exception_master_breakpoint): Update.
10849 * blockframe.c (find_pc_partial_function): Update.
10850 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10851 (ada_collect_symbol_completion_matches)
10852 (ada_add_global_exceptions): Update.
10854 2019-01-17 Tom Tromey <tom@tromey.com>
10856 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10858 (solib_target_parse_libraries): Change return type.
10859 (library_list_start_segment, library_list_start_section)
10860 (library_list_end_library, library_list_start_library); Update.
10861 (solib_target_free_library_list): Remove.
10862 (solib_target_parse_libraries): Remove cleanup. Change return
10864 (solib_target_current_sos): Update.
10866 2019-01-17 Tom Tromey <tromey@bapiya>
10868 * valprint.c: Replace "the the" with "the".
10869 * symtab.c: Replace "the the" with "the".
10870 * solib.c: Replace "the the" with "the".
10871 * solib-dsbt.c: Replace "the the" with "the".
10872 * linespec.c: Replace "the the" with "the".
10873 * dwarf2loc.h: Replace "the the" with "the".
10874 * amd64-windows-tdep.c: Replace "the the" with "the".
10875 * aarch64-tdep.c: Replace "the the" with "the".
10877 2019-01-16 Keith Seitz <keiths@redhat.com>
10880 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10881 <builder>: Rename to ..
10882 <m_builder>: ... this and make private.
10883 (dwarf2_cu::get_builder): New method. Change all users of
10884 `builder' to use this method.
10885 (dwarf2_start_symtab): Move to ...
10886 (dwarf2_cu::start_symtab): ... here. Update all callers
10887 (setup_type_unit_groups): Move to ...
10888 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10890 (dwarf2_cu::reset_builder): New method.
10891 (process_full_compunit, process_full_type_unit): Use
10892 dwarf2_cu::reset_builder.
10893 (follow_die_offset): Record the ancestor CU if it is different
10894 from the followed DIE's CU.
10895 (follow_die_sig_1): Likewise.
10897 2019-01-15 Tom Tromey <tom@tromey.com>
10899 * remote.c (class remote_state) <buf>: Now a char_vector.
10900 <buf_size>: Remove.
10901 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10903 (remote_target::getpkt_or_notif_sane_1)
10904 (remote_target::getpkt_sane)
10905 (remote_target::getpkt_or_notif_sane): Likewise.
10906 (class remote_target) <putpkt>: New overload.
10907 (remote_target::read_frame): Change type of "buf_p". Remove
10908 sizeof_p parameter.
10909 (packet_ok): New overload.
10910 (packet_check_result): New overload.
10913 2019-01-14 Tom Tromey <tom@tromey.com>
10915 * remote-notif.c (handle_notification, remote_notif_ack)
10916 (remote_notif_parse): Make "buf" const.
10917 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10919 (remote_notif_parse, remote_notif_ack, handle_notification):
10921 * remote.c (remote_notif_stop_parse): Make "buf" const.
10922 (remote_target::remote_parse_stop_reply): Make "buf" const.
10923 (remote_notif_stop_ack): Make "buf" const.
10925 2019-01-14 Tom Tromey <tom@tromey.com>
10927 * remote.c (remote_console_output): Make parameter const.
10929 2019-01-14 Tom Tromey <tom@tromey.com>
10931 * target-debug.h (target_debug_print_signals): Constify.
10932 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10933 * procfs.c (procfs_target::pass_signals): Update.
10934 * linux-nat.c (linux_nat_target::pass_signals): Update.
10935 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10936 * target-delegates.c: Rebuild.
10937 * remote.c (remote_target::program_signals): Update.
10938 (remote_target::pass_signals): Update.
10939 * target.c (target_pass_signals): Constify argument.
10940 (target_program_signals): Likewise.
10941 * target.h (struct target_ops) <pass_signals, program_signals>:
10943 (target_pass_signals, target_program_signals): Constify argument.
10945 2019-01-14 Tom Tromey <tom@tromey.com>
10948 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10950 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10952 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10954 * rs6000-tdep.c: Include reggroups.h.
10955 (IS_V_ALIAS_PSEUDOREG): Define.
10956 (rs6000_register_name): Return names for the "vX" aliases.
10957 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10958 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10959 aliases. Call default_register_reggroup_p for all other
10961 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10963 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10964 Handle "vX" aliases.
10965 (v_alias_pseudo_register_collect): New function.
10966 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10967 (rs6000_gdbarch_init): Initialize "vX" aliases as
10968 pseudo-registers. Restore registration of
10969 rs6000_pseudo_register_reggroup_p with
10970 set_tdesc_pseudo_register_reggroup_p.
10972 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10974 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10975 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10976 set_gdbarch_num_pseudo_regs.
10978 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10980 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10981 Remove arg prefixname, add do_set and do_show.
10982 Add member functions set_list and show_list.
10983 * cli/cli-style.c (class cli_style_option): Update accordingly.
10984 (style_set_list): Move to file scope.
10985 (style_show_list): Likewise.
10986 (set_style): Call help_list.
10987 (show_style): Call cmd_show_list.
10988 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10989 Update to use the new macro.
10991 2019-10-12 Joel Brobecker <brobecker@adacore.com>
10993 * ada-lang.c (_initialize_ada_language): Expand the help text
10994 for the "catch exception" command.
10996 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10998 * symtab.c (matching_obj_sections): Initialize obj,
10999 declare it closer to its usage.
11001 2019-01-10 Tom Tromey <tom@tromey.com>
11003 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11004 (basic_inf_threads_range): Remove.
11005 (inf_threads_range, inf_non_exited_threads_range)
11006 (safe_inf_threads_range): Use next_adapter.
11008 2019-01-10 Keith Seitz <keiths@redhat.com>
11012 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11013 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11015 2019-01-10 Keith Seitz <keiths@redhat.com>
11019 * dictionary.c (pending_to_vector): Remove.
11020 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11021 Remove _1 suffix, replacing functions of the same name. Update
11023 (dict_create_hashed, dict_create_hashed_expandable)
11024 (dict_create_linear, dict_create_linear_expandable, dict_free)
11025 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11026 Make functions static.
11028 2019-01-10 Keith Seitz <keiths@redhat.com>
11032 * dictionary.h (struct dictionary): Replace declaration with
11034 (dict_create_hashed, dict_create_hashed_expandable)
11035 (dict_create_linear, dict_create_linear_expandable)
11036 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11037 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11038 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11039 taking multidictionary argument.
11040 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11041 * block.h (struct block) <dict>: Change to multidictionary
11042 and rename `multidict'.
11043 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11044 symmisc.c: Update all dictionary references to multidictionary.
11046 2019-01-10 Keith Seitz <keiths@redhat.com>
11050 * dictionary.c: Include unordered_map.
11051 (pending_to_vector): New function.
11052 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11053 Rewrite the non-"_1" functions to take vector instead
11055 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11056 "new" _1 versions of the same name.
11057 (multidictionary): Define.
11058 (std::hash<enum language): New definition.
11059 (collate_pending_symbols_by_language, mdict_create_hashed)
11060 (mdict_create_hashed_expandable, mdict_create_linear)
11061 (mdict_create_linear_expandable, mdict_free)
11062 (find_language_dictionary, create_new_language_dictionary)
11063 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11064 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11065 (mdict_size, mdict_empty): New functions.
11066 * dictionary.h (mdict_iterator): Define.
11068 2019-01-10 Pedro Alves <palves@redhat.com>
11070 * breakpoint.c (read_uploaded_action)
11071 (create_tracepoint_from_upload): Adjust to use
11072 gdb::unique_xmalloc_ptr.
11073 * ctf.c (ctf_write_uploaded_tp):
11074 (SET_ARRAY_FIELD): Use emplace_back.
11075 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11076 * tracefile-tfile.c (tfile_write_uploaded_tp):
11077 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11078 gdb::unique_xmalloc_ptr.
11079 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11080 at_string, cond_string, cmd_strings>: Replace char pointers
11081 with gdb::unique_xmalloc_ptr.
11083 2019-01-10 Pedro Alves <palves@redhat.com>
11085 * solib-target.c (library_list_start_library): Don't xstrdup name.
11087 2019-01-10 Pedro Alves <palves@redhat.com>
11089 * mdebugread.c (parse_partial_symbols): Use
11090 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11092 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11094 * linux-fork.c (scoped_switch_fork_info)
11095 <~scoped_switch_fork_info>: Fix incorrect variable name.
11097 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11099 * linux-fork.c (scoped_switch_fork_info)
11100 <scoped_switch_fork_info>: Make explicit.
11101 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11103 2019-01-10 Tom Tromey <tom@tromey.com>
11105 * objfiles.h (objfile::reset_psymtabs): Update.
11106 * objfiles.c (objfile::objfile): Update.
11107 * psymtab.h (psymtab_storage::obstack): Update.
11108 (psymtab_storage::m_obstack): Use gdb::optional.
11109 (class psymtab_storage): Update comment. Remove objfile
11111 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11113 2019-01-10 Tom Tromey <tom@tromey.com>
11115 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11116 <free_psymtabs>: Now private.
11117 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11118 (allocate_psymtab): Use new method.
11120 2019-01-10 Tom Tromey <tom@tromey.com>
11122 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11123 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11124 * mdebugread.c (parse_partial_symbols): Use
11125 allocate_dependencies.
11126 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11127 allocate_dependencies.
11128 (process_psymtab_comp_unit_reader)
11129 (build_type_psymtab_dependencies): Likewise.
11130 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11132 2019-01-10 Tom Tromey <tom@tromey.com>
11134 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11135 PSYMBOL_SET_LANGUAGE.
11136 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11138 2019-01-10 Tom Tromey <tom@tromey.com>
11140 * psymtab.h (psymtab_storage::obstack): New method.
11141 <m_obstack>: Rename from obstack; now private.
11142 * psymtab.c (psymtab_storage): Update.
11143 * dwarf2read.c (create_addrmap_from_index)
11144 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11147 2019-01-10 Tom Tromey <tom@tromey.com>
11149 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11150 * objfiles.h (objfile::reset_psymtabs): New method.
11152 2019-01-10 Tom Tromey <tom@tromey.com>
11154 * symmisc.c (print_symbol_bcache_statistics): Update.
11155 (print_objfile_statistics): Update.
11156 * symfile.c (reread_symbols): Update.
11157 * psymtab.h (class psymtab_storage): New.
11158 * psymtab.c (psymtab_storage): New constructor.
11159 (~psymtab_storage): New destructor.
11160 (require_partial_symbols): Update.
11161 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11162 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11163 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11164 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11165 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11166 (start_psymtab_common, end_psymtab_common)
11167 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11168 (allocate_psymtab): Update.
11169 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11171 (dump_psymtab_addrmap, maintenance_print_psymbols)
11172 (maintenance_check_psymtabs): Update.
11173 (class objfile_psymtabs): Move to objfiles.h.
11174 * psympriv.h (discard_psymtab): Now inline.
11175 (psymtab_discarder::psymtab_discarder): Update.
11176 (psymtab_discarder::~psymtab_discarder): Update.
11177 (ALL_OBJFILE_PSYMTABS): Rewrite.
11178 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11179 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11181 <partial_symtabs>: New field.
11182 (class objfile_psymtabs): Move from psymtab.h. Update.
11183 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11185 (objfile::~objfile): Don't destroy psymbol_cache.
11186 * mdebugread.c (parse_partial_symbols): Update.
11187 * dwarf2read.c (create_addrmap_from_index)
11188 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11189 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11190 (add_partial_subprogram, dwarf2_ranges_read): Update.
11191 * dwarf-index-write.c (write_address_map)
11192 (write_one_signatured_type, recursively_write_psymbols)
11193 (class debug_names, class debug_names, write_psymtabs_to_index):
11196 2019-01-10 Tom Tromey <tom@tromey.com>
11198 * symtab.h (SYMBOL_SET_NAMES): Update.
11199 (symbol_set_names): Update.
11200 (MSYMBOL_SET_NAMES): Update.
11201 * symtab.c (symbol_set_names): Change argument to be an
11202 objfile_per_bfd_storage.
11203 * psymtab.c (add_psymbol_to_bcache): Update.
11204 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11206 2019-01-10 Tom Tromey <tom@tromey.com>
11208 * symtab.c (create_demangled_names_hash): Change argument to be an
11209 objfile_per_bfd_storage.
11210 (symbol_set_names): Update.
11212 2019-01-10 Tom Tromey <tom@tromey.com>
11214 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11216 * psymtab.c (init_psymbol_list): Do nothing if already called.
11217 * psympriv.h (init_psymbol_list): Add comment.
11218 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11220 * dbxread.c (dbx_symfile_read): Unconditionally call
11223 2019-01-10 Tom Tromey <tom@tromey.com>
11225 * xcoffread.c (scan_xcoff_symtab): Update.
11226 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11228 * mdebugread.c (parse_partial_symbols)
11229 (handle_psymbol_enumerators): Update.
11230 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11231 * dbxread.c (read_dbx_symtab): Update.
11232 * psympriv.h (psymbol_placement): New enum.
11233 (add_psymbol_to_list): Update.
11235 2019-01-10 Tom Tromey <tom@tromey.com>
11237 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11238 static_psymbols parameters.
11239 (scan_xcoff_symtab): Update.
11240 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11241 static_psymbols parameters.
11242 * psympriv.h (start_psymtab_common): Update.
11243 * mdebugread.c (parse_partial_symbols): Update.
11244 * dwarf2read.c (create_partial_symtab): Update.
11245 * dbxread.c (read_dbx_symtab): Update.
11246 (start_psymtab): Remove global_psymbols and static_psymbols
11249 2019-01-10 Tom Tromey <tom@tromey.com>
11251 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11252 * psymtab.c (allocate_psymtab): Add comment.
11253 * psympriv.h (allocate_psymtab): Add comment.
11254 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11256 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11258 2019-01-10 Tom Tromey <tom@tromey.com>
11260 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11262 * mipsread.c: Include mdebugread.h.
11263 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11265 * elfread.c: Include mdebugread.h.
11267 2019-01-09 Tom Tromey <tom@tromey.com>
11269 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11270 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11271 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11272 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11273 (psym_lookup_symbol, psym_find_last_source_symtab)
11274 (psym_forget_cached_source_info, psym_print_stats)
11275 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11276 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11277 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11278 (psym_find_compunit_symtab_by_address)
11279 (maintenance_print_psymbols, maintenance_info_psymtabs)
11280 (maintenance_check_psymtabs): Use ranged for.
11281 * psymtab.h (class objfile_psymtabs): New.
11282 (require_partial_symbols): Return objfile_psymtabs.
11283 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11285 2019-01-09 Tom Tromey <tom@tromey.com>
11287 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11288 (find_pc_mapped_section, list_overlays_command)
11289 (map_overlay_command, unmap_overlay_command)
11290 (simple_overlay_update): Use all_objfiles.
11291 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11292 * printcmd.c (info_symbol_command): Use all_objfiles.
11293 * objfiles.h (ALL_OBJSECTIONS): Remove.
11294 * maint.c (maintenance_translate_address): Use all_objfiles.
11295 * gcore.c (gcore_create_callback): Use all_objfiles.
11296 (objfile_find_memory_regions): Likewise.
11298 2019-01-09 Tom Tromey <tom@tromey.com>
11300 * symtab.c (find_line_symtab, info_sources_command)
11301 (make_source_files_completion_list): Use objfile_compunits.
11302 * source.c (select_source_symtab): Use objfile_compunits.
11303 * objfiles.h (struct objfile): Update comment.
11304 (ALL_OBJFILES): Remove.
11305 (ALL_FILETABS): Remove.
11306 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11309 2019-01-09 Tom Tromey <tom@tromey.com>
11311 * symmisc.c (print_objfile_statistics, dump_objfile)
11312 (maintenance_print_symbols): Use compunit_filetabs.
11313 * source.c (forget_cached_source_info_for_objfile): Use
11315 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11316 (ALL_FILETABS): Use compunit_filetabs.
11317 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11318 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11320 2019-01-09 Tom Tromey <tom@tromey.com>
11322 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11323 (compunit_filetabs): New.
11324 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11326 (info_sources_command, make_source_files_completion_list): Remove
11328 * symmisc.c (print_objfile_statistics, dump_objfile)
11329 (maintenance_print_symbols): Remove declaration.
11330 (maintenance_info_symtabs): Use compunit_filetabs.
11331 (maintenance_info_line_tables): Likewise.
11332 * source.c (select_source_symtab): Change local variable name.
11333 (forget_cached_source_info_for_objfile): Remove declaration.
11334 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11335 * objfiles.c (objfile_relocate1): Remove declaration.
11336 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11338 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11339 * coffread.c (coff_symtab_read): Remove declaration.
11340 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11343 2019-01-09 Tom Tromey <tom@tromey.com>
11345 * symtab.c (lookup_objfile_from_block)
11346 (find_pc_sect_compunit_symtab, search_symbols)
11347 (default_collect_symbol_completion_matches_break_on): Use
11349 * objfiles.h (ALL_COMPUNITS): Remove.
11350 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11351 * cp-support.c (add_symbol_overload_list_qualified): Use
11353 * ada-lang.c (ada_collect_symbol_completion_matches)
11354 (ada_add_global_exceptions): Use objfile_compunits.
11356 2019-01-09 Tom Tromey <tom@tromey.com>
11358 * source.c (select_source_symtab)
11359 (forget_cached_source_info_for_objfile): Remove declaration.
11360 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11362 * maint.c (count_symtabs_and_blocks): Remove declaration.
11363 * cp-support.c (add_symbol_overload_list_qualified): Remove
11365 * coffread.c (coff_symtab_read): Remove declaration.
11366 * symtab.c (lookup_symbol_in_objfile_symtabs)
11367 (basic_lookup_transparent_type_1): Use objfile_compunits.
11368 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11369 (info_sources_command, search_symbols)
11370 (default_collect_symbol_completion_matches_break_on)
11371 (make_source_files_completion_list): Remove declaration.
11372 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11373 (ada_collect_symbol_completion_matches)
11374 (ada_add_global_exceptions): Remove declaration.
11375 * linespec.c (iterate_over_all_matching_symtabs): Use
11377 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11378 (class objfile_compunits): New.
11379 (ALL_COMPUNITS): Use objfile_compunits.
11380 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11381 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11383 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11385 2019-01-09 Tom Tromey <tom@tromey.com>
11387 * symtab.c (search_symbols)
11388 (default_collect_symbol_completion_matches_break_on): Use
11390 * ada-lang.c (ada_lookup_simple_minsym)
11391 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11392 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11393 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11395 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11396 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11397 * objc-lang.c (find_methods): Use objfile_msymbols.
11398 (info_selectors_command, info_classes_command): Likewise.
11399 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11400 * objfiles.h (class objfile_msymbols): New.
11401 (ALL_OBJFILE_MSYMBOLS): Remove.
11402 (ALL_MSYMBOLS): Remove.
11404 2019-01-09 Tom Tromey <tom@tromey.com>
11406 * common/next-iterator.h (next_adapter): Add Iterator template
11408 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11409 (class all_objfiles_safe): New.
11410 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11411 * objfiles.c (put_objfile_before): Update comment.
11412 (add_separate_debug_objfile): Likewise.
11413 (free_all_objfiles): Use all_objfiles_safe.
11414 (objfile_purge_solibs): Likewise.
11416 2019-01-09 Tom Tromey <tom@tromey.com>
11418 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11419 (expand_symtab_containing_pc, lookup_static_symbol)
11420 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11421 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11423 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11424 * breakpoint.c (create_overlay_event_breakpoint)
11425 (create_longjmp_master_breakpoint)
11426 (create_std_terminate_master_breakpoint)
11427 (create_exception_master_breakpoint): Use all_objfiles.
11428 * linux-thread-db.c (try_thread_db_load_from_pdir)
11429 (has_libpthread): Use all_objfiles.
11430 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11431 * linespec.c (iterate_over_all_matching_symtabs)
11432 (search_minsyms_for_name): Use all_objfiles.
11433 * maint.c (maintenance_info_sections): Use all_objfiles.
11434 * main.c (captured_main_1): Use all_objfiles.
11435 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11436 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11437 * guile/scm-pretty-print.c
11438 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11439 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11440 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11441 (maintenance_print_msymbols): Use all_objfiles.
11442 * source.c (select_source_symtab): Use all_objfiles.
11443 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11444 * symfile.c (remove_symbol_file_command)
11445 (expand_symtabs_matching, map_symbol_filenames): Use
11447 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11449 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11450 * objc-lang.c (find_methods): Use all_objfiles.
11451 * objfiles.c (have_partial_symbols, have_full_symbols)
11452 (have_minimal_symbols, qsort_cmp)
11453 (default_iterate_over_objfiles_in_search_order): Use
11455 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11456 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11457 (maintenance_check_psymtabs): Use all_objfiles.
11458 (ALL_PSYMTABS): Remove.
11459 * compile/compile-object-run.c (do_module_cleanup): Use
11461 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11462 * cp-support.c (add_symbol_overload_list_qualified): Use
11464 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11466 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11467 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11469 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11470 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11471 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11473 * solib.c (solib_read_symbols): Use all_objfiles
11475 2019-01-09 Tom Tromey <tom@tromey.com>
11477 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11478 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11480 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11481 * symmisc.c (print_symbol_bcache_statistics)
11482 (print_objfile_statistics, maintenance_print_objfiles)
11483 (maintenance_info_symtabs, maintenance_check_symtabs)
11484 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11486 * source.c (forget_cached_source_info): Use all_objfiles.
11487 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11488 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11489 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11490 * objfiles.c (update_section_map): Use all_objfiles.
11491 (shared_objfile_contains_address_p): Likewise.
11492 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11493 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11495 2019-01-09 Tom Tromey <tom@tromey.com>
11497 * common/next-iterator.h: New file.
11498 * objfiles.h (class all_objfiles): New.
11499 (struct objfile_iterator): New.
11501 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11503 * NEWS: Move the description of the changed "frame", "select-frame",
11504 and "info frame" commands to the Changed commands section.
11506 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11508 * gdbtypes.c (check_stub_method_group): Remove handling of old
11510 * linespec.c (find_methods): Likewise.
11511 * stabsread.c (read_member_functions): Likewise.
11512 * valops.c (search_struct_method): Likewise.
11513 (value_struct_elt_for_reference): Likewise.
11514 * NEWS: Mention this change.
11516 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11518 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11519 print_source_lines.
11520 * source.c (print_source_lines_base): Update line number check.
11521 (print_source_lines): New function.
11522 (source_lines_range::source_lines_range): New function.
11523 * source.h (class source_lines_range): New class.
11524 (print_source_lines): New declaration.
11526 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11528 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11530 2019-01-08 Tom Tromey <tom@tromey.com>
11531 Simon Marchi <simon.marchi@ericsson.com>
11534 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11535 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11536 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11537 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11538 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11539 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11541 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11543 * source.c (select_source_symtab): Move header comment to
11544 declaration in source.h.
11545 (forget_cached_source_info_for_objfile): Likewise.
11546 (forget_cached_source_info): Likewise.
11547 (identify_source_line): Likewise.
11548 * source.h (identify_source_line): Move declaration from symtab.h
11549 and add comment from source.c
11550 (print_source_lines): Likewise.
11551 (forget_cached_source_info_for_objfile): Likewise.
11552 (forget_cached_source_info): Likewise.
11553 (select_source_symtab): Likewise.
11554 (enum print_source_lines_flag): Move definition from symtab.h.
11555 * symtab.h (identify_source_line): Move declaration to source.h.
11556 (print_source_lines): Likewise.
11557 (forget_cached_source_info_for_objfile): Likewise.
11558 (forget_cached_source_info): Likewise.
11559 (select_source_symtab): Likewise.
11560 (enum print_source_lines_flag): Move definition to source.h.
11561 * tui/tui-hooks.c: Add 'source.h' include.
11563 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11565 * source.c (print_source_lines_base): Handle requests to print
11566 reverse line number sequences, and guard against empty lines
11569 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11571 * source.c (print_source_lines_base): Fix skip of '\r' if next
11574 2019-01-06 Tom Tromey <tom@tromey.com>
11576 * c-exp.y (struct c_parse_state) <macro_original_text,
11577 expansion_obstack>: New member.
11578 (macro_original_text, expansion_obstack): Remove globals.
11579 (scan_macro_expansion, scanning_macro_expansion)
11580 (finished_macro_expansion): Update.
11581 (scan_macro_cleanup): Remove.
11582 (yylex, c_parse): Update.
11584 2019-01-06 Tom Tromey <tom@tromey.com>
11586 * c-exp.y (struct c_parse_state) <strings>: New member.
11587 (operator_stoken): Update.
11589 2019-01-06 Tom Tromey <tom@tromey.com>
11591 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11592 (union type_stack_elt) <typelist_val>: Now a pointer to
11594 (type_stack_cleanup): Don't declare.
11595 (push_typelist): Update.
11596 * parse.c (pop_typelist): Return a std::vector.
11597 (push_typelist): Take a std::vector.
11598 (follow_types): Update. Do not free args.
11599 (type_stack_cleanup): Remove.
11600 * c-exp.y (struct c_parse_state): New.
11601 (cpstate): New global.
11602 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11603 (nonempty_typelist): Update.
11604 (func_mod): Create a new vector.
11605 (c_parse): Create a c_parse_state.
11606 (check_parameter_typelist): Do not delete params.
11607 (function_method): Update. Do not delete type_list.
11609 2019-01-06 Tom Tromey <tom@tromey.com>
11612 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11614 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11615 (print_return_value): Likewise.
11617 2019-01-05 Tom Tromey <tom@tromey.com>
11619 * contrib/cleanup_check.py: Remove.
11620 * contrib/gcc-with-excheck: Remove.
11621 * contrib/exsummary.py: Remove.
11622 * contrib/excheck.py: Remove.
11624 2019-01-05 Joel Brobecker <brobecker@adacore.com>
11626 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11627 NULL. Initialize tpprev to NULL instead of assigning it
11628 to NULL on the next statement.
11629 * windows-nat.c (windows_delete_thread): Remove check for
11630 main_thread_id before printing thread exit notifications.
11631 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11632 Remove thread ID check against main_thread_id.
11633 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11634 windows_delete_thread.
11635 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11637 2019-01-04 Tom Tromey <tom@tromey.com>
11639 * compile/compile.c (_initialize_compile): Use upper case for
11640 metasyntactic variables.
11641 * symmisc.c (_initialize_symmisc): Use upper case for
11642 metasyntactic variables.
11643 * psymtab.c (_initialize_psymtab): Use upper case for
11644 metasyntactic variables.
11645 * demangle.c (demangle_command): Use upper case for metasyntactic
11647 (_initialize_demangler): Likewise.
11648 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11651 2019-01-03 Tom Tromey <tom@tromey.com>
11653 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11655 2019-01-03 Tom Tromey <tom@tromey.com>
11657 * python/py-symtab.c (salpy_str): Update.
11658 (struct salpy_sal_object) <symtab>: Now a PyObject.
11659 (salpy_dealloc): Update.
11660 (del_objfile_sal): Use gdbpy_ref.
11662 2019-01-03 Tom Tromey <tom@tromey.com>
11664 * python/py-type.c (convert_field): Use new_reference. Return
11666 (make_fielditem): Return gdbpy_ref.
11667 (typy_fields): Update.
11668 (typy_getitem): Update.
11669 (field_name): Return gdbpy_ref. Use new_reference.
11670 (typy_iterator_iternext): Update.
11672 2019-01-03 Tom Tromey <tom@tromey.com>
11674 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11676 2019-01-03 Tom Tromey <tom@tromey.com>
11678 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11679 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11680 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11681 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11682 (pspy_set_type_printers): Likewise.
11683 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11684 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11685 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11686 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11687 (objfpy_set_type_printers): Likewise.
11689 2019-01-03 Tom Tromey <tom@tromey.com>
11691 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11692 (gdbpy_print_stack): Use gdbpy_err_fetch.
11693 * python/python-internal.h (class gdbpy_err_fetch): New class.
11694 (class gdbpy_enter) <m_error_type, m_error_value,
11695 m_error_traceback>: Remove.
11696 <m_error>: New member.
11697 (gdbpy_exception_to_string): Don't declare.
11698 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11699 * python/py-value.c (convert_value_from_python): Use
11701 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11702 gdbpy_exception_to_string.
11703 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11704 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11707 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11709 * linux-nat.c (delete_lwp_cleanup): Delete.
11710 (struct lwp_deleter): New struct.
11711 (lwp_info_up): New typedef.
11712 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11715 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11717 * linux-fork.c (class scoped_switch_fork_info): New class.
11718 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11720 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11722 * valops.c (find_overload_match): Remove use of null_cleanup, and
11723 calls to do_cleanups.
11725 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11727 * compile/compile-cplus-types.c
11728 (compile_cplus_instance::decl_name): Handle changes to
11730 * cp-support.c (cp_func_name): Update header comment, update
11732 * cp-support.h (cp_func_name): Update return type in declaration.
11733 * valops.c (find_overload_match): Move temp_func local to top
11734 level of function and change its type. Use temp_func to hold and
11735 delete temporary string obtained from cp_func_name.
11737 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11739 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11740 gdb::char_vector, remove cleanup, and update uses of `msg`.
11742 2019-01-03 Jim Wilson <jimw@sifive.com>
11744 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11746 2019-01-02 Tom Tromey <tom@tromey.com>
11748 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11749 (tdesc_parse_xml): Remove cleanups.
11750 * target-descriptions.h (make_cleanup_free_target_description):
11752 (target_desc_deleter): New struct.
11753 (target_desc_up): New typedef.
11754 * target-descriptions.c (target_desc_deleter::operator()): Rename
11755 from free_target_description.
11756 (make_cleanup_free_target_description): Remove.
11758 2019-01-02 Tom Tromey <tom@tromey.com>
11760 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11761 constructor, destructor.
11762 (linespec_parser): Remove typedef.
11763 (~linespec_parser): Rename from linespec_parser_delete.
11764 (linespec_lex_to_end, linespec_complete_label)
11765 (linespec_complete): Update.
11766 (decode_line_full): Remove cleanups.
11767 (decode_line_1): Update.
11769 2019-01-02 Tom Tromey <tom@tromey.com>
11771 * python/python-internal.h (inferior_to_inferior_object): Change
11773 * python/py-exitedevent.c (create_exited_event_object): Update.
11774 * python/py-inferior.c (inferior_to_inferior_object): Return
11776 (python_new_inferior, python_inferior_deleted)
11777 (thread_to_thread_object, delete_thread_object)
11778 (build_inferior_list, gdbpy_selected_inferior): Update.
11779 * python/py-infthread.c (create_thread_object): Update. Also fail
11780 if inferior_to_inferior_object fails.
11782 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11784 * inferior.h (class inferior) <displaced_step_state>: New field.
11785 * infrun.h (struct displaced_step_state): Move here from
11786 infrun.c. Initialize fields, add constructor.
11787 <inf>: Remove field.
11788 <reset>: New method.
11789 * infrun.c (struct displaced_step_inferior_state): Move to
11791 (displaced_step_inferior_states): Remove.
11792 (get_displaced_stepping_state): Adust.
11793 (displaced_step_in_progress_any_inferior): Adjust.
11794 (displaced_step_in_progress_thread): Adjust.
11795 (displaced_step_in_progress): Adjust.
11796 (add_displaced_stepping_state): Remove.
11797 (get_displaced_step_closure_by_addr): Adjust.
11798 (remove_displaced_stepping_state): Remove.
11799 (infrun_inferior_exit): Call displaced_step_state.reset.
11800 (use_displaced_stepping): Don't check for NULL.
11801 (displaced_step_prepare_throw): Call
11802 get_displaced_stepping_state.
11803 (displaced_step_fixup): Don't check for NULL.
11804 (prepare_for_detach): Don't check for NULL.
11806 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11808 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11809 in case of call that did not complete.
11811 2019-01-02 Andrey Utkin <autkin@undo.io>
11813 * symfile.c (find_separate_debug_file): Fix search of debug files for
11816 2019-01-02 Tom Tromey <tom@tromey.com>
11818 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11820 * python/py-frame.c (frapy_older): Remove cast.
11821 (frapy_newer): Likewise.
11822 * python/py-breakpoint.c (local_setattro): Remove cast.
11823 * python/py-arch.c (archpy_name): Remove local variable.
11824 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11826 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11828 * unittests/basic_string_view/element_access/char/empty.cc:
11829 Fix year range in copyright header.
11831 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11833 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11835 <operator==>: Update with for removed field.
11837 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11838 <isa_features>: ...this.
11839 <abi_features>: New field.
11840 (riscv_isa_flen): Update comment.
11841 (riscv_abi_xlen): New declaration.
11842 (riscv_abi_flen): New declaration.
11843 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11845 (riscv_abi_xlen): New function.
11846 (riscv_isa_flen): Update to get answer from isa_features.
11847 (riscv_abi_flen): New function.
11848 (riscv_has_fp_abi): Update to get answer from abi_features.
11849 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11851 (riscv_call_info) <xlen, flen>: Update comment.
11852 (riscv_call_arg_struct): Remove invalid assertions
11853 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11855 (riscv_gdbarch_init): Gather isa features and abi features
11856 separately, ensure both match on the gdbarch when reusing an old
11857 gdbarch. Relax an error check to allow 32-bit abi float to run on
11858 a target with 64-bit float hardware.
11860 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11862 * source.c (search_command_helper): Stop reverse search
11863 when line 1 has been searched.
11865 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11867 * record-full.c (record_full_base_target::close): Rewrite
11868 record_full_core_buf_list free logic.
11870 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11872 * break-catch-syscall.c (print_one_catch_syscall): xfree
11875 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11877 * top.c (print_gdb_version): Update Copyright year in version
11880 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11882 Update copyright year range in all GDB files.
11884 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11886 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11888 For older changes see ChangeLog-2018.
11894 version-control: never