1 2019-08-16 Tom Tromey <tom@tromey.com>
3 * tui/tui-winsource.h (tui_update_source_window)
4 (tui_update_source_window_as_is): Remove "noerror" parameter.
5 * tui/tui-winsource.c (tui_update_source_window)
6 (tui_update_source_window_as_is): Remove "noerror" parameter.
7 (tui_update_source_windows_with_addr)
8 (tui_update_source_windows_with_line)
9 (tui_source_window_base::rerender)
10 (tui_source_window_base::refill): Update.
11 * tui/tui-source.h (tui_set_source_content)
12 (tui_show_symtab_source): Remove "noerror" parameter.
13 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
15 (tui_show_symtab_source): Likewise.
16 (tui_source_window::maybe_update): Update.
17 * tui/tui-disasm.c (tui_show_disassem)
18 (tui_show_disassem_and_update_source)
19 (tui_disasm_window::do_scroll_vertical)
20 (tui_disasm_window::maybe_update): Update.
22 2019-08-16 Tom Tromey <tom@tromey.com>
24 * tui/tui.c (tui_is_window_visible): Update.
25 * tui/tui-wingeneral.c (tui_make_window)
26 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
27 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
28 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
29 (tui_set_win_height_command, parse_scrolling_args): Update.
30 * tui/tui-source.c (tui_source_window::style_changed): Update.
31 * tui/tui-regs.c (tui_show_registers)
32 (tui_data_window::first_data_item_displayed)
33 (tui_data_window::delete_data_content_windows)
34 (tui_check_register_values, tui_reg_command): Update.
35 * tui/tui-disasm.c (tui_show_disassem): Update.
36 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
38 <is_visible>: Remove field.
39 * tui/tui-data.c (tui_next_win, tui_prev_win)
40 (tui_delete_invisible_windows): Update.
42 2019-08-16 Tom Tromey <tom@tromey.com>
44 * tui/tui-winsource.h (struct tui_source_window_base)
45 <m_has_locator>: Remove.
46 * tui/tui-layout.c (show_source_disasm_command, show_data)
47 (show_source_or_disasm_and_command): Update.
49 2019-08-16 Alan Hayward <alan.hayward@arm.com>
51 * NEWS (Other MI changes): New subsection.
52 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
53 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
54 * arch-utils.c (default_get_pc_address_flags): New function.
55 * arch-utils.h (default_get_pc_address_flags): New declaration.
56 * gdbarch.sh: Add get_pc_address_flags.
57 * gdbarch.c: Regenerate.
58 * gdbarch.h: Likewise.
59 * stack.c (print_pc): New function.
60 (print_frame_info) (print_frame): Call print_pc.
62 2019-08-16 Tom de Vries <tdevries@suse.de>
64 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
65 print_objfile_section_info.
67 2019-08-15 Tom Tromey <tom@tromey.com>
69 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
70 calling update_cmdwin_start_line.
71 * tui/tui-winsource.h (struct tui_source_window_base)
72 <do_make_visible_with_new_height, set_new_height>: Don't declare.
74 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
76 (tui_source_window_base::set_new_height): Remove.
77 (tui_source_window_base::rerender): Rename from
78 do_make_visible_with_new_height.
79 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
81 (tui_win_info::make_invisible_and_set_new_height)
82 (tui_win_info::make_visible_with_new_height): Remove.
83 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
85 * tui/tui-stack.c (tui_locator_window::rerender): New method.
86 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
87 do_make_visible_with_new_height>: Don't declare.
89 * tui/tui-regs.c (tui_data_window::rerender): Rename from
91 (tui_data_window::do_make_visible_with_new_height): Remove.
92 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
93 call tui_show_locator_content.
94 (tui_gen_win_info::resize): Call rerender.
95 (show_source_or_disasm_and_command): Don't call
96 tui_show_locator_content.
97 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
99 (struct tui_win_info) <rerender>: Declare.
100 <set_new_height, make_invisible_and_set_new_height,
101 make_visible_with_new_height>: Don't declare.
102 * tui/tui-data.c (tui_win_list::rerender): New method.
103 * tui/tui-command.h (struct tui_cmd_window)
104 <do_make_visible_with_new_height>: Don't declare.
106 (tui_cmd_window::do_make_visible_with_new_height): Remove.
108 2019-08-15 Tom Tromey <tromey@adacore.com>
110 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
111 * ada-lang.c (ada_enum_name): Likewise.
113 2019-08-15 Christian Biesinger <cbiesinger@google.com>
115 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
117 (GdbOutputErrorFile): Likewise.
118 (global scope): Adjust constructor calls to GdbOutput{,Error}File
120 (execute_unwinders): Rename to have a leading underscore.
121 (auto_load_packages): Likewise.
122 (global scope): Adjust call to auto_load_packages accordingly.
123 (GdbSetPythonDirectory): Likewise.
124 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
125 instead of execute_unwinders.
127 2019-08-15 Tom Tromey <tom@tromey.com>
129 * tui/tui-layout.c (show_layout, show_source_disasm_command)
130 (show_data): Don't change window visibility.
131 (tui_gen_win_info::resize): Remove special case for command
132 window. Use wresize, when available.
133 (show_source_or_disasm_and_command): Don't change window
135 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
136 <make_visible>: New method.
137 * tui/tui-command.c (tui_cmd_window::resize): New method.
139 2019-08-15 Tom Tromey <tom@tromey.com>
141 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
142 (struct tui_source_windows): New.
143 * tui/tui-winsource.c (tui_display_main): Update.
144 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
145 (new_height_ok, parse_scrolling_args): Update.
146 * tui/tui-layout.c (show_layout, show_data): Update.
147 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
148 (tui_add_to_source_windows): Don't declare.
149 * tui/tui-data.c (source_windows, tui_source_windows)
150 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
152 2019-08-15 Tom Tromey <tom@tromey.com>
154 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
156 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
157 * tui/tui-layout.c (show_source_disasm_command, show_data):
159 (tui_gen_win_info::resize): Rename.
160 (show_source_or_disasm_and_command): Update.
161 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
164 2019-08-15 Tom Tromey <tom@tromey.com>
166 * tui/tui-stack.c (tui_initialize_static_data): Remove.
167 * tui/tui-interp.c (tui_interp::init): Don't call
168 tui_initialize_static_data.
169 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
171 2019-08-15 Tom Tromey <tom@tromey.com>
173 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
174 examine tui_win_list.
176 2019-08-15 Tom Tromey <tom@tromey.com>
178 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
179 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
180 tui_clear_source_content.
181 (tui_clear_source_content): Remove.
182 (tui_source_window_base::do_erase_source_content): Hoist call to
184 * tui/tui-stack.c (tui_show_frame_info): Don't call
185 tui_clear_source_content.
187 2019-08-15 Tom Tromey <tom@tromey.com>
189 * tui/tui-winsource.h (struct tui_source_window_base)
190 <do_erase_source_content>: New method.
191 <erase_source_content>: New method.
192 (tui_erase_source_content): Don't declare.
193 * tui/tui-winsource.c (tui_clear_source_content): Update.
194 (tui_source_window_base::do_erase_source_content): Rename from
195 tui_erase_source_content.
196 (tui_source_window_base::show_source_content): Update.
197 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
198 * tui/tui-source.h (struct tui_source_window)
199 <erase_source_content>: New method.
200 * tui/tui-disasm.h (struct tui_disasm_window)
201 <erase_source_content>: New method.
203 2019-08-15 Tom Tromey <tom@tromey.com>
205 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
206 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
208 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
209 * tui/tui-source.c (tui_set_source_content): Update.
210 * tui/tui-disasm.c (tui_set_disassem_content): Update.
212 2019-08-15 Tom Tromey <tom@tromey.com>
214 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
215 * tui/tui-winsource.c (tui_line_is_displayed): Move to
217 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
219 * tui/tui-source.c (tui_source_window::line_is_displayed): New
221 (tui_source_window::maybe_update): Update.
223 2019-08-15 Tom Tromey <tom@tromey.com>
225 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
226 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
228 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
230 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
232 (tui_disasm_window::maybe_update): Update.
234 2019-08-15 Tom Tromey <tom@tromey.com>
236 * tui/tui-winsource.h (struct tui_source_window_base)
237 <maybe_update>: Declare.
238 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
240 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
242 * tui/tui-source.c (tui_source_window::maybe_update): New method.
243 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
245 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
247 2019-08-15 Tom Tromey <tom@tromey.com>
249 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
251 2019-08-15 Tom Tromey <tom@tromey.com>
253 * tui/tui-wingeneral.c: Include tui-stack.h.
254 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
255 (struct tui_locator_window): Move from tui-data.h.
256 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
257 (tui_initialize_static_data): Move from tui-data.c.
258 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
259 (struct tui_locator_window): Move to tui-stack.c.
260 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
261 (tui_initialize_static_data): Move to tui-stack.c.
263 2019-08-15 Tom Tromey <tom@tromey.com>
265 * tui/tui-layout.c (show_source_disasm_command)
266 (show_source_or_disasm_and_command): Use make_visible method, not
268 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
271 2019-08-15 Tom Tromey <tom@tromey.com>
273 * tui/tui-wingeneral.h (tui_make_window): Update.
274 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
276 (tui_gen_win_info::make_visible): Update.
277 * tui/tui-regs.c (tui_data_window::display_registers_from):
279 * tui/tui-layout.c (show_source_disasm_command)
280 (show_source_or_disasm_and_command): Update.
281 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
282 (enum tui_box): Remove.
283 (struct tui_win_info) <can_box>: New method.
284 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
287 2019-08-15 Tom de Vries <tdevries@suse.de>
289 * linux-nat-trad.c: Include gdbarch.h.
291 2019-08-14 Alan Hayward <alan.hayward@arm.com>
293 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
296 2019-08-14 Tom Tromey <tromey@adacore.com>
298 * darwin-nat.c: Include gdbarch.h.
299 * darwin-nat-info.c: Include gdbarch.h.
301 2019-08-13 Tom Tromey <tom@tromey.com>
303 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
305 * tui/tui-data.c (tui_initialize_static_data): Update.
307 2019-08-13 Tom Tromey <tom@tromey.com>
309 * tui/tui-winsource.h (struct tui_exec_info_window)
310 <~tui_exec_info_window, maybe_allocate_content, get_content,
312 (struct tui_source_window_base) <set_exec_info_content,
313 show_exec_info_content>: Don't declare.
314 * tui/tui-winsource.c
315 (tui_exec_info_window::maybe_allocate_content): Remove.
316 (tui_source_window_base::update_exec_info): Rename from
317 set_exec_info_content.
318 (tui_source_window_base::show_exec_info_content)
319 (tui_source_window_base::update_exec_info): Remove.
321 2019-08-13 Tom Tromey <tom@tromey.com>
323 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
325 * tui/tui-winsource.c (tui_update_source_window_as_is)
326 (tui_update_source_windows_with_addr, tui_erase_source_content):
328 (tui_clear_exec_info_content): Remove.
330 2019-08-13 Tom Tromey <tom@tromey.com>
332 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
334 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
335 call tui_erase_exec_info_content.
336 (tui_clear_exec_info_content): Rename from
337 tui_erase_exec_info_content.
338 (tui_clear_exec_info_content): Delete.
340 2019-08-13 Tom Tromey <tom@tromey.com>
342 * tui/tui-winsource.h (struct tui_source_window_base)
343 <show_exec_info_content>: Declare.
344 (tui_show_exec_info_content): Don't declare.
345 * tui/tui-winsource.c
346 (tui_source_window_base::show_exec_info_content): Rename from
347 tui_show_exec_info_content.
348 (tui_source_window_base::update_exec_info): Update.
350 2019-08-13 Tom Tromey <tom@tromey.com>
352 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
353 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
354 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
355 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
356 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
357 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
360 2019-08-13 Tom Tromey <tom@tromey.com>
362 * tui/tui-winsource.h (struct tui_source_window_base)
363 <update_exec_info>: Declare.
364 (tui_update_exec_info): Don't declare.
365 * tui/tui-winsource.c (tui_update_source_window_as_is)
366 (tui_source_window_base::refresh_all)
367 (tui_update_all_breakpoint_info): Update.
368 (tui_source_window_base::update_exec_info): Rename from
369 tui_update_exec_info.
370 * tui/tui-stack.c (tui_show_frame_info): Update.
372 2019-08-13 Tom Tromey <tom@tromey.com>
374 * tui/tui-winsource.h (struct tui_source_window_base)
375 <set_exec_info_content>: Declare.
376 (tui_set_exec_info_content): Don't declare.
377 * tui/tui-winsource.c
378 (tui_source_window_base::set_exec_info_content): Rename from
379 tui_set_exec_info_content.
380 (tui_update_exec_info): Update.
382 2019-08-13 Tom Tromey <tom@tromey.com>
384 * tui/tui-winsource.h (struct tui_source_window_base)
385 <show_source_content>: Declare.
386 (tui_show_source_content): Don't declare.
387 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
388 (tui_source_window_base::show_source_content): Rename from
389 tui_show_source_content.
390 (tui_source_window_base::refresh_all): Update.
391 * tui/tui-layout.c (show_source_disasm_command)
392 (show_source_or_disasm_and_command): Update.
394 2019-08-13 Tom Tromey <tom@tromey.com>
396 * tui/tui-winsource.c (tui_erase_source_content)
397 (tui_show_source_content, tui_source_window_base::refresh_all):
399 * tui/tui-wingeneral.h
400 (tui_check_and_display_highlight_if_needed): Don't declare.
401 * tui/tui-wingeneral.c
402 (tui_win_info::check_and_display_highlight_if_needed): Rename from
403 check_and_display_highlight_if_needed.
404 * tui/tui-win.c (tui_rehighlight_all)
405 (tui_win_info::make_visible_with_new_height): Update.
406 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
407 (tui_data_window::erase_data_content)
408 (tui_data_window::display_all_data): Update.
409 * tui/tui-data.h (struct tui_win_info)
410 <check_and_display_highlight_if_needed>: Declare.
412 2019-08-13 Tom Tromey <tom@tromey.com>
414 * tui/tui-win.c (tui_resize_all): Call
415 tui_delete_invisible_windows.
416 * tui/tui-layout.c (show_layout): Call
417 tui_delete_invisible_windows.
418 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
419 * tui/tui-data.c (tui_delete_invisible_windows): New function.
421 2019-08-13 Tom Tromey <tom@tromey.com>
423 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
424 tui_add_win_to_layout.
426 2019-08-13 Tom Tromey <tom@tromey.com>
428 * tui/tui-layout.h (tui_default_win_height): Don't declare.
429 * tui/tui-layout.c (tui_default_win_height): Now static.
431 2019-08-13 Tom Tromey <tom@tromey.com>
433 * tui/tui-layout.c (show_layout): Unify all layout cases into a
435 (show_source_disasm_command, show_source_or_disasm_and_command):
436 Don't check current layout.
438 2019-08-13 Tom Tromey <tom@tromey.com>
440 * tui/tui-wingeneral.c (make_all_visible): Remove.
441 (tui_make_all_invisible): Simplify.
442 * tui/tui-layout.c (tui_make_all_invisible): Move from
443 tui-wingeneral.c; simplify.
444 (show_layout): Hoist call to tui_make_all_invisible.
445 (show_data): Don't call tui_make_all_invisible.
447 2019-08-13 Tom Tromey <tom@tromey.com>
449 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
450 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
452 2019-08-13 Tom Tromey <tom@tromey.com>
454 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
456 (show_source_disasm_command, show_data)
457 (show_source_or_disasm_and_command): Don't use
458 tui_set_current_layout_to.
459 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
460 * tui/tui-data.c (current_layout, tui_current_layout): Move to
462 (tui_set_current_layout_to): Remove.
464 2019-08-13 Tom Tromey <tom@tromey.com>
466 * tui/tui-layout.c (tui_set_layout): Update.
467 * tui/tui-data.h (struct tui_layout_def): Remove.
468 (tui_layout_def): Don't declare.
469 * tui/tui-data.c (layout_def): Remove.
470 (tui_layout_def): Remove.
472 2019-08-13 Tom Tromey <tom@tromey.com>
474 * tui/tui-winsource.h (struct tui_source_window_base)
475 <clear_detail>: No longer "override".
476 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
477 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
478 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
479 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
481 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
483 2019-08-13 Tom Tromey <tromey@adacore.com>
485 * tracepoint.c: Don't include readline.h or history.h.
487 2019-08-12 Tom Tromey <tom@tromey.com>
489 * configure: Rebuild.
490 * configure.ac: Check for readline 7.
491 * NEWS: Mention readline 7 requirement.
494 2019-08-12 Tom Tromey <tom@tromey.com>
496 * mingw-hdep.c (gdb_select): Remove readline hack.
498 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
500 * blockframe.c (find_pc_partial_function): Set *block to nullptr
501 when the function fails.
503 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
505 * s390-tdep.c (s390_type_align): New function.
506 (s390_gdbarch_init): Set it as type_align gdbarch method.
508 2019-08-09 Tom de Vries <tdevries@suse.de>
511 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
512 pc_low with relocation offset.
514 2019-08-07 Tom Tromey <tromey@adacore.com>
516 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
517 (print_frame_args): Update.
518 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
520 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
521 * frame.h (struct frame_arg): Add initializers.
522 <error>: Now a unique_xmalloc_ptr.
524 2019-08-07 Alan Hayward <alan.hayward@arm.com>
526 * NEWS: Expand the Pointer Authentication entry.
527 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
528 (aarch64_frame_unmask_lr): ... to this.
529 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
530 Call aarch64_frame_unmask_lr.
531 * frame.c (struct frame_info): Add "masked" variable.
532 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
533 (fprint_frame): Check for masked pc.
534 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
536 * python/py-framefilter.c (py_print_frame): Check for masked pc.
537 * stack.c (print_frame): Check for masked pc.
539 2019-08-06 Tom Tromey <tom@tromey.com>
541 * stabsread.c (patch_block_stabs, read_one_struct_field)
542 (read_enum_type): Use obstack_strndup.
543 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
544 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
545 * dwarf2read.c (guess_full_die_structure_name)
546 (anonymous_struct_prefix): Use obstack_strndup.
547 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
548 * c-exp.y (yylex): Use obstack_strndup.
549 * ada-exp.y (write_object_renaming, write_ambiguous_var)
550 (write_var_or_type): Use obstack_strndup.
552 2019-08-06 Tom Tromey <tom@tromey.com>
554 * symfile.c (reread_symbols): Use obstack_strdup.
555 * stabsread.c (read_type): Use obstack_strdup.
556 * gdb_obstack.h (obstack_strdup): New overload.
557 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
558 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
559 (dwarf2_canonicalize_name): Use obstack_strdup.
560 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
561 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
564 2019-08-06 Tom Tromey <tom@tromey.com>
566 * gdb_obstack.h (obstack_strdup): Define.
567 * gdb_obstack.c (obstack_strdup): Don't define.
569 2019-08-06 Tom Tromey <tom@tromey.com>
571 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
573 * typeprint.c (typedef_hash_table::find_global_typedef): Use
575 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
576 * stabsread.c (common_block_start): Use obstack_strdup.
577 * objfiles.c (set_objfile_main_name, objfile): Use
579 * namespace.c (add_using_directive): Use obstack_strdup.
580 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
581 * jit.c (finalize_symtab): Use obstack_strdup.
582 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
583 (guess_partial_die_structure_name, partial_die_info::fixup)
584 (dwarf2_name): Use obstack_strdup.
585 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
587 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
588 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
590 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
592 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
594 * unittests/help-doc-selftests.c: New file.
595 * Makefile.in: Add the new file.
597 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
599 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
600 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
601 the full first line, except when FOR_VALUE_PREFIX. In this case,
602 the trailing '.' is not output, and the first character is uppercased.
603 (print_help_for_command): Update call to print_doc_line.
604 (print_doc_of_command): Likewise.
605 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
606 * cli/cli-option.c (append_indented_doc): Do not append newline.
607 (build_help_option): Append newline after first appended_indented_doc
608 only if a second call is done.
609 (build_help): Append 2 new lines before each option, except the first
611 * compile/compile.c (_initialize_compile): Add new lines after
612 %OPTIONS%, when not at the end of the help.
613 Change help doc or code
614 producing the help doc to respect the invariants.
615 * maint-test-options.c (_initialize_maint_test_options): Likewise.
616 Also removed the new line after 'Options:', as all other commands
617 do not put an empty line between 'Options:' and the first option.
618 * printcmd.c (_initialize_printcmd): Likewise.
619 * stack.c (_initialize_stack): Likewise.
620 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
621 incorrectly telling COMMAND is optional.
622 * ada-lang.c (_initialize_ada_language): Change help doc or code
623 producing the help doc to respect the invariants.
624 * ada-tasks.c (_initialize_ada_tasks): Likewise.
625 * breakpoint.c (_initialize_breakpoint): Likewise.
626 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
627 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
628 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
629 * cli/cli-style.c (cli_style_option::add_setshow_commands,
630 _initialize_cli_style): Likewise.
631 * corelow.c (core_target_info): Likewise.
632 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
633 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
634 * filesystem.c (_initialize_filesystem): Likewise.
635 * frame.c (_initialize_frame): Likewise.
636 * gnu-nat.c (add_task_commands): Likewise.
637 * infcall.c (_initialize_infcall): Likewise.
638 * infcmd.c (_initialize_infcmd): Likewise.
639 * interps.c (_initialize_interpreter): Likewise.
640 * language.c (_initialize_language): Likewise.
641 * linux-fork.c (_initialize_linux_fork): Likewise.
642 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
643 * maint.c (_initialize_maint_cmds): Likewise.
644 * memattr.c (_initialize_mem): Likewise.
645 * printcmd.c (_initialize_printcmd): Likewise.
646 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
648 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
649 * record-btrace.c (_initialize_record_btrace): Likewise.
650 * record-full.c (_initialize_record_full): Likewise.
651 * record.c (_initialize_record): Likewise.
652 * regcache-dump.c (_initialize_regcache_dump): Likewise.
653 * regcache.c (_initialize_regcache): Likewise.
654 * remote.c (add_packet_config_cmd, init_remote_threadtests,
655 _initialize_remote): Likewise.
656 * ser-tcp.c (_initialize_ser_tcp): Likewise.
657 * serial.c (_initialize_serial): Likewise.
658 * skip.c (_initialize_step_skip): Likewise.
659 * source.c (_initialize_source): Likewise.
660 * stack.c (_initialize_stack): Likewise.
661 * symfile.c (_initialize_symfile): Likewise.
662 * symtab.c (_initialize_symtab): Likewise.
663 * target-descriptions.c (_initialize_target_descriptions): Likewise.
664 * top.c (init_main): Likewise.
665 * tracefile-tfile.c (tfile_target_info): Likewise.
666 * tracepoint.c (_initialize_tracepoint): Likewise.
667 * tui/tui-win.c (_initialize_tui_win): Likewise.
668 * utils.c (add_internal_problem_command): Likewise.
669 * valprint.c (value_print_option_defs): Likewise.
671 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
674 * configure.ac: Drop enable-libmcheck support.
675 * configure, config.in: Rebuild.
676 * libmcheck.m4: Remove.
677 * acinclude.m4: Don't include it.
678 * Makefile.in: Don't distribute it.
679 * top.c (print_gdb_configuration): Don't mention it.
681 2019-08-06 Tom Tromey <tom@tromey.com>
683 * utils.c (set_output_style): Sometimes pass stream to
685 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
686 * record-btrace.c (btrace_insn_history): Update.
687 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
689 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
691 <m_uiout>: New field.
693 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
694 Remove "uiout" parameter.
695 (dump_insns): Update.
696 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
697 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
699 2019-08-06 Christian Biesinger <cbiesinger@google.com>
701 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
702 (error_in_psymtab_expansion): Likewise.
703 (lookup_symbol_via_quick_fns): Likewise.
704 (basic_lookup_transparent_type_quick): Likewise.
705 (basic_lookup_transparent_type_1): Likewise.
707 2019-08-06 Tom Tromey <tromey@adacore.com>
709 * source.c (last_source_error): Now bool.
710 (print_source_lines_base): Make "noprint" bool. Only open
711 source file when last_source_visited changes.
713 2019-08-06 Tom Tromey <tromey@adacore.com>
715 * annotate.c (annotate_source_line): Use g_source_cache.
716 * source-cache.c (source_cache::get_plain_source_lines): Change
717 parameters. Populate m_offset_cache.
718 (source_cache::ensure): New method.
719 (source_cache::get_line_charpos): New method.
720 (extract_lines): Move lower. Change parameters.
721 (source_cache::get_source_lines): Move lower.
722 * source-cache.h (class source_cache): Update comment.
723 <get_line_charpos>: New method.
724 <get_source_lines>: Update comment.
725 <clear>: Clear m_offset_cache.
726 <get_plain_source_lines>: Change parameters.
728 <m_offset_cache>: New member.
729 * source.c (forget_cached_source_info_for_objfile): Update.
730 (info_source_command): Use g_source_cache.
731 (find_source_lines, open_source_file_with_line_charpos): Remove.
732 (print_source_lines_base, search_command_helper): Use g_source_cache.
733 * source.h (open_source_file_with_line_charpos): Don't declare.
734 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
735 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
738 2019-08-06 Tom Tromey <tromey@adacore.com>
740 * source-cache.c (source_cache::get_plain_source_lines):
741 Remove "first_line" and "last_line" parameters.
742 (source_cache::get_source_lines): Cache plain text.
743 * source-cache.h (class source_cache)
744 <get_plain_source_lines>: Update.
746 2019-08-06 Tom Tromey <tromey@adacore.com>
748 * source-cache.c (extract_lines): No longer a method.
749 Changed type of parameter. Include final newline.
750 (selftests::extract_lines_test): New function.
751 (_initialize_source_cache): Likewise.
752 * source-cache.h (class source_cache)
753 <extract_lines>: Don't declare.
755 2019-08-06 Tom Tromey <tromey@adacore.com>
757 * breakpoint.c (init_breakpoint_sal): Update.
758 (breakpoint): Update.
759 * breakpoint.h (struct breakpoint) <filter>: Now a
762 2019-08-05 Christian Biesinger <cbiesinger@google.com>
764 * NEWS: Mention dictionary access on blocks.
765 * python/py-block.c (blpy_getitem): New function.
766 (block_object_as_mapping): New struct.
767 (block_object_type): Use new struct for tp_as_mapping field.
769 2019-08-05 Christian Biesinger <cbiesinger@google.com>
771 * objfiles.h (objfile): Add a comment describing partial symbols.
773 2019-08-05 Tom Tromey <tromey@adacore.com>
775 * compile/compile.c (_initialize_compile): Use _(), not N_().
776 * thread.c (_initialize_thread): Use _(), not N_().
777 * stack.c (_initialize_stack): Use _(), not N_().
778 * printcmd.c (_initialize_printcmd): Use _(), not N_().
780 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
782 * dwarf2read.c (struct dw2_symtab_iterator):
783 <want_specific_block>: Remove.
784 <block_index>: Change type to gdb::optional.
785 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
786 change type of BLOCK_INDEX parameter to gdb::optional.
787 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
788 (dw2_lookup_symbol): Don't pass argument for
790 (dw2_expand_symtabs_for_function): Don't pass argument for
791 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
792 (class dw2_debug_names_iterator)
793 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
794 parameter, change BLOCK_INDEX type to gdb::optional.
795 <m_want_specific_block>: Remove.
796 <m_block_index>: Change type to gdb::optional.
797 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
798 gdb::optional. Re-write in function of gdb::optional.
799 (dw2_debug_names_lookup_symbol): Don't pass argument for
801 (dw2_debug_names_expand_symtabs_for_function): Don't pass
802 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
805 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
807 * NEWS: Mention changes to "info sources" command.
809 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
811 * symtab.c (filename_partial_match_opts): New struct type.
812 (struct output_source_filename_data): New members
813 regexp, c_regexp, partial_match.
814 (output_source_filename): Use new members to decide to print file.
815 (info_sources_option_defs): New variable.
816 (make_info_sources_options_def_group, print_info_sources_header,
817 info_sources_command_completer):
819 (info_sources_command): Read new optional arguments.
820 (_initialize_symtab): Update info sources help.
822 2019-08-02 Alexandre Oliva <oliva@adacore.com>
824 * ada-lang.c (exception_support_info_v0): Renamed from...
825 (default_exception_support_info): ... this. Create new
827 (ada_has_this_exception_support): Look up catch_handlers_sym.
828 (ada_exception_support_info_sniffer): Try v0 after default.
830 2019-08-01 Tom Tromey <tromey@adacore.com>
832 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
835 2019-08-01 Christian Biesinger <cbiesinger@google.com>
837 * s12z-tdep.c: Fix include path for s12z-opc.h.
839 2019-08-01 Alan Hayward <alan.hayward@arm.com>
841 * NEWS: Require GNU make 3.82.
843 2019-07-16 Tom Tromey <tom@tromey.com>
845 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
848 2019-07-30 Tom Tromey <tromey@adacore.com>
850 * block.c (contained_in): Remove BLOCK_FUNCTION check.
852 2019-07-30 Kevin Buettner <kevinb@redhat.com>
854 * printcmd.c (print_address_symbolic): Print negative offsets.
855 (build_address_symbolic): Force signed arithmetic when computing
858 2019-07-30 Christian Biesinger <cbiesinger@google.com>
860 PR/24474: Add a function to lookup static variables.
861 * NEWS: Mention this new function.
862 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
863 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
864 * python/python.c (python_GdbMethods): Add new function.
866 2019-07-29 Christian Biesinger <cbiesinger@google.com>
868 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
869 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
870 (objfpy_lookup_static_symbol): New function.
871 (objfile_object_methods): Add new functions.
873 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
875 * NEWS: Mention 'set|show print frame-info'. Mention new
876 'presence' value for 'frame-arguments'. Mention new '-frame-info'
877 backtrace argument. Mention that python frame filtering code
878 is now consistent with what 'backtrace' command prints.
880 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
882 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
884 (print_frame_info_auto, print_frame_info_source_line,
885 print_frame_info_location, print_frame_info_source_and_location,
886 print_frame_info_location_and_address, print_frame_info_short_location):
888 (struct frame_print_options): New member print_frame_info.
889 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
890 * stack.h (get_user_print_what_frame_info): New declaration.
891 (frame_show_address): New declaration.
892 * stack.c (print_frame_arguments_choices): New value 'presence'.
893 (print_frame_info_auto, print_frame_info_source_line,
894 print_frame_info_location, print_frame_info_source_and_location,
895 print_frame_info_location_and_address, print_frame_info_short_location,
896 print_frame_info_choices, print_frame_info_print_what): New definitions.
897 (print_frame_args): Only print dots for args if print frame-arguments
899 (frame_print_option_defs): New element for "frame-info".
900 (get_user_print_what_frame_info): New function.
901 (frame_show_address): Make non static. Move comment to stack.h.
902 (print_frame_info_to_print_what): New function.
903 (print_frame_info): Update comment. Use fp_opts.print_frame_info
904 to decide what to print.
905 (backtrace_command_1): Handle the new print_frame_arguments_presence
907 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
908 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
909 (py_print_frame): In non-mi mode, use LOCATION as default for
910 print_what, similarly to frame information printed directly by
911 backtrace command. Handle frame-info user option in non MI mode.
913 2019-07-27 Kevin Buettner <kevinb@redhat.com>
915 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
916 Add case for debugging 32-bit target on 64-bit host. Revise
919 2019-07-27 Kevin Buettner <kevinb@redhat.com>
921 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
922 instead of find_function_entry_range_from_pc.
924 2019-07-27 Kevin Buettner <kevinb@redhat.com>
926 * stack.c (find_frame_funname): Remove code which preferred
927 minsym over symtab sym in "certain pathological cases".
929 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
930 parameter. Change type of "do_demangle" to bool.
931 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
932 Pass suitable "prefer_sym_over_minsym" flag to
933 build_address_symbolic(). Don't output "+" for negative offsets.
934 * printcmd.c (print_address_symbolic): Update invocation of
935 build_address_symbolic to include a "prefer_sym_over_minsym"
937 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
938 Restrict cases in which use of minimal symbol is preferred to that
939 of a found symbol. Update comments.
941 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
942 for entry pc when entry pc is out of range for that FDE.
944 2019-07-26 Brian Callahan <bcallah@openbsd.org>
947 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
950 2019-07-25 Christian Biesinger <cbiesinger@google.com>
952 * python/py-objfile.c (add_separate_debug_file): Fix comment about
953 this function's Python signature.
956 2019-07-24 Christian Biesinger <cbiesinger@google.com>
958 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
959 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
960 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
961 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
962 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
965 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
967 * h8300-tdep.c (h8300_register_name_common): New.
968 h8300_register_name): Use h8300_register_name_common.
969 (h8300s_register_name): Likewise.
970 (h8300sx_register_name): Likewise.
971 (h8300h_register_nam): New.
972 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
975 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
977 * arm-tdep.c (arm_skip_cmse_entry): New function.
978 (arm_is_sgstubs_section): New function.
979 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
981 2019-07-22 Tom Tromey <tom@tromey.com>
983 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
986 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
988 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
991 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
993 * symtab.c (search_symbols): Adjust msymbol matching type arrays
994 so that GDB doesn't match any msymbols when searching in the
996 (print_symbol_info): Print using typedef_print or type_print based
997 on the type of the symbol. Add updated FIXME comment moved from...
998 (_initialize_symtab): ... move and update FIXME comment to above.
1000 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1002 * NEWS: Mention adding -q option to "info types".
1003 * symtab.c (struct info_types_options): New struct.
1004 (info_types_options_defs): New variable.
1005 (make_info_types_options_def_group): New function.
1006 (info_types_command): Use gdb::option framework to parse options.
1007 (info_types_command_completer): New function.
1008 (_initialize_symtab): Extend the help text on "info types" and
1009 register command completer.
1011 2019-07-21 Christian Biesinger <cbiesinger@google.com>
1013 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1014 (lookup_symbol_in_objfile): Change int to block_enum and add a
1015 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1017 2019-07-20 Christian Biesinger <cbiesinger@google.com>
1019 * MAINTAINERS (Write After Approval): Add self.
1021 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1023 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1024 instruction to the dummy code region.
1026 2019-07-19 Tom Tromey <tromey@adacore.com>
1028 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1029 (ARGSUSED, PARAMS, __func__): Remove rules.
1031 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1033 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1034 * features/arm/arm-with-iwmmxt.c: Remove.
1035 * features/arm/arm-with-iwmmxt.xml: Remove.
1036 * features/arm/arm-with-m-fpa-layout.c: Remove.
1037 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1038 * features/arm/arm-with-m-vfp-d16.c: Remove.
1039 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1040 * features/arm/arm-with-m.c: Remove.
1041 * features/arm/arm-with-m.xml: Remove.
1042 * features/arm/arm-with-neon.c: Remove.
1043 * features/arm/arm-with-neon.xml: Remove.
1044 * features/arm/arm-with-vfpv2.c: Remove.
1045 * features/arm/arm-with-vfpv2.xml: Remove.
1046 * features/arm/arm-with-vfpv3.c: Remove.
1047 * features/arm/arm-with-vfpv3.xml: Remove.
1049 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1051 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1053 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1055 * arch/aarch32.c (aarch32_create_target_description): Create
1056 target descriptions using features.
1057 * arch/arm.c (arm_create_target_description)
1058 (arm_create_mprofile_target_description): Likewise.
1059 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1061 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1063 * Makefile.in: Add new files.
1064 * aarch32-tdep.c: New file.
1065 * aarch32-tdep.h: New file.
1066 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1067 Call aarch32_read_description.
1068 * arch/aarch32.c: New file.
1069 * arch/aarch32.h: New file.
1070 * arch/arm.c (arm_create_target_description)
1071 (arm_create_mprofile_target_description): New function.
1072 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1073 (arm_create_target_description)
1074 (arm_create_mprofile_target_description): New declaration.
1075 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1076 read_description functions.
1077 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1079 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1080 * arm-tdep.c (tdesc_arm_list): New variable.
1081 (arm_register_g_packet_guesses): Call create description functions.
1082 (arm_read_description) (arm_read_mprofile_description): New
1084 * arm-tdep.h (arm_read_description)
1085 (arm_read_mprofile_description): Add declaration.
1086 * configure.tgt: Add new files.
1088 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1090 * top.c (new_ui_command): Open specified terminal just once.
1092 2019-07-18 Tom Tromey <tromey@adacore.com>
1094 * symtab.c (main_name): Constify return type.
1095 * symfile.c (set_initial_language): Update.
1096 * symtab.h (main_name): Constify return type.
1098 2019-07-17 Tom Tromey <tom@tromey.com>
1100 * tui/tui-winsource.c (tui_update_source_window)
1101 (tui_update_source_window_as_is)
1102 (tui_update_source_windows_with_line): Remove return.
1103 * tui/tui-disasm.c (tui_show_disassem)
1104 (tui_show_disassem_and_update_source): Remove return.
1105 * tui/tui.c (tui_reset): Remove return.
1106 * tui/tui-wingeneral.c
1107 (tui_check_and_display_highlight_if_needed): Remove return.
1109 2019-07-17 Tom Tromey <tom@tromey.com>
1111 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1113 2019-07-17 Tom Tromey <tom@tromey.com>
1115 * tui/tui-winsource.h (struct tui_exec_info_window)
1116 (struct tui_source_window_base): Move from tui-data.h.
1117 * tui/tui-winsource.c: Move many method definitions from
1118 elsewhere. Remove "structuring" comments.
1119 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1120 (tui_source_window_base::refresh_window): Move to
1122 * tui/tui-win.c (tui_source_window_base::refresh_all)
1123 (tui_source_window_base::update_tab_width)
1124 (tui_source_window_base::set_new_height)
1125 (tui_source_window_base::do_make_visible_with_new_height): Move to
1127 * tui/tui-source.h: Update.
1128 * tui/tui-source.c (tui_source_window_base::reset): Move to
1130 * tui/tui-disasm.h: Update.
1131 * tui/tui-data.h (struct tui_exec_info_window): Move to
1133 (struct tui_source_window_base): Likewise.
1134 * tui/tui-data.c (tui_source_window_base::clear_detail)
1135 (tui_source_window_base, ~tui_source_window_base): Move to
1138 2019-07-17 Tom Tromey <tom@tromey.com>
1140 * tui/tui-win.c (tui_resize_all)
1141 (tui_source_window_base::update_tab_width)
1142 (tui_adjust_win_heights): Update.
1143 (tui_win_info::make_invisible_and_set_new_height): Rename from
1144 make_invisible_and_set_new_height.
1145 * tui/tui-data.h (struct tui_win_info)
1146 <make_invisible_and_set_new_height>: New method.
1148 2019-07-17 Tom Tromey <tom@tromey.com>
1150 * tui/tui.c: Update.
1151 * tui/tui-source.h (struct tui_source_window): Move from
1153 * tui/tui-layout.c: Update.
1154 * tui/tui-disasm.c: Update.
1155 * tui/tui-data.h (struct tui_source_window): Move to
1158 2019-07-17 Tom Tromey <tom@tromey.com>
1160 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1162 * tui/tui-data.h (struct tui_disasm_window): Move to
1165 2019-07-17 Tom Tromey <tom@tromey.com>
1167 * tui/tui-regs.h (struct tui_data_item_window): Move from
1169 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1170 * tui/tui-data.h (struct tui_data_item_window): Move to
1172 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1174 2019-07-17 Tom Tromey <tom@tromey.com>
1176 * tui/tui.c: Update.
1177 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1178 (tui_cmd_window::max_height): Move to tui-command.c.
1179 * tui/tui-layout.c: Update.
1180 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1181 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1183 * tui/tui-command.h (struct tui_cmd_window): Move from
1185 * tui/tui-command.c: Remove "structuring" comments.
1186 (tui_cmd_window::clear_detail)
1187 (tui_cmd_window::do_make_visible_with_new_height)
1188 (tui_cmd_window::max_height): Move from elsewhere.
1190 2019-07-17 Tom Tromey <tom@tromey.com>
1192 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1194 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1195 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1197 2019-07-17 Tom Tromey <tom@tromey.com>
1199 * tui/tui.c: Update.
1200 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1202 * tui/tui-windata.h: Remove file.
1203 * tui/tui-windata.c: Remove file.
1204 * tui/tui-win.c (tui_data_window::set_new_height)
1205 (tui_data_window::do_make_visible_with_new_height): Move to
1207 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1208 * tui/tui-regs.c: Remove "structuring" comments.
1209 (tui_data_window::first_data_item_displayed)
1210 (tui_data_window::delete_data_content_windows)
1211 (tui_data_window::erase_data_content)
1212 (tui_data_window::display_all_data)
1213 (tui_data_window::refresh_all)
1214 (tui_data_window::do_scroll_vertical)
1215 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1216 (tui_data_window::do_make_visible_with_new_height)
1217 (tui_data_window::refresh_window): Move from elsewhere.
1218 (_initialize_tui_regs): Move to end of file.
1219 * tui/tui-layout.c: Update.
1220 * tui/tui-hooks.c: Update.
1221 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1222 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1224 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1226 2019-07-17 Tom Tromey <tom@tromey.com>
1228 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1231 2019-07-17 Tom Tromey <tom@tromey.com>
1233 * tui/tui-win.c (tui_source_window_base::set_new_height)
1234 (tui_source_window_base::do_make_visible_with_new_height): Use
1235 m_has_locator field directly.
1236 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1238 (struct tui_source_window_base) <has_locator>: Likewise.
1240 2019-07-17 Tom Tromey <tom@tromey.com>
1242 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1244 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1246 * tui/tui-win.c (tui_source_window_base::set_new_height)
1247 (tui_source_window_base::set_new_height)
1248 (make_invisible_and_set_new_height)
1249 (tui_source_window_base::do_make_visible_with_new_height)
1250 (tui_source_window_base::do_make_visible_with_new_height):
1252 * tui/tui-layout.c (show_source_disasm_command, show_data)
1253 (show_source_or_disasm_and_command): Update.
1254 * tui/tui-layout.c (show_layout): Update.
1256 2019-07-17 Tom Tromey <tom@tromey.com>
1258 * tui/tui-layout.c (make_data_window): Remove.
1259 (show_data): Unify creation and re-initialization cases.
1261 2019-07-17 Tom Tromey <tom@tromey.com>
1263 * tui/tui-layout.c (make_source_window, make_disasm_window):
1265 (show_data): Unify creation and re-initialization cases.
1267 2019-07-17 Tom Tromey <tom@tromey.com>
1269 * tui/tui-layout.c (make_command_window): Remove.
1270 (show_source_disasm_command, show_source_or_disasm_and_command):
1271 Unify creation and re-initialization cases.
1273 2019-07-17 Tom Tromey <tom@tromey.com>
1275 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1276 creation and re-initialization cases.
1278 2019-07-17 Tom Tromey <tom@tromey.com>
1280 * tui/tui-regs.c (tui_get_register): Return void.
1282 2019-07-17 Tom Tromey <tom@tromey.com>
1284 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1287 2019-07-17 Tom Tromey <tom@tromey.com>
1289 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1292 2019-07-17 Tom Tromey <tom@tromey.com>
1294 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1295 * tui/tui-regs.c (tui_reg_layout): New function.
1296 (tui_show_registers, tui_reg_command): Use it.
1297 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1298 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1300 (tui_layout_command): Remove.
1302 2019-07-17 Tom Tromey <tom@tromey.com>
1304 * tui/tui-layout.h (tui/tui-layout): Return void.
1305 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1307 2019-07-17 Tom Tromey <tom@tromey.com>
1309 * tui/tui-layout.c (show_source_disasm_command, show_data):
1311 (reset_locator): Remove.
1312 (show_source_or_disasm_and_command): Update.
1314 2019-07-17 Tom Tromey <tom@tromey.com>
1316 * tui/tui-source.c (tui_source_window_base::reset): Remove
1318 * tui/tui-layout.c (make_command_window, make_source_window)
1319 (make_disasm_window, make_data_window)
1320 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1321 (reset_locator, show_source_or_disasm_and_command): Update.
1322 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1324 (struct tui_source_window_base) <reset>: Likewise.
1326 2019-07-17 Tom Tromey <tom@tromey.com>
1328 * tui/tui-layout.c (show_source_disasm_command): Use
1330 (reset_locator): New function.
1331 (init_and_make_win): Remove.
1332 (show_source_or_disasm_and_command): Use reset_locator.
1334 2019-07-17 Tom Tromey <tom@tromey.com>
1336 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1338 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1340 * tui/tui-source.c (tui_source_window_base::reset): New method.
1341 * tui/tui-layout.c (make_command_window): Don't call
1343 (make_source_window, make_disasm_window): Don't call
1344 make_source_or_disasm_window.
1345 (make_data_window): Don't call init_and_make_win. Change calling
1347 (show_source_disasm_command, show_data): Simplify.
1348 (make_source_or_disasm_window): Remove.
1349 (show_source_or_disasm_and_command): Simplify.
1350 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1351 (struct tui_source_window_base) <reset>: Likewise.
1352 <execution_info>: Remove initializer.
1353 * tui/tui-data.c (tui_source_window_base): Initialize
1356 2019-07-17 Tom Tromey <tom@tromey.com>
1358 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1361 2019-07-17 Tom Tromey <tom@tromey.com>
1363 * tui/tui.c (tui_rl_other_window): Update.
1364 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1365 superclass method first. Always iterate over regs_content.
1366 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1368 * tui/tui-win.c (tui_set_focus_command): Update.
1370 2019-07-17 Tom Tromey <tom@tromey.com>
1372 * tui/tui-win.c (tui_set_focus_command): Rename from
1373 tui_set_focus. Call tui_enable.
1374 (tui_set_focus_command): Remove.
1376 2019-07-17 Tom Tromey <tom@tromey.com>
1378 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1380 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1382 (tui_data_window::refresh_window): Call refresh_window on data
1383 items. Always call superclass refresh_window.
1384 (tui_win_info::refresh): Remove.
1385 (tui_source_window_base::refresh_window): Update.
1386 (tui_refresh_all): Update.
1387 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1389 (show_source_or_disasm_and_command): Likewise.
1390 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1391 (struct tui_source_window_base) <refresh>: Likewise.
1393 2019-07-17 Tom Tromey <tom@tromey.com>
1395 * tui/tui-winsource.c (tui_clear_source_content)
1396 (tui_show_source_content): Update.
1397 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1398 whether content is empty.
1399 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1402 2019-07-17 Tom Tromey <tom@tromey.com>
1404 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1406 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1407 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1409 2019-07-17 Tom Tromey <tom@tromey.com>
1411 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1412 (struct tui_data_item_window): Update.
1414 2019-07-17 Tom Tromey <tom@tromey.com>
1416 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1417 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1420 2019-07-17 Tom Tromey <tom@tromey.com>
1422 * tui/tui-winsource.h (tui_erase_source_content)
1423 (tui_clear_source_content): Remove "display_prompt" parameter.
1424 * tui/tui-winsource.c (tui_update_source_window_as_is)
1425 (tui_update_source_windows_with_addr): Update.
1426 (tui_clear_source_content): Remove "display_prompt" parameter.
1427 (tui_erase_source_content): Likewise. Simplify.
1428 (tui_show_source_content): Update.
1429 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1430 * tui/tui-stack.c (tui_show_frame_info): Update.
1431 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1434 2019-07-17 Tom Tromey <tom@tromey.com>
1436 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1437 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1439 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1442 2019-07-17 Tom Tromey <tom@tromey.com>
1444 * tui/tui-winsource.c (tui_clear_source_content)
1445 (tui_show_source_content, tui_show_exec_info_content)
1446 (tui_clear_exec_info_content): Update.
1447 * tui/tui-stack.c (tui_show_locator_content): Update.
1448 (tui_show_frame_info): Update.
1449 * tui/tui-source.h (tui_source_window): Don't declare.
1450 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1451 from tui_source_is_displayed.
1452 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1454 (struct tui_source_window_base) <content_in_use>: New field. Now
1456 (struct tui_source_window) <showing_source_p>: New method.
1457 (TUI_SRC_WIN): Change cast.
1458 * tui/tui-data.c (tui_initialize_static_data): Update.
1460 2019-07-17 Tom Tromey <tom@tromey.com>
1462 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1464 * tui/tui-source.c (tui_source_window::location_matches_p): New
1466 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1468 * tui/tui-data.h (struct tui_source_window_base)
1469 <location_matches_p>: New method.
1470 (struct tui_source_window, struct tui_disasm_window)
1471 <location_matches_p>: Likewise.
1473 2019-07-17 Tom Tromey <tom@tromey.com>
1475 * tui/tui-win.c (tui_set_win_height_command): Rename from
1477 (tui_set_win_height_command): Remove.
1479 2019-07-17 Tom Tromey <tom@tromey.com>
1481 * tui/tui-source.c (tui_source_window): New constructor. Add
1483 (~tui_source_window): New destructor.
1484 (tui_source_window::style_changed): New method.
1485 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1486 (tui_attach_detach_observers): Update.
1487 * tui/tui-data.h (struct tui_source_window): Make constructor not
1488 inline. Add destructor.
1489 (struct tui_source_window) <style_changed>: New method.
1490 <m_observable>: New member.
1492 2019-07-17 Tom Tromey <tom@tromey.com>
1494 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1495 * tui/tui-win.c (tui_resize_all): Fix typo.
1497 2019-07-17 Tom Tromey <tom@tromey.com>
1499 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1500 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1501 (tui_refresh_all): Remove "list" parameter. Use foreach.
1502 * tui/tui-win.c (window_name_completer): Use foreach.
1503 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1504 (update_tab_width): Likewise.
1505 * tui/tui-layout.c (show_layout): Update.
1506 * tui/tui-data.h (class tui_window_iterator): New.
1507 (struct all_tui_windows): New.
1508 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1510 2019-07-17 Tom Tromey <tom@tromey.com>
1512 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1513 parameter. Don't reference globals.
1514 (tui_reg_command): Update.
1516 2019-07-17 Tom Tromey <tom@tromey.com>
1518 * tui/tui-regs.c (tui_show_registers): Simplify.
1520 2019-07-17 Tom Tromey <tom@tromey.com>
1522 * tui/tui-regs.c (tui_show_registers): Update.
1523 (tui_show_register_group): Add win_info parameter.
1525 2019-07-17 Tom Tromey <tom@tromey.com>
1527 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1528 Rename from tui_display_reg_element_at_line.
1529 (tui_data_window::display_registers_from_line): Update.
1530 * tui/tui-data.h (struct tui_data_window)
1531 <display_reg_element_at_line>: New method.
1533 2019-07-17 Tom Tromey <tom@tromey.com>
1535 * tui/tui-regs.h (tui_display_registers_from)
1536 (tui_display_registers_from_line): Don't declare.
1537 * tui/tui-windata.c (tui_data_window::display_all_data)
1538 (tui_data_window::refresh_all)
1539 (tui_data_window::do_scroll_vertical): Update.
1540 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1541 from tui_display_registers_from.
1542 (tui_display_reg_element_at_line): Update.
1543 (tui_data_window::display_registers_from_line): Rename from
1544 tui_display_registers_from_line.
1545 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1546 display_registers_from_line>: New methods.
1548 2019-07-17 Tom Tromey <tom@tromey.com>
1550 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1551 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1552 from tui_erase_data_content.
1553 (tui_data_window::display_all_data)
1554 (tui_data_window::refresh_all)
1555 (tui_data_window::do_scroll_vertical): Update.
1556 * tui/tui-regs.c (tui_show_registers): Update.
1557 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1560 2019-07-17 Tom Tromey <tom@tromey.com>
1562 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1565 (tui_data_window::delete_data_content_windows): Rename from
1566 tui_delete_data_content_windows.
1567 (tui_data_window::display_all_data)
1568 (tui_data_window::do_scroll_vertical): Update.
1569 * tui/tui-data.h (struct tui_data_window)
1570 <delete_data_content_windows>: New method.
1572 2019-07-17 Tom Tromey <tom@tromey.com>
1574 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1575 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1577 2019-07-17 Tom Tromey <tom@tromey.com>
1579 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1580 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1581 from tui_display_all_data.
1583 (tui_data_window::do_make_visible_with_new_height): Update.
1584 * tui/tui-regs.c (tui_show_registers): Update.
1585 * tui/tui-layout.c (tui_set_layout): Update.
1586 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1589 2019-07-17 Tom Tromey <tom@tromey.com>
1591 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1592 * tui/tui-windata.c (tui_display_data_from): Remove.
1593 (tui_data_window::refresh_all): Update.
1595 2019-07-17 Tom Tromey <tom@tromey.com>
1597 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1598 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1599 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1600 tui_display_registers_from_line.
1601 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1602 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1603 "force_display" parameter.
1605 2019-07-17 Tom Tromey <tom@tromey.com>
1607 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1609 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1610 Rename from tui_first_reg_element_no_inline.
1611 (tui_display_reg_element_at_line)
1612 (tui_display_registers_from_line): Update.
1613 * tui/tui-data.h (struct tui_data_window)
1614 <first_reg_element_no_inline>: New method.
1616 2019-07-17 Tom Tromey <tom@tromey.com>
1618 * tui/tui-windata.c (tui_display_data_from)
1619 (tui_data_window::do_scroll_vertical): Update.
1620 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1621 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1622 Rename from tui_line_from_reg_element_no.
1623 (tui_display_registers_from_line): Update.
1624 * tui/tui-data.h (struct tui_data_window)
1625 <line_from_reg_element_no>: New method.
1627 2019-07-17 Tom Tromey <tom@tromey.com>
1629 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1630 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1631 tui_last_regs_line_no.
1632 (tui_display_reg_element_at_line)
1633 (tui_display_registers_from_line): Update.
1634 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1637 2019-07-17 Tom Tromey <tom@tromey.com>
1640 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1641 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1642 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1643 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1644 (tui_update_breakpoint_info): Likewise.
1645 * tui/tui-hooks.c (tui_event_create_breakpoint)
1646 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1649 2019-07-17 Tom Tromey <tom@tromey.com>
1651 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1653 2019-07-17 Tom Tromey <tom@tromey.com>
1655 * tui/tui-winsource.c (tui_update_source_window_as_is)
1656 (tui_update_source_windows_with_addr): Update.
1657 * tui/tui-source.h (tui_set_source_content)
1658 (tui_show_symtab_source): Add "win_info" parameter.
1659 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1661 (tui_show_symtab_source): Likewise.
1663 2019-07-17 Tom Tromey <tom@tromey.com>
1665 * tui/tui-wingeneral.c
1666 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1668 2019-07-17 Tom Tromey <tom@tromey.com>
1670 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1671 (struct tui_cmd_window) <can_scroll>: New method.
1672 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1675 2019-07-17 Tom Tromey <tromey@adacore.com>
1677 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1678 do_field_signed>: Rename. Change type of "value".
1679 * ui-out.c (ui_out::field_signed): Rename from field_int.
1680 Change type of "value".
1681 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1683 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1684 do_field_int. Change type of "value".
1685 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1686 do_field_int. Change type of "value".
1687 * tracepoint.c (trace_status_mi, tfind_1)
1688 (print_one_static_tracepoint_marker): Update.
1689 * thread.c (print_thread_info_1, print_selected_thread_frame):
1691 * stack.c (print_frame, print_frame_info): Update.
1692 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1694 * source.c (print_source_lines_base): Update.
1695 * skip.c (info_skip_command): Update.
1696 * record-btrace.c (btrace_ui_out_decode_error)
1697 (btrace_call_history_src_line): Update.
1698 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1700 * progspace.c (print_program_space): Update.
1701 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1702 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1703 do_field_int. Change type of "value".
1704 * mi/mi-out.c (mi_ui_out::do_table_begin)
1705 (mi_ui_out::do_table_header): Update.
1706 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1708 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1709 (mi_cmd_data_list_changed_registers, output_register)
1710 (mi_cmd_data_read_memory, mi_load_progress)
1711 (mi_cmd_trace_frame_collected): Update.
1712 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1714 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1715 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1716 (mi_cmd_var_list_children, varobj_update_one): Update.
1717 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1718 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1719 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1720 * inferior.c (print_inferior): Update.
1721 * gdb_bfd.c (print_one_bfd): Update.
1722 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1724 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1725 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1726 do_field_int. Change type of "value".
1727 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1728 do_field_int. Change type of "value".
1729 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1730 (print_one_breakpoint_location, print_it_catch_fork)
1731 (print_one_catch_fork, print_it_catch_vfork)
1732 (print_one_catch_vfork, print_it_catch_solib)
1733 (print_it_catch_exec, print_it_ranged_breakpoint)
1734 (print_mention_watchpoint, print_mention_masked_watchpoint)
1735 (bkpt_print_it, update_static_tracepoint): Update.
1736 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1737 * break-catch-syscall.c (print_it_catch_syscall): Update.
1738 * ada-tasks.c (print_ada_task_info): Update.
1739 * ada-lang.c (print_it_exception, print_mention_exception):
1742 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1744 PR breakpoints/24541
1745 * gdbarch.c: Regenerate.
1746 * gdbarch.h: Regenerate.
1747 * gdbarch.sh: Adjust return type and parameter types for
1748 'stap_adjust_register'.
1749 (i386_stap_adjust_register): Adjust signature and return new
1751 * stap-probe.c (stap_parse_register_operand): Adjust use of
1752 'gdbarch_stap_adjust_register'.
1754 2019-07-17 Tom Tromey <tromey@adacore.com>
1756 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1758 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1760 (struct s390_process_info): Add initializers.
1761 (s390_add_process): Use new.
1762 (s390_linux_nat_target::low_forget_process): Use delete.
1763 (s390_linux_nat_target::low_new_fork)
1764 (s390_linux_nat_target::stopped_by_watchpoint)
1765 (s390_linux_nat_target::low_prepare_to_resume)
1766 (s390_linux_nat_target::insert_watchpoint)
1767 (s390_linux_nat_target::insert_hw_breakpoint)
1768 (s390_linux_nat_target::remove_watchpoint)
1769 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1771 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1773 * aarch64-fbsd-nat.c: Include regcache.h.
1774 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1776 (aarch64_fbsd_nat_target::fetch_registers)
1777 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1779 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1781 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1783 * fbsd-nat.c: Include gdbarch.h.
1785 2019-07-15 Tom Tromey <tromey@adacore.com>
1787 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1789 2019-07-15 Tom Tromey <tromey@adacore.com>
1791 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1792 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1793 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1794 * cli-out.c (cli_ui_out::do_field_int): New method.
1795 * ui-out.c (ui_out::field_unsigned): New method.
1796 * symfile.c (generic_load): Use field_unsigned.
1797 (print_transfer_performance): Likewise.
1798 * record-btrace.c (ui_out_field_uint): Remove.
1799 (btrace_call_history_insn_range, btrace_call_history): Use
1801 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1803 * ui-out.h (class ui_out) <field_unsigned>: New method.
1804 <do_field_unsigned>: Likewise.
1806 2019-07-15 Tom Tromey <tromey@adacore.com>
1808 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1809 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1810 * target.c (flash_erase_command): Use field_string.
1811 * infrun.c (print_signal_received_reason): Use field_string.
1812 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1813 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1815 * ada-tasks.c (print_ada_task_info): Use field_string.
1817 2019-07-15 Tom Tromey <tromey@adacore.com>
1819 * target.c (flash_erase_command): Use field_core_addr.
1820 * symfile.c (generic_load): Use field_core_addr.
1821 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1822 Use field_core_addr.
1823 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1826 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1828 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1829 value if its desired type is smaller than a CORE_ADDR and signed.
1831 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1833 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1834 of changes to field names, and use new is_reference field to
1835 decide if a property is a reference or not.
1836 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1838 (struct dwarf2_property_baton): Update header comment, rename
1839 'referenced_type' to 'property_type' and update comments.
1840 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1841 default property type, store in property baton, update to take
1842 accound of renamed field.
1843 (read_func_scope): Update call to attr_to_dynamic_prop.
1844 (read_array_type): Likewise.
1845 (dwarf2_per_cu_addr_sized_int_type): New function.
1846 (read_subrange_index_type): Move type finding code to
1847 dwarf2_per_cu_addr_sized_int_type.
1848 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1849 (dwarf2_per_cu_addr_type): New function.
1850 (set_die_type): Update calls to attr_to_dynamic_prop.
1852 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1854 * dwarf2read.c (read_subrange_index_type): New function.
1855 (read_subrange_type): Move code into new function and call it.
1856 * gdbtypes.c (create_range_type): Add some asserts.
1858 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1860 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1861 update return statements.
1862 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1863 declaration, and update comment to match.
1864 * gdbtypes.c (resolve_dynamic_array): Update call to
1865 dwarf2_evaluate_property to match new return type.
1867 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1869 * valarith.c (value_subscripted_rvalue): Change lowerbound
1870 parameter type from int to LONGEST.
1871 * value.h (value_subscripted_rvalue): Likewise in declaration.
1873 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1875 * cli/cli-utils.c (info_print_command_completer): New function.
1876 * cli/cli-utils.h: Add 'completer.h' include, and forward
1877 declaration for 'struct cmd_list_element'.
1878 (info_print_command_completer): Declare.
1879 * stack.c (_initialize_stack): Add completer for 'info locals' and
1881 * symtab.c (_initialize_symtab): Add completer for 'info
1882 variables' and 'info functions'.
1883 * NEWS: Mention completion for additional info commands.
1885 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1887 * cli/cli-utils.c (extract_info_print_args): Delete.
1888 (extract_arg_maybe_quoted): Delete.
1889 (info_print_options_defs): New variable.
1890 (make_info_print_options_def_group): New function.
1891 (extract_info_print_options): Define new function.
1892 * cli/cli-utils.h (extract_info_print_args): Delete.
1893 (struct info_print_options): New structure.
1894 (extract_info_print_options): Declare new function.
1895 * stack.c (info_locals_command): Update to use new
1896 extract_info_print_options, also add a header comment.
1897 (info_args_command): Likewise.
1898 * symtab.c (info_variables_command): Likewise.
1899 (info_functions_command): Likewise.
1901 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1903 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1904 to extract string arguments.
1905 * common/common-utils.c (extract_string_maybe_quoted): New function.
1906 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1908 2019-07-11 Tom Tromey <tromey@adacore.com>
1910 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1911 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1912 * top.h (gdbinit): Don't declare.
1913 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1915 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1916 * top.c (gdb_init): Don't call init_cli_cmds.
1918 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1920 2019-07-11 Tom Tromey <tromey@adacore.com>
1922 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1923 after it has been moved.
1925 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1927 * valops.c (value_must_coerce_to_target): Change return type to
1929 * value.h (value_must_coerce_to_target): Likewise.
1931 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
1933 * breakpoint.c (is_hardware_watchpoint): Remove
1934 forward-declaration.
1935 (is_masked_watchpoint): Change return type to bool.
1936 (is_tracepoint): Likewise.
1937 (is_breakpoint): Likewise.
1938 (is_hardware_watchpoint): Likewise.
1939 (is_watchpoint): Likewise.
1940 (is_no_memory_software_watchpoint): Likewise.
1941 (is_catchpoint): Likewise.
1942 (breakpoint_1): Make FILTER parameter's return type bool.
1943 is_masked_watchpoint): Change return type to bool.
1944 (save_breakpoints): Make FILTER parameter's return type bool.
1945 * breakpoint.h (is_breakpoint): Change return type to bool.
1946 (is_watchpoint): Likewise.
1947 (is_catchpoint): Likewise.
1948 (is_tracepoint): Likewise.
1950 2019-07-10 Tom Tromey <tom@tromey.com>
1952 * defs.h: Don't include gdbarch.h.
1953 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1954 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1955 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1956 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1957 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1958 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1959 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1960 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1961 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1962 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1963 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1964 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1965 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1966 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1967 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1968 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1969 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1970 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1971 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1972 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1973 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1974 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1975 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1976 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1977 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1978 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1979 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1981 2019-07-10 Tom Tromey <tromey@adacore.com>
1983 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1984 * breakpoint.c (init_ada_exception_breakpoint): Register as
1986 (print_one_breakpoint_location, print_one_breakpoint): Use
1987 is_ada_exception_catchpoint.
1988 * ada-lang.c (class ada_catchpoint_location): Pass
1989 bp_loc_software_breakpoint to bp_location constructor.
1990 (is_ada_exception_catchpoint): New function.
1992 2019-07-10 Tom Tromey <tromey@adacore.com>
1994 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1996 (struct arm_exidx_entry): New method operator<.
1997 (struct arm_exidx_data) <section_maps>: Change type.
1998 (arm_exidx_data_free): Remove.
1999 (arm_exidx_data_key): Change type. Move lower.
2000 (arm_exidx_new_objfile): Update.
2001 (arm_compare_exidx_entries): Remove.
2002 (arm_find_exidx_entry, _initialize_arm_tdep)
2004 2019-07-10 Tom Tromey <tromey@adacore.com>
2006 * solib-spu.c (ocl_program_data_key): Change type.
2007 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2010 2019-07-10 Tom Tromey <tromey@adacore.com>
2012 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2013 (struct solib_aix_inferior_data) <library_list>: Change type.
2014 (solib_aix_inferior_data_handle): Change type.
2015 (get_solib_aix_inferior_data): Update.
2016 (solib_aix_free_library_list): Remove.
2017 (library_list_start_library): Update.
2018 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2020 (solib_aix_get_library_list)
2021 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2022 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2024 2019-07-10 Tom Tromey <tromey@adacore.com>
2026 * solib-dsbt.c (struct dsbt_info): Add initializers.
2027 (solib_dsbt_pspace_data): Change type.
2028 (dsbt_pspace_data_cleanup): Remove.
2029 (get_dsbt_info, _initialize_dsbt_solib): Update.
2031 2019-07-10 Tom Tromey <tromey@adacore.com>
2033 * spu-tdep.c (spu_overlay_data): Change type.
2034 (spu_get_overlay_table, spu_overlay_new_objfile)
2035 (_initialize_spu_tdep): Update.
2037 2019-07-10 Tom Tromey <tromey@adacore.com>
2039 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2041 (dbx_objfile_data_key): Change type and declare later.
2042 (DBX_SYMFILE_INFO): Rewrite.
2043 * dbxread.c (dbx_objfile_data_key): Change type.
2044 (dbx_symfile_init): Update.
2045 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2046 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2047 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2049 2019-07-10 Tom Tromey <tromey@adacore.com>
2051 * jit.c (jit_program_space_key): Change type. Move lower.
2052 (get_jit_program_space_data): Update.
2053 (jit_program_space_data_cleanup): Remove.
2054 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2056 (struct jit_program_space_data): Add initializers.
2058 2019-07-10 Tom Tromey <tromey@adacore.com>
2060 * solib-darwin.c (struct darwin_info): Add initializers.
2061 (solib_darwin_pspace_data): Change type.
2062 (darwin_pspace_data_cleanup): Remove.
2063 (get_darwin_info, _initialize_darwin_solib): Update.
2065 2019-07-10 Tom Tromey <tromey@adacore.com>
2067 * remote-sim.c (struct sim_inferior_data): Add initializers,
2068 constructor, and destructor.
2069 (sim_inferior_data_key): Change type. Move lower.
2070 (check_for_duplicate_sim_descriptor): Update.
2071 (get_sim_inferior_data): Use new. Update.
2072 (~sim_inferior_data_cleanup): Rename from
2073 sim_inferior_data_cleanup. Simplify.
2074 (gdbsim_close_inferior, simulator_command)
2075 (sim_command_completer, _initialize_remote_sim): Update.
2076 (next_pid, INITIAL_PID): Move earlier.
2078 2019-07-10 Tom Tromey <tromey@adacore.com>
2080 * python/python-internal.h (create_thread_object): Return
2082 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2083 * python/py-inferior.c (struct threadlist_entry): Add
2085 <thread_obj>: Now a gdbpy_ref.
2086 (thread_to_thread_object): Update.
2087 (add_thread_object): Use new.
2088 (delete_thread_object): Use delete.
2089 (infpy_threads): Update.
2090 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2093 2019-07-10 Tom Tromey <tromey@adacore.com>
2095 * valops.c (value_cast): Specialize error message for Ada.
2097 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2099 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2101 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2103 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2104 bpstat_should_step): Return bool, adjust comments.
2105 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2106 bpstat_should_step): Likewise.
2108 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2110 * features/Makefile: Use feature target descriptions for Arm.
2111 * features/arm/arm-core.c: Generate new file.
2112 * features/arm/arm-fpa.c: Likewise.
2113 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2114 * features/arm/arm-m-profile.c: Likewise.
2115 * features/arm/arm-vfpv2.c: Likewise.
2116 * features/arm/arm-vfpv3.c: Likewise.
2117 * features/arm/xscale-iwmmxt.c: Likewise.
2118 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2120 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2122 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2125 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2127 * features/aarch64-pauth.c: Regenerate.
2129 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2131 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2133 (bpstat_what): Use false instead of 0.
2135 2019-07-09 Pedro Alves <palves@redhat.com>
2137 * break-catch-throw.c (is_exception_catchpoint): New.
2138 * breakpoint.c (print_one_breakpoint_location): New parameter
2139 'raw_loc'. Handle it. Use
2140 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2141 looking at the breakpoint's type.
2142 (print_one_breakpoint): If handling "maint info breakpoints", also
2143 print locations of exception catchpoints.
2144 * breakpoint.h (is_exception_catchpoint): Declare.
2146 2019-07-09 Pedro Alves <palves@redhat.com>
2148 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2150 (allocate_location_exception_catchpoint): New.
2151 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2152 (initialize_throw_catchpoint_ops): Install
2153 allocate_location_exception_catchpoint as allocate_location
2155 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2156 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2158 (breakpoint_address_is_meaningful): Delete.
2159 (bl_address_is_meaningful): New.
2160 (breakpoint_locations_match): Adjust comment.
2161 (bp_location_from_bp_type): New, factored out of...
2162 (bp_location::bp_location(breakpoint *)): ... this.
2163 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2165 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2166 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2167 breakpoint_address_is_meaningful.
2168 (bp_locations_compare): Adjust comment.
2169 (update_global_location_list): Use bl_address_is_meaningful
2170 instead of breakpoint_address_is_meaningful.
2171 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2173 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2174 * python/py-breakpoint.c (bppy_get_location): No longer check
2175 whether location is null.
2177 2019-07-09 Pedro Alves <palves@redhat.com>
2180 * breakpoint.c (print_one_breakpoint_location): Remove
2181 single-location assert.
2183 2019-07-09 Tom Tromey <tom@tromey.com>
2185 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2186 * configure: Rebuild.
2187 * configure.ac: Change common to gdbsupport.
2188 * gdbsupport: Rename from common.
2189 * acinclude.m4: Change common to gdbsupport.
2190 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2191 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2193 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2194 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2195 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2196 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2197 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2198 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2199 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2200 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2201 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2202 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2203 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2204 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2205 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2206 coff-pe-read.c, command.h, compile/compile-c-support.c,
2207 compile/compile-c.h, compile/compile-cplus-symbols.c,
2208 compile/compile-cplus-types.c, compile/compile-cplus.h,
2209 compile/compile-loc2c.c, compile/compile.c, completer.c,
2210 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2211 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2212 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2213 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2214 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2215 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2216 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2217 features/aarch64-core.c, features/aarch64-fpu.c,
2218 features/aarch64-pauth.c, features/aarch64-sve.c,
2219 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2220 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2221 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2222 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2223 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2224 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2225 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2226 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2227 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2228 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2229 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2230 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2231 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2232 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2233 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2234 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2235 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2236 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2237 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2238 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2239 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2240 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2241 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2242 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2243 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2244 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2245 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2246 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2247 minsyms.c, mips-linux-tdep.c, namespace.h,
2248 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2249 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2250 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2251 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2252 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2253 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2254 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2255 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2256 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2257 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2258 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2259 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2260 procfs.c, producer.c, progspace.h, psymtab.h,
2261 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2262 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2263 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2264 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2265 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2266 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2267 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2268 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2269 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2270 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2271 target-memory.c, target.c, target.h, target/waitstatus.c,
2272 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2273 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2274 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2275 unittests/array-view-selftests.c,
2276 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2277 unittests/common-utils-selftests.c,
2278 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2279 unittests/format_pieces-selftests.c,
2280 unittests/function-view-selftests.c,
2281 unittests/lookup_name_info-selftests.c,
2282 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2283 unittests/mkdir-recursive-selftests.c,
2284 unittests/observable-selftests.c,
2285 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2286 unittests/parse-connection-spec-selftests.c,
2287 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2288 unittests/scoped_fd-selftests.c,
2289 unittests/scoped_mmap-selftests.c,
2290 unittests/scoped_restore-selftests.c,
2291 unittests/string_view-selftests.c, unittests/style-selftests.c,
2292 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2293 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2294 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2295 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2296 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2297 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2299 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2301 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2303 (decode_digits_ordinary): Set explicit_line field in sal.
2304 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2305 symtab_and_line that was set on an explicit line number in
2306 assembler code. Do always update the recorded symtab and line if
2307 we do skip the prologue.
2309 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2311 * breakpoint.c (set_breakpoint_location_function): Remove
2312 explicit_loc parameter.
2313 (momentary_breakpoint_from_master): Update call to
2314 set_breakpoint_location_function.
2315 (add_location_to_breakpoint): Likewise.
2317 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2319 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2320 required features based on default bfd type when no specific bfd
2323 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2325 * NEWS: Mention that GDB printf and eval commands can now print
2326 C-style and Ada-style convenience var strings without
2327 calling the inferior.
2328 * printcmd.c (printf_c_string): Locally print GDB internal var
2329 instead of transiting via the inferior.
2330 (printf_wide_c_string): Likewise.
2332 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2334 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2336 2019-07-04 Tom Tromey <tom@tromey.com>
2339 * tui/tui-winsource.c (tui_clear_source_content): Update.
2340 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2341 (tui_update_breakpoint_info): Update.
2342 (tui_set_exec_info_content): Update.
2343 * tui/tui-source.c (tui_set_source_content_nil): Update.
2344 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2346 * tui/tui-data.h (enum tui_bp_flag): New.
2347 (tui_bp_flags): New enum flags type.
2348 (struct tui_source_element) <break_mode>: Change type. Rename
2350 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2351 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2353 * tui/tui-winsource.h: Fix comment.
2355 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2357 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2358 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2359 (store_fpregs_to_thread)
2360 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2361 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2362 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2363 (IWMMXT_REGS_SIZE): Add define.
2364 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2365 (fetch_vfp_regs, store_vfp_regs)
2366 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2367 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2369 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2371 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2373 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2374 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2375 (ARM_INT_REGISTER_SIZE): ...to this.
2376 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2377 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2378 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2379 (arm_linux_collect_gregset, supply_nwfpe_register)
2380 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2382 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2383 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2384 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2385 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2386 (arm_return_in_memory, arm_store_return_value)
2387 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2388 (arm_record_ld_st_multiple): Likewise.
2389 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2390 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2392 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2394 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2395 AARCH64_DISPLACED_MODIFIED_INSNS.
2396 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2397 (aarch64_displaced_step_copy_insn): Likewise.
2398 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2399 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2400 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2401 ARM_DISPLACED_MODIFIED_INSNS.
2402 * arm-tdep.c (arm_gdbarch_init): Likewise.
2403 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2404 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2405 (struct arm_displaced_step_closure): Use
2406 ARM_DISPLACED_MODIFIED_INSNS.
2408 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2410 * features/Makefile: Remove unused xml files.
2411 * features/aarch64.xml: Remove.
2412 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2413 * features/i386/amd64-avx-avx512.xml: Remove.
2414 * features/i386/amd64-avx-linux.xml: Remove.
2415 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2416 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2417 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2418 * features/i386/amd64-avx-mpx.xml: Remove.
2419 * features/i386/amd64-avx.xml: Remove.
2420 * features/i386/amd64-linux.xml: Remove.
2421 * features/i386/amd64-mpx-linux.xml: Remove.
2422 * features/i386/amd64-mpx.xml: Remove.
2423 * features/i386/amd64.xml: Remove.
2424 * features/i386/i386-avx-avx512-linux.xml: Remove.
2425 * features/i386/i386-avx-avx512.xml: Remove.
2426 * features/i386/i386-avx-linux.xml: Remove.
2427 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2428 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2429 * features/i386/i386-avx-mpx-linux.xml: Remove.
2430 * features/i386/i386-avx-mpx.xml: Remove.
2431 * features/i386/i386-avx.xml: Remove.
2432 * features/i386/i386-linux.xml: Remove.
2433 * features/i386/i386-mmx-linux.xml: Remove.
2434 * features/i386/i386-mmx.xml: Remove.
2435 * features/i386/i386-mpx-linux.xml: Remove.
2436 * features/i386/i386-mpx.xml: Remove.
2437 * features/i386/i386.xml: Remove.
2438 * features/i386/x32-avx-avx512-linux.xml: Remove.
2439 * features/i386/x32-avx-linux.xml: Remove.
2440 * features/i386/x32-linux.xml: Remove.
2442 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2444 * regformats/aarch64.dat: Remove.
2445 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2446 * regformats/i386/amd64-avx-linux.dat: Remove.
2447 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2448 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2449 * regformats/i386/amd64-linux.dat: Remove.
2450 * regformats/i386/amd64-mpx-linux.dat: Remove.
2451 * regformats/i386/amd64.dat: Remove.
2452 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2453 * regformats/i386/i386-avx-linux.dat: Remove.
2454 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2455 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2456 * regformats/i386/i386-linux.dat: Remove.
2457 * regformats/i386/i386-mmx-linux.dat: Remove.
2458 * regformats/i386/i386-mpx-linux.dat: Remove.
2459 * regformats/i386/i386.dat: Remove.
2460 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2461 * regformats/i386/x32-avx-linux.dat: Remove.
2462 * regformats/i386/x32-linux.dat: Remove.
2464 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2466 * aarch64-tdep.c: Remove xml self tests.
2467 * amd64-linux-tdep.c: Likewise.
2468 * amd64-tdep.c: Likewise.
2469 * i386-linux-tdep.c: Likewise.
2470 * i386-tdep.c: Likewise.
2472 2019-07-03 Pedro Alves <palves@redhat.com>
2475 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2476 (pipe_cmd_option_defs): New.
2477 (make_pipe_cmd_options_def_group): New.
2478 (pipe_command): Use gdb::option::process_options.
2479 (pipe_command_completer): New function.
2480 (_initialize_cli_cmds): Install completer for "pipe" command.
2482 2019-07-03 Pedro Alves <palves@redhat.com>
2484 * cli/cli-option.c (union option_value) <string>: New field.
2485 (struct option_def_and_value): Add ctor, move ctor, dtor and
2486 use DISABLE_COPY_AND_ASSIGN.
2487 (option_def_and_value::clear_value): New.
2488 (parse_option, save_option_value_in_ctx, get_val_type_str)
2489 (add_setshow_cmds_for_options): Handle var_string.
2490 * cli-option.h (union option_def::var_address) <string>: New
2492 (struct string_option_def): New.
2493 * maint-test-options.c (struct test_options_opts): Add default
2494 ctor and use DISABLE_COPY_AND_ASSIGN.
2495 <string_opt>: New field.
2496 (test_options_opts::~test_options_opts): New.
2497 (test_options_opts::dump): Also dump "-string".
2498 (test_options_option_defs): Install "string.
2500 2019-07-03 Pedro Alves <palves@redhat.com>
2502 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2503 option_value with a null enumeration.
2504 (complete_options): Save the option values in the context.
2505 (save_option_value_in_ctx): New, factored out from ...
2506 (process_options): ... here.
2507 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2509 * maint-test-options.c (test_options_opts::dump): New, factored
2511 (maintenance_test_options_command_mode): ... here.
2512 (maintenance_test_options_command_completion_result): Delete.
2513 (maintenance_test_options_command_completion_text): Update
2515 (maintenance_show_test_options_completion_result): Change
2516 prototype. Just print
2517 maintenance_test_options_command_completion_text.
2518 (save_completion_result): New.
2519 (maintenance_test_options_completer_mode): Pass options context to
2520 complete_options, and then save a dump.
2521 (_initialize_maint_test_options): Use add_cmd to install "maint
2522 show test-options-completion-result".
2524 2019-07-03 Pedro Alves <palves@redhat.com>
2526 * NEWS (New commands): Mention "with" and "maint with".
2527 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2528 (with_command, with_command_completer): New.
2529 (pipe_command): Adjust to new repeat_previous
2531 (_initialize_cli_cmds): Install the "with" command and its "w"
2533 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2535 * cli/cli-setshow.c (parse_cli_var_uinteger)
2536 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2537 argument strings for all var_types.
2538 (get_setshow_command_value_string): New, factored out from ...
2539 (do_show_command): ... this.
2540 * cli/cli-setshow.h: Include <string>.
2541 (get_setshow_command_value_string): Declare.
2542 * command.h (repeat_previous): Now returns const char *. Adjust
2544 * maint.c: Include "cli/cli-cmds.h".
2545 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2546 (_initialize_maint_cmds): Register the "maintenance with" command.
2547 * top.c (repeat_previous): Move bits from pipe_command here:
2548 Return the saved command line, if any; error out if there's no
2549 command to relaunch.
2551 2019-07-03 Pedro Alves <palves@redhat.com>
2553 * NEWS (New commands): Mention "maint set/show test-settings"
2554 instead of "maint test-settings".
2555 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2556 (maintenance_test_settings_set_list): Rename to ...
2557 (maintenance_set_test_settings_list): ... this.
2558 (maintenance_test_settings_show_list): Rename to ...
2559 (maintenance_show_test_settings_list): ... this.
2560 (maintenance_test_settings_cmd): Delete.
2561 (maintenance_test_settings_set_cmd): ...
2562 (maintenance_set_test_settings_cmd): ... this.
2563 (maintenance_test_settings_show_cmd): ...
2564 (maintenance_show_test_settings_cmd): ... this.
2565 (maintenance_test_settings_show_value_cmd):
2566 (maintenance_show_test_settings_value_cmd): ... this.
2567 (_initialize_maint_test_settings): No longer install the "maint
2568 test-settings" prefix command. Rename "maint test-settings set"
2569 to "maint set test-settings", and "maint test-settings show" to
2570 "maint show test-settings". Adjust all subcommands.
2572 2019-07-03 Pedro Alves <palves@redhat.com>
2574 * maint-test-settings.c: Fix file's intro comment. Replace all
2575 references to "test-options" with references to "test-settings",
2578 2019-07-03 Pedro Alves <palves@redhat.com>
2580 * maint-test-settings.c (maintenance_test_settings_xxx)
2581 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2583 (maintenance_test_settings_enums): Use them.
2584 (maintenance_test_settings_enum): Default to
2585 maintenance_test_settings_xxx.
2586 (_initialize_maint_test_settings): Initialize
2587 MAINTENANCE_TEST_SETTINGS_FILENAME.
2589 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2591 * breakpoint.h (remove_breakpoints_inf): Change return type to
2592 void, move function documentation here.
2593 * breakpoint.c (remove_breakpoints_inf): Change return type to
2594 void, move function documentation to header.
2596 2019-07-02 Pedro Alves <palves@redhat.com>
2598 * NEWS (Completion improvements): Mention "info threads".
2599 * thread.c (struct info_threads_opts, info_threads_option_defs)
2600 (make_info_threads_options_def_group): New.
2601 (info_threads_command): Use gdb::option::process_options.
2602 (info_threads_command_completer): New.
2603 (_initialize_thread): Use gdb::option::build_help to build the
2604 help text for "info threads".
2606 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2608 * defs.h (generic_load): Move from here...
2609 * symfile.h (generic_load): ... to here. Rename name parameter
2611 * symfile.c (generic_load): Add comment.
2613 2019-07-01 Tom Tromey <tromey@adacore.com>
2616 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2617 declaration of without_params. Fix formatting.
2619 2019-07-01 Tom Tromey <tromey@adacore.com>
2621 * ada-exp.y (find_primitive_type): Update.
2622 * ada-lang.h (ada_lookup_symbol): Update.
2623 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2625 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2627 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2629 PR breakpoints/24541
2630 * gdbarch.c: Regenerate.
2631 * gdbarch.h: Regenerate.
2632 * gdbarch.sh: Add 'stap_adjust_register'.
2633 * i386-tdep.c: Include '<unordered_set>'.
2634 (i386_stap_adjust_register): New function.
2635 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2636 * stap-probe.c (stap_parse_register_operand): Call
2637 'gdbarch_stap_adjust_register'.
2639 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2642 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2643 * python/python.c (do_start_initialization): Use 'xmalloc'
2644 instead of 'PyMem_Malloc'.
2646 2019-06-28 Tom Tromey <tromey@adacore.com>
2648 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2651 2019-06-27 Tom Tromey <tromey@adacore.com>
2653 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2655 (arm_find_mapping_symbol, arm_record_special_symbol)
2656 (_initialize_arm_tdep): Update.
2657 (arm_objfile_data_free): Remove.
2659 2019-06-27 Tom Tromey <tromey@adacore.com>
2661 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2662 to cp_print_static_field.
2664 2019-06-26 Tom Tromey <tromey@adacore.com>
2666 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2667 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2670 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2672 * features/aarch64-core.c (create_feature_aarch64_core):
2674 * features/aarch64-core.xml: Add cpsr flags.
2676 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2678 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2679 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2681 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2683 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2685 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2687 (arm_record_special_symbol): Don't insert new symbol in sorted
2688 position, push it at the end.
2690 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2692 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2693 (arm_mapping_symbol_s): Remove.
2694 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2695 (arm_mapping_symbol_vec): New typedef.
2696 (struct arm_per_objfile): Add constructor.
2697 <section_maps>: Change type to
2698 std::unique_ptr<arm_mapping_symbol_vec[]>.
2699 (arm_compare_mapping_symbols): Remove.
2700 (arm_find_mapping_symbol): Adjust to section_maps type change.
2701 (arm_objfile_data_free): Call delete on arm_per_objfile.
2702 (arm_record_special_symbol): Adjust to section_maps type change.
2703 Allocate arm_per_objfile with new.
2705 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2707 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2708 with the command prefix.
2710 2019-06-25 Tom Tromey <tom@tromey.com>
2712 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2713 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2715 2019-06-25 Tom Tromey <tom@tromey.com>
2717 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2719 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2722 2019-06-25 Tom Tromey <tom@tromey.com>
2724 * tui/tui-winsource.c
2725 (tui_source_window_base::set_is_exec_point_at): Add check against
2728 2019-06-25 Tom Tromey <tom@tromey.com>
2730 * tui/tui-source.c (tui_set_source_content): Don't check before
2732 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2734 2019-06-25 Tom Tromey <tom@tromey.com>
2736 * tui/tui-winsource.h (tui_update_source_window_as_is)
2737 (tui_alloc_source_buffer, tui_line_is_displayed)
2738 (tui_addr_is_displayed): Change type of win_info.
2739 * tui/tui-winsource.c (tui_update_source_window_as_is)
2740 (tui_clear_source_content, tui_show_source_line)
2741 (tui_show_source_content, tui_source_window_base::refill)
2742 (tui_source_window_base::set_is_exec_point_at)
2743 (tui_source_window_base::set_is_exec_point_at)
2744 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2745 (tui_alloc_source_buffer, tui_line_is_displayed)
2746 (tui_addr_is_displayed): Change type of win_info. Update.
2747 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2748 (tui_source_window_base::do_make_visible_with_new_height):
2750 * tui/tui-source.c (tui_set_source_content)
2751 (tui_set_source_content_nil)
2752 (tui_source_window::do_scroll_vertical): Update.
2753 * tui/tui-layout.c (show_layout): Update.
2754 * tui/tui-disasm.c (tui_set_disassem_content)
2755 (tui_disasm_window::do_scroll_vertical): Update.
2756 * tui/tui-data.h (tui_win_content): Remove.
2757 (struct tui_gen_win_info) <content, content_size>: Remove.
2758 (struct tui_source_element): Add initializers and destructor.
2759 (union tui_which_element, struct tui_win_element): Remove.
2760 (struct tui_source_window_base) <content>: New field.
2761 (struct tui_data_window): Remove destructor.
2762 (tui_alloc_content, tui_free_win_content)
2763 (tui_free_all_source_wins_content): Don't declare.
2764 * tui/tui-data.c (tui_initialize_static_data): Update.
2765 (init_content_element, tui_alloc_content): Remove.
2766 (~tui_gen_win_info): Update.
2767 (~tui_data_window, tui_free_all_source_wins_content)
2768 (tui_free_win_content, free_content, free_content_elements):
2771 2019-06-25 Tom Tromey <tom@tromey.com>
2773 * tui/tui-winsource.h (tui_clear_source_content)
2774 (tui_erase_source_content, tui_show_source_content): Change type
2776 * tui/tui-winsource.c (tui_clear_source_content)
2777 (tui_erase_source_content, tui_show_source_content): Change type
2779 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2780 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2782 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2784 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2786 2019-06-25 Tom Tromey <tom@tromey.com>
2788 * tui/tui-winsource.c (tui_clear_source_content)
2789 (tui_source_window_base::set_is_exec_point_at): Update.
2790 * tui/tui-source.c (tui_set_source_content_nil): Update.
2791 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2793 * tui/tui-data.c (init_content_element): Update.
2795 2019-06-25 Tom Tromey <tom@tromey.com>
2797 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2798 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2799 * tui/tui-layout.c (init_and_make_win): Update.
2800 * tui/tui.h (enum tui_win_type): Update.
2801 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2802 tui_win_is_auxillary.
2803 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2804 tui_win_is_auxillary.
2806 2019-06-25 Tom Tromey <tom@tromey.com>
2808 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2809 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2810 (tui_delete_data_content_windows, tui_display_all_data)
2811 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2813 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2814 * tui/tui-regs.c (tui_last_regs_line_no)
2815 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2816 (tui_show_registers): Update.
2817 (tui_show_register_group): Return void. Update.
2818 (tui_display_registers_from, tui_display_reg_element_at_line)
2819 (tui_display_registers_from_line, tui_check_register_values):
2821 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2823 (struct tui_data_window) <regs_content>: Now a std::vector.
2824 <regs_content_count>: Remove.
2825 (tui_add_content_elements, tui_free_data_content): Don't declare.
2826 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2827 (init_content_element): Remove DATA_WIN case. Add assert.
2828 (tui_add_content_elements): Remove.
2829 (tui_data_window): Update.
2830 (tui_free_data_content): Remove.
2831 (free_content_elements): Remove DATA_WIN case.
2833 2019-06-25 Tom Tromey <tom@tromey.com>
2835 * tui/tui-data.c (tui_data_item_window): Update.
2836 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2837 * tui/tui-windata.c (tui_display_all_data)
2838 (tui_display_data_from_line): Update.
2839 (tui_check_data_values): Remove.
2840 * tui/tui-regs.c (tui_show_register_group)
2841 (tui_display_reg_element_at_line): Update.
2842 * tui/tui-hooks.c (tui_register_changed)
2843 (tui_refresh_frame_and_register_information): Call
2844 tui_check_register_values.
2845 * tui/tui-data.h (struct tui_data_window) <data_content,
2846 data_content_count, data_type>: Remove.
2847 (enum tui_data_type): Remove.
2849 * tui/tui-data.c (tui_data_window::clear_detail)
2850 (~tui_data_window): Update.
2852 2019-06-25 Tom Tromey <tom@tromey.com>
2854 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2856 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2857 Rename from tui_first_data_item_displayed. Update.
2858 (tui_data_window::refresh_all)
2859 (tui_data_window::do_scroll_vertical): Update.
2860 * tui/tui-data.h (struct tui_data_window)
2861 <first_data_item_displayed>: Declare new method.
2863 2019-06-25 Tom Tromey <tom@tromey.com>
2865 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2866 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2868 (tui_initialize_static_data): ...here.
2870 2019-06-25 Tom Tromey <tom@tromey.com>
2872 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2873 (tui_display_registers_from, tui_check_register_values): Update.
2874 (tui_display_register): Remove win_info parameter; update.
2875 (tui_get_register): Change type of parameters.
2876 * tui/tui-data.h (struct tui_data_element): Remove.
2877 (union tui_which_element) <data>: Remove.
2878 <data_window>: Change type.
2879 (struct tui_data_item_window): New.
2880 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2882 (~tui_data_item_window): New destructor.
2883 (free_content_elements): Remove DATA_ITEM_WIN case.
2885 2019-06-25 Tom Tromey <tom@tromey.com>
2887 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2890 2019-06-25 Tom Tromey <tom@tromey.com>
2892 * tui/tui-data.h (struct tui_command_element): Remove.
2893 (union tui_which_element) <command>: Remove.
2894 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2896 (free_content_elements): Remove CMD_WIN case.
2898 2019-06-25 Tom Tromey <tom@tromey.com>
2900 * tui/tui-layout.c (tui_set_layout): Update.
2901 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2902 * tui/tui-data.c (layout_def): Update.
2904 2019-06-25 Tom Tromey <tom@tromey.com>
2906 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2907 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2908 (tui_source_window_base::set_new_height): Update.
2909 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2911 (tui_set_locator_fullname, tui_set_locator_info)
2912 (tui_show_frame_info): Update.
2913 * tui/tui-source.c (tui_set_source_content)
2914 (tui_source_is_displayed): Update.
2915 * tui/tui-layout.c (show_source_disasm_command, show_data)
2916 (show_source_or_disasm_and_command): Update.
2917 * tui/tui-disasm.c (tui_set_disassem_content)
2918 (tui_get_begin_asm_address): Update.
2919 * tui/tui-data.h (struct tui_locator_element): Remove.
2920 (union tui_which_element) <locator>: Remove.
2921 (struct tui_locator_window): New.
2922 (tui_locator_win_info_ptr): Change return type.
2923 * tui/tui-data.c (_locator): Change type.
2924 (tui_locator_win_info_ptr): Change return type.
2925 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2926 (tui_alloc_content): Add assert.
2928 2019-06-25 Tom Tromey <tom@tromey.com>
2930 * tui/tui-winsource.c
2931 (tui_exec_info_window::maybe_allocate_content): New method.
2932 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2933 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2934 (make_source_or_disasm_window): Add cast.
2935 * tui/tui-data.h (union tui_which_element) <simple_string>:
2937 (struct tui_source_info): New.
2938 (struct tui_source_window_base) <execution_info>: Change type.
2939 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2940 case, and add assert.
2941 (tui_alloc_content): Add assert.
2943 2019-06-25 Tom Tromey <tom@tromey.com>
2945 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2946 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2947 * tui/tui-data.c (tui_alloc_win_info): Remove.
2949 2019-06-25 Tom Tromey <tom@tromey.com>
2951 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2952 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2955 2019-06-25 Tom Tromey <tom@tromey.com>
2957 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2958 make_visible_with_new_height method.
2959 (tui_win_info::make_visible_with_new_height): New method.
2960 (tui_source_window_base::do_make_visible_with_new_height)
2961 (tui_data_window::do_make_visible_with_new_height)
2962 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2963 (make_visible_with_new_height): Remove.
2964 (tui_resize_all, tui_adjust_win_heights): Use
2965 make_visible_with_new_height method.
2966 * tui/tui-data.h (struct tui_win_info)
2967 <do_make_visible_with_new_height, make_visible_with_new_height>:
2969 (struct tui_source_window_base, struct tui_data_window)
2970 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2973 2019-06-25 Tom Tromey <tom@tromey.com>
2975 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2977 (update_tab_width): Call update_tab_width method.
2978 * tui/tui-data.h (struct tui_win_info)
2979 (struct tui_source_window_base) <update_tab_width>: New methods.
2981 2019-06-25 Tom Tromey <tom@tromey.com>
2983 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2985 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2987 (tui_gen_win_info::make_visible): Update.
2988 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2990 * tui/tui-data.h (enum tui_box): New enum.
2991 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2993 2019-06-25 Tom Tromey <tom@tromey.com>
2995 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2996 init_and_make_win for EXEC_INFO_WIN.
2997 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2999 (struct tui_win_info) <~tui_win_info>: Inline.
3000 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3002 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3003 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3005 (tui_initialize_static_data): Update.
3006 (~tui_gen_win_info): Handle more cleanup here.
3007 (~tui_source_window_base): Delete "execution_info".
3008 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3010 2019-06-25 Tom Tromey <tom@tromey.com>
3012 * tui/tui-layout.c (make_command_window): Don't set
3014 (show_source_disasm_command): Call the reset method.
3015 (show_data): Don't set can_highlight. Call the reset method.
3016 (tui_gen_win_info::reset): Rename from init_gen_win_info
3017 (init_and_make_win): Simplify. Return tui_gen_win_info.
3018 (show_source_or_disasm_and_command): Call the reset method.
3019 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3020 (struct tui_cmd_window): Set can_highlight.
3022 2019-06-25 Tom Tromey <tom@tromey.com>
3024 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3026 (tui_make_visible, tui_make_invisible): Rewrite.
3027 (tui_win_info::make_visible): Remove.
3028 (tui_source_window_base::make_visible): Update.
3029 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3030 method. Moved from...
3031 (struct tui_win_info) <make_visible>: ...here.
3033 2019-06-25 Tom Tromey <tom@tromey.com>
3035 * tui/tui-winsource.c
3036 (tui_source_window_base::do_scroll_horizontal): Remove direction
3038 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3039 direction parameter.
3040 * tui/tui-win.c (tui_win_info::forward_scroll)
3041 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3042 (tui_win_info::right_scroll): Update.
3043 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3044 direction parameter.
3045 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3046 direction parameter.
3047 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3048 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3049 Remove direction parameter.
3050 (struct tui_source_window_base, struct tui_source_window)
3051 (struct tui_disasm_window, struct tui_data_window)
3052 (struct tui_cmd_window): Update.
3054 2019-06-25 Tom Tromey <tom@tromey.com>
3056 * tui/tui-winsource.h (tui_set_exec_info_content)
3057 (tui_show_exec_info_content, tui_erase_exec_info_content)
3058 (tui_clear_exec_info_content, tui_update_exec_info): Change
3059 argument to tui_source_window_base.
3060 * tui/tui-winsource.c (tui_set_exec_info_content)
3061 (tui_show_exec_info_content, tui_erase_exec_info_content)
3062 (tui_clear_exec_info_content, tui_update_exec_info): Change
3063 argument to tui_source_window_base.
3065 2019-06-25 Tom Tromey <tom@tromey.com>
3067 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3068 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3070 2019-06-25 Tom Tromey <tom@tromey.com>
3072 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3075 2019-06-25 Tom Tromey <tom@tromey.com>
3077 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3079 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3081 * tui/tui-source.c (tui_set_source_content): Update.
3082 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3084 2019-06-25 Tom Tromey <tom@tromey.com>
3086 * tui/tui-win.c (window_name_completer, tui_set_focus)
3087 (tui_all_windows_info): Use name method.
3088 * tui/tui-data.h (struct tui_gen_win_info)
3089 (struct tui_source_window, struct tui_disasm_window)
3090 (struct tui_data_window, struct tui_cmd_window) <name>: New
3092 (tui_win_name): Don't declare.
3093 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3094 (tui_win_name): Remove.
3096 2019-06-25 Tom Tromey <tom@tromey.com>
3098 * tui/tui-winsource.h (tui_update_source_window)
3099 (tui_update_source_window_as_is): Change parameter type.
3100 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3101 to be a tui_source_window_base.
3102 (tui_update_source_window_as_is): Likewise.
3103 * tui/tui-win.c (make_visible_with_new_height): Update.
3105 2019-06-25 Tom Tromey <tom@tromey.com>
3107 * tui/tui-winsource.c (tui_erase_source_content)
3108 (tui_show_source_content, tui_show_exec_info_content)
3109 (tui_erase_exec_info_content): Use refresh_window method.
3110 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3111 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3112 from tui_refresh_win.
3113 (tui_data_window::refresh_window): New method.
3114 (tui_win_info::refresh, tui_source_window_base::refresh)
3115 (tui_refresh_all): Use refresh_window method.
3116 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3118 * tui/tui-regs.c (tui_display_register): Call refresh_window
3120 * tui/tui-layout.c (show_source_disasm_command)
3121 (show_source_or_disasm_and_command): Call refresh_window method.
3122 * tui/tui-data.h (struct tui_gen_win_info)
3123 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3126 2019-06-25 Tom Tromey <tom@tromey.com>
3128 * tui/tui.c (tui_rl_other_window, tui_enable)
3129 (tui_is_window_visible, tui_get_command_dimension): Update.
3130 * tui/tui-winsource.c (tui_update_source_window_as_is)
3131 (tui_clear_source_content, tui_erase_source_content)
3132 (tui_show_source_line, tui_source_window_base::refill)
3133 (tui_source_window_base::do_scroll_horizontal)
3134 (tui_source_window_base::set_is_exec_point_at)
3135 (tui_update_breakpoint_info, tui_set_exec_info_content)
3136 (tui_alloc_source_buffer, tui_line_is_displayed)
3137 (tui_addr_is_displayed): Update.
3138 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3139 (tui_check_and_display_highlight_if_needed)
3140 (tui_win_info::make_visible, tui_win_info::refresh)
3141 (tui_refresh_all): Update.
3142 * tui/tui-windata.c (tui_first_data_item_displayed)
3143 (tui_delete_data_content_windows, tui_erase_data_content)
3144 (tui_display_all_data, tui_data_window::refresh_all)
3145 (tui_check_data_values): Update.
3146 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3147 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3148 (tui_win_info::backward_scroll, tui_refresh_all_win)
3149 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3150 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3151 (tui_source_window_base::set_new_height)
3152 (tui_data_window::set_new_height)
3153 (make_invisible_and_set_new_height)
3154 (make_visible_with_new_height, new_height_ok)
3155 (parse_scrolling_args): Update.
3156 * tui/tui-stack.c (tui_show_frame_info): Update.
3157 * tui/tui-source.c (tui_set_source_content)
3158 (tui_set_source_content_nil, tui_source_is_displayed)
3159 (tui_source_window::do_scroll_vertical): Update.
3160 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3161 (tui_display_registers_from, tui_display_reg_element_at_line)
3162 (tui_check_register_values, tui_reg_command): Update.
3163 * tui/tui-layout.c (tui_default_win_height)
3164 (show_source_disasm_command, show_data, init_and_make_win)
3165 (show_source_or_disasm_and_command): Update.
3166 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3167 (tui_redisplay_readline, tui_mld_flush)
3168 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3170 * tui/tui-disasm.c (tui_set_disassem_content)
3171 (tui_disasm_window::do_scroll_vertical): Update.
3172 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3174 (struct tui_win_info): Derive from tui_gen_win_info.
3175 <~tui_win_info>: Mark as override.
3176 <generic>: Remove member.
3177 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3178 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3179 (~tui_data_window, ~tui_win_info)
3180 (tui_free_all_source_wins_content): Update.
3181 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3183 2019-06-25 Tom Tromey <tom@tromey.com>
3185 * tui/tui-layout.c (init_and_make_win): Use new.
3186 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3187 destructor, initializers.
3188 (tui_alloc_generic_win_info): Don't declare.
3189 * tui/tui-data.c (_locator): Add argument to constructor.
3190 (source_win, disasm_win): New globals.
3191 (exec_info): Remove.
3192 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3194 (tui_alloc_generic_win_info): Remove.
3195 (init_content_element): Use new.
3196 (tui_win_info::tui_win_info): Update.
3197 (free_content_elements) <case DATA_WIN>: Use delete.
3199 2019-06-25 Tom Tromey <tom@tromey.com>
3201 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3202 * tui/tui-windata.c (tui_first_data_item_displayed)
3203 (tui_delete_data_content_windows): Update.
3204 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3205 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3206 (tui_display_registers_from, tui_check_register_values): Update.
3207 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3209 * tui/tui-data.c (init_content_element): Update. Allocate the new
3211 (tui_free_data_content): Update.
3212 (free_content_elements) <case DATA_WIN>: Free the window.
3214 2019-06-25 Tom Tromey <tom@tromey.com>
3216 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3218 * tui/tui-layout.c (make_command_window)
3219 (show_source_disasm_command, show_data, init_and_make_win)
3220 (show_source_or_disasm_and_command): Update.
3221 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3223 <can_highight, is_highlighted>: Now bool.
3224 (tui_set_win_highlight): Don't declare.
3225 * tui/tui-data.c (tui_set_win_highlight): Remove.
3227 2019-06-25 Tom Tromey <tom@tromey.com>
3229 * tui/tui-wingeneral.c (make_visible): Remove check of window
3232 2019-06-25 Tom Tromey <tom@tromey.com>
3234 * tui/tui-win.c (tui_win_info::max_height)
3235 (tui_cmd_window::max_height): New methods.
3236 (new_height_ok): Call max_height.
3237 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3238 <max_height>: New method.
3240 2019-06-25 Tom Tromey <tom@tromey.com>
3242 * tui/tui-win.c (tui_source_window_base::set_new_height)
3243 (tui_data_window::set_new_height): New methods.
3244 (make_invisible_and_set_new_height): Call set_new_height method.
3245 * tui/tui-data.h (struct tui_win_info)
3246 (struct tui_source_window_base, struct tui_data_window)
3247 <set_new_height>: New method.
3249 2019-06-25 Tom Tromey <tom@tromey.com>
3251 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3252 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3253 tui_refresh_data_win.
3254 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3256 (tui_refresh_all_win): Call the refresh_all method.
3257 (tui_set_focus): Likewise.
3258 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3259 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3262 2019-06-25 Tom Tromey <tom@tromey.com>
3264 * tui/tui-winsource.h (tui_refill_source_window)
3265 (tui_set_is_exec_point_at): Don't declare.
3266 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3267 (tui_source_window_base::refill): Rename from
3268 tui_refill_source_window.
3269 (tui_source_window_base::do_scroll_horizontal): Update.
3270 (tui_source_window_base::set_is_exec_point_at): Rename from
3271 tui_set_is_exec_point_at.
3272 (tui_update_all_breakpoint_info): Update.
3273 * tui/tui-stack.c (tui_show_frame_info): Update.
3274 * tui/tui-layout.c (show_data): Add cast.
3275 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3276 * tui/tui-data.h (struct tui_source_window_base) <refill,
3277 set_is_exec_point_at>: New methods.
3278 (tui_source_windows, tui_add_to_source_windows): Update types.
3279 (tui_add_to_source_windows): Remove redundant declaration.
3280 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3281 (tui_source_windows): Change return type.
3282 (tui_clear_source_windows_detail): Update.
3283 (tui_add_to_source_windows): Change type of parameter.
3284 (tui_free_all_source_wins_content): Update.
3286 2019-06-25 Tom Tromey <tom@tromey.com>
3288 * tui/tui-wingeneral.c (tui_win_info::refresh)
3289 (tui_source_window_base::refresh): New methods.
3290 (tui_refresh_all): Call the refresh method.
3291 * tui/tui-data.h (struct tui_win_info)
3292 (struct tui_source_window_base) <refresh>: New method.
3294 2019-06-25 Tom Tromey <tom@tromey.com>
3296 * tui/tui.h (tui_is_window_visible): Return bool.
3297 * tui/tui.c (tui_is_window_visible): Return bool.
3298 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3299 (tui_make_visible, tui_make_invisible)
3300 (tui_win_info::make_visible)
3301 (tui_source_window_base::make_visible, make_all_visible)
3302 (tui_make_all_visible, tui_make_all_invisible): Update.
3303 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3304 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3306 (struct tui_win_info, struct tui_source_window_base)
3307 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3308 * tui/tui-data.c (tui_init_generic_part): Update.
3310 2019-06-25 Tom Tromey <tom@tromey.com>
3312 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3313 (tui_source_window_base::make_visible): New methods.
3314 (make_all_visible): Make method call.
3315 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3316 (struct tui_source_window_base, struct tui_cmd_window): Override
3318 (tui_win_is_source_type): Don't declare.
3319 * tui/tui-data.c (tui_win_is_source_type): Remove.
3321 2019-06-25 Tom Tromey <tom@tromey.com>
3323 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3326 2019-06-25 Tom Tromey <tom@tromey.com>
3328 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3329 Inline constructor. Add initializers for members.
3330 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3331 constructors; now inline in class.
3333 2019-06-25 Tom Tromey <tom@tromey.com>
3335 * tui/tui-regs.c (tui_show_registers): Update.
3336 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3338 * tui/tui-data.c (tui_data_window::clear_detail)
3339 (tui_data_window): Update.
3341 2019-06-25 Tom Tromey <tom@tromey.com>
3343 * tui/tui-windata.c (tui_display_all_data)
3344 (tui_display_data_from_line, tui_display_data_from)
3345 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3347 * tui/tui-regs.c (tui_last_regs_line_no)
3348 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3349 (tui_show_registers, tui_show_register_group)
3350 (tui_display_registers_from, tui_display_reg_element_at_line)
3351 (tui_display_registers_from_line, tui_check_register_values)
3352 (tui_reg_next, tui_reg_prev): Update.
3353 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3354 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3356 (struct tui_win_info) <detail>: Remove. Add new fields from
3358 (TUI_DATA_WIN): Add cast.
3359 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3360 (~tui_data_window): Simplify.
3362 2019-06-25 Tom Tromey <tom@tromey.com>
3364 * tui/tui-layout.c (show_source_disasm_command)
3365 (show_source_or_disasm_and_command): Update.
3366 * tui/tui-io.c (update_cmdwin_start_line)
3367 (tui_redisplay_readline): Update.
3368 * tui/tui-data.h (struct tui_command_info): Remove.
3369 (struct tui_win_info) <detail>: Remove command_info member.
3370 (struct tui_data_window) <start_line>: New member, from
3372 (TUI_CMD_WIN): Add casts.
3374 2019-06-25 Tom Tromey <tom@tromey.com>
3376 * tui/tui-winsource.c (tui_update_source_window)
3377 (tui_refill_source_window)
3378 (tui_source_window_base::do_scroll_horizontal)
3379 (tui_update_breakpoint_info, tui_set_exec_info_content)
3380 (tui_show_exec_info_content, tui_erase_exec_info_content)
3381 (tui_clear_exec_info_content): Update.
3382 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3384 * tui/tui-win.c (make_invisible_and_set_new_height)
3385 (make_visible_with_new_height): Update.
3386 * tui/tui-source.c (tui_set_source_content)
3387 (tui_show_symtab_source): Update.
3388 * tui/tui-layout.c (extract_display_start_addr)
3389 (show_source_disasm_command, show_data)
3390 (make_source_or_disasm_window)
3391 (show_source_or_disasm_and_command): Update.
3392 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3393 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3395 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3396 to tui_source_window_base.
3397 (struct tui_win_info) <detail>: Remove source_info member.
3398 (struct tui_source_window_base) <has_locator>: Inline.
3399 Move contents from tui_source_info; rename has_locator member to
3401 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3402 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3404 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3406 (tui_free_all_source_wins_content): Cast to
3407 tui_source_window_base.
3409 2019-06-25 Tom Tromey <tom@tromey.com>
3411 * tui/tui-win.c (make_invisible_and_set_new_height)
3412 (make_visible_with_new_height): Call has_locator method.
3413 * tui/tui-layout.c (show_source_disasm_command, show_data)
3414 (show_source_or_disasm_and_command): Update for bool change.
3415 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3416 (tui_win_info) <has_locator>: New method.
3417 (struct tui_source_window_base) <has_locator>: New method.
3418 (tui_win_has_locator): Don't declare.
3419 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3420 from tui_win_has_locator.
3421 (tui_source_window_base): Use false, not FALSE.
3423 2019-06-25 Tom Tromey <tom@tromey.com>
3425 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3426 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3427 clear_detail method directly.
3428 (tui_clear_win_detail): Remove.
3430 2019-06-25 Tom Tromey <tom@tromey.com>
3432 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3433 "this", not TUI_DISASM_WIN.
3435 2019-06-25 Tom Tromey <tom@tromey.com>
3437 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3439 * tui/tui-winsource.c
3440 (tui_source_window_base::do_scroll_horizontal): Rename from
3441 tui_horizontal_source_scroll.
3442 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3443 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3444 from tui_vertical_data_scroll.
3445 * tui/tui-win.h (tui_scroll): Don't declare.
3446 * tui/tui-win.c (tui_win_info::forward_scroll)
3447 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3448 (tui_win_info::right_scroll): Rename and update.
3449 (tui_scroll_forward_command, tui_scroll_backward_command)
3450 (tui_scroll_left_command, tui_scroll_right_command): Update.
3451 (tui_scroll): Remove.
3452 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3453 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3454 from tui_vertical_source_scroll.
3455 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3456 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3457 from tui_vertical_disassem_scroll.
3458 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3459 do_scroll_horizontal>: New methods.
3460 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3462 (struct tui_source_window_base): Add do_scroll_horizontal.
3463 (struct tui_source_window, struct tui_disasm_window): Add
3465 (struct tui_data_window, struct tui_cmd_window): Add
3466 do_scroll_horizontal and do_scroll_vertical.
3467 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3469 2019-06-25 Tom Tromey <tom@tromey.com>
3471 * tui/tui-data.h (struct tui_source_window_base): New struct.
3472 (struct tui_source_window): Derive from tui_source_window_base.
3473 (struct tui_disasm_window): New struct.
3474 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3475 from tui_source_window::clear_detail.
3476 (tui_source_window_base): Rename from tui_source_window.
3477 (~tui_source_window_base): Rename from ~tui_source_window.
3478 (tui_alloc_win_info): Create a tui_disasm_window.
3480 2019-06-25 Tom Tromey <tom@tromey.com>
3482 * tui/tui-data.h (struct tui_source_window)
3483 (struct tui_data_window): Declare destructors.
3484 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3486 (tui_win_info): Simplify.
3488 2019-06-25 Tom Tromey <tom@tromey.com>
3490 * tui/tui-winsource.c (tui_display_main)
3491 (tui_update_source_windows_with_addr)
3492 (tui_update_all_breakpoint_info): Update.
3493 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3494 (new_height_ok, parse_scrolling_args): Update.
3495 * tui/tui-stack.c (tui_show_frame_info): Update.
3496 * tui/tui-data.h (struct tui_list): Remove.
3497 (tui_source_windows): Return a reference to a std::vector.
3498 * tui/tui-data.c (source_windows): Now a std::vector.
3499 (tui_source_windows): Change return type.
3500 (tui_clear_source_windows): Rewrite.
3501 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3502 (tui_free_all_source_wins_content): Rewrite.
3504 2019-06-25 Tom Tromey <tom@tromey.com>
3506 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3507 (struct tui_data_window, struct tui_cmd_window): Declare
3508 clear_detail method.
3509 * tui/tui-data.c (tui_source_window::clear_detail)
3510 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3512 (tui_clear_win_detail): Simplify.
3514 2019-06-25 Tom Tromey <tom@tromey.com>
3516 * tui/tui-layout.c (make_source_window, make_disasm_window)
3517 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3518 Return the new window.
3519 (show_source_disasm_command, show_data)
3520 (show_source_or_disasm_and_command): Update.
3522 2019-06-25 Tom Tromey <tom@tromey.com>
3524 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3525 parameter. Return the new window.
3526 (show_source_disasm_command): Update and remove NULL check.
3527 (show_source_or_disasm_and_command): Update.
3529 2019-06-25 Tom Tromey <tom@tromey.com>
3531 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3533 2019-06-25 Tom Tromey <tom@tromey.com>
3535 * tui/tui-data.h (struct tui_win_info): Make constructor
3536 protected. Make destructor virtual. Add initializers.
3537 (tui_source_window, tui_data_window, tui_cmd_window): New
3539 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3540 constructor. Add "type" parameter.
3541 (tui_source_window, tui_data_window, tui_cmd_window): New
3543 (tui_alloc_win_info): Instantiate the appropriate subclass.
3545 2019-06-25 Tom Tromey <tom@tromey.com>
3547 * tui/tui-win.c (tui_resize_all): Use delete.
3548 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3550 (tui_free_window): Don't declare.
3551 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3554 2019-06-25 Tom Tromey <tom@tromey.com>
3556 * tui/tui-data.h (struct tui_win_info): Add constructor.
3557 * tui/tui-data.c (tui_alloc_win_info): Use new.
3558 (tui_free_window): Use delete.
3560 2019-06-22 Tom Tromey <tom@tromey.com>
3562 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3564 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3566 2019-06-22 Tom Tromey <tom@tromey.com>
3568 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3570 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3572 2019-06-22 Tom de Vries <tdevries@suse.de>
3574 * dwarf2read.c (create_addrmap_from_aranges)
3575 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3578 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
3580 * dwarf2read.h (dwarf2_section_info_def): Remove.
3581 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3582 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3583 std::vector<dwarf2_section_info>.
3584 (struct dwo_file) <~dwo_file>: Remove.
3585 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3587 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3588 (dwarf2_read_debug_names): Likewise.
3589 (create_debug_types_hash_table): Change parameter type to
3590 array_view, adjust code accordingly.
3591 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3592 (partial_die_info::fixup): Likewise.
3593 (determine_prefix): Likewise.
3594 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3596 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3598 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3600 <~dwo_file>: Remove call to gdb_bfd_unref.
3601 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3602 gdb_bfd_ref_ptr::get.
3604 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3606 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3608 * dwarf2read.c (struct dwo_file): Initialize fields.
3610 (free_dwo_file): Remove, move content to ~dwo_file.
3611 (struct dwo_file_deleter): Remove.
3612 (dwo_file_up>: Remove custom deleter.
3613 (free_dwo_files): Remove.
3614 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3616 (process_skeletonless_type_units): Call unique_ptr::get.
3617 (allocate_dwo_file_hash_table): Add deleter to created hash
3618 table. Change return type to htab_up.
3619 (lookup_dwo_file_slot): Don't memset dwo_file, call
3621 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3622 (create_dwo_unit_in_dwp_v2): Likewise.
3623 (open_and_init_dwo_file): Likewise.
3624 (free_dwo_file_from_slot): Remove.
3626 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3628 * dwarf2read.h (struct dwarf2_section_info) <readin,
3629 is_virtual>: Change type to bool.
3630 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3633 2019-06-19 Tom Tromey <tom@tromey.com>
3635 * tui/tui-data.h (tui_init_content_element): Don't declare.
3637 2019-06-19 Tom Tromey <tom@tromey.com>
3639 * tui/tui-data.h (tui_init_win_info): Don't declare.
3641 2019-06-19 Tom de Vries <tdevries@suse.de>
3643 * dwarf2read.h (abstract_to_concrete): Change type to
3644 std::unordered_map<sect_offset, std::vector<sect_offset>,
3645 gdb::hash_enum<sect_offset>>.
3647 2019-06-19 Tom Tromey <tromey@adacore.com>
3649 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3650 EVAL_AVOID_SIDE_EFFECTS specially.
3652 2019-06-19 Tom Tromey <tromey@adacore.com>
3654 * source-cache.c (highlighter): New global.
3655 (source_cache::get_source_lines): Create a highlighter on demand.
3657 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3659 * defs.h (deprecated_interactive_hook): Delete declaration.
3660 * interps.c (clear_interpreter_hooks): Remove use of
3661 deprecated_interactive_hook.
3662 * top.c (deprecated_interactive_hook): Delete definition.
3663 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3665 2019-06-18 Tom de Vries <tdevries@suse.de>
3668 * dwarf2read.h (abstract_to_concrete): Change type from
3669 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3670 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3671 * dwarf2read.c (read_variable): Update.
3672 (dwarf2_fetch_die_loc_sect_off): Update.
3674 2019-06-17 Tom de Vries <tdevries@suse.de>
3677 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3678 accessing parent[parent_len - 1].
3680 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3683 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3684 call dtrace_process_dof with NULL dof.
3686 2019-06-16 Tom de Vries <tdevries@suse.de>
3689 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3691 2019-06-16 Tom Tromey <tom@tromey.com>
3693 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3694 (make_all_visible): Use address of member.
3696 2019-06-16 Tom Tromey <tom@tromey.com>
3698 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3699 (tui_free_window, free_content, free_content_elements): Remove
3701 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3703 * tui/tui-regs.c (tui_show_register_group)
3704 (tui_display_registers_from, tui_display_reg_element_at_line):
3705 Remove unnecessary cast.
3707 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3709 * linux-nat.c (normal_mask): Delete.
3710 (_initialize_linux_nat): Don't initialise normal_mask.
3712 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3715 * dwarf-index-write.h (write_psymtabs_to_index): Add
3716 dwz_basename parameter.
3717 * dwarf-index-write.c (write_gdbindex): Move file writing to
3718 write_gdbindex_1. Change return type void.
3719 (assert_file_size): Move up, remove filename parameter.
3720 (write_gdbindex_1): New function.
3721 (write_debug_names): Change return type to void, call
3723 (struct index_wip_file): New struct.
3724 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3725 file logic to index_wip_file. Write index for dwz file if
3727 (save_gdb_index_command): Pass basename of dwz file, if present.
3728 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3729 build-id of dwz file, if present.
3730 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3731 (dwarf2_get_dwz_file): Likewise.
3732 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3733 (dwarf2_get_dwz_file): Likewise.
3735 2019-06-16 Tom Tromey <tom@tromey.com>
3737 * coffread.c (process_coff_symbol): Use xstrdup.
3738 * value.c (create_internalvar): Use xstrdup.
3740 2019-06-16 Tom Tromey <tom@tromey.com>
3742 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3743 * breakpoint.c (stopin_command, stopat_command)
3744 (until_break_command, decode_location_default): Remove unnecessary
3746 * utils.c (subset_compare): Remove unnecessary cast.
3747 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3749 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3751 * infcmd.c (path_command): Remove unnecessary cast.
3752 * coffread.c (decode_type): Remove unnecessary cast.
3753 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3754 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3755 * tui/tui-stack.c (tui_show_locator_content)
3756 (tui_show_frame_info): Remove unnecessary cast.
3757 * tui/tui-win.c (tui_scroll_forward_command)
3758 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3759 (parse_scrolling_args): Remove unnecessary cast.
3760 * tui/tui-data.c (init_win_info, tui_del_window)
3761 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3762 (free_content_elements): Remove unnecessary cast.
3763 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3765 * tui/tui-source.c (tui_set_source_content)
3766 (tui_vertical_source_scroll): Remove unnecessary cast.
3767 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3769 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3770 * tui/tui-regs.c (tui_display_registers_from)
3771 (tui_display_register): Remove unnecessary cast.
3772 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3773 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3774 (make_visible): Remove unnecessary cast.
3775 * tui/tui-winsource.c (tui_erase_source_content)
3776 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3778 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3779 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3780 * stabsread.c (read_type, read_array_type, read_range_type):
3781 Remove unnecessary cast.
3782 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3783 (parse_symbol, parse_type, upgrade_type, parse_external)
3784 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3786 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3788 2019-06-16 Tom Tromey <tom@tromey.com>
3790 * tui/tui-data.c (tui_alloc_generic_win_info)
3791 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3794 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3795 Andrew Burgess <andrew.burgess@embecosm.com>
3797 * f-typeprint.c (f_print_type): Don't return early for not
3798 associated or not allocated types.
3799 (f_type_print_varspec_suffix): Add print_rank parameter and print
3800 ranks of array types in case they dangling.
3801 (f_type_print_base): Add print_rank parameter.
3803 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3805 * NEWS: Mention new MI commands.
3806 * break-catch-throw.c (enum exception_event_kind): Move to
3808 (print_mention_exception_catchpoint): Output text as a single
3810 (catch_exception_command_1): Rename to...
3811 (catch_exception_event): ...this, make non-static, update header
3812 command, and change some parameter types.
3813 (catch_catch_command): Update for changes to
3814 catch_exception_command_1.
3815 (catch_throw_command): Likewise.
3816 (catch_rethrow_command): Likewise.
3817 * breakpoint.c (enum exception_event_kind): Delete.
3818 * breakpoint.h (enum exception_event_kind): Moved here from
3819 break-catch-throw.c.
3820 (catch_exception_event): Declare.
3821 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3822 (mi_cmd_catch_throw): New function.
3823 (mi_cmd_catch_rethrow): New function.
3824 (mi_cmd_catch_catch): New function.
3825 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3826 'catch-catch' entries.
3827 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3828 (mi_cmd_catch_rethrow): Declare.
3829 (mi_cmd_catch_catch): Declare.
3831 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3833 * annotate.c (annotate_source_line): Change return type to void,
3834 update implementation to match.
3835 * annotate.h (annotate_source_line): Change return type to void,
3836 update header comment.
3837 * stack.c (print_frame_info): Don't change what frame information
3838 is printed based on whether annotations are on or not.
3840 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3842 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3843 (annotate_source): Make static.
3844 (annotate_source_line): Moved from source.c and renamed from
3845 identify_source_line. Update the return type.
3846 * annotate.h (annotate_source): Delete declaration.
3847 (annotate_source_line): Declaration moved from source.h, and
3848 renamed from identify_source_line. Return type updated.
3849 * source.c (identify_source_line): Moved to annotate.c and renamed
3850 to annotate_source_line.
3851 (info_line_command): Remove check of annotation_level.
3852 * source.h (identify_source_line): Move declaration to annotate.h
3853 and rename to annotate_source_line.
3854 * stack.c: Add 'annotate.h' include.
3855 (print_frame_info): Remove check of annotation_level before
3856 calling annotate_source_line.
3858 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3860 * source-cache.c (source_cache::get_plain_source_lines): Use
3861 open_source_file_with_line_charpos instead of just
3862 open_source_file, remove call to find_source_lines.
3863 (source_cache::get_source_lines): Likewise.
3864 * source.c (find_source_lines): Make static.
3865 (get_filename_and_charpos): Renamed into...
3866 (open_source_file_with_line_charpos): ..this along with changes to
3867 return a scoped_fd, and some other minor clean ups.
3868 (identify_source_line): Use open_source_file_with_line_charpos.
3869 (search_command_helper): Use open_source_file_with_line_charpos
3870 instead of just open_source_file, remove call to
3872 * source.h (open_source_file_with_line_charpos): Declare new
3874 (find_source_lines): Delete declaration.
3876 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3878 * source.c (get_filename_and_charpos): Remove fullname
3880 (identify_source_line): Update call to get_filename_and_charpos.
3882 2019-06-14 Tom Tromey <tromey@adacore.com>
3885 * ui-style.h (skip_ansi_escape): Update comment.
3886 * ui-file.h (class no_terminal_escape_file): New class.
3887 * ui-file.c (no_terminal_escape_file::write)
3888 (no_terminal_escape_file::puts): New methods.
3889 * cli/cli-logging.c (handle_redirections): Use
3890 no_terminal_escape_file.
3892 2019-06-14 Tom Tromey <tromey@adacore.com>
3894 * NEWS: Move convenience variable news above Python news.
3896 2019-06-14 Tom Tromey <tom@tromey.com>
3898 * gnulib: Move directory to top-level.
3899 * configure.ac: Don't configure gnulib.
3900 * configure: Rebuild.
3901 * common/common-defs.h: Use new path to gnulib.
3902 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3904 (INCGNU): Look in new gnulib location.
3905 (HFILES_NO_SRCDIR): Remove gnulib files.
3906 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3907 (generated_files): Remove GNULIB_H.
3908 ($(LIBGNU), all-lib): Remove targets.
3909 (distclean): Don't mention GNULIB_BUILDDIR.
3910 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3912 2019-06-14 Tom Tromey <tromey@adacore.com>
3914 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3915 Warn if symbol file does not provide any symbols.
3917 2019-06-14 Tom Tromey <tromey@adacore.com>
3919 * source.c (find_and_open_source): Respect basenames_may_differ.
3921 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3923 * annotate.c (annotate_breakpoints_invalid): Make use of
3924 scoped_restore_terminal_state.
3925 (annotate_frames_invalid): Likewise.
3927 2019-06-14 Tom Tromey <tromey@adacore.com>
3929 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3930 allow assignment to an internalvar.
3932 2019-06-14 Tom Tromey <tromey@adacore.com>
3934 * ada-lex.l: Allow "_" in attribute names.
3936 2019-06-14 Tom Tromey <tromey@adacore.com>
3939 * regcache.c (registers_changed): Don't call alloca.
3940 * top.c (execute_command): Don't call alloca.
3942 2019-06-13 Pedro Alves <palves@redhat.com>
3944 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3945 'expression'. When parsing an expression, error out if there's
3946 junk after "unlimited".
3947 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3948 (do_set_command): Adjust calls to is_unlimited_literal.
3950 2019-06-13 Pedro Alves <palves@redhat.com>
3952 * compile/compile.c (make_compile_options_def_group): Add braces
3953 around array_view initializer.
3954 * thread.c (make_thread_apply_all_options_def_group)
3955 (make_thread_apply_all_options_def_group): Likewise.
3957 2019-06-13 Pedro Alves <palves@redhat.com>
3959 * NEWS (New commands): Mention "maint test-options
3960 require-delimiter", "maint test-options unknown-is-error", "maint
3961 test-options unknown-is-operand" and "maint show
3962 test-options-completion-result".
3963 (New command options, command completion): New section.
3964 (Completion improvements): New section.
3965 Mention that you can abbreviate "unlimited".
3967 2019-06-13 Pedro Alves <palves@redhat.com>
3969 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3970 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3971 * unittests/cli-utils-selftests.c (test_parse_flags)
3972 (test_parse_flags_qcs): Delete.
3973 (test_cli_utils): Don't call deleted functions.
3975 2019-06-13 Pedro Alves <palves@redhat.com>
3977 * thread.c: Include "cli/cli-option.h".
3978 (tp_array_compar_ascending): Global.
3979 (tp_array_compar): Delete function.
3980 (tp_array_compar_ascending, tp_array_compar_descending): New
3982 (ascending_option_def, qcs_flag_option_def)
3983 (thr_qcs_flags_option_defs)
3984 (make_thread_apply_all_options_def_group)
3985 (make_thread_apply_options_def_group): New.
3986 (thread_apply_all_command): Use gdb::option::process_options.
3987 (thread_apply_command_completer)
3988 (thread_apply_all_command_completer): New.
3989 (thread_apply_command): Use gdb::option::process_options.
3990 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3991 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3992 to generate help text of "thread apply". Adjust "taas"'s help.
3993 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3994 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3996 2019-06-13 Pedro Alves <palves@redhat.com>
3998 * thread.c (thread_apply_command): Check for invalid TID with
3999 isdigit instead of !isalpha.
4001 2019-06-13 Pedro Alves <palves@redhat.com>
4003 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4004 (validate_flags_qcs): New.
4005 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4006 (validate_flags_qcs): Declare.
4007 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4008 (make_frame_apply_options_def_group): New.
4009 (frame_apply_command_count): Process options with
4010 gdb::option::process_options.
4011 (frame_apply_completer): New.
4012 (frame_apply_level_completer, frame_apply_all_completer)
4013 (frame_apply_completer): New.
4014 (_initialize_stack): Update help of "frame apply", "frame apply
4015 level", "frame apply all" and "faas" to mention supported options
4016 and install command completers.
4017 * stack.h (frame_apply_all_completer): Declare.
4018 * thread.c: Include "stack.h".
4019 (tfaas_command): Add "--".
4020 (_initialize_thread): Update help "tfaas" to mention supported
4021 options and install command completer.
4023 2019-06-13 Pedro Alves <palves@redhat.com>
4025 * completer.c (complete_nested_command_line): New.
4026 (gdb_completion_word_break_characters_throw): Add assertion.
4027 * completer.h (complete_nested_command_line): Declare.
4029 2019-06-13 Pedro Alves <palves@redhat.com>
4031 * stack.c (parse_backtrace_qualifiers): New.
4032 (backtrace_command): Use it.
4033 (backtrace_command_completer): Complete on qualifiers.
4035 2019-06-13 Pedro Alves <palves@redhat.com>
4037 * frame.c: Include "cli/cli-option.h.
4038 (user_set_backtrace_options): New.
4039 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4041 (get_prev_frame): Adjust.
4042 (boolean_option_def, uinteger_option_def)
4043 (set_backtrace_option_defs): New.
4044 (_initialize_frame): Adjust and use
4045 gdb::option::add_setshow_cmds_for_options to install "set
4046 backtrace past-main" and "set backtrace past-entry".
4047 * frame.h: Include "cli/cli-option.h".
4048 (struct frame_print_options): Forward declare.
4049 (print_frame_arguments_all, print_frame_arguments_scalars)
4050 (print_frame_arguments_none): Declare.
4051 (print_entry_values): Delete declaration.
4052 (struct frame_print_options, user_frame_print_options): New.
4053 (struct set_backtrace_options): New.
4054 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4055 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4056 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4057 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4058 (list_args_or_locals): Add frame_print_options parameter.
4059 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4060 * python/py-framefilter.c (enumerate_args): Pass down
4061 USER_FRAME_PRINT_OPTIONS.
4062 * stack.c: Include "cli/cli-option.h".
4063 (print_frame_arguments_all, print_frame_arguments_scalars)
4064 (print_frame_arguments_none): Declare.
4065 (print_raw_frame_arguments, print_entry_values): Delete.
4066 (user_frame_print_options): New.
4067 (boolean_option_def, enum_option_def, frame_print_option_defs):
4069 (struct backtrace_cmd_options): New.
4070 (bt_flag_option_def): New.
4071 (backtrace_command_option_defs): New.
4072 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4073 (print_frame_arg, read_frame_arg, print_frame_args)
4074 (print_frame_info, print_frame): Add frame_print_options parameter
4076 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4077 (backtrace_command_1): Add frame_print_options and
4078 backtrace_cmd_options parameters and use them.
4079 (make_backtrace_options_def_group): New.
4080 (backtrace_command): Process command options with
4081 gdb::option::process_options.
4082 (backtrace_command_completer): New.
4083 (_initialize_stack): Extend "backtrace"'s help to mention
4084 supported options. Install completer for "backtrace".
4085 Install some settings commands with add_setshow_cmds_for_options.
4087 2019-06-13 Pedro Alves <palves@redhat.com>
4089 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4090 and that "set/show print raw frame-arguments" are now deprecated.
4092 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4094 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4095 * stack.c (_initialize_stack): Install "set/show print
4096 raw-frame-arguments", and deprecate "set/show print raw
4098 * valprint.c (_initialize_valprint): Deprecate "set/show print
4101 2019-06-13 Pedro Alves <palves@redhat.com>
4103 * compile/compile.c (struct compile_options): New.
4104 (compile_flag_option_def, compile_command_option_defs)
4105 (make_compile_options_def_group): New.
4106 (compile_file_command): Handle options with
4107 gdb::option::process_options.
4108 (compile_file_command_completer): New function.
4109 (compile_code_command): Handle options with
4110 gdb::option::process_options.
4111 (compile_code_command_completer): New function.
4112 (_initialize_compiler): Install completers for "compile code" and
4113 "compile file". Mention available options in "compile code" and
4114 "compile code"'s help.
4115 * completer.c (advance_to_completion_word): New, factored out from
4117 (advance_to_expression_complete_word_point): ... this.
4118 (advance_to_filename_complete_word_point): New.
4119 * completer.h (advance_to_filename_complete_word_point): New
4122 2019-06-13 Pedro Alves <palves@redhat.com>
4124 * compile/compile.c: Include "cli/cli-option.h".
4125 (compile_print_value): Scope data pointer is now a
4126 value_print_options pointer; adjust.
4127 (compile_print_command): Process options. Scope data pointer is
4128 now a value_print_options pointer; adjust.
4129 (_initialize_compile): Update "compile print"'s help to include
4130 supported options. Install a completer for "compile print".
4131 * cp-valprint.c (show_vtblprint, show_objectprint)
4132 (show_static_field_print): Delete.
4133 (_initialize_cp_valprint): Don't install "set print
4134 static-members", "set print vtbl", "set print object" here.
4135 * printcmd.c: Include "cli/cli-option.h" and
4136 "common/gdb_optional.h".
4137 (print_command_parse_format): Rework to fill in a
4138 value_print_options instead of a format_data.
4139 (print_value): Change parameter type from format_data pointer to
4140 value_print_options reference. Adjust.
4141 (print_command_1): Process options. Adjust to pass down a
4142 value_print_options.
4143 (print_command_completer): New.
4144 (_initialize_printcmd): Install print_command_completer as
4145 handle_brkchars completer for the "print" command. Update
4146 "print"'s help to include supported options.
4147 * valprint.c: Include "cli/cli-option.h".
4148 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4149 here from cp-valprint.c.
4150 (boolean_option_def, uinteger_option_def)
4151 (value_print_option_defs, make_value_print_options_def_group):
4152 New. Use gdb::option::add_setshow_cmds_for_options to install
4153 "set print elements", "set print null-stop", "set print repeats",
4154 "set print pretty", "set print union", "set print array", "set
4155 print address", "set print symbol", "set print array-indexes".
4156 * valprint.h: Include <string> and "cli/cli-option.h".
4157 (make_value_print_options_def_group): Declare.
4158 (print_value): Change parameter type from format_data pointer to
4159 value_print_options reference.
4160 (print_command_completer): Declare.
4162 2019-06-13 Pedro Alves <palves@redhat.com>
4164 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4165 (COMMON_SFILES): Add maint-test-settings.c.
4166 * cli/cli-decode.c (boolean_enums): New global, factored out from
4168 (add_setshow_boolean_cmd): ... here.
4169 * cli/cli-decode.h (boolean_enums): Declare.
4170 * cli/cli-option.c: New file.
4171 * cli/cli-option.h: New file.
4172 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4173 factored out from ...
4174 (parse_cli_boolean_value(const char *)): ... this.
4175 (is_unlimited_literal): Change parameter type to pointer to
4176 pointer. Adjust and advance ARG pointer.
4177 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4178 (parse_cli_var_enum): New, factored out from ...
4179 (do_set_command): ... this. Adjust.
4180 * cli/cli-setshow.h (parse_cli_boolean_value)
4181 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4182 (parse_cli_var_enum): Declare.
4183 * cli/cli-utils.c: Include "cli/cli-option.h".
4184 (get_ulongest): New.
4185 * cli/cli-utils.h (get_ulongest): Declare.
4186 (check_for_argument): New overloads.
4187 * maint-test-options.c: New file.
4189 2019-06-13 Pedro Alves <palves@redhat.com>
4191 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4192 parse a range if "-" is at the end of the string.
4194 2019-06-13 Pedro Alves <palves@redhat.com>
4196 * cli/cli-setshow.c (parse_auto_binary_operation)
4197 (parse_cli_boolean_value): Don't allow "o".
4199 2019-06-13 Pedro Alves <palves@redhat.com>
4201 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4202 * NEWS: Mention maint test-settings KIND.
4203 * maint-test-settings.c: New file.
4205 2019-06-13 Pedro Alves <palves@redhat.com>
4207 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4209 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4212 2019-06-13 Pedro Alves <palves@redhat.com>
4214 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4217 2019-06-13 Pedro Alves <palves@redhat.com>
4219 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4221 2019-06-13 Pedro Alves <palves@redhat.com>
4223 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4224 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4226 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4227 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4229 (check_for_argument): Skip spaces after argument.
4231 2019-06-13 Pedro Alves <palves@redhat.com>
4233 * thread.c (thread_apply_command): Adjust TID parsing.
4234 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4235 detected before end of string.
4236 (tid_is_in_list): Error out if LIST is invalid.
4238 2019-06-13 Pedro Alves <palves@redhat.com>
4240 * completer.c (complete_line_internal_1): Rewind completion word
4242 (completion_tracker::advance_custom_word_point_by): Change
4243 parameter type to int.
4244 * completer.h (completion_tracker::advance_custom_word_point_by):
4247 2019-06-13 Pedro Alves <palves@redhat.com>
4249 * completer.c (advance_to_completion_word): Handle delimiters.
4251 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4253 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4255 2019-06-11 Tom Tromey <tom@tromey.com>
4257 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4258 (xmalloc_failed): Move to alloc.c.
4259 * alloc.c: New file.
4260 * Makefile.in (COMMON_SFILES): Add alloc.c.
4262 2019-06-11 Tom Tromey <tom@tromey.com>
4264 * nat/linux-waitpid.c: Don't include server.h.
4265 (linux_debug): Remove.
4266 (my_waitpid): Update.
4268 2019-06-11 Tom Tromey <tromey@adacore.com>
4270 * infcall.c (_initialize_infcall): Remove trailing newline from
4272 * user-regs.c (_initialize_user_regs): Remove trailing newline
4274 * typeprint.c (_initialize_typeprint): Remove trailing newline
4276 * reverse.c (_initialize_reverse): Remove trailing newlines from
4278 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4280 * language.c (add_set_language_command): Remove trailing newline
4282 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4284 * disasm.c (_initialize_disasm): Remove trailing newline from
4286 * top.c (init_main): Remove trailing newline from help.
4287 * interps.c (_initialize_interpreter): Remove trailing newline
4289 * btrace.c (_initialize_btrace): Remove trailing newlines from
4291 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4293 * python/python.c (_initialize_python): Remove trailing newline
4295 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4297 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4298 from help. Reformat some text.
4299 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4301 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4304 2019-06-11 Tom Tromey <tromey@adacore.com>
4306 * darwin-nat.c (darwin_decode_exception_message)
4307 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4309 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4311 * valops.c (value_slice): Check for not allocated or not
4314 2019-06-10 Tom de Vries <tdevries@suse.de>
4317 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4318 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4321 2019-06-10 Tom de Vries <tdevries@suse.de>
4324 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4325 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4327 2019-06-10 Tom de Vries <tdevries@suse.de>
4330 * symtab.c (struct demangled_name_entry): Add language field.
4331 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4332 static minimal symbol". Set and use language field.
4334 2019-06-10 Tom Tromey <tromey@adacore.com>
4336 * ada-lang.c (_initialize_ada_language): Update help text.
4338 2019-06-10 Tom Tromey <tromey@adacore.com>
4340 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4342 * guile/guile.c (handle_boot_error): Don't end warning with a
4344 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4345 warning with a newline.
4346 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4348 (s12z_frame_cache): Likewise.
4349 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4351 * solib-svr4.c (disable_probes_interface): Don't end warning with
4353 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4355 * python/python.c (do_finish_initialization): Don't end warning
4358 2019-06-10 Tom Tromey <tom@tromey.com>
4360 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4361 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4364 2019-06-10 Tom Tromey <tromey@adacore.com>
4366 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4368 (elf_new_init): Don't call stabsread_new_init.
4369 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4370 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4371 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4373 2019-06-10 Tom de Vries <tdevries@suse.de>
4377 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4379 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4381 * source.c (find_and_open_source): Also rewrite relative file
4384 2019-04-26 Amos Bird <amosbird@gmail.com>
4386 * annotate.c (annotate_thread_exited): Add "thread-exited"
4389 2019-06-06 Tom Tromey <tromey@adacore.com>
4391 * maint.h (class scoped_command_stats): Use
4392 DISABLE_COPY_AND_ASSIGN.
4393 <print_time>: New method.
4394 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4396 (scoped_command_stats::print_time): New method.
4398 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4400 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4401 instructions of lengths 6 or 8 bytes.
4403 2019-06-04 Pedro Alves <palves@redhat.com>
4405 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4407 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4408 * breakpoint.c (condition_completer): Likewise.
4409 * cli/cli-dump.c (scan_expression): Likewise.
4410 * common/filestuff.c (mkdir_recursive): Likewise.
4411 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4412 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4413 (gdb_abspath): Likewise.
4414 * compile/compile-cplus-types.c
4415 (compile_cplus_instance::decl_name): Likewise.
4416 * completer.c (complete_explicit_location):
4417 (signal_completer, reg_or_group_completer_1): Likewise.
4418 * cp-support.c (cp_remove_params_if_any): Likewise.
4419 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4420 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4421 * infcmd.c (strip_bg_char): Likewise.
4422 * linespec.c (copy_token_string): Likewise.
4423 * mi/mi-main.c (output_cores): Likewise.
4424 * psymtab.c (psymtab_search_name):
4425 * symfile.c (test_set_ext_lang_command): Likewise.
4426 * target.c (target_fileio_read_stralloc): Likewise.
4427 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4428 * value.c (complete_internalvar): Likewise.
4430 2019-06-04 Christian Biesinger <cbiesinger@google.com>
4432 Add objfile property to gdb.Type.
4433 * NEWS: Mention Python API addition.
4434 * python/py-type.c (typy_get_objfile): New method.
4436 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4438 * NEWS: Mention the new set|show style [title|highlight].
4439 Mention changes to "show style", "help" and "apropos".
4441 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4443 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4444 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4445 instead of print_help_for_command.
4446 (print_doc_of_command): New function.
4447 (help_list): Add 'apropos -v word' suggestion.
4448 (print_help_for_command): Style the command name using title style.
4449 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4450 (_initialize_cli_cmds): Describe -v in apropos_command help.
4452 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4454 * cli/cli-style.h (cli_style_option): Add name in constructor,
4455 add m_name class member, add constructor with intensity,
4456 add name class function.
4457 (cli_style_option::add_setshow_commands): Remove name argument.
4458 (highlight_style, title_style): New styles.
4459 * cli/cli-style.c (do_show): New function that shows a style
4460 characteristic styling the style name with itself.
4461 (set_style_name): New function.
4462 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4463 Update all callers according to the changes in cli/cli-style.h.
4464 * utils.h (fputs_highlighted): New function.
4465 * utils.c (fputs_highlighted): Likewise.
4467 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4469 * NEWS: Mention new pipe command and new convenience variables.
4471 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4473 * cli/cli-cmds.c (pipe_command): New function.
4474 (_initialize_cli_cmds): Call add_com for pipe_command.
4475 Define | as an alias for pipe.
4476 (exit_status_set_internal_vars): New function.
4477 (shell_escape): Call exit_status_set_internal_vars.
4478 cli/cli-decode.c (find_command_name_length): Recognize | as
4479 a single character command.
4481 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4483 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4484 top.c (execute_command_to_ui_file): New function, mostly a copy
4485 of execute_command_to_string.
4486 (execute_command_to_string): Implement by calling
4487 execute_command_to_ui_file.
4489 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4491 * top.h (saved_command_line): Remove declaration.
4492 * top.c (previous_saved_command_line, previous_repeat_arguments):
4494 (saved_command_line): Make static, define together with other
4496 (dont_repeat): Clear repeat_arguments.
4497 (repeat_previous, get_saved_command_line, save_command_line):
4499 (gdb_init): Initialize saved_command_line
4500 and previous_saved_command_line.
4501 * main.c (captured_main_1): Remove saved_command_line initialization.
4502 * event-top.c (handle_line_of_input): Update to use
4503 the new 'repeat' related functions instead of direct access to
4505 * command.h (repeat_previous, get_saved_command_line,
4506 save_command_line): New declarations.
4507 (dont_repeat): Add comment.
4509 2019-05-30 Tom Tromey <tromey@adacore.com>
4511 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4513 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4515 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4518 * completer.c (complete): Initialize variable word.
4520 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4522 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4523 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4524 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4525 'body' is NULL to the outter 'if', protecting the '!is_define'
4528 2019-05-29 Tom Tromey <tromey@adacore.com>
4530 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4531 (dwarf_unknown): New function.
4532 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4533 (dwarf_type_encoding_name): Use dwarf_unknown.
4535 2019-05-29 Tom Tromey <tromey@adacore.com>
4538 * cp-valprint.c (cp_print_value_fields): Call
4539 cp_print_static_field inside "try".
4541 2019-05-29 Tom Tromey <tromey@adacore.com>
4543 * inflow.c (struct terminal_info): Add default operator=.
4544 * configure: Rebuild.
4545 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4546 -Wdeprecated-copy-dtor, -Wredundant-move.
4548 2019-05-29 Tom Tromey <tromey@adacore.com>
4551 * infcmd.c (print_return_value_1): Handle finish_print
4553 (show_print_finish): New function.
4554 (_initialize_infcmd): Add "set/show print finish" commands.
4555 * valprint.c (user_print_options): Initialize new member.
4556 * valprint.h (struct value_print_options) <finish_print>: New
4559 2019-05-28 Tom Tromey <tromey@adacore.com>
4561 * ada-lang.c (ada_remove_Xbn_suffix)
4562 (find_old_style_renaming_symbol)
4563 (parse_old_style_renaming): Remove.
4564 (ada_find_renaming_symbol): Don't call
4565 find_old_style_renaming_symbol.
4566 (ada_is_renaming_symbol): Rename from
4567 ada_find_renaming_symbol. Remove "block" parameter. Return
4569 (ada_read_var_value): Update and simplify.
4570 * ada-exp.y (write_var_or_type): Remove old code.
4572 2019-05-28 Alan Hayward <alan.hayward@arm.com>
4574 * event-top.c: Remove include comment.
4575 * inflow.c (class scoped_ignore_sigttou): Move from here...
4576 * inflow.h (class scoped_ignore_sigttou): ...to here.
4577 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4578 * top.c: Remove include comment.
4580 2019-05-27 Tom Tromey <tom@tromey.com>
4584 2019-05-22 Tom Tromey <tromey@adacore.com>
4586 * target.c (target_follow_exec): Constify parameter.
4587 * target-delegates.c: Rebuild.
4588 * remote.c (remote_target::follow_exec): Constify parameter.
4589 * infrun.c (follow_exec): Constify parameter.
4590 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4591 (target_follow_exec): Likewise.
4593 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4595 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4596 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4598 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4600 * NEWS: Add debugredirect and testsuite sections.
4602 2019-05-22 Simon Cook <simon.cook@embecosm.com>
4604 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4605 target descriptions using exclusively floating point register name
4608 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4611 * f-lang.c (build_fortran_types): Handle the case where
4612 gdbarch_floatformat_for_type returns a nullptr.
4614 2019-05-21 Tom de Vries <tdevries@suse.de>
4617 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4619 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4622 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4624 * i386-tdep.c (i386_floatformat_for_type): Use
4625 floatformats_ia64_quad for the 16-byte floating point component
4626 within a fortran 32-byte complex number.
4628 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4630 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4631 delete default constructor.
4632 (find_partial_die): Update to return const struct.
4633 (partial_die_parent_scope): Move variable declaration into scope
4634 of its use and change its type to auto.
4635 (guess_partial_die_structure_name): Likewise.
4636 (partial_die_info::fixup): Likewise.
4638 2019-05-17 Tom Tromey <tromey@adacore.com>
4640 * source.c (find_and_open_source): Remove cast.
4642 2019-05-17 Tom Tromey <tromey@adacore.com>
4644 * annotate.c (annotate_source): Make "filename" const.
4645 * annotate.h (annotate_source): Use const.
4647 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4649 * disasm.c (set_disassembler_options): Send errors to stderr.
4651 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4653 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4654 (cli_interp_base::set_logging): Check debug_redirect.
4655 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4656 * cli/cli-logging.c (debug_redirect): Add static variable.
4657 (pop_output_files): Add default param.
4658 (handle_redirections): Print debug setting.
4659 (show_logging_command): Likewise.
4660 (_initialize_cli_logging): Add debugredirect command.
4661 * interps.c (current_interp_set_logging): Add debug_redirect
4663 * interps.h (set_logging): Add debug_redirect parameter.
4664 (current_interp_set_logging): Likewise.
4665 * mi/mi-common.h: Likewise.
4666 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4668 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4669 Tom Tromey <tromey@adacore.com>
4671 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4673 * cli/cli-interp.h (make_logging_output): Remove declaration.
4674 * cli/cli-logging.c (make_logging_output): Remove function.
4675 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4677 * ui-file.c (tee_file::tee_file): Remove bools.
4678 (tee_file::~tee_file): Remove deletes.
4679 * ui-file.h (tee_file): Remove bools.
4681 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4683 * mi/mi-cmds.h (mi_cmd_complete): New function.
4684 * mi/mi-main.c (mi_cmd_complete): Likewise.
4685 * mi/mi-cmds.c: Define new MI command -complete.
4686 * NEWS: Mention new -complete command.
4688 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4690 * completer.h (complete): New function.
4691 * completer.c (complete): Likewise.
4692 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4693 function defined in completer.h.
4695 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4697 * MAINTAINERS (Write After Approval): Add myself.
4699 2019-05-17 Tom de Vries <tdevries@suse.de>
4702 * dwarf2read.c (struct cu_partial_die_info): New struct.
4703 (find_partial_die): Return cu_partial_die_info.
4704 (partial_die_parent_scope, guess_partial_die_structure_name)
4705 (partial_die_info::fixup): Handle new return type of find_partial_die.
4707 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4709 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4710 "std::string", simplifying the algorithm.
4712 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4714 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4715 (stap_static_probe_ops::get_probes): Likewise.
4717 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4719 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4720 '-')" and "else if".
4721 (stap_parse_single_operand): Join checks for
4722 "gdbarch_stap_parse_special_token_p" and
4723 "gdbarch_stap_parse_special_token" in the same "if" statement.
4724 Invert check when verifying for operation on register
4727 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4729 * stap-probe.c (stap_get_opcode): Update comment.
4730 (stap_get_expected_argument_type): Likewise.
4731 (handle_stap_probe): Likewise.
4733 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4735 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4736 return type to 'bool'. Adjust comment. Use 'bool' when
4738 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4739 * stap-probe.c (stap_parse_argument_1): Likewise.
4740 (stap_is_operator): Likewise.
4741 (stap_is_generic_prefix): Likewise.
4742 (stap_is_register_prefix): Likewise.
4743 (stap_is_register_indirection_prefix): Likewise.
4744 (stap_is_integer_prefix): Likewise.
4745 (stap_generic_check_suffix): Likewise.
4746 (stap_check_integer_suffix): Likewise.
4747 (stap_check_register_suffix): Likewise.
4748 (stap_check_register_indirection_suffix): Likewise.
4749 (stap_parse_register_operand): Likewise.
4750 (stap_parse_single_operand): Likewise.
4751 (stap_parse_argument_1): Likewise.
4752 (stap_probe::get_argument_count): Likewise.
4753 (stap_is_operator): Likewise.
4755 2019-05-16 Tom Tromey <tromey@adacore.com>
4757 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4760 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
4762 * linux-thread-db.c (try_thread_db_load_1): Change return type
4764 (try_thread_db_load): Likewise.
4765 (try_thread_db_load_from_pdir_1): Likewise.
4766 (try_thread_db_load_from_pdir): Likewise.
4767 (try_thread_db_load_from_sdir): Likewise.
4768 (try_thread_db_load_from_dir): Likewise.
4769 (thread_db_load_search): Likewise.
4770 (has_libpthread): Likewise.
4771 (thread_db_load): Likewise.
4773 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4775 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4776 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4777 NULL, and complain/return if that's the case.
4779 2019-05-15 John Darrington <john@darrington.wattle.id.au>
4781 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4782 (advance, posn, abstract_read_memory): New functions.
4783 [struct mem_read_abstraction]: New struct.
4784 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4786 2019-05-14 Tom Tromey <tromey@adacore.com>
4788 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4789 value is not lval_memory.
4791 2019-05-14 Tom Tromey <tromey@adacore.com>
4793 * solib.c (info_sharedlibrary_command): Style the file name.
4795 2019-05-14 Alan Hayward <alan.hayward@arm.com>
4797 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4798 (aarch64_vnv_type): Likewise.
4799 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4800 * common/tdesc.c: Likewise.
4801 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4802 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4803 * features/aarch64-fpu.xml: Add ieee half view.
4804 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4805 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4806 * gdbtypes.h (struct builtin_type): Likewise.
4807 (struct objfile_type): Likewise.
4809 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
4811 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4813 * location.h (string_to_event_location): Likewise.
4815 2019-05-11 Joel Brobecker <brobecker@adacore.com>
4819 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4821 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4822 New variable declaration.
4823 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4825 (print_one_breakpoint): Use ui_out::test_flags and new global
4826 variable to compute use_fixed_output.
4827 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4829 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4830 (mi_multi_location_breakpoint_output_fixed): Remove.
4831 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4833 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4834 fix_multi_location_breakpoint_output flag if version >= 3.
4835 * ui-out.h (enum ui_out_flag)
4836 <fix_multi_location_breakpoint_output>: New enumerator.
4838 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4840 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4842 2019-05-10 Tom Tromey <tromey@adacore.com>
4844 * ada-lang.c (catch_ada_completer): New function.
4845 (_initialize_ada_language): Use it.
4847 2019-05-10 Tom Tromey <tromey@adacore.com>
4849 * thread.c (print_thread_info): Make "requested_threads" const.
4850 * gdbthread.h (print_thread_info): Make "requested_threads"
4852 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4853 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4855 2019-05-08 Tom Tromey <tom@tromey.com>
4857 * gdbtypes.c (objfile_type_data): Change type.
4858 (objfile_type, _initialize_gdbtypes): Update.
4860 2019-05-08 Tom Tromey <tom@tromey.com>
4862 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4863 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4864 (_initialize_dwarf2_frame): Update.
4866 2019-05-08 Tom Tromey <tom@tromey.com>
4868 * objc-lang.c (objc_objfile_data): Change type.
4869 (find_methods): Update.
4870 (_initialize_objc_lang): Remove.
4872 2019-05-08 Tom Tromey <tom@tromey.com>
4874 * stabsread.c (rs6000_builtin_type_data): Change type.
4875 (rs6000_builtin_type, _initialize_stabsread): Update.
4877 2019-05-08 Tom Tromey <tom@tromey.com>
4879 * mips-tdep.c (mips_pdr_data): Remove.
4880 (_initialize_mips_tdep): Update.
4882 2019-05-08 Tom Tromey <tom@tromey.com>
4884 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4885 (hppa_init_objfile_priv_data, read_unwind_info)
4886 (find_unwind_entry, _initialize_hppa_tdep): Update.
4888 2019-05-08 Tom Tromey <tom@tromey.com>
4890 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4891 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4893 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4895 2019-05-08 Tom Tromey <tom@tromey.com>
4897 * mdebugread.c (basic_type_data): Change type.
4898 (basic_type, _initialize_mdebugread): Update.
4900 2019-05-08 Tom Tromey <tom@tromey.com>
4902 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4904 2019-05-08 Tom Tromey <tom@tromey.com>
4906 * nto-tdep.c (nto_inferior_data_reg): Change type.
4907 (nto_inferior_data): Update.
4908 (nto_inferior_data_cleanup, nto_new_inferior_data)
4909 (_initialize_nto_tdep): Remove.
4910 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4912 2019-05-08 Tom Tromey <tom@tromey.com>
4914 * ada-lang.c (struct ada_inferior_data): Add initializers.
4915 (ada_inferior_data): Change type.
4916 (ada_inferior_data_cleanup): Remove.
4917 (get_ada_inferior_data, ada_inferior_exit)
4918 (struct ada_pspace_data): Add initializers, destructor.
4919 (ada_pspace_data_handle): Change type.
4920 (get_ada_pspace_data): Update.
4921 (ada_pspace_data_cleanup): Remove.
4923 2019-05-08 Tom Tromey <tom@tromey.com>
4925 * coffread.c (struct coff_symfile_info): Add initializers.
4926 (coff_objfile_data_key): Move lower. Change type.
4927 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4929 (coff_free_info): Remove.
4931 2019-05-08 Tom Tromey <tom@tromey.com>
4933 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4934 (fbsd_pspace_data_handle): Move lower. Change type.
4935 (get_fbsd_pspace_data): Update.
4936 (fbsd_pspace_data_cleanup): Remove.
4937 (_initialize_fbsd_tdep): Update.
4939 2019-05-08 Tom Tromey <tom@tromey.com>
4941 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4942 (get_ada_tasks_pspace_data): Update.
4943 (ada_tasks_pspace_data_cleanup): Remove.
4944 (_initialize_tasks): Update.
4945 (ada_tasks_inferior_data_handle): Change type.
4946 (get_ada_tasks_inferior_data): Update.
4947 (ada_tasks_inferior_data_cleanup): Remove.
4948 (struct ada_tasks_pspace_data): Add initializers.
4950 2019-05-08 Tom Tromey <tom@tromey.com>
4952 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4953 * symfile-debug.c (debug_sym_get_probes): Change type.
4954 * stap-probe.c (handle_stap_probe):
4955 (stap_static_probe_ops::get_probes): Change type.
4956 * probe.h (class static_probe_ops) <get_probes>: Change type.
4957 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4958 (parse_probes_in_pspace): Update.
4959 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4961 (any_static_probe_ops::get_probes): Change type.
4962 * elfread.c (elfread_data): New typedef.
4963 (probe_key): Change type.
4964 (elf_get_probes): Likewise. Update.
4965 (probe_key_free): Remove.
4966 (_initialize_elfread): Update.
4967 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4969 (dtrace_process_dof_probe, dtrace_process_dof)
4970 (dtrace_static_probe_ops::get_probe): Change type.
4972 2019-05-08 Tom Tromey <tom@tromey.com>
4974 * xcoffread.c (struct xcoff_symfile_info): Rename from
4975 coff_symfile_info. Add initializers.
4976 (xcoff_objfile_data_key): Move lower. Change type.
4977 (XCOFF_DATA): Rewrite.
4978 (xcoff_free_info): Remove.
4979 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4980 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4981 (xcoff_initial_scan): Update.
4983 2019-05-08 Tom Tromey <tom@tromey.com>
4985 * solib-svr4.c (struct svr4_info): Add initializers and
4987 <probes_table>: Now an htab_up.
4988 (solib_svr4_pspace_data): Change type.
4989 (free_probes_table): Simplify.
4990 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4991 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4992 (probes_table_remove_objfile_probes, register_solib_event_probe)
4993 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4994 (_initialize_svr4_solib): Update.
4996 2019-05-08 Tom Tromey <tom@tromey.com>
4998 * remote.c (remote_pspace_data): Change type.
4999 (remote_pspace_data_cleanup): Remove.
5000 (get_remote_exec_file, set_pspace_remote_exec_file)
5001 (_initialize_remote): Update.
5003 2019-05-08 Tom Tromey <tom@tromey.com>
5005 * breakpoint.c (breakpoint_objfile_key): Change type.
5006 (get_breakpoint_objfile_data): Update.
5007 (free_breakpoint_objfile_data): Remove.
5008 (_initialize_breakpoint): Update.
5010 2019-05-08 Tom Tromey <tom@tromey.com>
5012 * linux-tdep.c (struct linux_info): Add initializers.
5013 (linux_inferior_data): Move. Change type.
5014 (invalidate_linux_cache_inf): Update.
5015 (linux_inferior_data_cleanup): Remove.
5016 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5018 2019-05-08 Tom Tromey <tom@tromey.com>
5020 * auxv.c (auxv_inferior_data): Move. Change type.
5021 (auxv_inferior_data_cleanup): Remove.
5022 (invalidate_auxv_cache_inf): Rewrite.
5023 (get_auxv_inferior_data, _initialize_auxv): Update.
5025 2019-05-08 Tom Tromey <tom@tromey.com>
5027 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5028 (symfile_debug_objfile_data_key): Change type.
5029 (symfile_debug_installed, debug_qf_has_symbols)
5030 (debug_qf_find_last_source_symtab)
5031 (debug_qf_forget_cached_source_info)
5032 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5033 (debug_qf_print_stats, debug_qf_dump)
5034 (debug_qf_expand_symtabs_for_function)
5035 (debug_qf_expand_all_symtabs)
5036 (debug_qf_expand_symtabs_with_fullname)
5037 (debug_qf_map_matching_symbols)
5038 (debug_qf_expand_symtabs_matching)
5039 (debug_qf_find_pc_sect_compunit_symtab)
5040 (debug_qf_map_symbol_filenames)
5041 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5042 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5043 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5044 (debug_sym_read_linetable, debug_sym_relocate): Update.
5045 (symfile_debug_free_objfile): Remove.
5046 (install_symfile_debug_logging, _initialize_symfile_debug):
5049 2019-05-08 Tom Tromey <tom@tromey.com>
5051 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5052 allocate_on_obstack.
5053 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5054 (get_dwarf2_per_objfile): Update.
5055 (set_dwarf2_per_objfile): Remove.
5056 (dwarf2_has_info, dwarf2_get_section_info): Update.
5057 (dwarf2_free_objfile): Remove.
5058 (_initialize_dwarf2_read): Update.
5060 2019-05-08 Tom Tromey <tom@tromey.com>
5062 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5064 <unsupported_script_warning_printed,
5065 script_not_found_warning_printed>: Now bool.
5066 (auto_load_pspace_data): Change type.
5067 (~auto_load_pspace_info): Rename from
5068 auto_load_pspace_data_cleanup.
5069 (get_auto_load_pspace_data, init_loaded_scripts_info)
5070 (clear_section_scripts, maybe_print_unsupported_script_warning)
5071 (maybe_print_script_not_found_warning, _initialize_auto_load):
5074 2019-05-08 Tom Tromey <tom@tromey.com>
5076 * objfiles.c (objfile_pspace_info): Add destructor and
5078 (objfiles_pspace_data): Change type.
5079 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5080 (get_objfile_pspace_data): Update.
5081 (objfiles_bfd_data): Change type.
5082 (get_objfile_bfd_data): Update.
5083 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5085 2019-05-08 Tom Tromey <tom@tromey.com>
5087 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5089 (get_catch_syscall_inferior_data): Update.
5090 (catch_syscall_inferior_data_cleanup): Remove.
5091 (_initialize_break_catch_syscall): Update.
5093 2019-05-08 Tom Tromey <tom@tromey.com>
5095 * inflow.c (struct terminal_info): Add destructor and
5097 (inflow_inferior_data): Change type.
5098 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5099 (get_inflow_inferior_data, inflow_inferior_exit)
5100 (swap_terminal_info, _initialize_inflow): Update.
5102 2019-05-08 Tom Tromey <tom@tromey.com>
5104 * target-dcache.c (target_dcache_cleanup): Remove.
5105 (target_dcache_aspace_key): Change type.
5106 (target_dcache_init_p, target_dcache_invalidate)
5107 (target_dcache_get, target_dcache_get_or_init)
5108 (_initialize_target_dcache): Update.
5109 * dcache.h (struct dcache_deleter): New.
5111 2019-05-08 Tom Tromey <tom@tromey.com>
5113 * symtab.c (struct symbol_cache): Add destructor and
5115 (symbol_cache_key): Move. Change type.
5116 (make_symbol_cache, free_symbol_cache): Remove.
5117 (get_symbol_cache): Update.
5118 (symbol_cache_cleanup): Remove.
5119 (ALL_PSPACES, symbol_cache_flush)
5120 (maintenance_print_symbol_cache)
5121 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5124 2019-05-08 Tom Tromey <tom@tromey.com>
5126 * symtab.c (struct main_info): Add destructor and initializers.
5127 (main_progspace_key): Move. Change type.
5128 (get_main_info): Update.
5129 (main_info_cleanup): Remove.
5130 (_initialize_symtab): Update.
5132 2019-05-08 Tom Tromey <tom@tromey.com>
5134 * registry.h (DECLARE_REGISTRY): Define the _key class.
5136 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5138 * NEWS: Merge two 'New commands' sections.
5140 2019-05-08 Joel Brobecker <brobecker@adacore.com>
5142 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5143 parameter and use Ada language definition instead.
5144 (ada_val_print_ptr): Remove unused language parameter.
5145 (ada_val_print_num): Remove language parameter and use Ada language
5147 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5149 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5150 parameter and use Ada language definition instead.
5151 (ada_val_print_1): Update all ada_val_print_xxx calls.
5152 Remove language parameter.
5153 (ada_val_print): Update ada_val_print_1 call.
5155 2019-05-08 Tom Tromey <tromey@adacore.com>
5157 * remote.c (remote_hw_watchpoint_limit)
5158 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5161 2019-05-08 Tom Tromey <tromey@adacore.com>
5163 * maint.c (_initialize_maint_cmds): Move initialization code to
5165 (watchdog, show_watchdog): Move to remote.c.
5166 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5168 (_initialize_remote): Move initialization code from maint.c.
5169 * defs.h (watchdog): Don't declare.
5171 2019-05-08 Tom Tromey <tromey@adacore.com>
5173 * tui/tui-interp.c: Include main.h.
5174 * interps.c: Include main.h.
5175 * main.h (interpreter_p): Declare.
5176 * defs.h (interpreter_p): Don't declare.
5178 2019-05-08 Tom Tromey <tromey@adacore.com>
5180 * dwarf2loc.c: Include dwarf2read.h.
5181 * defs.h (read_unsigned_leb128): Don't declare.
5182 * dwarf2read.h (read_unsigned_leb128): Declare.
5184 2019-05-08 Tom Tromey <tromey@adacore.com>
5186 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5189 2019-05-08 Tom Tromey <tromey@adacore.com>
5191 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5192 when no wrap column is set.
5194 2019-05-08 Tom Tromey <tromey@adacore.com>
5196 * c-lang.c (c_get_string): Handle non-C-style arrays.
5198 2019-05-08 Tom Tromey <tromey@adacore.com>
5200 * typeprint.c (print_offset_data::update): Print the bit offset,
5201 not the number of bits remaining.
5203 2019-05-08 Tom Tromey <tromey@adacore.com>
5205 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5206 padding at end of comment.
5208 2019-05-08 Tom Tromey <tromey@adacore.com>
5210 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5213 2019-05-06 Tom Tromey <tom@tromey.com>
5215 * common/scoped_mmap.c: Include common-defs.h.
5216 * common/scoped_mmap.h: Don't include config.h.
5218 2019-05-04 Tom Tromey <tom@tromey.com>
5220 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5221 (struct aarch64_call_info): Add initializers.
5222 <si>: Now a std::vector.
5223 (pass_on_stack, aarch64_push_dummy_call): Update.
5225 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
5226 Tom Tromey <tom@tromey.com>
5228 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5229 (ppc_threads): Now a std::vector. Now static.
5230 (hwdebug_find_thread_points_by_tid)
5231 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5234 2019-05-04 Tom Tromey <tom@tromey.com>
5236 * arc-tdep.c (arc_tdesc_init): Return bool.
5238 2019-05-04 Tom Tromey <tom@tromey.com>
5240 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5241 Use gdb_assert_not_reached.
5243 2019-05-04 Tom Tromey <tom@tromey.com>
5245 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5248 2019-05-04 Tom Tromey <tom@tromey.com>
5250 * arc-tdep.c (arc_tdesc_init): Use bool.
5252 2019-05-04 Tom Tromey <tom@tromey.com>
5254 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5256 2019-05-04 Tom Tromey <tom@tromey.com>
5258 * cli/cli-cmds.c (valid_command_p): Return bool.
5260 2019-05-04 Tom Tromey <tom@tromey.com>
5262 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5263 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5265 2019-05-04 Raul Tambre <raul@tambre.ee>
5267 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5268 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5269 operator for comparison.
5271 2019-05-04 Tom Tromey <tom@tromey.com>
5273 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5274 (lookup_partial_symbol, print_partial_symbols)
5275 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5276 (psymbol_compare): Update.
5277 (add_psymbol_to_bcache): Clear the entire psymbol.
5278 (maintenance_check_psymtabs): Update.
5279 * psympriv.h (struct partial_symbol): Don't derive from
5280 general_symbol_info.
5281 <obj_section, unrelocated_address, address,
5282 set_unrelocated_address>: Update.
5283 <ginfo>: New member.
5284 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5285 (debug_names::write_psymbols): Update.
5287 2019-05-04 Tom de Vries <tdevries@suse.de>
5289 * contrib/cc-with-tweaks.sh: Support -n arg.
5291 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5293 * corelow.c (core_target::detach): Ensure frame cache and
5294 register caches are cleared.
5295 inferior.c (exit_inferior_1): Likewise.
5297 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5298 Tom Tromey <tom@tromey.com>
5300 * dictionary.c (collate_pending_symbols_by_language): Remove
5301 "struct" from foreach.
5302 * symtab.c (lookup_global_symbol_from_objfile)
5303 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5305 * ser-tcp.c (net_open): Remove "struct" from foreach.
5306 * objfiles.c (objfile_relocate, objfile_rebase)
5307 (objfile_has_symbols): Remove "struct" from foreach.
5308 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5310 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5312 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5313 "struct" from foreach.
5314 * ada-lang.c (create_excep_cond_exprs)
5315 (ada_exception_catchpoint_cond_string): Remove "struct" from
5318 2019-05-03 Tom Tromey <tromey@adacore.com>
5320 * ada-exp.y (convert_char_literal): Check suffix of each
5323 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5326 * ada-exp.y (yywrap): Don't define.
5327 * ada-lex.l (%option): Add noyywrap
5330 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5332 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5333 _WIN32_WINNT to the XP level, unless already defined to a higher
5336 * unittests/parse-connection-spec-selftests.c:
5338 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5341 * symfile.c (find_separate_debug_file): Remove colon from the
5342 drive spec of DOS/Windows file names of the target, so that the
5343 file name produced from DEBUGDIR and the target's directory will
5344 be valid on DOS/Windows systems.
5346 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5348 * rust-lang.c (val_print_struct): Handle printing structures
5351 2019-05-02 Tom Tromey <tromey@adacore.com>
5353 * valarith.c (_initialize_valarith): Remove.
5355 2019-05-01 Tom Tromey <tromey@adacore.com>
5357 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5360 2019-05-01 Tom Tromey <tromey@adacore.com>
5362 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5363 for big-endian copies.
5365 2019-04-30 Ali Tamur <tamur@google.com>
5366 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5367 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5368 (read_3_bytes): New function.
5370 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5372 * windows-nat.c (main_thread_id): Delete.
5373 (handle_output_debug_string): Replace main_thread_id by
5374 current_event.dwThreadId.
5375 (fake_create_process): Likewise.
5376 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5377 Do not set main_thread_id.
5378 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5379 current_event.dwThreadId.
5380 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5382 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5384 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5385 Use current_event.dwThreadId instead of main_thread_id.
5387 2019-04-30 Tom Tromey <tromey@adacore.com>
5389 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5390 (create_excep_cond_exprs): Iterate over program spaces.
5391 (ada_exception_catchpoint_cond_string): Examine all minimal
5392 symbols for exception types.
5394 2019-04-30 Tom Tromey <tromey@adacore.com>
5397 * dwarf2read.c (process_structure_scope): Handle case where type
5398 has template parameters but no symbol was created.
5400 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5401 Chris January <chris.january@arm.com>
5403 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5405 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5407 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5409 * f-typeprint.c (f_print_type): Update rules for printing
5411 (f_type_print_varspec_suffix): Likewise.
5413 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5414 Chris January <chris.january@arm.com>
5416 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5419 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5421 * f-lang.c (build_fortran_types): Change name of void type to
5423 * f-typeprint.c (f_type_print_base): Print the name of the void
5424 type, rather than a fixed string.
5425 * f-valprint.c (f_decorations): Use lower case void string.
5427 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5428 Chris January <chris.january@arm.com>
5430 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5433 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5434 Chris January <chris.january@arm.com>
5435 David Lecomber <david.lecomber@arm.com>
5437 * f-exp.y (BINOP_INTRINSIC): New token.
5438 (exp): New parser rule handling BINOP_INTRINSIC.
5439 (f77_keywords): Add new builtin procedures.
5440 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5441 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5442 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5443 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5444 (print_unop_subexp_f): New function.
5445 (print_binop_subexp_f): New function.
5446 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5447 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5448 (dump_subexp_body_f): Likewise.
5449 (operator_check_f): Likewise.
5450 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5451 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5453 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5455 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5457 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5458 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5459 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5460 (operator_length_f): New fuction.
5461 (print_subexp_f): New function.
5462 (op_name_f): New function.
5463 (dump_subexp_body_f): New function.
5464 (operator_check_f): New function.
5465 (exp_descriptor_f): Replace standard expression handling functions
5467 * gdb/fortran-operator.def: New file.
5468 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5469 * gdb/std-operator.def: Remove UNOP_KIND.
5471 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5473 * std-operator.def: Remove unbalanced, stray double quote
5476 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5477 Chris January <chris.january@arm.com>
5478 Daniel Everett <daniel.everett@arm.com>
5479 Nick Forrington <nick.forrington@arm.com>
5480 Richard Bunt <richard.bunt@arm.com>
5482 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5483 of depth when printing anonymous structs or unions.
5484 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5485 Don't print either the top-level value, or the children if the
5486 max-depth is exceeded.
5487 (ppscm_print_children): When printing the key of a map, allow one
5488 extra level of depth.
5489 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5490 print either the top-level value, or the children if the max-depth
5492 (print_children): When printing the key of a map, allow one extra
5494 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5495 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5496 (user_print_options): Initialise max_depth field.
5497 (val_print_scalar_or_string_type_p): New function.
5498 (val_print): Check to see if the max depth has been reached.
5499 (val_print_check_max_depth): Define new function.
5500 (show_print_max_depth): New function.
5501 (_initialize_valprint): Add 'print max-depth' option.
5502 * valprint.h (struct value_print_options) <max_depth>: New field.
5503 (val_print_check_max_depth): Declare new function.
5504 * NEWS: Document new feature.
5506 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5508 * ada-lang.c (ada_language_defn): Initialise new field.
5509 * c-lang.c (c_is_string_type_p): New function.
5510 (c_language_defn): Initialise new field.
5511 (cplus_language_defn): Initialise new field.
5512 (asm_language_defn): Initialise new field.
5513 (minimal_language_defn): Initialise new field.
5514 * c-lang.h (c_is_string_type_p): Declare new function.
5515 * d-lang.c (d_language_defn): Initialise new field.
5516 * f-lang.c (f_is_string_type_p): New function.
5517 (f_language_defn): Initialise new field.
5518 * go-lang.c (go_is_string_type_p): New function.
5519 (go_language_defn): Initialise new field.
5520 * language.c (default_is_string_type_p): New function.
5521 (unknown_language_defn): Initialise new field.
5522 (auto_language_defn): Initialise new field.
5523 * language.h (struct language_defn) <la_is_string_type_p>: New
5525 (default_is_string_type_p): Declare new function.
5526 * m2-lang.c (m2_language_defn): Initialise new field.
5527 * objc-lang.c (objc_language_defn): Initialise new field.
5528 * opencl-lang.c (opencl_language_defn): Initialise new field.
5529 * p-lang.c (pascal_is_string_type_p): New function.
5530 (pascal_language_defn): Initialise new field.
5531 * rust-lang.c (rust_is_string_type_p): New function.
5532 (rust_language_defn): Initialise new field.
5534 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5536 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5538 * ada-lang.c (ada_language_defn): Initialise new field.
5539 * c-lang.c (c_language_defn): Likewise.
5540 (cplus_language_defn): Likewise.
5541 (asm_language_defn): Likewise.
5542 (minimal_language_defn): Likewise.
5543 * d-lang.c (d_language_defn): Likewise.
5544 * f-lang.c (f_language_defn): Likewise.
5545 * go-lang.c (go_language_defn): Likewise.
5546 * language.c (unknown_language_defn): Likewise.
5547 (auto_language_defn): Likewise.
5548 * m2-lang.c (m2_language_defn): Likewise.
5549 * objc-lang.c (objc_language_defn): Likewise.
5550 * opencl-lang.c (opencl_language_defn): Likewise.
5551 * p-lang.c (pascal_language_defn): Likewise.
5552 * rust-lang.c (rust_language_defn): Likewise.
5554 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5556 * ada-lang.c (ada_is_character_type): Change return type to bool.
5557 (ada_is_string_type): Likewise.
5558 * ada-lang.h (ada_is_character_type): Update declaration
5559 (ada_is_string_type): Likewise.
5561 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5563 Support style in 'frame|thread apply'
5565 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5566 * record.c (record_start, record_stop): Update callers of
5567 execute_command_to_string with false.
5568 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5569 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5571 (class string_file): New constructor with term_out parameter.
5572 Override methods term_out and can_emit_style_escape. New member
5574 (class stdio_file): Override can_emit_style_escape.
5575 (class tee_file): Override term_out and can_emit_style_escape.
5576 * utils.h (can_emit_style_escape): Remove.
5577 * utils.c (can_emit_style_escape): Likewise.
5578 Update all callers of can_emit_style_escape (SOMESTREAM) to
5579 SOMESTREAM->can_emit_style_escape.
5580 * source-cache.c (source_cache::get_source_lines): Likewise.
5581 * stack.c (frame_apply_command_count): Call execute_command_to_string
5582 passing the term_out characteristic of the current gdb_stdout.
5583 * thread.c (thr_try_catch_cmd): Likewise.
5584 * top.c (execute_command_to_string): pass term_out parameter
5585 to construct the string_file for the command output.
5586 * ui-file.c (term_cli_styling): New function (most code moved
5587 from utils.c can_emit_style_escape).
5588 (string_file::string_file, string_file::can_emit_style_escape,
5589 stdio_file::can_emit_style_escape, tee_file::term_out,
5590 tee_file::can_emit_style_escape): New functions.
5592 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5594 * NEWS: Mention the new set|show may-call-functions.
5595 * infcall.c (may_call_functions_p): New variable.
5596 (show_may_call_functions_p): New function.
5597 (call_function_by_hand_dummy): Throws an error if not
5599 (_initialize_infcall): Call add_setshow_boolean_cmd for
5602 2019-04-25 Keith Seitz <keiths@redhat.com>
5605 * cp-support.c (inspect_type): Don't attempt substitutions
5606 of symbol with the same name.
5608 2019-04-25 Tom Tromey <tromey@adacore.com>
5611 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5614 2019-04-25 Tom Tromey <tromey@adacore.com>
5616 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5618 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5619 (gdb_xml_parser::parse): Use std::move.
5620 * python/python-internal.h (gdbpy_convert_exception): Take a const
5622 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5624 * python/py-utils.c (gdbpy_convert_exception): Take a const
5626 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5628 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5630 * mi/mi-main.c (mi_print_exception): Take a const reference.
5631 * main.c (handle_command_errors): Take a const reference.
5632 * linespec.c (parse_linespec): Use std::move.
5633 * infcall.c (run_inferior_call): Use std::move.
5634 (call_function_by_hand_dummy): Use std::move.
5635 * exec.c (try_open_exec_file): Use std::move.
5636 * exceptions.h (exception_print, exception_fprintf)
5637 (exception_print_same): Update.
5638 * exceptions.c (print_exception, exception_print)
5639 (exception_fprintf, exception_print_same): Change parameters to
5641 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5642 * common/new-op.c: Use std::move.
5643 * common/common-exceptions.h (struct gdb_exception): Add move
5645 (struct gdb_exception_error, struct gdb_exception_quit, struct
5646 gdb_quit_bad_alloc): Change constructor to move constructor.
5647 (throw_exception): Change parameter to rvalue reference.
5648 * common/common-exceptions.c (throw_exception): Take rvalue
5650 * cli/cli-interp.c (safe_execute_command): Use std::move.
5651 * breakpoint.c (insert_bp_location, location_to_sals): Use
5654 2019-04-25 Tom Tromey <tromey@adacore.com>
5656 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5657 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5658 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5659 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5660 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5661 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5662 guile/scm-value.c: Use unpack.
5663 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5664 gdbscm_gdb_exception.
5665 (gdbscm_throw_gdb_exception): Likewise.
5666 (struct gdbscm_gdb_exception): New.
5667 (unpack): New function.
5668 (gdbscm_wrap): Use unpack.
5670 2019-04-25 Tom Tromey <tromey@adacore.com>
5672 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5673 (gdb_rl_callback_handler): Use std::move.
5674 * common/common-exceptions.h (struct gdb_exception): Add move
5675 assignment operator.
5676 (throw_exception_sjlj): Change "exception" to const reference.
5677 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5678 (throw_exception_sjlj): Change "exception" to const reference.
5680 2019-04-25 Tom Tromey <tromey@adacore.com>
5682 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5683 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5684 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5686 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5688 * mi/mi-interp.c (mi_interp::exec): Update.
5689 * linespec.c (parse_linespec): Update.
5690 * infcall.c (run_inferior_call): Update.
5691 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5692 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5693 (gdbscm_lookup_global_symbol): Update.
5694 * guile/scm-param.c (gdbscm_parameter_value): Update.
5695 * guile/scm-frame.c (gdbscm_frame_read_register)
5696 (gdbscm_frame_read_var): Update.
5697 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5698 * exec.c (try_open_exec_file): Update.
5699 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5700 (gdb_rl_callback_handler): Update.
5701 * common/common-exceptions.h (exception_none): Don't declare.
5702 * common/common-exceptions.c (exception_none): Don't define.
5703 (struct catcher) <exception>: Update.
5704 * cli/cli-interp.c (safe_execute_command): Update.
5705 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5707 2019-04-25 Ali Tamur <tamur@google.com>
5709 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5710 (read_attribute_value): Likewise.
5711 (dwarf2_read_addr_index): Update comment.
5712 (read_str_index): Add DW_FORM_strx.
5713 (dwarf2_string_attr): Likewise.
5714 (dwarf2_const_value_attr): Likewise.
5715 (dump_die_shallow): Likewise.
5716 (dwarf2_fetch_constant_bytes): Likewise.
5717 (skip_form_bytes): Likewise.
5718 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5720 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5724 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5725 OFFSET. Verify if current mapping contains an ELF header.
5726 (linux_find_memory_regions_full): Adjust call to
5729 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5730 Kang Li <kanglictf@gmail.com>
5734 * dwarf2-frame.c (read_initial_length): Be consistent about using
5735 unsigned representation of length.
5736 (decode_frame_entry_1): Likewise. Check for wraparound of
5737 end pointer as well as buffer overflow.
5739 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5741 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5744 2019-04-24 Tom Tromey <tromey@adacore.com>
5746 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5748 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5750 * s12z-tdep.c (s12z_unwind_pc): Delete.
5751 (s12z_unwind_sp): Delete.
5752 (s12z_gdbarch_init): Don't register deleted functions with
5755 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5757 * rl78-tdep.c (rl78_unwind_sp): Delete.
5758 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5760 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5762 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5763 (xstormy16_unwind_pc): Delete.
5764 (xstormy16_dummy_id): Delete.
5765 (xstormy16_gdbarch_init): Don't register deleted functions with
5768 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5770 * vax-tdep.c (vax_unwind_pc): Delete.
5771 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5773 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5775 * v850-tdep.c (v850_unwind_sp): Delete.
5776 (v850_unwind_pc): Delete.
5777 (v850_dummy_id): Delete.
5778 (v850_gdbarch_init): Don't register deleted functions with
5781 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5783 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5784 (tilegx_unwind_pc): Delete.
5785 (tilegx_unwind_dummy_id): Delete.
5786 (tilegx_gdbarch_init): Don't register deleted functions with
5789 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5791 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5792 (tic6x_dummy_id): Delete.
5793 (tic6x_gdbarch_init): Don't register deleted functions with
5796 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5798 * sparc-tdep.c (sparc_unwind_pc): Delete.
5799 (sparc32_gdbarch_init): Don't register deleted function with
5802 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5804 * sh-tdep.c (sh_unwind_sp): Delete.
5805 (sh_unwind_pc): Delete.
5806 (sh_dummy_id): Delete.
5807 (sh_gdbarch_init): Don't register deleted functions with
5810 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5812 * score-tdep.c (score_unwind_sp): Delete.
5813 (score_unwind_pc): Delete.
5814 (score_dummy_id): Delete.
5815 (score_gdbarch_init): Don't register deleted functions with
5818 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5820 * rx-tdep.c (rx_unwind_pc): Delete.
5821 (rx_unwind_sp): Delete.
5822 (rx_dummy_id): Delete.
5823 (rx_gdbarch_init): Don't register deleted functions with
5824 gdbarch. Update comment.
5826 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5828 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5829 (rs6000_dummy_id): Delete.
5830 (rs6000_gdbarch_init): Don't register deleted functions with
5833 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5835 * or1k-tdep.c (or1k_dummy_id): Delete.
5836 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5838 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5840 * nios2-tdep.c (nios2_dummy_id): Delete.
5841 (nios2_unwind_sp): Delete.
5842 (nios2_gdbarch_init): Don't register deleted functions with
5845 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5847 * nds32-tdep.c (nds32_dummy_id): Delete.
5848 (nds32_unwind_pc): Delete.
5849 (nds32_unwind_sp): Delete.
5850 (nds32_gdbarch_init): Don't register deleted functions with
5853 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5855 * msp430-tdep.c (msp430_unwind_pc): Delete.
5856 (msp430_unwind_sp): Delete.
5857 (msp430_dummy_id): Delete.
5858 (msp430_gdbarch_init): Don't register deleted functions with
5861 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5863 * moxie-tdep.c (moxie_unwind_sp): Delete.
5864 (moxie_unwind_pc): Delete.
5865 (moxie_dummy_id): Delete.
5866 (moxie_gdbarch_init): Don't register deleted functions with
5869 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5871 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5872 (mn10300_unwind_pc): Delete.
5873 (mn10300_unwind_sp): Delete.
5874 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5876 (mn10300_frame_unwind_init): Don't register deleted functions with
5879 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5881 * mep-tdep.c (mep_unwind_pc): Delete.
5882 (mep_unwind_sp): Delete.
5883 (mep_dummy_id): Delete.
5884 (mep_gdbarch_init): Don't register deleted functions with
5887 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5889 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5890 (m68hc11_unwind_sp): Delete.
5891 (m68hc11_gdbarch_init): Don't register deleted functions with
5894 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5896 * m32r-tdep.c (m32r_unwind_sp): Delete.
5897 (m32r_unwind_pc): Delete.
5898 (m32r_dummy_id): Delete.
5899 (m32r_gdbarch_init): Don't register deleted functions with
5902 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5904 * m32c-tdep.c (m32c_unwind_pc): Delete.
5905 (m32c_unwind_sp): Delete.
5906 (m32c_dummy_id): Delete.
5907 (m32c_gdbarch_init): Don't register deleted functions with
5910 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5912 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5913 (lm32_unwind_pc): Delete.
5914 (lm32_dummy_id): Delete.
5915 (lm32_gdbarch_init): Don't register deleted functions with
5918 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5920 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5921 (iq2000_unwind_pc): Delete.
5922 (iq2000_dummy_id): Delete.
5923 (iq2000_gdbarch_init): Don't register deleted functions with
5926 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5928 * nds32-tdep.c (nds32_type_align): Delete.
5929 (nds32_push_dummy_call): Use type_align instead.
5931 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5933 * arm-tdep.c (arm_type_align): Only handle vector override case.
5934 (arm_push_dummy_call): Use type_align.
5935 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5937 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5939 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5941 (pass_on_stack): Use type_align.
5942 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5945 2019-04-23 Tom Tromey <tromey@adacore.com>
5947 * dwarf2read.c (line_header::file_name_at): Remove unused
5950 2019-04-23 Tom de Vries <tdevries@suse.de>
5953 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5957 2019-03-27 Ali Tamur <tamur@google.com>
5959 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5960 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5961 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5962 (dwarf_expr_context::get_addr_index): Likewise
5963 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5964 (symbol_needs_eval_context::get_addr_index): Likewise
5965 (disassemble_dwarf_expression): Add DW_OP_addrx
5966 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5967 (read_cutu_die_from_dwo): Update comment
5968 (skip_one_die): Add DW_FORM_addrx
5969 (read_attribute_value): Likewise
5970 (var_decode_location): Add DW_OP_addrx
5971 (dwarf2_const_value_attr): Add DW_FORM_addrx
5972 (dump_die_shallow): Likewise
5973 (dwarf2_fetch_constant_bytes): Likewise
5974 (decode_locdesc): Add DW_OP_addrx
5975 (skip_form_bytes): Add DW_FORM_addrx
5977 2019-04-22 Ali Tamur <tamur@google.com>
5979 * MAINTAINERS (Write After Approval): Add self.
5981 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
5983 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5984 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5985 (open_symbol_file_object): Likewise.
5986 (svr4_default_sos): Add info parameter.
5987 (svr4_read_so_list): Likewise.
5988 (svr4_current_sos_direct): Adjust functions calls to pass down
5990 (svr4_current_sos_1): Add info parameter.
5991 (svr4_current_sos): Call get_svr4_info, pass info down to
5993 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5995 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5997 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5999 (probes_table_remove_objfile_probes): Likewise.
6000 (register_solib_event_probe): Add info parameter.
6001 (solist_update_incremental): Pass info parameter down to
6003 (disable_probes_interface): Add info parameter.
6004 (svr4_handle_solib_event): Pass current_program_space to
6005 get_svr4_info. Adjust disable_probes_interface cleanup.
6006 (svr4_create_probe_breakpoints): Add info parameter, pass it
6007 down to register_solib_event_probe.
6008 (svr4_create_solib_event_breakpoints): Add info parameter,
6009 pass it down to svr4_create_probe_breakpoints.
6010 (enable_break): Pass info down to
6011 svr4_create_solib_event_breakpoints.
6012 (svr4_solib_create_inferior_hook): Pass current_program_space to
6014 (svr4_clear_solib): Likewise.
6016 2019-04-22 Pedro Alves <palves@redhat.com>
6018 * solib-svr4.c (svr4_free_objfile_observer): New.
6019 (probe_and_action::objfile): New field.
6020 (probes_table_htab_remove_objfile_probes)
6021 (probes_table_remove_objfile_probes): New functions.
6022 (register_solib_event_probe): Add 'objfile' parameter. Store it
6023 in the new probe_and_action. Don't store the probe in 'lookup'.
6024 (svr4_create_probe_breakpoints): Pass objfile to
6025 register_solib_event_probe.
6026 (_initialize_svr4_solib): Register a free_objfile observer.
6028 2019-04-19 Tom Tromey <tom@tromey.com>
6030 * common/queue.h: Remove.
6032 2019-04-19 Tom Tromey <tom@tromey.com>
6034 * event-loop.c: Don't include "common/queue.h".
6036 2019-04-19 Tom Tromey <tom@tromey.com>
6038 * remote.c (remote_target): Use delete.
6039 * remote-notif.h: Include <list>, not "common/queue.h".
6040 (notif_client_p): Remove typedef.
6041 (remote_notif_state): Add constructor, destructor, initializer.
6042 <notif_queue>: Now a std::list.
6043 (remote_notif_state_xfree): Don't declare.
6044 * remote-notif.c (remote_notif_process, handle_notification)
6045 (remote_notif_state_allocate): Update.
6046 (~remote_notif_state): Rename from remote_notif_state_xfree.
6048 2019-04-19 Tom Tromey <tom@tromey.com>
6050 * symfile.c (reread_symbols): Update.
6051 * objfiles.c (objfile_register_static_link)
6052 (objfile_lookup_static_link): Update
6053 (~objfile) Don't delete static_links.
6054 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6056 2019-04-19 Tom Tromey <tom@tromey.com>
6058 * type-stack.h (struct type_stack) <insert>: Constify string.
6059 * type-stack.c (type_stack::insert): Constify string.
6060 * gdbtypes.h (lookup_template_type): Update.
6061 (address_space_name_to_int): Update.
6062 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6064 (lookup_template_type): Make name const.
6065 * c-exp.y: Update rules.
6066 (lex_one_token, classify_name, classify_inner_name)
6067 (c_print_token): Update.
6068 * p-exp.y: Update rules.
6070 * f-exp.y: Update rules.
6072 * d-exp.y: Update rules.
6073 (lex_one_token, classify_name, classify_inner_name): Update.
6074 * parse.c (write_dollar_variable, copy_name): Return std::string.
6075 * parser-defs.h (copy_name): Change return type.
6076 * m2-exp.y: Update rules.
6078 * go-exp.y (lex_one_token): Update.
6080 (classify_unsafe_function, classify_packaged_name)
6081 (classify_name, yylex): Update.
6083 2019-04-19 Sergei Trofimovich <siarheit@google.com>
6085 * configure.ac: add --enable-source-highlight switch.
6086 * configure: Regenerate.
6087 * top.c (print_gdb_version): plumb --enable-source-highlight
6088 status to "show configuration".
6090 2019-04-19 Tom Tromey <tromey@adacore.com>
6092 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6094 (empty_record, ada_template_to_fixed_record_type_1)
6095 (template_to_static_fixed_type)
6096 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6097 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6098 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6101 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6104 * source.c (print_source_lines_base): Advance "iter" when a
6105 control character is seen.
6107 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6109 * inferior.h (struct infcall_suspend_state_deleter):
6110 Catch exception in destructor to avoid crash.
6112 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6114 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6115 close to the add_com "shell".
6117 2019-04-18 Tom Tromey <tromey@adacore.com>
6119 * process-stratum-target.h (class process_stratum_target)
6120 <stratum>: Add "final".
6122 2019-04-17 Tom Tromey <tromey@adacore.com>
6124 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6125 against nullptr before use.
6127 2019-04-17 Alan Hayward <alan.hayward@arm.com>
6129 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6131 2019-04-17 Jim Wilson <jimw@sifive.com>
6132 Andrew Burgess <andrew.burgess@embecosm.com>
6134 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6135 code read might fail, assume 4-byte breakpoint in that case.
6137 2019-04-15 Leszek Swirski <leszeks@google.com>
6139 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6140 rather than a hand-rolled POD check when checking for forced MEMORY
6143 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6145 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6146 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6148 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6149 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6150 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6153 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6155 * aarch64-linux-nat.c
6156 (aarch64_linux_nat_target::thread_architecture): Add override.
6157 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6160 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6162 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6164 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6166 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6167 target types of size 96-bits, add some additional comments, and
6168 check that the builtin type we found was the correct size.
6170 2019-04-12 Eli Zaretskii <eliz@gnu.org>
6172 * utils.c (prompt_for_continue): Don't restore the styling at the
6173 end, as applied_style has the wrong value. This fixes styling in
6174 long lists of file names that are interrupted by the "Continue?"
6177 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6179 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6180 * c-lang.c (c_language_defn): Likewise.
6181 (cplus_language_defn): Likewise.
6182 (asm_language_defn): Likewise.
6183 (minimal_language_defn): Likewise.
6184 * d-lang.c (d_language_defn): Likewise.
6185 * f-lang.c (f_language_defn): Likewise.
6186 * go-lang.c (go_language_defn): Likewise.
6187 * language.c (unknown_language_defn): Likewise.
6188 (auto_language_defn): Likewise.
6189 * language.h (struct language_defn): Remove la_magic field.
6190 (LANG_MAGIC): Delete.
6191 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6192 * objc-lang.c (objc_language_defn): Likewise.
6193 * opencl-lang.c (opencl_language_defn): Likewise.
6194 * p-lang.c (pascal_language_defn): Likewise.
6195 * rust-lang.c (rust_language_defn): Likewise.
6197 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6199 * riscv-tdep.c (riscv_type_align): New function.
6200 (riscv_type_alignment): Delete.
6201 (riscv_arg_location): Use 'type_align'.
6202 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6204 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6206 * gdbtypes.c (type_align): A struct with no non-static fields also
6209 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6211 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6213 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6215 (riscv_struct_info::analyse): New implementation using new
6216 analyse_inner member function.
6217 (riscv_struct_info::field_offset): New member function.
6218 (riscv_struct_info::m_offsets): New member variable.
6219 (riscv_struct_info::analyse_inner): New private member function,
6220 takes the old implementation of riscv_struct_info::analyse but
6221 extended to track field offsets.
6222 (riscv_call_arg_struct): Update the struct folding special cases
6223 to handle cases where empty C++ structs, which are non-zero
6225 (riscv_arg_location): Initialise the length of each location, a
6226 non-zero length now indicates the location is in use.
6227 (riscv_push_dummy_call): Allow for the first location having a
6228 non-zero offset when setting up arguments.
6229 (riscv_return_value): Likewise, but for return values.
6231 2019-04-11 Tom Tromey <tromey@adacore.com>
6233 * utils.c (internal_vproblem): Make "msg" const.
6235 2019-04-11 Alan Hayward <alan.hayward@arm.com>
6237 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6238 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6239 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6240 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6242 2019-04-10 Kevin Buettner <kevinb@redhat.com>
6244 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6246 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6247 of amd64_collect_native_gregset.
6248 (amd64_linux_nat_target::store_registers): Likewise.
6250 2019-04-10 Tom Tromey <tom@tromey.com>
6252 * symtab.c (lookup_global_symbol_from_objfile)
6253 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6254 * objfiles.h (class separate_debug_iterator): New.
6255 (class separate_debug_range): New.
6256 (struct objfile) <separate_debug_objfiles>: New method.
6257 (objfile_separate_debug_iterate): Don't declare.
6258 * objfiles.c (separate_debug_iterator::operator++): Rename from
6259 objfile_separate_debug_iterate.
6260 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6262 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6265 2019-04-10 Tom Tromey <tom@tromey.com>
6267 * symfile.c (reread_symbols): Remove old comment.
6268 * objfiles.c (free_all_objfiles): Fix a typo.
6270 2019-04-10 Tom Tromey <tom@tromey.com>
6272 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6273 * minsyms.c (lookup_minimal_symbol): Use foreach.
6274 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6275 (lookup_minimal_symbol_solib_trampoline): Likewise.
6276 * symfile.c (reread_symbols): Use foreach.
6278 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
6279 Tom Tromey <tromey@adacore.com>
6282 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6283 (rust_lex_int_test): Change "value" to be LONGEST.
6284 (rust_lex_tests): Add test for long integer literal.
6286 2019-04-09 Tom Tromey <tromey@adacore.com>
6288 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6290 (extended_remote_target::attach): Update.
6291 (remote_target::remote_notice_new_inferior): Update.
6292 (remote_target::add_current_inferior_and_thread): Update.
6293 * inferior.c (exit_inferior_1): Use "false".
6294 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6296 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
6298 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6299 the "start" command.
6301 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6303 * python/py-inferior.c (infpy_thread_from_thread_handle):
6304 Adjust comments to reflect renaming of thread_from_thread_handle
6305 to thread_from_handle. Adjust keywords. Fix type error message.
6306 (inferior_object_methods): Add thread_from_handle. Retain
6307 thread_from_thread_handle, but mark it as deprecated.
6309 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6311 * gdbthread.h (find_thread_by_handle): Revise declaration.
6312 * thread.c (find_thread_by_handle): Likewise. Adjust
6314 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6315 support for buffer objects as handles.
6317 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6319 * python/py-infthread.c (thpy_thread_handle): New function.
6320 (thread_object_methods): Register thpy_thread_handle.
6322 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6324 * gdbthread.h (thread_to_thread_handle): Declare.
6325 * thread.c (gdbtypes.h): Include.
6326 (thread_to_thread_handle): New function.
6328 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6329 (target_thread_info_to_thread_handle): Declare.
6330 * target.c (target_thread_info_to_thread_handle): New function.
6331 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6332 * target-delegates.c: Regenerate.
6334 * linux-thread-db.c (class thread_db_target): Add method
6335 thread_info_to_thread_handle.
6336 (thread_db_target::thread_info_to_thread_handle): Define.
6337 * remote.c (class remote_target): Add new method
6338 thread_info_to_thread_handle.
6339 (remote_target::thread_info_to_thread_handle): Define.
6341 2019-04-08 Pedro Alves <palves@redhat.com>
6343 * common/common-exceptions.c (throw_exception): Don't create
6344 named object to throw; throw directly.
6345 (throw_it): Likewise. Don't initialize gdb_exception::message
6346 here, with new; pass FMT and AP to the ctor instead.
6347 * common/common-exceptions.h: Include <string>.
6348 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6349 const char *, va_list)): New ctor. Use std::make_shared.
6350 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6352 (gdb_exception_error::gdb_exception_error(enum errors, const char
6354 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6356 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6358 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6359 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6362 2019-04-08 Tom Tromey <tom@tromey.com>
6364 * valops.c (value_rtti_indirect_type): Replace throw_exception
6366 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6368 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6370 * target.c (target_translate_tls_address): Replace throw_exception
6372 * stack.c (frame_apply_command_count): Replace throw_exception
6374 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6376 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6378 * rs6000-tdep.c (rs6000_frame_cache)
6379 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6380 * remote.c: Replace throw_exception with throw.
6381 * record-full.c (record_full_message, record_full_wait_1)
6382 (record_full_restore): Replace throw_exception with throw.
6384 (get_thread_current_frame_id, record_btrace_start_replaying)
6385 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6386 (cmd_record_btrace_start): Replace throw_exception with throw.
6387 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6389 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6390 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6392 (find_linespec_symbols): Replace throw_exception with throw.
6393 * infrun.c (displaced_step_prepare, resume): Replace
6394 throw_exception with throw.
6395 * infcmd.c (post_create_inferior): Replace throw_exception with
6397 * inf-loop.c (inferior_event_handler): Replace throw_exception
6399 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6400 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6401 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6402 (get_prev_frame_always, get_frame_pc_if_available)
6403 (get_frame_address_in_block_if_available, get_frame_language):
6404 Replace throw_exception with throw.
6405 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6406 throw_exception with throw.
6407 * eval.c (fetch_subexp_value, evaluate_var_value)
6408 (evaluate_funcall, evaluate_subexp_standard): Replace
6409 throw_exception with throw.
6410 * dwarf2loc.c (call_site_find_chain)
6411 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6412 Replace throw_exception with throw.
6413 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6415 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6417 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6418 * completer.c (complete_line_internal): Replace throw_exception
6420 * compile/compile-object-run.c (compile_object_run): Replace
6421 throw_exception with throw.
6422 * cli/cli-script.c (process_next_line): Replace throw_exception
6424 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6425 (btrace_enable, btrace_maint_update_pt_packets): Replace
6426 throw_exception with throw.
6427 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6428 throw_exception with throw.
6429 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6430 throw_exception with throw.
6431 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6432 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6433 * aarch64-tdep.c (aarch64_make_prologue_cache)
6434 (aarch64_make_stub_cache): Replace throw_exception with throw.
6436 2019-04-08 Tom Tromey <tom@tromey.com>
6438 * common/common-exceptions.c (throw_exception): Rename from
6439 throw_exception_cxx. Remove old copy. Make argument const.
6440 (throw_it): Create and throw exception objects directly.
6441 * common/common-exceptions.h (throw_exception): Make argument
6443 (struct gdb_exception_error): Add constructor.
6444 (struct gdb_exception_quit): Add constructor.
6446 2019-04-08 Tom Tromey <tom@tromey.com>
6448 * common/common-exceptions.h (exception_rethrow): Don't declare.
6449 (TRY_SJLJ): Update comment.
6450 (TRY, CATCH, END_CATCH): Remove.
6451 * common/common-exceptions.c (exception_rethrow): Remove.
6453 2019-04-08 Tom Tromey <tom@tromey.com>
6455 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6457 (gdb_exception_error): Rename from
6458 gdb_exception_RETURN_MASK_ERROR.
6459 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6460 (gdb_quit_bad_alloc): Update.
6461 * aarch64-tdep.c: Update.
6462 * ada-lang.c: Update.
6463 * ada-typeprint.c: Update.
6464 * ada-valprint.c: Update.
6465 * amd64-tdep.c: Update.
6466 * arch-utils.c: Update.
6467 * break-catch-throw.c: Update.
6468 * breakpoint.c: Update.
6470 * c-varobj.c: Update.
6471 * cli/cli-cmds.c: Update.
6472 * cli/cli-interp.c: Update.
6473 * cli/cli-script.c: Update.
6474 * common/common-exceptions.c: Update.
6475 * common/new-op.c: Update.
6476 * common/selftest.c: Update.
6477 * compile/compile-c-symbols.c: Update.
6478 * compile/compile-cplus-symbols.c: Update.
6479 * compile/compile-object-load.c: Update.
6480 * compile/compile-object-run.c: Update.
6481 * completer.c: Update.
6482 * corelow.c: Update.
6484 * cp-support.c: Update.
6485 * cp-valprint.c: Update.
6486 * darwin-nat.c: Update.
6487 * disasm-selftests.c: Update.
6488 * dtrace-probe.c: Update.
6489 * dwarf-index-cache.c: Update.
6490 * dwarf-index-write.c: Update.
6491 * dwarf2-frame-tailcall.c: Update.
6492 * dwarf2-frame.c: Update.
6493 * dwarf2loc.c: Update.
6494 * dwarf2read.c: Update.
6496 * event-loop.c: Update.
6497 * event-top.c: Update.
6499 * f-valprint.c: Update.
6500 * fbsd-tdep.c: Update.
6501 * frame-unwind.c: Update.
6503 * gdbtypes.c: Update.
6504 * gnu-v3-abi.c: Update.
6505 * guile/guile-internal.h: Update.
6506 * guile/scm-block.c: Update.
6507 * guile/scm-breakpoint.c: Update.
6508 * guile/scm-cmd.c: Update.
6509 * guile/scm-disasm.c: Update.
6510 * guile/scm-frame.c: Update.
6511 * guile/scm-lazy-string.c: Update.
6512 * guile/scm-math.c: Update.
6513 * guile/scm-param.c: Update.
6514 * guile/scm-ports.c: Update.
6515 * guile/scm-pretty-print.c: Update.
6516 * guile/scm-symbol.c: Update.
6517 * guile/scm-symtab.c: Update.
6518 * guile/scm-type.c: Update.
6519 * guile/scm-value.c: Update.
6520 * i386-linux-tdep.c: Update.
6521 * i386-tdep.c: Update.
6522 * inf-loop.c: Update.
6523 * infcall.c: Update.
6527 * language.c: Update.
6528 * linespec.c: Update.
6529 * linux-fork.c: Update.
6530 * linux-nat.c: Update.
6531 * linux-tdep.c: Update.
6532 * linux-thread-db.c: Update.
6534 * mi/mi-cmd-break.c: Update.
6535 * mi/mi-cmd-stack.c: Update.
6536 * mi/mi-interp.c: Update.
6537 * mi/mi-main.c: Update.
6538 * objc-lang.c: Update.
6539 * p-valprint.c: Update.
6541 * ppc-linux-tdep.c: Update.
6542 * printcmd.c: Update.
6543 * python/py-arch.c: Update.
6544 * python/py-breakpoint.c: Update.
6545 * python/py-cmd.c: Update.
6546 * python/py-finishbreakpoint.c: Update.
6547 * python/py-frame.c: Update.
6548 * python/py-framefilter.c: Update.
6549 * python/py-gdb-readline.c: Update.
6550 * python/py-inferior.c: Update.
6551 * python/py-infthread.c: Update.
6552 * python/py-lazy-string.c: Update.
6553 * python/py-linetable.c: Update.
6554 * python/py-objfile.c: Update.
6555 * python/py-param.c: Update.
6556 * python/py-prettyprint.c: Update.
6557 * python/py-progspace.c: Update.
6558 * python/py-record-btrace.c: Update.
6559 * python/py-record.c: Update.
6560 * python/py-symbol.c: Update.
6561 * python/py-type.c: Update.
6562 * python/py-unwind.c: Update.
6563 * python/py-utils.c: Update.
6564 * python/py-value.c: Update.
6565 * python/python.c: Update.
6566 * record-btrace.c: Update.
6567 * record-full.c: Update.
6568 * remote-fileio.c: Update.
6570 * riscv-tdep.c: Update.
6571 * rs6000-aix-tdep.c: Update.
6572 * rs6000-tdep.c: Update.
6573 * rust-exp.y: Update.
6574 * rust-lang.c: Update.
6575 * s390-tdep.c: Update.
6576 * selftest-arch.c: Update.
6577 * solib-dsbt.c: Update.
6578 * solib-frv.c: Update.
6579 * solib-spu.c: Update.
6580 * solib-svr4.c: Update.
6582 * sparc64-linux-tdep.c: Update.
6584 * symfile-mem.c: Update.
6585 * symmisc.c: Update.
6589 * tracefile-tfile.c: Update.
6590 * tui/tui.c: Update.
6591 * typeprint.c: Update.
6592 * unittests/cli-utils-selftests.c: Update.
6593 * unittests/parse-connection-spec-selftests.c: Update.
6595 * valprint.c: Update.
6598 * windows-nat.c: Update.
6599 * x86-linux-nat.c: Update.
6600 * xml-support.c: Update.
6602 2019-04-08 Tom Tromey <tom@tromey.com>
6604 * xml-support.c: Use C++ exception handling.
6605 * x86-linux-nat.c: Use C++ exception handling.
6606 * windows-nat.c: Use C++ exception handling.
6607 * varobj.c: Use C++ exception handling.
6608 * value.c: Use C++ exception handling.
6609 * valprint.c: Use C++ exception handling.
6610 * valops.c: Use C++ exception handling.
6611 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6613 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6614 * typeprint.c: Use C++ exception handling.
6615 * tui/tui.c: Use C++ exception handling.
6616 * tracefile-tfile.c: Use C++ exception handling.
6617 * top.c: Use C++ exception handling.
6618 * thread.c: Use C++ exception handling.
6619 * target.c: Use C++ exception handling.
6620 * symmisc.c: Use C++ exception handling.
6621 * symfile-mem.c: Use C++ exception handling.
6622 * stack.c: Use C++ exception handling.
6623 * sparc64-linux-tdep.c: Use C++ exception handling.
6624 * solib.c: Use C++ exception handling.
6625 * solib-svr4.c: Use C++ exception handling.
6626 * solib-spu.c: Use C++ exception handling.
6627 * solib-frv.c: Use C++ exception handling.
6628 * solib-dsbt.c: Use C++ exception handling.
6629 * selftest-arch.c: Use C++ exception handling.
6630 * s390-tdep.c: Use C++ exception handling.
6631 * rust-lang.c: Use C++ exception handling.
6632 * rust-exp.y: Use C++ exception handling.
6633 * rs6000-tdep.c: Use C++ exception handling.
6634 * rs6000-aix-tdep.c: Use C++ exception handling.
6635 * riscv-tdep.c: Use C++ exception handling.
6636 * remote.c: Use C++ exception handling.
6637 * remote-fileio.c: Use C++ exception handling.
6638 * record-full.c: Use C++ exception handling.
6639 * record-btrace.c: Use C++ exception handling.
6640 * python/python.c: Use C++ exception handling.
6641 * python/py-value.c: Use C++ exception handling.
6642 * python/py-utils.c: Use C++ exception handling.
6643 * python/py-unwind.c: Use C++ exception handling.
6644 * python/py-type.c: Use C++ exception handling.
6645 * python/py-symbol.c: Use C++ exception handling.
6646 * python/py-record.c: Use C++ exception handling.
6647 * python/py-record-btrace.c: Use C++ exception handling.
6648 * python/py-progspace.c: Use C++ exception handling.
6649 * python/py-prettyprint.c: Use C++ exception handling.
6650 * python/py-param.c: Use C++ exception handling.
6651 * python/py-objfile.c: Use C++ exception handling.
6652 * python/py-linetable.c: Use C++ exception handling.
6653 * python/py-lazy-string.c: Use C++ exception handling.
6654 * python/py-infthread.c: Use C++ exception handling.
6655 * python/py-inferior.c: Use C++ exception handling.
6656 * python/py-gdb-readline.c: Use C++ exception handling.
6657 * python/py-framefilter.c: Use C++ exception handling.
6658 * python/py-frame.c: Use C++ exception handling.
6659 * python/py-finishbreakpoint.c: Use C++ exception handling.
6660 * python/py-cmd.c: Use C++ exception handling.
6661 * python/py-breakpoint.c: Use C++ exception handling.
6662 * python/py-arch.c: Use C++ exception handling.
6663 * printcmd.c: Use C++ exception handling.
6664 * ppc-linux-tdep.c: Use C++ exception handling.
6665 * parse.c: Use C++ exception handling.
6666 * p-valprint.c: Use C++ exception handling.
6667 * objc-lang.c: Use C++ exception handling.
6668 * mi/mi-main.c: Use C++ exception handling.
6669 * mi/mi-interp.c: Use C++ exception handling.
6670 * mi/mi-cmd-stack.c: Use C++ exception handling.
6671 * mi/mi-cmd-break.c: Use C++ exception handling.
6672 * main.c: Use C++ exception handling.
6673 * linux-thread-db.c: Use C++ exception handling.
6674 * linux-tdep.c: Use C++ exception handling.
6675 * linux-nat.c: Use C++ exception handling.
6676 * linux-fork.c: Use C++ exception handling.
6677 * linespec.c: Use C++ exception handling.
6678 * language.c: Use C++ exception handling.
6679 * jit.c: Use C++ exception handling.
6680 * infrun.c: Use C++ exception handling.
6681 * infcmd.c: Use C++ exception handling.
6682 * infcall.c: Use C++ exception handling.
6683 * inf-loop.c: Use C++ exception handling.
6684 * i386-tdep.c: Use C++ exception handling.
6685 * i386-linux-tdep.c: Use C++ exception handling.
6686 * guile/scm-value.c: Use C++ exception handling.
6687 * guile/scm-type.c: Use C++ exception handling.
6688 * guile/scm-symtab.c: Use C++ exception handling.
6689 * guile/scm-symbol.c: Use C++ exception handling.
6690 * guile/scm-pretty-print.c: Use C++ exception handling.
6691 * guile/scm-ports.c: Use C++ exception handling.
6692 * guile/scm-param.c: Use C++ exception handling.
6693 * guile/scm-math.c: Use C++ exception handling.
6694 * guile/scm-lazy-string.c: Use C++ exception handling.
6695 * guile/scm-frame.c: Use C++ exception handling.
6696 * guile/scm-disasm.c: Use C++ exception handling.
6697 * guile/scm-cmd.c: Use C++ exception handling.
6698 * guile/scm-breakpoint.c: Use C++ exception handling.
6699 * guile/scm-block.c: Use C++ exception handling.
6700 * guile/guile-internal.h: Use C++ exception handling.
6701 * gnu-v3-abi.c: Use C++ exception handling.
6702 * gdbtypes.c: Use C++ exception handling.
6703 * frame.c: Use C++ exception handling.
6704 * frame-unwind.c: Use C++ exception handling.
6705 * fbsd-tdep.c: Use C++ exception handling.
6706 * f-valprint.c: Use C++ exception handling.
6707 * exec.c: Use C++ exception handling.
6708 * event-top.c: Use C++ exception handling.
6709 * event-loop.c: Use C++ exception handling.
6710 * eval.c: Use C++ exception handling.
6711 * dwarf2read.c: Use C++ exception handling.
6712 * dwarf2loc.c: Use C++ exception handling.
6713 * dwarf2-frame.c: Use C++ exception handling.
6714 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6715 * dwarf-index-write.c: Use C++ exception handling.
6716 * dwarf-index-cache.c: Use C++ exception handling.
6717 * dtrace-probe.c: Use C++ exception handling.
6718 * disasm-selftests.c: Use C++ exception handling.
6719 * darwin-nat.c: Use C++ exception handling.
6720 * cp-valprint.c: Use C++ exception handling.
6721 * cp-support.c: Use C++ exception handling.
6722 * cp-abi.c: Use C++ exception handling.
6723 * corelow.c: Use C++ exception handling.
6724 * completer.c: Use C++ exception handling.
6725 * compile/compile-object-run.c: Use C++ exception handling.
6726 * compile/compile-object-load.c: Use C++ exception handling.
6727 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6728 * compile/compile-c-symbols.c: Use C++ exception handling.
6729 * common/selftest.c: Use C++ exception handling.
6730 * common/new-op.c: Use C++ exception handling.
6731 * cli/cli-script.c: Use C++ exception handling.
6732 * cli/cli-interp.c: Use C++ exception handling.
6733 * cli/cli-cmds.c: Use C++ exception handling.
6734 * c-varobj.c: Use C++ exception handling.
6735 * btrace.c: Use C++ exception handling.
6736 * breakpoint.c: Use C++ exception handling.
6737 * break-catch-throw.c: Use C++ exception handling.
6738 * arch-utils.c: Use C++ exception handling.
6739 * amd64-tdep.c: Use C++ exception handling.
6740 * ada-valprint.c: Use C++ exception handling.
6741 * ada-typeprint.c: Use C++ exception handling.
6742 * ada-lang.c: Use C++ exception handling.
6743 * aarch64-tdep.c: Use C++ exception handling.
6745 2019-04-08 Tom Tromey <tom@tromey.com>
6747 * xml-support.c (gdb_xml_parser::parse): Update.
6748 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6749 * value.c (show_convenience): Update.
6750 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6751 (test_parse_flags_qcs): Update.
6752 * thread.c (thr_try_catch_cmd): Update.
6753 * target.c (target_translate_tls_address): Update.
6754 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6755 (info_frame_command_core, frame_apply_command_count): Update.
6756 * rust-exp.y (rust_lex_exception_test): Update.
6757 * riscv-tdep.c (riscv_print_one_register_info): Update.
6758 * remote.c (remote_target::enable_btrace): Update.
6759 * record-btrace.c (record_btrace_enable_warn): Update.
6760 * python/py-utils.c (gdbpy_convert_exception): Update.
6761 * printcmd.c (do_one_display, print_variable_and_value): Update.
6762 * mi/mi-main.c (mi_print_exception): Update.
6763 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6764 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6765 * linux-nat.c (linux_nat_target::attach): Update.
6766 * linux-fork.c (class scoped_switch_fork_info): Update.
6767 * infrun.c (displaced_step_prepare): Update.
6768 * infcall.c (call_function_by_hand_dummy): Update.
6769 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6770 * gnu-v3-abi.c (print_one_vtable): Update.
6771 * frame.c (get_prev_frame_always): Update.
6772 * f-valprint.c (info_common_command_for_block): Update.
6773 * exec.c (try_open_exec_file): Update.
6774 * exceptions.c (print_exception, exception_print)
6775 (exception_fprintf, exception_print_same): Update.
6776 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6777 * dwarf-index-cache.c (index_cache::store)
6778 (index_cache::lookup_gdb_index): Update.
6779 * darwin-nat.c (maybe_cache_shell): Update.
6780 * cp-valprint.c (cp_print_value_fields): Update.
6781 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6782 (gcc_cplus_symbol_address): Update.
6783 * compile/compile-c-symbols.c (gcc_convert_symbol)
6784 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6785 * common/selftest.c: Update.
6786 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6788 (exception_try_scope_entry, exception_try_scope_exit): Don't
6790 (struct exception_try_scope): Remove.
6791 (TRY): Don't use exception_try_scope.
6792 (struct gdb_exception): Add constructor, operator=.
6794 (struct gdb_exception_RETURN_MASK_ALL)
6795 (struct gdb_exception_RETURN_MASK_ERROR)
6796 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6797 (struct gdb_quit_bad_alloc): Update.
6798 * common/common-exceptions.c (exception_none): Change
6800 (struct catcher) <state, exception>: Initialize inline.
6801 <prev>: Remove member.
6802 (current_catcher): Remove.
6803 (catchers): New global.
6804 (exceptions_state_mc_init): Simplify.
6805 (catcher_pop): Remove.
6806 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6807 (try_scope_depth, exception_try_scope_entry)
6808 (exception_try_scope_exit): Remove.
6809 (throw_exception_sjlj): Update.
6810 (exception_messages, exception_messages_size): Remove.
6811 (throw_it): Simplify.
6812 (gdb_exception_sliced_copy): Remove.
6813 (throw_exception_cxx): Update.
6814 * cli/cli-script.c (script_from_file): Update.
6815 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6817 * ada-valprint.c (ada_val_print): Update.
6818 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6819 (create_excep_cond_exprs): Update.
6821 2019-04-08 Tom Tromey <tom@tromey.com>
6823 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6824 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6825 (TRY, CATCH, END_CATCH): Remove some definitions.
6826 * common/common-exceptions.c: Don't use GDB_XCPT.
6827 (catcher_list_size): Remove.
6828 (throw_exception, throw_it): Simplify.
6830 2019-04-05 Tom Tromey <tom@tromey.com>
6832 Revert the header-sorting patch.
6833 * ft32-tdep.c: Revert.
6834 * frv-tdep.c: Revert.
6835 * frv-linux-tdep.c: Revert.
6837 * frame-unwind.c: Revert.
6838 * frame-base.c: Revert.
6839 * fork-child.c: Revert.
6840 * findvar.c: Revert.
6841 * findcmd.c: Revert.
6842 * filesystem.c: Revert.
6843 * filename-seen-cache.h: Revert.
6844 * filename-seen-cache.c: Revert.
6845 * fbsd-tdep.c: Revert.
6846 * fbsd-nat.h: Revert.
6847 * fbsd-nat.c: Revert.
6848 * f-valprint.c: Revert.
6849 * f-typeprint.c: Revert.
6851 * extension.h: Revert.
6852 * extension.c: Revert.
6853 * extension-priv.h: Revert.
6854 * expprint.c: Revert.
6857 * exceptions.c: Revert.
6858 * event-top.c: Revert.
6859 * event-loop.c: Revert.
6861 * elfread.c: Revert.
6862 * dwarf2read.h: Revert.
6863 * dwarf2read.c: Revert.
6864 * dwarf2loc.c: Revert.
6865 * dwarf2expr.h: Revert.
6866 * dwarf2expr.c: Revert.
6867 * dwarf2-frame.c: Revert.
6868 * dwarf2-frame-tailcall.c: Revert.
6869 * dwarf-index-write.h: Revert.
6870 * dwarf-index-write.c: Revert.
6871 * dwarf-index-common.c: Revert.
6872 * dwarf-index-cache.h: Revert.
6873 * dwarf-index-cache.c: Revert.
6874 * dummy-frame.c: Revert.
6875 * dtrace-probe.c: Revert.
6878 * disasm-selftests.c: Revert.
6879 * dictionary.c: Revert.
6880 * dicos-tdep.c: Revert.
6881 * demangle.c: Revert.
6884 * darwin-nat.h: Revert.
6885 * darwin-nat.c: Revert.
6886 * darwin-nat-info.c: Revert.
6887 * d-valprint.c: Revert.
6888 * d-namespace.c: Revert.
6891 * csky-tdep.c: Revert.
6892 * csky-linux-tdep.c: Revert.
6893 * cris-tdep.c: Revert.
6894 * cris-linux-tdep.c: Revert.
6895 * cp-valprint.c: Revert.
6896 * cp-support.c: Revert.
6897 * cp-namespace.c: Revert.
6899 * corelow.c: Revert.
6900 * corefile.c: Revert.
6901 * continuations.c: Revert.
6902 * completer.h: Revert.
6903 * completer.c: Revert.
6904 * complaints.c: Revert.
6905 * coffread.c: Revert.
6906 * coff-pe-read.c: Revert.
6907 * cli-out.h: Revert.
6908 * cli-out.c: Revert.
6909 * charset.c: Revert.
6910 * c-varobj.c: Revert.
6911 * c-valprint.c: Revert.
6912 * c-typeprint.c: Revert.
6914 * buildsym.c: Revert.
6915 * buildsym-legacy.c: Revert.
6916 * build-id.h: Revert.
6917 * build-id.c: Revert.
6919 * bsd-uthread.c: Revert.
6920 * breakpoint.h: Revert.
6921 * breakpoint.c: Revert.
6922 * break-catch-throw.c: Revert.
6923 * break-catch-syscall.c: Revert.
6924 * break-catch-sig.c: Revert.
6925 * blockframe.c: Revert.
6927 * bfin-tdep.c: Revert.
6928 * bfin-linux-tdep.c: Revert.
6929 * bfd-target.c: Revert.
6931 * ax-general.c: Revert.
6934 * avr-tdep.c: Revert.
6936 * auto-load.c: Revert.
6937 * arm-wince-tdep.c: Revert.
6938 * arm-tdep.c: Revert.
6939 * arm-symbian-tdep.c: Revert.
6940 * arm-pikeos-tdep.c: Revert.
6941 * arm-obsd-tdep.c: Revert.
6942 * arm-nbsd-tdep.c: Revert.
6943 * arm-nbsd-nat.c: Revert.
6944 * arm-linux-tdep.c: Revert.
6945 * arm-linux-nat.c: Revert.
6946 * arm-fbsd-tdep.c: Revert.
6947 * arm-fbsd-nat.c: Revert.
6948 * arm-bsd-tdep.c: Revert.
6949 * arch-utils.c: Revert.
6950 * arc-tdep.c: Revert.
6951 * arc-newlib-tdep.c: Revert.
6952 * annotate.h: Revert.
6953 * annotate.c: Revert.
6954 * amd64-windows-tdep.c: Revert.
6955 * amd64-windows-nat.c: Revert.
6956 * amd64-tdep.c: Revert.
6957 * amd64-sol2-tdep.c: Revert.
6958 * amd64-obsd-tdep.c: Revert.
6959 * amd64-obsd-nat.c: Revert.
6960 * amd64-nbsd-tdep.c: Revert.
6961 * amd64-nbsd-nat.c: Revert.
6962 * amd64-nat.c: Revert.
6963 * amd64-linux-tdep.c: Revert.
6964 * amd64-linux-nat.c: Revert.
6965 * amd64-fbsd-tdep.c: Revert.
6966 * amd64-fbsd-nat.c: Revert.
6967 * amd64-dicos-tdep.c: Revert.
6968 * amd64-darwin-tdep.c: Revert.
6969 * amd64-bsd-nat.c: Revert.
6970 * alpha-tdep.c: Revert.
6971 * alpha-obsd-tdep.c: Revert.
6972 * alpha-nbsd-tdep.c: Revert.
6973 * alpha-mdebug-tdep.c: Revert.
6974 * alpha-linux-tdep.c: Revert.
6975 * alpha-linux-nat.c: Revert.
6976 * alpha-bsd-tdep.c: Revert.
6977 * alpha-bsd-nat.c: Revert.
6978 * aix-thread.c: Revert.
6980 * addrmap.c: Revert.
6981 * ada-varobj.c: Revert.
6982 * ada-valprint.c: Revert.
6983 * ada-typeprint.c: Revert.
6984 * ada-tasks.c: Revert.
6985 * ada-lang.c: Revert.
6986 * aarch64-tdep.c: Revert.
6987 * aarch64-ravenscar-thread.c: Revert.
6988 * aarch64-newlib-tdep.c: Revert.
6989 * aarch64-linux-tdep.c: Revert.
6990 * aarch64-linux-nat.c: Revert.
6991 * aarch64-fbsd-tdep.c: Revert.
6992 * aarch64-fbsd-nat.c: Revert.
6993 * aarch32-linux-nat.c: Revert.
6995 2019-04-05 Tom Tromey <tom@tromey.com>
6997 * ft32-tdep.c: Sort headers.
6998 * frv-tdep.c: Sort headers.
6999 * frv-linux-tdep.c: Sort headers.
7000 * frame.c: Sort headers.
7001 * frame-unwind.c: Sort headers.
7002 * frame-base.c: Sort headers.
7003 * fork-child.c: Sort headers.
7004 * findvar.c: Sort headers.
7005 * findcmd.c: Sort headers.
7006 * filesystem.c: Sort headers.
7007 * filename-seen-cache.h: Sort headers.
7008 * filename-seen-cache.c: Sort headers.
7009 * fbsd-tdep.c: Sort headers.
7010 * fbsd-nat.h: Sort headers.
7011 * fbsd-nat.c: Sort headers.
7012 * f-valprint.c: Sort headers.
7013 * f-typeprint.c: Sort headers.
7014 * f-lang.c: Sort headers.
7015 * extension.h: Sort headers.
7016 * extension.c: Sort headers.
7017 * extension-priv.h: Sort headers.
7018 * expprint.c: Sort headers.
7019 * exec.h: Sort headers.
7020 * exec.c: Sort headers.
7021 * exceptions.c: Sort headers.
7022 * event-top.c: Sort headers.
7023 * event-loop.c: Sort headers.
7024 * eval.c: Sort headers.
7025 * elfread.c: Sort headers.
7026 * dwarf2read.h: Sort headers.
7027 * dwarf2read.c: Sort headers.
7028 * dwarf2loc.c: Sort headers.
7029 * dwarf2expr.h: Sort headers.
7030 * dwarf2expr.c: Sort headers.
7031 * dwarf2-frame.c: Sort headers.
7032 * dwarf2-frame-tailcall.c: Sort headers.
7033 * dwarf-index-write.h: Sort headers.
7034 * dwarf-index-write.c: Sort headers.
7035 * dwarf-index-common.c: Sort headers.
7036 * dwarf-index-cache.h: Sort headers.
7037 * dwarf-index-cache.c: Sort headers.
7038 * dummy-frame.c: Sort headers.
7039 * dtrace-probe.c: Sort headers.
7040 * disasm.h: Sort headers.
7041 * disasm.c: Sort headers.
7042 * disasm-selftests.c: Sort headers.
7043 * dictionary.c: Sort headers.
7044 * dicos-tdep.c: Sort headers.
7045 * demangle.c: Sort headers.
7046 * dcache.h: Sort headers.
7047 * dcache.c: Sort headers.
7048 * darwin-nat.h: Sort headers.
7049 * darwin-nat.c: Sort headers.
7050 * darwin-nat-info.c: Sort headers.
7051 * d-valprint.c: Sort headers.
7052 * d-namespace.c: Sort headers.
7053 * d-lang.c: Sort headers.
7054 * ctf.c: Sort headers.
7055 * csky-tdep.c: Sort headers.
7056 * csky-linux-tdep.c: Sort headers.
7057 * cris-tdep.c: Sort headers.
7058 * cris-linux-tdep.c: Sort headers.
7059 * cp-valprint.c: Sort headers.
7060 * cp-support.c: Sort headers.
7061 * cp-namespace.c: Sort headers.
7062 * cp-abi.c: Sort headers.
7063 * corelow.c: Sort headers.
7064 * corefile.c: Sort headers.
7065 * continuations.c: Sort headers.
7066 * completer.h: Sort headers.
7067 * completer.c: Sort headers.
7068 * complaints.c: Sort headers.
7069 * coffread.c: Sort headers.
7070 * coff-pe-read.c: Sort headers.
7071 * cli-out.h: Sort headers.
7072 * cli-out.c: Sort headers.
7073 * charset.c: Sort headers.
7074 * c-varobj.c: Sort headers.
7075 * c-valprint.c: Sort headers.
7076 * c-typeprint.c: Sort headers.
7077 * c-lang.c: Sort headers.
7078 * buildsym.c: Sort headers.
7079 * buildsym-legacy.c: Sort headers.
7080 * build-id.h: Sort headers.
7081 * build-id.c: Sort headers.
7082 * btrace.c: Sort headers.
7083 * bsd-uthread.c: Sort headers.
7084 * breakpoint.h: Sort headers.
7085 * breakpoint.c: Sort headers.
7086 * break-catch-throw.c: Sort headers.
7087 * break-catch-syscall.c: Sort headers.
7088 * break-catch-sig.c: Sort headers.
7089 * blockframe.c: Sort headers.
7090 * block.c: Sort headers.
7091 * bfin-tdep.c: Sort headers.
7092 * bfin-linux-tdep.c: Sort headers.
7093 * bfd-target.c: Sort headers.
7094 * bcache.c: Sort headers.
7095 * ax-general.c: Sort headers.
7096 * ax-gdb.h: Sort headers.
7097 * ax-gdb.c: Sort headers.
7098 * avr-tdep.c: Sort headers.
7099 * auxv.c: Sort headers.
7100 * auto-load.c: Sort headers.
7101 * arm-wince-tdep.c: Sort headers.
7102 * arm-tdep.c: Sort headers.
7103 * arm-symbian-tdep.c: Sort headers.
7104 * arm-pikeos-tdep.c: Sort headers.
7105 * arm-obsd-tdep.c: Sort headers.
7106 * arm-nbsd-tdep.c: Sort headers.
7107 * arm-nbsd-nat.c: Sort headers.
7108 * arm-linux-tdep.c: Sort headers.
7109 * arm-linux-nat.c: Sort headers.
7110 * arm-fbsd-tdep.c: Sort headers.
7111 * arm-fbsd-nat.c: Sort headers.
7112 * arm-bsd-tdep.c: Sort headers.
7113 * arch-utils.c: Sort headers.
7114 * arc-tdep.c: Sort headers.
7115 * arc-newlib-tdep.c: Sort headers.
7116 * annotate.h: Sort headers.
7117 * annotate.c: Sort headers.
7118 * amd64-windows-tdep.c: Sort headers.
7119 * amd64-windows-nat.c: Sort headers.
7120 * amd64-tdep.c: Sort headers.
7121 * amd64-sol2-tdep.c: Sort headers.
7122 * amd64-obsd-tdep.c: Sort headers.
7123 * amd64-obsd-nat.c: Sort headers.
7124 * amd64-nbsd-tdep.c: Sort headers.
7125 * amd64-nbsd-nat.c: Sort headers.
7126 * amd64-nat.c: Sort headers.
7127 * amd64-linux-tdep.c: Sort headers.
7128 * amd64-linux-nat.c: Sort headers.
7129 * amd64-fbsd-tdep.c: Sort headers.
7130 * amd64-fbsd-nat.c: Sort headers.
7131 * amd64-dicos-tdep.c: Sort headers.
7132 * amd64-darwin-tdep.c: Sort headers.
7133 * amd64-bsd-nat.c: Sort headers.
7134 * alpha-tdep.c: Sort headers.
7135 * alpha-obsd-tdep.c: Sort headers.
7136 * alpha-nbsd-tdep.c: Sort headers.
7137 * alpha-mdebug-tdep.c: Sort headers.
7138 * alpha-linux-tdep.c: Sort headers.
7139 * alpha-linux-nat.c: Sort headers.
7140 * alpha-bsd-tdep.c: Sort headers.
7141 * alpha-bsd-nat.c: Sort headers.
7142 * aix-thread.c: Sort headers.
7143 * agent.c: Sort headers.
7144 * addrmap.c: Sort headers.
7145 * ada-varobj.c: Sort headers.
7146 * ada-valprint.c: Sort headers.
7147 * ada-typeprint.c: Sort headers.
7148 * ada-tasks.c: Sort headers.
7149 * ada-lang.c: Sort headers.
7150 * aarch64-tdep.c: Sort headers.
7151 * aarch64-ravenscar-thread.c: Sort headers.
7152 * aarch64-newlib-tdep.c: Sort headers.
7153 * aarch64-linux-tdep.c: Sort headers.
7154 * aarch64-linux-nat.c: Sort headers.
7155 * aarch64-fbsd-tdep.c: Sort headers.
7156 * aarch64-fbsd-nat.c: Sort headers.
7157 * aarch32-linux-nat.c: Sort headers.
7159 2019-04-04 Tom Tromey <tom@tromey.com>
7161 * varobj.c (varobj_create): Update.
7162 * rust-exp.y (struct rust_parser) <update_innermost_block,
7163 lookup_symbol>: New methods.
7164 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7166 (rust_parser::rust_lookup_type)
7167 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7168 * printcmd.c (display_command, do_one_display): Update.
7169 * parser-defs.h (struct parser_state) <parser_state>: Add
7170 "tracker" parameter.
7171 (block_tracker): New member.
7172 (class innermost_block_tracker) <innermost_block_tracker>: Add
7174 <reset>: Remove method.
7175 (innermost_block): Don't declare.
7176 (null_post_parser): Update.
7177 * parse.c (innermost_block): Remove global.
7178 (write_dollar_variable): Update.
7179 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7180 Remove "tracker_types" parameter.
7181 (parse_expression): Add "tracker" parameter.
7182 (parse_expression_for_completion): Update.
7183 (null_post_parser): Add "tracker" parameter.
7184 * p-exp.y: Update rules.
7185 * m2-exp.y: Update rules.
7186 * language.h (struct language_defn) <la_post_parser>: Add
7187 "tracker" parameter.
7188 * go-exp.y: Update rules.
7189 * f-exp.y: Update rules.
7190 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7192 * d-exp.y: Update rules.
7193 * c-exp.y: Update rules.
7194 * breakpoint.c (set_breakpoint_condition): Create an
7195 innermost_block_tracker.
7196 (watch_command_1): Likewise.
7197 * ada-lang.c (resolve): Add "tracker" parameter.
7198 (resolve_subexp): Likewise.
7199 * ada-exp.y (write_var_from_sym): Update.
7201 2019-04-04 Tom Tromey <tom@tromey.com>
7203 * type-stack.h: New file.
7204 * type-stack.c: New file.
7205 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7207 (insert_into_type_stack, insert_type, push_type, push_type_int)
7208 (insert_type_address_space, pop_type, pop_type_int)
7209 (pop_typelist, pop_type_stack, append_type_stack)
7210 (push_type_stack, get_type_stack, push_typelist)
7211 (follow_type_instance_flags, follow_types): Don't declare.
7212 * parse.c (type_stack): Remove global.
7213 (parse_exp_in_context): Update.
7214 (insert_into_type_stack, insert_type, push_type, push_type_int)
7215 (insert_type_address_space, pop_type, pop_type_int)
7216 (pop_typelist, pop_type_stack, append_type_stack)
7217 (push_type_stack, get_type_stack, push_typelist)
7218 (follow_type_instance_flags, follow_types): Remove (moved to
7220 * f-exp.y (type_stack): New global.
7222 (push_kind_type, f_parse): Update.
7223 * d-exp.y (type_stack): New global.
7226 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7228 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7229 (HFILES_NO_SRCDIR): Add type-stack.h.
7231 2019-04-04 Tom Tromey <tom@tromey.com>
7233 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7234 (rust_parser::convert_ast_to_expression, rust_parse)
7235 (rust_lex_test_completion, rust_lex_tests): Update.
7236 * parser-defs.h (struct expr_completion_state): New.
7237 (struct parser_state) <parser_state>: Add completion parameter.
7238 <mark_struct_expression, mark_completion_tag>: New methods.
7239 <parse_completion, m_completion_state>: New members.
7240 (prefixify_expression, null_post_parser): Update.
7241 (mark_struct_expression, mark_completion_tag): Don't declare.
7242 * parse.c (parse_completion, expout_last_struct)
7243 (expout_tag_completion_type, expout_completion_name): Remove
7245 (parser_state::mark_struct_expression)
7246 (parser_state::mark_completion_tag): Now methods.
7247 (prefixify_expression): Add last_struct parameter.
7248 (prefixify_subexp): Likewise.
7249 (parse_exp_1): Update.
7250 (parse_exp_in_context): Add cstate parameter. Update.
7251 (parse_expression_for_completion): Create an
7252 expr_completion_state.
7253 (null_post_parser): Add "completion" parameter.
7254 * p-exp.y: Update rules.
7256 * language.h (struct language_defn) <la_post_parser>: Add
7257 "completing" parameter.
7258 * go-exp.y: Update rules.
7259 (lex_one_token): Update.
7260 * expression.h (parse_completion): Don't declare.
7261 * d-exp.y: Update rules.
7262 (lex_one_token): Update rules.
7263 * c-exp.y: Update rules.
7264 (lex_one_token): Update.
7265 * ada-lang.c (resolve): Add "parse_completion" parameter.
7266 (resolve_subexp): Likewise.
7267 (ada_resolve_function): Likewise.
7269 2019-04-04 Tom Tromey <tom@tromey.com>
7271 * parser-defs.h (struct parser_state) <start_arglist,
7272 end_arglist>: New methods.
7273 <arglist_len, m_funcall_chain>: New members.
7274 (arglist_len, start_arglist, end_arglist): Don't declare.
7275 * parse.c (arglist_len, funcall_chain): Remove global.
7276 (start_arglist, end_arglist): Remove functions.
7277 (parse_exp_in_context): Update.
7278 * p-exp.y: Update rules.
7279 * m2-exp.y: Update rules.
7280 * go-exp.y: Update rules.
7281 * f-exp.y: Update rules.
7282 * d-exp.y: Update rules.
7283 * c-exp.y: Update rules.
7285 2019-04-04 Tom Tromey <tom@tromey.com>
7287 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7288 lex_operator, push_back>: New methods.
7290 (rust_parser::lex_hex, lex_escape): Rename and update.
7291 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7292 (rust_parser::lex_operator): Rename and update.
7293 (rust_parser::lex_number, rustyylex, rustyyerror)
7294 (rust_lex_test_init, rust_lex_test_sequence)
7295 (rust_lex_test_push_back, rust_lex_tests): Update.
7296 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7298 <lexptr, prev_lexptr>: New members.
7299 (lexptr, prev_lexptr): Don't declare.
7300 * parse.c (lexptr, prev_lexptr): Remove globals.
7301 (parse_exp_in_context): Update.
7302 * p-exp.y (yylex, yyerror): Update.
7303 * m2-exp.y (parse_number, yylex, yyerror): Update.
7304 * go-exp.y (lex_one_token, yyerror): Update.
7305 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7306 * d-exp.y (lex_one_token, yyerror): Update.
7307 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7308 (lex_one_token, yyerror): Update.
7309 * ada-lex.l (YY_INPUT): Update.
7310 (rewind_to_char): Update.
7311 * ada-exp.y (yyerror): Update.
7313 2019-04-04 Tom Tromey <tom@tromey.com>
7315 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7316 * parser-defs.h (struct parser_state) <parser_state>: Add new
7318 <comma_terminates>: New member.
7319 (comma_terminates): Don't declare global.
7320 * parse.c (comma_terminates): Remove global.
7321 (parse_exp_in_context): Update.
7322 * p-exp.y (yylex): Update.
7323 * m2-exp.y (yylex): Update.
7324 * go-exp.y (lex_one_token): Update.
7325 * f-exp.y (yylex): Update.
7326 * d-exp.y (lex_one_token): Update.
7327 * c-exp.y (lex_one_token): Update.
7328 * ada-lex.l: Update.
7330 2019-04-04 Tom Tromey <tom@tromey.com>
7332 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7333 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7334 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7335 * parser-defs.h (paren_depth): Don't declare.
7336 * parse.c (paren_depth): Remove global.
7337 (parse_exp_in_context): Update.
7338 * p-exp.y (paren_depth): New global.
7339 (pascal_parse): Initialize it.
7340 * m2-exp.y (paren_depth): New global.
7341 (m2_parse): Initialize it.
7342 * go-exp.y (paren_depth): New global.
7343 (go_parse): Initialize it.
7344 * f-exp.y (paren_depth): New global.
7345 (f_parse): Initialize it.
7346 * d-exp.y (paren_depth): New global.
7347 (d_parse): Initialize it.
7348 * c-exp.y (paren_depth): New global.
7349 (c_parse): Initialize it.
7350 * ada-lex.l (paren_depth): New global.
7351 (lexer_init): Initialize it.
7353 2019-04-04 Tom Tromey <tom@tromey.com>
7355 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7356 (rust_parser::convert_ast_to_type)
7357 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7358 * parser-defs.h (struct parser_state) <parser_state>: Add
7359 parameters. Initialize new members.
7360 <expression_context_block, expression_context_pc>: New members.
7361 * parse.c (expression_context_block, expression_context_pc):
7363 (parse_exp_in_context): Update.
7364 * p-exp.y: Update all rules.
7366 * m2-exp.y: Update all rules.
7368 * go-exp.y (yylex): Update.
7369 * f-exp.y (yylex): Update.
7370 * d-exp.y: Update all rules.
7372 * c-exp.y: Update all rules.
7373 (lex_one_token, classify_name, yylex, c_parse): Update.
7374 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7376 2019-04-04 Tom Tromey <tom@tromey.com>
7378 * gdbarch.h, gdbarch.c: Rebuild.
7379 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7381 (struct stap_parse_info): Replace "parser_state" with
7383 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7384 (parser_state): New class.
7385 * parse.c (expr_builder): Rename.
7386 (expr_builder::release): Rename.
7387 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7388 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7389 (write_exp_elt_longcst, write_exp_elt_floatcst)
7390 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7391 (write_exp_string_vector, write_exp_bitstring)
7392 (write_exp_msymbol, mark_struct_expression)
7393 (write_dollar_variable)
7394 (insert_type_address_space, increase_expout_size): Replace
7395 "parser_state" with "expr_builder".
7396 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7397 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7398 "parser_state" with "expr_builder".
7400 2019-04-04 Tom Tromey <tom@tromey.com>
7402 * rust-exp.y: Replace "parse_language" with method call.
7404 (yylex): Replace "parse_language" with method call.
7406 (yylex): Replace "parse_language" with method call.
7407 * go-exp.y (classify_name): Replace "parse_language" with method
7409 * f-exp.y (yylex): Replace "parse_language" with method call.
7410 * d-exp.y (lex_one_token): Replace "parse_language" with method
7413 (lex_one_token, classify_name, yylex): Replace "parse_language"
7415 * ada-exp.y (find_primitive_type, type_char)
7416 (type_system_address): Replace "parse_language" with method call.
7418 2019-04-04 Tom Tromey <tom@tromey.com>
7420 * rust-exp.y: Replace "parse_gdbarch" with method call.
7421 * parse.c (write_dollar_variable, insert_type_address_space):
7422 Replace "parse_gdbarch" with method call.
7423 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7425 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7427 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7428 "parse_gdbarch" with method call.
7429 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7431 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7432 "parse_gdbarch" with method call.
7433 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7434 "parse_gdbarch" with method call.
7435 * c-exp.y (parse_type, parse_number, classify_name): Replace
7436 "parse_gdbarch" with method call.
7437 * ada-lex.l: Replace "parse_gdbarch" with method call.
7438 * ada-exp.y (parse_type, find_primitive_type, type_char)
7439 (type_system_address): Replace "parse_gdbarch" with method call.
7441 2019-04-04 Tom Tromey <tom@tromey.com>
7443 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7444 * stap-probe.c (stap_parse_argument): Update.
7445 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7446 initial_size parameter.
7447 * rust-exp.y (rust_lex_tests): Update.
7448 * parse.c (parser_state): Update.
7449 (parse_exp_in_context): Update.
7450 * parser-defs.h (struct parser_state) <parser_state>: Remove
7451 "initial_size" parameter.
7453 2019-04-04 Tom Tromey <tom@tromey.com>
7455 * parser-defs.h (increase_expout_size): Don't declare.
7456 * parse.c (increase_expout_size): Now static.
7458 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7460 * gnu-nat.c (gnu_nat_target::wait): Fix
7461 target_waitstatus_to_string call.
7463 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7465 * eval.c (evaluate_subexp_standard): Handle internal functions
7466 during Fortran function call handling.
7468 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7470 * NEWS: Mention new internal functions.
7471 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7472 (read_base_type): Use dwarf2_init_complex_target_type.
7473 * value.c (creal_internal_fn): New function.
7474 (cimag_internal_fn): New function.
7475 (_initialize_values): Register new internal functions.
7477 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7479 * infrun.c (stop_all_threads): If debug_infrun, always
7480 trace the wait status after wait_one, using
7481 target_waitstatus_to_string and target_pid_to_str.
7482 (handle_inferior_event): Replace various trace of
7483 wait status kind by a single trace.
7484 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7485 wait status kind image by target_waitstatus_to_string.
7486 * target/waitstatus.c (target_waitstatus_to_string): Fix
7489 2019-04-01 Tom Tromey <tromey@adacore.com>
7492 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7494 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7495 Pedro Alves <palves@redhat.com>
7497 * top.c (quit_force): Call 'finalize_values'.
7498 * value.c (finalize_values): New function.
7499 * value.h (finalize_values): Declare.
7501 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7503 * NEWS: Announce $_gdb_major and $_gdb_minor.
7505 * top.c (init_gdb_version_vars): New function.
7506 (gdb_init): Call init_gdb_version_vars.
7508 2019-03-29 Tom Tromey <tromey@adacore.com>
7510 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7511 help text. Remove dead code.
7513 2019-03-29 Keith Seitz <keiths@redhat.com>
7515 From Siddhesh Poyarekar:
7516 * f-lang.h (f77_get_upperbound): Return LONGEST.
7517 (f77_get_lowerbound): Likewise.
7518 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7519 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7521 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7522 plongest to format print it.
7523 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7524 (f77_get_upperbound): Likewise.
7525 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7526 LOWER_BOUND to LONGEST.
7527 (f77_create_arrayprint_offset_tbl): Likewise.
7529 2019-03-29 Keith Seitz <keiths@redhat.com>
7531 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7532 %s/pulongest for TYPE_LENGTH instead of %d in format
7534 * ada-typerint.c (ada_print_type): Likewise.
7535 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7536 * compile/compile-c-support.c (generate_register_struct): Likewise.
7537 * gdbtypes.c (recursive_dump_type): Likewise.
7538 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7539 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7540 instead of %d in format strings.
7541 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7542 to std::min to ULONGEST.
7543 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7544 instead of %d in format strings.
7545 * tracepoint.c (info_scope_command): Likewise.
7546 * typeprint.c (print_offset_data::update)
7547 (print_offset_data::finish): Likewise.
7548 * xtensa-tdep.c (xtensa_store_return_value)
7549 (xtensa_push_dummy_call): Likewise.
7551 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7553 * windows-nat.c (display_selector): Fixed format specifications
7556 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7558 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7560 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7562 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7563 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7564 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7565 (nios2_linux_init_abi): Install it.
7567 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7569 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7571 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7573 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7575 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7576 Tom Tromey <tromey@adacore.com>
7578 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7580 2019-03-26 Joel Brobecker <brobecker@adacore.com>
7582 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7583 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7584 method to compute the bounds of range types. Also print "[evaluated]"
7585 if the bounds' values come from a dynamic evaluation.
7587 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7589 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7590 whitespace when pretty printing is on.
7592 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7594 * ppc-linux-nat.c: Add include.
7596 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7598 * NEWS: Mention AArch64 Pointer Authentication.
7600 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7602 * arm-linux-nat.c: Add include.
7604 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7606 * source-cache.c (source_cache::get_source_lines): Re-read
7607 fullname after calling open_source_file.
7609 2019-03-25 John Baldwin <jhb@FreeBSD.org>
7611 * NEWS: Mention TLS support for FreeBSD.
7613 2019-03-25 Tom Tromey <tromey@adacore.com>
7615 * minsyms.c (BUNCH_SIZE): Update comment.
7616 (~minimal_symbol_reader): Remove old comment.
7617 (compact_minimal_symbols): Update comment.
7618 (minimal_symbol_reader::install): Remove old comment. Update
7621 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7623 * s390-linux-nat.c: Add include.
7625 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7627 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7628 Call linux_get_hwcap.
7629 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7631 (aarch64_linux_get_hwcap): Remove function.
7632 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7634 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7636 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7637 * linux-tdep.c (linux_get_hwcap): Add function.
7638 (linux_get_hwcap2): Likewise.
7639 * linux-tdep.h (linux_get_hwcap): Add declaration.
7640 (linux_get_hwcap2): Likewise.
7641 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7642 (ppc_linux_get_hwcap2): Likewise.
7643 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7645 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7646 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7647 (ppc_linux_nat_target::read_description): Likewise.
7648 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7649 * s390-linux-nat.c: Likewise.
7650 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7652 2019-03-24 Tom Tromey <tom@tromey.com>
7654 * ada-lang.c (standard_lookup): Simplify initialization.
7655 (ada_lookup_symbol_nonlocal): Simplify return.
7656 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7657 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7658 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7659 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7661 * solib.c (solib_global_lookup): Simplify.
7662 * symtab.c (null_block_symbol): Remove.
7663 (symbol_cache_lookup): Simplify returns.
7664 (lookup_language_this): Simplify returns.
7665 (lookup_symbol_aux): Simplify return.
7666 (lookup_local_symbol): Simplify returns.
7667 (lookup_global_symbol_from_objfile): Simplify return.
7668 (lookup_symbol_in_objfile_symtabs)
7669 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7670 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7671 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7672 * cp-namespace.c (cp_lookup_bare_symbol)
7673 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7674 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7675 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7676 (cp_lookup_symbol_via_imports): Simplify initialization.
7677 (find_symbol_in_baseclass): Likewise.
7678 * symtab.h (null_block_symbol): Remove.
7679 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7680 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7681 (d_lookup_symbol_module): Likewise.
7682 (find_symbol_in_baseclass): Simplify initialization.
7684 2019-03-24 Tom Tromey <tom@tromey.com>
7686 * expression.h: Don't include symtab.h.
7687 (struct block): Forward declare.
7689 2019-03-24 Tom Tromey <tom@tromey.com>
7691 * c-exp.y (typebase): Remove casts.
7692 * gdbtypes.c (lookup_unsigned_typename, )
7693 (lookup_signed_typename): Remove cast.
7694 * eval.c (parse_to_comma_and_eval): Remove cast.
7695 * parse.c (write_dollar_variable): Remove cast.
7696 * block.h (struct block) <superblock>: Now const.
7697 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7698 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7699 (map_block): Make "block" const.
7700 * symfile.h (struct quick_symbol_functions)
7701 <map_matching_symbols>: Constify block argument to "callback".
7702 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7704 (find_pc_sect_compunit_symtab): Make "b" const.
7705 (find_symbol_at_address): Likewise.
7706 (search_symbols): Likewise.
7707 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7708 (dw2_debug_names_lookup_symbol): Likewise.
7709 (dw2_map_matching_symbols): Update.
7710 * p-valprint.c (pascal_val_print): Remove "block".
7711 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7712 (aux_add_nonlocal_symbols): Make "block" const.
7713 (resolve_subexp): Remove cast.
7714 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7716 (iterate_over_file_blocks): Likewise.
7717 * f-exp.y (%union) <bval>: Remove.
7718 * coffread.c (patch_opaque_types): Make "b" const.
7719 * spu-tdep.c (spu_catch_start): Make "block" const.
7720 * c-valprint.c (print_unpacked_pointer): Remove "block".
7721 * symmisc.c (dump_symtab_1): Make "b" const.
7722 (block_depth): Make "block" const.
7723 * d-exp.y (%union) <bval>: Remove.
7724 * cp-support.h (cp_lookup_rtti_type): Update.
7725 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7726 * psymtab.c (psym_lookup_symbol): Make "block" const.
7727 (maintenance_check_psymtabs): Make "b" const.
7728 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7729 (enumerate_locals, enumerate_args): Update.
7730 * python/py-symtab.c (stpy_global_block): Make "block" const.
7731 (stpy_static_block): Likewise.
7732 * inline-frame.c (block_starting_point_at): Make "new_block"
7734 * block.c (find_block_in_blockvector): Make return type const.
7735 (blockvector_for_pc_sect): Make "b" const.
7736 (find_block_in_blockvector): Make "b" const.
7738 2019-03-23 Tom Tromey <tom@tromey.com>
7740 * varobj.c (varobj_create): Update.
7741 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7742 * printcmd.c (display_command, do_one_display): Don't reset
7744 * parser-defs.h (enum innermost_block_tracker_type): Move to
7746 (innermost_block): Update comment.
7747 * parse.c (parse_exp_1): Add tracker_types parameter.
7748 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7749 tracker_types parameter. Reset innermost_block.
7750 (parse_exp_in_context): Remove.
7751 (parse_expression_for_completion): Update.
7752 * objfiles.c (~objfile): Don't reset expression_context_block or
7754 * expression.h (enum innermost_block_tracker_type): Move from
7756 (parse_exp_1): Add tracker_types parameter.
7757 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7758 reset innermost_block.
7760 2019-03-23 Tom Tromey <tom@tromey.com>
7762 * objfiles.h: Include bcache.h.
7764 2019-03-23 Tom Tromey <tom@tromey.com>
7766 * linespec.c (get_current_search_block): Use
7767 scoped_restore_current_language.
7768 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7770 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7771 Jiong Wang <jiong.wang@arm.com>
7773 * aarch64-linux-tdep.c
7774 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7776 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7778 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7779 Jiong Wang <jiong.wang@arm.com>
7781 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7783 (aarch64_analyze_prologue_test): Add PACIASP test.
7784 (aarch64_prologue_prev_register): Unmask PC value.
7786 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7787 Jiong Wang <jiong.wang@arm.com>
7789 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7790 (aarch64_dwarf2_prev_register): Unmask PC value.
7791 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7792 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7793 DW_CFA_AARCH64_negate_ra_state.
7794 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7796 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7797 Jiong Wang <jiong.wang@arm.com>
7799 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7801 (aarch64_pseudo_register_name): Likewise.
7802 (aarch64_pseudo_register_type): Likewise.
7803 (aarch64_pseudo_register_reggroup_p): Likewise.
7804 (aarch64_gdbarch_init): Add pauth registers.
7805 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7806 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7807 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7808 (struct gdbarch_tdep): Add regnum for ra_state.
7810 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7811 Jiong Wang <jiong.wang@arm.com>
7813 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7815 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7816 Jiong Wang <jiong.wang@arm.com>
7818 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7820 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7821 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7822 (aarch64_gdbarch_init): Add puth registers.
7823 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7824 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7825 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7827 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7828 Jiong Wang <jiong.wang@arm.com>
7830 * aarch64-linux-nat.c
7831 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7832 * aarch64-linux-tdep.c
7833 (aarch64_linux_core_read_description): Likewise.
7834 (aarch64_linux_get_hwcap): New function.
7835 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7836 (aarch64_linux_get_hwcap): New declaration.
7838 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7839 Jiong Wang <jiong.wang@arm.com>
7841 * aarch64-linux-nat.c
7842 (aarch64_linux_nat_target::read_description): Add pauth param.
7843 * aarch64-linux-tdep.c
7844 (aarch64_linux_core_read_description): Likewise.
7845 * aarch64-tdep.c (struct target_desc): Add in pauth.
7846 (aarch64_read_description): Add pauth param.
7847 (aarch64_gdbarch_init): Likewise.
7848 * aarch64-tdep.h (aarch64_read_description): Likewise.
7849 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7850 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7851 * features/Makefile: Add new files.
7852 * features/aarch64-pauth.c: New file.
7853 * features/aarch64-pauth.xml: New file.
7855 2019-03-20 Tom Tromey <tromey@adacore.com>
7857 * infrun.c (handle_inferior_event): Rename from
7858 handle_inferior_event_1. Create a scoped_value_mark.
7859 (handle_inferior_event): Remove.
7861 2019-03-19 Tom Tromey <tromey@adacore.com>
7863 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7864 * infrun.h (print_stop_event): Add "displays" parameter.
7865 * infrun.c (print_stop_event): Add "displays" parameter.
7867 2019-03-19 Pedro Alves <palves@redhat.com>
7869 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7870 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7871 to -1. Fix TABs vs spaces.
7872 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7873 * tui/tui-out.h (tui_ui_out) Add intro comments.
7874 <m_line, m_start_of_line>: In-class initialize, and add describing
7877 2019-03-18 Alan Hayward <alan.hayward@arm.com>
7879 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7881 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7883 2019-03-18 Pedro Alves <palves@redhat.com>
7884 Eli Zaretskii <eliz@gnu.org>
7886 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7887 m_line and m_start_of_line.
7889 2019-03-18 Eli Zaretskii <eliz@gnu.org>
7891 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7892 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7893 it returns a newline. This fixes a regression in TU mode, whereby
7894 the next line is output on the same screen line as the user input.
7896 2019-03-18 Tom Tromey <tromey@adacore.com>
7898 * minsyms.c (minimal_symbol_reader::install): Remove call to
7901 2019-03-18 Pedro Alves <palves@redhat.com>
7903 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7905 (apply_style): New, factored out from ...
7906 (apply_ansi_escape): ... this. Handle reverse video mode.
7907 (tui_set_reverse_mode): New function.
7908 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7909 * tui/tui-winsource.c (tui_show_source_line): Use
7910 tui_set_reverse_mode instead of setting A_STANDOUT.
7911 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7914 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
7916 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7919 2019-03-18 Tom Tromey <tromey@adacore.com>
7921 * ada-lang.c (empty_array): Add "high" parameter.
7922 (ada_evaluate_subexp): Update.
7924 2019-03-17 Sergei Trofimovich <siarheit@google.com>
7926 * unittests/string_view-selftests.c: Define
7927 _initialize_string_view_selftests unconditionally.
7929 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7932 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7934 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7937 * windows-nat.c (display_selector): Fix format specifiers.
7939 2019-03-17 Eli Zaretskii <eliz@gnu.org>
7941 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7942 tui_refill_source_window instead of tui_refresh_win, to update the
7943 current execution line. This fixes redisplay of the current line
7944 when stepping through the code with "next" or "step".
7946 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7948 * source-cache.c (source_cache::get_source_lines): Call
7949 find_source_lines to initialize s->nlines. This fixes vertical
7950 scrolling of TUI source window when the DOWN arrow is pressed.
7952 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7954 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7955 linux-thread-db.c (_initialize_thread_db): Likewise.
7957 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7959 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7960 wclrtoeol in tui_show_source_line". This reverts changes made in
7961 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7963 2019-03-15 Tom Tromey <tom@tromey.com>
7965 * symtab.h (struct minimal_symbol): Derive from
7966 general_symbol_info.
7967 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7968 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7969 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7970 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7971 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7972 (MSYMBOL_SEARCH_NAME): Update.
7973 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7974 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7975 * minsyms.c (minimal_symbol_reader::record_full): Update.
7977 2019-03-15 Tom Tromey <tom@tromey.com>
7979 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7981 2019-03-15 Tom Tromey <tom@tromey.com>
7983 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7985 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7987 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7988 (build_minimal_symbol_hash_tables)
7989 (minimal_symbol_reader::install): Update.
7991 2019-03-15 Tom Tromey <tom@tromey.com>
7993 * symtab.c (create_demangled_names_hash): Update.
7994 (symbol_set_names): Update.
7995 * objfiles.h (struct objfile_per_bfd_storage)
7996 <demangled_names_hash>: Now an htab_up.
7997 * objfiles.c (objfile_per_bfd_storage): Simplify.
7999 2019-03-15 Tom Tromey <tom@tromey.com>
8001 * objfiles.h (struct objfile_per_bfd_storage): Declare
8003 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8005 (get_objfile_bfd_data): Use new. Don't initialize
8007 (free_objfile_per_bfd_storage): Remove.
8008 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8010 2019-03-15 Tom Tromey <tom@tromey.com>
8012 * symfile.c (reread_symbols): Update.
8013 * objfiles.c (objfile::objfile): Update.
8014 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8015 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8017 (minimal_symbol_reader::install): Update.
8018 (terminate_minimal_symbol_table): Remove.
8019 * jit.c (jit_object_close_impl): Update.
8021 2019-03-15 Tom Tromey <tom@tromey.com>
8023 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8026 2019-03-15 Tom Tromey <tom@tromey.com>
8028 * objfiles.h (struct objfile_per_bfd_storage)
8029 <demangled_hash_languages>: Now a bitset.
8030 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8031 (lookup_minimal_symbol): Update.
8033 2019-03-15 Tom Tromey <tom@tromey.com>
8035 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8036 Don't return the symbol.
8037 * coffread.c (record_minimal_symbol): Use record_full.
8039 2019-03-14 Eli Zaretskii <eliz@gnu.org>
8041 The MS-Windows port of ncurses fails to switch to a color pair if
8042 one or both of the colors are the implicit default colors. This
8043 change records the default colors when TUI is initialized, and
8044 then specifies them explicitly when a color pair uses the default
8045 colors. This allows color styling in TUI mode on MS-Windows.
8047 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8049 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8050 colors in ncurses_norm_attr.
8051 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8052 "none", replace it with the default color recorded in
8055 2019-03-14 Tom Tromey <tromey@adacore.com>
8057 * source-cache.h (class source_cache) <get_source_lines>: Return
8059 * source-cache.c (source_cache::extract_lines): Handle case where
8060 first_pos==npos. Return std::string.
8061 (source_cache::get_source_lines): Update.
8063 2019-03-14 Tom Tromey <tromey@adacore.com>
8065 * NEWS: Add item for "style sources" commands.
8066 * source-cache.c (source_cache::get_source_lines): Check
8068 * cli/cli-style.c (source_styling): New global.
8069 (_initialize_cli_style): Add "style sources" commands.
8070 (show_style_sources): New function.
8071 * cli/cli-style.h (source_styling): Declare.
8073 2019-03-14 Pedro Alves <palves@redhat.com>
8074 Tom Tromey <tromey@adacore.com>
8076 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8077 * tui/tui-winsource.c (tui_refill_source_window): New function,
8079 (tui_horizontal_source_scroll): ... here. Move some logic.
8080 * cli/cli-style.c (set_style_enabled): Notify new observable.
8081 * tui/tui-hooks.c (tui_redisplay_source): New function.
8082 (tui_attach_detach_observers): Attach or detach
8083 tui_redisplay_source.
8084 * observable.h (source_styling_changed): New observable.
8085 * observable.c: Define source_styling_changed observable.
8087 2019-03-13 Tom Tromey <tromey@adacore.com>
8089 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8090 (i386_gnu_nat_target::store_registers): Update.
8091 * target-debug.h (target_debug_print_std_string): New macro.
8092 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8093 * windows-tdep.c (display_one_tib): Update.
8094 * tui/tui-stack.c (tui_make_status_line): Update.
8095 * top.c (print_inferior_quit_action): Update.
8096 * thread.c (thr_try_catch_cmd): Update.
8097 (add_thread_with_info): Update.
8098 (thread_target_id_str): Update.
8099 (thr_try_catch_cmd): Update.
8100 (thread_command): Update.
8101 (thread_find_command): Update.
8102 * record-btrace.c (record_btrace_target::info_record)
8103 (record_btrace_resume_thread, record_btrace_target::resume)
8104 (record_btrace_cancel_resume, record_btrace_step_thread)
8105 (record_btrace_target::wait, record_btrace_target::wait)
8106 (record_btrace_target::wait, record_btrace_target::stop): Update.
8107 * progspace.c (print_program_space): Update.
8108 * process-stratum-target.c
8109 (process_stratum_target::thread_address_space): Update.
8110 * linux-fork.c (linux_fork_mourn_inferior)
8111 (detach_checkpoint_command, info_checkpoints_command)
8112 (linux_fork_context): Update.
8113 (linux_fork_detach): Update.
8114 (class scoped_switch_fork_info): Update.
8115 (delete_checkpoint_command): Update.
8116 * infrun.c (follow_fork_inferior): Update.
8117 (follow_fork_inferior): Update.
8118 (proceed_after_vfork_done): Update.
8119 (handle_vfork_child_exec_or_exit): Update.
8120 (follow_exec): Update.
8121 (displaced_step_prepare_throw): Update.
8122 (displaced_step_restore): Update.
8123 (start_step_over): Update.
8125 (clear_proceed_status_thread): Update.
8127 (print_target_wait_results): Update.
8128 (do_target_wait): Update.
8129 (context_switch): Update.
8130 (stop_all_threads): Update.
8131 (restart_threads): Update.
8132 (finish_step_over): Update.
8133 (handle_signal_stop): Update.
8134 (switch_back_to_stepped_thread): Update.
8135 (keep_going_pass_signal): Update.
8136 (print_exited_reason): Update.
8137 (normal_stop): Update.
8138 * inferior.c (inferior_pid_to_str): Change return type.
8139 (print_selected_inferior): Update.
8140 (add_inferior): Update.
8141 (detach_inferior): Update.
8142 * dummy-frame.c (fprint_dummy_frames): Update.
8143 * dcache.c (dcache_info_1): Update.
8144 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8145 (btrace_fetch, btrace_clear): Update.
8146 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8147 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8149 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8150 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8151 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8152 * gdbarch.c, gdbarch.h: Rebuild.
8153 * gdbarch.sh (core_pid_to_str): Change return type.
8154 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8156 (windows_nat_target::pid_to_str): Change return type.
8157 (windows_delete_thread): Update.
8158 (windows_nat_target::attach): Update.
8159 (windows_nat_target::files_info): Update.
8160 * target-delegates.c: Rebuild.
8161 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8163 (sol_thread_target::pid_to_str): Change return type.
8164 * remote.c (class remote_target) <pid_to_str>: Change return
8166 (remote_target::pid_to_str): Change return type.
8167 (extended_remote_target::attach, remote_target::remote_stop_ns)
8168 (remote_target::remote_notif_remove_queued_reply)
8169 (remote_target::push_stop_reply, remote_target::disable_btrace):
8171 (extended_remote_target::attach): Update.
8172 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8174 (gdbsim_target::pid_to_str): Change return type.
8175 * ravenscar-thread.c (struct ravenscar_thread_target)
8176 <pid_to_str>: Change return type.
8177 (ravenscar_thread_target::pid_to_str): Change return type.
8178 * procfs.c (class procfs_target) <pid_to_str>: Change return
8180 (procfs_target::pid_to_str): Change return type.
8181 (procfs_target::attach): Update.
8182 (procfs_target::detach): Update.
8183 (procfs_target::fetch_registers): Update.
8184 (procfs_target::store_registers): Update.
8185 (procfs_target::wait): Update.
8186 (procfs_target::files_info): Update.
8187 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8188 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8190 (nto_procfs_target::pid_to_str): Change return type.
8191 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8192 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8194 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8196 (attach_proc_task_lwp_callback, get_detach_signal)
8197 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8198 (linux_nat_target::resume, wait_lwp, stop_callback)
8199 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8200 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8201 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8202 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8203 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8205 (inf_ptrace_target::attach): Update.
8206 (inf_ptrace_target::files_info): Update.
8207 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8209 (go32_nat_target::pid_to_str): Change return type.
8210 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8211 (gnu_nat_target::wait): Update.
8212 (gnu_nat_target::wait): Update.
8213 (gnu_nat_target::resume): Update.
8214 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8215 (fbsd_nat_target::wait): Update.
8216 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8218 (darwin_nat_target::attach): Update.
8219 * corelow.c (class core_target) <pid_to_str>: Change return type.
8220 (core_target::pid_to_str): Change return type.
8221 * target.c (normal_pid_to_str): Change return type.
8222 (default_pid_to_str): Likewise.
8223 (target_pid_to_str): Change return type.
8224 (target_translate_tls_address): Update.
8225 (target_announce_detach): Update.
8226 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8228 (bsd_uthread_target::pid_to_str): Change return type.
8229 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8231 (bsd_kvm_target::pid_to_str): Change return type.
8232 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8234 (aix_thread_target::pid_to_str): Change return type.
8235 * target.h (struct target_ops) <pid_to_str>: Change return type.
8236 (target_pid_to_str, normal_pid_to_str): Likewise.
8237 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8239 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8241 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8243 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8245 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8247 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8250 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8252 * NEWS: Mention that the new default MI version is 3. Mention
8253 changes to the output of commands and events that deal with
8254 multi-location breakpoints.
8255 * breakpoint.c: Include "mi/mi-out.h".
8256 (print_one_breakpoint): Change output syntax if using MI version
8258 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8260 (mi_multi_location_breakpoint_output_fixed): New.
8261 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8262 (mi_cmd_fix_multi_location_breakpoint_output): New.
8263 (mi_multi_location_breakpoint_output_fixed): New.
8264 * mi/mi-cmds.c (mi_cmds): Register command
8265 -fix-multi-location-breakpoint-output.
8266 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8269 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8271 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8272 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8273 instantiate mi_ui_out based on interpreter name.
8274 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8275 * mi/mi-main.c (mi_load_progress): Likewise.
8277 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8279 * NEWS: Combine separate "New targets" sections for 8.3.
8281 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8283 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8284 (ppcfbsd_init_abi): Install gdbarch
8285 "fetch_tls_load_module_address" and "get_thread_local_address"
8288 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8290 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8291 (riscv_fbsd_init_abi): Install gdbarch
8292 "fetch_tls_load_module_address" and "get_thread_local_address"
8295 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8297 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8298 (i386fbsd_init_abi): Install gdbarch
8299 "fetch_tls_load_module_address" and "get_thread_local_address"
8302 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8304 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8305 (amd64fbsd_init_abi): Install gdbarch
8306 "fetch_tls_load_module_address" and "get_thread_local_address"
8309 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8311 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8312 (struct fbsd_pspace_data): New type.
8313 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8314 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8315 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8316 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8317 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8319 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8321 * gdbtypes.c (lookup_struct_elt): New function.
8322 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8323 * gdbtypes.h (struct struct_elt): New type.
8324 (lookup_struct_elt): New prototype.
8326 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8328 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8329 remove disabled code block.
8331 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8333 * gdbarch.sh (get_thread_local_address): New method.
8334 * gdbarch.h, gdbarch.c: Regenerate.
8335 * target.c (target_translate_tls_address): Use
8336 gdbarch_get_thread_local_address if present instead of
8337 target::get_thread_local_address.
8339 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8341 * target.h (target::get_thread_local_address): Update comment.
8343 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8345 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8346 objfile->separate_debug_objfile_backlink if not NULL.
8348 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8350 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8351 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8352 (amd64bsd_store_inferior_registers): Likewise.
8353 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8354 Enable segment base registers.
8355 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8356 PT_GETFSBASE and PT_GETGSBASE.
8357 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8359 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8360 segment base registers.
8361 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8363 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8365 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8366 Update calls to i386_target_description to add 'segments'
8368 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8369 add segment base registers.
8370 * arch/i386.c (i386_create_target_description): Add 'segments'
8371 parameter to enable segment base registers.
8372 * arch/i386.h (i386_create_target_description): Likewise.
8373 * features/i386/32bit-segments.xml: New file.
8374 * features/i386/32bit-segments.c: Generate.
8375 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8376 call to i386_target_description to add 'segments' parameter.
8377 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8378 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8379 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8380 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8381 if feature is present.
8382 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8383 Add 'segments' parameter to call to i386_target_description.
8384 (i386_target_description): Add 'segments' parameter to enable
8385 segment base registers.
8386 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8387 to call to i386_target_description.
8388 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8389 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8390 Define I386_NUM_REGS.
8391 (i386_target_description): Add 'segments' parameter to enable
8392 segment base registers.
8394 2019-03-12 Eli Zaretskii <eliz@gnu.org>
8397 * source-cache.c: #undef open and close, to avoid unresolved
8398 externals during linking.
8400 2019-03-12 Tom Tromey <tromey@adacore.com>
8402 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8403 const. Add initializers.
8404 (_initialize_remote): Don't initialize ptid globals.
8406 2019-03-12 Pedro Alves <palves@redhat.com>
8408 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8410 2019-03-12 Pedro Alves <palves@redhat.com>
8412 * cp-name-parser.y (main): Remove unused 'len' variable.
8414 2019-03-12 Tom Tromey <tromey@adacore.com>
8416 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8417 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8419 2019-03-12 Tom Tromey <tromey@adacore.com>
8421 * linux-nat.c (iterate_over_lwps): Update.
8422 (stop_callback): Remove parameter.
8423 (stop_wait_callback, detach_callback, resume_set_callback)
8424 (select_singlestep_lwp_callback, set_ignore_sigint)
8425 (status_callback, resumed_callback, resume_clear_callback)
8426 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8428 (linux_nat_target::detach, linux_nat_target::resume)
8429 (linux_stop_and_wait_all_lwps, select_event_lwp)
8430 (linux_nat_filter_event, linux_nat_wait_1)
8431 (linux_nat_target::kill, linux_nat_target::stop)
8432 (linux_nat_target::stop): Update.
8433 (linux_nat_resume_callback): Change type.
8434 (resume_stopped_resumed_lwps, count_events_callback)
8435 (select_event_lwp_callback): Likewise.
8436 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8437 * arm-linux-nat.c (struct update_registers_data): Remove.
8438 (update_registers_callback): Change type.
8439 (arm_linux_insert_hw_breakpoint1): Update.
8440 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8442 (x86_linux_dr_set_addr): Update.
8443 (x86_linux_dr_set_control): Update.
8444 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8445 (iterate_over_lwps): Use gdb::function_view.
8446 * nat/aarch64-linux-hw-point.c (struct
8447 aarch64_dr_update_callback_param): Remove.
8448 (debug_reg_change_callback): Change type.
8449 (aarch64_notify_debug_reg_change): Update.
8450 * s390-linux-nat.c (s390_refresh_per_info): Update.
8452 2019-03-11 Tom Tromey <tromey@adacore.com>
8454 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8455 redundant assignment to "this_cu".
8457 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8459 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8461 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8463 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8465 (rank_one_type): ... this.
8467 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8469 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8471 (rank_one_type): ... this.
8473 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8475 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8477 (rank_one_type): ... this.
8479 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8481 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8483 (rank_one_type): ... this.
8485 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8487 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8489 (rank_one_type): ... this.
8491 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8493 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8495 (rank_one_type): ... this.
8497 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8499 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8501 (rank_one_type): ... this.
8503 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8505 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8507 (rank_one_type): ... this.
8509 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8511 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8513 (rank_one_type): ... this.
8515 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8517 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8519 (rank_one_type): ... this.
8521 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8523 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8525 (rank_one_type): ... this.
8527 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8529 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8531 (rank_one_type): ... this.
8533 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8535 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8536 inferior-events' shows the example events.
8538 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8540 Support styling on native MS-Windows console
8543 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8544 on MS-Windows if $TERM is not defined.
8546 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8548 * posix-hdep.c (gdb_console_fputs):
8549 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8551 * ui-file.h (gdb_console_fputs): Add prototype.
8553 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8554 back to fputs only if the former returns zero.
8556 2019-03-07 Tom Tromey <tom@tromey.com>
8558 * symmisc.c (print_symbol_bcache_statistics): Update.
8559 (print_objfile_statistics): Update.
8560 * symfile.c (allocate_symtab): Update.
8561 * stabsread.c: Don't include bcache.h.
8562 * psymtab.h (struct psymbol_bcache): Don't declare.
8563 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8564 (psymbol_bcache_init, psymbol_bcache_free)
8565 (psymbol_bcache_get_bcache): Don't declare.
8566 * psymtab.c (struct psymbol_bcache): Remove.
8567 (psymtab_storage::psymtab_storage): Update.
8568 (psymtab_storage::~psymtab_storage): Update.
8569 (psymbol_bcache_init, psymbol_bcache_free)
8570 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8571 (add_psymbol_to_bcache): Update.
8572 (allocate_psymtab): Update.
8573 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8574 macro_cache>: No longer pointers.
8575 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8576 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8577 * macrotab.c (macro_bcache): Update.
8578 * macroexp.c: Don't include bcache.h.
8579 * gdbtypes.c (check_types_worklist): Update.
8580 (types_deeply_equal): Remove TRY/CATCH. Update.
8581 * elfread.c (elf_symtab_read): Update.
8582 * dwarf2read.c: Don't include bcache.h.
8583 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8584 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8585 (print_bcache_statistics, bcache_memory_used): Don't declare.
8586 (struct bcache): Move from bcache.c. Add constructor, destructor,
8587 methods. Rename all data members.
8588 * bcache.c (struct bcache): Move to bcache.h.
8589 (bcache::expand_hash_table): Rename from expand_hash_table.
8591 (bcache::insert): Rename from bcache_full.
8592 (bcache::compare): Rename from bcache_compare.
8593 (bcache_xmalloc): Remove.
8594 (bcache::~bcache): Rename from bcache_xfree.
8595 (bcache::print_statistics): Rename from print_bcache_statistics.
8596 (bcache::memory_used): Rename from bcache_memory_used.
8598 2019-03-07 Pedro Alves <palves@redhat.com>
8600 * infrun.c (normal_stop): Also check for
8601 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8603 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8605 * f-lang.c (value_from_host_double): Moved to...
8606 * value.c (value_from_host_double): ...here.
8607 * value.h (value_from_host_double): Declare.
8608 * guile/scm-math.c (vlscm_convert_typed_number): Use
8609 value_from_host_double.
8610 (vlscm_convert_number): Likewise.
8611 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8612 * python/py-value.c (convert_value_from_python): Likewise.
8614 2019-03-06 Tom Tromey <tom@tromey.com>
8616 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8618 2019-03-06 Tom Tromey <tom@tromey.com>
8620 * utils.h (free_current_contents): Don't declare.
8621 * utils.c (free_current_contents): Remove.
8623 2019-03-06 Tom Tromey <tom@tromey.com>
8625 * top.c (quit_force): Update.
8626 * main.c (captured_command_loop): Update.
8627 * common/new-op.c (operator new): Update.
8628 * common/common-exceptions.c (struct catcher)
8629 <save_cleanup_chain>: Remove member.
8630 (exceptions_state_mc_init): Update.
8631 (exception_try_scope_entry): Return nullptr.
8632 (exception_try_scope_exit, exception_rethrow)
8633 (throw_exception_sjlj, throw_exception_cxx): Update.
8634 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8635 (all_cleanups, do_cleanups, discard_cleanups)
8636 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8637 (restore_cleanups, restore_final_cleanups): Don't declare.
8638 (do_final_cleanups): Remove parameter.
8639 * common/cleanups.c (cleanup_chain, make_cleanup)
8640 (make_cleanup_dtor, all_cleanups, do_cleanups)
8641 (discard_my_cleanups, discard_cleanups)
8642 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8643 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8644 (null_cleanup): Remove.
8645 (do_final_cleanups): Remove parameter.
8647 2019-03-06 Tom Tromey <tom@tromey.com>
8649 * remote.c (remote_target::remote_parse_stop_reply): Use
8652 2019-03-06 Tom Tromey <tom@tromey.com>
8654 * stabsread.c (struct stabs_field_info): Rename from field_info.
8655 <list, fnlist>: Add initializers.
8656 <obstack>: New member.
8657 (read_member_functions, read_struct_fields, read_baseclasses):
8658 Allocate on obstack. Don't use cleanups.
8659 (read_one_struct_field, read_member_functions, read_struct_fields)
8660 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8661 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8662 (read_struct_type): Update.
8664 2019-03-06 Tom Tromey <tom@tromey.com>
8666 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8667 * common/filestuff.h (make_cleanup_close): Don't declare.
8668 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8671 2019-03-06 Tom Tromey <tom@tromey.com>
8673 * solib-aix.c: Use make_scope_exit.
8675 2019-03-06 Tom Tromey <tom@tromey.com>
8677 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8678 Use make_scope_exit.
8680 2019-03-06 Tom Tromey <tom@tromey.com>
8682 * solib-svr4.c (disable_probes_interface): Remove parameter.
8683 (svr4_handle_solib_event): Use make_scope_exit.
8685 2019-03-06 Tom Tromey <tom@tromey.com>
8687 * remote.c (struct stop_reply_deleter): Remove.
8688 (stop_reply_up): Update.
8689 (struct stop_reply): Derive from notif_event. Don't typedef.
8690 <regcache>: Now a std::vector.
8691 (stop_reply_xfree): Remove.
8692 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8693 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8694 (remote_target::discard_pending_stop_replies): Use delete.
8695 (remote_target::remote_parse_stop_reply): Update.
8696 (remote_target::process_stop_reply): Update.
8697 * remote-notif.h (struct notif_event): Add virtual destructor.
8698 Remove "dtr" member.
8699 (struct notif_client) <alloc_event>: Return a unique_ptr.
8700 (notif_event_xfree): Don't declare.
8701 (notif_event_up): New typedef.
8702 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8703 (notif_event_xfree, do_notif_event_xfree): Remove.
8704 (remote_notif_state_xfree): Update.
8706 2019-03-06 Tom Tromey <tom@tromey.com>
8708 * infrun.c (displaced_step_clear_cleanup): Now a
8709 forward_scope_exit type.
8710 (displaced_step_prepare_throw): Update.
8711 (displaced_step_fixup): Update.
8713 2019-03-06 Tom Tromey <tom@tromey.com>
8715 * inferior.h (class inferior): Update comment.
8716 * gdbthread.h (class thread_info): Update comment.
8718 2019-03-06 Joel Brobecker <brobecker@adacore.com>
8719 Tom Tromey <tom@tromey.com>
8721 * stabsread.h (struct stab_section_list): Remove.
8722 (coffstab_build_psymtabs): Update.
8723 * dbxread.c (symbuf_sections): Now a std::vector.
8724 (sect_idx): New global.
8725 (fill_symbuf): Update.
8726 (coffstab_build_psymtabs): Change type of stabsects parameter.
8728 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8730 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8731 (coff_locate_sections): Update.
8732 (coff_symfile_read): Remove cleanups. Update.
8733 (init_stringtab): Add storage parameter.
8734 (free_stringtab, free_stringtab_cleanup): Remove.
8735 (init_lineno): Add storage parameter.
8736 (free_linetab, free_linetab_cleanup): Remove.
8738 2019-03-06 Pedro Alves <palves@redhat.com>
8740 * linux-fork.c (fork_info::clobber_regs): Delete.
8741 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8742 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8744 (scoped_switch_fork_info::scoped_switch_fork_info)
8745 (checkpoint_command, linux_fork_context): Adjust
8746 fork_save_infrun_state calls.
8748 2019-03-06 Pedro Alves <palves@redhat.com>
8750 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8751 (inf_has_multiple_threads): Return 'bool' and rewrite using
8752 inferior_info::threads().
8754 2019-03-06 Pedro Alves <palves@redhat.com>
8756 * linux-fork.c: Include <list>.
8757 (fork_list): Now a std::list instance.
8758 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8759 (forks_exist_p, find_last_fork): Adjust.
8763 (free_fork): Delete, folded into fork_info::~fork_info().
8764 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8766 (init_fork_list): Delete.
8767 (linux_fork_killall, linux_fork_mourn_inferior)
8768 (linux_fork_detach, info_checkpoints_command): Adjust.
8769 (_initialize_linux_fork): No longer call init_fork_list.
8771 2019-03-06 Pedro Alves <palves@redhat.com>
8773 * linux-fork.c (new_fork): New, split out of ...
8774 (add_fork): ... this. Return void. Move "first fork" special
8775 case from here, to ...
8776 (checkpoint_command): ... here.
8777 * linux-linux.h (add_fork): Return void.
8779 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8781 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8783 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8784 Chris January <chris.january@arm.com>
8785 David Lecomber <david.lecomber@arm.com>
8787 * f-exp.y: New token, UNOP_INTRINSIC.
8788 (exp): New pattern using UNOP_INTRINSIC token.
8789 (f77_keywords): Add 'abs' keyword.
8790 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8791 (value_from_host_double): New function.
8792 (evaluate_subexp_f): Support UNOP_ABS.
8794 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8796 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8799 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8801 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8802 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8803 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8805 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8807 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8809 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8810 Chris January <chris.january@arm.com>
8812 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8813 * f-exp.y: Define 'KIND' token.
8814 (exp): New pattern for KIND expressions.
8815 (ptype): Handle types with a kind extension.
8816 (direct_abs_decl): Extend to spot kind extensions.
8817 (f77_keywords): Add 'kind' to the list.
8818 (push_kind_type): New function.
8819 (convert_to_kind_type): New function.
8820 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8821 * parse.c (operator_length_standard): Likewise.
8822 * parser-defs.h (enum type_pieces): Add tp_kind.
8823 * std-operator.def: Add UNOP_KIND.
8825 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8827 * f-exp.y (f_parse): Set yydebug.
8829 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8831 * f-lang.c (evaluate_subexp_f): New function.
8832 (exp_descriptor_f): New global.
8833 (f_language_defn): Use exp_descriptor_f instead of
8834 exp_descriptor_standard.
8836 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8838 * f-exp.y (struct token): Add comments.
8839 (dot_ops): Remove uppercase versions and the end marker.
8840 (f77_keywords): Likewise.
8841 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8842 entries in the dot_ops array are case insensitive, and use
8843 strncasecmp to compare strings. Also some whitespace cleanup in
8844 this area. Similar for the f77_keywords array, except entries in
8845 this list might be case sensitive.
8847 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8849 * f-exp.y (struct f77_boolean_val): Add comments.
8850 (boolean_values): Remove uppercase versions, and end marker.
8851 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8852 and use strncasecmp to achieve case insensitivity. Additionally,
8853 perform whitespace cleanup around this code.
8855 2019-03-06 Tom Tromey <tromey@adacore.com>
8857 * remote-sim.c (gdbsim_target_open): Use result of
8860 2019-03-06 Richard Bunt <richard.bunt@arm.com>
8861 Dirk Schubert <dirk.schubert@arm.com>
8862 Chris January <chris.january@arm.com>
8864 * eval.c (evaluate_subexp_standard): Call Fortran argument
8866 * f-lang.c (struct value): A value which can be passed into a
8867 Fortran function call.
8868 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8870 (struct type): Value ready for a Fortran function call.
8871 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8873 * f-lang.h (fortran_argument_convert): Declaration.
8874 (fortran_preserve_arg_pointer): Declaration.
8875 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8877 2019-03-05 Tom Tromey <tromey@adacore.com>
8879 * python/py-prettyprint.c (print_string_repr): Remove #if.
8880 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8882 2019-03-05 Tom Tromey <tromey@adacore.com>
8884 * target.c (the_dummy_target): Move later. Change type to
8886 (initialize_targets): Don't initialize the_dummy_target.
8888 2019-03-05 Tom Tromey <tromey@adacore.com>
8890 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8891 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8893 2019-03-05 Tom Tromey <tromey@adacore.com>
8895 * windows-nat.c (windows_nat_target::attach)
8896 (windows_nat_target::detach): Don't call gdb_flush.
8897 * valprint.c (generic_val_print, val_print, val_print_string):
8898 Don't call gdb_flush.
8899 * utils.c (defaulted_query): Don't call gdb_flush.
8900 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8901 * target.c (target_announce_detach): Don't call gdb_flush.
8902 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8903 * remote.c (extended_remote_target::attach): Don't call
8905 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8906 * printcmd.c (do_examine): Don't call gdb_flush.
8907 (info_display_command): Don't call gdb_flush.
8908 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8909 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8910 * memattr.c (info_mem_command): Don't call gdb_flush.
8911 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8912 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8913 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8914 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8915 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8916 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8917 (gnu_nat_target::detach): Don't call gdb_flush.
8918 * f-valprint.c (f_val_print): Don't call gdb_flush.
8919 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8920 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8921 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8923 * c-valprint.c (c_val_print): Don't call gdb_flush.
8924 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8926 2019-03-05 Tom Tromey <tromey@adacore.com>
8928 * varobj.c (update_dynamic_varobj_children): Update.
8929 (install_default_visualizer): Use reset, not release.
8930 * value.c (set_internalvar): Update.
8931 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8932 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8933 ATTRIBUTE_UNUSED_RESULT.
8935 2019-03-05 Tom Tromey <tromey@adacore.com>
8937 * remote.c (class scoped_remote_fd) <release>: Add
8938 ATTRIBUTE_UNUSED_RESULT.
8940 2019-03-05 Tom Tromey <tromey@adacore.com>
8942 * macroexp.c (struct macro_buffer) <release>: Add
8943 ATTRIBUTE_UNUSED_RESULT.
8945 2019-03-05 Tom Tromey <tromey@adacore.com>
8947 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8948 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8949 ATTRIBUTE_UNUSED_RESULT.
8951 2019-03-05 Tom Tromey <tromey@adacore.com>
8953 * common/scoped_fd.h (class scoped_fd) <release>: Add
8954 ATTRIBUTE_UNUSED_RESULT.
8956 2019-03-05 Tom Tromey <tromey@adacore.com>
8958 * parser-defs.h (struct parser_state) <release>: Add
8959 ATTRIBUTE_UNUSED_RESULT.
8961 2019-03-05 Tom Tromey <tromey@adacore.com>
8963 * utils.h (class gdb_argv) <release>: Add
8964 ATTRIBUTE_UNUSED_RESULT.
8965 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8967 2019-03-02 Eli Zaretskii <eliz@gnu.org>
8969 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8970 for-loop range, to avoid compiler warnings.
8972 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8973 avoid compiler warnings about unused variables.
8975 * NEWS: Mention end of support for native debugging on MS-Windows
8979 * common/netstuff.c:
8980 * gdbserver/gdbreplay.c
8981 * gdbserver/remote-utils.c:
8983 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8984 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8985 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8986 'getaddrinfo' and 'freeaddrinfo' were not available before
8987 Windows XP, and mingw.org's MinGW headers by default define
8988 _WIN32_WINNT to 0x500.
8990 2019-03-01 Gary Benson <gbenson@redhat.com>
8992 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8994 2019-02-28 Brian Vandenberg <phantall@gmail.com>
8995 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8998 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8999 set_sigint_trap, clear_sigint_trap.
9001 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9003 * target.c (target_detach): Clear the regcache and the
9006 2019-02-27 Pedro Alves <palves@redhat.com>
9008 * utils.c (set_screen_size): When we cap the height/width sizes,
9009 tweak the corresponding command variable to show "unlimited":
9011 2019-02-27 Saagar Jha <saagar@saagarjha.com>
9012 Pedro Alves <palves@redhat.com>
9014 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9015 before calling rl_set_screen_size.
9017 2019-02-27 Tom Tromey <tromey@adacore.com>
9019 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9021 * python/py-value.c: Remove Python 2.4 workaround.
9022 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9024 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9025 Python 2.4 workaround.
9026 * python/python-internal.h: Remove Python 2.4 comment.
9027 (Py_ssize_t): Don't define.
9028 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9029 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9030 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9031 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9032 * python/python.c (do_start_initialization): Remove Python 2.4
9034 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9035 (print_children): Remove Python 2.4 workaround.
9036 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9038 (CHARBUFFERPROC_NAME): Remove.
9039 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9040 Python 2.4 workaround.
9042 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9044 * NEWS: Note minimum Python version.
9046 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9048 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9049 code from these functions. Remove corresponding ifdefs. Use
9050 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9051 Remove gotos and target of gotos.
9052 (infpy_search_memory): Likewise.
9054 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9056 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9057 (hppa_gdbarch_init): Don't register deleted functions with
9060 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9062 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9063 (h8300_unwind_sp): Delete.
9064 (h8300_dummy_id): Delete.
9065 (h8300_gdbarch_init): Don't register deleted functions with
9068 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9070 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9071 (ft32_unwind_pc): Delete.
9072 (ft32_unwind_sp): Delete.
9073 (ft32_gdbarch_init): Don't register deleted functions with
9076 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9078 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9079 (frv_unwind_pc): Delete.
9080 (frv_unwind_sp): Delete.
9081 (frv_gdbarch_init): Don't register deleted functions with
9084 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9086 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9087 (riscv_unwind_pc): Delete.
9088 (riscv_unwind_sp): Delete.
9089 (riscv_gdbarch_init): Don't register deleted functions with
9092 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9094 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9095 (csky_unwind_pc): Delete.
9096 (csky_unwind_sp): Delete.
9097 (csky_gdbarch_init): Don't register deleted functions with
9100 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9102 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9103 (cris_unwind_pc): Delete.
9104 (cris_unwind_sp): Delete.
9105 (cris_gdbarch_init): Don't register deleted functions with
9108 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9110 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9111 (bfin_unwind_pc): Delete.
9112 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9114 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9116 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9117 (arm_unwind_pc): Delete.
9118 (arm_unwind_sp): Delete.
9119 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9121 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9123 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9124 (arc_unwind_pc): Delete.
9125 (arc_unwind_sp): Delete.
9126 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9128 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9130 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9131 (alpha_unwind_pc): Delete.
9132 (alpha_gdbarch_init): Don't register deleted functions with
9135 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9137 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9138 (aarch64_unwind_pc): Delete.
9139 (aarch64_unwind_sp): Delete.
9140 (aarch64_gdbarch_init): Don't register deleted functions with
9143 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9145 * gdbtypes.c (type_align): Don't consider static members when
9146 computing structure alignment.
9148 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9150 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9151 return 0 for other types.
9152 * arch-utils.c (default_type_align): Always return 0.
9153 * gdbarch.h: Regenerate.
9154 * gdbarch.sh (type_align): Extend comment.
9155 * gdbtypes.c (type_align): Add additional comments, always call
9156 gdbarch_type_align before applying the default rules.
9157 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9158 generic code will then apply a suitable default.
9159 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9160 types, return 0 for other types.
9162 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9164 * NEWS: Create a new section for the next release branch.
9165 Rename the section of the current branch, now that it has
9168 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9170 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9171 * version.in: Bump version to 8.3.50.DATE-git.
9173 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9175 * aix-thread.c (ptid_cmp): Remove unused variable.
9176 (get_signaled_thread): Likewise.
9177 (store_regs_user_thread): Likewise.
9178 (store_regs_kernel_thread): Likewise.
9179 (fetch_regs_kernel_thread): Remove shadowed variable.
9181 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9183 * features/riscv/32bit-cpu.xml: Add register numbers.
9184 * features/riscv/32bit-fpu.c: Regenerate.
9185 * features/riscv/32bit-fpu.xml: Add register numbers.
9186 * features/riscv/64bit-cpu.xml: Add register numbers.
9187 * features/riscv/64bit-fpu.c: Regenerate.
9188 * features/riscv/64bit-fpu.xml: Add register numbers.
9190 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9192 * NEWS: Mention two argument form of gdb.Value constructor.
9193 * python/py-value.c (convert_buffer_and_type_to_value): New
9195 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9196 Add support for handling an optional second argument. Call
9197 convert_buffer_and_type_to_value as appropriate.
9198 * python/python-internal.h (Py_buffer_deleter): New struct.
9199 (Py_buffer_up): New typedef.
9201 2019-02-25 John Baldwin <jhb@FreeBSD.org>
9203 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9204 instead of releasing ownership.
9206 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
9208 * dwarf2read.c (open_and_init_dwp_file): Call
9209 elf_numsections instead of bfd_count_sections to initialize
9210 dwp_file->num_sections.
9212 2019-02-25 Tom Tromey <tromey@adacore.com>
9214 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9216 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9218 * gcore.in: Add '--readnever' option when invoking GDB.
9220 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9222 * MAINTAINERS: Update my email address.
9224 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9226 * build-id.c (build_id_to_debug_bfd_1): New function.
9227 (build_id_to_debug_bfd): Look for separate debug file in
9230 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9232 * gdbarch.sh: Update the copyright year range that is placed into
9235 2019-02-22 Keith Seitz <keiths@redhat.com>
9238 * linespec.c (create_sals_line_offset): Search for the default
9239 symtab's filename instead of its fullname.
9241 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9243 * NEWS: Update style defaults.
9245 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9247 * main.c (captured_main_1): Disable styling in batch mode.
9249 2019-02-20 Tom Tromey <tom@tromey.com>
9251 * symtab.c (symtab_symbol_info): Fix typos.
9253 2019-02-20 Tom Tromey <tromey@adacore.com>
9255 * findcmd.c (_initialize_mem_search): Use upper case for
9256 metasyntactic variables.
9258 2019-02-20 Alan Hayward <alan.hayward@arm.com>
9260 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9261 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9263 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9265 * top.h (source_file_name): Change to std::string.
9266 * top.c (source_file_name): Likewise.
9267 (command_line_input): Adjust.
9268 * cli/cli-script.c (script_from_file): Adjust.
9270 2019-02-19 Tom Tromey <tromey@adacore.com>
9272 * ravenscar-thread.c
9273 (ravenscar_thread_target::update_thread_list): Don't call
9274 ada_build_task_list.
9275 * ada-lang.h (ada_build_task_list): Don't declare.
9276 * ada-tasks.c (struct ada_tasks_inferior_data)
9277 <task_list_valid_p>: Now bool.
9278 (read_known_tasks, ada_task_list_changed)
9279 (ada_tasks_invalidate_inferior_data): Update.
9280 (read_known_tasks_array): Return bool.
9281 (read_known_tasks_list): Likewise.
9282 (read_known_tasks): Return void.
9283 (ada_build_task_list): Now static.
9285 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9287 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9288 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9290 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9292 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9293 variant for ada_tasks_pspace_data_handle and
9294 ada_tasks_inferior_data_handle.
9295 (ada_tasks_pspace_data_cleanup): New function.
9296 (ada_tasks_inferior_data_cleanup): New function.
9298 2019-02-17 Tom Tromey <tom@tromey.com>
9300 * macrotab.h (macro_source_fullname): Return a std::string.
9301 * macrotab.c (macro_include, check_for_redefinition)
9302 (macro_undef, macro_lookup_definition, foreach_macro)
9303 (foreach_macro_in_scope): Update.
9304 (macro_source_fullname): Return a std::string.
9305 * macrocmd.c (show_pp_source_pos): Update.
9307 2019-02-17 Tom Tromey <tom@tromey.com>
9309 * macrocmd.c (show_pp_source_pos): Style the file names.
9311 2019-02-17 Tom Tromey <tom@tromey.com>
9314 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9316 2019-02-17 Tom Tromey <tom@tromey.com>
9318 * ada-lang.c (user_select_syms): Use filtered printing.
9319 * utils.c (wrap_style): New global.
9320 (desired_style): Remove.
9321 (emit_style_escape): Add stream parameter.
9322 (set_output_style, reset_terminal_style, prompt_for_continue):
9324 (flush_wrap_buffer): Only flush gdb_stdout.
9325 (wrap_here): Set wrap_style.
9326 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9327 treat escape sequences as a character. Change when wrap buffer is
9329 (fputs_styled): Do not set the output style when the default is
9331 * ui-style.h (struct ui_file_style) <is_default>: New method.
9332 * source.c (print_source_lines_base): Emit escape sequences in one
9335 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9337 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9338 integers and enumeration types.
9340 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9342 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9343 instead of lookup_symbol_in_language
9344 (do_exact_match): New function.
9345 (ada_get_symbol_name_matcher): Return do_exact_match when
9346 doing a verbatim match.
9348 2019-02-15 Tom Tromey <tromey@adacore.com>
9350 * ravenscar-thread.c (ravenscar_thread_target::resume)
9351 (ravenscar_thread_target::wait): Special case wildcard requests.
9353 2019-02-15 Tom Tromey <tromey@adacore.com>
9355 * ravenscar-thread.c (base_ptid): Remove.
9356 (struct ravenscar_thread_target) <close>: New method.
9357 <m_base_ptid>: New member.
9358 <update_inferior_ptid, active_task, task_is_currently_active,
9359 runtime_initialized>: Declare methods.
9360 <ravenscar_thread_target>: Add constructor.
9361 (ravenscar_thread_target::task_is_currently_active)
9362 (ravenscar_thread_target::update_inferior_ptid)
9363 (ravenscar_runtime_initialized): Rename. Now methods.
9364 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9365 (ravenscar_thread_target::update_thread_list): Update.
9366 (ravenscar_thread_target::active_task): Now method.
9367 (ravenscar_thread_target::store_registers)
9368 (ravenscar_thread_target::prepare_to_store)
9369 (ravenscar_thread_target::prepare_to_store)
9370 (ravenscar_thread_target::mourn_inferior): Update.
9371 (ravenscar_inferior_created): Use "new" to create target.
9372 (ravenscar_thread_target::get_ada_task_ptid): Update.
9373 (_initialize_ravenscar): Don't initialize base_ptid.
9374 (ravenscar_ops): Remove global.
9376 2019-02-15 Tom Tromey <tromey@adacore.com>
9378 * target.h (push_target): Declare new overload.
9379 * target.c (push_target): New overload, taking an rvalue reference.
9380 * remote.c (remote_target::open_1): Use push_target overload.
9381 * corelow.c (core_target_open): Use push_target overload.
9383 2019-02-15 Tom Tromey <tromey@adacore.com>
9385 * ravenscar-thread.c (is_ravenscar_task)
9386 (ravenscar_task_is_currently_active): Return bool.
9387 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9388 (_initialize_ravenscar): Remove "(void)".
9389 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9392 2019-02-15 Tom Tromey <tromey@adacore.com>
9394 * ravenscar-thread.c (ravenscar_runtime_initializer)
9395 (has_ravenscar_runtime, get_running_thread_id)
9396 (ravenscar_thread_target::resume): Fix indentation.
9398 2019-02-15 Tom Tromey <tromey@adacore.com>
9400 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9401 from ravenscar_arch_ops.
9402 (sparc_ravenscar_ops::fetch_registers)
9403 (sparc_ravenscar_ops::store_registers): Now methods.
9404 (sparc_ravenscar_prepare_to_store): Remove.
9405 (sparc_ravenscar_ops): Redefine.
9406 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9407 methods and destructor. Remove members.
9408 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9409 (ravenscar_thread_target::store_registers)
9410 (ravenscar_thread_target::prepare_to_store): Update.
9411 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9413 (struct ppc_ravenscar_powerpc_ops): Derive from
9415 (ppc_ravenscar_powerpc_ops::fetch_registers)
9416 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9417 (ppc_ravenscar_powerpc_ops): Redefine.
9418 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9419 (ppc_ravenscar_e500_ops::fetch_registers)
9420 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9421 (ppc_ravenscar_e500_ops): Redefine.
9422 * aarch64-ravenscar-thread.c
9423 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9424 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9425 (aarch64_ravenscar_fetch_registers)
9426 (aarch64_ravenscar_store_registers): Now methods.
9427 (aarch64_ravenscar_ops): Redefine.
9429 2019-02-15 Tom Tromey <tromey@adacore.com>
9431 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9432 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9433 (ravenscar_thread_target::stopped_by_watchpoint)
9434 (ravenscar_thread_target::stopped_data_address)
9435 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9437 2019-02-15 Tom Tromey <tromey@adacore.com>
9439 * ravenscar-thread.c: Fix some typos.
9441 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9442 Tom Tromey <tromey@adacore.com>
9444 * ada-lang.c (ada_exception_sal): Change addr_string to a
9446 (create_ada_exception_catchpoint): Update.
9448 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9449 Tom Tromey <tromey@adacore.com>
9451 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9452 (bp_location_ops): Remove.
9453 (base_breakpoint_allocate_location): Update.
9454 (free_bp_location): Update.
9455 * ada-lang.c (class ada_catchpoint_location)
9456 <ada_catchpoint_location>: Remove ops parameter.
9457 (ada_catchpoint_location_dtor): Remove.
9458 (ada_catchpoint_location_ops): Remove.
9459 (allocate_location_exception): Update.
9460 * breakpoint.h (struct bp_location_ops): Remove.
9461 (class bp_location) <bp_location>: Remove bp_location_ops
9463 <~bp_location>: Add destructor.
9466 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9467 Pedro Alves <palves@redhat.com>
9469 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9472 2019-02-14 David Michael <fedora.dm0@gmail.com>
9473 Samuel Thibault <samuel.thibault@gnu.org>
9474 Thomas Schwinge <thomas@codesourcery.com>
9476 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9477 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9479 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9481 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9482 (check_empty): Use "const char *".
9484 * gnu-nat.c (gnu_nat_target::detach): Instead of
9485 'detach_inferior (pid)' call
9486 'detach_inferior (find_inferior_pid (pid))'.
9488 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9489 'nat/fork-inferior.o'.
9490 * gnu-nat.c: #include "nat/fork-inferior.h".
9492 * gnu-nat.c (gnu_nat_target::detach): Instead of
9493 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9494 * gnu-nat.h: #include "inf-child.h".
9495 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9496 'i386_gnu_nat_target::fetch_registers'.
9497 (gnu_store_registers): Rename/move to
9498 'i386_gnu_nat_target::store_registers'.
9500 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9501 * gnu-nat.h (mach_thread_info): New function.
9502 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9504 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9506 2019-02-14 Frederic Konrad <konrad@adacore.com>
9508 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9510 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9512 * windows-nat.c (windows_add_thread): Add new parameter
9513 "main_thread_p" with default value set to false. Update
9514 function documentation as well as all callers.
9515 (windows_delete_thread): Likewise.
9516 (fake_create_process): Update call to windows_add_thread.
9517 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9518 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9519 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9520 call to windows_delete_thread.
9522 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9524 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9526 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9528 * symfile.c (find_separate_debug_file): Use canonical path of
9529 sysroot with child_path instead of gdb_sysroot if it is valid.
9531 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9533 * symfile.c (find_separate_debug_file): Use child_path to
9534 determine if an object file is under a sysroot.
9536 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9538 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9539 unittests/child-path-selftests.c.
9540 * common/pathstuff.c (child_path): New function.
9541 * common/pathstuff.h (child_path): New prototype.
9542 * unittests/child-path-selftests.c: New file.
9544 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9546 * symfile.c (find_separate_debug_file): Look for separate debug
9547 files in debug directories under the sysroot.
9549 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9551 * symtab.h (struct minimal_symbol data_p): New const method.
9552 (struct minimal_symbol text_p): Likewise.
9553 * symtab.c (output_source_filename): Use file name style
9555 (print_symbol_info): Likewise.
9556 (print_msymbol_info): Use address style to print addresses.
9557 Use function name style to print executable text symbols.
9558 (expand_symtab_containing_pc): Use data_p.
9559 (find_pc_sect_compunit_symtab): Likewise.
9561 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9563 * breakpoint.c (describe_other_breakpoints): Use address style
9565 (say_where): Likewise.
9567 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9569 * ada-typeprint.c (print_func_type): Print function name
9570 style to print function name.
9571 * c-typeprint.c (c_print_type_1): Likewise.
9573 2019-02-11 Alan Hayward <alan.hayward@arm.com>
9575 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9578 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9580 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9583 2019-02-10 Joel Brobecker <brobecker@adacore.com>
9585 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9586 TYPE_CODE_REF types.
9588 2019-02-08 Jim Wilson <jimw@sifive.com>
9590 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9591 (riscv_linux_fregset): New.
9592 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9594 2019-02-07 Tom Tromey <tom@tromey.com>
9596 * thread.c (thread_cancel_execution_command): Update.
9597 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9599 (struct thread_fsm_ops): Remove.
9600 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9601 (thread_fsm_should_stop, thread_fsm_return_value)
9602 (thread_fsm_set_finished, thread_fsm_finished_p)
9603 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9605 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9606 * infrun.c (clear_proceed_status_thread)
9607 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9608 (print_stop_event): Update.
9609 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9611 (step_command_fsm_ops): Remove.
9612 (new_step_command_fsm): Remove.
9614 (step_command_fsm::should_stop): Rename from
9615 step_command_fsm_should_stop.
9616 (step_command_fsm::clean_up): Rename from
9617 step_command_fsm_clean_up.
9618 (step_command_fsm::do_async_reply_reason): Rename from
9619 step_command_fsm_async_reply_reason.
9620 (struct until_next_fsm): Inherit from thread_fsm. Add
9622 (until_next_fsm_ops): Remove.
9623 (new_until_next_fsm): Remove.
9624 (until_next_fsm::should_stop): Rename from
9625 until_next_fsm_should_stop.
9626 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9627 (until_next_fsm::do_async_reply_reason): Rename from
9628 until_next_fsm_async_reply_reason.
9629 (struct finish_command_fsm): Inherit from thread_fsm. Add
9630 constructor. Change type of breakpoint.
9631 (finish_command_fsm_ops): Remove.
9632 (new_finish_command_fsm): Remove.
9633 (finish_command_fsm::should_stop): Rename from
9634 finish_command_fsm_should_stop.
9635 (finish_command_fsm::clean_up): Rename from
9636 finish_command_fsm_clean_up.
9637 (finish_command_fsm::return_value): Rename from
9638 finish_command_fsm_return_value.
9639 (finish_command_fsm::do_async_reply_reason): Rename from
9640 finish_command_fsm_async_reply_reason.
9641 (finish_command): Update.
9642 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9644 (call_thread_fsm_ops): Remove.
9645 (call_thread_fsm::call_thread_fsm): Rename from
9646 new_call_thread_fsm.
9647 (call_thread_fsm::should_stop): Rename from
9648 call_thread_fsm_should_stop.
9649 (call_thread_fsm::should_notify_stop): Rename from
9650 call_thread_fsm_should_notify_stop.
9651 (run_inferior_call, call_function_by_hand_dummy): Update.
9652 * cli/cli-interp.c (should_print_stop_to_console): Update.
9653 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9654 Add constructor. Change type of location_breakpoint,
9656 (until_break_fsm_ops): Remove.
9657 (new_until_break_fsm): Remove.
9658 (until_break_fsm::should_stop): Rename from
9659 until_break_fsm_should_stop.
9660 (until_break_fsm::clean_up): Rename from
9661 until_break_fsm_clean_up.
9662 (until_break_fsm::do_async_reply_reason): Rename from
9663 until_break_fsm_async_reply_reason.
9664 (until_break_command): Update.
9665 * thread-fsm.c: Remove.
9666 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9668 2019-02-07 Tom Tromey <tom@tromey.com>
9670 * yy-remap.h: Add include guard.
9671 * xtensa-tdep.h: Add include guard.
9672 * xcoffread.h: Rename include guard.
9673 * varobj-iter.h: Add include guard.
9674 * tui/tui.h: Rename include guard.
9675 * tui/tui-winsource.h: Rename include guard.
9676 * tui/tui-wingeneral.h: Rename include guard.
9677 * tui/tui-windata.h: Rename include guard.
9678 * tui/tui-win.h: Rename include guard.
9679 * tui/tui-stack.h: Rename include guard.
9680 * tui/tui-source.h: Rename include guard.
9681 * tui/tui-regs.h: Rename include guard.
9682 * tui/tui-out.h: Rename include guard.
9683 * tui/tui-layout.h: Rename include guard.
9684 * tui/tui-io.h: Rename include guard.
9685 * tui/tui-hooks.h: Rename include guard.
9686 * tui/tui-file.h: Rename include guard.
9687 * tui/tui-disasm.h: Rename include guard.
9688 * tui/tui-data.h: Rename include guard.
9689 * tui/tui-command.h: Rename include guard.
9690 * tic6x-tdep.h: Add include guard.
9691 * target/waitstatus.h: Rename include guard.
9692 * target/wait.h: Rename include guard.
9693 * target/target.h: Rename include guard.
9694 * target/resume.h: Rename include guard.
9695 * target-float.h: Rename include guard.
9696 * stabsread.h: Add include guard.
9697 * rs6000-tdep.h: Add include guard.
9698 * riscv-fbsd-tdep.h: Add include guard.
9699 * regformats/regdef.h: Rename include guard.
9700 * record.h: Rename include guard.
9701 * python/python.h: Rename include guard.
9702 * python/python-internal.h: Rename include guard.
9703 * python/py-stopevent.h: Rename include guard.
9704 * python/py-ref.h: Rename include guard.
9705 * python/py-record.h: Rename include guard.
9706 * python/py-record-full.h: Rename include guard.
9707 * python/py-record-btrace.h: Rename include guard.
9708 * python/py-instruction.h: Rename include guard.
9709 * python/py-events.h: Rename include guard.
9710 * python/py-event.h: Rename include guard.
9711 * procfs.h: Add include guard.
9712 * proc-utils.h: Add include guard.
9713 * p-lang.h: Add include guard.
9714 * or1k-tdep.h: Rename include guard.
9715 * observable.h: Rename include guard.
9716 * nto-tdep.h: Rename include guard.
9717 * nat/x86-linux.h: Rename include guard.
9718 * nat/x86-linux-dregs.h: Rename include guard.
9719 * nat/x86-gcc-cpuid.h: Add include guard.
9720 * nat/x86-dregs.h: Rename include guard.
9721 * nat/x86-cpuid.h: Rename include guard.
9722 * nat/ppc-linux.h: Rename include guard.
9723 * nat/mips-linux-watch.h: Rename include guard.
9724 * nat/linux-waitpid.h: Rename include guard.
9725 * nat/linux-ptrace.h: Rename include guard.
9726 * nat/linux-procfs.h: Rename include guard.
9727 * nat/linux-osdata.h: Rename include guard.
9728 * nat/linux-nat.h: Rename include guard.
9729 * nat/linux-namespaces.h: Rename include guard.
9730 * nat/linux-btrace.h: Rename include guard.
9731 * nat/glibc_thread_db.h: Rename include guard.
9732 * nat/gdb_thread_db.h: Rename include guard.
9733 * nat/gdb_ptrace.h: Rename include guard.
9734 * nat/fork-inferior.h: Rename include guard.
9735 * nat/amd64-linux-siginfo.h: Rename include guard.
9736 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9737 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9738 * nat/aarch64-linux.h: Rename include guard.
9739 * nat/aarch64-linux-hw-point.h: Rename include guard.
9740 * mn10300-tdep.h: Add include guard.
9741 * mips-linux-tdep.h: Add include guard.
9742 * mi/mi-parse.h: Rename include guard.
9743 * mi/mi-out.h: Rename include guard.
9744 * mi/mi-main.h: Rename include guard.
9745 * mi/mi-interp.h: Rename include guard.
9746 * mi/mi-getopt.h: Rename include guard.
9747 * mi/mi-console.h: Rename include guard.
9748 * mi/mi-common.h: Rename include guard.
9749 * mi/mi-cmds.h: Rename include guard.
9750 * mi/mi-cmd-break.h: Rename include guard.
9751 * m2-lang.h: Add include guard.
9752 * location.h: Rename include guard.
9753 * linux-record.h: Rename include guard.
9754 * linux-nat.h: Add include guard.
9755 * linux-fork.h: Add include guard.
9756 * i386-darwin-tdep.h: Rename include guard.
9757 * hppa-linux-offsets.h: Add include guard.
9758 * guile/guile.h: Rename include guard.
9759 * guile/guile-internal.h: Rename include guard.
9760 * gnu-nat.h: Rename include guard.
9761 * gdb-stabs.h: Rename include guard.
9762 * frv-tdep.h: Add include guard.
9763 * f-lang.h: Add include guard.
9764 * event-loop.h: Add include guard.
9765 * darwin-nat.h: Rename include guard.
9766 * cp-abi.h: Rename include guard.
9767 * config/sparc/nm-sol2.h: Rename include guard.
9768 * config/nm-nto.h: Rename include guard.
9769 * config/nm-linux.h: Add include guard.
9770 * config/i386/nm-i386gnu.h: Rename include guard.
9771 * config/djgpp/nl_types.h: Rename include guard.
9772 * config/djgpp/langinfo.h: Rename include guard.
9773 * compile/gcc-cp-plugin.h: Add include guard.
9774 * compile/gcc-c-plugin.h: Add include guard.
9775 * compile/compile.h: Rename include guard.
9776 * compile/compile-object-run.h: Rename include guard.
9777 * compile/compile-object-load.h: Rename include guard.
9778 * compile/compile-internal.h: Rename include guard.
9779 * compile/compile-cplus.h: Rename include guard.
9780 * compile/compile-c.h: Rename include guard.
9781 * common/xml-utils.h: Rename include guard.
9782 * common/x86-xstate.h: Rename include guard.
9783 * common/version.h: Rename include guard.
9784 * common/vec.h: Rename include guard.
9785 * common/tdesc.h: Rename include guard.
9786 * common/selftest.h: Rename include guard.
9787 * common/scoped_restore.h: Rename include guard.
9788 * common/scoped_mmap.h: Rename include guard.
9789 * common/scoped_fd.h: Rename include guard.
9790 * common/safe-iterator.h: Rename include guard.
9791 * common/run-time-clock.h: Rename include guard.
9792 * common/refcounted-object.h: Rename include guard.
9793 * common/queue.h: Rename include guard.
9794 * common/ptid.h: Rename include guard.
9795 * common/print-utils.h: Rename include guard.
9796 * common/preprocessor.h: Rename include guard.
9797 * common/pathstuff.h: Rename include guard.
9798 * common/observable.h: Rename include guard.
9799 * common/netstuff.h: Rename include guard.
9800 * common/job-control.h: Rename include guard.
9801 * common/host-defs.h: Rename include guard.
9802 * common/gdb_wait.h: Rename include guard.
9803 * common/gdb_vecs.h: Rename include guard.
9804 * common/gdb_unlinker.h: Rename include guard.
9805 * common/gdb_unique_ptr.h: Rename include guard.
9806 * common/gdb_tilde_expand.h: Rename include guard.
9807 * common/gdb_sys_time.h: Rename include guard.
9808 * common/gdb_string_view.h: Rename include guard.
9809 * common/gdb_splay_tree.h: Rename include guard.
9810 * common/gdb_setjmp.h: Rename include guard.
9811 * common/gdb_ref_ptr.h: Rename include guard.
9812 * common/gdb_optional.h: Rename include guard.
9813 * common/gdb_locale.h: Rename include guard.
9814 * common/gdb_assert.h: Rename include guard.
9815 * common/filtered-iterator.h: Rename include guard.
9816 * common/filestuff.h: Rename include guard.
9817 * common/fileio.h: Rename include guard.
9818 * common/environ.h: Rename include guard.
9819 * common/common-utils.h: Rename include guard.
9820 * common/common-types.h: Rename include guard.
9821 * common/common-regcache.h: Rename include guard.
9822 * common/common-inferior.h: Rename include guard.
9823 * common/common-gdbthread.h: Rename include guard.
9824 * common/common-exceptions.h: Rename include guard.
9825 * common/common-defs.h: Rename include guard.
9826 * common/common-debug.h: Rename include guard.
9827 * common/cleanups.h: Rename include guard.
9828 * common/buffer.h: Rename include guard.
9829 * common/btrace-common.h: Rename include guard.
9830 * common/break-common.h: Rename include guard.
9831 * cli/cli-utils.h: Rename include guard.
9832 * cli/cli-style.h: Rename include guard.
9833 * cli/cli-setshow.h: Rename include guard.
9834 * cli/cli-script.h: Rename include guard.
9835 * cli/cli-interp.h: Rename include guard.
9836 * cli/cli-decode.h: Rename include guard.
9837 * cli/cli-cmds.h: Rename include guard.
9838 * charset-list.h: Add include guard.
9839 * buildsym-legacy.h: Rename include guard.
9840 * bfin-tdep.h: Add include guard.
9841 * ax.h: Rename include guard.
9842 * arm-linux-tdep.h: Add include guard.
9843 * arm-fbsd-tdep.h: Add include guard.
9844 * arch/xtensa.h: Rename include guard.
9845 * arch/tic6x.h: Add include guard.
9846 * arch/i386.h: Add include guard.
9847 * arch/arm.h: Rename include guard.
9848 * arch/arm-linux.h: Rename include guard.
9849 * arch/arm-get-next-pcs.h: Rename include guard.
9850 * arch/amd64.h: Add include guard.
9851 * arch/aarch64-insn.h: Rename include guard.
9852 * arch-utils.h: Rename include guard.
9853 * annotate.h: Add include guard.
9854 * amd64-darwin-tdep.h: Rename include guard.
9855 * aarch64-linux-tdep.h: Add include guard.
9856 * aarch64-fbsd-tdep.h: Add include guard.
9857 * aarch32-linux-nat.h: Add include guard.
9859 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9861 * macrotab.c (macro_define_internal): New function that
9862 factorizes macro_define_object_internal and macro_define_function
9864 (macro_define_object_internal): Use macro_define_internal.
9865 (macro_define_function): Likewise.
9867 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9869 * macrocmd.c (extract_identifier): Return
9870 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9873 2019-02-06 John Baldwin <jhb@FreeBSD.org>
9875 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9877 2019-02-05 Tom Tromey <tom@tromey.com>
9879 * target.c (target_stack::unpush): Move assertion earlier.
9881 2019-01-30 Tom Tromey <tom@tromey.com>
9884 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9885 (gdbpy_parse_and_eval): Likewise.
9886 * python/python-internal.h (gdbpy_allow_threads): New class.
9888 2019-01-28 John Baldwin <jhb@FreeBSD.org>
9890 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9891 (aarch64_fbsd_fpregmap): Move earlier.
9892 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9893 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9894 instead of individual calls to trad_frame_set_reg_addr.
9895 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9897 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9898 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9899 instead of individual calls to trad_frame_set_reg_addr.
9901 2019-01-28 Alan Hayward <alan.hayward@arm.com>
9903 * CONTRIBUTE: Replace contribution list with wiki link.
9905 2019-01-25 Tom Tromey <tom@tromey.com>
9907 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9909 2019-01-25 Tom Tromey <tom@tromey.com>
9911 * xtensa-linux-nat.c: Fix common/ includes.
9912 * xml-support.h: Fix common/ includes.
9913 * xml-support.c: Fix common/ includes.
9914 * x86-linux-nat.c: Fix common/ includes.
9915 * windows-nat.c: Fix common/ includes.
9916 * varobj.h: Fix common/ includes.
9917 * varobj.c: Fix common/ includes.
9918 * value.c: Fix common/ includes.
9919 * valops.c: Fix common/ includes.
9920 * utils.c: Fix common/ includes.
9921 * unittests/xml-utils-selftests.c: Fix common/ includes.
9922 * unittests/utils-selftests.c: Fix common/ includes.
9923 * unittests/unpack-selftests.c: Fix common/ includes.
9924 * unittests/tracepoint-selftests.c: Fix common/ includes.
9925 * unittests/style-selftests.c: Fix common/ includes.
9926 * unittests/string_view-selftests.c: Fix common/ includes.
9927 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9928 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9929 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9930 * unittests/rsp-low-selftests.c: Fix common/ includes.
9931 * unittests/parse-connection-spec-selftests.c: Fix common/
9933 * unittests/optional-selftests.c: Fix common/ includes.
9934 * unittests/offset-type-selftests.c: Fix common/ includes.
9935 * unittests/observable-selftests.c: Fix common/ includes.
9936 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9937 * unittests/memrange-selftests.c: Fix common/ includes.
9938 * unittests/memory-map-selftests.c: Fix common/ includes.
9939 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9940 * unittests/function-view-selftests.c: Fix common/ includes.
9941 * unittests/environ-selftests.c: Fix common/ includes.
9942 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9943 * unittests/common-utils-selftests.c: Fix common/ includes.
9944 * unittests/cli-utils-selftests.c: Fix common/ includes.
9945 * unittests/array-view-selftests.c: Fix common/ includes.
9946 * ui-file.c: Fix common/ includes.
9947 * tui/tui-io.c: Fix common/ includes.
9948 * tracepoint.h: Fix common/ includes.
9949 * tracepoint.c: Fix common/ includes.
9950 * tracefile-tfile.c: Fix common/ includes.
9951 * top.h: Fix common/ includes.
9952 * top.c: Fix common/ includes.
9953 * thread.c: Fix common/ includes.
9954 * target/waitstatus.h: Fix common/ includes.
9955 * target/waitstatus.c: Fix common/ includes.
9956 * target.h: Fix common/ includes.
9957 * target.c: Fix common/ includes.
9958 * target-memory.c: Fix common/ includes.
9959 * target-descriptions.c: Fix common/ includes.
9960 * symtab.h: Fix common/ includes.
9961 * symfile.c: Fix common/ includes.
9962 * stap-probe.c: Fix common/ includes.
9963 * spu-linux-nat.c: Fix common/ includes.
9964 * sparc-nat.c: Fix common/ includes.
9965 * source.c: Fix common/ includes.
9966 * solib.c: Fix common/ includes.
9967 * solib-target.c: Fix common/ includes.
9968 * ser-unix.c: Fix common/ includes.
9969 * ser-tcp.c: Fix common/ includes.
9970 * ser-pipe.c: Fix common/ includes.
9971 * ser-base.c: Fix common/ includes.
9972 * selftest-arch.c: Fix common/ includes.
9973 * s12z-tdep.c: Fix common/ includes.
9974 * rust-exp.y: Fix common/ includes.
9975 * rs6000-aix-tdep.c: Fix common/ includes.
9976 * riscv-tdep.c: Fix common/ includes.
9977 * remote.c: Fix common/ includes.
9978 * remote-notif.h: Fix common/ includes.
9979 * remote-fileio.h: Fix common/ includes.
9980 * remote-fileio.c: Fix common/ includes.
9981 * regcache.h: Fix common/ includes.
9982 * regcache.c: Fix common/ includes.
9983 * record-btrace.c: Fix common/ includes.
9984 * python/python.c: Fix common/ includes.
9985 * python/py-type.c: Fix common/ includes.
9986 * python/py-inferior.c: Fix common/ includes.
9987 * progspace.h: Fix common/ includes.
9988 * producer.c: Fix common/ includes.
9989 * procfs.c: Fix common/ includes.
9990 * proc-api.c: Fix common/ includes.
9991 * printcmd.c: Fix common/ includes.
9992 * ppc-linux-nat.c: Fix common/ includes.
9993 * parser-defs.h: Fix common/ includes.
9994 * osdata.c: Fix common/ includes.
9995 * obsd-nat.c: Fix common/ includes.
9996 * nat/x86-linux.c: Fix common/ includes.
9997 * nat/x86-linux-dregs.c: Fix common/ includes.
9998 * nat/x86-dregs.h: Fix common/ includes.
9999 * nat/x86-dregs.c: Fix common/ includes.
10000 * nat/ppc-linux.c: Fix common/ includes.
10001 * nat/mips-linux-watch.h: Fix common/ includes.
10002 * nat/mips-linux-watch.c: Fix common/ includes.
10003 * nat/linux-waitpid.c: Fix common/ includes.
10004 * nat/linux-ptrace.h: Fix common/ includes.
10005 * nat/linux-ptrace.c: Fix common/ includes.
10006 * nat/linux-procfs.c: Fix common/ includes.
10007 * nat/linux-personality.c: Fix common/ includes.
10008 * nat/linux-osdata.c: Fix common/ includes.
10009 * nat/linux-namespaces.c: Fix common/ includes.
10010 * nat/linux-btrace.h: Fix common/ includes.
10011 * nat/linux-btrace.c: Fix common/ includes.
10012 * nat/fork-inferior.c: Fix common/ includes.
10013 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10014 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10015 * nat/aarch64-linux.c: Fix common/ includes.
10016 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10017 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10018 * namespace.h: Fix common/ includes.
10019 * mips-linux-tdep.c: Fix common/ includes.
10020 * minsyms.c: Fix common/ includes.
10021 * mi/mi-parse.h: Fix common/ includes.
10022 * mi/mi-main.c: Fix common/ includes.
10023 * mi/mi-cmd-env.c: Fix common/ includes.
10024 * memrange.h: Fix common/ includes.
10025 * memattr.c: Fix common/ includes.
10026 * maint.h: Fix common/ includes.
10027 * maint.c: Fix common/ includes.
10028 * main.c: Fix common/ includes.
10029 * machoread.c: Fix common/ includes.
10030 * location.c: Fix common/ includes.
10031 * linux-thread-db.c: Fix common/ includes.
10032 * linux-nat.c: Fix common/ includes.
10033 * linux-fork.c: Fix common/ includes.
10034 * inline-frame.c: Fix common/ includes.
10035 * infrun.c: Fix common/ includes.
10036 * inflow.c: Fix common/ includes.
10037 * inferior.h: Fix common/ includes.
10038 * inferior.c: Fix common/ includes.
10039 * infcmd.c: Fix common/ includes.
10040 * inf-ptrace.c: Fix common/ includes.
10041 * inf-child.c: Fix common/ includes.
10042 * ia64-linux-nat.c: Fix common/ includes.
10043 * i387-tdep.c: Fix common/ includes.
10044 * i386-tdep.c: Fix common/ includes.
10045 * i386-linux-tdep.c: Fix common/ includes.
10046 * i386-linux-nat.c: Fix common/ includes.
10047 * i386-go32-tdep.c: Fix common/ includes.
10048 * i386-fbsd-tdep.c: Fix common/ includes.
10049 * i386-fbsd-nat.c: Fix common/ includes.
10050 * guile/scm-type.c: Fix common/ includes.
10051 * guile/guile.c: Fix common/ includes.
10052 * go32-nat.c: Fix common/ includes.
10053 * gnu-nat.c: Fix common/ includes.
10054 * gdbthread.h: Fix common/ includes.
10055 * gdbarch-selftests.c: Fix common/ includes.
10056 * gdb_usleep.c: Fix common/ includes.
10057 * gdb_select.h: Fix common/ includes.
10058 * gdb_bfd.c: Fix common/ includes.
10059 * gcore.c: Fix common/ includes.
10060 * fork-child.c: Fix common/ includes.
10061 * findvar.c: Fix common/ includes.
10062 * fbsd-nat.c: Fix common/ includes.
10063 * event-top.c: Fix common/ includes.
10064 * event-loop.c: Fix common/ includes.
10065 * dwarf2read.c: Fix common/ includes.
10066 * dwarf2loc.c: Fix common/ includes.
10067 * dwarf2-frame.c: Fix common/ includes.
10068 * dwarf-index-cache.c: Fix common/ includes.
10069 * dtrace-probe.c: Fix common/ includes.
10070 * disasm-selftests.c: Fix common/ includes.
10071 * defs.h: Fix common/ includes.
10072 * csky-tdep.c: Fix common/ includes.
10073 * cp-valprint.c: Fix common/ includes.
10074 * cp-support.h: Fix common/ includes.
10075 * cp-support.c: Fix common/ includes.
10076 * corelow.c: Fix common/ includes.
10077 * completer.h: Fix common/ includes.
10078 * completer.c: Fix common/ includes.
10079 * compile/compile.c: Fix common/ includes.
10080 * compile/compile-loc2c.c: Fix common/ includes.
10081 * compile/compile-cplus-types.c: Fix common/ includes.
10082 * compile/compile-cplus-symbols.c: Fix common/ includes.
10083 * command.h: Fix common/ includes.
10084 * cli/cli-dump.c: Fix common/ includes.
10085 * cli/cli-cmds.c: Fix common/ includes.
10086 * charset.c: Fix common/ includes.
10087 * build-id.c: Fix common/ includes.
10088 * btrace.h: Fix common/ includes.
10089 * btrace.c: Fix common/ includes.
10090 * breakpoint.h: Fix common/ includes.
10091 * breakpoint.c: Fix common/ includes.
10093 (enum agent_op): Fix common/ includes.
10094 * ax-general.c (struct aop_map): Fix common/ includes.
10095 * ax-gdb.c: Fix common/ includes.
10096 * auxv.c: Fix common/ includes.
10097 * auto-load.c: Fix common/ includes.
10098 * arm-tdep.c: Fix common/ includes.
10099 * arch/riscv.c: Fix common/ includes.
10100 * arch/ppc-linux-common.c: Fix common/ includes.
10101 * arch/i386.c: Fix common/ includes.
10102 * arch/arm.c: Fix common/ includes.
10103 * arch/arm-linux.c: Fix common/ includes.
10104 * arch/arm-get-next-pcs.c: Fix common/ includes.
10105 * arch/amd64.c: Fix common/ includes.
10106 * arch/aarch64.c: Fix common/ includes.
10107 * arch/aarch64-insn.c: Fix common/ includes.
10108 * arch-utils.c: Fix common/ includes.
10109 * amd64-windows-tdep.c: Fix common/ includes.
10110 * amd64-tdep.c: Fix common/ includes.
10111 * amd64-sol2-tdep.c: Fix common/ includes.
10112 * amd64-obsd-tdep.c: Fix common/ includes.
10113 * amd64-nbsd-tdep.c: Fix common/ includes.
10114 * amd64-linux-tdep.c: Fix common/ includes.
10115 * amd64-linux-nat.c: Fix common/ includes.
10116 * amd64-fbsd-tdep.c: Fix common/ includes.
10117 * amd64-fbsd-nat.c: Fix common/ includes.
10118 * amd64-dicos-tdep.c: Fix common/ includes.
10119 * amd64-darwin-tdep.c: Fix common/ includes.
10120 * agent.c: Fix common/ includes.
10121 * ada-lang.h: Fix common/ includes.
10122 * ada-lang.c: Fix common/ includes.
10123 * aarch64-tdep.c: Fix common/ includes.
10125 2019-01-25 Tom Tromey <tom@tromey.com>
10127 * common/create-version.sh: Use common/version.h.
10129 2019-01-24 Pedro Alves <palves@redhat.com>
10131 * infrun.c (signal_stop, signal_print, signal_program)
10132 (signal_catch, signal_pass): Now arrays instead of pointers.
10133 (update_signals_program_target, do_target_resume)
10134 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10135 * linux-nat.c (linux_nat_target::pass_signals)
10136 (linux_nat_target::create_inferior, linux_nat_target::attach):
10138 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10139 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10140 * procfs.c (procfs_target::pass_signals): Adjust.
10141 * record-full.c (record_full_target::resume): Adjust.
10142 * remote.c (remote_target::pass_signals)
10143 (remote_target::program_signals): Adjust.
10144 * target-debug.h (target_debug_print_signals): Now takes a
10145 gdb::array_view as parameter. Adjust.
10146 * target.h (target_ops) <pass_signals, program_signals>: Replace
10147 pointer and length parameters with gdb::array_view.
10148 (target_pass_signals, target_program_signals): Likewise.
10149 * target-delegates.c: Regenerate.
10151 2019-01-24 Pedro Alves <palves@redhat.com>
10153 * common/forward-scope-exit.h
10154 (forward_scope_exit::forward_scope_exit): Pass arguments to
10155 m_bind_function directly, instead of creating a std::bind and
10158 2019-01-24 Alan Hayward <alan.hayward@arm.com>
10160 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10161 for static members.
10162 (pass_in_v_vfp_candidate): Likewise.
10164 2019-01-23 Tom Tromey <tom@tromey.com>
10165 Pedro Alves <palves@redhat.com>
10167 * regcache.c (class regcache_invalidator): Remove.
10168 (regcache::raw_write): Use make_scope_exit.
10170 2019-01-23 Tom Tromey <tom@tromey.com>
10172 * ui-out.h (class ui_out_emit_type): Update comment.
10174 2019-01-23 Tom Tromey <tom@tromey.com>
10176 * infrun.c (fetch_inferior_event): Update comment.
10178 2019-01-23 Tom Tromey <tom@tromey.com>
10179 Pedro Alves <palves@redhat.com>
10181 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10183 (fetch_inferior_event): Use SCOPE_EXIT.
10186 2019-01-23 Tom Tromey <tom@tromey.com>
10187 Pedro Alves <palves@redhat.com>
10189 * infrun.c (disable_thread_events): Delete.
10190 (stop_all_threads): Use SCOPE_EXIT.
10192 2019-01-23 Tom Tromey <tom@tromey.com>
10193 Pedro Alves <palves@redhat.com>
10195 * symfile.c: Include forward-scope-exit.h.
10196 (clear_symtab_users_cleanup): Replace forward declaration with
10197 a FORWARD_SCOPE_EXIT.
10198 (syms_from_objfile_1): Use the forward_scope_exit and
10199 gdb::optional instead of cleanup_function.
10200 (reread_symbols): Use the forward_scope_exit instead of
10202 (clear_symtab_users_cleanup): Remove function.
10204 2019-01-23 Tom Tromey <tom@tromey.com>
10205 Pedro Alves <palves@redhat.com>
10207 * linux-nat.c: Include scope-exit.h.
10208 (cleanup_target_stop): Remove.
10209 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10212 2019-01-23 Tom Tromey <tom@tromey.com>
10213 Pedro Alves <palves@redhat.com>
10215 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10216 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10218 2019-01-23 Tom Tromey <tom@tromey.com>
10219 Andrew Burgess <andrew.burgess@embecosm.com>
10220 Pedro Alves <palves@redhat.com>
10222 * infrun.c (fetch_inferior_event): Use scope_exit.
10223 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10224 * top.c (execute_command): Use scope_exit.
10225 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10226 * utils.c (do_bpstat_clear_actions_cleanup)
10227 (make_bpstat_clear_actions_cleanup): Remove.
10229 2019-01-23 Tom Tromey <tom@tromey.com>
10230 Pedro Alves <palves@redhat.com>
10232 * infrun.c: Include "common/scope-exit.h"
10233 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10234 (wait_for_inferior): Use SCOPE_EXIT.
10235 (fetch_inferior_event): Use scope_exit.
10237 2019-01-23 Tom Tromey <tom@tromey.com>
10238 Pedro Alves <palves@redhat.com>
10240 * breakpoint.c (create_breakpoint): Remove cleanup.
10242 2019-01-23 Tom Tromey <tom@tromey.com>
10243 Andrew Burgess <andrew.burgess@embecosm.com>
10244 Pedro Alves <palves@redhat.com>
10246 2019-01-23 Pedro Alves <palves@redhat.com>
10248 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10250 2019-01-23 Pedro Alves <palves@redhat.com>
10251 Andrew Burgess <andrew.burgess@embecosm.com>
10253 * gdbthread.h: Include "common/forward-scope-exit.h".
10254 (scoped_finish_thread_state): Redefine custom class in terms of
10255 forward_scope_exit.
10257 2019-01-23 Pedro Alves <palves@redhat.com>
10258 Andrew Burgess <andrew.burgess@embecosm.com>
10260 * common/forward-scope-exit.h: New file.
10262 2019-01-23 Pedro Alves <palves@redhat.com>
10263 Andrew Burgess <andrew.burgess@embecosm.com>
10264 Tom Tromey <tom@tromey.com>
10266 * common/scope-exit.h: New file.
10268 2019-01-23 Pedro Alves <palves@redhat.com>
10270 * common/preprocessor.h (ESC): Rename to ...
10271 (ESC_PARENS): ... this.
10272 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10273 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10275 2019-01-23 Tom Tromey <tom@tromey.com>
10277 * language.h (class scoped_switch_to_sym_language_if_auto):
10278 Initialize m_lang in both cases.
10280 2019-01-23 Alan Hayward <alan.hayward@arm.com>
10282 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10285 2019-01-22 Tom Tromey <tom@tromey.com>
10287 * corelow.c: Do not include sys/file.h.
10289 2019-01-22 Tom Tromey <tom@tromey.com>
10291 * tui/tui-wingeneral.h: Include gdb_curses.h.
10293 2019-01-22 Tom Tromey <tom@tromey.com>
10295 * source-cache.h (class source_cache) <get_source_lines,
10296 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10298 2019-01-22 Tom Tromey <tom@tromey.com>
10300 * remote-fileio.h (struct remote_target): Declare.
10302 2019-01-22 Tom Tromey <tom@tromey.com>
10304 * python/py-arch.c: Do not include py-ref.h.
10305 * python/py-bpevent.c: Do not include py-ref.h.
10306 * python/py-cmd.c: Do not include py-ref.h.
10307 * python/py-continueevent.c: Do not include py-ref.h.
10308 * python/py-event.h: Do not include py-ref.h.
10309 * python/py-evtregistry.c: Do not include py-ref.h.
10310 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10311 * python/py-frame.c: Do not include py-ref.h.
10312 * python/py-framefilter.c: Do not include py-ref.h.
10313 * python/py-function.c: Do not include py-ref.h.
10314 * python/py-infevents.c: Do not include py-ref.h.
10315 * python/py-linetable.c: Do not include py-ref.h.
10316 * python/py-objfile.c: Do not include py-ref.h.
10317 * python/py-param.c: Do not include py-ref.h.
10318 * python/py-prettyprint.c: Do not include py-ref.h.
10319 * python/py-progspace.c: Do not include py-ref.h.
10320 * python/py-symbol.c: Do not include py-ref.h.
10321 * python/py-symtab.c: Do not include py-ref.h.
10322 * python/py-type.c: Do not include py-ref.h.
10323 * python/py-unwind.c: Do not include py-ref.h.
10324 * python/py-utils.c: Do not include py-ref.h.
10325 * python/py-value.c: Do not include py-ref.h.
10326 * python/py-varobj.c: Do not include py-ref.h.
10327 * python/py-xmethods.c: Do not include py-ref.h.
10328 * python/python.c: Do not include py-ref.h.
10329 * varobj.c: Do not include py-ref.h.
10331 2019-01-22 Tom Tromey <tom@tromey.com>
10333 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10334 keyword for bcache.
10336 2019-01-22 Tom Tromey <tom@tromey.com>
10338 * compile/compile-cplus-types.c: Remove a comment by #include.
10340 2019-01-22 Tom Tromey <tom@tromey.com>
10342 * compile/gcc-c-plugin.h: Include compile-internal.h.
10344 2019-01-22 Tom Tromey <tom@tromey.com>
10346 * stabsread.c (EXTERN): Do not define.
10347 (symnum, next_symbol_text_func, processing_gcc_compilation)
10348 (within_function, global_sym_chain, global_stabs)
10349 (previous_stab_code, this_object_header_files)
10350 (n_this_object_header_files)
10351 (n_allocated_this_object_header_files): Define.
10352 * stabsread.h (EXTERN): Never define. Use "extern".
10354 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10356 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10359 2019-01-21 Tom Tromey <tom@tromey.com>
10361 * ui-out.c: Fix includes.
10362 * tui/tui-source.c: Fix includes.
10363 * target.c: Fix includes.
10364 * remote.c: Fix includes.
10365 * regcache.c: Fix includes.
10366 * python/py-block.c: Fix includes.
10367 * printcmd.c: Fix includes.
10368 * or1k-tdep.c: Fix includes.
10369 * mi/mi-main.c: Fix includes.
10370 * m32r-tdep.c: Fix includes.
10371 * csky-tdep.c: Fix includes.
10372 * compile/compile-cplus-types.c: Fix includes.
10373 * cli/cli-interp.c: Fix includes.
10375 2019-01-21 Alan Hayward <alan.hayward@arm.com>
10377 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10380 2019-01-16 Tom Tromey <tom@tromey.com>
10382 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10384 (struct objfile) <msymbols_range>: Move from top level.
10385 <msymbols>: New method.
10386 (class objfile_msymbols): Remove.
10387 * symtab.c (default_collect_symbol_completion_matches_break_on):
10389 * symmisc.c (dump_msymbols): Update.
10390 * stabsread.c (scan_file_globals): Update.
10391 * objc-lang.c (info_selectors_command, info_classes_command)
10392 (find_methods): Update.
10393 * minsyms.c (find_solib_trampoline_target): Update.
10394 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10395 * coffread.c (coff_symfile_read): Update.
10396 * ada-lang.c (ada_lookup_simple_minsym)
10397 (ada_collect_symbol_completion_matches): Update.
10399 2019-01-16 Tom Tromey <tom@tromey.com>
10401 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10402 type. Remove no-argument constructor.
10403 <iterator::operator++>: Simplify.
10405 <end>: Use minimal_symbol_count.
10407 2019-01-16 Tom Tromey <tom@tromey.com>
10409 * objfiles.h (struct objfile) <psymtabs>: New method.
10410 (class objfile_psymtabs): Remove.
10411 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10413 <range>: New method.
10414 (require_partial_symbols): Change return type.
10415 * psymtab.c (require_partial_symbols)
10416 (psym_expand_symtabs_matching): Update.
10417 * mdebugread.c (parse_partial_symbols): Update.
10418 * dbxread.c (dbx_end_psymtab): Update.
10420 2019-01-15 Tom Tromey <tom@tromey.com>
10422 * symtab.c (lookup_objfile_from_block)
10423 (lookup_symbol_in_objfile_symtabs)
10424 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10425 (find_line_symtab, info_sources_command)
10426 (default_collect_symbol_completion_matches_break_on)
10427 (make_source_files_completion_list): Update.
10428 * symmisc.c (print_objfile_statistics, dump_objfile)
10429 (maintenance_print_symbols, maintenance_info_symtabs)
10430 (maintenance_check_symtabs, maintenance_info_line_tables):
10432 * source.c (select_source_symtab)
10433 (forget_cached_source_info_for_objfile): Update.
10434 * objfiles.h (class objfile_compunits): Remove.
10435 (struct objfile) <compunits_range>: New typedef.
10436 (compunits): New method.
10437 * objfiles.c (objfile_relocate1): Update.
10438 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10439 * maint.c (count_symtabs_and_blocks): Update.
10440 * linespec.c (iterate_over_all_matching_symtabs): Update.
10441 * cp-support.c (add_symbol_overload_list_qualified): Update.
10442 * coffread.c (coff_symtab_read): Update.
10443 * ada-lang.c (add_nonlocal_symbols)
10444 (ada_collect_symbol_completion_matches)
10445 (ada_add_global_exceptions): Update.
10447 2019-01-15 Tom Tromey <tom@tromey.com>
10449 * progspace.h (program_space) <objfiles_safe_range>: New
10451 <objfiles_safe>: New method.
10452 * objfiles.h (class all_objfiles_safe): Remove.
10453 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10454 * jit.c (jit_inferior_exit_hook): Update.
10456 2019-01-17 Tom Tromey <tom@tromey.com>
10458 * progspace.h (program_space) <objfiles_range>: New typedef.
10459 <objfiles>: New method.
10460 <objfiles_head>: Rename from objfiles.
10461 (object_files): Update.
10462 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10463 * guile/scm-pretty-print.c
10464 (ppscm_find_pretty_printer_from_objfiles): Update.
10465 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10466 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10468 * python/py-progspace.c (pspy_get_objfiles): Update.
10469 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10471 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10472 (objfpy_lookup_objfile_by_build_id): Update.
10473 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10474 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10476 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10477 (expand_symtab_containing_pc, lookup_objfile_from_block)
10478 (lookup_static_symbol, basic_lookup_transparent_type)
10479 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10480 (find_line_symtab, info_sources_command)
10481 (default_collect_symbol_completion_matches_break_on)
10482 (make_source_files_completion_list, find_main_name): Update.
10483 * symmisc.c (print_symbol_bcache_statistics)
10484 (print_objfile_statistics, maintenance_print_symbols)
10485 (maintenance_print_msymbols, maintenance_print_objfiles)
10486 (maintenance_info_symtabs, maintenance_check_symtabs)
10487 (maintenance_expand_symtabs, maintenance_info_line_tables):
10489 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10490 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10491 (map_overlay_command, unmap_overlay_command)
10492 (simple_overlay_update, expand_symtabs_matching)
10493 (map_symbol_filenames): Update.
10494 * symfile-debug.c (set_debug_symfile): Update.
10495 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10497 * source.c (select_source_symtab, forget_cached_source_info):
10499 * solib.c (solib_read_symbols): Update.
10500 * solib-spu.c (append_ocl_sos): Update.
10501 * psymtab.c (maintenance_print_psymbols)
10502 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10503 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10504 * printcmd.c (info_symbol_command): Update.
10505 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10507 * objfiles.h (class all_objfiles): Remove.
10508 * objfiles.c (have_partial_symbols, have_full_symbols)
10509 (have_minimal_symbols, qsort_cmp, update_section_map)
10510 (shared_objfile_contains_address_p)
10511 (default_iterate_over_objfiles_in_search_order): Update.
10512 * objc-lang.c (info_selectors_command, info_classes_command)
10513 (find_methods): Update.
10514 * minsyms.c (find_solib_trampoline_target): Update.
10515 * maint.c (maintenance_info_sections)
10516 (maintenance_translate_address, count_symtabs_and_blocks):
10518 * main.c (captured_main_1): Update.
10519 * linux-thread-db.c (try_thread_db_load_from_pdir)
10520 (has_libpthread): Update.
10521 * linespec.c (iterate_over_all_matching_symtabs)
10522 (search_minsyms_for_name): Update.
10523 * jit.c (jit_find_objf_with_entry_addr): Update.
10524 * hppa-tdep.c (find_unwind_entry)
10525 (hppa_lookup_stub_minimal_symbol): Update.
10526 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10528 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10529 (elf_gnu_ifunc_resolve_by_got): Update.
10530 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10531 * dwarf-index-write.c (save_gdb_index_command): Update.
10532 * cp-support.c (add_symbol_overload_list_qualified): Update.
10533 * breakpoint.c (create_overlay_event_breakpoint)
10534 (create_longjmp_master_breakpoint)
10535 (create_std_terminate_master_breakpoint)
10536 (create_exception_master_breakpoint): Update.
10537 * blockframe.c (find_pc_partial_function): Update.
10538 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10539 (ada_collect_symbol_completion_matches)
10540 (ada_add_global_exceptions): Update.
10542 2019-01-17 Tom Tromey <tom@tromey.com>
10544 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10546 (solib_target_parse_libraries): Change return type.
10547 (library_list_start_segment, library_list_start_section)
10548 (library_list_end_library, library_list_start_library); Update.
10549 (solib_target_free_library_list): Remove.
10550 (solib_target_parse_libraries): Remove cleanup. Change return
10552 (solib_target_current_sos): Update.
10554 2019-01-17 Tom Tromey <tromey@bapiya>
10556 * valprint.c: Replace "the the" with "the".
10557 * symtab.c: Replace "the the" with "the".
10558 * solib.c: Replace "the the" with "the".
10559 * solib-dsbt.c: Replace "the the" with "the".
10560 * linespec.c: Replace "the the" with "the".
10561 * dwarf2loc.h: Replace "the the" with "the".
10562 * amd64-windows-tdep.c: Replace "the the" with "the".
10563 * aarch64-tdep.c: Replace "the the" with "the".
10565 2019-01-16 Keith Seitz <keiths@redhat.com>
10568 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10569 <builder>: Rename to ..
10570 <m_builder>: ... this and make private.
10571 (dwarf2_cu::get_builder): New method. Change all users of
10572 `builder' to use this method.
10573 (dwarf2_start_symtab): Move to ...
10574 (dwarf2_cu::start_symtab): ... here. Update all callers
10575 (setup_type_unit_groups): Move to ...
10576 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10578 (dwarf2_cu::reset_builder): New method.
10579 (process_full_compunit, process_full_type_unit): Use
10580 dwarf2_cu::reset_builder.
10581 (follow_die_offset): Record the ancestor CU if it is different
10582 from the followed DIE's CU.
10583 (follow_die_sig_1): Likewise.
10585 2019-01-15 Tom Tromey <tom@tromey.com>
10587 * remote.c (class remote_state) <buf>: Now a char_vector.
10588 <buf_size>: Remove.
10589 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10591 (remote_target::getpkt_or_notif_sane_1)
10592 (remote_target::getpkt_sane)
10593 (remote_target::getpkt_or_notif_sane): Likewise.
10594 (class remote_target) <putpkt>: New overload.
10595 (remote_target::read_frame): Change type of "buf_p". Remove
10596 sizeof_p parameter.
10597 (packet_ok): New overload.
10598 (packet_check_result): New overload.
10601 2019-01-14 Tom Tromey <tom@tromey.com>
10603 * remote-notif.c (handle_notification, remote_notif_ack)
10604 (remote_notif_parse): Make "buf" const.
10605 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10607 (remote_notif_parse, remote_notif_ack, handle_notification):
10609 * remote.c (remote_notif_stop_parse): Make "buf" const.
10610 (remote_target::remote_parse_stop_reply): Make "buf" const.
10611 (remote_notif_stop_ack): Make "buf" const.
10613 2019-01-14 Tom Tromey <tom@tromey.com>
10615 * remote.c (remote_console_output): Make parameter const.
10617 2019-01-14 Tom Tromey <tom@tromey.com>
10619 * target-debug.h (target_debug_print_signals): Constify.
10620 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10621 * procfs.c (procfs_target::pass_signals): Update.
10622 * linux-nat.c (linux_nat_target::pass_signals): Update.
10623 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10624 * target-delegates.c: Rebuild.
10625 * remote.c (remote_target::program_signals): Update.
10626 (remote_target::pass_signals): Update.
10627 * target.c (target_pass_signals): Constify argument.
10628 (target_program_signals): Likewise.
10629 * target.h (struct target_ops) <pass_signals, program_signals>:
10631 (target_pass_signals, target_program_signals): Constify argument.
10633 2019-01-14 Tom Tromey <tom@tromey.com>
10636 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10638 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10640 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10642 * rs6000-tdep.c: Include reggroups.h.
10643 (IS_V_ALIAS_PSEUDOREG): Define.
10644 (rs6000_register_name): Return names for the "vX" aliases.
10645 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10646 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10647 aliases. Call default_register_reggroup_p for all other
10649 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10651 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10652 Handle "vX" aliases.
10653 (v_alias_pseudo_register_collect): New function.
10654 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10655 (rs6000_gdbarch_init): Initialize "vX" aliases as
10656 pseudo-registers. Restore registration of
10657 rs6000_pseudo_register_reggroup_p with
10658 set_tdesc_pseudo_register_reggroup_p.
10660 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10662 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10663 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10664 set_gdbarch_num_pseudo_regs.
10666 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10668 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10669 Remove arg prefixname, add do_set and do_show.
10670 Add member functions set_list and show_list.
10671 * cli/cli-style.c (class cli_style_option): Update accordingly.
10672 (style_set_list): Move to file scope.
10673 (style_show_list): Likewise.
10674 (set_style): Call help_list.
10675 (show_style): Call cmd_show_list.
10676 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10677 Update to use the new macro.
10679 2019-10-12 Joel Brobecker <brobecker@adacore.com>
10681 * ada-lang.c (_initialize_ada_language): Expand the help text
10682 for the "catch exception" command.
10684 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10686 * symtab.c (matching_obj_sections): Initialize obj,
10687 declare it closer to its usage.
10689 2019-01-10 Tom Tromey <tom@tromey.com>
10691 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10692 (basic_inf_threads_range): Remove.
10693 (inf_threads_range, inf_non_exited_threads_range)
10694 (safe_inf_threads_range): Use next_adapter.
10696 2019-01-10 Keith Seitz <keiths@redhat.com>
10700 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10701 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10703 2019-01-10 Keith Seitz <keiths@redhat.com>
10707 * dictionary.c (pending_to_vector): Remove.
10708 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10709 Remove _1 suffix, replacing functions of the same name. Update
10711 (dict_create_hashed, dict_create_hashed_expandable)
10712 (dict_create_linear, dict_create_linear_expandable, dict_free)
10713 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10714 Make functions static.
10716 2019-01-10 Keith Seitz <keiths@redhat.com>
10720 * dictionary.h (struct dictionary): Replace declaration with
10722 (dict_create_hashed, dict_create_hashed_expandable)
10723 (dict_create_linear, dict_create_linear_expandable)
10724 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10725 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10726 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10727 taking multidictionary argument.
10728 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10729 * block.h (struct block) <dict>: Change to multidictionary
10730 and rename `multidict'.
10731 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10732 symmisc.c: Update all dictionary references to multidictionary.
10734 2019-01-10 Keith Seitz <keiths@redhat.com>
10738 * dictionary.c: Include unordered_map.
10739 (pending_to_vector): New function.
10740 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10741 Rewrite the non-"_1" functions to take vector instead
10743 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10744 "new" _1 versions of the same name.
10745 (multidictionary): Define.
10746 (std::hash<enum language): New definition.
10747 (collate_pending_symbols_by_language, mdict_create_hashed)
10748 (mdict_create_hashed_expandable, mdict_create_linear)
10749 (mdict_create_linear_expandable, mdict_free)
10750 (find_language_dictionary, create_new_language_dictionary)
10751 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10752 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10753 (mdict_size, mdict_empty): New functions.
10754 * dictionary.h (mdict_iterator): Define.
10756 2019-01-10 Pedro Alves <palves@redhat.com>
10758 * breakpoint.c (read_uploaded_action)
10759 (create_tracepoint_from_upload): Adjust to use
10760 gdb::unique_xmalloc_ptr.
10761 * ctf.c (ctf_write_uploaded_tp):
10762 (SET_ARRAY_FIELD): Use emplace_back.
10763 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10764 * tracefile-tfile.c (tfile_write_uploaded_tp):
10765 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10766 gdb::unique_xmalloc_ptr.
10767 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10768 at_string, cond_string, cmd_strings>: Replace char pointers
10769 with gdb::unique_xmalloc_ptr.
10771 2019-01-10 Pedro Alves <palves@redhat.com>
10773 * solib-target.c (library_list_start_library): Don't xstrdup name.
10775 2019-01-10 Pedro Alves <palves@redhat.com>
10777 * mdebugread.c (parse_partial_symbols): Use
10778 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10780 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10782 * linux-fork.c (scoped_switch_fork_info)
10783 <~scoped_switch_fork_info>: Fix incorrect variable name.
10785 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10787 * linux-fork.c (scoped_switch_fork_info)
10788 <scoped_switch_fork_info>: Make explicit.
10789 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10791 2019-01-10 Tom Tromey <tom@tromey.com>
10793 * objfiles.h (objfile::reset_psymtabs): Update.
10794 * objfiles.c (objfile::objfile): Update.
10795 * psymtab.h (psymtab_storage::obstack): Update.
10796 (psymtab_storage::m_obstack): Use gdb::optional.
10797 (class psymtab_storage): Update comment. Remove objfile
10799 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10801 2019-01-10 Tom Tromey <tom@tromey.com>
10803 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10804 <free_psymtabs>: Now private.
10805 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10806 (allocate_psymtab): Use new method.
10808 2019-01-10 Tom Tromey <tom@tromey.com>
10810 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10811 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10812 * mdebugread.c (parse_partial_symbols): Use
10813 allocate_dependencies.
10814 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10815 allocate_dependencies.
10816 (process_psymtab_comp_unit_reader)
10817 (build_type_psymtab_dependencies): Likewise.
10818 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10820 2019-01-10 Tom Tromey <tom@tromey.com>
10822 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10823 PSYMBOL_SET_LANGUAGE.
10824 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10826 2019-01-10 Tom Tromey <tom@tromey.com>
10828 * psymtab.h (psymtab_storage::obstack): New method.
10829 <m_obstack>: Rename from obstack; now private.
10830 * psymtab.c (psymtab_storage): Update.
10831 * dwarf2read.c (create_addrmap_from_index)
10832 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10835 2019-01-10 Tom Tromey <tom@tromey.com>
10837 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10838 * objfiles.h (objfile::reset_psymtabs): New method.
10840 2019-01-10 Tom Tromey <tom@tromey.com>
10842 * symmisc.c (print_symbol_bcache_statistics): Update.
10843 (print_objfile_statistics): Update.
10844 * symfile.c (reread_symbols): Update.
10845 * psymtab.h (class psymtab_storage): New.
10846 * psymtab.c (psymtab_storage): New constructor.
10847 (~psymtab_storage): New destructor.
10848 (require_partial_symbols): Update.
10849 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10850 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10851 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10852 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10853 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10854 (start_psymtab_common, end_psymtab_common)
10855 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10856 (allocate_psymtab): Update.
10857 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10859 (dump_psymtab_addrmap, maintenance_print_psymbols)
10860 (maintenance_check_psymtabs): Update.
10861 (class objfile_psymtabs): Move to objfiles.h.
10862 * psympriv.h (discard_psymtab): Now inline.
10863 (psymtab_discarder::psymtab_discarder): Update.
10864 (psymtab_discarder::~psymtab_discarder): Update.
10865 (ALL_OBJFILE_PSYMTABS): Rewrite.
10866 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10867 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10869 <partial_symtabs>: New field.
10870 (class objfile_psymtabs): Move from psymtab.h. Update.
10871 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10873 (objfile::~objfile): Don't destroy psymbol_cache.
10874 * mdebugread.c (parse_partial_symbols): Update.
10875 * dwarf2read.c (create_addrmap_from_index)
10876 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10877 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10878 (add_partial_subprogram, dwarf2_ranges_read): Update.
10879 * dwarf-index-write.c (write_address_map)
10880 (write_one_signatured_type, recursively_write_psymbols)
10881 (class debug_names, class debug_names, write_psymtabs_to_index):
10884 2019-01-10 Tom Tromey <tom@tromey.com>
10886 * symtab.h (SYMBOL_SET_NAMES): Update.
10887 (symbol_set_names): Update.
10888 (MSYMBOL_SET_NAMES): Update.
10889 * symtab.c (symbol_set_names): Change argument to be an
10890 objfile_per_bfd_storage.
10891 * psymtab.c (add_psymbol_to_bcache): Update.
10892 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10894 2019-01-10 Tom Tromey <tom@tromey.com>
10896 * symtab.c (create_demangled_names_hash): Change argument to be an
10897 objfile_per_bfd_storage.
10898 (symbol_set_names): Update.
10900 2019-01-10 Tom Tromey <tom@tromey.com>
10902 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10904 * psymtab.c (init_psymbol_list): Do nothing if already called.
10905 * psympriv.h (init_psymbol_list): Add comment.
10906 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10908 * dbxread.c (dbx_symfile_read): Unconditionally call
10911 2019-01-10 Tom Tromey <tom@tromey.com>
10913 * xcoffread.c (scan_xcoff_symtab): Update.
10914 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10916 * mdebugread.c (parse_partial_symbols)
10917 (handle_psymbol_enumerators): Update.
10918 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10919 * dbxread.c (read_dbx_symtab): Update.
10920 * psympriv.h (psymbol_placement): New enum.
10921 (add_psymbol_to_list): Update.
10923 2019-01-10 Tom Tromey <tom@tromey.com>
10925 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10926 static_psymbols parameters.
10927 (scan_xcoff_symtab): Update.
10928 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10929 static_psymbols parameters.
10930 * psympriv.h (start_psymtab_common): Update.
10931 * mdebugread.c (parse_partial_symbols): Update.
10932 * dwarf2read.c (create_partial_symtab): Update.
10933 * dbxread.c (read_dbx_symtab): Update.
10934 (start_psymtab): Remove global_psymbols and static_psymbols
10937 2019-01-10 Tom Tromey <tom@tromey.com>
10939 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10940 * psymtab.c (allocate_psymtab): Add comment.
10941 * psympriv.h (allocate_psymtab): Add comment.
10942 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10944 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10946 2019-01-10 Tom Tromey <tom@tromey.com>
10948 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10950 * mipsread.c: Include mdebugread.h.
10951 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10953 * elfread.c: Include mdebugread.h.
10955 2019-01-09 Tom Tromey <tom@tromey.com>
10957 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10958 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10959 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10960 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10961 (psym_lookup_symbol, psym_find_last_source_symtab)
10962 (psym_forget_cached_source_info, psym_print_stats)
10963 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10964 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10965 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10966 (psym_find_compunit_symtab_by_address)
10967 (maintenance_print_psymbols, maintenance_info_psymtabs)
10968 (maintenance_check_psymtabs): Use ranged for.
10969 * psymtab.h (class objfile_psymtabs): New.
10970 (require_partial_symbols): Return objfile_psymtabs.
10971 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10973 2019-01-09 Tom Tromey <tom@tromey.com>
10975 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10976 (find_pc_mapped_section, list_overlays_command)
10977 (map_overlay_command, unmap_overlay_command)
10978 (simple_overlay_update): Use all_objfiles.
10979 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10980 * printcmd.c (info_symbol_command): Use all_objfiles.
10981 * objfiles.h (ALL_OBJSECTIONS): Remove.
10982 * maint.c (maintenance_translate_address): Use all_objfiles.
10983 * gcore.c (gcore_create_callback): Use all_objfiles.
10984 (objfile_find_memory_regions): Likewise.
10986 2019-01-09 Tom Tromey <tom@tromey.com>
10988 * symtab.c (find_line_symtab, info_sources_command)
10989 (make_source_files_completion_list): Use objfile_compunits.
10990 * source.c (select_source_symtab): Use objfile_compunits.
10991 * objfiles.h (struct objfile): Update comment.
10992 (ALL_OBJFILES): Remove.
10993 (ALL_FILETABS): Remove.
10994 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10997 2019-01-09 Tom Tromey <tom@tromey.com>
10999 * symmisc.c (print_objfile_statistics, dump_objfile)
11000 (maintenance_print_symbols): Use compunit_filetabs.
11001 * source.c (forget_cached_source_info_for_objfile): Use
11003 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11004 (ALL_FILETABS): Use compunit_filetabs.
11005 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11006 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11008 2019-01-09 Tom Tromey <tom@tromey.com>
11010 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11011 (compunit_filetabs): New.
11012 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11014 (info_sources_command, make_source_files_completion_list): Remove
11016 * symmisc.c (print_objfile_statistics, dump_objfile)
11017 (maintenance_print_symbols): Remove declaration.
11018 (maintenance_info_symtabs): Use compunit_filetabs.
11019 (maintenance_info_line_tables): Likewise.
11020 * source.c (select_source_symtab): Change local variable name.
11021 (forget_cached_source_info_for_objfile): Remove declaration.
11022 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11023 * objfiles.c (objfile_relocate1): Remove declaration.
11024 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11026 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11027 * coffread.c (coff_symtab_read): Remove declaration.
11028 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11031 2019-01-09 Tom Tromey <tom@tromey.com>
11033 * symtab.c (lookup_objfile_from_block)
11034 (find_pc_sect_compunit_symtab, search_symbols)
11035 (default_collect_symbol_completion_matches_break_on): Use
11037 * objfiles.h (ALL_COMPUNITS): Remove.
11038 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11039 * cp-support.c (add_symbol_overload_list_qualified): Use
11041 * ada-lang.c (ada_collect_symbol_completion_matches)
11042 (ada_add_global_exceptions): Use objfile_compunits.
11044 2019-01-09 Tom Tromey <tom@tromey.com>
11046 * source.c (select_source_symtab)
11047 (forget_cached_source_info_for_objfile): Remove declaration.
11048 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11050 * maint.c (count_symtabs_and_blocks): Remove declaration.
11051 * cp-support.c (add_symbol_overload_list_qualified): Remove
11053 * coffread.c (coff_symtab_read): Remove declaration.
11054 * symtab.c (lookup_symbol_in_objfile_symtabs)
11055 (basic_lookup_transparent_type_1): Use objfile_compunits.
11056 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11057 (info_sources_command, search_symbols)
11058 (default_collect_symbol_completion_matches_break_on)
11059 (make_source_files_completion_list): Remove declaration.
11060 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11061 (ada_collect_symbol_completion_matches)
11062 (ada_add_global_exceptions): Remove declaration.
11063 * linespec.c (iterate_over_all_matching_symtabs): Use
11065 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11066 (class objfile_compunits): New.
11067 (ALL_COMPUNITS): Use objfile_compunits.
11068 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11069 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11071 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11073 2019-01-09 Tom Tromey <tom@tromey.com>
11075 * symtab.c (search_symbols)
11076 (default_collect_symbol_completion_matches_break_on): Use
11078 * ada-lang.c (ada_lookup_simple_minsym)
11079 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11080 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11081 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11083 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11084 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11085 * objc-lang.c (find_methods): Use objfile_msymbols.
11086 (info_selectors_command, info_classes_command): Likewise.
11087 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11088 * objfiles.h (class objfile_msymbols): New.
11089 (ALL_OBJFILE_MSYMBOLS): Remove.
11090 (ALL_MSYMBOLS): Remove.
11092 2019-01-09 Tom Tromey <tom@tromey.com>
11094 * common/next-iterator.h (next_adapter): Add Iterator template
11096 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11097 (class all_objfiles_safe): New.
11098 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11099 * objfiles.c (put_objfile_before): Update comment.
11100 (add_separate_debug_objfile): Likewise.
11101 (free_all_objfiles): Use all_objfiles_safe.
11102 (objfile_purge_solibs): Likewise.
11104 2019-01-09 Tom Tromey <tom@tromey.com>
11106 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11107 (expand_symtab_containing_pc, lookup_static_symbol)
11108 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11109 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11111 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11112 * breakpoint.c (create_overlay_event_breakpoint)
11113 (create_longjmp_master_breakpoint)
11114 (create_std_terminate_master_breakpoint)
11115 (create_exception_master_breakpoint): Use all_objfiles.
11116 * linux-thread-db.c (try_thread_db_load_from_pdir)
11117 (has_libpthread): Use all_objfiles.
11118 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11119 * linespec.c (iterate_over_all_matching_symtabs)
11120 (search_minsyms_for_name): Use all_objfiles.
11121 * maint.c (maintenance_info_sections): Use all_objfiles.
11122 * main.c (captured_main_1): Use all_objfiles.
11123 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11124 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11125 * guile/scm-pretty-print.c
11126 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11127 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11128 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11129 (maintenance_print_msymbols): Use all_objfiles.
11130 * source.c (select_source_symtab): Use all_objfiles.
11131 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11132 * symfile.c (remove_symbol_file_command)
11133 (expand_symtabs_matching, map_symbol_filenames): Use
11135 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11137 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11138 * objc-lang.c (find_methods): Use all_objfiles.
11139 * objfiles.c (have_partial_symbols, have_full_symbols)
11140 (have_minimal_symbols, qsort_cmp)
11141 (default_iterate_over_objfiles_in_search_order): Use
11143 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11144 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11145 (maintenance_check_psymtabs): Use all_objfiles.
11146 (ALL_PSYMTABS): Remove.
11147 * compile/compile-object-run.c (do_module_cleanup): Use
11149 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11150 * cp-support.c (add_symbol_overload_list_qualified): Use
11152 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11154 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11155 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11157 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11158 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11159 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11161 * solib.c (solib_read_symbols): Use all_objfiles
11163 2019-01-09 Tom Tromey <tom@tromey.com>
11165 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11166 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11168 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11169 * symmisc.c (print_symbol_bcache_statistics)
11170 (print_objfile_statistics, maintenance_print_objfiles)
11171 (maintenance_info_symtabs, maintenance_check_symtabs)
11172 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11174 * source.c (forget_cached_source_info): Use all_objfiles.
11175 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11176 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11177 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11178 * objfiles.c (update_section_map): Use all_objfiles.
11179 (shared_objfile_contains_address_p): Likewise.
11180 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11181 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11183 2019-01-09 Tom Tromey <tom@tromey.com>
11185 * common/next-iterator.h: New file.
11186 * objfiles.h (class all_objfiles): New.
11187 (struct objfile_iterator): New.
11189 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11191 * NEWS: Move the description of the changed "frame", "select-frame",
11192 and "info frame" commands to the Changed commands section.
11194 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11196 * gdbtypes.c (check_stub_method_group): Remove handling of old
11198 * linespec.c (find_methods): Likewise.
11199 * stabsread.c (read_member_functions): Likewise.
11200 * valops.c (search_struct_method): Likewise.
11201 (value_struct_elt_for_reference): Likewise.
11202 * NEWS: Mention this change.
11204 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11206 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11207 print_source_lines.
11208 * source.c (print_source_lines_base): Update line number check.
11209 (print_source_lines): New function.
11210 (source_lines_range::source_lines_range): New function.
11211 * source.h (class source_lines_range): New class.
11212 (print_source_lines): New declaration.
11214 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11216 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11218 2019-01-08 Tom Tromey <tom@tromey.com>
11219 Simon Marchi <simon.marchi@ericsson.com>
11222 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11223 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11224 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11225 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11226 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11227 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11229 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11231 * source.c (select_source_symtab): Move header comment to
11232 declaration in source.h.
11233 (forget_cached_source_info_for_objfile): Likewise.
11234 (forget_cached_source_info): Likewise.
11235 (identify_source_line): Likewise.
11236 * source.h (identify_source_line): Move declaration from symtab.h
11237 and add comment from source.c
11238 (print_source_lines): Likewise.
11239 (forget_cached_source_info_for_objfile): Likewise.
11240 (forget_cached_source_info): Likewise.
11241 (select_source_symtab): Likewise.
11242 (enum print_source_lines_flag): Move definition from symtab.h.
11243 * symtab.h (identify_source_line): Move declaration to source.h.
11244 (print_source_lines): Likewise.
11245 (forget_cached_source_info_for_objfile): Likewise.
11246 (forget_cached_source_info): Likewise.
11247 (select_source_symtab): Likewise.
11248 (enum print_source_lines_flag): Move definition to source.h.
11249 * tui/tui-hooks.c: Add 'source.h' include.
11251 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11253 * source.c (print_source_lines_base): Handle requests to print
11254 reverse line number sequences, and guard against empty lines
11257 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11259 * source.c (print_source_lines_base): Fix skip of '\r' if next
11262 2019-01-06 Tom Tromey <tom@tromey.com>
11264 * c-exp.y (struct c_parse_state) <macro_original_text,
11265 expansion_obstack>: New member.
11266 (macro_original_text, expansion_obstack): Remove globals.
11267 (scan_macro_expansion, scanning_macro_expansion)
11268 (finished_macro_expansion): Update.
11269 (scan_macro_cleanup): Remove.
11270 (yylex, c_parse): Update.
11272 2019-01-06 Tom Tromey <tom@tromey.com>
11274 * c-exp.y (struct c_parse_state) <strings>: New member.
11275 (operator_stoken): Update.
11277 2019-01-06 Tom Tromey <tom@tromey.com>
11279 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11280 (union type_stack_elt) <typelist_val>: Now a pointer to
11282 (type_stack_cleanup): Don't declare.
11283 (push_typelist): Update.
11284 * parse.c (pop_typelist): Return a std::vector.
11285 (push_typelist): Take a std::vector.
11286 (follow_types): Update. Do not free args.
11287 (type_stack_cleanup): Remove.
11288 * c-exp.y (struct c_parse_state): New.
11289 (cpstate): New global.
11290 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11291 (nonempty_typelist): Update.
11292 (func_mod): Create a new vector.
11293 (c_parse): Create a c_parse_state.
11294 (check_parameter_typelist): Do not delete params.
11295 (function_method): Update. Do not delete type_list.
11297 2019-01-06 Tom Tromey <tom@tromey.com>
11300 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11302 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11303 (print_return_value): Likewise.
11305 2019-01-05 Tom Tromey <tom@tromey.com>
11307 * contrib/cleanup_check.py: Remove.
11308 * contrib/gcc-with-excheck: Remove.
11309 * contrib/exsummary.py: Remove.
11310 * contrib/excheck.py: Remove.
11312 2019-01-05 Joel Brobecker <brobecker@adacore.com>
11314 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11315 NULL. Initialize tpprev to NULL instead of assigning it
11316 to NULL on the next statement.
11317 * windows-nat.c (windows_delete_thread): Remove check for
11318 main_thread_id before printing thread exit notifications.
11319 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11320 Remove thread ID check against main_thread_id.
11321 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11322 windows_delete_thread.
11323 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11325 2019-01-04 Tom Tromey <tom@tromey.com>
11327 * compile/compile.c (_initialize_compile): Use upper case for
11328 metasyntactic variables.
11329 * symmisc.c (_initialize_symmisc): Use upper case for
11330 metasyntactic variables.
11331 * psymtab.c (_initialize_psymtab): Use upper case for
11332 metasyntactic variables.
11333 * demangle.c (demangle_command): Use upper case for metasyntactic
11335 (_initialize_demangler): Likewise.
11336 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11339 2019-01-03 Tom Tromey <tom@tromey.com>
11341 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11343 2019-01-03 Tom Tromey <tom@tromey.com>
11345 * python/py-symtab.c (salpy_str): Update.
11346 (struct salpy_sal_object) <symtab>: Now a PyObject.
11347 (salpy_dealloc): Update.
11348 (del_objfile_sal): Use gdbpy_ref.
11350 2019-01-03 Tom Tromey <tom@tromey.com>
11352 * python/py-type.c (convert_field): Use new_reference. Return
11354 (make_fielditem): Return gdbpy_ref.
11355 (typy_fields): Update.
11356 (typy_getitem): Update.
11357 (field_name): Return gdbpy_ref. Use new_reference.
11358 (typy_iterator_iternext): Update.
11360 2019-01-03 Tom Tromey <tom@tromey.com>
11362 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11364 2019-01-03 Tom Tromey <tom@tromey.com>
11366 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11367 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11368 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11369 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11370 (pspy_set_type_printers): Likewise.
11371 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11372 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11373 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11374 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11375 (objfpy_set_type_printers): Likewise.
11377 2019-01-03 Tom Tromey <tom@tromey.com>
11379 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11380 (gdbpy_print_stack): Use gdbpy_err_fetch.
11381 * python/python-internal.h (class gdbpy_err_fetch): New class.
11382 (class gdbpy_enter) <m_error_type, m_error_value,
11383 m_error_traceback>: Remove.
11384 <m_error>: New member.
11385 (gdbpy_exception_to_string): Don't declare.
11386 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11387 * python/py-value.c (convert_value_from_python): Use
11389 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11390 gdbpy_exception_to_string.
11391 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11392 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11395 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11397 * linux-nat.c (delete_lwp_cleanup): Delete.
11398 (struct lwp_deleter): New struct.
11399 (lwp_info_up): New typedef.
11400 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11403 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11405 * linux-fork.c (class scoped_switch_fork_info): New class.
11406 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11408 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11410 * valops.c (find_overload_match): Remove use of null_cleanup, and
11411 calls to do_cleanups.
11413 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11415 * compile/compile-cplus-types.c
11416 (compile_cplus_instance::decl_name): Handle changes to
11418 * cp-support.c (cp_func_name): Update header comment, update
11420 * cp-support.h (cp_func_name): Update return type in declaration.
11421 * valops.c (find_overload_match): Move temp_func local to top
11422 level of function and change its type. Use temp_func to hold and
11423 delete temporary string obtained from cp_func_name.
11425 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11427 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11428 gdb::char_vector, remove cleanup, and update uses of `msg`.
11430 2019-01-03 Jim Wilson <jimw@sifive.com>
11432 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11434 2019-01-02 Tom Tromey <tom@tromey.com>
11436 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11437 (tdesc_parse_xml): Remove cleanups.
11438 * target-descriptions.h (make_cleanup_free_target_description):
11440 (target_desc_deleter): New struct.
11441 (target_desc_up): New typedef.
11442 * target-descriptions.c (target_desc_deleter::operator()): Rename
11443 from free_target_description.
11444 (make_cleanup_free_target_description): Remove.
11446 2019-01-02 Tom Tromey <tom@tromey.com>
11448 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11449 constructor, destructor.
11450 (linespec_parser): Remove typedef.
11451 (~linespec_parser): Rename from linespec_parser_delete.
11452 (linespec_lex_to_end, linespec_complete_label)
11453 (linespec_complete): Update.
11454 (decode_line_full): Remove cleanups.
11455 (decode_line_1): Update.
11457 2019-01-02 Tom Tromey <tom@tromey.com>
11459 * python/python-internal.h (inferior_to_inferior_object): Change
11461 * python/py-exitedevent.c (create_exited_event_object): Update.
11462 * python/py-inferior.c (inferior_to_inferior_object): Return
11464 (python_new_inferior, python_inferior_deleted)
11465 (thread_to_thread_object, delete_thread_object)
11466 (build_inferior_list, gdbpy_selected_inferior): Update.
11467 * python/py-infthread.c (create_thread_object): Update. Also fail
11468 if inferior_to_inferior_object fails.
11470 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11472 * inferior.h (class inferior) <displaced_step_state>: New field.
11473 * infrun.h (struct displaced_step_state): Move here from
11474 infrun.c. Initialize fields, add constructor.
11475 <inf>: Remove field.
11476 <reset>: New method.
11477 * infrun.c (struct displaced_step_inferior_state): Move to
11479 (displaced_step_inferior_states): Remove.
11480 (get_displaced_stepping_state): Adust.
11481 (displaced_step_in_progress_any_inferior): Adjust.
11482 (displaced_step_in_progress_thread): Adjust.
11483 (displaced_step_in_progress): Adjust.
11484 (add_displaced_stepping_state): Remove.
11485 (get_displaced_step_closure_by_addr): Adjust.
11486 (remove_displaced_stepping_state): Remove.
11487 (infrun_inferior_exit): Call displaced_step_state.reset.
11488 (use_displaced_stepping): Don't check for NULL.
11489 (displaced_step_prepare_throw): Call
11490 get_displaced_stepping_state.
11491 (displaced_step_fixup): Don't check for NULL.
11492 (prepare_for_detach): Don't check for NULL.
11494 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11496 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11497 in case of call that did not complete.
11499 2019-01-02 Andrey Utkin <autkin@undo.io>
11501 * symfile.c (find_separate_debug_file): Fix search of debug files for
11504 2019-01-02 Tom Tromey <tom@tromey.com>
11506 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11508 * python/py-frame.c (frapy_older): Remove cast.
11509 (frapy_newer): Likewise.
11510 * python/py-breakpoint.c (local_setattro): Remove cast.
11511 * python/py-arch.c (archpy_name): Remove local variable.
11512 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11514 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11516 * unittests/basic_string_view/element_access/char/empty.cc:
11517 Fix year range in copyright header.
11519 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11521 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11523 <operator==>: Update with for removed field.
11525 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11526 <isa_features>: ...this.
11527 <abi_features>: New field.
11528 (riscv_isa_flen): Update comment.
11529 (riscv_abi_xlen): New declaration.
11530 (riscv_abi_flen): New declaration.
11531 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11533 (riscv_abi_xlen): New function.
11534 (riscv_isa_flen): Update to get answer from isa_features.
11535 (riscv_abi_flen): New function.
11536 (riscv_has_fp_abi): Update to get answer from abi_features.
11537 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11539 (riscv_call_info) <xlen, flen>: Update comment.
11540 (riscv_call_arg_struct): Remove invalid assertions
11541 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11543 (riscv_gdbarch_init): Gather isa features and abi features
11544 separately, ensure both match on the gdbarch when reusing an old
11545 gdbarch. Relax an error check to allow 32-bit abi float to run on
11546 a target with 64-bit float hardware.
11548 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11550 * source.c (search_command_helper): Stop reverse search
11551 when line 1 has been searched.
11553 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11555 * record-full.c (record_full_base_target::close): Rewrite
11556 record_full_core_buf_list free logic.
11558 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11560 * break-catch-syscall.c (print_one_catch_syscall): xfree
11563 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11565 * top.c (print_gdb_version): Update Copyright year in version
11568 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11570 Update copyright year range in all GDB files.
11572 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11574 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11576 For older changes see ChangeLog-2018.
11582 version-control: never