1 2019-06-25 Tom Tromey <tom@tromey.com>
4 (tui_source_window_base::do_scroll_horizontal): Remove direction
6 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8 * tui/tui-win.c (tui_win_info::forward_scroll)
9 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
10 (tui_win_info::right_scroll): Update.
11 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
13 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
15 * tui/tui-data.h (enum tui_scroll_direction): Remove.
16 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
17 Remove direction parameter.
18 (struct tui_source_window_base, struct tui_source_window)
19 (struct tui_disasm_window, struct tui_data_window)
20 (struct tui_cmd_window): Update.
22 2019-06-25 Tom Tromey <tom@tromey.com>
24 * tui/tui-winsource.h (tui_set_exec_info_content)
25 (tui_show_exec_info_content, tui_erase_exec_info_content)
26 (tui_clear_exec_info_content, tui_update_exec_info): Change
27 argument to tui_source_window_base.
28 * tui/tui-winsource.c (tui_set_exec_info_content)
29 (tui_show_exec_info_content, tui_erase_exec_info_content)
30 (tui_clear_exec_info_content, tui_update_exec_info): Change
31 argument to tui_source_window_base.
33 2019-06-25 Tom Tromey <tom@tromey.com>
35 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
36 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
38 2019-06-25 Tom Tromey <tom@tromey.com>
40 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
43 2019-06-25 Tom Tromey <tom@tromey.com>
45 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
47 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
49 * tui/tui-source.c (tui_set_source_content): Update.
50 * tui/tui-disasm.c (tui_set_disassem_content): Update.
52 2019-06-25 Tom Tromey <tom@tromey.com>
54 * tui/tui-win.c (window_name_completer, tui_set_focus)
55 (tui_all_windows_info): Use name method.
56 * tui/tui-data.h (struct tui_gen_win_info)
57 (struct tui_source_window, struct tui_disasm_window)
58 (struct tui_data_window, struct tui_cmd_window) <name>: New
60 (tui_win_name): Don't declare.
61 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
62 (tui_win_name): Remove.
64 2019-06-25 Tom Tromey <tom@tromey.com>
66 * tui/tui-winsource.h (tui_update_source_window)
67 (tui_update_source_window_as_is): Change parameter type.
68 * tui/tui-winsource.c (tui_update_source_window): Change win_info
69 to be a tui_source_window_base.
70 (tui_update_source_window_as_is): Likewise.
71 * tui/tui-win.c (make_visible_with_new_height): Update.
73 2019-06-25 Tom Tromey <tom@tromey.com>
75 * tui/tui-winsource.c (tui_erase_source_content)
76 (tui_show_source_content, tui_show_exec_info_content)
77 (tui_erase_exec_info_content): Use refresh_window method.
78 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
79 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
81 (tui_data_window::refresh_window): New method.
82 (tui_win_info::refresh, tui_source_window_base::refresh)
83 (tui_refresh_all): Use refresh_window method.
84 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
86 * tui/tui-regs.c (tui_display_register): Call refresh_window
88 * tui/tui-layout.c (show_source_disasm_command)
89 (show_source_or_disasm_and_command): Call refresh_window method.
90 * tui/tui-data.h (struct tui_gen_win_info)
91 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
94 2019-06-25 Tom Tromey <tom@tromey.com>
96 * tui/tui.c (tui_rl_other_window, tui_enable)
97 (tui_is_window_visible, tui_get_command_dimension): Update.
98 * tui/tui-winsource.c (tui_update_source_window_as_is)
99 (tui_clear_source_content, tui_erase_source_content)
100 (tui_show_source_line, tui_source_window_base::refill)
101 (tui_source_window_base::do_scroll_horizontal)
102 (tui_source_window_base::set_is_exec_point_at)
103 (tui_update_breakpoint_info, tui_set_exec_info_content)
104 (tui_alloc_source_buffer, tui_line_is_displayed)
105 (tui_addr_is_displayed): Update.
106 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
107 (tui_check_and_display_highlight_if_needed)
108 (tui_win_info::make_visible, tui_win_info::refresh)
109 (tui_refresh_all): Update.
110 * tui/tui-windata.c (tui_first_data_item_displayed)
111 (tui_delete_data_content_windows, tui_erase_data_content)
112 (tui_display_all_data, tui_data_window::refresh_all)
113 (tui_check_data_values): Update.
114 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
115 (tui_set_win_focus_to, tui_win_info::forward_scroll)
116 (tui_win_info::backward_scroll, tui_refresh_all_win)
117 (tui_resize_all, tui_set_focus, tui_all_windows_info)
118 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
119 (tui_source_window_base::set_new_height)
120 (tui_data_window::set_new_height)
121 (make_invisible_and_set_new_height)
122 (make_visible_with_new_height, new_height_ok)
123 (parse_scrolling_args): Update.
124 * tui/tui-stack.c (tui_show_frame_info): Update.
125 * tui/tui-source.c (tui_set_source_content)
126 (tui_set_source_content_nil, tui_source_is_displayed)
127 (tui_source_window::do_scroll_vertical): Update.
128 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
129 (tui_display_registers_from, tui_display_reg_element_at_line)
130 (tui_check_register_values, tui_reg_command): Update.
131 * tui/tui-layout.c (tui_default_win_height)
132 (show_source_disasm_command, show_data, init_and_make_win)
133 (show_source_or_disasm_and_command): Update.
134 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
135 (tui_redisplay_readline, tui_mld_flush)
136 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
138 * tui/tui-disasm.c (tui_set_disassem_content)
139 (tui_disasm_window::do_scroll_vertical): Update.
140 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
142 (struct tui_win_info): Derive from tui_gen_win_info.
143 <~tui_win_info>: Mark as override.
144 <generic>: Remove member.
145 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
146 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
147 (~tui_data_window, ~tui_win_info)
148 (tui_free_all_source_wins_content): Update.
149 * tui/tui-command.c (tui_refresh_cmd_win): Update.
151 2019-06-25 Tom Tromey <tom@tromey.com>
153 * tui/tui-layout.c (init_and_make_win): Use new.
154 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
155 destructor, initializers.
156 (tui_alloc_generic_win_info): Don't declare.
157 * tui/tui-data.c (_locator): Add argument to constructor.
158 (source_win, disasm_win): New globals.
160 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
162 (tui_alloc_generic_win_info): Remove.
163 (init_content_element): Use new.
164 (tui_win_info::tui_win_info): Update.
165 (free_content_elements) <case DATA_WIN>: Use delete.
167 2019-06-25 Tom Tromey <tom@tromey.com>
169 * tui/tui-wingeneral.c (tui_refresh_win): Update.
170 * tui/tui-windata.c (tui_first_data_item_displayed)
171 (tui_delete_data_content_windows): Update.
172 * tui/tui-win.c (tui_data_window::set_new_height): Update.
173 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
174 (tui_display_registers_from, tui_check_register_values): Update.
175 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
177 * tui/tui-data.c (init_content_element): Update. Allocate the new
179 (tui_free_data_content): Update.
180 (free_content_elements) <case DATA_WIN>: Free the window.
182 2019-06-25 Tom Tromey <tom@tromey.com>
184 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
186 * tui/tui-layout.c (make_command_window)
187 (show_source_disasm_command, show_data, init_and_make_win)
188 (show_source_or_disasm_and_command): Update.
189 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
191 <can_highight, is_highlighted>: Now bool.
192 (tui_set_win_highlight): Don't declare.
193 * tui/tui-data.c (tui_set_win_highlight): Remove.
195 2019-06-25 Tom Tromey <tom@tromey.com>
197 * tui/tui-wingeneral.c (make_visible): Remove check of window
200 2019-06-25 Tom Tromey <tom@tromey.com>
202 * tui/tui-win.c (tui_win_info::max_height)
203 (tui_cmd_window::max_height): New methods.
204 (new_height_ok): Call max_height.
205 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
206 <max_height>: New method.
208 2019-06-25 Tom Tromey <tom@tromey.com>
210 * tui/tui-win.c (tui_source_window_base::set_new_height)
211 (tui_data_window::set_new_height): New methods.
212 (make_invisible_and_set_new_height): Call set_new_height method.
213 * tui/tui-data.h (struct tui_win_info)
214 (struct tui_source_window_base, struct tui_data_window)
215 <set_new_height>: New method.
217 2019-06-25 Tom Tromey <tom@tromey.com>
219 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
220 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
221 tui_refresh_data_win.
222 * tui/tui-win.c (tui_source_window_base::refresh_all): New
224 (tui_refresh_all_win): Call the refresh_all method.
225 (tui_set_focus): Likewise.
226 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
227 (struct tui_source_window_base, struct tui_data_window) <refresh>:
230 2019-06-25 Tom Tromey <tom@tromey.com>
232 * tui/tui-winsource.h (tui_refill_source_window)
233 (tui_set_is_exec_point_at): Don't declare.
234 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
235 (tui_source_window_base::refill): Rename from
236 tui_refill_source_window.
237 (tui_source_window_base::do_scroll_horizontal): Update.
238 (tui_source_window_base::set_is_exec_point_at): Rename from
239 tui_set_is_exec_point_at.
240 (tui_update_all_breakpoint_info): Update.
241 * tui/tui-stack.c (tui_show_frame_info): Update.
242 * tui/tui-layout.c (show_data): Add cast.
243 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
244 * tui/tui-data.h (struct tui_source_window_base) <refill,
245 set_is_exec_point_at>: New methods.
246 (tui_source_windows, tui_add_to_source_windows): Update types.
247 (tui_add_to_source_windows): Remove redundant declaration.
248 * tui/tui-data.c (source_windows): Store tui_source_window_base.
249 (tui_source_windows): Change return type.
250 (tui_clear_source_windows_detail): Update.
251 (tui_add_to_source_windows): Change type of parameter.
252 (tui_free_all_source_wins_content): Update.
254 2019-06-25 Tom Tromey <tom@tromey.com>
256 * tui/tui-wingeneral.c (tui_win_info::refresh)
257 (tui_source_window_base::refresh): New methods.
258 (tui_refresh_all): Call the refresh method.
259 * tui/tui-data.h (struct tui_win_info)
260 (struct tui_source_window_base) <refresh>: New method.
262 2019-06-25 Tom Tromey <tom@tromey.com>
264 * tui/tui.h (tui_is_window_visible): Return bool.
265 * tui/tui.c (tui_is_window_visible): Return bool.
266 * tui/tui-wingeneral.c (tui_make_window, make_visible)
267 (tui_make_visible, tui_make_invisible)
268 (tui_win_info::make_visible)
269 (tui_source_window_base::make_visible, make_all_visible)
270 (tui_make_all_visible, tui_make_all_invisible): Update.
271 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
272 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
274 (struct tui_win_info, struct tui_source_window_base)
275 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
276 * tui/tui-data.c (tui_init_generic_part): Update.
278 2019-06-25 Tom Tromey <tom@tromey.com>
280 * tui/tui-wingeneral.c (tui_win_info::make_visible)
281 (tui_source_window_base::make_visible): New methods.
282 (make_all_visible): Make method call.
283 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
284 (struct tui_source_window_base, struct tui_cmd_window): Override
286 (tui_win_is_source_type): Don't declare.
287 * tui/tui-data.c (tui_win_is_source_type): Remove.
289 2019-06-25 Tom Tromey <tom@tromey.com>
291 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
294 2019-06-25 Tom Tromey <tom@tromey.com>
296 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
297 Inline constructor. Add initializers for members.
298 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
299 constructors; now inline in class.
301 2019-06-25 Tom Tromey <tom@tromey.com>
303 * tui/tui-regs.c (tui_show_registers): Update.
304 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
306 * tui/tui-data.c (tui_data_window::clear_detail)
307 (tui_data_window): Update.
309 2019-06-25 Tom Tromey <tom@tromey.com>
311 * tui/tui-windata.c (tui_display_all_data)
312 (tui_display_data_from_line, tui_display_data_from)
313 (tui_check_data_values, tui_data_window::do_scroll_vertical):
315 * tui/tui-regs.c (tui_last_regs_line_no)
316 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
317 (tui_show_registers, tui_show_register_group)
318 (tui_display_registers_from, tui_display_reg_element_at_line)
319 (tui_display_registers_from_line, tui_check_register_values)
320 (tui_reg_next, tui_reg_prev): Update.
321 * tui/tui-layout.c (tui_set_layout, show_data): Update.
322 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
324 (struct tui_win_info) <detail>: Remove. Add new fields from
326 (TUI_DATA_WIN): Add cast.
327 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
328 (~tui_data_window): Simplify.
330 2019-06-25 Tom Tromey <tom@tromey.com>
332 * tui/tui-layout.c (show_source_disasm_command)
333 (show_source_or_disasm_and_command): Update.
334 * tui/tui-io.c (update_cmdwin_start_line)
335 (tui_redisplay_readline): Update.
336 * tui/tui-data.h (struct tui_command_info): Remove.
337 (struct tui_win_info) <detail>: Remove command_info member.
338 (struct tui_data_window) <start_line>: New member, from
340 (TUI_CMD_WIN): Add casts.
342 2019-06-25 Tom Tromey <tom@tromey.com>
344 * tui/tui-winsource.c (tui_update_source_window)
345 (tui_refill_source_window)
346 (tui_source_window_base::do_scroll_horizontal)
347 (tui_update_breakpoint_info, tui_set_exec_info_content)
348 (tui_show_exec_info_content, tui_erase_exec_info_content)
349 (tui_clear_exec_info_content): Update.
350 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
352 * tui/tui-win.c (make_invisible_and_set_new_height)
353 (make_visible_with_new_height): Update.
354 * tui/tui-source.c (tui_set_source_content)
355 (tui_show_symtab_source): Update.
356 * tui/tui-layout.c (extract_display_start_addr)
357 (show_source_disasm_command, show_data)
358 (make_source_or_disasm_window)
359 (show_source_or_disasm_and_command): Update.
360 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
361 (tui_disasm_window::do_scroll_vertical): Remove shadowing
363 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
364 to tui_source_window_base.
365 (struct tui_win_info) <detail>: Remove source_info member.
366 (struct tui_source_window_base) <has_locator>: Inline.
367 Move contents from tui_source_info; rename has_locator member to
369 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
370 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
372 (tui_source_window_base::clear_detail, ~tui_source_window_base):
374 (tui_free_all_source_wins_content): Cast to
375 tui_source_window_base.
377 2019-06-25 Tom Tromey <tom@tromey.com>
379 * tui/tui-win.c (make_invisible_and_set_new_height)
380 (make_visible_with_new_height): Call has_locator method.
381 * tui/tui-layout.c (show_source_disasm_command, show_data)
382 (show_source_or_disasm_and_command): Update for bool change.
383 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
384 (tui_win_info) <has_locator>: New method.
385 (struct tui_source_window_base) <has_locator>: New method.
386 (tui_win_has_locator): Don't declare.
387 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
388 from tui_win_has_locator.
389 (tui_source_window_base): Use false, not FALSE.
391 2019-06-25 Tom Tromey <tom@tromey.com>
393 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
394 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
395 clear_detail method directly.
396 (tui_clear_win_detail): Remove.
398 2019-06-25 Tom Tromey <tom@tromey.com>
400 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
401 "this", not TUI_DISASM_WIN.
403 2019-06-25 Tom Tromey <tom@tromey.com>
405 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
407 * tui/tui-winsource.c
408 (tui_source_window_base::do_scroll_horizontal): Rename from
409 tui_horizontal_source_scroll.
410 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
411 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
412 from tui_vertical_data_scroll.
413 * tui/tui-win.h (tui_scroll): Don't declare.
414 * tui/tui-win.c (tui_win_info::forward_scroll)
415 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
416 (tui_win_info::right_scroll): Rename and update.
417 (tui_scroll_forward_command, tui_scroll_backward_command)
418 (tui_scroll_left_command, tui_scroll_right_command): Update.
419 (tui_scroll): Remove.
420 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
421 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
422 from tui_vertical_source_scroll.
423 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
424 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
425 from tui_vertical_disassem_scroll.
426 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
427 do_scroll_horizontal>: New methods.
428 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
430 (struct tui_source_window_base): Add do_scroll_horizontal.
431 (struct tui_source_window, struct tui_disasm_window): Add
433 (struct tui_data_window, struct tui_cmd_window): Add
434 do_scroll_horizontal and do_scroll_vertical.
435 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
437 2019-06-25 Tom Tromey <tom@tromey.com>
439 * tui/tui-data.h (struct tui_source_window_base): New struct.
440 (struct tui_source_window): Derive from tui_source_window_base.
441 (struct tui_disasm_window): New struct.
442 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
443 from tui_source_window::clear_detail.
444 (tui_source_window_base): Rename from tui_source_window.
445 (~tui_source_window_base): Rename from ~tui_source_window.
446 (tui_alloc_win_info): Create a tui_disasm_window.
448 2019-06-25 Tom Tromey <tom@tromey.com>
450 * tui/tui-data.h (struct tui_source_window)
451 (struct tui_data_window): Declare destructors.
452 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
454 (tui_win_info): Simplify.
456 2019-06-25 Tom Tromey <tom@tromey.com>
458 * tui/tui-winsource.c (tui_display_main)
459 (tui_update_source_windows_with_addr)
460 (tui_update_all_breakpoint_info): Update.
461 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
462 (new_height_ok, parse_scrolling_args): Update.
463 * tui/tui-stack.c (tui_show_frame_info): Update.
464 * tui/tui-data.h (struct tui_list): Remove.
465 (tui_source_windows): Return a reference to a std::vector.
466 * tui/tui-data.c (source_windows): Now a std::vector.
467 (tui_source_windows): Change return type.
468 (tui_clear_source_windows): Rewrite.
469 (tui_clear_source_windows_detail, tui_add_to_source_windows)
470 (tui_free_all_source_wins_content): Rewrite.
472 2019-06-25 Tom Tromey <tom@tromey.com>
474 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
475 (struct tui_data_window, struct tui_cmd_window): Declare
477 * tui/tui-data.c (tui_source_window::clear_detail)
478 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
480 (tui_clear_win_detail): Simplify.
482 2019-06-25 Tom Tromey <tom@tromey.com>
484 * tui/tui-layout.c (make_source_window, make_disasm_window)
485 (make_source_or_disasm_window): Remove win_info_ptr parameter.
486 Return the new window.
487 (show_source_disasm_command, show_data)
488 (show_source_or_disasm_and_command): Update.
490 2019-06-25 Tom Tromey <tom@tromey.com>
492 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
493 parameter. Return the new window.
494 (show_source_disasm_command): Update and remove NULL check.
495 (show_source_or_disasm_and_command): Update.
497 2019-06-25 Tom Tromey <tom@tromey.com>
499 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
501 2019-06-25 Tom Tromey <tom@tromey.com>
503 * tui/tui-data.h (struct tui_win_info): Make constructor
504 protected. Make destructor virtual. Add initializers.
505 (tui_source_window, tui_data_window, tui_cmd_window): New
507 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
508 constructor. Add "type" parameter.
509 (tui_source_window, tui_data_window, tui_cmd_window): New
511 (tui_alloc_win_info): Instantiate the appropriate subclass.
513 2019-06-25 Tom Tromey <tom@tromey.com>
515 * tui/tui-win.c (tui_resize_all): Use delete.
516 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
518 (tui_free_window): Don't declare.
519 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
522 2019-06-25 Tom Tromey <tom@tromey.com>
524 * tui/tui-data.h (struct tui_win_info): Add constructor.
525 * tui/tui-data.c (tui_alloc_win_info): Use new.
526 (tui_free_window): Use delete.
528 2019-06-22 Tom Tromey <tom@tromey.com>
530 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
532 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
534 2019-06-22 Tom Tromey <tom@tromey.com>
536 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
538 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
540 2019-06-22 Tom de Vries <tdevries@suse.de>
542 * dwarf2read.c (create_addrmap_from_aranges)
543 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
546 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
548 * dwarf2read.h (dwarf2_section_info_def): Remove.
549 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
550 * dwarf2read.c (struct dwo_sections) <types>: Change type to
551 std::vector<dwarf2_section_info>.
552 (struct dwo_file) <~dwo_file>: Remove.
553 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
555 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
556 (dwarf2_read_debug_names): Likewise.
557 (create_debug_types_hash_table): Change parameter type to
558 array_view, adjust code accordingly.
559 (dwarf2_locate_dwo_sections): Adjust to std::vector.
560 (partial_die_info::fixup): Likewise.
561 (determine_prefix): Likewise.
562 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
564 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
566 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
568 <~dwo_file>: Remove call to gdb_bfd_unref.
569 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
570 gdb_bfd_ref_ptr::get.
572 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
574 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
576 * dwarf2read.c (struct dwo_file): Initialize fields.
578 (free_dwo_file): Remove, move content to ~dwo_file.
579 (struct dwo_file_deleter): Remove.
580 (dwo_file_up>: Remove custom deleter.
581 (free_dwo_files): Remove.
582 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
584 (process_skeletonless_type_units): Call unique_ptr::get.
585 (allocate_dwo_file_hash_table): Add deleter to created hash
586 table. Change return type to htab_up.
587 (lookup_dwo_file_slot): Don't memset dwo_file, call
589 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
590 (create_dwo_unit_in_dwp_v2): Likewise.
591 (open_and_init_dwo_file): Likewise.
592 (free_dwo_file_from_slot): Remove.
594 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
596 * dwarf2read.h (struct dwarf2_section_info) <readin,
597 is_virtual>: Change type to bool.
598 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
601 2019-06-19 Tom Tromey <tom@tromey.com>
603 * tui/tui-data.h (tui_init_content_element): Don't declare.
605 2019-06-19 Tom Tromey <tom@tromey.com>
607 * tui/tui-data.h (tui_init_win_info): Don't declare.
609 2019-06-19 Tom de Vries <tdevries@suse.de>
611 * dwarf2read.h (abstract_to_concrete): Change type to
612 std::unordered_map<sect_offset, std::vector<sect_offset>,
613 gdb::hash_enum<sect_offset>>.
615 2019-06-19 Tom Tromey <tromey@adacore.com>
617 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
618 EVAL_AVOID_SIDE_EFFECTS specially.
620 2019-06-19 Tom Tromey <tromey@adacore.com>
622 * source-cache.c (highlighter): New global.
623 (source_cache::get_source_lines): Create a highlighter on demand.
625 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
627 * defs.h (deprecated_interactive_hook): Delete declaration.
628 * interps.c (clear_interpreter_hooks): Remove use of
629 deprecated_interactive_hook.
630 * top.c (deprecated_interactive_hook): Delete definition.
631 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
633 2019-06-18 Tom de Vries <tdevries@suse.de>
636 * dwarf2read.h (abstract_to_concrete): Change type from
637 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
638 std::unordered_map<sect_offset, std::vector<sect_offset>>.
639 * dwarf2read.c (read_variable): Update.
640 (dwarf2_fetch_die_loc_sect_off): Update.
642 2019-06-17 Tom de Vries <tdevries@suse.de>
645 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
646 accessing parent[parent_len - 1].
648 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
651 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
652 call dtrace_process_dof with NULL dof.
654 2019-06-16 Tom de Vries <tdevries@suse.de>
657 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
659 2019-06-16 Tom Tromey <tom@tromey.com>
661 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
662 (make_all_visible): Use address of member.
664 2019-06-16 Tom Tromey <tom@tromey.com>
666 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
667 (tui_free_window, free_content, free_content_elements): Remove
669 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
671 * tui/tui-regs.c (tui_show_register_group)
672 (tui_display_registers_from, tui_display_reg_element_at_line):
673 Remove unnecessary cast.
675 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
677 * linux-nat.c (normal_mask): Delete.
678 (_initialize_linux_nat): Don't initialise normal_mask.
680 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
683 * dwarf-index-write.h (write_psymtabs_to_index): Add
684 dwz_basename parameter.
685 * dwarf-index-write.c (write_gdbindex): Move file writing to
686 write_gdbindex_1. Change return type void.
687 (assert_file_size): Move up, remove filename parameter.
688 (write_gdbindex_1): New function.
689 (write_debug_names): Change return type to void, call
691 (struct index_wip_file): New struct.
692 (write_psymtabs_to_index): Add dwz_basename parameter. Move
693 file logic to index_wip_file. Write index for dwz file if
695 (save_gdb_index_command): Pass basename of dwz file, if present.
696 * dwarf-index-cache.c (index_cache::store): Obtain and pass
697 build-id of dwz file, if present.
698 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
699 (dwarf2_get_dwz_file): Likewise.
700 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
701 (dwarf2_get_dwz_file): Likewise.
703 2019-06-16 Tom Tromey <tom@tromey.com>
705 * coffread.c (process_coff_symbol): Use xstrdup.
706 * value.c (create_internalvar): Use xstrdup.
708 2019-06-16 Tom Tromey <tom@tromey.com>
710 * valops.c (value_cast, value_slice): Remove unnecessary cast.
711 * breakpoint.c (stopin_command, stopat_command)
712 (until_break_command, decode_location_default): Remove unnecessary
714 * utils.c (subset_compare): Remove unnecessary cast.
715 * ada-lang.c (ada_update_initial_language): Remove unnecessary
717 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
719 * infcmd.c (path_command): Remove unnecessary cast.
720 * coffread.c (decode_type): Remove unnecessary cast.
721 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
722 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
723 * tui/tui-stack.c (tui_show_locator_content)
724 (tui_show_frame_info): Remove unnecessary cast.
725 * tui/tui-win.c (tui_scroll_forward_command)
726 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
727 (parse_scrolling_args): Remove unnecessary cast.
728 * tui/tui-data.c (init_win_info, tui_del_window)
729 (tui_free_window, tui_del_data_windows, tui_free_data_content)
730 (free_content_elements): Remove unnecessary cast.
731 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
733 * tui/tui-source.c (tui_set_source_content)
734 (tui_vertical_source_scroll): Remove unnecessary cast.
735 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
737 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
738 * tui/tui-regs.c (tui_display_registers_from)
739 (tui_display_register): Remove unnecessary cast.
740 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
741 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
742 (make_visible): Remove unnecessary cast.
743 * tui/tui-winsource.c (tui_erase_source_content)
744 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
746 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
747 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
748 * stabsread.c (read_type, read_array_type, read_range_type):
749 Remove unnecessary cast.
750 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
751 (parse_symbol, parse_type, upgrade_type, parse_external)
752 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
754 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
756 2019-06-16 Tom Tromey <tom@tromey.com>
758 * tui/tui-data.c (tui_alloc_generic_win_info)
759 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
762 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
763 Andrew Burgess <andrew.burgess@embecosm.com>
765 * f-typeprint.c (f_print_type): Don't return early for not
766 associated or not allocated types.
767 (f_type_print_varspec_suffix): Add print_rank parameter and print
768 ranks of array types in case they dangling.
769 (f_type_print_base): Add print_rank parameter.
771 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
773 * NEWS: Mention new MI commands.
774 * break-catch-throw.c (enum exception_event_kind): Move to
776 (print_mention_exception_catchpoint): Output text as a single
778 (catch_exception_command_1): Rename to...
779 (catch_exception_event): ...this, make non-static, update header
780 command, and change some parameter types.
781 (catch_catch_command): Update for changes to
782 catch_exception_command_1.
783 (catch_throw_command): Likewise.
784 (catch_rethrow_command): Likewise.
785 * breakpoint.c (enum exception_event_kind): Delete.
786 * breakpoint.h (enum exception_event_kind): Moved here from
788 (catch_exception_event): Declare.
789 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
790 (mi_cmd_catch_throw): New function.
791 (mi_cmd_catch_rethrow): New function.
792 (mi_cmd_catch_catch): New function.
793 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
794 'catch-catch' entries.
795 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
796 (mi_cmd_catch_rethrow): Declare.
797 (mi_cmd_catch_catch): Declare.
799 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
801 * annotate.c (annotate_source_line): Change return type to void,
802 update implementation to match.
803 * annotate.h (annotate_source_line): Change return type to void,
804 update header comment.
805 * stack.c (print_frame_info): Don't change what frame information
806 is printed based on whether annotations are on or not.
808 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
810 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
811 (annotate_source): Make static.
812 (annotate_source_line): Moved from source.c and renamed from
813 identify_source_line. Update the return type.
814 * annotate.h (annotate_source): Delete declaration.
815 (annotate_source_line): Declaration moved from source.h, and
816 renamed from identify_source_line. Return type updated.
817 * source.c (identify_source_line): Moved to annotate.c and renamed
818 to annotate_source_line.
819 (info_line_command): Remove check of annotation_level.
820 * source.h (identify_source_line): Move declaration to annotate.h
821 and rename to annotate_source_line.
822 * stack.c: Add 'annotate.h' include.
823 (print_frame_info): Remove check of annotation_level before
824 calling annotate_source_line.
826 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
828 * source-cache.c (source_cache::get_plain_source_lines): Use
829 open_source_file_with_line_charpos instead of just
830 open_source_file, remove call to find_source_lines.
831 (source_cache::get_source_lines): Likewise.
832 * source.c (find_source_lines): Make static.
833 (get_filename_and_charpos): Renamed into...
834 (open_source_file_with_line_charpos): ..this along with changes to
835 return a scoped_fd, and some other minor clean ups.
836 (identify_source_line): Use open_source_file_with_line_charpos.
837 (search_command_helper): Use open_source_file_with_line_charpos
838 instead of just open_source_file, remove call to
840 * source.h (open_source_file_with_line_charpos): Declare new
842 (find_source_lines): Delete declaration.
844 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
846 * source.c (get_filename_and_charpos): Remove fullname
848 (identify_source_line): Update call to get_filename_and_charpos.
850 2019-06-14 Tom Tromey <tromey@adacore.com>
853 * ui-style.h (skip_ansi_escape): Update comment.
854 * ui-file.h (class no_terminal_escape_file): New class.
855 * ui-file.c (no_terminal_escape_file::write)
856 (no_terminal_escape_file::puts): New methods.
857 * cli/cli-logging.c (handle_redirections): Use
858 no_terminal_escape_file.
860 2019-06-14 Tom Tromey <tromey@adacore.com>
862 * NEWS: Move convenience variable news above Python news.
864 2019-06-14 Tom Tromey <tom@tromey.com>
866 * gnulib: Move directory to top-level.
867 * configure.ac: Don't configure gnulib.
868 * configure: Rebuild.
869 * common/common-defs.h: Use new path to gnulib.
870 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
872 (INCGNU): Look in new gnulib location.
873 (HFILES_NO_SRCDIR): Remove gnulib files.
874 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
875 (generated_files): Remove GNULIB_H.
876 ($(LIBGNU), all-lib): Remove targets.
877 (distclean): Don't mention GNULIB_BUILDDIR.
878 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
880 2019-06-14 Tom Tromey <tromey@adacore.com>
882 * symfile.c (add_symbol_file_command): Remove obsolete comment.
883 Warn if symbol file does not provide any symbols.
885 2019-06-14 Tom Tromey <tromey@adacore.com>
887 * source.c (find_and_open_source): Respect basenames_may_differ.
889 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
891 * annotate.c (annotate_breakpoints_invalid): Make use of
892 scoped_restore_terminal_state.
893 (annotate_frames_invalid): Likewise.
895 2019-06-14 Tom Tromey <tromey@adacore.com>
897 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
898 allow assignment to an internalvar.
900 2019-06-14 Tom Tromey <tromey@adacore.com>
902 * ada-lex.l: Allow "_" in attribute names.
904 2019-06-14 Tom Tromey <tromey@adacore.com>
907 * regcache.c (registers_changed): Don't call alloca.
908 * top.c (execute_command): Don't call alloca.
910 2019-06-13 Pedro Alves <palves@redhat.com>
912 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
913 'expression'. When parsing an expression, error out if there's
914 junk after "unlimited".
915 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
916 (do_set_command): Adjust calls to is_unlimited_literal.
918 2019-06-13 Pedro Alves <palves@redhat.com>
920 * compile/compile.c (make_compile_options_def_group): Add braces
921 around array_view initializer.
922 * thread.c (make_thread_apply_all_options_def_group)
923 (make_thread_apply_all_options_def_group): Likewise.
925 2019-06-13 Pedro Alves <palves@redhat.com>
927 * NEWS (New commands): Mention "maint test-options
928 require-delimiter", "maint test-options unknown-is-error", "maint
929 test-options unknown-is-operand" and "maint show
930 test-options-completion-result".
931 (New command options, command completion): New section.
932 (Completion improvements): New section.
933 Mention that you can abbreviate "unlimited".
935 2019-06-13 Pedro Alves <palves@redhat.com>
937 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
938 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
939 * unittests/cli-utils-selftests.c (test_parse_flags)
940 (test_parse_flags_qcs): Delete.
941 (test_cli_utils): Don't call deleted functions.
943 2019-06-13 Pedro Alves <palves@redhat.com>
945 * thread.c: Include "cli/cli-option.h".
946 (tp_array_compar_ascending): Global.
947 (tp_array_compar): Delete function.
948 (tp_array_compar_ascending, tp_array_compar_descending): New
950 (ascending_option_def, qcs_flag_option_def)
951 (thr_qcs_flags_option_defs)
952 (make_thread_apply_all_options_def_group)
953 (make_thread_apply_options_def_group): New.
954 (thread_apply_all_command): Use gdb::option::process_options.
955 (thread_apply_command_completer)
956 (thread_apply_all_command_completer): New.
957 (thread_apply_command): Use gdb::option::process_options.
958 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
959 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
960 to generate help text of "thread apply". Adjust "taas"'s help.
961 * tid-parse.c (tid_range_parser::in_thread_range): New method.
962 * tid-parse.h (tid_range_parser::in_thread_range): New method.
964 2019-06-13 Pedro Alves <palves@redhat.com>
966 * thread.c (thread_apply_command): Check for invalid TID with
967 isdigit instead of !isalpha.
969 2019-06-13 Pedro Alves <palves@redhat.com>
971 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
972 (validate_flags_qcs): New.
973 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
974 (validate_flags_qcs): Declare.
975 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
976 (make_frame_apply_options_def_group): New.
977 (frame_apply_command_count): Process options with
978 gdb::option::process_options.
979 (frame_apply_completer): New.
980 (frame_apply_level_completer, frame_apply_all_completer)
981 (frame_apply_completer): New.
982 (_initialize_stack): Update help of "frame apply", "frame apply
983 level", "frame apply all" and "faas" to mention supported options
984 and install command completers.
985 * stack.h (frame_apply_all_completer): Declare.
986 * thread.c: Include "stack.h".
987 (tfaas_command): Add "--".
988 (_initialize_thread): Update help "tfaas" to mention supported
989 options and install command completer.
991 2019-06-13 Pedro Alves <palves@redhat.com>
993 * completer.c (complete_nested_command_line): New.
994 (gdb_completion_word_break_characters_throw): Add assertion.
995 * completer.h (complete_nested_command_line): Declare.
997 2019-06-13 Pedro Alves <palves@redhat.com>
999 * stack.c (parse_backtrace_qualifiers): New.
1000 (backtrace_command): Use it.
1001 (backtrace_command_completer): Complete on qualifiers.
1003 2019-06-13 Pedro Alves <palves@redhat.com>
1005 * frame.c: Include "cli/cli-option.h.
1006 (user_set_backtrace_options): New.
1007 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
1009 (get_prev_frame): Adjust.
1010 (boolean_option_def, uinteger_option_def)
1011 (set_backtrace_option_defs): New.
1012 (_initialize_frame): Adjust and use
1013 gdb::option::add_setshow_cmds_for_options to install "set
1014 backtrace past-main" and "set backtrace past-entry".
1015 * frame.h: Include "cli/cli-option.h".
1016 (struct frame_print_options): Forward declare.
1017 (print_frame_arguments_all, print_frame_arguments_scalars)
1018 (print_frame_arguments_none): Declare.
1019 (print_entry_values): Delete declaration.
1020 (struct frame_print_options, user_frame_print_options): New.
1021 (struct set_backtrace_options): New.
1022 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
1023 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1024 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
1025 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
1026 (list_args_or_locals): Add frame_print_options parameter.
1027 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
1028 * python/py-framefilter.c (enumerate_args): Pass down
1029 USER_FRAME_PRINT_OPTIONS.
1030 * stack.c: Include "cli/cli-option.h".
1031 (print_frame_arguments_all, print_frame_arguments_scalars)
1032 (print_frame_arguments_none): Declare.
1033 (print_raw_frame_arguments, print_entry_values): Delete.
1034 (user_frame_print_options): New.
1035 (boolean_option_def, enum_option_def, frame_print_option_defs):
1037 (struct backtrace_cmd_options): New.
1038 (bt_flag_option_def): New.
1039 (backtrace_command_option_defs): New.
1040 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
1041 (print_frame_arg, read_frame_arg, print_frame_args)
1042 (print_frame_info, print_frame): Add frame_print_options parameter
1044 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
1045 (backtrace_command_1): Add frame_print_options and
1046 backtrace_cmd_options parameters and use them.
1047 (make_backtrace_options_def_group): New.
1048 (backtrace_command): Process command options with
1049 gdb::option::process_options.
1050 (backtrace_command_completer): New.
1051 (_initialize_stack): Extend "backtrace"'s help to mention
1052 supported options. Install completer for "backtrace".
1053 Install some settings commands with add_setshow_cmds_for_options.
1055 2019-06-13 Pedro Alves <palves@redhat.com>
1057 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
1058 and that "set/show print raw frame-arguments" are now deprecated.
1060 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
1062 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
1063 * stack.c (_initialize_stack): Install "set/show print
1064 raw-frame-arguments", and deprecate "set/show print raw
1066 * valprint.c (_initialize_valprint): Deprecate "set/show print
1069 2019-06-13 Pedro Alves <palves@redhat.com>
1071 * compile/compile.c (struct compile_options): New.
1072 (compile_flag_option_def, compile_command_option_defs)
1073 (make_compile_options_def_group): New.
1074 (compile_file_command): Handle options with
1075 gdb::option::process_options.
1076 (compile_file_command_completer): New function.
1077 (compile_code_command): Handle options with
1078 gdb::option::process_options.
1079 (compile_code_command_completer): New function.
1080 (_initialize_compiler): Install completers for "compile code" and
1081 "compile file". Mention available options in "compile code" and
1082 "compile code"'s help.
1083 * completer.c (advance_to_completion_word): New, factored out from
1085 (advance_to_expression_complete_word_point): ... this.
1086 (advance_to_filename_complete_word_point): New.
1087 * completer.h (advance_to_filename_complete_word_point): New
1090 2019-06-13 Pedro Alves <palves@redhat.com>
1092 * compile/compile.c: Include "cli/cli-option.h".
1093 (compile_print_value): Scope data pointer is now a
1094 value_print_options pointer; adjust.
1095 (compile_print_command): Process options. Scope data pointer is
1096 now a value_print_options pointer; adjust.
1097 (_initialize_compile): Update "compile print"'s help to include
1098 supported options. Install a completer for "compile print".
1099 * cp-valprint.c (show_vtblprint, show_objectprint)
1100 (show_static_field_print): Delete.
1101 (_initialize_cp_valprint): Don't install "set print
1102 static-members", "set print vtbl", "set print object" here.
1103 * printcmd.c: Include "cli/cli-option.h" and
1104 "common/gdb_optional.h".
1105 (print_command_parse_format): Rework to fill in a
1106 value_print_options instead of a format_data.
1107 (print_value): Change parameter type from format_data pointer to
1108 value_print_options reference. Adjust.
1109 (print_command_1): Process options. Adjust to pass down a
1110 value_print_options.
1111 (print_command_completer): New.
1112 (_initialize_printcmd): Install print_command_completer as
1113 handle_brkchars completer for the "print" command. Update
1114 "print"'s help to include supported options.
1115 * valprint.c: Include "cli/cli-option.h".
1116 (show_vtblprint, show_objectprint, show_static_field_print): Moved
1117 here from cp-valprint.c.
1118 (boolean_option_def, uinteger_option_def)
1119 (value_print_option_defs, make_value_print_options_def_group):
1120 New. Use gdb::option::add_setshow_cmds_for_options to install
1121 "set print elements", "set print null-stop", "set print repeats",
1122 "set print pretty", "set print union", "set print array", "set
1123 print address", "set print symbol", "set print array-indexes".
1124 * valprint.h: Include <string> and "cli/cli-option.h".
1125 (make_value_print_options_def_group): Declare.
1126 (print_value): Change parameter type from format_data pointer to
1127 value_print_options reference.
1128 (print_command_completer): Declare.
1130 2019-06-13 Pedro Alves <palves@redhat.com>
1132 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
1133 (COMMON_SFILES): Add maint-test-settings.c.
1134 * cli/cli-decode.c (boolean_enums): New global, factored out from
1136 (add_setshow_boolean_cmd): ... here.
1137 * cli/cli-decode.h (boolean_enums): Declare.
1138 * cli/cli-option.c: New file.
1139 * cli/cli-option.h: New file.
1140 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
1141 factored out from ...
1142 (parse_cli_boolean_value(const char *)): ... this.
1143 (is_unlimited_literal): Change parameter type to pointer to
1144 pointer. Adjust and advance ARG pointer.
1145 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
1146 (parse_cli_var_enum): New, factored out from ...
1147 (do_set_command): ... this. Adjust.
1148 * cli/cli-setshow.h (parse_cli_boolean_value)
1149 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
1150 (parse_cli_var_enum): Declare.
1151 * cli/cli-utils.c: Include "cli/cli-option.h".
1152 (get_ulongest): New.
1153 * cli/cli-utils.h (get_ulongest): Declare.
1154 (check_for_argument): New overloads.
1155 * maint-test-options.c: New file.
1157 2019-06-13 Pedro Alves <palves@redhat.com>
1159 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
1160 parse a range if "-" is at the end of the string.
1162 2019-06-13 Pedro Alves <palves@redhat.com>
1164 * cli/cli-setshow.c (parse_auto_binary_operation)
1165 (parse_cli_boolean_value): Don't allow "o".
1167 2019-06-13 Pedro Alves <palves@redhat.com>
1169 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
1170 * NEWS: Mention maint test-settings KIND.
1171 * maint-test-settings.c: New file.
1173 2019-06-13 Pedro Alves <palves@redhat.com>
1175 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
1177 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
1180 2019-06-13 Pedro Alves <palves@redhat.com>
1182 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
1185 2019-06-13 Pedro Alves <palves@redhat.com>
1187 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
1189 2019-06-13 Pedro Alves <palves@redhat.com>
1191 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
1192 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
1194 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
1195 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
1197 (check_for_argument): Skip spaces after argument.
1199 2019-06-13 Pedro Alves <palves@redhat.com>
1201 * thread.c (thread_apply_command): Adjust TID parsing.
1202 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
1203 detected before end of string.
1204 (tid_is_in_list): Error out if LIST is invalid.
1206 2019-06-13 Pedro Alves <palves@redhat.com>
1208 * completer.c (complete_line_internal_1): Rewind completion word
1210 (completion_tracker::advance_custom_word_point_by): Change
1211 parameter type to int.
1212 * completer.h (completion_tracker::advance_custom_word_point_by):
1215 2019-06-13 Pedro Alves <palves@redhat.com>
1217 * completer.c (advance_to_completion_word): Handle delimiters.
1219 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
1221 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
1223 2019-06-11 Tom Tromey <tom@tromey.com>
1225 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
1226 (xmalloc_failed): Move to alloc.c.
1227 * alloc.c: New file.
1228 * Makefile.in (COMMON_SFILES): Add alloc.c.
1230 2019-06-11 Tom Tromey <tom@tromey.com>
1232 * nat/linux-waitpid.c: Don't include server.h.
1233 (linux_debug): Remove.
1234 (my_waitpid): Update.
1236 2019-06-11 Tom Tromey <tromey@adacore.com>
1238 * infcall.c (_initialize_infcall): Remove trailing newline from
1240 * user-regs.c (_initialize_user_regs): Remove trailing newline
1242 * typeprint.c (_initialize_typeprint): Remove trailing newline
1244 * reverse.c (_initialize_reverse): Remove trailing newlines from
1246 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
1248 * language.c (add_set_language_command): Remove trailing newline
1250 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
1252 * disasm.c (_initialize_disasm): Remove trailing newline from
1254 * top.c (init_main): Remove trailing newline from help.
1255 * interps.c (_initialize_interpreter): Remove trailing newline
1257 * btrace.c (_initialize_btrace): Remove trailing newlines from
1259 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
1261 * python/python.c (_initialize_python): Remove trailing newline
1263 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
1265 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
1266 from help. Reformat some text.
1267 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
1269 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
1272 2019-06-11 Tom Tromey <tromey@adacore.com>
1274 * darwin-nat.c (darwin_decode_exception_message)
1275 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
1277 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
1279 * valops.c (value_slice): Check for not allocated or not
1282 2019-06-10 Tom de Vries <tdevries@suse.de>
1285 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
1286 sure an empty slot (defined by a 32-bit zero pair) is recognized as
1289 2019-06-10 Tom de Vries <tdevries@suse.de>
1292 * linespec.c (linespec_lexer_lex_string): Remove incorrect
1293 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
1295 2019-06-10 Tom de Vries <tdevries@suse.de>
1298 * symtab.c (struct demangled_name_entry): Add language field.
1299 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
1300 static minimal symbol". Set and use language field.
1302 2019-06-10 Tom Tromey <tromey@adacore.com>
1304 * ada-lang.c (_initialize_ada_language): Update help text.
1306 2019-06-10 Tom Tromey <tromey@adacore.com>
1308 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
1310 * guile/guile.c (handle_boot_error): Don't end warning with a
1312 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
1313 warning with a newline.
1314 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
1316 (s12z_frame_cache): Likewise.
1317 * dwarf-index-cache.c (index_cache::store): Don't end warning with
1319 * solib-svr4.c (disable_probes_interface): Don't end warning with
1321 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
1323 * python/python.c (do_finish_initialization): Don't end warning
1326 2019-06-10 Tom Tromey <tom@tromey.com>
1328 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1329 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
1332 2019-06-10 Tom Tromey <tromey@adacore.com>
1334 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
1336 (elf_new_init): Don't call stabsread_new_init.
1337 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
1338 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
1339 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
1341 2019-06-10 Tom de Vries <tdevries@suse.de>
1345 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
1347 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
1349 * source.c (find_and_open_source): Also rewrite relative file
1352 2019-04-26 Amos Bird <amosbird@gmail.com>
1354 * annotate.c (annotate_thread_exited): Add "thread-exited"
1357 2019-06-06 Tom Tromey <tromey@adacore.com>
1359 * maint.h (class scoped_command_stats): Use
1360 DISABLE_COPY_AND_ASSIGN.
1361 <print_time>: New method.
1362 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
1364 (scoped_command_stats::print_time): New method.
1366 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1368 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
1369 instructions of lengths 6 or 8 bytes.
1371 2019-06-04 Pedro Alves <palves@redhat.com>
1373 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
1375 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
1376 * breakpoint.c (condition_completer): Likewise.
1377 * cli/cli-dump.c (scan_expression): Likewise.
1378 * common/filestuff.c (mkdir_recursive): Likewise.
1379 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
1380 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
1381 (gdb_abspath): Likewise.
1382 * compile/compile-cplus-types.c
1383 (compile_cplus_instance::decl_name): Likewise.
1384 * completer.c (complete_explicit_location):
1385 (signal_completer, reg_or_group_completer_1): Likewise.
1386 * cp-support.c (cp_remove_params_if_any): Likewise.
1387 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
1388 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
1389 * infcmd.c (strip_bg_char): Likewise.
1390 * linespec.c (copy_token_string): Likewise.
1391 * mi/mi-main.c (output_cores): Likewise.
1392 * psymtab.c (psymtab_search_name):
1393 * symfile.c (test_set_ext_lang_command): Likewise.
1394 * target.c (target_fileio_read_stralloc): Likewise.
1395 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
1396 * value.c (complete_internalvar): Likewise.
1398 2019-06-04 Christian Biesinger <cbiesinger@google.com>
1400 Add objfile property to gdb.Type.
1401 * NEWS: Mention Python API addition.
1402 * python/py-type.c (typy_get_objfile): New method.
1404 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1406 * NEWS: Mention the new set|show style [title|highlight].
1407 Mention changes to "show style", "help" and "apropos".
1409 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1411 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
1412 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
1413 instead of print_help_for_command.
1414 (print_doc_of_command): New function.
1415 (help_list): Add 'apropos -v word' suggestion.
1416 (print_help_for_command): Style the command name using title style.
1417 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
1418 (_initialize_cli_cmds): Describe -v in apropos_command help.
1420 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1422 * cli/cli-style.h (cli_style_option): Add name in constructor,
1423 add m_name class member, add constructor with intensity,
1424 add name class function.
1425 (cli_style_option::add_setshow_commands): Remove name argument.
1426 (highlight_style, title_style): New styles.
1427 * cli/cli-style.c (do_show): New function that shows a style
1428 characteristic styling the style name with itself.
1429 (set_style_name): New function.
1430 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
1431 Update all callers according to the changes in cli/cli-style.h.
1432 * utils.h (fputs_highlighted): New function.
1433 * utils.c (fputs_highlighted): Likewise.
1435 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1437 * NEWS: Mention new pipe command and new convenience variables.
1439 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1441 * cli/cli-cmds.c (pipe_command): New function.
1442 (_initialize_cli_cmds): Call add_com for pipe_command.
1443 Define | as an alias for pipe.
1444 (exit_status_set_internal_vars): New function.
1445 (shell_escape): Call exit_status_set_internal_vars.
1446 cli/cli-decode.c (find_command_name_length): Recognize | as
1447 a single character command.
1449 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1451 * gdbcmd.h (execute_command_to_ui_file): New declaration.
1452 top.c (execute_command_to_ui_file): New function, mostly a copy
1453 of execute_command_to_string.
1454 (execute_command_to_string): Implement by calling
1455 execute_command_to_ui_file.
1457 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1459 * top.h (saved_command_line): Remove declaration.
1460 * top.c (previous_saved_command_line, previous_repeat_arguments):
1462 (saved_command_line): Make static, define together with other
1464 (dont_repeat): Clear repeat_arguments.
1465 (repeat_previous, get_saved_command_line, save_command_line):
1467 (gdb_init): Initialize saved_command_line
1468 and previous_saved_command_line.
1469 * main.c (captured_main_1): Remove saved_command_line initialization.
1470 * event-top.c (handle_line_of_input): Update to use
1471 the new 'repeat' related functions instead of direct access to
1473 * command.h (repeat_previous, get_saved_command_line,
1474 save_command_line): New declarations.
1475 (dont_repeat): Add comment.
1477 2019-05-30 Tom Tromey <tromey@adacore.com>
1479 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
1481 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
1483 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
1486 * completer.c (complete): Initialize variable word.
1488 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
1490 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
1491 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
1492 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
1493 'body' is NULL to the outter 'if', protecting the '!is_define'
1496 2019-05-29 Tom Tromey <tromey@adacore.com>
1498 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
1499 (dwarf_unknown): New function.
1500 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
1501 (dwarf_type_encoding_name): Use dwarf_unknown.
1503 2019-05-29 Tom Tromey <tromey@adacore.com>
1506 * cp-valprint.c (cp_print_value_fields): Call
1507 cp_print_static_field inside "try".
1509 2019-05-29 Tom Tromey <tromey@adacore.com>
1511 * inflow.c (struct terminal_info): Add default operator=.
1512 * configure: Rebuild.
1513 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
1514 -Wdeprecated-copy-dtor, -Wredundant-move.
1516 2019-05-29 Tom Tromey <tromey@adacore.com>
1519 * infcmd.c (print_return_value_1): Handle finish_print
1521 (show_print_finish): New function.
1522 (_initialize_infcmd): Add "set/show print finish" commands.
1523 * valprint.c (user_print_options): Initialize new member.
1524 * valprint.h (struct value_print_options) <finish_print>: New
1527 2019-05-28 Tom Tromey <tromey@adacore.com>
1529 * ada-lang.c (ada_remove_Xbn_suffix)
1530 (find_old_style_renaming_symbol)
1531 (parse_old_style_renaming): Remove.
1532 (ada_find_renaming_symbol): Don't call
1533 find_old_style_renaming_symbol.
1534 (ada_is_renaming_symbol): Rename from
1535 ada_find_renaming_symbol. Remove "block" parameter. Return
1537 (ada_read_var_value): Update and simplify.
1538 * ada-exp.y (write_var_or_type): Remove old code.
1540 2019-05-28 Alan Hayward <alan.hayward@arm.com>
1542 * event-top.c: Remove include comment.
1543 * inflow.c (class scoped_ignore_sigttou): Move from here...
1544 * inflow.h (class scoped_ignore_sigttou): ...to here.
1545 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
1546 * top.c: Remove include comment.
1548 2019-05-27 Tom Tromey <tom@tromey.com>
1552 2019-05-22 Tom Tromey <tromey@adacore.com>
1554 * target.c (target_follow_exec): Constify parameter.
1555 * target-delegates.c: Rebuild.
1556 * remote.c (remote_target::follow_exec): Constify parameter.
1557 * infrun.c (follow_exec): Constify parameter.
1558 * target.h (struct target_ops) <follow_exec>: Constify parameter.
1559 (target_follow_exec): Likewise.
1561 2019-05-22 Alan Hayward <alan.hayward@arm.com>
1563 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
1564 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
1566 2019-05-22 Alan Hayward <alan.hayward@arm.com>
1568 * NEWS: Add debugredirect and testsuite sections.
1570 2019-05-22 Simon Cook <simon.cook@embecosm.com>
1572 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
1573 target descriptions using exclusively floating point register name
1576 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1579 * f-lang.c (build_fortran_types): Handle the case where
1580 gdbarch_floatformat_for_type returns a nullptr.
1582 2019-05-21 Tom de Vries <tdevries@suse.de>
1585 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
1587 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1590 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
1592 * i386-tdep.c (i386_floatformat_for_type): Use
1593 floatformats_ia64_quad for the 16-byte floating point component
1594 within a fortran 32-byte complex number.
1596 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1598 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
1599 delete default constructor.
1600 (find_partial_die): Update to return const struct.
1601 (partial_die_parent_scope): Move variable declaration into scope
1602 of its use and change its type to auto.
1603 (guess_partial_die_structure_name): Likewise.
1604 (partial_die_info::fixup): Likewise.
1606 2019-05-17 Tom Tromey <tromey@adacore.com>
1608 * source.c (find_and_open_source): Remove cast.
1610 2019-05-17 Tom Tromey <tromey@adacore.com>
1612 * annotate.c (annotate_source): Make "filename" const.
1613 * annotate.h (annotate_source): Use const.
1615 2019-05-17 Alan Hayward <alan.hayward@arm.com>
1617 * disasm.c (set_disassembler_options): Send errors to stderr.
1619 2019-05-17 Alan Hayward <alan.hayward@arm.com>
1621 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
1622 (cli_interp_base::set_logging): Check debug_redirect.
1623 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
1624 * cli/cli-logging.c (debug_redirect): Add static variable.
1625 (pop_output_files): Add default param.
1626 (handle_redirections): Print debug setting.
1627 (show_logging_command): Likewise.
1628 (_initialize_cli_logging): Add debugredirect command.
1629 * interps.c (current_interp_set_logging): Add debug_redirect
1631 * interps.h (set_logging): Add debug_redirect parameter.
1632 (current_interp_set_logging): Likewise.
1633 * mi/mi-common.h: Likewise.
1634 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
1636 2019-05-17 Alan Hayward <alan.hayward@arm.com>
1637 Tom Tromey <tromey@adacore.com>
1639 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
1641 * cli/cli-interp.h (make_logging_output): Remove declaration.
1642 * cli/cli-logging.c (make_logging_output): Remove function.
1643 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
1645 * ui-file.c (tee_file::tee_file): Remove bools.
1646 (tee_file::~tee_file): Remove deletes.
1647 * ui-file.h (tee_file): Remove bools.
1649 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
1651 * mi/mi-cmds.h (mi_cmd_complete): New function.
1652 * mi/mi-main.c (mi_cmd_complete): Likewise.
1653 * mi/mi-cmds.c: Define new MI command -complete.
1654 * NEWS: Mention new -complete command.
1656 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
1658 * completer.h (complete): New function.
1659 * completer.c (complete): Likewise.
1660 * cli/cli-cmds.c: (complete_command): Update to use new complete()
1661 function defined in completer.h.
1663 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
1665 * MAINTAINERS (Write After Approval): Add myself.
1667 2019-05-17 Tom de Vries <tdevries@suse.de>
1670 * dwarf2read.c (struct cu_partial_die_info): New struct.
1671 (find_partial_die): Return cu_partial_die_info.
1672 (partial_die_parent_scope, guess_partial_die_structure_name)
1673 (partial_die_info::fixup): Handle new return type of find_partial_die.
1675 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1677 * stap-probe.c (stap_parse_register_operand): Make "regname" an
1678 "std::string", simplifying the algorithm.
1680 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1682 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
1683 (stap_static_probe_ops::get_probes): Likewise.
1685 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1687 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
1688 '-')" and "else if".
1689 (stap_parse_single_operand): Join checks for
1690 "gdbarch_stap_parse_special_token_p" and
1691 "gdbarch_stap_parse_special_token" in the same "if" statement.
1692 Invert check when verifying for operation on register
1695 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1697 * stap-probe.c (stap_get_opcode): Update comment.
1698 (stap_get_expected_argument_type): Likewise.
1699 (handle_stap_probe): Likewise.
1701 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1703 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
1704 return type to 'bool'. Adjust comment. Use 'bool' when
1706 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1707 * stap-probe.c (stap_parse_argument_1): Likewise.
1708 (stap_is_operator): Likewise.
1709 (stap_is_generic_prefix): Likewise.
1710 (stap_is_register_prefix): Likewise.
1711 (stap_is_register_indirection_prefix): Likewise.
1712 (stap_is_integer_prefix): Likewise.
1713 (stap_generic_check_suffix): Likewise.
1714 (stap_check_integer_suffix): Likewise.
1715 (stap_check_register_suffix): Likewise.
1716 (stap_check_register_indirection_suffix): Likewise.
1717 (stap_parse_register_operand): Likewise.
1718 (stap_parse_single_operand): Likewise.
1719 (stap_parse_argument_1): Likewise.
1720 (stap_probe::get_argument_count): Likewise.
1721 (stap_is_operator): Likewise.
1723 2019-05-16 Tom Tromey <tromey@adacore.com>
1725 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
1728 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
1730 * linux-thread-db.c (try_thread_db_load_1): Change return type
1732 (try_thread_db_load): Likewise.
1733 (try_thread_db_load_from_pdir_1): Likewise.
1734 (try_thread_db_load_from_pdir): Likewise.
1735 (try_thread_db_load_from_sdir): Likewise.
1736 (try_thread_db_load_from_dir): Likewise.
1737 (thread_db_load_search): Likewise.
1738 (has_libpthread): Likewise.
1739 (thread_db_load): Likewise.
1741 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
1743 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
1744 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
1745 NULL, and complain/return if that's the case.
1747 2019-05-15 John Darrington <john@darrington.wattle.id.au>
1749 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
1750 (advance, posn, abstract_read_memory): New functions.
1751 [struct mem_read_abstraction]: New struct.
1752 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
1754 2019-05-14 Tom Tromey <tromey@adacore.com>
1756 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
1757 value is not lval_memory.
1759 2019-05-14 Tom Tromey <tromey@adacore.com>
1761 * solib.c (info_sharedlibrary_command): Style the file name.
1763 2019-05-14 Alan Hayward <alan.hayward@arm.com>
1765 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
1766 (aarch64_vnv_type): Likewise.
1767 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
1768 * common/tdesc.c: Likewise.
1769 * common/tdesc.h (enum tdesc_type_kind): Likewise.
1770 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1771 * features/aarch64-fpu.xml: Add ieee half view.
1772 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
1773 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
1774 * gdbtypes.h (struct builtin_type): Likewise.
1775 (struct objfile_type): Likewise.
1777 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
1779 * language.c (language_sniff_from_mangled_name): Fix "langauge"
1781 * location.h (string_to_event_location): Likewise.
1783 2019-05-11 Joel Brobecker <brobecker@adacore.com>
1787 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
1789 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
1790 New variable declaration.
1791 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
1793 (print_one_breakpoint): Use ui_out::test_flags and new global
1794 variable to compute use_fixed_output.
1795 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
1797 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
1798 (mi_multi_location_breakpoint_output_fixed): Remove.
1799 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
1801 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
1802 fix_multi_location_breakpoint_output flag if version >= 3.
1803 * ui-out.h (enum ui_out_flag)
1804 <fix_multi_location_breakpoint_output>: New enumerator.
1806 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
1808 * contrib/cc-with-tweaks.sh: Validate dwz's work.
1810 2019-05-10 Tom Tromey <tromey@adacore.com>
1812 * ada-lang.c (catch_ada_completer): New function.
1813 (_initialize_ada_language): Use it.
1815 2019-05-10 Tom Tromey <tromey@adacore.com>
1817 * thread.c (print_thread_info): Make "requested_threads" const.
1818 * gdbthread.h (print_thread_info): Make "requested_threads"
1820 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
1821 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
1823 2019-05-08 Tom Tromey <tom@tromey.com>
1825 * gdbtypes.c (objfile_type_data): Change type.
1826 (objfile_type, _initialize_gdbtypes): Update.
1828 2019-05-08 Tom Tromey <tom@tromey.com>
1830 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
1831 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
1832 (_initialize_dwarf2_frame): Update.
1834 2019-05-08 Tom Tromey <tom@tromey.com>
1836 * objc-lang.c (objc_objfile_data): Change type.
1837 (find_methods): Update.
1838 (_initialize_objc_lang): Remove.
1840 2019-05-08 Tom Tromey <tom@tromey.com>
1842 * stabsread.c (rs6000_builtin_type_data): Change type.
1843 (rs6000_builtin_type, _initialize_stabsread): Update.
1845 2019-05-08 Tom Tromey <tom@tromey.com>
1847 * mips-tdep.c (mips_pdr_data): Remove.
1848 (_initialize_mips_tdep): Update.
1850 2019-05-08 Tom Tromey <tom@tromey.com>
1852 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
1853 (hppa_init_objfile_priv_data, read_unwind_info)
1854 (find_unwind_entry, _initialize_hppa_tdep): Update.
1856 2019-05-08 Tom Tromey <tom@tromey.com>
1858 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
1859 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
1861 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
1863 2019-05-08 Tom Tromey <tom@tromey.com>
1865 * mdebugread.c (basic_type_data): Change type.
1866 (basic_type, _initialize_mdebugread): Update.
1868 2019-05-08 Tom Tromey <tom@tromey.com>
1870 * common/gdb_unique_ptr.h (struct noop_deleter): New.
1872 2019-05-08 Tom Tromey <tom@tromey.com>
1874 * nto-tdep.c (nto_inferior_data_reg): Change type.
1875 (nto_inferior_data): Update.
1876 (nto_inferior_data_cleanup, nto_new_inferior_data)
1877 (_initialize_nto_tdep): Remove.
1878 * nto-tdep.h (struct nto_inferior_data): Add initializers.
1880 2019-05-08 Tom Tromey <tom@tromey.com>
1882 * ada-lang.c (struct ada_inferior_data): Add initializers.
1883 (ada_inferior_data): Change type.
1884 (ada_inferior_data_cleanup): Remove.
1885 (get_ada_inferior_data, ada_inferior_exit)
1886 (struct ada_pspace_data): Add initializers, destructor.
1887 (ada_pspace_data_handle): Change type.
1888 (get_ada_pspace_data): Update.
1889 (ada_pspace_data_cleanup): Remove.
1891 2019-05-08 Tom Tromey <tom@tromey.com>
1893 * coffread.c (struct coff_symfile_info): Add initializers.
1894 (coff_objfile_data_key): Move lower. Change type.
1895 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
1897 (coff_free_info): Remove.
1899 2019-05-08 Tom Tromey <tom@tromey.com>
1901 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
1902 (fbsd_pspace_data_handle): Move lower. Change type.
1903 (get_fbsd_pspace_data): Update.
1904 (fbsd_pspace_data_cleanup): Remove.
1905 (_initialize_fbsd_tdep): Update.
1907 2019-05-08 Tom Tromey <tom@tromey.com>
1909 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
1910 (get_ada_tasks_pspace_data): Update.
1911 (ada_tasks_pspace_data_cleanup): Remove.
1912 (_initialize_tasks): Update.
1913 (ada_tasks_inferior_data_handle): Change type.
1914 (get_ada_tasks_inferior_data): Update.
1915 (ada_tasks_inferior_data_cleanup): Remove.
1916 (struct ada_tasks_pspace_data): Add initializers.
1918 2019-05-08 Tom Tromey <tom@tromey.com>
1920 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
1921 * symfile-debug.c (debug_sym_get_probes): Change type.
1922 * stap-probe.c (handle_stap_probe):
1923 (stap_static_probe_ops::get_probes): Change type.
1924 * probe.h (class static_probe_ops) <get_probes>: Change type.
1925 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
1926 (parse_probes_in_pspace): Update.
1927 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
1929 (any_static_probe_ops::get_probes): Change type.
1930 * elfread.c (elfread_data): New typedef.
1931 (probe_key): Change type.
1932 (elf_get_probes): Likewise. Update.
1933 (probe_key_free): Remove.
1934 (_initialize_elfread): Update.
1935 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
1937 (dtrace_process_dof_probe, dtrace_process_dof)
1938 (dtrace_static_probe_ops::get_probe): Change type.
1940 2019-05-08 Tom Tromey <tom@tromey.com>
1942 * xcoffread.c (struct xcoff_symfile_info): Rename from
1943 coff_symfile_info. Add initializers.
1944 (xcoff_objfile_data_key): Move lower. Change type.
1945 (XCOFF_DATA): Rewrite.
1946 (xcoff_free_info): Remove.
1947 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
1948 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
1949 (xcoff_initial_scan): Update.
1951 2019-05-08 Tom Tromey <tom@tromey.com>
1953 * solib-svr4.c (struct svr4_info): Add initializers and
1955 <probes_table>: Now an htab_up.
1956 (solib_svr4_pspace_data): Change type.
1957 (free_probes_table): Simplify.
1958 (~svr4_info): Rename from svr4_pspace_data_cleanup.
1959 (get_svr4_info, probes_table_htab_remove_objfile_probes)
1960 (probes_table_remove_objfile_probes, register_solib_event_probe)
1961 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
1962 (_initialize_svr4_solib): Update.
1964 2019-05-08 Tom Tromey <tom@tromey.com>
1966 * remote.c (remote_pspace_data): Change type.
1967 (remote_pspace_data_cleanup): Remove.
1968 (get_remote_exec_file, set_pspace_remote_exec_file)
1969 (_initialize_remote): Update.
1971 2019-05-08 Tom Tromey <tom@tromey.com>
1973 * breakpoint.c (breakpoint_objfile_key): Change type.
1974 (get_breakpoint_objfile_data): Update.
1975 (free_breakpoint_objfile_data): Remove.
1976 (_initialize_breakpoint): Update.
1978 2019-05-08 Tom Tromey <tom@tromey.com>
1980 * linux-tdep.c (struct linux_info): Add initializers.
1981 (linux_inferior_data): Move. Change type.
1982 (invalidate_linux_cache_inf): Update.
1983 (linux_inferior_data_cleanup): Remove.
1984 (get_linux_inferior_data, _initialize_linux_tdep): Update.
1986 2019-05-08 Tom Tromey <tom@tromey.com>
1988 * auxv.c (auxv_inferior_data): Move. Change type.
1989 (auxv_inferior_data_cleanup): Remove.
1990 (invalidate_auxv_cache_inf): Rewrite.
1991 (get_auxv_inferior_data, _initialize_auxv): Update.
1993 2019-05-08 Tom Tromey <tom@tromey.com>
1995 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
1996 (symfile_debug_objfile_data_key): Change type.
1997 (symfile_debug_installed, debug_qf_has_symbols)
1998 (debug_qf_find_last_source_symtab)
1999 (debug_qf_forget_cached_source_info)
2000 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
2001 (debug_qf_print_stats, debug_qf_dump)
2002 (debug_qf_expand_symtabs_for_function)
2003 (debug_qf_expand_all_symtabs)
2004 (debug_qf_expand_symtabs_with_fullname)
2005 (debug_qf_map_matching_symbols)
2006 (debug_qf_expand_symtabs_matching)
2007 (debug_qf_find_pc_sect_compunit_symtab)
2008 (debug_qf_map_symbol_filenames)
2009 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
2010 (debug_sym_new_init, debug_sym_init, debug_sym_read)
2011 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
2012 (debug_sym_read_linetable, debug_sym_relocate): Update.
2013 (symfile_debug_free_objfile): Remove.
2014 (install_symfile_debug_logging, _initialize_symfile_debug):
2017 2019-05-08 Tom Tromey <tom@tromey.com>
2019 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
2020 allocate_on_obstack.
2021 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
2022 (get_dwarf2_per_objfile): Update.
2023 (set_dwarf2_per_objfile): Remove.
2024 (dwarf2_has_info, dwarf2_get_section_info): Update.
2025 (dwarf2_free_objfile): Remove.
2026 (_initialize_dwarf2_read): Update.
2028 2019-05-08 Tom Tromey <tom@tromey.com>
2030 * auto-load.c (struct auto_load_pspace_info): Add destructor and
2032 <unsupported_script_warning_printed,
2033 script_not_found_warning_printed>: Now bool.
2034 (auto_load_pspace_data): Change type.
2035 (~auto_load_pspace_info): Rename from
2036 auto_load_pspace_data_cleanup.
2037 (get_auto_load_pspace_data, init_loaded_scripts_info)
2038 (clear_section_scripts, maybe_print_unsupported_script_warning)
2039 (maybe_print_script_not_found_warning, _initialize_auto_load):
2042 2019-05-08 Tom Tromey <tom@tromey.com>
2044 * objfiles.c (objfile_pspace_info): Add destructor and
2046 (objfiles_pspace_data): Change type.
2047 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
2048 (get_objfile_pspace_data): Update.
2049 (objfiles_bfd_data): Change type.
2050 (get_objfile_bfd_data): Update.
2051 (objfile_bfd_data_free, _initialize_objfiles): Remove.
2053 2019-05-08 Tom Tromey <tom@tromey.com>
2055 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
2057 (get_catch_syscall_inferior_data): Update.
2058 (catch_syscall_inferior_data_cleanup): Remove.
2059 (_initialize_break_catch_syscall): Update.
2061 2019-05-08 Tom Tromey <tom@tromey.com>
2063 * inflow.c (struct terminal_info): Add destructor and
2065 (inflow_inferior_data): Change type.
2066 (~terminal_info): Rename from inflow_inferior_data_cleanup.
2067 (get_inflow_inferior_data, inflow_inferior_exit)
2068 (swap_terminal_info, _initialize_inflow): Update.
2070 2019-05-08 Tom Tromey <tom@tromey.com>
2072 * target-dcache.c (target_dcache_cleanup): Remove.
2073 (target_dcache_aspace_key): Change type.
2074 (target_dcache_init_p, target_dcache_invalidate)
2075 (target_dcache_get, target_dcache_get_or_init)
2076 (_initialize_target_dcache): Update.
2077 * dcache.h (struct dcache_deleter): New.
2079 2019-05-08 Tom Tromey <tom@tromey.com>
2081 * symtab.c (struct symbol_cache): Add destructor and
2083 (symbol_cache_key): Move. Change type.
2084 (make_symbol_cache, free_symbol_cache): Remove.
2085 (get_symbol_cache): Update.
2086 (symbol_cache_cleanup): Remove.
2087 (ALL_PSPACES, symbol_cache_flush)
2088 (maintenance_print_symbol_cache)
2089 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
2092 2019-05-08 Tom Tromey <tom@tromey.com>
2094 * symtab.c (struct main_info): Add destructor and initializers.
2095 (main_progspace_key): Move. Change type.
2096 (get_main_info): Update.
2097 (main_info_cleanup): Remove.
2098 (_initialize_symtab): Update.
2100 2019-05-08 Tom Tromey <tom@tromey.com>
2102 * registry.h (DECLARE_REGISTRY): Define the _key class.
2104 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2106 * NEWS: Merge two 'New commands' sections.
2108 2019-05-08 Joel Brobecker <brobecker@adacore.com>
2110 * ada-valprint.c (ada_val_print_gnat_array): Remove language
2111 parameter and use Ada language definition instead.
2112 (ada_val_print_ptr): Remove unused language parameter.
2113 (ada_val_print_num): Remove language parameter and use Ada language
2115 (ada_val_print_enum, ada_val_print_flt): Remove unused language
2117 (ada_val_print_struct_union, ada_val_print_ref): Remove language
2118 parameter and use Ada language definition instead.
2119 (ada_val_print_1): Update all ada_val_print_xxx calls.
2120 Remove language parameter.
2121 (ada_val_print): Update ada_val_print_1 call.
2123 2019-05-08 Tom Tromey <tromey@adacore.com>
2125 * remote.c (remote_hw_watchpoint_limit)
2126 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
2129 2019-05-08 Tom Tromey <tromey@adacore.com>
2131 * maint.c (_initialize_maint_cmds): Move initialization code to
2133 (watchdog, show_watchdog): Move to remote.c.
2134 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
2136 (_initialize_remote): Move initialization code from maint.c.
2137 * defs.h (watchdog): Don't declare.
2139 2019-05-08 Tom Tromey <tromey@adacore.com>
2141 * tui/tui-interp.c: Include main.h.
2142 * interps.c: Include main.h.
2143 * main.h (interpreter_p): Declare.
2144 * defs.h (interpreter_p): Don't declare.
2146 2019-05-08 Tom Tromey <tromey@adacore.com>
2148 * dwarf2loc.c: Include dwarf2read.h.
2149 * defs.h (read_unsigned_leb128): Don't declare.
2150 * dwarf2read.h (read_unsigned_leb128): Declare.
2152 2019-05-08 Tom Tromey <tromey@adacore.com>
2154 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
2157 2019-05-08 Tom Tromey <tromey@adacore.com>
2159 * utils.c (fputs_maybe_filtered): Reset style after paging, even
2160 when no wrap column is set.
2162 2019-05-08 Tom Tromey <tromey@adacore.com>
2164 * c-lang.c (c_get_string): Handle non-C-style arrays.
2166 2019-05-08 Tom Tromey <tromey@adacore.com>
2168 * typeprint.c (print_offset_data::update): Print the bit offset,
2169 not the number of bits remaining.
2171 2019-05-08 Tom Tromey <tromey@adacore.com>
2173 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
2174 padding at end of comment.
2176 2019-05-08 Tom Tromey <tromey@adacore.com>
2178 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
2181 2019-05-06 Tom Tromey <tom@tromey.com>
2183 * common/scoped_mmap.c: Include common-defs.h.
2184 * common/scoped_mmap.h: Don't include config.h.
2186 2019-05-04 Tom Tromey <tom@tromey.com>
2188 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
2189 (struct aarch64_call_info): Add initializers.
2190 <si>: Now a std::vector.
2191 (pass_on_stack, aarch64_push_dummy_call): Update.
2193 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
2194 Tom Tromey <tom@tromey.com>
2196 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
2197 (ppc_threads): Now a std::vector. Now static.
2198 (hwdebug_find_thread_points_by_tid)
2199 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
2202 2019-05-04 Tom Tromey <tom@tromey.com>
2204 * arc-tdep.c (arc_tdesc_init): Return bool.
2206 2019-05-04 Tom Tromey <tom@tromey.com>
2208 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
2209 Use gdb_assert_not_reached.
2211 2019-05-04 Tom Tromey <tom@tromey.com>
2213 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
2216 2019-05-04 Tom Tromey <tom@tromey.com>
2218 * arc-tdep.c (arc_tdesc_init): Use bool.
2220 2019-05-04 Tom Tromey <tom@tromey.com>
2222 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
2224 2019-05-04 Tom Tromey <tom@tromey.com>
2226 * cli/cli-cmds.c (valid_command_p): Return bool.
2228 2019-05-04 Tom Tromey <tom@tromey.com>
2230 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
2231 * command.h (valid_user_defined_cmd_name_p): Channge return type.
2233 2019-05-04 Raul Tambre <raul@tambre.ee>
2235 * python/lib/gdb/prompt.py (_ExtendedPrompt)
2236 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
2237 operator for comparison.
2239 2019-05-04 Tom Tromey <tom@tromey.com>
2241 * psymtab.c (psymbol_name_matches, match_partial_symbol)
2242 (lookup_partial_symbol, print_partial_symbols)
2243 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
2244 (psymbol_compare): Update.
2245 (add_psymbol_to_bcache): Clear the entire psymbol.
2246 (maintenance_check_psymtabs): Update.
2247 * psympriv.h (struct partial_symbol): Don't derive from
2248 general_symbol_info.
2249 <obj_section, unrelocated_address, address,
2250 set_unrelocated_address>: Update.
2251 <ginfo>: New member.
2252 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2253 (debug_names::write_psymbols): Update.
2255 2019-05-04 Tom de Vries <tdevries@suse.de>
2257 * contrib/cc-with-tweaks.sh: Support -n arg.
2259 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2261 * corelow.c (core_target::detach): Ensure frame cache and
2262 register caches are cleared.
2263 inferior.c (exit_inferior_1): Likewise.
2265 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
2266 Tom Tromey <tom@tromey.com>
2268 * dictionary.c (collate_pending_symbols_by_language): Remove
2269 "struct" from foreach.
2270 * symtab.c (lookup_global_symbol_from_objfile)
2271 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
2273 * ser-tcp.c (net_open): Remove "struct" from foreach.
2274 * objfiles.c (objfile_relocate, objfile_rebase)
2275 (objfile_has_symbols): Remove "struct" from foreach.
2276 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
2278 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
2280 * darwin-nat.c (thread_info_from_private_thread_info): Remove
2281 "struct" from foreach.
2282 * ada-lang.c (create_excep_cond_exprs)
2283 (ada_exception_catchpoint_cond_string): Remove "struct" from
2286 2019-05-03 Tom Tromey <tromey@adacore.com>
2288 * ada-exp.y (convert_char_literal): Check suffix of each
2291 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
2294 * ada-exp.y (yywrap): Don't define.
2295 * ada-lex.l (%option): Add noyywrap
2298 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2300 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
2301 _WIN32_WINNT to the XP level, unless already defined to a higher
2304 * unittests/parse-connection-spec-selftests.c:
2306 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
2309 * symfile.c (find_separate_debug_file): Remove colon from the
2310 drive spec of DOS/Windows file names of the target, so that the
2311 file name produced from DEBUGDIR and the target's directory will
2312 be valid on DOS/Windows systems.
2314 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
2316 * rust-lang.c (val_print_struct): Handle printing structures
2319 2019-05-02 Tom Tromey <tromey@adacore.com>
2321 * valarith.c (_initialize_valarith): Remove.
2323 2019-05-01 Tom Tromey <tromey@adacore.com>
2325 * ada-lang.c (ada_value_primitive_field): Treat more fields as
2328 2019-05-01 Tom Tromey <tromey@adacore.com>
2330 * ada-lang.c (ada_value_assign): Correctly compute starting offset
2331 for big-endian copies.
2333 2019-04-30 Ali Tamur <tamur@google.com>
2334 * gdb/dwarf2read.c (read_3_bytes): New declaration.
2335 (read_attribute_value): Added DW_FORM_strx1-4 cases.
2336 (read_3_bytes): New function.
2338 2019-04-30 Joel Brobecker <brobecker@adacore.com>
2340 * windows-nat.c (main_thread_id): Delete.
2341 (handle_output_debug_string): Replace main_thread_id by
2342 current_event.dwThreadId.
2343 (fake_create_process): Likewise.
2344 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
2345 Do not set main_thread_id.
2346 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
2347 current_event.dwThreadId.
2348 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
2350 2019-04-30 Joel Brobecker <brobecker@adacore.com>
2352 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
2353 Use current_event.dwThreadId instead of main_thread_id.
2355 2019-04-30 Tom Tromey <tromey@adacore.com>
2357 * ada-lang.c (ada_lookup_simple_minsyms): New function.
2358 (create_excep_cond_exprs): Iterate over program spaces.
2359 (ada_exception_catchpoint_cond_string): Examine all minimal
2360 symbols for exception types.
2362 2019-04-30 Tom Tromey <tromey@adacore.com>
2365 * dwarf2read.c (process_structure_scope): Handle case where type
2366 has template parameters but no symbol was created.
2368 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2369 Chris January <chris.january@arm.com>
2371 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
2373 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
2375 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2377 * f-typeprint.c (f_print_type): Update rules for printing
2379 (f_type_print_varspec_suffix): Likewise.
2381 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2382 Chris January <chris.january@arm.com>
2384 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
2387 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2389 * f-lang.c (build_fortran_types): Change name of void type to
2391 * f-typeprint.c (f_type_print_base): Print the name of the void
2392 type, rather than a fixed string.
2393 * f-valprint.c (f_decorations): Use lower case void string.
2395 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2396 Chris January <chris.january@arm.com>
2398 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
2401 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2402 Chris January <chris.january@arm.com>
2403 David Lecomber <david.lecomber@arm.com>
2405 * f-exp.y (BINOP_INTRINSIC): New token.
2406 (exp): New parser rule handling BINOP_INTRINSIC.
2407 (f77_keywords): Add new builtin procedures.
2408 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
2409 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
2410 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
2411 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
2412 (print_unop_subexp_f): New function.
2413 (print_binop_subexp_f): New function.
2414 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
2415 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
2416 (dump_subexp_body_f): Likewise.
2417 (operator_check_f): Likewise.
2418 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
2419 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
2421 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2423 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
2425 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
2426 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
2427 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
2428 (operator_length_f): New fuction.
2429 (print_subexp_f): New function.
2430 (op_name_f): New function.
2431 (dump_subexp_body_f): New function.
2432 (operator_check_f): New function.
2433 (exp_descriptor_f): Replace standard expression handling functions
2435 * gdb/fortran-operator.def: New file.
2436 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
2437 * gdb/std-operator.def: Remove UNOP_KIND.
2439 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2441 * std-operator.def: Remove unbalanced, stray double quote
2444 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2445 Chris January <chris.january@arm.com>
2446 Daniel Everett <daniel.everett@arm.com>
2447 Nick Forrington <nick.forrington@arm.com>
2448 Richard Bunt <richard.bunt@arm.com>
2450 * cp-valprint.c (cp_print_value_fields): Allow an additional level
2451 of depth when printing anonymous structs or unions.
2452 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2453 Don't print either the top-level value, or the children if the
2454 max-depth is exceeded.
2455 (ppscm_print_children): When printing the key of a map, allow one
2456 extra level of depth.
2457 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
2458 print either the top-level value, or the children if the max-depth
2460 (print_children): When printing the key of a map, allow one extra
2462 * python/py-value.c (valpy_format_string): Add max_depth keyword.
2463 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
2464 (user_print_options): Initialise max_depth field.
2465 (val_print_scalar_or_string_type_p): New function.
2466 (val_print): Check to see if the max depth has been reached.
2467 (val_print_check_max_depth): Define new function.
2468 (show_print_max_depth): New function.
2469 (_initialize_valprint): Add 'print max-depth' option.
2470 * valprint.h (struct value_print_options) <max_depth>: New field.
2471 (val_print_check_max_depth): Declare new function.
2472 * NEWS: Document new feature.
2474 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2476 * ada-lang.c (ada_language_defn): Initialise new field.
2477 * c-lang.c (c_is_string_type_p): New function.
2478 (c_language_defn): Initialise new field.
2479 (cplus_language_defn): Initialise new field.
2480 (asm_language_defn): Initialise new field.
2481 (minimal_language_defn): Initialise new field.
2482 * c-lang.h (c_is_string_type_p): Declare new function.
2483 * d-lang.c (d_language_defn): Initialise new field.
2484 * f-lang.c (f_is_string_type_p): New function.
2485 (f_language_defn): Initialise new field.
2486 * go-lang.c (go_is_string_type_p): New function.
2487 (go_language_defn): Initialise new field.
2488 * language.c (default_is_string_type_p): New function.
2489 (unknown_language_defn): Initialise new field.
2490 (auto_language_defn): Initialise new field.
2491 * language.h (struct language_defn) <la_is_string_type_p>: New
2493 (default_is_string_type_p): Declare new function.
2494 * m2-lang.c (m2_language_defn): Initialise new field.
2495 * objc-lang.c (objc_language_defn): Initialise new field.
2496 * opencl-lang.c (opencl_language_defn): Initialise new field.
2497 * p-lang.c (pascal_is_string_type_p): New function.
2498 (pascal_language_defn): Initialise new field.
2499 * rust-lang.c (rust_is_string_type_p): New function.
2500 (rust_language_defn): Initialise new field.
2502 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2504 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
2506 * ada-lang.c (ada_language_defn): Initialise new field.
2507 * c-lang.c (c_language_defn): Likewise.
2508 (cplus_language_defn): Likewise.
2509 (asm_language_defn): Likewise.
2510 (minimal_language_defn): Likewise.
2511 * d-lang.c (d_language_defn): Likewise.
2512 * f-lang.c (f_language_defn): Likewise.
2513 * go-lang.c (go_language_defn): Likewise.
2514 * language.c (unknown_language_defn): Likewise.
2515 (auto_language_defn): Likewise.
2516 * m2-lang.c (m2_language_defn): Likewise.
2517 * objc-lang.c (objc_language_defn): Likewise.
2518 * opencl-lang.c (opencl_language_defn): Likewise.
2519 * p-lang.c (pascal_language_defn): Likewise.
2520 * rust-lang.c (rust_language_defn): Likewise.
2522 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2524 * ada-lang.c (ada_is_character_type): Change return type to bool.
2525 (ada_is_string_type): Likewise.
2526 * ada-lang.h (ada_is_character_type): Update declaration
2527 (ada_is_string_type): Likewise.
2529 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2531 Support style in 'frame|thread apply'
2533 * gdbcmd.h (execute_command_to_string): New term_out parameter.
2534 * record.c (record_start, record_stop): Update callers of
2535 execute_command_to_string with false.
2536 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
2537 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
2539 (class string_file): New constructor with term_out parameter.
2540 Override methods term_out and can_emit_style_escape. New member
2542 (class stdio_file): Override can_emit_style_escape.
2543 (class tee_file): Override term_out and can_emit_style_escape.
2544 * utils.h (can_emit_style_escape): Remove.
2545 * utils.c (can_emit_style_escape): Likewise.
2546 Update all callers of can_emit_style_escape (SOMESTREAM) to
2547 SOMESTREAM->can_emit_style_escape.
2548 * source-cache.c (source_cache::get_source_lines): Likewise.
2549 * stack.c (frame_apply_command_count): Call execute_command_to_string
2550 passing the term_out characteristic of the current gdb_stdout.
2551 * thread.c (thr_try_catch_cmd): Likewise.
2552 * top.c (execute_command_to_string): pass term_out parameter
2553 to construct the string_file for the command output.
2554 * ui-file.c (term_cli_styling): New function (most code moved
2555 from utils.c can_emit_style_escape).
2556 (string_file::string_file, string_file::can_emit_style_escape,
2557 stdio_file::can_emit_style_escape, tee_file::term_out,
2558 tee_file::can_emit_style_escape): New functions.
2560 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2562 * NEWS: Mention the new set|show may-call-functions.
2563 * infcall.c (may_call_functions_p): New variable.
2564 (show_may_call_functions_p): New function.
2565 (call_function_by_hand_dummy): Throws an error if not
2567 (_initialize_infcall): Call add_setshow_boolean_cmd for
2570 2019-04-25 Keith Seitz <keiths@redhat.com>
2573 * cp-support.c (inspect_type): Don't attempt substitutions
2574 of symbol with the same name.
2576 2019-04-25 Tom Tromey <tromey@adacore.com>
2579 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
2582 2019-04-25 Tom Tromey <tromey@adacore.com>
2584 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
2586 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
2587 (gdb_xml_parser::parse): Use std::move.
2588 * python/python-internal.h (gdbpy_convert_exception): Take a const
2590 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
2592 * python/py-utils.c (gdbpy_convert_exception): Take a const
2594 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
2596 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2598 * mi/mi-main.c (mi_print_exception): Take a const reference.
2599 * main.c (handle_command_errors): Take a const reference.
2600 * linespec.c (parse_linespec): Use std::move.
2601 * infcall.c (run_inferior_call): Use std::move.
2602 (call_function_by_hand_dummy): Use std::move.
2603 * exec.c (try_open_exec_file): Use std::move.
2604 * exceptions.h (exception_print, exception_fprintf)
2605 (exception_print_same): Update.
2606 * exceptions.c (print_exception, exception_print)
2607 (exception_fprintf, exception_print_same): Change parameters to
2609 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
2610 * common/new-op.c: Use std::move.
2611 * common/common-exceptions.h (struct gdb_exception): Add move
2613 (struct gdb_exception_error, struct gdb_exception_quit, struct
2614 gdb_quit_bad_alloc): Change constructor to move constructor.
2615 (throw_exception): Change parameter to rvalue reference.
2616 * common/common-exceptions.c (throw_exception): Take rvalue
2618 * cli/cli-interp.c (safe_execute_command): Use std::move.
2619 * breakpoint.c (insert_bp_location, location_to_sals): Use
2622 2019-04-25 Tom Tromey <tromey@adacore.com>
2624 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
2625 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
2626 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
2627 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
2628 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
2629 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
2630 guile/scm-value.c: Use unpack.
2631 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
2632 gdbscm_gdb_exception.
2633 (gdbscm_throw_gdb_exception): Likewise.
2634 (struct gdbscm_gdb_exception): New.
2635 (unpack): New function.
2636 (gdbscm_wrap): Use unpack.
2638 2019-04-25 Tom Tromey <tromey@adacore.com>
2640 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
2641 (gdb_rl_callback_handler): Use std::move.
2642 * common/common-exceptions.h (struct gdb_exception): Add move
2643 assignment operator.
2644 (throw_exception_sjlj): Change "exception" to const reference.
2645 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
2646 (throw_exception_sjlj): Change "exception" to const reference.
2648 2019-04-25 Tom Tromey <tromey@adacore.com>
2650 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
2651 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
2652 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
2654 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2656 * mi/mi-interp.c (mi_interp::exec): Update.
2657 * linespec.c (parse_linespec): Update.
2658 * infcall.c (run_inferior_call): Update.
2659 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
2660 * guile/scm-symbol.c (gdbscm_lookup_symbol)
2661 (gdbscm_lookup_global_symbol): Update.
2662 * guile/scm-param.c (gdbscm_parameter_value): Update.
2663 * guile/scm-frame.c (gdbscm_frame_read_register)
2664 (gdbscm_frame_read_var): Update.
2665 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2666 * exec.c (try_open_exec_file): Update.
2667 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
2668 (gdb_rl_callback_handler): Update.
2669 * common/common-exceptions.h (exception_none): Don't declare.
2670 * common/common-exceptions.c (exception_none): Don't define.
2671 (struct catcher) <exception>: Update.
2672 * cli/cli-interp.c (safe_execute_command): Update.
2673 * breakpoint.c (insert_bp_location, location_to_sals): Update.
2675 2019-04-25 Ali Tamur <tamur@google.com>
2677 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
2678 (read_attribute_value): Likewise.
2679 (dwarf2_read_addr_index): Update comment.
2680 (read_str_index): Add DW_FORM_strx.
2681 (dwarf2_string_attr): Likewise.
2682 (dwarf2_const_value_attr): Likewise.
2683 (dump_die_shallow): Likewise.
2684 (dwarf2_fetch_constant_bytes): Likewise.
2685 (skip_form_bytes): Likewise.
2686 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
2688 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2692 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
2693 OFFSET. Verify if current mapping contains an ELF header.
2694 (linux_find_memory_regions_full): Adjust call to
2697 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
2698 Kang Li <kanglictf@gmail.com>
2702 * dwarf2-frame.c (read_initial_length): Be consistent about using
2703 unsigned representation of length.
2704 (decode_frame_entry_1): Likewise. Check for wraparound of
2705 end pointer as well as buffer overflow.
2707 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2709 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
2712 2019-04-24 Tom Tromey <tromey@adacore.com>
2714 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
2716 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2718 * s12z-tdep.c (s12z_unwind_pc): Delete.
2719 (s12z_unwind_sp): Delete.
2720 (s12z_gdbarch_init): Don't register deleted functions with
2723 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2725 * rl78-tdep.c (rl78_unwind_sp): Delete.
2726 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
2728 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2730 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
2731 (xstormy16_unwind_pc): Delete.
2732 (xstormy16_dummy_id): Delete.
2733 (xstormy16_gdbarch_init): Don't register deleted functions with
2736 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2738 * vax-tdep.c (vax_unwind_pc): Delete.
2739 (vax_gdbarch_init): Don't register deleted function with gdbarch.
2741 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2743 * v850-tdep.c (v850_unwind_sp): Delete.
2744 (v850_unwind_pc): Delete.
2745 (v850_dummy_id): Delete.
2746 (v850_gdbarch_init): Don't register deleted functions with
2749 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2751 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
2752 (tilegx_unwind_pc): Delete.
2753 (tilegx_unwind_dummy_id): Delete.
2754 (tilegx_gdbarch_init): Don't register deleted functions with
2757 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2759 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
2760 (tic6x_dummy_id): Delete.
2761 (tic6x_gdbarch_init): Don't register deleted functions with
2764 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2766 * sparc-tdep.c (sparc_unwind_pc): Delete.
2767 (sparc32_gdbarch_init): Don't register deleted function with
2770 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2772 * sh-tdep.c (sh_unwind_sp): Delete.
2773 (sh_unwind_pc): Delete.
2774 (sh_dummy_id): Delete.
2775 (sh_gdbarch_init): Don't register deleted functions with
2778 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2780 * score-tdep.c (score_unwind_sp): Delete.
2781 (score_unwind_pc): Delete.
2782 (score_dummy_id): Delete.
2783 (score_gdbarch_init): Don't register deleted functions with
2786 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2788 * rx-tdep.c (rx_unwind_pc): Delete.
2789 (rx_unwind_sp): Delete.
2790 (rx_dummy_id): Delete.
2791 (rx_gdbarch_init): Don't register deleted functions with
2792 gdbarch. Update comment.
2794 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2796 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
2797 (rs6000_dummy_id): Delete.
2798 (rs6000_gdbarch_init): Don't register deleted functions with
2801 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2803 * or1k-tdep.c (or1k_dummy_id): Delete.
2804 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
2806 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2808 * nios2-tdep.c (nios2_dummy_id): Delete.
2809 (nios2_unwind_sp): Delete.
2810 (nios2_gdbarch_init): Don't register deleted functions with
2813 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2815 * nds32-tdep.c (nds32_dummy_id): Delete.
2816 (nds32_unwind_pc): Delete.
2817 (nds32_unwind_sp): Delete.
2818 (nds32_gdbarch_init): Don't register deleted functions with
2821 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2823 * msp430-tdep.c (msp430_unwind_pc): Delete.
2824 (msp430_unwind_sp): Delete.
2825 (msp430_dummy_id): Delete.
2826 (msp430_gdbarch_init): Don't register deleted functions with
2829 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2831 * moxie-tdep.c (moxie_unwind_sp): Delete.
2832 (moxie_unwind_pc): Delete.
2833 (moxie_dummy_id): Delete.
2834 (moxie_gdbarch_init): Don't register deleted functions with
2837 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2839 * mn10300-tdep.c (mn10300_dummy_id): Delete.
2840 (mn10300_unwind_pc): Delete.
2841 (mn10300_unwind_sp): Delete.
2842 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
2844 (mn10300_frame_unwind_init): Don't register deleted functions with
2847 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2849 * mep-tdep.c (mep_unwind_pc): Delete.
2850 (mep_unwind_sp): Delete.
2851 (mep_dummy_id): Delete.
2852 (mep_gdbarch_init): Don't register deleted functions with
2855 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2857 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
2858 (m68hc11_unwind_sp): Delete.
2859 (m68hc11_gdbarch_init): Don't register deleted functions with
2862 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2864 * m32r-tdep.c (m32r_unwind_sp): Delete.
2865 (m32r_unwind_pc): Delete.
2866 (m32r_dummy_id): Delete.
2867 (m32r_gdbarch_init): Don't register deleted functions with
2870 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2872 * m32c-tdep.c (m32c_unwind_pc): Delete.
2873 (m32c_unwind_sp): Delete.
2874 (m32c_dummy_id): Delete.
2875 (m32c_gdbarch_init): Don't register deleted functions with
2878 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2880 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
2881 (lm32_unwind_pc): Delete.
2882 (lm32_dummy_id): Delete.
2883 (lm32_gdbarch_init): Don't register deleted functions with
2886 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2888 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
2889 (iq2000_unwind_pc): Delete.
2890 (iq2000_dummy_id): Delete.
2891 (iq2000_gdbarch_init): Don't register deleted functions with
2894 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2896 * nds32-tdep.c (nds32_type_align): Delete.
2897 (nds32_push_dummy_call): Use type_align instead.
2899 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2901 * arm-tdep.c (arm_type_align): Only handle vector override case.
2902 (arm_push_dummy_call): Use type_align.
2903 (arm_gdbarch_init): Register arm_type_align gdbarch function.
2905 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2907 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
2909 (pass_on_stack): Use type_align.
2910 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
2913 2019-04-23 Tom Tromey <tromey@adacore.com>
2915 * dwarf2read.c (line_header::file_name_at): Remove unused
2918 2019-04-23 Tom de Vries <tdevries@suse.de>
2921 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
2925 2019-03-27 Ali Tamur <tamur@google.com>
2927 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
2928 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
2929 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
2930 (dwarf_expr_context::get_addr_index): Likewise
2931 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
2932 (symbol_needs_eval_context::get_addr_index): Likewise
2933 (disassemble_dwarf_expression): Add DW_OP_addrx
2934 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
2935 (read_cutu_die_from_dwo): Update comment
2936 (skip_one_die): Add DW_FORM_addrx
2937 (read_attribute_value): Likewise
2938 (var_decode_location): Add DW_OP_addrx
2939 (dwarf2_const_value_attr): Add DW_FORM_addrx
2940 (dump_die_shallow): Likewise
2941 (dwarf2_fetch_constant_bytes): Likewise
2942 (decode_locdesc): Add DW_OP_addrx
2943 (skip_form_bytes): Add DW_FORM_addrx
2945 2019-04-22 Ali Tamur <tamur@google.com>
2947 * MAINTAINERS (Write After Approval): Add self.
2949 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
2951 * solib-svr4.c (get_svr4_info): Add pspace parameter.
2952 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
2953 (open_symbol_file_object): Likewise.
2954 (svr4_default_sos): Add info parameter.
2955 (svr4_read_so_list): Likewise.
2956 (svr4_current_sos_direct): Adjust functions calls to pass down
2958 (svr4_current_sos_1): Add info parameter.
2959 (svr4_current_sos): Call get_svr4_info, pass info down to
2961 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
2963 (svr4_in_dynsym_resolve_code): Pass current_program_space to
2965 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
2967 (probes_table_remove_objfile_probes): Likewise.
2968 (register_solib_event_probe): Add info parameter.
2969 (solist_update_incremental): Pass info parameter down to
2971 (disable_probes_interface): Add info parameter.
2972 (svr4_handle_solib_event): Pass current_program_space to
2973 get_svr4_info. Adjust disable_probes_interface cleanup.
2974 (svr4_create_probe_breakpoints): Add info parameter, pass it
2975 down to register_solib_event_probe.
2976 (svr4_create_solib_event_breakpoints): Add info parameter,
2977 pass it down to svr4_create_probe_breakpoints.
2978 (enable_break): Pass info down to
2979 svr4_create_solib_event_breakpoints.
2980 (svr4_solib_create_inferior_hook): Pass current_program_space to
2982 (svr4_clear_solib): Likewise.
2984 2019-04-22 Pedro Alves <palves@redhat.com>
2986 * solib-svr4.c (svr4_free_objfile_observer): New.
2987 (probe_and_action::objfile): New field.
2988 (probes_table_htab_remove_objfile_probes)
2989 (probes_table_remove_objfile_probes): New functions.
2990 (register_solib_event_probe): Add 'objfile' parameter. Store it
2991 in the new probe_and_action. Don't store the probe in 'lookup'.
2992 (svr4_create_probe_breakpoints): Pass objfile to
2993 register_solib_event_probe.
2994 (_initialize_svr4_solib): Register a free_objfile observer.
2996 2019-04-19 Tom Tromey <tom@tromey.com>
2998 * common/queue.h: Remove.
3000 2019-04-19 Tom Tromey <tom@tromey.com>
3002 * event-loop.c: Don't include "common/queue.h".
3004 2019-04-19 Tom Tromey <tom@tromey.com>
3006 * remote.c (remote_target): Use delete.
3007 * remote-notif.h: Include <list>, not "common/queue.h".
3008 (notif_client_p): Remove typedef.
3009 (remote_notif_state): Add constructor, destructor, initializer.
3010 <notif_queue>: Now a std::list.
3011 (remote_notif_state_xfree): Don't declare.
3012 * remote-notif.c (remote_notif_process, handle_notification)
3013 (remote_notif_state_allocate): Update.
3014 (~remote_notif_state): Rename from remote_notif_state_xfree.
3016 2019-04-19 Tom Tromey <tom@tromey.com>
3018 * symfile.c (reread_symbols): Update.
3019 * objfiles.c (objfile_register_static_link)
3020 (objfile_lookup_static_link): Update
3021 (~objfile) Don't delete static_links.
3022 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
3024 2019-04-19 Tom Tromey <tom@tromey.com>
3026 * type-stack.h (struct type_stack) <insert>: Constify string.
3027 * type-stack.c (type_stack::insert): Constify string.
3028 * gdbtypes.h (lookup_template_type): Update.
3029 (address_space_name_to_int): Update.
3030 * gdbtypes.c (address_space_name_to_int): Make space_identifier
3032 (lookup_template_type): Make name const.
3033 * c-exp.y: Update rules.
3034 (lex_one_token, classify_name, classify_inner_name)
3035 (c_print_token): Update.
3036 * p-exp.y: Update rules.
3038 * f-exp.y: Update rules.
3040 * d-exp.y: Update rules.
3041 (lex_one_token, classify_name, classify_inner_name): Update.
3042 * parse.c (write_dollar_variable, copy_name): Return std::string.
3043 * parser-defs.h (copy_name): Change return type.
3044 * m2-exp.y: Update rules.
3046 * go-exp.y (lex_one_token): Update.
3048 (classify_unsafe_function, classify_packaged_name)
3049 (classify_name, yylex): Update.
3051 2019-04-19 Sergei Trofimovich <siarheit@google.com>
3053 * configure.ac: add --enable-source-highlight switch.
3054 * configure: Regenerate.
3055 * top.c (print_gdb_version): plumb --enable-source-highlight
3056 status to "show configuration".
3058 2019-04-19 Tom Tromey <tromey@adacore.com>
3060 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
3062 (empty_record, ada_template_to_fixed_record_type_1)
3063 (template_to_static_fixed_type)
3064 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
3065 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
3066 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
3069 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
3072 * source.c (print_source_lines_base): Advance "iter" when a
3073 control character is seen.
3075 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3077 * inferior.h (struct infcall_suspend_state_deleter):
3078 Catch exception in destructor to avoid crash.
3080 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3082 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
3083 close to the add_com "shell".
3085 2019-04-18 Tom Tromey <tromey@adacore.com>
3087 * process-stratum-target.h (class process_stratum_target)
3088 <stratum>: Add "final".
3090 2019-04-17 Tom Tromey <tromey@adacore.com>
3092 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
3093 against nullptr before use.
3095 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3097 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
3099 2019-04-17 Jim Wilson <jimw@sifive.com>
3100 Andrew Burgess <andrew.burgess@embecosm.com>
3102 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
3103 code read might fail, assume 4-byte breakpoint in that case.
3105 2019-04-15 Leszek Swirski <leszeks@google.com>
3107 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
3108 rather than a hand-rolled POD check when checking for forced MEMORY
3111 2019-04-15 Alan Hayward <alan.hayward@arm.com>
3113 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
3114 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
3116 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
3117 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
3118 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
3121 2019-04-15 Alan Hayward <alan.hayward@arm.com>
3123 * aarch64-linux-nat.c
3124 (aarch64_linux_nat_target::thread_architecture): Add override.
3125 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
3128 2019-04-15 Alan Hayward <alan.hayward@arm.com>
3130 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
3132 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
3134 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
3135 target types of size 96-bits, add some additional comments, and
3136 check that the builtin type we found was the correct size.
3138 2019-04-12 Eli Zaretskii <eliz@gnu.org>
3140 * utils.c (prompt_for_continue): Don't restore the styling at the
3141 end, as applied_style has the wrong value. This fixes styling in
3142 long lists of file names that are interrupted by the "Continue?"
3145 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
3147 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
3148 * c-lang.c (c_language_defn): Likewise.
3149 (cplus_language_defn): Likewise.
3150 (asm_language_defn): Likewise.
3151 (minimal_language_defn): Likewise.
3152 * d-lang.c (d_language_defn): Likewise.
3153 * f-lang.c (f_language_defn): Likewise.
3154 * go-lang.c (go_language_defn): Likewise.
3155 * language.c (unknown_language_defn): Likewise.
3156 (auto_language_defn): Likewise.
3157 * language.h (struct language_defn): Remove la_magic field.
3158 (LANG_MAGIC): Delete.
3159 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
3160 * objc-lang.c (objc_language_defn): Likewise.
3161 * opencl-lang.c (opencl_language_defn): Likewise.
3162 * p-lang.c (pascal_language_defn): Likewise.
3163 * rust-lang.c (rust_language_defn): Likewise.
3165 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3167 * riscv-tdep.c (riscv_type_align): New function.
3168 (riscv_type_alignment): Delete.
3169 (riscv_arg_location): Use 'type_align'.
3170 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
3172 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3174 * gdbtypes.c (type_align): A struct with no non-static fields also
3177 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3179 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
3181 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
3183 (riscv_struct_info::analyse): New implementation using new
3184 analyse_inner member function.
3185 (riscv_struct_info::field_offset): New member function.
3186 (riscv_struct_info::m_offsets): New member variable.
3187 (riscv_struct_info::analyse_inner): New private member function,
3188 takes the old implementation of riscv_struct_info::analyse but
3189 extended to track field offsets.
3190 (riscv_call_arg_struct): Update the struct folding special cases
3191 to handle cases where empty C++ structs, which are non-zero
3193 (riscv_arg_location): Initialise the length of each location, a
3194 non-zero length now indicates the location is in use.
3195 (riscv_push_dummy_call): Allow for the first location having a
3196 non-zero offset when setting up arguments.
3197 (riscv_return_value): Likewise, but for return values.
3199 2019-04-11 Tom Tromey <tromey@adacore.com>
3201 * utils.c (internal_vproblem): Make "msg" const.
3203 2019-04-11 Alan Hayward <alan.hayward@arm.com>
3205 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
3206 * trad-frame.c (trad_frame_reset_saved_regs): New function.
3207 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
3208 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
3210 2019-04-10 Kevin Buettner <kevinb@redhat.com>
3212 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
3214 (fill_gregset): Call amd64_linux_collect_native_gregset instead
3215 of amd64_collect_native_gregset.
3216 (amd64_linux_nat_target::store_registers): Likewise.
3218 2019-04-10 Tom Tromey <tom@tromey.com>
3220 * symtab.c (lookup_global_symbol_from_objfile)
3221 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
3222 * objfiles.h (class separate_debug_iterator): New.
3223 (class separate_debug_range): New.
3224 (struct objfile) <separate_debug_objfiles>: New method.
3225 (objfile_separate_debug_iterate): Don't declare.
3226 * objfiles.c (separate_debug_iterator::operator++): Rename from
3227 objfile_separate_debug_iterate.
3228 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
3230 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
3233 2019-04-10 Tom Tromey <tom@tromey.com>
3235 * symfile.c (reread_symbols): Remove old comment.
3236 * objfiles.c (free_all_objfiles): Fix a typo.
3238 2019-04-10 Tom Tromey <tom@tromey.com>
3240 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
3241 * minsyms.c (lookup_minimal_symbol): Use foreach.
3242 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3243 (lookup_minimal_symbol_solib_trampoline): Likewise.
3244 * symfile.c (reread_symbols): Use foreach.
3246 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
3247 Tom Tromey <tromey@adacore.com>
3250 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
3251 (rust_lex_int_test): Change "value" to be LONGEST.
3252 (rust_lex_tests): Add test for long integer literal.
3254 2019-04-09 Tom Tromey <tromey@adacore.com>
3256 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
3258 (extended_remote_target::attach): Update.
3259 (remote_target::remote_notice_new_inferior): Update.
3260 (remote_target::add_current_inferior_and_thread): Update.
3261 * inferior.c (exit_inferior_1): Use "false".
3262 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
3264 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
3266 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
3267 the "start" command.
3269 2019-04-08 Kevin Buettner <kevinb@redhat.com>
3271 * python/py-inferior.c (infpy_thread_from_thread_handle):
3272 Adjust comments to reflect renaming of thread_from_thread_handle
3273 to thread_from_handle. Adjust keywords. Fix type error message.
3274 (inferior_object_methods): Add thread_from_handle. Retain
3275 thread_from_thread_handle, but mark it as deprecated.
3277 2019-04-08 Kevin Buettner <kevinb@redhat.com>
3279 * gdbthread.h (find_thread_by_handle): Revise declaration.
3280 * thread.c (find_thread_by_handle): Likewise. Adjust
3282 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
3283 support for buffer objects as handles.
3285 2019-04-08 Kevin Buettner <kevinb@redhat.com>
3287 * python/py-infthread.c (thpy_thread_handle): New function.
3288 (thread_object_methods): Register thpy_thread_handle.
3290 2019-04-08 Kevin Buettner <kevinb@redhat.com>
3292 * gdbthread.h (thread_to_thread_handle): Declare.
3293 * thread.c (gdbtypes.h): Include.
3294 (thread_to_thread_handle): New function.
3296 * target.h (struct target_ops): Add thread_info_to_thread_handle.
3297 (target_thread_info_to_thread_handle): Declare.
3298 * target.c (target_thread_info_to_thread_handle): New function.
3299 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
3300 * target-delegates.c: Regenerate.
3302 * linux-thread-db.c (class thread_db_target): Add method
3303 thread_info_to_thread_handle.
3304 (thread_db_target::thread_info_to_thread_handle): Define.
3305 * remote.c (class remote_target): Add new method
3306 thread_info_to_thread_handle.
3307 (remote_target::thread_info_to_thread_handle): Define.
3309 2019-04-08 Pedro Alves <palves@redhat.com>
3311 * common/common-exceptions.c (throw_exception): Don't create
3312 named object to throw; throw directly.
3313 (throw_it): Likewise. Don't initialize gdb_exception::message
3314 here, with new; pass FMT and AP to the ctor instead.
3315 * common/common-exceptions.h: Include <string>.
3316 (gdb_exception::gdb_exception(enum return_reason, enum errors,
3317 const char *, va_list)): New ctor. Use std::make_shared.
3318 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
3320 (gdb_exception_error::gdb_exception_error(enum errors, const char
3322 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
3324 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
3326 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
3327 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
3330 2019-04-08 Tom Tromey <tom@tromey.com>
3332 * valops.c (value_rtti_indirect_type): Replace throw_exception
3334 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
3336 * thread.c (thr_try_catch_cmd): Replace throw_exception with
3338 * target.c (target_translate_tls_address): Replace throw_exception
3340 * stack.c (frame_apply_command_count): Replace throw_exception
3342 * solib-spu.c (append_ocl_sos): Replace throw_exception with
3344 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
3346 * rs6000-tdep.c (rs6000_frame_cache)
3347 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
3348 * remote.c: Replace throw_exception with throw.
3349 * record-full.c (record_full_message, record_full_wait_1)
3350 (record_full_restore): Replace throw_exception with throw.
3352 (get_thread_current_frame_id, record_btrace_start_replaying)
3353 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
3354 (cmd_record_btrace_start): Replace throw_exception with throw.
3355 * parse.c (parse_exp_in_context_1): Replace throw_exception with
3357 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
3358 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
3360 (find_linespec_symbols): Replace throw_exception with throw.
3361 * infrun.c (displaced_step_prepare, resume): Replace
3362 throw_exception with throw.
3363 * infcmd.c (post_create_inferior): Replace throw_exception with
3365 * inf-loop.c (inferior_event_handler): Replace throw_exception
3367 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
3368 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
3369 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
3370 (get_prev_frame_always, get_frame_pc_if_available)
3371 (get_frame_address_in_block_if_available, get_frame_language):
3372 Replace throw_exception with throw.
3373 * frame-unwind.c (frame_unwind_try_unwinder): Replace
3374 throw_exception with throw.
3375 * eval.c (fetch_subexp_value, evaluate_var_value)
3376 (evaluate_funcall, evaluate_subexp_standard): Replace
3377 throw_exception with throw.
3378 * dwarf2loc.c (call_site_find_chain)
3379 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
3380 Replace throw_exception with throw.
3381 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
3383 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
3385 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
3386 * completer.c (complete_line_internal): Replace throw_exception
3388 * compile/compile-object-run.c (compile_object_run): Replace
3389 throw_exception with throw.
3390 * cli/cli-script.c (process_next_line): Replace throw_exception
3392 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
3393 (btrace_enable, btrace_maint_update_pt_packets): Replace
3394 throw_exception with throw.
3395 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
3396 throw_exception with throw.
3397 * break-catch-throw.c (re_set_exception_catchpoint): Replace
3398 throw_exception with throw.
3399 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
3400 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
3401 * aarch64-tdep.c (aarch64_make_prologue_cache)
3402 (aarch64_make_stub_cache): Replace throw_exception with throw.
3404 2019-04-08 Tom Tromey <tom@tromey.com>
3406 * common/common-exceptions.c (throw_exception): Rename from
3407 throw_exception_cxx. Remove old copy. Make argument const.
3408 (throw_it): Create and throw exception objects directly.
3409 * common/common-exceptions.h (throw_exception): Make argument
3411 (struct gdb_exception_error): Add constructor.
3412 (struct gdb_exception_quit): Add constructor.
3414 2019-04-08 Tom Tromey <tom@tromey.com>
3416 * common/common-exceptions.h (exception_rethrow): Don't declare.
3417 (TRY_SJLJ): Update comment.
3418 (TRY, CATCH, END_CATCH): Remove.
3419 * common/common-exceptions.c (exception_rethrow): Remove.
3421 2019-04-08 Tom Tromey <tom@tromey.com>
3423 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
3425 (gdb_exception_error): Rename from
3426 gdb_exception_RETURN_MASK_ERROR.
3427 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
3428 (gdb_quit_bad_alloc): Update.
3429 * aarch64-tdep.c: Update.
3430 * ada-lang.c: Update.
3431 * ada-typeprint.c: Update.
3432 * ada-valprint.c: Update.
3433 * amd64-tdep.c: Update.
3434 * arch-utils.c: Update.
3435 * break-catch-throw.c: Update.
3436 * breakpoint.c: Update.
3438 * c-varobj.c: Update.
3439 * cli/cli-cmds.c: Update.
3440 * cli/cli-interp.c: Update.
3441 * cli/cli-script.c: Update.
3442 * common/common-exceptions.c: Update.
3443 * common/new-op.c: Update.
3444 * common/selftest.c: Update.
3445 * compile/compile-c-symbols.c: Update.
3446 * compile/compile-cplus-symbols.c: Update.
3447 * compile/compile-object-load.c: Update.
3448 * compile/compile-object-run.c: Update.
3449 * completer.c: Update.
3450 * corelow.c: Update.
3452 * cp-support.c: Update.
3453 * cp-valprint.c: Update.
3454 * darwin-nat.c: Update.
3455 * disasm-selftests.c: Update.
3456 * dtrace-probe.c: Update.
3457 * dwarf-index-cache.c: Update.
3458 * dwarf-index-write.c: Update.
3459 * dwarf2-frame-tailcall.c: Update.
3460 * dwarf2-frame.c: Update.
3461 * dwarf2loc.c: Update.
3462 * dwarf2read.c: Update.
3464 * event-loop.c: Update.
3465 * event-top.c: Update.
3467 * f-valprint.c: Update.
3468 * fbsd-tdep.c: Update.
3469 * frame-unwind.c: Update.
3471 * gdbtypes.c: Update.
3472 * gnu-v3-abi.c: Update.
3473 * guile/guile-internal.h: Update.
3474 * guile/scm-block.c: Update.
3475 * guile/scm-breakpoint.c: Update.
3476 * guile/scm-cmd.c: Update.
3477 * guile/scm-disasm.c: Update.
3478 * guile/scm-frame.c: Update.
3479 * guile/scm-lazy-string.c: Update.
3480 * guile/scm-math.c: Update.
3481 * guile/scm-param.c: Update.
3482 * guile/scm-ports.c: Update.
3483 * guile/scm-pretty-print.c: Update.
3484 * guile/scm-symbol.c: Update.
3485 * guile/scm-symtab.c: Update.
3486 * guile/scm-type.c: Update.
3487 * guile/scm-value.c: Update.
3488 * i386-linux-tdep.c: Update.
3489 * i386-tdep.c: Update.
3490 * inf-loop.c: Update.
3491 * infcall.c: Update.
3495 * language.c: Update.
3496 * linespec.c: Update.
3497 * linux-fork.c: Update.
3498 * linux-nat.c: Update.
3499 * linux-tdep.c: Update.
3500 * linux-thread-db.c: Update.
3502 * mi/mi-cmd-break.c: Update.
3503 * mi/mi-cmd-stack.c: Update.
3504 * mi/mi-interp.c: Update.
3505 * mi/mi-main.c: Update.
3506 * objc-lang.c: Update.
3507 * p-valprint.c: Update.
3509 * ppc-linux-tdep.c: Update.
3510 * printcmd.c: Update.
3511 * python/py-arch.c: Update.
3512 * python/py-breakpoint.c: Update.
3513 * python/py-cmd.c: Update.
3514 * python/py-finishbreakpoint.c: Update.
3515 * python/py-frame.c: Update.
3516 * python/py-framefilter.c: Update.
3517 * python/py-gdb-readline.c: Update.
3518 * python/py-inferior.c: Update.
3519 * python/py-infthread.c: Update.
3520 * python/py-lazy-string.c: Update.
3521 * python/py-linetable.c: Update.
3522 * python/py-objfile.c: Update.
3523 * python/py-param.c: Update.
3524 * python/py-prettyprint.c: Update.
3525 * python/py-progspace.c: Update.
3526 * python/py-record-btrace.c: Update.
3527 * python/py-record.c: Update.
3528 * python/py-symbol.c: Update.
3529 * python/py-type.c: Update.
3530 * python/py-unwind.c: Update.
3531 * python/py-utils.c: Update.
3532 * python/py-value.c: Update.
3533 * python/python.c: Update.
3534 * record-btrace.c: Update.
3535 * record-full.c: Update.
3536 * remote-fileio.c: Update.
3538 * riscv-tdep.c: Update.
3539 * rs6000-aix-tdep.c: Update.
3540 * rs6000-tdep.c: Update.
3541 * rust-exp.y: Update.
3542 * rust-lang.c: Update.
3543 * s390-tdep.c: Update.
3544 * selftest-arch.c: Update.
3545 * solib-dsbt.c: Update.
3546 * solib-frv.c: Update.
3547 * solib-spu.c: Update.
3548 * solib-svr4.c: Update.
3550 * sparc64-linux-tdep.c: Update.
3552 * symfile-mem.c: Update.
3553 * symmisc.c: Update.
3557 * tracefile-tfile.c: Update.
3558 * tui/tui.c: Update.
3559 * typeprint.c: Update.
3560 * unittests/cli-utils-selftests.c: Update.
3561 * unittests/parse-connection-spec-selftests.c: Update.
3563 * valprint.c: Update.
3566 * windows-nat.c: Update.
3567 * x86-linux-nat.c: Update.
3568 * xml-support.c: Update.
3570 2019-04-08 Tom Tromey <tom@tromey.com>
3572 * xml-support.c: Use C++ exception handling.
3573 * x86-linux-nat.c: Use C++ exception handling.
3574 * windows-nat.c: Use C++ exception handling.
3575 * varobj.c: Use C++ exception handling.
3576 * value.c: Use C++ exception handling.
3577 * valprint.c: Use C++ exception handling.
3578 * valops.c: Use C++ exception handling.
3579 * unittests/parse-connection-spec-selftests.c: Use C++ exception
3581 * unittests/cli-utils-selftests.c: Use C++ exception handling.
3582 * typeprint.c: Use C++ exception handling.
3583 * tui/tui.c: Use C++ exception handling.
3584 * tracefile-tfile.c: Use C++ exception handling.
3585 * top.c: Use C++ exception handling.
3586 * thread.c: Use C++ exception handling.
3587 * target.c: Use C++ exception handling.
3588 * symmisc.c: Use C++ exception handling.
3589 * symfile-mem.c: Use C++ exception handling.
3590 * stack.c: Use C++ exception handling.
3591 * sparc64-linux-tdep.c: Use C++ exception handling.
3592 * solib.c: Use C++ exception handling.
3593 * solib-svr4.c: Use C++ exception handling.
3594 * solib-spu.c: Use C++ exception handling.
3595 * solib-frv.c: Use C++ exception handling.
3596 * solib-dsbt.c: Use C++ exception handling.
3597 * selftest-arch.c: Use C++ exception handling.
3598 * s390-tdep.c: Use C++ exception handling.
3599 * rust-lang.c: Use C++ exception handling.
3600 * rust-exp.y: Use C++ exception handling.
3601 * rs6000-tdep.c: Use C++ exception handling.
3602 * rs6000-aix-tdep.c: Use C++ exception handling.
3603 * riscv-tdep.c: Use C++ exception handling.
3604 * remote.c: Use C++ exception handling.
3605 * remote-fileio.c: Use C++ exception handling.
3606 * record-full.c: Use C++ exception handling.
3607 * record-btrace.c: Use C++ exception handling.
3608 * python/python.c: Use C++ exception handling.
3609 * python/py-value.c: Use C++ exception handling.
3610 * python/py-utils.c: Use C++ exception handling.
3611 * python/py-unwind.c: Use C++ exception handling.
3612 * python/py-type.c: Use C++ exception handling.
3613 * python/py-symbol.c: Use C++ exception handling.
3614 * python/py-record.c: Use C++ exception handling.
3615 * python/py-record-btrace.c: Use C++ exception handling.
3616 * python/py-progspace.c: Use C++ exception handling.
3617 * python/py-prettyprint.c: Use C++ exception handling.
3618 * python/py-param.c: Use C++ exception handling.
3619 * python/py-objfile.c: Use C++ exception handling.
3620 * python/py-linetable.c: Use C++ exception handling.
3621 * python/py-lazy-string.c: Use C++ exception handling.
3622 * python/py-infthread.c: Use C++ exception handling.
3623 * python/py-inferior.c: Use C++ exception handling.
3624 * python/py-gdb-readline.c: Use C++ exception handling.
3625 * python/py-framefilter.c: Use C++ exception handling.
3626 * python/py-frame.c: Use C++ exception handling.
3627 * python/py-finishbreakpoint.c: Use C++ exception handling.
3628 * python/py-cmd.c: Use C++ exception handling.
3629 * python/py-breakpoint.c: Use C++ exception handling.
3630 * python/py-arch.c: Use C++ exception handling.
3631 * printcmd.c: Use C++ exception handling.
3632 * ppc-linux-tdep.c: Use C++ exception handling.
3633 * parse.c: Use C++ exception handling.
3634 * p-valprint.c: Use C++ exception handling.
3635 * objc-lang.c: Use C++ exception handling.
3636 * mi/mi-main.c: Use C++ exception handling.
3637 * mi/mi-interp.c: Use C++ exception handling.
3638 * mi/mi-cmd-stack.c: Use C++ exception handling.
3639 * mi/mi-cmd-break.c: Use C++ exception handling.
3640 * main.c: Use C++ exception handling.
3641 * linux-thread-db.c: Use C++ exception handling.
3642 * linux-tdep.c: Use C++ exception handling.
3643 * linux-nat.c: Use C++ exception handling.
3644 * linux-fork.c: Use C++ exception handling.
3645 * linespec.c: Use C++ exception handling.
3646 * language.c: Use C++ exception handling.
3647 * jit.c: Use C++ exception handling.
3648 * infrun.c: Use C++ exception handling.
3649 * infcmd.c: Use C++ exception handling.
3650 * infcall.c: Use C++ exception handling.
3651 * inf-loop.c: Use C++ exception handling.
3652 * i386-tdep.c: Use C++ exception handling.
3653 * i386-linux-tdep.c: Use C++ exception handling.
3654 * guile/scm-value.c: Use C++ exception handling.
3655 * guile/scm-type.c: Use C++ exception handling.
3656 * guile/scm-symtab.c: Use C++ exception handling.
3657 * guile/scm-symbol.c: Use C++ exception handling.
3658 * guile/scm-pretty-print.c: Use C++ exception handling.
3659 * guile/scm-ports.c: Use C++ exception handling.
3660 * guile/scm-param.c: Use C++ exception handling.
3661 * guile/scm-math.c: Use C++ exception handling.
3662 * guile/scm-lazy-string.c: Use C++ exception handling.
3663 * guile/scm-frame.c: Use C++ exception handling.
3664 * guile/scm-disasm.c: Use C++ exception handling.
3665 * guile/scm-cmd.c: Use C++ exception handling.
3666 * guile/scm-breakpoint.c: Use C++ exception handling.
3667 * guile/scm-block.c: Use C++ exception handling.
3668 * guile/guile-internal.h: Use C++ exception handling.
3669 * gnu-v3-abi.c: Use C++ exception handling.
3670 * gdbtypes.c: Use C++ exception handling.
3671 * frame.c: Use C++ exception handling.
3672 * frame-unwind.c: Use C++ exception handling.
3673 * fbsd-tdep.c: Use C++ exception handling.
3674 * f-valprint.c: Use C++ exception handling.
3675 * exec.c: Use C++ exception handling.
3676 * event-top.c: Use C++ exception handling.
3677 * event-loop.c: Use C++ exception handling.
3678 * eval.c: Use C++ exception handling.
3679 * dwarf2read.c: Use C++ exception handling.
3680 * dwarf2loc.c: Use C++ exception handling.
3681 * dwarf2-frame.c: Use C++ exception handling.
3682 * dwarf2-frame-tailcall.c: Use C++ exception handling.
3683 * dwarf-index-write.c: Use C++ exception handling.
3684 * dwarf-index-cache.c: Use C++ exception handling.
3685 * dtrace-probe.c: Use C++ exception handling.
3686 * disasm-selftests.c: Use C++ exception handling.
3687 * darwin-nat.c: Use C++ exception handling.
3688 * cp-valprint.c: Use C++ exception handling.
3689 * cp-support.c: Use C++ exception handling.
3690 * cp-abi.c: Use C++ exception handling.
3691 * corelow.c: Use C++ exception handling.
3692 * completer.c: Use C++ exception handling.
3693 * compile/compile-object-run.c: Use C++ exception handling.
3694 * compile/compile-object-load.c: Use C++ exception handling.
3695 * compile/compile-cplus-symbols.c: Use C++ exception handling.
3696 * compile/compile-c-symbols.c: Use C++ exception handling.
3697 * common/selftest.c: Use C++ exception handling.
3698 * common/new-op.c: Use C++ exception handling.
3699 * cli/cli-script.c: Use C++ exception handling.
3700 * cli/cli-interp.c: Use C++ exception handling.
3701 * cli/cli-cmds.c: Use C++ exception handling.
3702 * c-varobj.c: Use C++ exception handling.
3703 * btrace.c: Use C++ exception handling.
3704 * breakpoint.c: Use C++ exception handling.
3705 * break-catch-throw.c: Use C++ exception handling.
3706 * arch-utils.c: Use C++ exception handling.
3707 * amd64-tdep.c: Use C++ exception handling.
3708 * ada-valprint.c: Use C++ exception handling.
3709 * ada-typeprint.c: Use C++ exception handling.
3710 * ada-lang.c: Use C++ exception handling.
3711 * aarch64-tdep.c: Use C++ exception handling.
3713 2019-04-08 Tom Tromey <tom@tromey.com>
3715 * xml-support.c (gdb_xml_parser::parse): Update.
3716 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3717 * value.c (show_convenience): Update.
3718 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
3719 (test_parse_flags_qcs): Update.
3720 * thread.c (thr_try_catch_cmd): Update.
3721 * target.c (target_translate_tls_address): Update.
3722 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3723 (info_frame_command_core, frame_apply_command_count): Update.
3724 * rust-exp.y (rust_lex_exception_test): Update.
3725 * riscv-tdep.c (riscv_print_one_register_info): Update.
3726 * remote.c (remote_target::enable_btrace): Update.
3727 * record-btrace.c (record_btrace_enable_warn): Update.
3728 * python/py-utils.c (gdbpy_convert_exception): Update.
3729 * printcmd.c (do_one_display, print_variable_and_value): Update.
3730 * mi/mi-main.c (mi_print_exception): Update.
3731 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
3732 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3733 * linux-nat.c (linux_nat_target::attach): Update.
3734 * linux-fork.c (class scoped_switch_fork_info): Update.
3735 * infrun.c (displaced_step_prepare): Update.
3736 * infcall.c (call_function_by_hand_dummy): Update.
3737 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
3738 * gnu-v3-abi.c (print_one_vtable): Update.
3739 * frame.c (get_prev_frame_always): Update.
3740 * f-valprint.c (info_common_command_for_block): Update.
3741 * exec.c (try_open_exec_file): Update.
3742 * exceptions.c (print_exception, exception_print)
3743 (exception_fprintf, exception_print_same): Update.
3744 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
3745 * dwarf-index-cache.c (index_cache::store)
3746 (index_cache::lookup_gdb_index): Update.
3747 * darwin-nat.c (maybe_cache_shell): Update.
3748 * cp-valprint.c (cp_print_value_fields): Update.
3749 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
3750 (gcc_cplus_symbol_address): Update.
3751 * compile/compile-c-symbols.c (gcc_convert_symbol)
3752 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
3753 * common/selftest.c: Update.
3754 * common/common-exceptions.h (struct gdb_exception) <message>: Now
3756 (exception_try_scope_entry, exception_try_scope_exit): Don't
3758 (struct exception_try_scope): Remove.
3759 (TRY): Don't use exception_try_scope.
3760 (struct gdb_exception): Add constructor, operator=.
3762 (struct gdb_exception_RETURN_MASK_ALL)
3763 (struct gdb_exception_RETURN_MASK_ERROR)
3764 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
3765 (struct gdb_quit_bad_alloc): Update.
3766 * common/common-exceptions.c (exception_none): Change
3768 (struct catcher) <state, exception>: Initialize inline.
3769 <prev>: Remove member.
3770 (current_catcher): Remove.
3771 (catchers): New global.
3772 (exceptions_state_mc_init): Simplify.
3773 (catcher_pop): Remove.
3774 (exceptions_state_mc, exceptions_state_mc_catch): Update.
3775 (try_scope_depth, exception_try_scope_entry)
3776 (exception_try_scope_exit): Remove.
3777 (throw_exception_sjlj): Update.
3778 (exception_messages, exception_messages_size): Remove.
3779 (throw_it): Simplify.
3780 (gdb_exception_sliced_copy): Remove.
3781 (throw_exception_cxx): Update.
3782 * cli/cli-script.c (script_from_file): Update.
3783 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
3785 * ada-valprint.c (ada_val_print): Update.
3786 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
3787 (create_excep_cond_exprs): Update.
3789 2019-04-08 Tom Tromey <tom@tromey.com>
3791 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
3792 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
3793 (TRY, CATCH, END_CATCH): Remove some definitions.
3794 * common/common-exceptions.c: Don't use GDB_XCPT.
3795 (catcher_list_size): Remove.
3796 (throw_exception, throw_it): Simplify.
3798 2019-04-05 Tom Tromey <tom@tromey.com>
3800 Revert the header-sorting patch.
3801 * ft32-tdep.c: Revert.
3802 * frv-tdep.c: Revert.
3803 * frv-linux-tdep.c: Revert.
3805 * frame-unwind.c: Revert.
3806 * frame-base.c: Revert.
3807 * fork-child.c: Revert.
3808 * findvar.c: Revert.
3809 * findcmd.c: Revert.
3810 * filesystem.c: Revert.
3811 * filename-seen-cache.h: Revert.
3812 * filename-seen-cache.c: Revert.
3813 * fbsd-tdep.c: Revert.
3814 * fbsd-nat.h: Revert.
3815 * fbsd-nat.c: Revert.
3816 * f-valprint.c: Revert.
3817 * f-typeprint.c: Revert.
3819 * extension.h: Revert.
3820 * extension.c: Revert.
3821 * extension-priv.h: Revert.
3822 * expprint.c: Revert.
3825 * exceptions.c: Revert.
3826 * event-top.c: Revert.
3827 * event-loop.c: Revert.
3829 * elfread.c: Revert.
3830 * dwarf2read.h: Revert.
3831 * dwarf2read.c: Revert.
3832 * dwarf2loc.c: Revert.
3833 * dwarf2expr.h: Revert.
3834 * dwarf2expr.c: Revert.
3835 * dwarf2-frame.c: Revert.
3836 * dwarf2-frame-tailcall.c: Revert.
3837 * dwarf-index-write.h: Revert.
3838 * dwarf-index-write.c: Revert.
3839 * dwarf-index-common.c: Revert.
3840 * dwarf-index-cache.h: Revert.
3841 * dwarf-index-cache.c: Revert.
3842 * dummy-frame.c: Revert.
3843 * dtrace-probe.c: Revert.
3846 * disasm-selftests.c: Revert.
3847 * dictionary.c: Revert.
3848 * dicos-tdep.c: Revert.
3849 * demangle.c: Revert.
3852 * darwin-nat.h: Revert.
3853 * darwin-nat.c: Revert.
3854 * darwin-nat-info.c: Revert.
3855 * d-valprint.c: Revert.
3856 * d-namespace.c: Revert.
3859 * csky-tdep.c: Revert.
3860 * csky-linux-tdep.c: Revert.
3861 * cris-tdep.c: Revert.
3862 * cris-linux-tdep.c: Revert.
3863 * cp-valprint.c: Revert.
3864 * cp-support.c: Revert.
3865 * cp-namespace.c: Revert.
3867 * corelow.c: Revert.
3868 * corefile.c: Revert.
3869 * continuations.c: Revert.
3870 * completer.h: Revert.
3871 * completer.c: Revert.
3872 * complaints.c: Revert.
3873 * coffread.c: Revert.
3874 * coff-pe-read.c: Revert.
3875 * cli-out.h: Revert.
3876 * cli-out.c: Revert.
3877 * charset.c: Revert.
3878 * c-varobj.c: Revert.
3879 * c-valprint.c: Revert.
3880 * c-typeprint.c: Revert.
3882 * buildsym.c: Revert.
3883 * buildsym-legacy.c: Revert.
3884 * build-id.h: Revert.
3885 * build-id.c: Revert.
3887 * bsd-uthread.c: Revert.
3888 * breakpoint.h: Revert.
3889 * breakpoint.c: Revert.
3890 * break-catch-throw.c: Revert.
3891 * break-catch-syscall.c: Revert.
3892 * break-catch-sig.c: Revert.
3893 * blockframe.c: Revert.
3895 * bfin-tdep.c: Revert.
3896 * bfin-linux-tdep.c: Revert.
3897 * bfd-target.c: Revert.
3899 * ax-general.c: Revert.
3902 * avr-tdep.c: Revert.
3904 * auto-load.c: Revert.
3905 * arm-wince-tdep.c: Revert.
3906 * arm-tdep.c: Revert.
3907 * arm-symbian-tdep.c: Revert.
3908 * arm-pikeos-tdep.c: Revert.
3909 * arm-obsd-tdep.c: Revert.
3910 * arm-nbsd-tdep.c: Revert.
3911 * arm-nbsd-nat.c: Revert.
3912 * arm-linux-tdep.c: Revert.
3913 * arm-linux-nat.c: Revert.
3914 * arm-fbsd-tdep.c: Revert.
3915 * arm-fbsd-nat.c: Revert.
3916 * arm-bsd-tdep.c: Revert.
3917 * arch-utils.c: Revert.
3918 * arc-tdep.c: Revert.
3919 * arc-newlib-tdep.c: Revert.
3920 * annotate.h: Revert.
3921 * annotate.c: Revert.
3922 * amd64-windows-tdep.c: Revert.
3923 * amd64-windows-nat.c: Revert.
3924 * amd64-tdep.c: Revert.
3925 * amd64-sol2-tdep.c: Revert.
3926 * amd64-obsd-tdep.c: Revert.
3927 * amd64-obsd-nat.c: Revert.
3928 * amd64-nbsd-tdep.c: Revert.
3929 * amd64-nbsd-nat.c: Revert.
3930 * amd64-nat.c: Revert.
3931 * amd64-linux-tdep.c: Revert.
3932 * amd64-linux-nat.c: Revert.
3933 * amd64-fbsd-tdep.c: Revert.
3934 * amd64-fbsd-nat.c: Revert.
3935 * amd64-dicos-tdep.c: Revert.
3936 * amd64-darwin-tdep.c: Revert.
3937 * amd64-bsd-nat.c: Revert.
3938 * alpha-tdep.c: Revert.
3939 * alpha-obsd-tdep.c: Revert.
3940 * alpha-nbsd-tdep.c: Revert.
3941 * alpha-mdebug-tdep.c: Revert.
3942 * alpha-linux-tdep.c: Revert.
3943 * alpha-linux-nat.c: Revert.
3944 * alpha-bsd-tdep.c: Revert.
3945 * alpha-bsd-nat.c: Revert.
3946 * aix-thread.c: Revert.
3948 * addrmap.c: Revert.
3949 * ada-varobj.c: Revert.
3950 * ada-valprint.c: Revert.
3951 * ada-typeprint.c: Revert.
3952 * ada-tasks.c: Revert.
3953 * ada-lang.c: Revert.
3954 * aarch64-tdep.c: Revert.
3955 * aarch64-ravenscar-thread.c: Revert.
3956 * aarch64-newlib-tdep.c: Revert.
3957 * aarch64-linux-tdep.c: Revert.
3958 * aarch64-linux-nat.c: Revert.
3959 * aarch64-fbsd-tdep.c: Revert.
3960 * aarch64-fbsd-nat.c: Revert.
3961 * aarch32-linux-nat.c: Revert.
3963 2019-04-05 Tom Tromey <tom@tromey.com>
3965 * ft32-tdep.c: Sort headers.
3966 * frv-tdep.c: Sort headers.
3967 * frv-linux-tdep.c: Sort headers.
3968 * frame.c: Sort headers.
3969 * frame-unwind.c: Sort headers.
3970 * frame-base.c: Sort headers.
3971 * fork-child.c: Sort headers.
3972 * findvar.c: Sort headers.
3973 * findcmd.c: Sort headers.
3974 * filesystem.c: Sort headers.
3975 * filename-seen-cache.h: Sort headers.
3976 * filename-seen-cache.c: Sort headers.
3977 * fbsd-tdep.c: Sort headers.
3978 * fbsd-nat.h: Sort headers.
3979 * fbsd-nat.c: Sort headers.
3980 * f-valprint.c: Sort headers.
3981 * f-typeprint.c: Sort headers.
3982 * f-lang.c: Sort headers.
3983 * extension.h: Sort headers.
3984 * extension.c: Sort headers.
3985 * extension-priv.h: Sort headers.
3986 * expprint.c: Sort headers.
3987 * exec.h: Sort headers.
3988 * exec.c: Sort headers.
3989 * exceptions.c: Sort headers.
3990 * event-top.c: Sort headers.
3991 * event-loop.c: Sort headers.
3992 * eval.c: Sort headers.
3993 * elfread.c: Sort headers.
3994 * dwarf2read.h: Sort headers.
3995 * dwarf2read.c: Sort headers.
3996 * dwarf2loc.c: Sort headers.
3997 * dwarf2expr.h: Sort headers.
3998 * dwarf2expr.c: Sort headers.
3999 * dwarf2-frame.c: Sort headers.
4000 * dwarf2-frame-tailcall.c: Sort headers.
4001 * dwarf-index-write.h: Sort headers.
4002 * dwarf-index-write.c: Sort headers.
4003 * dwarf-index-common.c: Sort headers.
4004 * dwarf-index-cache.h: Sort headers.
4005 * dwarf-index-cache.c: Sort headers.
4006 * dummy-frame.c: Sort headers.
4007 * dtrace-probe.c: Sort headers.
4008 * disasm.h: Sort headers.
4009 * disasm.c: Sort headers.
4010 * disasm-selftests.c: Sort headers.
4011 * dictionary.c: Sort headers.
4012 * dicos-tdep.c: Sort headers.
4013 * demangle.c: Sort headers.
4014 * dcache.h: Sort headers.
4015 * dcache.c: Sort headers.
4016 * darwin-nat.h: Sort headers.
4017 * darwin-nat.c: Sort headers.
4018 * darwin-nat-info.c: Sort headers.
4019 * d-valprint.c: Sort headers.
4020 * d-namespace.c: Sort headers.
4021 * d-lang.c: Sort headers.
4022 * ctf.c: Sort headers.
4023 * csky-tdep.c: Sort headers.
4024 * csky-linux-tdep.c: Sort headers.
4025 * cris-tdep.c: Sort headers.
4026 * cris-linux-tdep.c: Sort headers.
4027 * cp-valprint.c: Sort headers.
4028 * cp-support.c: Sort headers.
4029 * cp-namespace.c: Sort headers.
4030 * cp-abi.c: Sort headers.
4031 * corelow.c: Sort headers.
4032 * corefile.c: Sort headers.
4033 * continuations.c: Sort headers.
4034 * completer.h: Sort headers.
4035 * completer.c: Sort headers.
4036 * complaints.c: Sort headers.
4037 * coffread.c: Sort headers.
4038 * coff-pe-read.c: Sort headers.
4039 * cli-out.h: Sort headers.
4040 * cli-out.c: Sort headers.
4041 * charset.c: Sort headers.
4042 * c-varobj.c: Sort headers.
4043 * c-valprint.c: Sort headers.
4044 * c-typeprint.c: Sort headers.
4045 * c-lang.c: Sort headers.
4046 * buildsym.c: Sort headers.
4047 * buildsym-legacy.c: Sort headers.
4048 * build-id.h: Sort headers.
4049 * build-id.c: Sort headers.
4050 * btrace.c: Sort headers.
4051 * bsd-uthread.c: Sort headers.
4052 * breakpoint.h: Sort headers.
4053 * breakpoint.c: Sort headers.
4054 * break-catch-throw.c: Sort headers.
4055 * break-catch-syscall.c: Sort headers.
4056 * break-catch-sig.c: Sort headers.
4057 * blockframe.c: Sort headers.
4058 * block.c: Sort headers.
4059 * bfin-tdep.c: Sort headers.
4060 * bfin-linux-tdep.c: Sort headers.
4061 * bfd-target.c: Sort headers.
4062 * bcache.c: Sort headers.
4063 * ax-general.c: Sort headers.
4064 * ax-gdb.h: Sort headers.
4065 * ax-gdb.c: Sort headers.
4066 * avr-tdep.c: Sort headers.
4067 * auxv.c: Sort headers.
4068 * auto-load.c: Sort headers.
4069 * arm-wince-tdep.c: Sort headers.
4070 * arm-tdep.c: Sort headers.
4071 * arm-symbian-tdep.c: Sort headers.
4072 * arm-pikeos-tdep.c: Sort headers.
4073 * arm-obsd-tdep.c: Sort headers.
4074 * arm-nbsd-tdep.c: Sort headers.
4075 * arm-nbsd-nat.c: Sort headers.
4076 * arm-linux-tdep.c: Sort headers.
4077 * arm-linux-nat.c: Sort headers.
4078 * arm-fbsd-tdep.c: Sort headers.
4079 * arm-fbsd-nat.c: Sort headers.
4080 * arm-bsd-tdep.c: Sort headers.
4081 * arch-utils.c: Sort headers.
4082 * arc-tdep.c: Sort headers.
4083 * arc-newlib-tdep.c: Sort headers.
4084 * annotate.h: Sort headers.
4085 * annotate.c: Sort headers.
4086 * amd64-windows-tdep.c: Sort headers.
4087 * amd64-windows-nat.c: Sort headers.
4088 * amd64-tdep.c: Sort headers.
4089 * amd64-sol2-tdep.c: Sort headers.
4090 * amd64-obsd-tdep.c: Sort headers.
4091 * amd64-obsd-nat.c: Sort headers.
4092 * amd64-nbsd-tdep.c: Sort headers.
4093 * amd64-nbsd-nat.c: Sort headers.
4094 * amd64-nat.c: Sort headers.
4095 * amd64-linux-tdep.c: Sort headers.
4096 * amd64-linux-nat.c: Sort headers.
4097 * amd64-fbsd-tdep.c: Sort headers.
4098 * amd64-fbsd-nat.c: Sort headers.
4099 * amd64-dicos-tdep.c: Sort headers.
4100 * amd64-darwin-tdep.c: Sort headers.
4101 * amd64-bsd-nat.c: Sort headers.
4102 * alpha-tdep.c: Sort headers.
4103 * alpha-obsd-tdep.c: Sort headers.
4104 * alpha-nbsd-tdep.c: Sort headers.
4105 * alpha-mdebug-tdep.c: Sort headers.
4106 * alpha-linux-tdep.c: Sort headers.
4107 * alpha-linux-nat.c: Sort headers.
4108 * alpha-bsd-tdep.c: Sort headers.
4109 * alpha-bsd-nat.c: Sort headers.
4110 * aix-thread.c: Sort headers.
4111 * agent.c: Sort headers.
4112 * addrmap.c: Sort headers.
4113 * ada-varobj.c: Sort headers.
4114 * ada-valprint.c: Sort headers.
4115 * ada-typeprint.c: Sort headers.
4116 * ada-tasks.c: Sort headers.
4117 * ada-lang.c: Sort headers.
4118 * aarch64-tdep.c: Sort headers.
4119 * aarch64-ravenscar-thread.c: Sort headers.
4120 * aarch64-newlib-tdep.c: Sort headers.
4121 * aarch64-linux-tdep.c: Sort headers.
4122 * aarch64-linux-nat.c: Sort headers.
4123 * aarch64-fbsd-tdep.c: Sort headers.
4124 * aarch64-fbsd-nat.c: Sort headers.
4125 * aarch32-linux-nat.c: Sort headers.
4127 2019-04-04 Tom Tromey <tom@tromey.com>
4129 * varobj.c (varobj_create): Update.
4130 * rust-exp.y (struct rust_parser) <update_innermost_block,
4131 lookup_symbol>: New methods.
4132 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
4134 (rust_parser::rust_lookup_type)
4135 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
4136 * printcmd.c (display_command, do_one_display): Update.
4137 * parser-defs.h (struct parser_state) <parser_state>: Add
4138 "tracker" parameter.
4139 (block_tracker): New member.
4140 (class innermost_block_tracker) <innermost_block_tracker>: Add
4142 <reset>: Remove method.
4143 (innermost_block): Don't declare.
4144 (null_post_parser): Update.
4145 * parse.c (innermost_block): Remove global.
4146 (write_dollar_variable): Update.
4147 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
4148 Remove "tracker_types" parameter.
4149 (parse_expression): Add "tracker" parameter.
4150 (parse_expression_for_completion): Update.
4151 (null_post_parser): Add "tracker" parameter.
4152 * p-exp.y: Update rules.
4153 * m2-exp.y: Update rules.
4154 * language.h (struct language_defn) <la_post_parser>: Add
4155 "tracker" parameter.
4156 * go-exp.y: Update rules.
4157 * f-exp.y: Update rules.
4158 * expression.h (parse_expression, parse_exp_1): Add "tracker"
4160 * d-exp.y: Update rules.
4161 * c-exp.y: Update rules.
4162 * breakpoint.c (set_breakpoint_condition): Create an
4163 innermost_block_tracker.
4164 (watch_command_1): Likewise.
4165 * ada-lang.c (resolve): Add "tracker" parameter.
4166 (resolve_subexp): Likewise.
4167 * ada-exp.y (write_var_from_sym): Update.
4169 2019-04-04 Tom Tromey <tom@tromey.com>
4171 * type-stack.h: New file.
4172 * type-stack.c: New file.
4173 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
4175 (insert_into_type_stack, insert_type, push_type, push_type_int)
4176 (insert_type_address_space, pop_type, pop_type_int)
4177 (pop_typelist, pop_type_stack, append_type_stack)
4178 (push_type_stack, get_type_stack, push_typelist)
4179 (follow_type_instance_flags, follow_types): Don't declare.
4180 * parse.c (type_stack): Remove global.
4181 (parse_exp_in_context): Update.
4182 (insert_into_type_stack, insert_type, push_type, push_type_int)
4183 (insert_type_address_space, pop_type, pop_type_int)
4184 (pop_typelist, pop_type_stack, append_type_stack)
4185 (push_type_stack, get_type_stack, push_typelist)
4186 (follow_type_instance_flags, follow_types): Remove (moved to
4188 * f-exp.y (type_stack): New global.
4190 (push_kind_type, f_parse): Update.
4191 * d-exp.y (type_stack): New global.
4194 * c-exp.y (struct c_parse_state) <type_stack>: New member.
4196 * Makefile.in (COMMON_SFILES): Add type-stack.c.
4197 (HFILES_NO_SRCDIR): Add type-stack.h.
4199 2019-04-04 Tom Tromey <tom@tromey.com>
4201 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
4202 (rust_parser::convert_ast_to_expression, rust_parse)
4203 (rust_lex_test_completion, rust_lex_tests): Update.
4204 * parser-defs.h (struct expr_completion_state): New.
4205 (struct parser_state) <parser_state>: Add completion parameter.
4206 <mark_struct_expression, mark_completion_tag>: New methods.
4207 <parse_completion, m_completion_state>: New members.
4208 (prefixify_expression, null_post_parser): Update.
4209 (mark_struct_expression, mark_completion_tag): Don't declare.
4210 * parse.c (parse_completion, expout_last_struct)
4211 (expout_tag_completion_type, expout_completion_name): Remove
4213 (parser_state::mark_struct_expression)
4214 (parser_state::mark_completion_tag): Now methods.
4215 (prefixify_expression): Add last_struct parameter.
4216 (prefixify_subexp): Likewise.
4217 (parse_exp_1): Update.
4218 (parse_exp_in_context): Add cstate parameter. Update.
4219 (parse_expression_for_completion): Create an
4220 expr_completion_state.
4221 (null_post_parser): Add "completion" parameter.
4222 * p-exp.y: Update rules.
4224 * language.h (struct language_defn) <la_post_parser>: Add
4225 "completing" parameter.
4226 * go-exp.y: Update rules.
4227 (lex_one_token): Update.
4228 * expression.h (parse_completion): Don't declare.
4229 * d-exp.y: Update rules.
4230 (lex_one_token): Update rules.
4231 * c-exp.y: Update rules.
4232 (lex_one_token): Update.
4233 * ada-lang.c (resolve): Add "parse_completion" parameter.
4234 (resolve_subexp): Likewise.
4235 (ada_resolve_function): Likewise.
4237 2019-04-04 Tom Tromey <tom@tromey.com>
4239 * parser-defs.h (struct parser_state) <start_arglist,
4240 end_arglist>: New methods.
4241 <arglist_len, m_funcall_chain>: New members.
4242 (arglist_len, start_arglist, end_arglist): Don't declare.
4243 * parse.c (arglist_len, funcall_chain): Remove global.
4244 (start_arglist, end_arglist): Remove functions.
4245 (parse_exp_in_context): Update.
4246 * p-exp.y: Update rules.
4247 * m2-exp.y: Update rules.
4248 * go-exp.y: Update rules.
4249 * f-exp.y: Update rules.
4250 * d-exp.y: Update rules.
4251 * c-exp.y: Update rules.
4253 2019-04-04 Tom Tromey <tom@tromey.com>
4255 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
4256 lex_operator, push_back>: New methods.
4258 (rust_parser::lex_hex, lex_escape): Rename and update.
4259 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
4260 (rust_parser::lex_operator): Rename and update.
4261 (rust_parser::lex_number, rustyylex, rustyyerror)
4262 (rust_lex_test_init, rust_lex_test_sequence)
4263 (rust_lex_test_push_back, rust_lex_tests): Update.
4264 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
4266 <lexptr, prev_lexptr>: New members.
4267 (lexptr, prev_lexptr): Don't declare.
4268 * parse.c (lexptr, prev_lexptr): Remove globals.
4269 (parse_exp_in_context): Update.
4270 * p-exp.y (yylex, yyerror): Update.
4271 * m2-exp.y (parse_number, yylex, yyerror): Update.
4272 * go-exp.y (lex_one_token, yyerror): Update.
4273 * f-exp.y (match_string_literal, yylex, yyerror): Update.
4274 * d-exp.y (lex_one_token, yyerror): Update.
4275 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
4276 (lex_one_token, yyerror): Update.
4277 * ada-lex.l (YY_INPUT): Update.
4278 (rewind_to_char): Update.
4279 * ada-exp.y (yyerror): Update.
4281 2019-04-04 Tom Tromey <tom@tromey.com>
4283 * rust-exp.y (rustyylex, rust_lex_tests): Update.
4284 * parser-defs.h (struct parser_state) <parser_state>: Add new
4286 <comma_terminates>: New member.
4287 (comma_terminates): Don't declare global.
4288 * parse.c (comma_terminates): Remove global.
4289 (parse_exp_in_context): Update.
4290 * p-exp.y (yylex): Update.
4291 * m2-exp.y (yylex): Update.
4292 * go-exp.y (lex_one_token): Update.
4293 * f-exp.y (yylex): Update.
4294 * d-exp.y (lex_one_token): Update.
4295 * c-exp.y (lex_one_token): Update.
4296 * ada-lex.l: Update.
4298 2019-04-04 Tom Tromey <tom@tromey.com>
4300 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
4301 (rustyylex, rust_lex_test_init, rust_lex_test_one)
4302 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
4303 * parser-defs.h (paren_depth): Don't declare.
4304 * parse.c (paren_depth): Remove global.
4305 (parse_exp_in_context): Update.
4306 * p-exp.y (paren_depth): New global.
4307 (pascal_parse): Initialize it.
4308 * m2-exp.y (paren_depth): New global.
4309 (m2_parse): Initialize it.
4310 * go-exp.y (paren_depth): New global.
4311 (go_parse): Initialize it.
4312 * f-exp.y (paren_depth): New global.
4313 (f_parse): Initialize it.
4314 * d-exp.y (paren_depth): New global.
4315 (d_parse): Initialize it.
4316 * c-exp.y (paren_depth): New global.
4317 (c_parse): Initialize it.
4318 * ada-lex.l (paren_depth): New global.
4319 (lexer_init): Initialize it.
4321 2019-04-04 Tom Tromey <tom@tromey.com>
4323 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
4324 (rust_parser::convert_ast_to_type)
4325 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
4326 * parser-defs.h (struct parser_state) <parser_state>: Add
4327 parameters. Initialize new members.
4328 <expression_context_block, expression_context_pc>: New members.
4329 * parse.c (expression_context_block, expression_context_pc):
4331 (parse_exp_in_context): Update.
4332 * p-exp.y: Update all rules.
4334 * m2-exp.y: Update all rules.
4336 * go-exp.y (yylex): Update.
4337 * f-exp.y (yylex): Update.
4338 * d-exp.y: Update all rules.
4340 * c-exp.y: Update all rules.
4341 (lex_one_token, classify_name, yylex, c_parse): Update.
4342 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
4344 2019-04-04 Tom Tromey <tom@tromey.com>
4346 * gdbarch.h, gdbarch.c: Rebuild.
4347 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
4349 (struct stap_parse_info): Replace "parser_state" with
4351 * parser-defs.h (struct expr_builder): Rename from "parser_state".
4352 (parser_state): New class.
4353 * parse.c (expr_builder): Rename.
4354 (expr_builder::release): Rename.
4355 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4356 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4357 (write_exp_elt_longcst, write_exp_elt_floatcst)
4358 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4359 (write_exp_string_vector, write_exp_bitstring)
4360 (write_exp_msymbol, mark_struct_expression)
4361 (write_dollar_variable)
4362 (insert_type_address_space, increase_expout_size): Replace
4363 "parser_state" with "expr_builder".
4364 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
4365 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
4366 "parser_state" with "expr_builder".
4368 2019-04-04 Tom Tromey <tom@tromey.com>
4370 * rust-exp.y: Replace "parse_language" with method call.
4372 (yylex): Replace "parse_language" with method call.
4374 (yylex): Replace "parse_language" with method call.
4375 * go-exp.y (classify_name): Replace "parse_language" with method
4377 * f-exp.y (yylex): Replace "parse_language" with method call.
4378 * d-exp.y (lex_one_token): Replace "parse_language" with method
4381 (lex_one_token, classify_name, yylex): Replace "parse_language"
4383 * ada-exp.y (find_primitive_type, type_char)
4384 (type_system_address): Replace "parse_language" with method call.
4386 2019-04-04 Tom Tromey <tom@tromey.com>
4388 * rust-exp.y: Replace "parse_gdbarch" with method call.
4389 * parse.c (write_dollar_variable, insert_type_address_space):
4390 Replace "parse_gdbarch" with method call.
4391 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
4393 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
4395 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
4396 "parse_gdbarch" with method call.
4397 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
4399 * f-exp.y (parse_type, parse_f_type, yylex): Replace
4400 "parse_gdbarch" with method call.
4401 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
4402 "parse_gdbarch" with method call.
4403 * c-exp.y (parse_type, parse_number, classify_name): Replace
4404 "parse_gdbarch" with method call.
4405 * ada-lex.l: Replace "parse_gdbarch" with method call.
4406 * ada-exp.y (parse_type, find_primitive_type, type_char)
4407 (type_system_address): Replace "parse_gdbarch" with method call.
4409 2019-04-04 Tom Tromey <tom@tromey.com>
4411 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4412 * stap-probe.c (stap_parse_argument): Update.
4413 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
4414 initial_size parameter.
4415 * rust-exp.y (rust_lex_tests): Update.
4416 * parse.c (parser_state): Update.
4417 (parse_exp_in_context): Update.
4418 * parser-defs.h (struct parser_state) <parser_state>: Remove
4419 "initial_size" parameter.
4421 2019-04-04 Tom Tromey <tom@tromey.com>
4423 * parser-defs.h (increase_expout_size): Don't declare.
4424 * parse.c (increase_expout_size): Now static.
4426 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
4428 * gnu-nat.c (gnu_nat_target::wait): Fix
4429 target_waitstatus_to_string call.
4431 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
4433 * eval.c (evaluate_subexp_standard): Handle internal functions
4434 during Fortran function call handling.
4436 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
4438 * NEWS: Mention new internal functions.
4439 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
4440 (read_base_type): Use dwarf2_init_complex_target_type.
4441 * value.c (creal_internal_fn): New function.
4442 (cimag_internal_fn): New function.
4443 (_initialize_values): Register new internal functions.
4445 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4447 * infrun.c (stop_all_threads): If debug_infrun, always
4448 trace the wait status after wait_one, using
4449 target_waitstatus_to_string and target_pid_to_str.
4450 (handle_inferior_event): Replace various trace of
4451 wait status kind by a single trace.
4452 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
4453 wait status kind image by target_waitstatus_to_string.
4454 * target/waitstatus.c (target_waitstatus_to_string): Fix
4457 2019-04-01 Tom Tromey <tromey@adacore.com>
4460 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
4462 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
4463 Pedro Alves <palves@redhat.com>
4465 * top.c (quit_force): Call 'finalize_values'.
4466 * value.c (finalize_values): New function.
4467 * value.h (finalize_values): Declare.
4469 2019-03-30 Eli Zaretskii <eliz@gnu.org>
4471 * NEWS: Announce $_gdb_major and $_gdb_minor.
4473 * top.c (init_gdb_version_vars): New function.
4474 (gdb_init): Call init_gdb_version_vars.
4476 2019-03-29 Tom Tromey <tromey@adacore.com>
4478 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
4479 help text. Remove dead code.
4481 2019-03-29 Keith Seitz <keiths@redhat.com>
4483 From Siddhesh Poyarekar:
4484 * f-lang.h (f77_get_upperbound): Return LONGEST.
4485 (f77_get_lowerbound): Likewise.
4486 * f-typeprint.c (f_type_print_varspec_suffix): Expand
4487 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
4489 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
4490 plongest to format print it.
4491 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
4492 (f77_get_upperbound): Likewise.
4493 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
4494 LOWER_BOUND to LONGEST.
4495 (f77_create_arrayprint_offset_tbl): Likewise.
4497 2019-03-29 Keith Seitz <keiths@redhat.com>
4499 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4500 %s/pulongest for TYPE_LENGTH instead of %d in format
4502 * ada-typerint.c (ada_print_type): Likewise.
4503 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
4504 * compile/compile-c-support.c (generate_register_struct): Likewise.
4505 * gdbtypes.c (recursive_dump_type): Likewise.
4506 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
4507 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
4508 instead of %d in format strings.
4509 * riscv-tdep.c (riscv_type_alignment): Cast second argument
4510 to std::min to ULONGEST.
4511 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
4512 instead of %d in format strings.
4513 * tracepoint.c (info_scope_command): Likewise.
4514 * typeprint.c (print_offset_data::update)
4515 (print_offset_data::finish): Likewise.
4516 * xtensa-tdep.c (xtensa_store_return_value)
4517 (xtensa_push_dummy_call): Likewise.
4519 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
4521 * windows-nat.c (display_selector): Fixed format specifications
4524 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4526 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
4528 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
4530 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
4531 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
4532 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
4533 (nios2_linux_init_abi): Install it.
4535 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4537 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
4539 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4541 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
4543 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4544 Tom Tromey <tromey@adacore.com>
4546 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
4548 2019-03-26 Joel Brobecker <brobecker@adacore.com>
4550 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
4551 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
4552 method to compute the bounds of range types. Also print "[evaluated]"
4553 if the bounds' values come from a dynamic evaluation.
4555 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
4557 * cp-valprint.c (cp_print_value_fields): Don't print trailing
4558 whitespace when pretty printing is on.
4560 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4562 * ppc-linux-nat.c: Add include.
4564 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4566 * NEWS: Mention AArch64 Pointer Authentication.
4568 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4570 * arm-linux-nat.c: Add include.
4572 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
4574 * source-cache.c (source_cache::get_source_lines): Re-read
4575 fullname after calling open_source_file.
4577 2019-03-25 John Baldwin <jhb@FreeBSD.org>
4579 * NEWS: Mention TLS support for FreeBSD.
4581 2019-03-25 Tom Tromey <tromey@adacore.com>
4583 * minsyms.c (BUNCH_SIZE): Update comment.
4584 (~minimal_symbol_reader): Remove old comment.
4585 (compact_minimal_symbols): Update comment.
4586 (minimal_symbol_reader::install): Remove old comment. Update
4589 2019-03-25 Alan Hayward <alan.hayward@arm.com>
4591 * s390-linux-nat.c: Add include.
4593 2019-03-25 Alan Hayward <alan.hayward@arm.com>
4595 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4596 Call linux_get_hwcap.
4597 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4599 (aarch64_linux_get_hwcap): Remove function.
4600 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
4602 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
4604 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4605 * linux-tdep.c (linux_get_hwcap): Add function.
4606 (linux_get_hwcap2): Likewise.
4607 * linux-tdep.h (linux_get_hwcap): Add declaration.
4608 (linux_get_hwcap2): Likewise.
4609 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
4610 (ppc_linux_get_hwcap2): Likewise.
4611 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
4613 (ppc_linux_nat_target::insert_watchpoint): Likewise.
4614 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
4615 (ppc_linux_nat_target::read_description): Likewise.
4616 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
4617 * s390-linux-nat.c: Likewise.
4618 * s390-linux-tdep.c (s390_core_read_description): Likewise.
4620 2019-03-24 Tom Tromey <tom@tromey.com>
4622 * ada-lang.c (standard_lookup): Simplify initialization.
4623 (ada_lookup_symbol_nonlocal): Simplify return.
4624 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
4625 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
4626 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
4627 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
4629 * solib.c (solib_global_lookup): Simplify.
4630 * symtab.c (null_block_symbol): Remove.
4631 (symbol_cache_lookup): Simplify returns.
4632 (lookup_language_this): Simplify returns.
4633 (lookup_symbol_aux): Simplify return.
4634 (lookup_local_symbol): Simplify returns.
4635 (lookup_global_symbol_from_objfile): Simplify return.
4636 (lookup_symbol_in_objfile_symtabs)
4637 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
4638 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
4639 (lookup_static_symbol, lookup_global_symbol): Simplify return.
4640 * cp-namespace.c (cp_lookup_bare_symbol)
4641 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
4642 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
4643 (cp_lookup_nested_symbol): Don't use null_block_symbol.
4644 (cp_lookup_symbol_via_imports): Simplify initialization.
4645 (find_symbol_in_baseclass): Likewise.
4646 * symtab.h (null_block_symbol): Remove.
4647 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
4648 (d_lookup_nested_symbol, d_lookup_symbol_imports)
4649 (d_lookup_symbol_module): Likewise.
4650 (find_symbol_in_baseclass): Simplify initialization.
4652 2019-03-24 Tom Tromey <tom@tromey.com>
4654 * expression.h: Don't include symtab.h.
4655 (struct block): Forward declare.
4657 2019-03-24 Tom Tromey <tom@tromey.com>
4659 * c-exp.y (typebase): Remove casts.
4660 * gdbtypes.c (lookup_unsigned_typename, )
4661 (lookup_signed_typename): Remove cast.
4662 * eval.c (parse_to_comma_and_eval): Remove cast.
4663 * parse.c (write_dollar_variable): Remove cast.
4664 * block.h (struct block) <superblock>: Now const.
4665 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
4666 * psymtab.c (psym_map_matching_symbols): Make "block" const.
4667 (map_block): Make "block" const.
4668 * symfile.h (struct quick_symbol_functions)
4669 <map_matching_symbols>: Constify block argument to "callback".
4670 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
4672 (find_pc_sect_compunit_symtab): Make "b" const.
4673 (find_symbol_at_address): Likewise.
4674 (search_symbols): Likewise.
4675 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
4676 (dw2_debug_names_lookup_symbol): Likewise.
4677 (dw2_map_matching_symbols): Update.
4678 * p-valprint.c (pascal_val_print): Remove "block".
4679 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
4680 (aux_add_nonlocal_symbols): Make "block" const.
4681 (resolve_subexp): Remove cast.
4682 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
4684 (iterate_over_file_blocks): Likewise.
4685 * f-exp.y (%union) <bval>: Remove.
4686 * coffread.c (patch_opaque_types): Make "b" const.
4687 * spu-tdep.c (spu_catch_start): Make "block" const.
4688 * c-valprint.c (print_unpacked_pointer): Remove "block".
4689 * symmisc.c (dump_symtab_1): Make "b" const.
4690 (block_depth): Make "block" const.
4691 * d-exp.y (%union) <bval>: Remove.
4692 * cp-support.h (cp_lookup_rtti_type): Update.
4693 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
4694 * psymtab.c (psym_lookup_symbol): Make "block" const.
4695 (maintenance_check_psymtabs): Make "b" const.
4696 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
4697 (enumerate_locals, enumerate_args): Update.
4698 * python/py-symtab.c (stpy_global_block): Make "block" const.
4699 (stpy_static_block): Likewise.
4700 * inline-frame.c (block_starting_point_at): Make "new_block"
4702 * block.c (find_block_in_blockvector): Make return type const.
4703 (blockvector_for_pc_sect): Make "b" const.
4704 (find_block_in_blockvector): Make "b" const.
4706 2019-03-23 Tom Tromey <tom@tromey.com>
4708 * varobj.c (varobj_create): Update.
4709 * symfile.c (clear_symtab_users): Don't reset innermost_block.
4710 * printcmd.c (display_command, do_one_display): Don't reset
4712 * parser-defs.h (enum innermost_block_tracker_type): Move to
4714 (innermost_block): Update comment.
4715 * parse.c (parse_exp_1): Add tracker_types parameter.
4716 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
4717 tracker_types parameter. Reset innermost_block.
4718 (parse_exp_in_context): Remove.
4719 (parse_expression_for_completion): Update.
4720 * objfiles.c (~objfile): Don't reset expression_context_block or
4722 * expression.h (enum innermost_block_tracker_type): Move from
4724 (parse_exp_1): Add tracker_types parameter.
4725 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
4726 reset innermost_block.
4728 2019-03-23 Tom Tromey <tom@tromey.com>
4730 * objfiles.h: Include bcache.h.
4732 2019-03-23 Tom Tromey <tom@tromey.com>
4734 * linespec.c (get_current_search_block): Use
4735 scoped_restore_current_language.
4736 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
4738 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4739 Jiong Wang <jiong.wang@arm.com>
4741 * aarch64-linux-tdep.c
4742 (aarch64_linux_iterate_over_regset_sections): Check for pauth
4744 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
4746 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4747 Jiong Wang <jiong.wang@arm.com>
4749 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
4751 (aarch64_analyze_prologue_test): Add PACIASP test.
4752 (aarch64_prologue_prev_register): Unmask PC value.
4754 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4755 Jiong Wang <jiong.wang@arm.com>
4757 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
4758 (aarch64_dwarf2_prev_register): Unmask PC value.
4759 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
4760 (aarch64_execute_dwarf_cfa_vendor_op): Check for
4761 DW_CFA_AARCH64_negate_ra_state.
4762 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
4764 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4765 Jiong Wang <jiong.wang@arm.com>
4767 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
4769 (aarch64_pseudo_register_name): Likewise.
4770 (aarch64_pseudo_register_type): Likewise.
4771 (aarch64_pseudo_register_reggroup_p): Likewise.
4772 (aarch64_gdbarch_init): Add pauth registers.
4773 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
4774 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
4775 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
4776 (struct gdbarch_tdep): Add regnum for ra_state.
4778 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4779 Jiong Wang <jiong.wang@arm.com>
4781 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
4783 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4784 Jiong Wang <jiong.wang@arm.com>
4786 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
4788 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
4789 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
4790 (aarch64_gdbarch_init): Add puth registers.
4791 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
4792 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
4793 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
4795 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4796 Jiong Wang <jiong.wang@arm.com>
4798 * aarch64-linux-nat.c
4799 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
4800 * aarch64-linux-tdep.c
4801 (aarch64_linux_core_read_description): Likewise.
4802 (aarch64_linux_get_hwcap): New function.
4803 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
4804 (aarch64_linux_get_hwcap): New declaration.
4806 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4807 Jiong Wang <jiong.wang@arm.com>
4809 * aarch64-linux-nat.c
4810 (aarch64_linux_nat_target::read_description): Add pauth param.
4811 * aarch64-linux-tdep.c
4812 (aarch64_linux_core_read_description): Likewise.
4813 * aarch64-tdep.c (struct target_desc): Add in pauth.
4814 (aarch64_read_description): Add pauth param.
4815 (aarch64_gdbarch_init): Likewise.
4816 * aarch64-tdep.h (aarch64_read_description): Likewise.
4817 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4818 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4819 * features/Makefile: Add new files.
4820 * features/aarch64-pauth.c: New file.
4821 * features/aarch64-pauth.xml: New file.
4823 2019-03-20 Tom Tromey <tromey@adacore.com>
4825 * infrun.c (handle_inferior_event): Rename from
4826 handle_inferior_event_1. Create a scoped_value_mark.
4827 (handle_inferior_event): Remove.
4829 2019-03-19 Tom Tromey <tromey@adacore.com>
4831 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
4832 * infrun.h (print_stop_event): Add "displays" parameter.
4833 * infrun.c (print_stop_event): Add "displays" parameter.
4835 2019-03-19 Pedro Alves <palves@redhat.com>
4837 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
4838 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
4839 to -1. Fix TABs vs spaces.
4840 (tui_ui_out::tui_ui_out): Don't initialize fields here.
4841 * tui/tui-out.h (tui_ui_out) Add intro comments.
4842 <m_line, m_start_of_line>: In-class initialize, and add describing
4845 2019-03-18 Alan Hayward <alan.hayward@arm.com>
4847 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
4849 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
4851 2019-03-18 Pedro Alves <palves@redhat.com>
4852 Eli Zaretskii <eliz@gnu.org>
4854 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
4855 m_line and m_start_of_line.
4857 2019-03-18 Eli Zaretskii <eliz@gnu.org>
4859 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
4860 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
4861 it returns a newline. This fixes a regression in TU mode, whereby
4862 the next line is output on the same screen line as the user input.
4864 2019-03-18 Tom Tromey <tromey@adacore.com>
4866 * minsyms.c (minimal_symbol_reader::install): Remove call to
4869 2019-03-18 Pedro Alves <palves@redhat.com>
4871 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
4873 (apply_style): New, factored out from ...
4874 (apply_ansi_escape): ... this. Handle reverse video mode.
4875 (tui_set_reverse_mode): New function.
4876 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
4877 * tui/tui-winsource.c (tui_show_source_line): Use
4878 tui_set_reverse_mode instead of setting A_STANDOUT.
4879 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
4882 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
4884 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
4887 2019-03-18 Tom Tromey <tromey@adacore.com>
4889 * ada-lang.c (empty_array): Add "high" parameter.
4890 (ada_evaluate_subexp): Update.
4892 2019-03-17 Sergei Trofimovich <siarheit@google.com>
4894 * unittests/string_view-selftests.c: Define
4895 _initialize_string_view_selftests unconditionally.
4897 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4900 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
4902 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4905 * windows-nat.c (display_selector): Fix format specifiers.
4907 2019-03-17 Eli Zaretskii <eliz@gnu.org>
4909 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
4910 tui_refill_source_window instead of tui_refresh_win, to update the
4911 current execution line. This fixes redisplay of the current line
4912 when stepping through the code with "next" or "step".
4914 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4916 * source-cache.c (source_cache::get_source_lines): Call
4917 find_source_lines to initialize s->nlines. This fixes vertical
4918 scrolling of TUI source window when the DOWN arrow is pressed.
4920 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4922 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
4923 linux-thread-db.c (_initialize_thread_db): Likewise.
4925 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4927 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
4928 wclrtoeol in tui_show_source_line". This reverts changes made in
4929 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
4931 2019-03-15 Tom Tromey <tom@tromey.com>
4933 * symtab.h (struct minimal_symbol): Derive from
4934 general_symbol_info.
4935 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
4936 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4937 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4938 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4939 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
4940 (MSYMBOL_SEARCH_NAME): Update.
4941 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
4942 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
4943 * minsyms.c (minimal_symbol_reader::record_full): Update.
4945 2019-03-15 Tom Tromey <tom@tromey.com>
4947 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
4949 2019-03-15 Tom Tromey <tom@tromey.com>
4951 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
4953 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
4955 * minsyms.c (lookup_minimal_symbol_by_pc_section)
4956 (build_minimal_symbol_hash_tables)
4957 (minimal_symbol_reader::install): Update.
4959 2019-03-15 Tom Tromey <tom@tromey.com>
4961 * symtab.c (create_demangled_names_hash): Update.
4962 (symbol_set_names): Update.
4963 * objfiles.h (struct objfile_per_bfd_storage)
4964 <demangled_names_hash>: Now an htab_up.
4965 * objfiles.c (objfile_per_bfd_storage): Simplify.
4967 2019-03-15 Tom Tromey <tom@tromey.com>
4969 * objfiles.h (struct objfile_per_bfd_storage): Declare
4971 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
4973 (get_objfile_bfd_data): Use new. Don't initialize
4975 (free_objfile_per_bfd_storage): Remove.
4976 (objfile_bfd_data_free, objfile::~objfile): Use delete.
4978 2019-03-15 Tom Tromey <tom@tromey.com>
4980 * symfile.c (reread_symbols): Update.
4981 * objfiles.c (objfile::objfile): Update.
4982 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
4983 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
4985 (minimal_symbol_reader::install): Update.
4986 (terminate_minimal_symbol_table): Remove.
4987 * jit.c (jit_object_close_impl): Update.
4989 2019-03-15 Tom Tromey <tom@tromey.com>
4991 * minsyms.c (minimal_symbol_reader::record_full): Remove some
4994 2019-03-15 Tom Tromey <tom@tromey.com>
4996 * objfiles.h (struct objfile_per_bfd_storage)
4997 <demangled_hash_languages>: Now a bitset.
4998 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
4999 (lookup_minimal_symbol): Update.
5001 2019-03-15 Tom Tromey <tom@tromey.com>
5003 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
5004 Don't return the symbol.
5005 * coffread.c (record_minimal_symbol): Use record_full.
5007 2019-03-14 Eli Zaretskii <eliz@gnu.org>
5009 The MS-Windows port of ncurses fails to switch to a color pair if
5010 one or both of the colors are the implicit default colors. This
5011 change records the default colors when TUI is initialized, and
5012 then specifies them explicitly when a color pair uses the default
5013 colors. This allows color styling in TUI mode on MS-Windows.
5015 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
5017 (tui_initialize_io) [__MINGW32__]: Record the default terminal
5018 colors in ncurses_norm_attr.
5019 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
5020 "none", replace it with the default color recorded in
5023 2019-03-14 Tom Tromey <tromey@adacore.com>
5025 * source-cache.h (class source_cache) <get_source_lines>: Return
5027 * source-cache.c (source_cache::extract_lines): Handle case where
5028 first_pos==npos. Return std::string.
5029 (source_cache::get_source_lines): Update.
5031 2019-03-14 Tom Tromey <tromey@adacore.com>
5033 * NEWS: Add item for "style sources" commands.
5034 * source-cache.c (source_cache::get_source_lines): Check
5036 * cli/cli-style.c (source_styling): New global.
5037 (_initialize_cli_style): Add "style sources" commands.
5038 (show_style_sources): New function.
5039 * cli/cli-style.h (source_styling): Declare.
5041 2019-03-14 Pedro Alves <palves@redhat.com>
5042 Tom Tromey <tromey@adacore.com>
5044 * tui/tui-winsource.h (tui_refill_source_window): Declare.
5045 * tui/tui-winsource.c (tui_refill_source_window): New function,
5047 (tui_horizontal_source_scroll): ... here. Move some logic.
5048 * cli/cli-style.c (set_style_enabled): Notify new observable.
5049 * tui/tui-hooks.c (tui_redisplay_source): New function.
5050 (tui_attach_detach_observers): Attach or detach
5051 tui_redisplay_source.
5052 * observable.h (source_styling_changed): New observable.
5053 * observable.c: Define source_styling_changed observable.
5055 2019-03-13 Tom Tromey <tromey@adacore.com>
5057 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
5058 (i386_gnu_nat_target::store_registers): Update.
5059 * target-debug.h (target_debug_print_std_string): New macro.
5060 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
5061 * windows-tdep.c (display_one_tib): Update.
5062 * tui/tui-stack.c (tui_make_status_line): Update.
5063 * top.c (print_inferior_quit_action): Update.
5064 * thread.c (thr_try_catch_cmd): Update.
5065 (add_thread_with_info): Update.
5066 (thread_target_id_str): Update.
5067 (thr_try_catch_cmd): Update.
5068 (thread_command): Update.
5069 (thread_find_command): Update.
5070 * record-btrace.c (record_btrace_target::info_record)
5071 (record_btrace_resume_thread, record_btrace_target::resume)
5072 (record_btrace_cancel_resume, record_btrace_step_thread)
5073 (record_btrace_target::wait, record_btrace_target::wait)
5074 (record_btrace_target::wait, record_btrace_target::stop): Update.
5075 * progspace.c (print_program_space): Update.
5076 * process-stratum-target.c
5077 (process_stratum_target::thread_address_space): Update.
5078 * linux-fork.c (linux_fork_mourn_inferior)
5079 (detach_checkpoint_command, info_checkpoints_command)
5080 (linux_fork_context): Update.
5081 (linux_fork_detach): Update.
5082 (class scoped_switch_fork_info): Update.
5083 (delete_checkpoint_command): Update.
5084 * infrun.c (follow_fork_inferior): Update.
5085 (follow_fork_inferior): Update.
5086 (proceed_after_vfork_done): Update.
5087 (handle_vfork_child_exec_or_exit): Update.
5088 (follow_exec): Update.
5089 (displaced_step_prepare_throw): Update.
5090 (displaced_step_restore): Update.
5091 (start_step_over): Update.
5093 (clear_proceed_status_thread): Update.
5095 (print_target_wait_results): Update.
5096 (do_target_wait): Update.
5097 (context_switch): Update.
5098 (stop_all_threads): Update.
5099 (restart_threads): Update.
5100 (finish_step_over): Update.
5101 (handle_signal_stop): Update.
5102 (switch_back_to_stepped_thread): Update.
5103 (keep_going_pass_signal): Update.
5104 (print_exited_reason): Update.
5105 (normal_stop): Update.
5106 * inferior.c (inferior_pid_to_str): Change return type.
5107 (print_selected_inferior): Update.
5108 (add_inferior): Update.
5109 (detach_inferior): Update.
5110 * dummy-frame.c (fprint_dummy_frames): Update.
5111 * dcache.c (dcache_info_1): Update.
5112 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
5113 (btrace_fetch, btrace_clear): Update.
5114 * linux-tdep.c (linux_core_pid_to_str): Change return type.
5115 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
5117 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
5118 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
5119 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
5120 * gdbarch.c, gdbarch.h: Rebuild.
5121 * gdbarch.sh (core_pid_to_str): Change return type.
5122 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
5124 (windows_nat_target::pid_to_str): Change return type.
5125 (windows_delete_thread): Update.
5126 (windows_nat_target::attach): Update.
5127 (windows_nat_target::files_info): Update.
5128 * target-delegates.c: Rebuild.
5129 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
5131 (sol_thread_target::pid_to_str): Change return type.
5132 * remote.c (class remote_target) <pid_to_str>: Change return
5134 (remote_target::pid_to_str): Change return type.
5135 (extended_remote_target::attach, remote_target::remote_stop_ns)
5136 (remote_target::remote_notif_remove_queued_reply)
5137 (remote_target::push_stop_reply, remote_target::disable_btrace):
5139 (extended_remote_target::attach): Update.
5140 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
5142 (gdbsim_target::pid_to_str): Change return type.
5143 * ravenscar-thread.c (struct ravenscar_thread_target)
5144 <pid_to_str>: Change return type.
5145 (ravenscar_thread_target::pid_to_str): Change return type.
5146 * procfs.c (class procfs_target) <pid_to_str>: Change return
5148 (procfs_target::pid_to_str): Change return type.
5149 (procfs_target::attach): Update.
5150 (procfs_target::detach): Update.
5151 (procfs_target::fetch_registers): Update.
5152 (procfs_target::store_registers): Update.
5153 (procfs_target::wait): Update.
5154 (procfs_target::files_info): Update.
5155 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
5156 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
5158 (nto_procfs_target::pid_to_str): Change return type.
5159 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
5160 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
5162 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
5164 (attach_proc_task_lwp_callback, get_detach_signal)
5165 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
5166 (linux_nat_target::resume, wait_lwp, stop_callback)
5167 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
5168 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
5169 (linux_nat_wait_1, resume_stopped_resumed_lwps)
5170 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
5171 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
5173 (inf_ptrace_target::attach): Update.
5174 (inf_ptrace_target::files_info): Update.
5175 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
5177 (go32_nat_target::pid_to_str): Change return type.
5178 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
5179 (gnu_nat_target::wait): Update.
5180 (gnu_nat_target::wait): Update.
5181 (gnu_nat_target::resume): Update.
5182 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
5183 (fbsd_nat_target::wait): Update.
5184 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
5186 (darwin_nat_target::attach): Update.
5187 * corelow.c (class core_target) <pid_to_str>: Change return type.
5188 (core_target::pid_to_str): Change return type.
5189 * target.c (normal_pid_to_str): Change return type.
5190 (default_pid_to_str): Likewise.
5191 (target_pid_to_str): Change return type.
5192 (target_translate_tls_address): Update.
5193 (target_announce_detach): Update.
5194 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
5196 (bsd_uthread_target::pid_to_str): Change return type.
5197 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
5199 (bsd_kvm_target::pid_to_str): Change return type.
5200 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
5202 (aix_thread_target::pid_to_str): Change return type.
5203 * target.h (struct target_ops) <pid_to_str>: Change return type.
5204 (target_pid_to_str, normal_pid_to_str): Likewise.
5205 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
5207 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
5209 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
5211 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
5213 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
5215 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
5218 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
5220 * NEWS: Mention that the new default MI version is 3. Mention
5221 changes to the output of commands and events that deal with
5222 multi-location breakpoints.
5223 * breakpoint.c: Include "mi/mi-out.h".
5224 (print_one_breakpoint): Change output syntax if using MI version
5226 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
5228 (mi_multi_location_breakpoint_output_fixed): New.
5229 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
5230 (mi_cmd_fix_multi_location_breakpoint_output): New.
5231 (mi_multi_location_breakpoint_output_fixed): New.
5232 * mi/mi-cmds.c (mi_cmds): Register command
5233 -fix-multi-location-breakpoint-output.
5234 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
5237 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5239 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
5240 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
5241 instantiate mi_ui_out based on interpreter name.
5242 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
5243 * mi/mi-main.c (mi_load_progress): Likewise.
5245 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5247 * NEWS: Combine separate "New targets" sections for 8.3.
5249 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5251 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
5252 (ppcfbsd_init_abi): Install gdbarch
5253 "fetch_tls_load_module_address" and "get_thread_local_address"
5256 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5258 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
5259 (riscv_fbsd_init_abi): Install gdbarch
5260 "fetch_tls_load_module_address" and "get_thread_local_address"
5263 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5265 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
5266 (i386fbsd_init_abi): Install gdbarch
5267 "fetch_tls_load_module_address" and "get_thread_local_address"
5270 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5272 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
5273 (amd64fbsd_init_abi): Install gdbarch
5274 "fetch_tls_load_module_address" and "get_thread_local_address"
5277 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5279 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
5280 (struct fbsd_pspace_data): New type.
5281 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
5282 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
5283 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
5284 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
5285 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
5287 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5289 * gdbtypes.c (lookup_struct_elt): New function.
5290 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
5291 * gdbtypes.h (struct struct_elt): New type.
5292 (lookup_struct_elt): New prototype.
5294 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5296 * gdbtypes.c (lookup_struct_elt_type): Update comment and
5297 remove disabled code block.
5299 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5301 * gdbarch.sh (get_thread_local_address): New method.
5302 * gdbarch.h, gdbarch.c: Regenerate.
5303 * target.c (target_translate_tls_address): Use
5304 gdbarch_get_thread_local_address if present instead of
5305 target::get_thread_local_address.
5307 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5309 * target.h (target::get_thread_local_address): Update comment.
5311 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5313 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
5314 objfile->separate_debug_objfile_backlink if not NULL.
5316 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5318 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5319 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
5320 (amd64bsd_store_inferior_registers): Likewise.
5321 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
5322 Enable segment base registers.
5323 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
5324 PT_GETFSBASE and PT_GETGSBASE.
5325 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
5327 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
5328 segment base registers.
5329 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
5331 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5333 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
5334 Update calls to i386_target_description to add 'segments'
5336 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
5337 add segment base registers.
5338 * arch/i386.c (i386_create_target_description): Add 'segments'
5339 parameter to enable segment base registers.
5340 * arch/i386.h (i386_create_target_description): Likewise.
5341 * features/i386/32bit-segments.xml: New file.
5342 * features/i386/32bit-segments.c: Generate.
5343 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
5344 call to i386_target_description to add 'segments' parameter.
5345 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
5346 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
5347 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
5348 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
5349 if feature is present.
5350 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
5351 Add 'segments' parameter to call to i386_target_description.
5352 (i386_target_description): Add 'segments' parameter to enable
5353 segment base registers.
5354 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
5355 to call to i386_target_description.
5356 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
5357 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
5358 Define I386_NUM_REGS.
5359 (i386_target_description): Add 'segments' parameter to enable
5360 segment base registers.
5362 2019-03-12 Eli Zaretskii <eliz@gnu.org>
5365 * source-cache.c: #undef open and close, to avoid unresolved
5366 externals during linking.
5368 2019-03-12 Tom Tromey <tromey@adacore.com>
5370 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
5371 const. Add initializers.
5372 (_initialize_remote): Don't initialize ptid globals.
5374 2019-03-12 Pedro Alves <palves@redhat.com>
5376 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
5378 2019-03-12 Pedro Alves <palves@redhat.com>
5380 * cp-name-parser.y (main): Remove unused 'len' variable.
5382 2019-03-12 Tom Tromey <tromey@adacore.com>
5384 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
5385 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
5387 2019-03-12 Tom Tromey <tromey@adacore.com>
5389 * linux-nat.c (iterate_over_lwps): Update.
5390 (stop_callback): Remove parameter.
5391 (stop_wait_callback, detach_callback, resume_set_callback)
5392 (select_singlestep_lwp_callback, set_ignore_sigint)
5393 (status_callback, resumed_callback, resume_clear_callback)
5394 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
5396 (linux_nat_target::detach, linux_nat_target::resume)
5397 (linux_stop_and_wait_all_lwps, select_event_lwp)
5398 (linux_nat_filter_event, linux_nat_wait_1)
5399 (linux_nat_target::kill, linux_nat_target::stop)
5400 (linux_nat_target::stop): Update.
5401 (linux_nat_resume_callback): Change type.
5402 (resume_stopped_resumed_lwps, count_events_callback)
5403 (select_event_lwp_callback): Likewise.
5404 (linux_stop_lwp, linux_nat_stop_lwp): Update.
5405 * arm-linux-nat.c (struct update_registers_data): Remove.
5406 (update_registers_callback): Change type.
5407 (arm_linux_insert_hw_breakpoint1): Update.
5408 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
5410 (x86_linux_dr_set_addr): Update.
5411 (x86_linux_dr_set_control): Update.
5412 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
5413 (iterate_over_lwps): Use gdb::function_view.
5414 * nat/aarch64-linux-hw-point.c (struct
5415 aarch64_dr_update_callback_param): Remove.
5416 (debug_reg_change_callback): Change type.
5417 (aarch64_notify_debug_reg_change): Update.
5418 * s390-linux-nat.c (s390_refresh_per_info): Update.
5420 2019-03-11 Tom Tromey <tromey@adacore.com>
5422 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
5423 redundant assignment to "this_cu".
5425 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5427 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
5429 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5431 * gdbtypes.c (rank_one_type_parm_set): New function extracted
5433 (rank_one_type): ... this.
5435 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5437 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
5439 (rank_one_type): ... this.
5441 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5443 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
5445 (rank_one_type): ... this.
5447 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5449 * gdbtypes.c (rank_one_type_parm_float): New function extracted
5451 (rank_one_type): ... this.
5453 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5455 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
5457 (rank_one_type): ... this.
5459 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5461 * gdbtypes.c (rank_one_type_parm_range): New function extracted
5463 (rank_one_type): ... this.
5465 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5467 * gdbtypes.c (rank_one_type_parm_char): New function extracted
5469 (rank_one_type): ... this.
5471 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5473 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
5475 (rank_one_type): ... this.
5477 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5479 * gdbtypes.c (rank_one_type_parm_int): New function extracted
5481 (rank_one_type): ... this.
5483 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5485 * gdbtypes.c (rank_one_type_parm_func): New function extracted
5487 (rank_one_type): ... this.
5489 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5491 * gdbtypes.c (rank_one_type_parm_array): New function extracted
5493 (rank_one_type): ... this.
5495 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
5497 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
5499 (rank_one_type): ... this.
5501 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5503 * inferior.c (initialize_inferiors): Ensure 'help set/show print
5504 inferior-events' shows the example events.
5506 2019-03-08 Eli Zaretskii <eliz@gnu.org>
5508 Support styling on native MS-Windows console
5511 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
5512 on MS-Windows if $TERM is not defined.
5514 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
5516 * posix-hdep.c (gdb_console_fputs):
5517 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
5519 * ui-file.h (gdb_console_fputs): Add prototype.
5521 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
5522 back to fputs only if the former returns zero.
5524 2019-03-07 Tom Tromey <tom@tromey.com>
5526 * symmisc.c (print_symbol_bcache_statistics): Update.
5527 (print_objfile_statistics): Update.
5528 * symfile.c (allocate_symtab): Update.
5529 * stabsread.c: Don't include bcache.h.
5530 * psymtab.h (struct psymbol_bcache): Don't declare.
5531 (class psymtab_storage) <psymbol_cache>: Now a bcache.
5532 (psymbol_bcache_init, psymbol_bcache_free)
5533 (psymbol_bcache_get_bcache): Don't declare.
5534 * psymtab.c (struct psymbol_bcache): Remove.
5535 (psymtab_storage::psymtab_storage): Update.
5536 (psymtab_storage::~psymtab_storage): Update.
5537 (psymbol_bcache_init, psymbol_bcache_free)
5538 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
5539 (add_psymbol_to_bcache): Update.
5540 (allocate_psymtab): Update.
5541 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
5542 macro_cache>: No longer pointers.
5543 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
5544 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
5545 * macrotab.c (macro_bcache): Update.
5546 * macroexp.c: Don't include bcache.h.
5547 * gdbtypes.c (check_types_worklist): Update.
5548 (types_deeply_equal): Remove TRY/CATCH. Update.
5549 * elfread.c (elf_symtab_read): Update.
5550 * dwarf2read.c: Don't include bcache.h.
5551 * buildsym.c (buildsym_compunit::get_macro_table): Update.
5552 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
5553 (print_bcache_statistics, bcache_memory_used): Don't declare.
5554 (struct bcache): Move from bcache.c. Add constructor, destructor,
5555 methods. Rename all data members.
5556 * bcache.c (struct bcache): Move to bcache.h.
5557 (bcache::expand_hash_table): Rename from expand_hash_table.
5559 (bcache::insert): Rename from bcache_full.
5560 (bcache::compare): Rename from bcache_compare.
5561 (bcache_xmalloc): Remove.
5562 (bcache::~bcache): Rename from bcache_xfree.
5563 (bcache::print_statistics): Rename from print_bcache_statistics.
5564 (bcache::memory_used): Rename from bcache_memory_used.
5566 2019-03-07 Pedro Alves <palves@redhat.com>
5568 * infrun.c (normal_stop): Also check for
5569 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
5571 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
5573 * f-lang.c (value_from_host_double): Moved to...
5574 * value.c (value_from_host_double): ...here.
5575 * value.h (value_from_host_double): Declare.
5576 * guile/scm-math.c (vlscm_convert_typed_number): Use
5577 value_from_host_double.
5578 (vlscm_convert_number): Likewise.
5579 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
5580 * python/py-value.c (convert_value_from_python): Likewise.
5582 2019-03-06 Tom Tromey <tom@tromey.com>
5584 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
5586 2019-03-06 Tom Tromey <tom@tromey.com>
5588 * utils.h (free_current_contents): Don't declare.
5589 * utils.c (free_current_contents): Remove.
5591 2019-03-06 Tom Tromey <tom@tromey.com>
5593 * top.c (quit_force): Update.
5594 * main.c (captured_command_loop): Update.
5595 * common/new-op.c (operator new): Update.
5596 * common/common-exceptions.c (struct catcher)
5597 <save_cleanup_chain>: Remove member.
5598 (exceptions_state_mc_init): Update.
5599 (exception_try_scope_entry): Return nullptr.
5600 (exception_try_scope_exit, exception_rethrow)
5601 (throw_exception_sjlj, throw_exception_cxx): Update.
5602 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
5603 (all_cleanups, do_cleanups, discard_cleanups)
5604 (discard_final_cleanups, save_cleanups, save_final_cleanups)
5605 (restore_cleanups, restore_final_cleanups): Don't declare.
5606 (do_final_cleanups): Remove parameter.
5607 * common/cleanups.c (cleanup_chain, make_cleanup)
5608 (make_cleanup_dtor, all_cleanups, do_cleanups)
5609 (discard_my_cleanups, discard_cleanups)
5610 (discard_final_cleanups, save_my_cleanups, save_cleanups)
5611 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
5612 (null_cleanup): Remove.
5613 (do_final_cleanups): Remove parameter.
5615 2019-03-06 Tom Tromey <tom@tromey.com>
5617 * remote.c (remote_target::remote_parse_stop_reply): Use
5620 2019-03-06 Tom Tromey <tom@tromey.com>
5622 * stabsread.c (struct stabs_field_info): Rename from field_info.
5623 <list, fnlist>: Add initializers.
5624 <obstack>: New member.
5625 (read_member_functions, read_struct_fields, read_baseclasses):
5626 Allocate on obstack. Don't use cleanups.
5627 (read_one_struct_field, read_member_functions, read_struct_fields)
5628 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
5629 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
5630 (read_struct_type): Update.
5632 2019-03-06 Tom Tromey <tom@tromey.com>
5634 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
5635 * common/filestuff.h (make_cleanup_close): Don't declare.
5636 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
5639 2019-03-06 Tom Tromey <tom@tromey.com>
5641 * solib-aix.c: Use make_scope_exit.
5643 2019-03-06 Tom Tromey <tom@tromey.com>
5645 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
5646 Use make_scope_exit.
5648 2019-03-06 Tom Tromey <tom@tromey.com>
5650 * solib-svr4.c (disable_probes_interface): Remove parameter.
5651 (svr4_handle_solib_event): Use make_scope_exit.
5653 2019-03-06 Tom Tromey <tom@tromey.com>
5655 * remote.c (struct stop_reply_deleter): Remove.
5656 (stop_reply_up): Update.
5657 (struct stop_reply): Derive from notif_event. Don't typedef.
5658 <regcache>: Now a std::vector.
5659 (stop_reply_xfree): Remove.
5660 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
5661 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
5662 (remote_target::discard_pending_stop_replies): Use delete.
5663 (remote_target::remote_parse_stop_reply): Update.
5664 (remote_target::process_stop_reply): Update.
5665 * remote-notif.h (struct notif_event): Add virtual destructor.
5666 Remove "dtr" member.
5667 (struct notif_client) <alloc_event>: Return a unique_ptr.
5668 (notif_event_xfree): Don't declare.
5669 (notif_event_up): New typedef.
5670 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
5671 (notif_event_xfree, do_notif_event_xfree): Remove.
5672 (remote_notif_state_xfree): Update.
5674 2019-03-06 Tom Tromey <tom@tromey.com>
5676 * infrun.c (displaced_step_clear_cleanup): Now a
5677 forward_scope_exit type.
5678 (displaced_step_prepare_throw): Update.
5679 (displaced_step_fixup): Update.
5681 2019-03-06 Tom Tromey <tom@tromey.com>
5683 * inferior.h (class inferior): Update comment.
5684 * gdbthread.h (class thread_info): Update comment.
5686 2019-03-06 Joel Brobecker <brobecker@adacore.com>
5687 Tom Tromey <tom@tromey.com>
5689 * stabsread.h (struct stab_section_list): Remove.
5690 (coffstab_build_psymtabs): Update.
5691 * dbxread.c (symbuf_sections): Now a std::vector.
5692 (sect_idx): New global.
5693 (fill_symbuf): Update.
5694 (coffstab_build_psymtabs): Change type of stabsects parameter.
5696 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
5698 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
5699 (coff_locate_sections): Update.
5700 (coff_symfile_read): Remove cleanups. Update.
5701 (init_stringtab): Add storage parameter.
5702 (free_stringtab, free_stringtab_cleanup): Remove.
5703 (init_lineno): Add storage parameter.
5704 (free_linetab, free_linetab_cleanup): Remove.
5706 2019-03-06 Pedro Alves <palves@redhat.com>
5708 * linux-fork.c (fork_info::clobber_regs): Delete.
5709 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
5710 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
5712 (scoped_switch_fork_info::scoped_switch_fork_info)
5713 (checkpoint_command, linux_fork_context): Adjust
5714 fork_save_infrun_state calls.
5716 2019-03-06 Pedro Alves <palves@redhat.com>
5718 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
5719 (inf_has_multiple_threads): Return 'bool' and rewrite using
5720 inferior_info::threads().
5722 2019-03-06 Pedro Alves <palves@redhat.com>
5724 * linux-fork.c: Include <list>.
5725 (fork_list): Now a std::list instance.
5726 (fork_info): Add ctor, dtor, and in-class initialize all fields.
5727 (forks_exist_p, find_last_fork): Adjust.
5731 (free_fork): Delete, folded into fork_info::~fork_info().
5732 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
5734 (init_fork_list): Delete.
5735 (linux_fork_killall, linux_fork_mourn_inferior)
5736 (linux_fork_detach, info_checkpoints_command): Adjust.
5737 (_initialize_linux_fork): No longer call init_fork_list.
5739 2019-03-06 Pedro Alves <palves@redhat.com>
5741 * linux-fork.c (new_fork): New, split out of ...
5742 (add_fork): ... this. Return void. Move "first fork" special
5743 case from here, to ...
5744 (checkpoint_command): ... here.
5745 * linux-linux.h (add_fork): Return void.
5747 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5749 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
5751 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5752 Chris January <chris.january@arm.com>
5753 David Lecomber <david.lecomber@arm.com>
5755 * f-exp.y: New token, UNOP_INTRINSIC.
5756 (exp): New pattern using UNOP_INTRINSIC token.
5757 (f77_keywords): Add 'abs' keyword.
5758 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
5759 (value_from_host_double): New function.
5760 (evaluate_subexp_f): Support UNOP_ABS.
5762 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5764 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
5767 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5769 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
5770 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
5771 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
5773 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5775 * f-exp.y (convert_to_kind_type): Handle more type kinds.
5777 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5778 Chris January <chris.january@arm.com>
5780 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
5781 * f-exp.y: Define 'KIND' token.
5782 (exp): New pattern for KIND expressions.
5783 (ptype): Handle types with a kind extension.
5784 (direct_abs_decl): Extend to spot kind extensions.
5785 (f77_keywords): Add 'kind' to the list.
5786 (push_kind_type): New function.
5787 (convert_to_kind_type): New function.
5788 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
5789 * parse.c (operator_length_standard): Likewise.
5790 * parser-defs.h (enum type_pieces): Add tp_kind.
5791 * std-operator.def: Add UNOP_KIND.
5793 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5795 * f-exp.y (f_parse): Set yydebug.
5797 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5799 * f-lang.c (evaluate_subexp_f): New function.
5800 (exp_descriptor_f): New global.
5801 (f_language_defn): Use exp_descriptor_f instead of
5802 exp_descriptor_standard.
5804 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5806 * f-exp.y (struct token): Add comments.
5807 (dot_ops): Remove uppercase versions and the end marker.
5808 (f77_keywords): Likewise.
5809 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
5810 entries in the dot_ops array are case insensitive, and use
5811 strncasecmp to compare strings. Also some whitespace cleanup in
5812 this area. Similar for the f77_keywords array, except entries in
5813 this list might be case sensitive.
5815 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5817 * f-exp.y (struct f77_boolean_val): Add comments.
5818 (boolean_values): Remove uppercase versions, and end marker.
5819 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
5820 and use strncasecmp to achieve case insensitivity. Additionally,
5821 perform whitespace cleanup around this code.
5823 2019-03-06 Tom Tromey <tromey@adacore.com>
5825 * remote-sim.c (gdbsim_target_open): Use result of
5828 2019-03-06 Richard Bunt <richard.bunt@arm.com>
5829 Dirk Schubert <dirk.schubert@arm.com>
5830 Chris January <chris.january@arm.com>
5832 * eval.c (evaluate_subexp_standard): Call Fortran argument
5834 * f-lang.c (struct value): A value which can be passed into a
5835 Fortran function call.
5836 (fortran_argument_convert): Wrap Fortran arguments in a pointer
5838 (struct type): Value ready for a Fortran function call.
5839 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
5841 * f-lang.h (fortran_argument_convert): Declaration.
5842 (fortran_preserve_arg_pointer): Declaration.
5843 * infcall.c (value_arg_coerce): Call Fortran argument logic.
5845 2019-03-05 Tom Tromey <tromey@adacore.com>
5847 * python/py-prettyprint.c (print_string_repr): Remove #if.
5848 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
5850 2019-03-05 Tom Tromey <tromey@adacore.com>
5852 * target.c (the_dummy_target): Move later. Change type to
5854 (initialize_targets): Don't initialize the_dummy_target.
5856 2019-03-05 Tom Tromey <tromey@adacore.com>
5858 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
5859 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
5861 2019-03-05 Tom Tromey <tromey@adacore.com>
5863 * windows-nat.c (windows_nat_target::attach)
5864 (windows_nat_target::detach): Don't call gdb_flush.
5865 * valprint.c (generic_val_print, val_print, val_print_string):
5866 Don't call gdb_flush.
5867 * utils.c (defaulted_query): Don't call gdb_flush.
5868 * typeprint.c (print_type_scalar): Don't call gdb_flush.
5869 * target.c (target_announce_detach): Don't call gdb_flush.
5870 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
5871 * remote.c (extended_remote_target::attach): Don't call
5873 * procfs.c (procfs_target::detach): Don't call gdb_flush.
5874 * printcmd.c (do_examine): Don't call gdb_flush.
5875 (info_display_command): Don't call gdb_flush.
5876 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
5877 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
5878 * memattr.c (info_mem_command): Don't call gdb_flush.
5879 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
5880 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
5881 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
5882 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
5883 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
5884 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
5885 (gnu_nat_target::detach): Don't call gdb_flush.
5886 * f-valprint.c (f_val_print): Don't call gdb_flush.
5887 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
5888 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
5889 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
5891 * c-valprint.c (c_val_print): Don't call gdb_flush.
5892 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
5894 2019-03-05 Tom Tromey <tromey@adacore.com>
5896 * varobj.c (update_dynamic_varobj_children): Update.
5897 (install_default_visualizer): Use reset, not release.
5898 * value.c (set_internalvar): Update.
5899 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
5900 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
5901 ATTRIBUTE_UNUSED_RESULT.
5903 2019-03-05 Tom Tromey <tromey@adacore.com>
5905 * remote.c (class scoped_remote_fd) <release>: Add
5906 ATTRIBUTE_UNUSED_RESULT.
5908 2019-03-05 Tom Tromey <tromey@adacore.com>
5910 * macroexp.c (struct macro_buffer) <release>: Add
5911 ATTRIBUTE_UNUSED_RESULT.
5913 2019-03-05 Tom Tromey <tromey@adacore.com>
5915 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
5916 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
5917 ATTRIBUTE_UNUSED_RESULT.
5919 2019-03-05 Tom Tromey <tromey@adacore.com>
5921 * common/scoped_fd.h (class scoped_fd) <release>: Add
5922 ATTRIBUTE_UNUSED_RESULT.
5924 2019-03-05 Tom Tromey <tromey@adacore.com>
5926 * parser-defs.h (struct parser_state) <release>: Add
5927 ATTRIBUTE_UNUSED_RESULT.
5929 2019-03-05 Tom Tromey <tromey@adacore.com>
5931 * utils.h (class gdb_argv) <release>: Add
5932 ATTRIBUTE_UNUSED_RESULT.
5933 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
5935 2019-03-02 Eli Zaretskii <eliz@gnu.org>
5937 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
5938 for-loop range, to avoid compiler warnings.
5940 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
5941 avoid compiler warnings about unused variables.
5943 * NEWS: Mention end of support for native debugging on MS-Windows
5947 * common/netstuff.c:
5948 * gdbserver/gdbreplay.c
5949 * gdbserver/remote-utils.c:
5951 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
5952 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
5953 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
5954 'getaddrinfo' and 'freeaddrinfo' were not available before
5955 Windows XP, and mingw.org's MinGW headers by default define
5956 _WIN32_WINNT to 0x500.
5958 2019-03-01 Gary Benson <gbenson@redhat.com>
5960 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
5962 2019-02-28 Brian Vandenberg <phantall@gmail.com>
5963 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5966 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
5967 set_sigint_trap, clear_sigint_trap.
5969 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5971 * target.c (target_detach): Clear the regcache and the
5974 2019-02-27 Pedro Alves <palves@redhat.com>
5976 * utils.c (set_screen_size): When we cap the height/width sizes,
5977 tweak the corresponding command variable to show "unlimited":
5979 2019-02-27 Saagar Jha <saagar@saagarjha.com>
5980 Pedro Alves <palves@redhat.com>
5982 * utils.c (set_screen_size): Reduce "infinite" rows and columns
5983 before calling rl_set_screen_size.
5985 2019-02-27 Tom Tromey <tromey@adacore.com>
5987 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
5989 * python/py-value.c: Remove Python 2.4 workaround.
5990 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
5992 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
5993 Python 2.4 workaround.
5994 * python/python-internal.h: Remove Python 2.4 comment.
5995 (Py_ssize_t): Don't define.
5996 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
5997 (gdb_Py_DECREF): Remove Python 2.4 workaround.
5998 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
5999 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
6000 * python/python.c (do_start_initialization): Remove Python 2.4
6002 * python/py-prettyprint.c (class dummy_python_frame): Remove.
6003 (print_children): Remove Python 2.4 workaround.
6004 * python/py-inferior.c (buffer_procs): Remove Python 2.4
6006 (CHARBUFFERPROC_NAME): Remove.
6007 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
6008 Python 2.4 workaround.
6010 2019-02-27 Kevin Buettner <kevinb@redhat.com>
6012 * NEWS: Note minimum Python version.
6014 2019-02-27 Kevin Buettner <kevinb@redhat.com>
6016 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
6017 code from these functions. Remove corresponding ifdefs. Use
6018 Py_buffer_up instead of explicit calls to PyBuffer_Release.
6019 Remove gotos and target of gotos.
6020 (infpy_search_memory): Likewise.
6022 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6024 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
6025 (hppa_gdbarch_init): Don't register deleted functions with
6028 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6030 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
6031 (h8300_unwind_sp): Delete.
6032 (h8300_dummy_id): Delete.
6033 (h8300_gdbarch_init): Don't register deleted functions with
6036 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6038 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
6039 (ft32_unwind_pc): Delete.
6040 (ft32_unwind_sp): Delete.
6041 (ft32_gdbarch_init): Don't register deleted functions with
6044 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6046 * gdb/frv-tdep.c (frv_dummy_id): Delete.
6047 (frv_unwind_pc): Delete.
6048 (frv_unwind_sp): Delete.
6049 (frv_gdbarch_init): Don't register deleted functions with
6052 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6054 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
6055 (riscv_unwind_pc): Delete.
6056 (riscv_unwind_sp): Delete.
6057 (riscv_gdbarch_init): Don't register deleted functions with
6060 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6062 * gdb/csky-tdep.c (csky_dummy_id): Delete.
6063 (csky_unwind_pc): Delete.
6064 (csky_unwind_sp): Delete.
6065 (csky_gdbarch_init): Don't register deleted functions with
6068 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6070 * gdb/cris-tdep.c (cris_dummy_id): Delete.
6071 (cris_unwind_pc): Delete.
6072 (cris_unwind_sp): Delete.
6073 (cris_gdbarch_init): Don't register deleted functions with
6076 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6078 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
6079 (bfin_unwind_pc): Delete.
6080 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
6082 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6084 * gdb/arm-tdep.c (arm_dummy_id): Delete.
6085 (arm_unwind_pc): Delete.
6086 (arm_unwind_sp): Delete.
6087 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
6089 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6091 * gdb/arc-tdep.c (arc_dummy_id): Delete.
6092 (arc_unwind_pc): Delete.
6093 (arc_unwind_sp): Delete.
6094 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
6096 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6098 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
6099 (alpha_unwind_pc): Delete.
6100 (alpha_gdbarch_init): Don't register deleted functions with
6103 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6105 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
6106 (aarch64_unwind_pc): Delete.
6107 (aarch64_unwind_sp): Delete.
6108 (aarch64_gdbarch_init): Don't register deleted functions with
6111 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6113 * gdbtypes.c (type_align): Don't consider static members when
6114 computing structure alignment.
6116 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6118 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
6119 return 0 for other types.
6120 * arch-utils.c (default_type_align): Always return 0.
6121 * gdbarch.h: Regenerate.
6122 * gdbarch.sh (type_align): Extend comment.
6123 * gdbtypes.c (type_align): Add additional comments, always call
6124 gdbarch_type_align before applying the default rules.
6125 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
6126 generic code will then apply a suitable default.
6127 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
6128 types, return 0 for other types.
6130 2019-02-27 Joel Brobecker <brobecker@adacore.com>
6132 * NEWS: Create a new section for the next release branch.
6133 Rename the section of the current branch, now that it has
6136 2019-02-27 Joel Brobecker <brobecker@adacore.com>
6138 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
6139 * version.in: Bump version to 8.3.50.DATE-git.
6141 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
6143 * aix-thread.c (ptid_cmp): Remove unused variable.
6144 (get_signaled_thread): Likewise.
6145 (store_regs_user_thread): Likewise.
6146 (store_regs_kernel_thread): Likewise.
6147 (fetch_regs_kernel_thread): Remove shadowed variable.
6149 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
6151 * features/riscv/32bit-cpu.xml: Add register numbers.
6152 * features/riscv/32bit-fpu.c: Regenerate.
6153 * features/riscv/32bit-fpu.xml: Add register numbers.
6154 * features/riscv/64bit-cpu.xml: Add register numbers.
6155 * features/riscv/64bit-fpu.c: Regenerate.
6156 * features/riscv/64bit-fpu.xml: Add register numbers.
6158 2019-02-26 Kevin Buettner <kevinb@redhat.com>
6160 * NEWS: Mention two argument form of gdb.Value constructor.
6161 * python/py-value.c (convert_buffer_and_type_to_value): New
6163 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
6164 Add support for handling an optional second argument. Call
6165 convert_buffer_and_type_to_value as appropriate.
6166 * python/python-internal.h (Py_buffer_deleter): New struct.
6167 (Py_buffer_up): New typedef.
6169 2019-02-25 John Baldwin <jhb@FreeBSD.org>
6171 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
6172 instead of releasing ownership.
6174 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
6176 * dwarf2read.c (open_and_init_dwp_file): Call
6177 elf_numsections instead of bfd_count_sections to initialize
6178 dwp_file->num_sections.
6180 2019-02-25 Tom Tromey <tromey@adacore.com>
6182 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
6184 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
6186 * gcore.in: Add '--readnever' option when invoking GDB.
6188 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6190 * MAINTAINERS: Update my email address.
6192 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6194 * build-id.c (build_id_to_debug_bfd_1): New function.
6195 (build_id_to_debug_bfd): Look for separate debug file in
6198 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
6200 * gdbarch.sh: Update the copyright year range that is placed into
6203 2019-02-22 Keith Seitz <keiths@redhat.com>
6206 * linespec.c (create_sals_line_offset): Search for the default
6207 symtab's filename instead of its fullname.
6209 2019-02-21 Alan Hayward <alan.hayward@arm.com>
6211 * NEWS: Update style defaults.
6213 2019-02-21 Alan Hayward <alan.hayward@arm.com>
6215 * main.c (captured_main_1): Disable styling in batch mode.
6217 2019-02-20 Tom Tromey <tom@tromey.com>
6219 * symtab.c (symtab_symbol_info): Fix typos.
6221 2019-02-20 Tom Tromey <tromey@adacore.com>
6223 * findcmd.c (_initialize_mem_search): Use upper case for
6224 metasyntactic variables.
6226 2019-02-20 Alan Hayward <alan.hayward@arm.com>
6228 * aarch64-tdep.c (aarch64_add_reggroups): New function.
6229 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
6231 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
6233 * top.h (source_file_name): Change to std::string.
6234 * top.c (source_file_name): Likewise.
6235 (command_line_input): Adjust.
6236 * cli/cli-script.c (script_from_file): Adjust.
6238 2019-02-19 Tom Tromey <tromey@adacore.com>
6240 * ravenscar-thread.c
6241 (ravenscar_thread_target::update_thread_list): Don't call
6242 ada_build_task_list.
6243 * ada-lang.h (ada_build_task_list): Don't declare.
6244 * ada-tasks.c (struct ada_tasks_inferior_data)
6245 <task_list_valid_p>: Now bool.
6246 (read_known_tasks, ada_task_list_changed)
6247 (ada_tasks_invalidate_inferior_data): Update.
6248 (read_known_tasks_array): Return bool.
6249 (read_known_tasks_list): Likewise.
6250 (read_known_tasks): Return void.
6251 (ada_build_task_list): Now static.
6253 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
6255 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
6256 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
6258 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6260 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
6261 variant for ada_tasks_pspace_data_handle and
6262 ada_tasks_inferior_data_handle.
6263 (ada_tasks_pspace_data_cleanup): New function.
6264 (ada_tasks_inferior_data_cleanup): New function.
6266 2019-02-17 Tom Tromey <tom@tromey.com>
6268 * macrotab.h (macro_source_fullname): Return a std::string.
6269 * macrotab.c (macro_include, check_for_redefinition)
6270 (macro_undef, macro_lookup_definition, foreach_macro)
6271 (foreach_macro_in_scope): Update.
6272 (macro_source_fullname): Return a std::string.
6273 * macrocmd.c (show_pp_source_pos): Update.
6275 2019-02-17 Tom Tromey <tom@tromey.com>
6277 * macrocmd.c (show_pp_source_pos): Style the file names.
6279 2019-02-17 Tom Tromey <tom@tromey.com>
6282 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
6284 2019-02-17 Tom Tromey <tom@tromey.com>
6286 * ada-lang.c (user_select_syms): Use filtered printing.
6287 * utils.c (wrap_style): New global.
6288 (desired_style): Remove.
6289 (emit_style_escape): Add stream parameter.
6290 (set_output_style, reset_terminal_style, prompt_for_continue):
6292 (flush_wrap_buffer): Only flush gdb_stdout.
6293 (wrap_here): Set wrap_style.
6294 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
6295 treat escape sequences as a character. Change when wrap buffer is
6297 (fputs_styled): Do not set the output style when the default is
6299 * ui-style.h (struct ui_file_style) <is_default>: New method.
6300 * source.c (print_source_lines_base): Emit escape sequences in one
6303 2019-02-17 Joel Brobecker <brobecker@adacore.com>
6305 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
6306 integers and enumeration types.
6308 2019-02-17 Joel Brobecker <brobecker@adacore.com>
6310 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
6311 instead of lookup_symbol_in_language
6312 (do_exact_match): New function.
6313 (ada_get_symbol_name_matcher): Return do_exact_match when
6314 doing a verbatim match.
6316 2019-02-15 Tom Tromey <tromey@adacore.com>
6318 * ravenscar-thread.c (ravenscar_thread_target::resume)
6319 (ravenscar_thread_target::wait): Special case wildcard requests.
6321 2019-02-15 Tom Tromey <tromey@adacore.com>
6323 * ravenscar-thread.c (base_ptid): Remove.
6324 (struct ravenscar_thread_target) <close>: New method.
6325 <m_base_ptid>: New member.
6326 <update_inferior_ptid, active_task, task_is_currently_active,
6327 runtime_initialized>: Declare methods.
6328 <ravenscar_thread_target>: Add constructor.
6329 (ravenscar_thread_target::task_is_currently_active)
6330 (ravenscar_thread_target::update_inferior_ptid)
6331 (ravenscar_runtime_initialized): Rename. Now methods.
6332 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
6333 (ravenscar_thread_target::update_thread_list): Update.
6334 (ravenscar_thread_target::active_task): Now method.
6335 (ravenscar_thread_target::store_registers)
6336 (ravenscar_thread_target::prepare_to_store)
6337 (ravenscar_thread_target::prepare_to_store)
6338 (ravenscar_thread_target::mourn_inferior): Update.
6339 (ravenscar_inferior_created): Use "new" to create target.
6340 (ravenscar_thread_target::get_ada_task_ptid): Update.
6341 (_initialize_ravenscar): Don't initialize base_ptid.
6342 (ravenscar_ops): Remove global.
6344 2019-02-15 Tom Tromey <tromey@adacore.com>
6346 * target.h (push_target): Declare new overload.
6347 * target.c (push_target): New overload, taking an rvalue reference.
6348 * remote.c (remote_target::open_1): Use push_target overload.
6349 * corelow.c (core_target_open): Use push_target overload.
6351 2019-02-15 Tom Tromey <tromey@adacore.com>
6353 * ravenscar-thread.c (is_ravenscar_task)
6354 (ravenscar_task_is_currently_active): Return bool.
6355 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
6356 (_initialize_ravenscar): Remove "(void)".
6357 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
6360 2019-02-15 Tom Tromey <tromey@adacore.com>
6362 * ravenscar-thread.c (ravenscar_runtime_initializer)
6363 (has_ravenscar_runtime, get_running_thread_id)
6364 (ravenscar_thread_target::resume): Fix indentation.
6366 2019-02-15 Tom Tromey <tromey@adacore.com>
6368 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
6369 from ravenscar_arch_ops.
6370 (sparc_ravenscar_ops::fetch_registers)
6371 (sparc_ravenscar_ops::store_registers): Now methods.
6372 (sparc_ravenscar_prepare_to_store): Remove.
6373 (sparc_ravenscar_ops): Redefine.
6374 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
6375 methods and destructor. Remove members.
6376 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
6377 (ravenscar_thread_target::store_registers)
6378 (ravenscar_thread_target::prepare_to_store): Update.
6379 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
6381 (struct ppc_ravenscar_powerpc_ops): Derive from
6383 (ppc_ravenscar_powerpc_ops::fetch_registers)
6384 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
6385 (ppc_ravenscar_powerpc_ops): Redefine.
6386 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
6387 (ppc_ravenscar_e500_ops::fetch_registers)
6388 (ppc_ravenscar_e500_ops::store_registers): Now methods.
6389 (ppc_ravenscar_e500_ops): Redefine.
6390 * aarch64-ravenscar-thread.c
6391 (aarch64_ravenscar_generic_prepare_to_store): Remove.
6392 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
6393 (aarch64_ravenscar_fetch_registers)
6394 (aarch64_ravenscar_store_registers): Now methods.
6395 (aarch64_ravenscar_ops): Redefine.
6397 2019-02-15 Tom Tromey <tromey@adacore.com>
6399 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
6400 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6401 (ravenscar_thread_target::stopped_by_watchpoint)
6402 (ravenscar_thread_target::stopped_data_address)
6403 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
6405 2019-02-15 Tom Tromey <tromey@adacore.com>
6407 * ravenscar-thread.c: Fix some typos.
6409 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6410 Tom Tromey <tromey@adacore.com>
6412 * ada-lang.c (ada_exception_sal): Change addr_string to a
6414 (create_ada_exception_catchpoint): Update.
6416 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6417 Tom Tromey <tromey@adacore.com>
6419 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
6420 (bp_location_ops): Remove.
6421 (base_breakpoint_allocate_location): Update.
6422 (free_bp_location): Update.
6423 * ada-lang.c (class ada_catchpoint_location)
6424 <ada_catchpoint_location>: Remove ops parameter.
6425 (ada_catchpoint_location_dtor): Remove.
6426 (ada_catchpoint_location_ops): Remove.
6427 (allocate_location_exception): Update.
6428 * breakpoint.h (struct bp_location_ops): Remove.
6429 (class bp_location) <bp_location>: Remove bp_location_ops
6431 <~bp_location>: Add destructor.
6434 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
6435 Pedro Alves <palves@redhat.com>
6437 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
6440 2019-02-14 David Michael <fedora.dm0@gmail.com>
6441 Samuel Thibault <samuel.thibault@gnu.org>
6442 Thomas Schwinge <thomas@codesourcery.com>
6444 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
6445 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
6447 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
6449 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
6450 (check_empty): Use "const char *".
6452 * gnu-nat.c (gnu_nat_target::detach): Instead of
6453 'detach_inferior (pid)' call
6454 'detach_inferior (find_inferior_pid (pid))'.
6456 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
6457 'nat/fork-inferior.o'.
6458 * gnu-nat.c: #include "nat/fork-inferior.h".
6460 * gnu-nat.c (gnu_nat_target::detach): Instead of
6461 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
6462 * gnu-nat.h: #include "inf-child.h".
6463 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
6464 'i386_gnu_nat_target::fetch_registers'.
6465 (gnu_store_registers): Rename/move to
6466 'i386_gnu_nat_target::store_registers'.
6468 * config/i386/nm-i386gnu.h: Don't "#include" any files.
6469 * gnu-nat.h (mach_thread_info): New function.
6470 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
6472 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
6474 2019-02-14 Frederic Konrad <konrad@adacore.com>
6476 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
6478 2019-02-14 Joel Brobecker <brobecker@adacore.com>
6480 * windows-nat.c (windows_add_thread): Add new parameter
6481 "main_thread_p" with default value set to false. Update
6482 function documentation as well as all callers.
6483 (windows_delete_thread): Likewise.
6484 (fake_create_process): Update call to windows_add_thread.
6485 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
6486 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
6487 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
6488 call to windows_delete_thread.
6490 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
6492 * MAINTAINERS: Add Andrew Burgess as global maintainer.
6494 2019-02-12 John Baldwin <jhb@FreeBSD.org>
6496 * symfile.c (find_separate_debug_file): Use canonical path of
6497 sysroot with child_path instead of gdb_sysroot if it is valid.
6499 2019-02-12 John Baldwin <jhb@FreeBSD.org>
6501 * symfile.c (find_separate_debug_file): Use child_path to
6502 determine if an object file is under a sysroot.
6504 2019-02-12 John Baldwin <jhb@FreeBSD.org>
6506 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6507 unittests/child-path-selftests.c.
6508 * common/pathstuff.c (child_path): New function.
6509 * common/pathstuff.h (child_path): New prototype.
6510 * unittests/child-path-selftests.c: New file.
6512 2019-02-12 John Baldwin <jhb@FreeBSD.org>
6514 * symfile.c (find_separate_debug_file): Look for separate debug
6515 files in debug directories under the sysroot.
6517 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6519 * symtab.h (struct minimal_symbol data_p): New const method.
6520 (struct minimal_symbol text_p): Likewise.
6521 * symtab.c (output_source_filename): Use file name style
6523 (print_symbol_info): Likewise.
6524 (print_msymbol_info): Use address style to print addresses.
6525 Use function name style to print executable text symbols.
6526 (expand_symtab_containing_pc): Use data_p.
6527 (find_pc_sect_compunit_symtab): Likewise.
6529 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6531 * breakpoint.c (describe_other_breakpoints): Use address style
6533 (say_where): Likewise.
6535 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6537 * ada-typeprint.c (print_func_type): Print function name
6538 style to print function name.
6539 * c-typeprint.c (c_print_type_1): Likewise.
6541 2019-02-11 Alan Hayward <alan.hayward@arm.com>
6543 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
6546 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6548 * c-exp.y (direct_abs_decl): Use emplace_back to record the
6551 2019-02-10 Joel Brobecker <brobecker@adacore.com>
6553 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
6554 TYPE_CODE_REF types.
6556 2019-02-08 Jim Wilson <jimw@sifive.com>
6558 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
6559 (riscv_linux_fregset): New.
6560 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
6562 2019-02-07 Tom Tromey <tom@tromey.com>
6564 * thread.c (thread_cancel_execution_command): Update.
6565 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
6567 (struct thread_fsm_ops): Remove.
6568 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
6569 (thread_fsm_should_stop, thread_fsm_return_value)
6570 (thread_fsm_set_finished, thread_fsm_finished_p)
6571 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
6573 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
6574 * infrun.c (clear_proceed_status_thread)
6575 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
6576 (print_stop_event): Update.
6577 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
6579 (step_command_fsm_ops): Remove.
6580 (new_step_command_fsm): Remove.
6582 (step_command_fsm::should_stop): Rename from
6583 step_command_fsm_should_stop.
6584 (step_command_fsm::clean_up): Rename from
6585 step_command_fsm_clean_up.
6586 (step_command_fsm::do_async_reply_reason): Rename from
6587 step_command_fsm_async_reply_reason.
6588 (struct until_next_fsm): Inherit from thread_fsm. Add
6590 (until_next_fsm_ops): Remove.
6591 (new_until_next_fsm): Remove.
6592 (until_next_fsm::should_stop): Rename from
6593 until_next_fsm_should_stop.
6594 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
6595 (until_next_fsm::do_async_reply_reason): Rename from
6596 until_next_fsm_async_reply_reason.
6597 (struct finish_command_fsm): Inherit from thread_fsm. Add
6598 constructor. Change type of breakpoint.
6599 (finish_command_fsm_ops): Remove.
6600 (new_finish_command_fsm): Remove.
6601 (finish_command_fsm::should_stop): Rename from
6602 finish_command_fsm_should_stop.
6603 (finish_command_fsm::clean_up): Rename from
6604 finish_command_fsm_clean_up.
6605 (finish_command_fsm::return_value): Rename from
6606 finish_command_fsm_return_value.
6607 (finish_command_fsm::do_async_reply_reason): Rename from
6608 finish_command_fsm_async_reply_reason.
6609 (finish_command): Update.
6610 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
6612 (call_thread_fsm_ops): Remove.
6613 (call_thread_fsm::call_thread_fsm): Rename from
6614 new_call_thread_fsm.
6615 (call_thread_fsm::should_stop): Rename from
6616 call_thread_fsm_should_stop.
6617 (call_thread_fsm::should_notify_stop): Rename from
6618 call_thread_fsm_should_notify_stop.
6619 (run_inferior_call, call_function_by_hand_dummy): Update.
6620 * cli/cli-interp.c (should_print_stop_to_console): Update.
6621 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
6622 Add constructor. Change type of location_breakpoint,
6624 (until_break_fsm_ops): Remove.
6625 (new_until_break_fsm): Remove.
6626 (until_break_fsm::should_stop): Rename from
6627 until_break_fsm_should_stop.
6628 (until_break_fsm::clean_up): Rename from
6629 until_break_fsm_clean_up.
6630 (until_break_fsm::do_async_reply_reason): Rename from
6631 until_break_fsm_async_reply_reason.
6632 (until_break_command): Update.
6633 * thread-fsm.c: Remove.
6634 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
6636 2019-02-07 Tom Tromey <tom@tromey.com>
6638 * yy-remap.h: Add include guard.
6639 * xtensa-tdep.h: Add include guard.
6640 * xcoffread.h: Rename include guard.
6641 * varobj-iter.h: Add include guard.
6642 * tui/tui.h: Rename include guard.
6643 * tui/tui-winsource.h: Rename include guard.
6644 * tui/tui-wingeneral.h: Rename include guard.
6645 * tui/tui-windata.h: Rename include guard.
6646 * tui/tui-win.h: Rename include guard.
6647 * tui/tui-stack.h: Rename include guard.
6648 * tui/tui-source.h: Rename include guard.
6649 * tui/tui-regs.h: Rename include guard.
6650 * tui/tui-out.h: Rename include guard.
6651 * tui/tui-layout.h: Rename include guard.
6652 * tui/tui-io.h: Rename include guard.
6653 * tui/tui-hooks.h: Rename include guard.
6654 * tui/tui-file.h: Rename include guard.
6655 * tui/tui-disasm.h: Rename include guard.
6656 * tui/tui-data.h: Rename include guard.
6657 * tui/tui-command.h: Rename include guard.
6658 * tic6x-tdep.h: Add include guard.
6659 * target/waitstatus.h: Rename include guard.
6660 * target/wait.h: Rename include guard.
6661 * target/target.h: Rename include guard.
6662 * target/resume.h: Rename include guard.
6663 * target-float.h: Rename include guard.
6664 * stabsread.h: Add include guard.
6665 * rs6000-tdep.h: Add include guard.
6666 * riscv-fbsd-tdep.h: Add include guard.
6667 * regformats/regdef.h: Rename include guard.
6668 * record.h: Rename include guard.
6669 * python/python.h: Rename include guard.
6670 * python/python-internal.h: Rename include guard.
6671 * python/py-stopevent.h: Rename include guard.
6672 * python/py-ref.h: Rename include guard.
6673 * python/py-record.h: Rename include guard.
6674 * python/py-record-full.h: Rename include guard.
6675 * python/py-record-btrace.h: Rename include guard.
6676 * python/py-instruction.h: Rename include guard.
6677 * python/py-events.h: Rename include guard.
6678 * python/py-event.h: Rename include guard.
6679 * procfs.h: Add include guard.
6680 * proc-utils.h: Add include guard.
6681 * p-lang.h: Add include guard.
6682 * or1k-tdep.h: Rename include guard.
6683 * observable.h: Rename include guard.
6684 * nto-tdep.h: Rename include guard.
6685 * nat/x86-linux.h: Rename include guard.
6686 * nat/x86-linux-dregs.h: Rename include guard.
6687 * nat/x86-gcc-cpuid.h: Add include guard.
6688 * nat/x86-dregs.h: Rename include guard.
6689 * nat/x86-cpuid.h: Rename include guard.
6690 * nat/ppc-linux.h: Rename include guard.
6691 * nat/mips-linux-watch.h: Rename include guard.
6692 * nat/linux-waitpid.h: Rename include guard.
6693 * nat/linux-ptrace.h: Rename include guard.
6694 * nat/linux-procfs.h: Rename include guard.
6695 * nat/linux-osdata.h: Rename include guard.
6696 * nat/linux-nat.h: Rename include guard.
6697 * nat/linux-namespaces.h: Rename include guard.
6698 * nat/linux-btrace.h: Rename include guard.
6699 * nat/glibc_thread_db.h: Rename include guard.
6700 * nat/gdb_thread_db.h: Rename include guard.
6701 * nat/gdb_ptrace.h: Rename include guard.
6702 * nat/fork-inferior.h: Rename include guard.
6703 * nat/amd64-linux-siginfo.h: Rename include guard.
6704 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
6705 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
6706 * nat/aarch64-linux.h: Rename include guard.
6707 * nat/aarch64-linux-hw-point.h: Rename include guard.
6708 * mn10300-tdep.h: Add include guard.
6709 * mips-linux-tdep.h: Add include guard.
6710 * mi/mi-parse.h: Rename include guard.
6711 * mi/mi-out.h: Rename include guard.
6712 * mi/mi-main.h: Rename include guard.
6713 * mi/mi-interp.h: Rename include guard.
6714 * mi/mi-getopt.h: Rename include guard.
6715 * mi/mi-console.h: Rename include guard.
6716 * mi/mi-common.h: Rename include guard.
6717 * mi/mi-cmds.h: Rename include guard.
6718 * mi/mi-cmd-break.h: Rename include guard.
6719 * m2-lang.h: Add include guard.
6720 * location.h: Rename include guard.
6721 * linux-record.h: Rename include guard.
6722 * linux-nat.h: Add include guard.
6723 * linux-fork.h: Add include guard.
6724 * i386-darwin-tdep.h: Rename include guard.
6725 * hppa-linux-offsets.h: Add include guard.
6726 * guile/guile.h: Rename include guard.
6727 * guile/guile-internal.h: Rename include guard.
6728 * gnu-nat.h: Rename include guard.
6729 * gdb-stabs.h: Rename include guard.
6730 * frv-tdep.h: Add include guard.
6731 * f-lang.h: Add include guard.
6732 * event-loop.h: Add include guard.
6733 * darwin-nat.h: Rename include guard.
6734 * cp-abi.h: Rename include guard.
6735 * config/sparc/nm-sol2.h: Rename include guard.
6736 * config/nm-nto.h: Rename include guard.
6737 * config/nm-linux.h: Add include guard.
6738 * config/i386/nm-i386gnu.h: Rename include guard.
6739 * config/djgpp/nl_types.h: Rename include guard.
6740 * config/djgpp/langinfo.h: Rename include guard.
6741 * compile/gcc-cp-plugin.h: Add include guard.
6742 * compile/gcc-c-plugin.h: Add include guard.
6743 * compile/compile.h: Rename include guard.
6744 * compile/compile-object-run.h: Rename include guard.
6745 * compile/compile-object-load.h: Rename include guard.
6746 * compile/compile-internal.h: Rename include guard.
6747 * compile/compile-cplus.h: Rename include guard.
6748 * compile/compile-c.h: Rename include guard.
6749 * common/xml-utils.h: Rename include guard.
6750 * common/x86-xstate.h: Rename include guard.
6751 * common/version.h: Rename include guard.
6752 * common/vec.h: Rename include guard.
6753 * common/tdesc.h: Rename include guard.
6754 * common/selftest.h: Rename include guard.
6755 * common/scoped_restore.h: Rename include guard.
6756 * common/scoped_mmap.h: Rename include guard.
6757 * common/scoped_fd.h: Rename include guard.
6758 * common/safe-iterator.h: Rename include guard.
6759 * common/run-time-clock.h: Rename include guard.
6760 * common/refcounted-object.h: Rename include guard.
6761 * common/queue.h: Rename include guard.
6762 * common/ptid.h: Rename include guard.
6763 * common/print-utils.h: Rename include guard.
6764 * common/preprocessor.h: Rename include guard.
6765 * common/pathstuff.h: Rename include guard.
6766 * common/observable.h: Rename include guard.
6767 * common/netstuff.h: Rename include guard.
6768 * common/job-control.h: Rename include guard.
6769 * common/host-defs.h: Rename include guard.
6770 * common/gdb_wait.h: Rename include guard.
6771 * common/gdb_vecs.h: Rename include guard.
6772 * common/gdb_unlinker.h: Rename include guard.
6773 * common/gdb_unique_ptr.h: Rename include guard.
6774 * common/gdb_tilde_expand.h: Rename include guard.
6775 * common/gdb_sys_time.h: Rename include guard.
6776 * common/gdb_string_view.h: Rename include guard.
6777 * common/gdb_splay_tree.h: Rename include guard.
6778 * common/gdb_setjmp.h: Rename include guard.
6779 * common/gdb_ref_ptr.h: Rename include guard.
6780 * common/gdb_optional.h: Rename include guard.
6781 * common/gdb_locale.h: Rename include guard.
6782 * common/gdb_assert.h: Rename include guard.
6783 * common/filtered-iterator.h: Rename include guard.
6784 * common/filestuff.h: Rename include guard.
6785 * common/fileio.h: Rename include guard.
6786 * common/environ.h: Rename include guard.
6787 * common/common-utils.h: Rename include guard.
6788 * common/common-types.h: Rename include guard.
6789 * common/common-regcache.h: Rename include guard.
6790 * common/common-inferior.h: Rename include guard.
6791 * common/common-gdbthread.h: Rename include guard.
6792 * common/common-exceptions.h: Rename include guard.
6793 * common/common-defs.h: Rename include guard.
6794 * common/common-debug.h: Rename include guard.
6795 * common/cleanups.h: Rename include guard.
6796 * common/buffer.h: Rename include guard.
6797 * common/btrace-common.h: Rename include guard.
6798 * common/break-common.h: Rename include guard.
6799 * cli/cli-utils.h: Rename include guard.
6800 * cli/cli-style.h: Rename include guard.
6801 * cli/cli-setshow.h: Rename include guard.
6802 * cli/cli-script.h: Rename include guard.
6803 * cli/cli-interp.h: Rename include guard.
6804 * cli/cli-decode.h: Rename include guard.
6805 * cli/cli-cmds.h: Rename include guard.
6806 * charset-list.h: Add include guard.
6807 * buildsym-legacy.h: Rename include guard.
6808 * bfin-tdep.h: Add include guard.
6809 * ax.h: Rename include guard.
6810 * arm-linux-tdep.h: Add include guard.
6811 * arm-fbsd-tdep.h: Add include guard.
6812 * arch/xtensa.h: Rename include guard.
6813 * arch/tic6x.h: Add include guard.
6814 * arch/i386.h: Add include guard.
6815 * arch/arm.h: Rename include guard.
6816 * arch/arm-linux.h: Rename include guard.
6817 * arch/arm-get-next-pcs.h: Rename include guard.
6818 * arch/amd64.h: Add include guard.
6819 * arch/aarch64-insn.h: Rename include guard.
6820 * arch-utils.h: Rename include guard.
6821 * annotate.h: Add include guard.
6822 * amd64-darwin-tdep.h: Rename include guard.
6823 * aarch64-linux-tdep.h: Add include guard.
6824 * aarch64-fbsd-tdep.h: Add include guard.
6825 * aarch32-linux-nat.h: Add include guard.
6827 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6829 * macrotab.c (macro_define_internal): New function that
6830 factorizes macro_define_object_internal and macro_define_function
6832 (macro_define_object_internal): Use macro_define_internal.
6833 (macro_define_function): Likewise.
6835 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6837 * macrocmd.c (extract_identifier): Return
6838 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
6841 2019-02-06 John Baldwin <jhb@FreeBSD.org>
6843 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
6845 2019-02-05 Tom Tromey <tom@tromey.com>
6847 * target.c (target_stack::unpush): Move assertion earlier.
6849 2019-01-30 Tom Tromey <tom@tromey.com>
6852 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
6853 (gdbpy_parse_and_eval): Likewise.
6854 * python/python-internal.h (gdbpy_allow_threads): New class.
6856 2019-01-28 John Baldwin <jhb@FreeBSD.org>
6858 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
6859 (aarch64_fbsd_fpregmap): Move earlier.
6860 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
6861 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6862 instead of individual calls to trad_frame_set_reg_addr.
6863 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
6865 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
6866 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6867 instead of individual calls to trad_frame_set_reg_addr.
6869 2019-01-28 Alan Hayward <alan.hayward@arm.com>
6871 * CONTRIBUTE: Replace contribution list with wiki link.
6873 2019-01-25 Tom Tromey <tom@tromey.com>
6875 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
6877 2019-01-25 Tom Tromey <tom@tromey.com>
6879 * xtensa-linux-nat.c: Fix common/ includes.
6880 * xml-support.h: Fix common/ includes.
6881 * xml-support.c: Fix common/ includes.
6882 * x86-linux-nat.c: Fix common/ includes.
6883 * windows-nat.c: Fix common/ includes.
6884 * varobj.h: Fix common/ includes.
6885 * varobj.c: Fix common/ includes.
6886 * value.c: Fix common/ includes.
6887 * valops.c: Fix common/ includes.
6888 * utils.c: Fix common/ includes.
6889 * unittests/xml-utils-selftests.c: Fix common/ includes.
6890 * unittests/utils-selftests.c: Fix common/ includes.
6891 * unittests/unpack-selftests.c: Fix common/ includes.
6892 * unittests/tracepoint-selftests.c: Fix common/ includes.
6893 * unittests/style-selftests.c: Fix common/ includes.
6894 * unittests/string_view-selftests.c: Fix common/ includes.
6895 * unittests/scoped_restore-selftests.c: Fix common/ includes.
6896 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
6897 * unittests/scoped_fd-selftests.c: Fix common/ includes.
6898 * unittests/rsp-low-selftests.c: Fix common/ includes.
6899 * unittests/parse-connection-spec-selftests.c: Fix common/
6901 * unittests/optional-selftests.c: Fix common/ includes.
6902 * unittests/offset-type-selftests.c: Fix common/ includes.
6903 * unittests/observable-selftests.c: Fix common/ includes.
6904 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
6905 * unittests/memrange-selftests.c: Fix common/ includes.
6906 * unittests/memory-map-selftests.c: Fix common/ includes.
6907 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
6908 * unittests/function-view-selftests.c: Fix common/ includes.
6909 * unittests/environ-selftests.c: Fix common/ includes.
6910 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
6911 * unittests/common-utils-selftests.c: Fix common/ includes.
6912 * unittests/cli-utils-selftests.c: Fix common/ includes.
6913 * unittests/array-view-selftests.c: Fix common/ includes.
6914 * ui-file.c: Fix common/ includes.
6915 * tui/tui-io.c: Fix common/ includes.
6916 * tracepoint.h: Fix common/ includes.
6917 * tracepoint.c: Fix common/ includes.
6918 * tracefile-tfile.c: Fix common/ includes.
6919 * top.h: Fix common/ includes.
6920 * top.c: Fix common/ includes.
6921 * thread.c: Fix common/ includes.
6922 * target/waitstatus.h: Fix common/ includes.
6923 * target/waitstatus.c: Fix common/ includes.
6924 * target.h: Fix common/ includes.
6925 * target.c: Fix common/ includes.
6926 * target-memory.c: Fix common/ includes.
6927 * target-descriptions.c: Fix common/ includes.
6928 * symtab.h: Fix common/ includes.
6929 * symfile.c: Fix common/ includes.
6930 * stap-probe.c: Fix common/ includes.
6931 * spu-linux-nat.c: Fix common/ includes.
6932 * sparc-nat.c: Fix common/ includes.
6933 * source.c: Fix common/ includes.
6934 * solib.c: Fix common/ includes.
6935 * solib-target.c: Fix common/ includes.
6936 * ser-unix.c: Fix common/ includes.
6937 * ser-tcp.c: Fix common/ includes.
6938 * ser-pipe.c: Fix common/ includes.
6939 * ser-base.c: Fix common/ includes.
6940 * selftest-arch.c: Fix common/ includes.
6941 * s12z-tdep.c: Fix common/ includes.
6942 * rust-exp.y: Fix common/ includes.
6943 * rs6000-aix-tdep.c: Fix common/ includes.
6944 * riscv-tdep.c: Fix common/ includes.
6945 * remote.c: Fix common/ includes.
6946 * remote-notif.h: Fix common/ includes.
6947 * remote-fileio.h: Fix common/ includes.
6948 * remote-fileio.c: Fix common/ includes.
6949 * regcache.h: Fix common/ includes.
6950 * regcache.c: Fix common/ includes.
6951 * record-btrace.c: Fix common/ includes.
6952 * python/python.c: Fix common/ includes.
6953 * python/py-type.c: Fix common/ includes.
6954 * python/py-inferior.c: Fix common/ includes.
6955 * progspace.h: Fix common/ includes.
6956 * producer.c: Fix common/ includes.
6957 * procfs.c: Fix common/ includes.
6958 * proc-api.c: Fix common/ includes.
6959 * printcmd.c: Fix common/ includes.
6960 * ppc-linux-nat.c: Fix common/ includes.
6961 * parser-defs.h: Fix common/ includes.
6962 * osdata.c: Fix common/ includes.
6963 * obsd-nat.c: Fix common/ includes.
6964 * nat/x86-linux.c: Fix common/ includes.
6965 * nat/x86-linux-dregs.c: Fix common/ includes.
6966 * nat/x86-dregs.h: Fix common/ includes.
6967 * nat/x86-dregs.c: Fix common/ includes.
6968 * nat/ppc-linux.c: Fix common/ includes.
6969 * nat/mips-linux-watch.h: Fix common/ includes.
6970 * nat/mips-linux-watch.c: Fix common/ includes.
6971 * nat/linux-waitpid.c: Fix common/ includes.
6972 * nat/linux-ptrace.h: Fix common/ includes.
6973 * nat/linux-ptrace.c: Fix common/ includes.
6974 * nat/linux-procfs.c: Fix common/ includes.
6975 * nat/linux-personality.c: Fix common/ includes.
6976 * nat/linux-osdata.c: Fix common/ includes.
6977 * nat/linux-namespaces.c: Fix common/ includes.
6978 * nat/linux-btrace.h: Fix common/ includes.
6979 * nat/linux-btrace.c: Fix common/ includes.
6980 * nat/fork-inferior.c: Fix common/ includes.
6981 * nat/amd64-linux-siginfo.c: Fix common/ includes.
6982 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
6983 * nat/aarch64-linux.c: Fix common/ includes.
6984 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
6985 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
6986 * namespace.h: Fix common/ includes.
6987 * mips-linux-tdep.c: Fix common/ includes.
6988 * minsyms.c: Fix common/ includes.
6989 * mi/mi-parse.h: Fix common/ includes.
6990 * mi/mi-main.c: Fix common/ includes.
6991 * mi/mi-cmd-env.c: Fix common/ includes.
6992 * memrange.h: Fix common/ includes.
6993 * memattr.c: Fix common/ includes.
6994 * maint.h: Fix common/ includes.
6995 * maint.c: Fix common/ includes.
6996 * main.c: Fix common/ includes.
6997 * machoread.c: Fix common/ includes.
6998 * location.c: Fix common/ includes.
6999 * linux-thread-db.c: Fix common/ includes.
7000 * linux-nat.c: Fix common/ includes.
7001 * linux-fork.c: Fix common/ includes.
7002 * inline-frame.c: Fix common/ includes.
7003 * infrun.c: Fix common/ includes.
7004 * inflow.c: Fix common/ includes.
7005 * inferior.h: Fix common/ includes.
7006 * inferior.c: Fix common/ includes.
7007 * infcmd.c: Fix common/ includes.
7008 * inf-ptrace.c: Fix common/ includes.
7009 * inf-child.c: Fix common/ includes.
7010 * ia64-linux-nat.c: Fix common/ includes.
7011 * i387-tdep.c: Fix common/ includes.
7012 * i386-tdep.c: Fix common/ includes.
7013 * i386-linux-tdep.c: Fix common/ includes.
7014 * i386-linux-nat.c: Fix common/ includes.
7015 * i386-go32-tdep.c: Fix common/ includes.
7016 * i386-fbsd-tdep.c: Fix common/ includes.
7017 * i386-fbsd-nat.c: Fix common/ includes.
7018 * guile/scm-type.c: Fix common/ includes.
7019 * guile/guile.c: Fix common/ includes.
7020 * go32-nat.c: Fix common/ includes.
7021 * gnu-nat.c: Fix common/ includes.
7022 * gdbthread.h: Fix common/ includes.
7023 * gdbarch-selftests.c: Fix common/ includes.
7024 * gdb_usleep.c: Fix common/ includes.
7025 * gdb_select.h: Fix common/ includes.
7026 * gdb_bfd.c: Fix common/ includes.
7027 * gcore.c: Fix common/ includes.
7028 * fork-child.c: Fix common/ includes.
7029 * findvar.c: Fix common/ includes.
7030 * fbsd-nat.c: Fix common/ includes.
7031 * event-top.c: Fix common/ includes.
7032 * event-loop.c: Fix common/ includes.
7033 * dwarf2read.c: Fix common/ includes.
7034 * dwarf2loc.c: Fix common/ includes.
7035 * dwarf2-frame.c: Fix common/ includes.
7036 * dwarf-index-cache.c: Fix common/ includes.
7037 * dtrace-probe.c: Fix common/ includes.
7038 * disasm-selftests.c: Fix common/ includes.
7039 * defs.h: Fix common/ includes.
7040 * csky-tdep.c: Fix common/ includes.
7041 * cp-valprint.c: Fix common/ includes.
7042 * cp-support.h: Fix common/ includes.
7043 * cp-support.c: Fix common/ includes.
7044 * corelow.c: Fix common/ includes.
7045 * completer.h: Fix common/ includes.
7046 * completer.c: Fix common/ includes.
7047 * compile/compile.c: Fix common/ includes.
7048 * compile/compile-loc2c.c: Fix common/ includes.
7049 * compile/compile-cplus-types.c: Fix common/ includes.
7050 * compile/compile-cplus-symbols.c: Fix common/ includes.
7051 * command.h: Fix common/ includes.
7052 * cli/cli-dump.c: Fix common/ includes.
7053 * cli/cli-cmds.c: Fix common/ includes.
7054 * charset.c: Fix common/ includes.
7055 * build-id.c: Fix common/ includes.
7056 * btrace.h: Fix common/ includes.
7057 * btrace.c: Fix common/ includes.
7058 * breakpoint.h: Fix common/ includes.
7059 * breakpoint.c: Fix common/ includes.
7061 (enum agent_op): Fix common/ includes.
7062 * ax-general.c (struct aop_map): Fix common/ includes.
7063 * ax-gdb.c: Fix common/ includes.
7064 * auxv.c: Fix common/ includes.
7065 * auto-load.c: Fix common/ includes.
7066 * arm-tdep.c: Fix common/ includes.
7067 * arch/riscv.c: Fix common/ includes.
7068 * arch/ppc-linux-common.c: Fix common/ includes.
7069 * arch/i386.c: Fix common/ includes.
7070 * arch/arm.c: Fix common/ includes.
7071 * arch/arm-linux.c: Fix common/ includes.
7072 * arch/arm-get-next-pcs.c: Fix common/ includes.
7073 * arch/amd64.c: Fix common/ includes.
7074 * arch/aarch64.c: Fix common/ includes.
7075 * arch/aarch64-insn.c: Fix common/ includes.
7076 * arch-utils.c: Fix common/ includes.
7077 * amd64-windows-tdep.c: Fix common/ includes.
7078 * amd64-tdep.c: Fix common/ includes.
7079 * amd64-sol2-tdep.c: Fix common/ includes.
7080 * amd64-obsd-tdep.c: Fix common/ includes.
7081 * amd64-nbsd-tdep.c: Fix common/ includes.
7082 * amd64-linux-tdep.c: Fix common/ includes.
7083 * amd64-linux-nat.c: Fix common/ includes.
7084 * amd64-fbsd-tdep.c: Fix common/ includes.
7085 * amd64-fbsd-nat.c: Fix common/ includes.
7086 * amd64-dicos-tdep.c: Fix common/ includes.
7087 * amd64-darwin-tdep.c: Fix common/ includes.
7088 * agent.c: Fix common/ includes.
7089 * ada-lang.h: Fix common/ includes.
7090 * ada-lang.c: Fix common/ includes.
7091 * aarch64-tdep.c: Fix common/ includes.
7093 2019-01-25 Tom Tromey <tom@tromey.com>
7095 * common/create-version.sh: Use common/version.h.
7097 2019-01-24 Pedro Alves <palves@redhat.com>
7099 * infrun.c (signal_stop, signal_print, signal_program)
7100 (signal_catch, signal_pass): Now arrays instead of pointers.
7101 (update_signals_program_target, do_target_resume)
7102 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
7103 * linux-nat.c (linux_nat_target::pass_signals)
7104 (linux_nat_target::create_inferior, linux_nat_target::attach):
7106 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
7107 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
7108 * procfs.c (procfs_target::pass_signals): Adjust.
7109 * record-full.c (record_full_target::resume): Adjust.
7110 * remote.c (remote_target::pass_signals)
7111 (remote_target::program_signals): Adjust.
7112 * target-debug.h (target_debug_print_signals): Now takes a
7113 gdb::array_view as parameter. Adjust.
7114 * target.h (target_ops) <pass_signals, program_signals>: Replace
7115 pointer and length parameters with gdb::array_view.
7116 (target_pass_signals, target_program_signals): Likewise.
7117 * target-delegates.c: Regenerate.
7119 2019-01-24 Pedro Alves <palves@redhat.com>
7121 * common/forward-scope-exit.h
7122 (forward_scope_exit::forward_scope_exit): Pass arguments to
7123 m_bind_function directly, instead of creating a std::bind and
7126 2019-01-24 Alan Hayward <alan.hayward@arm.com>
7128 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
7130 (pass_in_v_vfp_candidate): Likewise.
7132 2019-01-23 Tom Tromey <tom@tromey.com>
7133 Pedro Alves <palves@redhat.com>
7135 * regcache.c (class regcache_invalidator): Remove.
7136 (regcache::raw_write): Use make_scope_exit.
7138 2019-01-23 Tom Tromey <tom@tromey.com>
7140 * ui-out.h (class ui_out_emit_type): Update comment.
7142 2019-01-23 Tom Tromey <tom@tromey.com>
7144 * infrun.c (fetch_inferior_event): Update comment.
7146 2019-01-23 Tom Tromey <tom@tromey.com>
7147 Pedro Alves <palves@redhat.com>
7149 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
7151 (fetch_inferior_event): Use SCOPE_EXIT.
7154 2019-01-23 Tom Tromey <tom@tromey.com>
7155 Pedro Alves <palves@redhat.com>
7157 * infrun.c (disable_thread_events): Delete.
7158 (stop_all_threads): Use SCOPE_EXIT.
7160 2019-01-23 Tom Tromey <tom@tromey.com>
7161 Pedro Alves <palves@redhat.com>
7163 * symfile.c: Include forward-scope-exit.h.
7164 (clear_symtab_users_cleanup): Replace forward declaration with
7165 a FORWARD_SCOPE_EXIT.
7166 (syms_from_objfile_1): Use the forward_scope_exit and
7167 gdb::optional instead of cleanup_function.
7168 (reread_symbols): Use the forward_scope_exit instead of
7170 (clear_symtab_users_cleanup): Remove function.
7172 2019-01-23 Tom Tromey <tom@tromey.com>
7173 Pedro Alves <palves@redhat.com>
7175 * linux-nat.c: Include scope-exit.h.
7176 (cleanup_target_stop): Remove.
7177 (linux_nat_target::static_tracepoint_markers_by_strid): Use
7180 2019-01-23 Tom Tromey <tom@tromey.com>
7181 Pedro Alves <palves@redhat.com>
7183 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
7184 (call_function_by_hand_dummy): Use SCOPE_EXIT.
7186 2019-01-23 Tom Tromey <tom@tromey.com>
7187 Andrew Burgess <andrew.burgess@embecosm.com>
7188 Pedro Alves <palves@redhat.com>
7190 * infrun.c (fetch_inferior_event): Use scope_exit.
7191 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
7192 * top.c (execute_command): Use scope_exit.
7193 * breakpoint.c (bpstat_do_actions): Use scope_exit.
7194 * utils.c (do_bpstat_clear_actions_cleanup)
7195 (make_bpstat_clear_actions_cleanup): Remove.
7197 2019-01-23 Tom Tromey <tom@tromey.com>
7198 Pedro Alves <palves@redhat.com>
7200 * infrun.c: Include "common/scope-exit.h"
7201 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
7202 (wait_for_inferior): Use SCOPE_EXIT.
7203 (fetch_inferior_event): Use scope_exit.
7205 2019-01-23 Tom Tromey <tom@tromey.com>
7206 Pedro Alves <palves@redhat.com>
7208 * breakpoint.c (create_breakpoint): Remove cleanup.
7210 2019-01-23 Tom Tromey <tom@tromey.com>
7211 Andrew Burgess <andrew.burgess@embecosm.com>
7212 Pedro Alves <palves@redhat.com>
7214 2019-01-23 Pedro Alves <palves@redhat.com>
7216 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
7218 2019-01-23 Pedro Alves <palves@redhat.com>
7219 Andrew Burgess <andrew.burgess@embecosm.com>
7221 * gdbthread.h: Include "common/forward-scope-exit.h".
7222 (scoped_finish_thread_state): Redefine custom class in terms of
7225 2019-01-23 Pedro Alves <palves@redhat.com>
7226 Andrew Burgess <andrew.burgess@embecosm.com>
7228 * common/forward-scope-exit.h: New file.
7230 2019-01-23 Pedro Alves <palves@redhat.com>
7231 Andrew Burgess <andrew.burgess@embecosm.com>
7232 Tom Tromey <tom@tromey.com>
7234 * common/scope-exit.h: New file.
7236 2019-01-23 Pedro Alves <palves@redhat.com>
7238 * common/preprocessor.h (ESC): Rename to ...
7239 (ESC_PARENS): ... this.
7240 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
7241 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
7243 2019-01-23 Tom Tromey <tom@tromey.com>
7245 * language.h (class scoped_switch_to_sym_language_if_auto):
7246 Initialize m_lang in both cases.
7248 2019-01-23 Alan Hayward <alan.hayward@arm.com>
7250 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
7253 2019-01-22 Tom Tromey <tom@tromey.com>
7255 * corelow.c: Do not include sys/file.h.
7257 2019-01-22 Tom Tromey <tom@tromey.com>
7259 * tui/tui-wingeneral.h: Include gdb_curses.h.
7261 2019-01-22 Tom Tromey <tom@tromey.com>
7263 * source-cache.h (class source_cache) <get_source_lines,
7264 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
7266 2019-01-22 Tom Tromey <tom@tromey.com>
7268 * remote-fileio.h (struct remote_target): Declare.
7270 2019-01-22 Tom Tromey <tom@tromey.com>
7272 * python/py-arch.c: Do not include py-ref.h.
7273 * python/py-bpevent.c: Do not include py-ref.h.
7274 * python/py-cmd.c: Do not include py-ref.h.
7275 * python/py-continueevent.c: Do not include py-ref.h.
7276 * python/py-event.h: Do not include py-ref.h.
7277 * python/py-evtregistry.c: Do not include py-ref.h.
7278 * python/py-finishbreakpoint.c: Do not include py-ref.h.
7279 * python/py-frame.c: Do not include py-ref.h.
7280 * python/py-framefilter.c: Do not include py-ref.h.
7281 * python/py-function.c: Do not include py-ref.h.
7282 * python/py-infevents.c: Do not include py-ref.h.
7283 * python/py-linetable.c: Do not include py-ref.h.
7284 * python/py-objfile.c: Do not include py-ref.h.
7285 * python/py-param.c: Do not include py-ref.h.
7286 * python/py-prettyprint.c: Do not include py-ref.h.
7287 * python/py-progspace.c: Do not include py-ref.h.
7288 * python/py-symbol.c: Do not include py-ref.h.
7289 * python/py-symtab.c: Do not include py-ref.h.
7290 * python/py-type.c: Do not include py-ref.h.
7291 * python/py-unwind.c: Do not include py-ref.h.
7292 * python/py-utils.c: Do not include py-ref.h.
7293 * python/py-value.c: Do not include py-ref.h.
7294 * python/py-varobj.c: Do not include py-ref.h.
7295 * python/py-xmethods.c: Do not include py-ref.h.
7296 * python/python.c: Do not include py-ref.h.
7297 * varobj.c: Do not include py-ref.h.
7299 2019-01-22 Tom Tromey <tom@tromey.com>
7301 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
7304 2019-01-22 Tom Tromey <tom@tromey.com>
7306 * compile/compile-cplus-types.c: Remove a comment by #include.
7308 2019-01-22 Tom Tromey <tom@tromey.com>
7310 * compile/gcc-c-plugin.h: Include compile-internal.h.
7312 2019-01-22 Tom Tromey <tom@tromey.com>
7314 * stabsread.c (EXTERN): Do not define.
7315 (symnum, next_symbol_text_func, processing_gcc_compilation)
7316 (within_function, global_sym_chain, global_stabs)
7317 (previous_stab_code, this_object_header_files)
7318 (n_this_object_header_files)
7319 (n_allocated_this_object_header_files): Define.
7320 * stabsread.h (EXTERN): Never define. Use "extern".
7322 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7324 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
7327 2019-01-21 Tom Tromey <tom@tromey.com>
7329 * ui-out.c: Fix includes.
7330 * tui/tui-source.c: Fix includes.
7331 * target.c: Fix includes.
7332 * remote.c: Fix includes.
7333 * regcache.c: Fix includes.
7334 * python/py-block.c: Fix includes.
7335 * printcmd.c: Fix includes.
7336 * or1k-tdep.c: Fix includes.
7337 * mi/mi-main.c: Fix includes.
7338 * m32r-tdep.c: Fix includes.
7339 * csky-tdep.c: Fix includes.
7340 * compile/compile-cplus-types.c: Fix includes.
7341 * cli/cli-interp.c: Fix includes.
7343 2019-01-21 Alan Hayward <alan.hayward@arm.com>
7345 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
7348 2019-01-16 Tom Tromey <tom@tromey.com>
7350 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
7352 (struct objfile) <msymbols_range>: Move from top level.
7353 <msymbols>: New method.
7354 (class objfile_msymbols): Remove.
7355 * symtab.c (default_collect_symbol_completion_matches_break_on):
7357 * symmisc.c (dump_msymbols): Update.
7358 * stabsread.c (scan_file_globals): Update.
7359 * objc-lang.c (info_selectors_command, info_classes_command)
7360 (find_methods): Update.
7361 * minsyms.c (find_solib_trampoline_target): Update.
7362 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
7363 * coffread.c (coff_symfile_read): Update.
7364 * ada-lang.c (ada_lookup_simple_minsym)
7365 (ada_collect_symbol_completion_matches): Update.
7367 2019-01-16 Tom Tromey <tom@tromey.com>
7369 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
7370 type. Remove no-argument constructor.
7371 <iterator::operator++>: Simplify.
7373 <end>: Use minimal_symbol_count.
7375 2019-01-16 Tom Tromey <tom@tromey.com>
7377 * objfiles.h (struct objfile) <psymtabs>: New method.
7378 (class objfile_psymtabs): Remove.
7379 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
7381 <range>: New method.
7382 (require_partial_symbols): Change return type.
7383 * psymtab.c (require_partial_symbols)
7384 (psym_expand_symtabs_matching): Update.
7385 * mdebugread.c (parse_partial_symbols): Update.
7386 * dbxread.c (dbx_end_psymtab): Update.
7388 2019-01-15 Tom Tromey <tom@tromey.com>
7390 * symtab.c (lookup_objfile_from_block)
7391 (lookup_symbol_in_objfile_symtabs)
7392 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
7393 (find_line_symtab, info_sources_command)
7394 (default_collect_symbol_completion_matches_break_on)
7395 (make_source_files_completion_list): Update.
7396 * symmisc.c (print_objfile_statistics, dump_objfile)
7397 (maintenance_print_symbols, maintenance_info_symtabs)
7398 (maintenance_check_symtabs, maintenance_info_line_tables):
7400 * source.c (select_source_symtab)
7401 (forget_cached_source_info_for_objfile): Update.
7402 * objfiles.h (class objfile_compunits): Remove.
7403 (struct objfile) <compunits_range>: New typedef.
7404 (compunits): New method.
7405 * objfiles.c (objfile_relocate1): Update.
7406 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
7407 * maint.c (count_symtabs_and_blocks): Update.
7408 * linespec.c (iterate_over_all_matching_symtabs): Update.
7409 * cp-support.c (add_symbol_overload_list_qualified): Update.
7410 * coffread.c (coff_symtab_read): Update.
7411 * ada-lang.c (add_nonlocal_symbols)
7412 (ada_collect_symbol_completion_matches)
7413 (ada_add_global_exceptions): Update.
7415 2019-01-15 Tom Tromey <tom@tromey.com>
7417 * progspace.h (program_space) <objfiles_safe_range>: New
7419 <objfiles_safe>: New method.
7420 * objfiles.h (class all_objfiles_safe): Remove.
7421 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
7422 * jit.c (jit_inferior_exit_hook): Update.
7424 2019-01-17 Tom Tromey <tom@tromey.com>
7426 * progspace.h (program_space) <objfiles_range>: New typedef.
7427 <objfiles>: New method.
7428 <objfiles_head>: Rename from objfiles.
7429 (object_files): Update.
7430 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
7431 * guile/scm-pretty-print.c
7432 (ppscm_find_pretty_printer_from_objfiles): Update.
7433 * guile/scm-objfile.c (gdbscm_objfiles): Update.
7434 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
7436 * python/py-progspace.c (pspy_get_objfiles): Update.
7437 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7439 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
7440 (objfpy_lookup_objfile_by_build_id): Update.
7441 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
7442 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
7444 * symtab.c (iterate_over_symtabs, matching_obj_sections)
7445 (expand_symtab_containing_pc, lookup_objfile_from_block)
7446 (lookup_static_symbol, basic_lookup_transparent_type)
7447 (find_pc_sect_compunit_symtab, find_symbol_at_address)
7448 (find_line_symtab, info_sources_command)
7449 (default_collect_symbol_completion_matches_break_on)
7450 (make_source_files_completion_list, find_main_name): Update.
7451 * symmisc.c (print_symbol_bcache_statistics)
7452 (print_objfile_statistics, maintenance_print_symbols)
7453 (maintenance_print_msymbols, maintenance_print_objfiles)
7454 (maintenance_info_symtabs, maintenance_check_symtabs)
7455 (maintenance_expand_symtabs, maintenance_info_line_tables):
7457 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
7458 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
7459 (map_overlay_command, unmap_overlay_command)
7460 (simple_overlay_update, expand_symtabs_matching)
7461 (map_symbol_filenames): Update.
7462 * symfile-debug.c (set_debug_symfile): Update.
7463 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
7465 * source.c (select_source_symtab, forget_cached_source_info):
7467 * solib.c (solib_read_symbols): Update.
7468 * solib-spu.c (append_ocl_sos): Update.
7469 * psymtab.c (maintenance_print_psymbols)
7470 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
7471 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
7472 * printcmd.c (info_symbol_command): Update.
7473 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
7475 * objfiles.h (class all_objfiles): Remove.
7476 * objfiles.c (have_partial_symbols, have_full_symbols)
7477 (have_minimal_symbols, qsort_cmp, update_section_map)
7478 (shared_objfile_contains_address_p)
7479 (default_iterate_over_objfiles_in_search_order): Update.
7480 * objc-lang.c (info_selectors_command, info_classes_command)
7481 (find_methods): Update.
7482 * minsyms.c (find_solib_trampoline_target): Update.
7483 * maint.c (maintenance_info_sections)
7484 (maintenance_translate_address, count_symtabs_and_blocks):
7486 * main.c (captured_main_1): Update.
7487 * linux-thread-db.c (try_thread_db_load_from_pdir)
7488 (has_libpthread): Update.
7489 * linespec.c (iterate_over_all_matching_symtabs)
7490 (search_minsyms_for_name): Update.
7491 * jit.c (jit_find_objf_with_entry_addr): Update.
7492 * hppa-tdep.c (find_unwind_entry)
7493 (hppa_lookup_stub_minimal_symbol): Update.
7494 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
7496 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
7497 (elf_gnu_ifunc_resolve_by_got): Update.
7498 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
7499 * dwarf-index-write.c (save_gdb_index_command): Update.
7500 * cp-support.c (add_symbol_overload_list_qualified): Update.
7501 * breakpoint.c (create_overlay_event_breakpoint)
7502 (create_longjmp_master_breakpoint)
7503 (create_std_terminate_master_breakpoint)
7504 (create_exception_master_breakpoint): Update.
7505 * blockframe.c (find_pc_partial_function): Update.
7506 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
7507 (ada_collect_symbol_completion_matches)
7508 (ada_add_global_exceptions): Update.
7510 2019-01-17 Tom Tromey <tom@tromey.com>
7512 * solib-target.c (lm_info_target_p): Remove typedef. Don't
7514 (solib_target_parse_libraries): Change return type.
7515 (library_list_start_segment, library_list_start_section)
7516 (library_list_end_library, library_list_start_library); Update.
7517 (solib_target_free_library_list): Remove.
7518 (solib_target_parse_libraries): Remove cleanup. Change return
7520 (solib_target_current_sos): Update.
7522 2019-01-17 Tom Tromey <tromey@bapiya>
7524 * valprint.c: Replace "the the" with "the".
7525 * symtab.c: Replace "the the" with "the".
7526 * solib.c: Replace "the the" with "the".
7527 * solib-dsbt.c: Replace "the the" with "the".
7528 * linespec.c: Replace "the the" with "the".
7529 * dwarf2loc.h: Replace "the the" with "the".
7530 * amd64-windows-tdep.c: Replace "the the" with "the".
7531 * aarch64-tdep.c: Replace "the the" with "the".
7533 2019-01-16 Keith Seitz <keiths@redhat.com>
7536 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
7537 <builder>: Rename to ..
7538 <m_builder>: ... this and make private.
7539 (dwarf2_cu::get_builder): New method. Change all users of
7540 `builder' to use this method.
7541 (dwarf2_start_symtab): Move to ...
7542 (dwarf2_cu::start_symtab): ... here. Update all callers
7543 (setup_type_unit_groups): Move to ...
7544 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
7546 (dwarf2_cu::reset_builder): New method.
7547 (process_full_compunit, process_full_type_unit): Use
7548 dwarf2_cu::reset_builder.
7549 (follow_die_offset): Record the ancestor CU if it is different
7550 from the followed DIE's CU.
7551 (follow_die_sig_1): Likewise.
7553 2019-01-15 Tom Tromey <tom@tromey.com>
7555 * remote.c (class remote_state) <buf>: Now a char_vector.
7557 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
7559 (remote_target::getpkt_or_notif_sane_1)
7560 (remote_target::getpkt_sane)
7561 (remote_target::getpkt_or_notif_sane): Likewise.
7562 (class remote_target) <putpkt>: New overload.
7563 (remote_target::read_frame): Change type of "buf_p". Remove
7565 (packet_ok): New overload.
7566 (packet_check_result): New overload.
7569 2019-01-14 Tom Tromey <tom@tromey.com>
7571 * remote-notif.c (handle_notification, remote_notif_ack)
7572 (remote_notif_parse): Make "buf" const.
7573 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
7575 (remote_notif_parse, remote_notif_ack, handle_notification):
7577 * remote.c (remote_notif_stop_parse): Make "buf" const.
7578 (remote_target::remote_parse_stop_reply): Make "buf" const.
7579 (remote_notif_stop_ack): Make "buf" const.
7581 2019-01-14 Tom Tromey <tom@tromey.com>
7583 * remote.c (remote_console_output): Make parameter const.
7585 2019-01-14 Tom Tromey <tom@tromey.com>
7587 * target-debug.h (target_debug_print_signals): Constify.
7588 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
7589 * procfs.c (procfs_target::pass_signals): Update.
7590 * linux-nat.c (linux_nat_target::pass_signals): Update.
7591 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
7592 * target-delegates.c: Rebuild.
7593 * remote.c (remote_target::program_signals): Update.
7594 (remote_target::pass_signals): Update.
7595 * target.c (target_pass_signals): Constify argument.
7596 (target_program_signals): Likewise.
7597 * target.h (struct target_ops) <pass_signals, program_signals>:
7599 (target_pass_signals, target_program_signals): Constify argument.
7601 2019-01-14 Tom Tromey <tom@tromey.com>
7604 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
7606 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7608 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
7610 * rs6000-tdep.c: Include reggroups.h.
7611 (IS_V_ALIAS_PSEUDOREG): Define.
7612 (rs6000_register_name): Return names for the "vX" aliases.
7613 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
7614 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
7615 aliases. Call default_register_reggroup_p for all other
7617 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
7619 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
7620 Handle "vX" aliases.
7621 (v_alias_pseudo_register_collect): New function.
7622 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
7623 (rs6000_gdbarch_init): Initialize "vX" aliases as
7624 pseudo-registers. Restore registration of
7625 rs6000_pseudo_register_reggroup_p with
7626 set_tdesc_pseudo_register_reggroup_p.
7628 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
7630 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
7631 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
7632 set_gdbarch_num_pseudo_regs.
7634 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7636 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
7637 Remove arg prefixname, add do_set and do_show.
7638 Add member functions set_list and show_list.
7639 * cli/cli-style.c (class cli_style_option): Update accordingly.
7640 (style_set_list): Move to file scope.
7641 (style_show_list): Likewise.
7642 (set_style): Call help_list.
7643 (show_style): Call cmd_show_list.
7644 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
7645 Update to use the new macro.
7647 2019-10-12 Joel Brobecker <brobecker@adacore.com>
7649 * ada-lang.c (_initialize_ada_language): Expand the help text
7650 for the "catch exception" command.
7652 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7654 * symtab.c (matching_obj_sections): Initialize obj,
7655 declare it closer to its usage.
7657 2019-01-10 Tom Tromey <tom@tromey.com>
7659 * thread-iter.h (inf_threads_iterator): Use next_iterator.
7660 (basic_inf_threads_range): Remove.
7661 (inf_threads_range, inf_non_exited_threads_range)
7662 (safe_inf_threads_range): Use next_adapter.
7664 2019-01-10 Keith Seitz <keiths@redhat.com>
7668 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
7669 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
7671 2019-01-10 Keith Seitz <keiths@redhat.com>
7675 * dictionary.c (pending_to_vector): Remove.
7676 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7677 Remove _1 suffix, replacing functions of the same name. Update
7679 (dict_create_hashed, dict_create_hashed_expandable)
7680 (dict_create_linear, dict_create_linear_expandable, dict_free)
7681 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
7682 Make functions static.
7684 2019-01-10 Keith Seitz <keiths@redhat.com>
7688 * dictionary.h (struct dictionary): Replace declaration with
7690 (dict_create_hashed, dict_create_hashed_expandable)
7691 (dict_create_linear, dict_create_linear_expandable)
7692 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
7693 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
7694 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
7695 taking multidictionary argument.
7696 [ALL_DICT_SYMBOLS]: Update for multidictionary.
7697 * block.h (struct block) <dict>: Change to multidictionary
7698 and rename `multidict'.
7699 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
7700 symmisc.c: Update all dictionary references to multidictionary.
7702 2019-01-10 Keith Seitz <keiths@redhat.com>
7706 * dictionary.c: Include unordered_map.
7707 (pending_to_vector): New function.
7708 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7709 Rewrite the non-"_1" functions to take vector instead
7711 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
7712 "new" _1 versions of the same name.
7713 (multidictionary): Define.
7714 (std::hash<enum language): New definition.
7715 (collate_pending_symbols_by_language, mdict_create_hashed)
7716 (mdict_create_hashed_expandable, mdict_create_linear)
7717 (mdict_create_linear_expandable, mdict_free)
7718 (find_language_dictionary, create_new_language_dictionary)
7719 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
7720 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
7721 (mdict_size, mdict_empty): New functions.
7722 * dictionary.h (mdict_iterator): Define.
7724 2019-01-10 Pedro Alves <palves@redhat.com>
7726 * breakpoint.c (read_uploaded_action)
7727 (create_tracepoint_from_upload): Adjust to use
7728 gdb::unique_xmalloc_ptr.
7729 * ctf.c (ctf_write_uploaded_tp):
7730 (SET_ARRAY_FIELD): Use emplace_back.
7731 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
7732 * tracefile-tfile.c (tfile_write_uploaded_tp):
7733 * tracepoint.c (parse_tracepoint_definition): Adjust to use
7734 gdb::unique_xmalloc_ptr.
7735 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
7736 at_string, cond_string, cmd_strings>: Replace char pointers
7737 with gdb::unique_xmalloc_ptr.
7739 2019-01-10 Pedro Alves <palves@redhat.com>
7741 * solib-target.c (library_list_start_library): Don't xstrdup name.
7743 2019-01-10 Pedro Alves <palves@redhat.com>
7745 * mdebugread.c (parse_partial_symbols): Use
7746 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
7748 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7750 * linux-fork.c (scoped_switch_fork_info)
7751 <~scoped_switch_fork_info>: Fix incorrect variable name.
7753 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7755 * linux-fork.c (scoped_switch_fork_info)
7756 <scoped_switch_fork_info>: Make explicit.
7757 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
7759 2019-01-10 Tom Tromey <tom@tromey.com>
7761 * objfiles.h (objfile::reset_psymtabs): Update.
7762 * objfiles.c (objfile::objfile): Update.
7763 * psymtab.h (psymtab_storage::obstack): Update.
7764 (psymtab_storage::m_obstack): Use gdb::optional.
7765 (class psymtab_storage): Update comment. Remove objfile
7767 * psymtab.c (psymtab_storage::psymtab_storage): Update.
7769 2019-01-10 Tom Tromey <tom@tromey.com>
7771 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
7772 <free_psymtabs>: Now private.
7773 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
7774 (allocate_psymtab): Use new method.
7776 2019-01-10 Tom Tromey <tom@tromey.com>
7778 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
7779 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
7780 * mdebugread.c (parse_partial_symbols): Use
7781 allocate_dependencies.
7782 * dwarf2read.c (dwarf2_create_include_psymtab): Use
7783 allocate_dependencies.
7784 (process_psymtab_comp_unit_reader)
7785 (build_type_psymtab_dependencies): Likewise.
7786 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
7788 2019-01-10 Tom Tromey <tom@tromey.com>
7790 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
7791 PSYMBOL_SET_LANGUAGE.
7792 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
7794 2019-01-10 Tom Tromey <tom@tromey.com>
7796 * psymtab.h (psymtab_storage::obstack): New method.
7797 <m_obstack>: Rename from obstack; now private.
7798 * psymtab.c (psymtab_storage): Update.
7799 * dwarf2read.c (create_addrmap_from_index)
7800 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
7803 2019-01-10 Tom Tromey <tom@tromey.com>
7805 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
7806 * objfiles.h (objfile::reset_psymtabs): New method.
7808 2019-01-10 Tom Tromey <tom@tromey.com>
7810 * symmisc.c (print_symbol_bcache_statistics): Update.
7811 (print_objfile_statistics): Update.
7812 * symfile.c (reread_symbols): Update.
7813 * psymtab.h (class psymtab_storage): New.
7814 * psymtab.c (psymtab_storage): New constructor.
7815 (~psymtab_storage): New destructor.
7816 (require_partial_symbols): Update.
7817 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
7818 (find_pc_sect_psymtab, find_pc_sect_psymbol)
7819 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
7820 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
7821 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
7822 (start_psymtab_common, end_psymtab_common)
7823 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
7824 (allocate_psymtab): Update.
7825 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
7827 (dump_psymtab_addrmap, maintenance_print_psymbols)
7828 (maintenance_check_psymtabs): Update.
7829 (class objfile_psymtabs): Move to objfiles.h.
7830 * psympriv.h (discard_psymtab): Now inline.
7831 (psymtab_discarder::psymtab_discarder): Update.
7832 (psymtab_discarder::~psymtab_discarder): Update.
7833 (ALL_OBJFILE_PSYMTABS): Rewrite.
7834 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
7835 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
7837 <partial_symtabs>: New field.
7838 (class objfile_psymtabs): Move from psymtab.h. Update.
7839 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
7841 (objfile::~objfile): Don't destroy psymbol_cache.
7842 * mdebugread.c (parse_partial_symbols): Update.
7843 * dwarf2read.c (create_addrmap_from_index)
7844 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7845 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
7846 (add_partial_subprogram, dwarf2_ranges_read): Update.
7847 * dwarf-index-write.c (write_address_map)
7848 (write_one_signatured_type, recursively_write_psymbols)
7849 (class debug_names, class debug_names, write_psymtabs_to_index):
7852 2019-01-10 Tom Tromey <tom@tromey.com>
7854 * symtab.h (SYMBOL_SET_NAMES): Update.
7855 (symbol_set_names): Update.
7856 (MSYMBOL_SET_NAMES): Update.
7857 * symtab.c (symbol_set_names): Change argument to be an
7858 objfile_per_bfd_storage.
7859 * psymtab.c (add_psymbol_to_bcache): Update.
7860 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
7862 2019-01-10 Tom Tromey <tom@tromey.com>
7864 * symtab.c (create_demangled_names_hash): Change argument to be an
7865 objfile_per_bfd_storage.
7866 (symbol_set_names): Update.
7868 2019-01-10 Tom Tromey <tom@tromey.com>
7870 * xcoffread.c (xcoff_initial_scan): Unconditionally call
7872 * psymtab.c (init_psymbol_list): Do nothing if already called.
7873 * psympriv.h (init_psymbol_list): Add comment.
7874 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
7876 * dbxread.c (dbx_symfile_read): Unconditionally call
7879 2019-01-10 Tom Tromey <tom@tromey.com>
7881 * xcoffread.c (scan_xcoff_symtab): Update.
7882 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
7884 * mdebugread.c (parse_partial_symbols)
7885 (handle_psymbol_enumerators): Update.
7886 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
7887 * dbxread.c (read_dbx_symtab): Update.
7888 * psympriv.h (psymbol_placement): New enum.
7889 (add_psymbol_to_list): Update.
7891 2019-01-10 Tom Tromey <tom@tromey.com>
7893 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
7894 static_psymbols parameters.
7895 (scan_xcoff_symtab): Update.
7896 * psymtab.c (start_psymtab_common): Remove global_psymbols and
7897 static_psymbols parameters.
7898 * psympriv.h (start_psymtab_common): Update.
7899 * mdebugread.c (parse_partial_symbols): Update.
7900 * dwarf2read.c (create_partial_symtab): Update.
7901 * dbxread.c (read_dbx_symtab): Update.
7902 (start_psymtab): Remove global_psymbols and static_psymbols
7905 2019-01-10 Tom Tromey <tom@tromey.com>
7907 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
7908 * psymtab.c (allocate_psymtab): Add comment.
7909 * psympriv.h (allocate_psymtab): Add comment.
7910 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
7912 * dbxread.c (dbx_end_psymtab): Remove some initializations.
7914 2019-01-10 Tom Tromey <tom@tromey.com>
7916 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7918 * mipsread.c: Include mdebugread.h.
7919 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7921 * elfread.c: Include mdebugread.h.
7923 2019-01-09 Tom Tromey <tom@tromey.com>
7925 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
7926 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
7927 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
7928 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
7929 (psym_lookup_symbol, psym_find_last_source_symtab)
7930 (psym_forget_cached_source_info, psym_print_stats)
7931 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
7932 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
7933 (psym_map_matching_symbols, psym_expand_symtabs_matching)
7934 (psym_find_compunit_symtab_by_address)
7935 (maintenance_print_psymbols, maintenance_info_psymtabs)
7936 (maintenance_check_psymtabs): Use ranged for.
7937 * psymtab.h (class objfile_psymtabs): New.
7938 (require_partial_symbols): Return objfile_psymtabs.
7939 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
7941 2019-01-09 Tom Tromey <tom@tromey.com>
7943 * symfile.c (overlay_invalidate_all, find_pc_overlay)
7944 (find_pc_mapped_section, list_overlays_command)
7945 (map_overlay_command, unmap_overlay_command)
7946 (simple_overlay_update): Use all_objfiles.
7947 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
7948 * printcmd.c (info_symbol_command): Use all_objfiles.
7949 * objfiles.h (ALL_OBJSECTIONS): Remove.
7950 * maint.c (maintenance_translate_address): Use all_objfiles.
7951 * gcore.c (gcore_create_callback): Use all_objfiles.
7952 (objfile_find_memory_regions): Likewise.
7954 2019-01-09 Tom Tromey <tom@tromey.com>
7956 * symtab.c (find_line_symtab, info_sources_command)
7957 (make_source_files_completion_list): Use objfile_compunits.
7958 * source.c (select_source_symtab): Use objfile_compunits.
7959 * objfiles.h (struct objfile): Update comment.
7960 (ALL_OBJFILES): Remove.
7961 (ALL_FILETABS): Remove.
7962 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
7965 2019-01-09 Tom Tromey <tom@tromey.com>
7967 * symmisc.c (print_objfile_statistics, dump_objfile)
7968 (maintenance_print_symbols): Use compunit_filetabs.
7969 * source.c (forget_cached_source_info_for_objfile): Use
7971 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
7972 (ALL_FILETABS): Use compunit_filetabs.
7973 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
7974 * coffread.c (coff_symtab_read): Use compunit_filetabs.
7976 2019-01-09 Tom Tromey <tom@tromey.com>
7978 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
7979 (compunit_filetabs): New.
7980 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
7982 (info_sources_command, make_source_files_completion_list): Remove
7984 * symmisc.c (print_objfile_statistics, dump_objfile)
7985 (maintenance_print_symbols): Remove declaration.
7986 (maintenance_info_symtabs): Use compunit_filetabs.
7987 (maintenance_info_line_tables): Likewise.
7988 * source.c (select_source_symtab): Change local variable name.
7989 (forget_cached_source_info_for_objfile): Remove declaration.
7990 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
7991 * objfiles.c (objfile_relocate1): Remove declaration.
7992 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7994 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
7995 * coffread.c (coff_symtab_read): Remove declaration.
7996 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
7999 2019-01-09 Tom Tromey <tom@tromey.com>
8001 * symtab.c (lookup_objfile_from_block)
8002 (find_pc_sect_compunit_symtab, search_symbols)
8003 (default_collect_symbol_completion_matches_break_on): Use
8005 * objfiles.h (ALL_COMPUNITS): Remove.
8006 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
8007 * cp-support.c (add_symbol_overload_list_qualified): Use
8009 * ada-lang.c (ada_collect_symbol_completion_matches)
8010 (ada_add_global_exceptions): Use objfile_compunits.
8012 2019-01-09 Tom Tromey <tom@tromey.com>
8014 * source.c (select_source_symtab)
8015 (forget_cached_source_info_for_objfile): Remove declaration.
8016 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
8018 * maint.c (count_symtabs_and_blocks): Remove declaration.
8019 * cp-support.c (add_symbol_overload_list_qualified): Remove
8021 * coffread.c (coff_symtab_read): Remove declaration.
8022 * symtab.c (lookup_symbol_in_objfile_symtabs)
8023 (basic_lookup_transparent_type_1): Use objfile_compunits.
8024 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
8025 (info_sources_command, search_symbols)
8026 (default_collect_symbol_completion_matches_break_on)
8027 (make_source_files_completion_list): Remove declaration.
8028 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
8029 (ada_collect_symbol_completion_matches)
8030 (ada_add_global_exceptions): Remove declaration.
8031 * linespec.c (iterate_over_all_matching_symtabs): Use
8033 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
8034 (class objfile_compunits): New.
8035 (ALL_COMPUNITS): Use objfile_compunits.
8036 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
8037 (maintenance_check_symtabs, maintenance_info_line_tables): Use
8039 * objfiles.c (objfile_relocate1): Use objfile_compunits.
8041 2019-01-09 Tom Tromey <tom@tromey.com>
8043 * symtab.c (search_symbols)
8044 (default_collect_symbol_completion_matches_break_on): Use
8046 * ada-lang.c (ada_lookup_simple_minsym)
8047 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
8048 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
8049 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
8051 * coffread.c (coff_symfile_read): Use objfile_msymbols.
8052 * symmisc.c (dump_msymbols): Use objfile_msymbols.
8053 * objc-lang.c (find_methods): Use objfile_msymbols.
8054 (info_selectors_command, info_classes_command): Likewise.
8055 * stabsread.c (scan_file_globals): Use objfile_msymbols.
8056 * objfiles.h (class objfile_msymbols): New.
8057 (ALL_OBJFILE_MSYMBOLS): Remove.
8058 (ALL_MSYMBOLS): Remove.
8060 2019-01-09 Tom Tromey <tom@tromey.com>
8062 * common/next-iterator.h (next_adapter): Add Iterator template
8064 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
8065 (class all_objfiles_safe): New.
8066 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
8067 * objfiles.c (put_objfile_before): Update comment.
8068 (add_separate_debug_objfile): Likewise.
8069 (free_all_objfiles): Use all_objfiles_safe.
8070 (objfile_purge_solibs): Likewise.
8072 2019-01-09 Tom Tromey <tom@tromey.com>
8074 * symtab.c (iterate_over_symtabs, matching_obj_sections)
8075 (expand_symtab_containing_pc, lookup_static_symbol)
8076 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
8077 (find_symbol_at_address, find_line_symtab, find_main_name): Use
8079 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
8080 * breakpoint.c (create_overlay_event_breakpoint)
8081 (create_longjmp_master_breakpoint)
8082 (create_std_terminate_master_breakpoint)
8083 (create_exception_master_breakpoint): Use all_objfiles.
8084 * linux-thread-db.c (try_thread_db_load_from_pdir)
8085 (has_libpthread): Use all_objfiles.
8086 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
8087 * linespec.c (iterate_over_all_matching_symtabs)
8088 (search_minsyms_for_name): Use all_objfiles.
8089 * maint.c (maintenance_info_sections): Use all_objfiles.
8090 * main.c (captured_main_1): Use all_objfiles.
8091 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
8092 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
8093 * guile/scm-pretty-print.c
8094 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
8095 * solib-spu.c (append_ocl_sos): Use all_objfiles.
8096 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
8097 (maintenance_print_msymbols): Use all_objfiles.
8098 * source.c (select_source_symtab): Use all_objfiles.
8099 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
8100 * symfile.c (remove_symbol_file_command)
8101 (expand_symtabs_matching, map_symbol_filenames): Use
8103 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
8105 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
8106 * objc-lang.c (find_methods): Use all_objfiles.
8107 * objfiles.c (have_partial_symbols, have_full_symbols)
8108 (have_minimal_symbols, qsort_cmp)
8109 (default_iterate_over_objfiles_in_search_order): Use
8111 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
8112 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
8113 (maintenance_check_psymtabs): Use all_objfiles.
8114 (ALL_PSYMTABS): Remove.
8115 * compile/compile-object-run.c (do_module_cleanup): Use
8117 * blockframe.c (find_pc_partial_function): Use all_objfiles.
8118 * cp-support.c (add_symbol_overload_list_qualified): Use
8120 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
8122 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
8123 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
8125 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
8126 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
8127 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
8129 * solib.c (solib_read_symbols): Use all_objfiles
8131 2019-01-09 Tom Tromey <tom@tromey.com>
8133 * probe.c (parse_probes_in_pspace): Use all_objfiles.
8134 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
8136 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
8137 * symmisc.c (print_symbol_bcache_statistics)
8138 (print_objfile_statistics, maintenance_print_objfiles)
8139 (maintenance_info_symtabs, maintenance_check_symtabs)
8140 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
8142 * source.c (forget_cached_source_info): Use all_objfiles.
8143 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
8144 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
8145 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
8146 * objfiles.c (update_section_map): Use all_objfiles.
8147 (shared_objfile_contains_address_p): Likewise.
8148 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
8149 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
8151 2019-01-09 Tom Tromey <tom@tromey.com>
8153 * common/next-iterator.h: New file.
8154 * objfiles.h (class all_objfiles): New.
8155 (struct objfile_iterator): New.
8157 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8159 * NEWS: Move the description of the changed "frame", "select-frame",
8160 and "info frame" commands to the Changed commands section.
8162 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
8164 * gdbtypes.c (check_stub_method_group): Remove handling of old
8166 * linespec.c (find_methods): Likewise.
8167 * stabsread.c (read_member_functions): Likewise.
8168 * valops.c (search_struct_method): Likewise.
8169 (value_struct_elt_for_reference): Likewise.
8170 * NEWS: Mention this change.
8172 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
8174 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
8176 * source.c (print_source_lines_base): Update line number check.
8177 (print_source_lines): New function.
8178 (source_lines_range::source_lines_range): New function.
8179 * source.h (class source_lines_range): New class.
8180 (print_source_lines): New declaration.
8182 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8184 * linespec.c (linespec_state_destructor): Free self->canonical_names.
8186 2019-01-08 Tom Tromey <tom@tromey.com>
8187 Simon Marchi <simon.marchi@ericsson.com>
8190 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
8191 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
8192 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
8193 * f-exp.y (DOLLAR_VARIABLE): Likewise.
8194 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
8195 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
8197 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8199 * source.c (select_source_symtab): Move header comment to
8200 declaration in source.h.
8201 (forget_cached_source_info_for_objfile): Likewise.
8202 (forget_cached_source_info): Likewise.
8203 (identify_source_line): Likewise.
8204 * source.h (identify_source_line): Move declaration from symtab.h
8205 and add comment from source.c
8206 (print_source_lines): Likewise.
8207 (forget_cached_source_info_for_objfile): Likewise.
8208 (forget_cached_source_info): Likewise.
8209 (select_source_symtab): Likewise.
8210 (enum print_source_lines_flag): Move definition from symtab.h.
8211 * symtab.h (identify_source_line): Move declaration to source.h.
8212 (print_source_lines): Likewise.
8213 (forget_cached_source_info_for_objfile): Likewise.
8214 (forget_cached_source_info): Likewise.
8215 (select_source_symtab): Likewise.
8216 (enum print_source_lines_flag): Move definition to source.h.
8217 * tui/tui-hooks.c: Add 'source.h' include.
8219 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8221 * source.c (print_source_lines_base): Handle requests to print
8222 reverse line number sequences, and guard against empty lines
8225 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8227 * source.c (print_source_lines_base): Fix skip of '\r' if next
8230 2019-01-06 Tom Tromey <tom@tromey.com>
8232 * c-exp.y (struct c_parse_state) <macro_original_text,
8233 expansion_obstack>: New member.
8234 (macro_original_text, expansion_obstack): Remove globals.
8235 (scan_macro_expansion, scanning_macro_expansion)
8236 (finished_macro_expansion): Update.
8237 (scan_macro_cleanup): Remove.
8238 (yylex, c_parse): Update.
8240 2019-01-06 Tom Tromey <tom@tromey.com>
8242 * c-exp.y (struct c_parse_state) <strings>: New member.
8243 (operator_stoken): Update.
8245 2019-01-06 Tom Tromey <tom@tromey.com>
8247 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
8248 (union type_stack_elt) <typelist_val>: Now a pointer to
8250 (type_stack_cleanup): Don't declare.
8251 (push_typelist): Update.
8252 * parse.c (pop_typelist): Return a std::vector.
8253 (push_typelist): Take a std::vector.
8254 (follow_types): Update. Do not free args.
8255 (type_stack_cleanup): Remove.
8256 * c-exp.y (struct c_parse_state): New.
8257 (cpstate): New global.
8258 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
8259 (nonempty_typelist): Update.
8260 (func_mod): Create a new vector.
8261 (c_parse): Create a c_parse_state.
8262 (check_parameter_typelist): Do not delete params.
8263 (function_method): Update. Do not delete type_list.
8265 2019-01-06 Tom Tromey <tom@tromey.com>
8268 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
8270 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
8271 (print_return_value): Likewise.
8273 2019-01-05 Tom Tromey <tom@tromey.com>
8275 * contrib/cleanup_check.py: Remove.
8276 * contrib/gcc-with-excheck: Remove.
8277 * contrib/exsummary.py: Remove.
8278 * contrib/excheck.py: Remove.
8280 2019-01-05 Joel Brobecker <brobecker@adacore.com>
8282 * thread.c (delete_thread_1): Add gdb_assert that THR is not
8283 NULL. Initialize tpprev to NULL instead of assigning it
8284 to NULL on the next statement.
8285 * windows-nat.c (windows_delete_thread): Remove check for
8286 main_thread_id before printing thread exit notifications.
8287 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
8288 Remove thread ID check against main_thread_id.
8289 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
8290 windows_delete_thread.
8291 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
8293 2019-01-04 Tom Tromey <tom@tromey.com>
8295 * compile/compile.c (_initialize_compile): Use upper case for
8296 metasyntactic variables.
8297 * symmisc.c (_initialize_symmisc): Use upper case for
8298 metasyntactic variables.
8299 * psymtab.c (_initialize_psymtab): Use upper case for
8300 metasyntactic variables.
8301 * demangle.c (demangle_command): Use upper case for metasyntactic
8303 (_initialize_demangler): Likewise.
8304 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
8307 2019-01-03 Tom Tromey <tom@tromey.com>
8309 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
8311 2019-01-03 Tom Tromey <tom@tromey.com>
8313 * python/py-symtab.c (salpy_str): Update.
8314 (struct salpy_sal_object) <symtab>: Now a PyObject.
8315 (salpy_dealloc): Update.
8316 (del_objfile_sal): Use gdbpy_ref.
8318 2019-01-03 Tom Tromey <tom@tromey.com>
8320 * python/py-type.c (convert_field): Use new_reference. Return
8322 (make_fielditem): Return gdbpy_ref.
8323 (typy_fields): Update.
8324 (typy_getitem): Update.
8325 (field_name): Return gdbpy_ref. Use new_reference.
8326 (typy_iterator_iternext): Update.
8328 2019-01-03 Tom Tromey <tom@tromey.com>
8330 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
8332 2019-01-03 Tom Tromey <tom@tromey.com>
8334 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
8335 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
8336 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
8337 (pspy_set_frame_filters, pspy_set_frame_unwinders)
8338 (pspy_set_type_printers): Likewise.
8339 * python/py-function.c (fnpy_init): Use gdbpy_ref.
8340 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
8341 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
8342 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
8343 (objfpy_set_type_printers): Likewise.
8345 2019-01-03 Tom Tromey <tom@tromey.com>
8347 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
8348 (gdbpy_print_stack): Use gdbpy_err_fetch.
8349 * python/python-internal.h (class gdbpy_err_fetch): New class.
8350 (class gdbpy_enter) <m_error_type, m_error_value,
8351 m_error_traceback>: Remove.
8352 <m_error>: New member.
8353 (gdbpy_exception_to_string): Don't declare.
8354 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
8355 * python/py-value.c (convert_value_from_python): Use
8357 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
8358 gdbpy_exception_to_string.
8359 (gdbpy_handle_exception): Use gdbpy_err_fetch.
8360 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
8363 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8365 * linux-nat.c (delete_lwp_cleanup): Delete.
8366 (struct lwp_deleter): New struct.
8367 (lwp_info_up): New typedef.
8368 (linux_nat_target::follow_fork): Delete cleanup, and make use of
8371 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8373 * linux-fork.c (class scoped_switch_fork_info): New class.
8374 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
8376 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8378 * valops.c (find_overload_match): Remove use of null_cleanup, and
8379 calls to do_cleanups.
8381 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8383 * compile/compile-cplus-types.c
8384 (compile_cplus_instance::decl_name): Handle changes to
8386 * cp-support.c (cp_func_name): Update header comment, update
8388 * cp-support.h (cp_func_name): Update return type in declaration.
8389 * valops.c (find_overload_match): Move temp_func local to top
8390 level of function and change its type. Use temp_func to hold and
8391 delete temporary string obtained from cp_func_name.
8393 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8395 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
8396 gdb::char_vector, remove cleanup, and update uses of `msg`.
8398 2019-01-03 Jim Wilson <jimw@sifive.com>
8400 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
8402 2019-01-02 Tom Tromey <tom@tromey.com>
8404 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
8405 (tdesc_parse_xml): Remove cleanups.
8406 * target-descriptions.h (make_cleanup_free_target_description):
8408 (target_desc_deleter): New struct.
8409 (target_desc_up): New typedef.
8410 * target-descriptions.c (target_desc_deleter::operator()): Rename
8411 from free_target_description.
8412 (make_cleanup_free_target_description): Remove.
8414 2019-01-02 Tom Tromey <tom@tromey.com>
8416 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
8417 constructor, destructor.
8418 (linespec_parser): Remove typedef.
8419 (~linespec_parser): Rename from linespec_parser_delete.
8420 (linespec_lex_to_end, linespec_complete_label)
8421 (linespec_complete): Update.
8422 (decode_line_full): Remove cleanups.
8423 (decode_line_1): Update.
8425 2019-01-02 Tom Tromey <tom@tromey.com>
8427 * python/python-internal.h (inferior_to_inferior_object): Change
8429 * python/py-exitedevent.c (create_exited_event_object): Update.
8430 * python/py-inferior.c (inferior_to_inferior_object): Return
8432 (python_new_inferior, python_inferior_deleted)
8433 (thread_to_thread_object, delete_thread_object)
8434 (build_inferior_list, gdbpy_selected_inferior): Update.
8435 * python/py-infthread.c (create_thread_object): Update. Also fail
8436 if inferior_to_inferior_object fails.
8438 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
8440 * inferior.h (class inferior) <displaced_step_state>: New field.
8441 * infrun.h (struct displaced_step_state): Move here from
8442 infrun.c. Initialize fields, add constructor.
8443 <inf>: Remove field.
8444 <reset>: New method.
8445 * infrun.c (struct displaced_step_inferior_state): Move to
8447 (displaced_step_inferior_states): Remove.
8448 (get_displaced_stepping_state): Adust.
8449 (displaced_step_in_progress_any_inferior): Adjust.
8450 (displaced_step_in_progress_thread): Adjust.
8451 (displaced_step_in_progress): Adjust.
8452 (add_displaced_stepping_state): Remove.
8453 (get_displaced_step_closure_by_addr): Adjust.
8454 (remove_displaced_stepping_state): Remove.
8455 (infrun_inferior_exit): Call displaced_step_state.reset.
8456 (use_displaced_stepping): Don't check for NULL.
8457 (displaced_step_prepare_throw): Call
8458 get_displaced_stepping_state.
8459 (displaced_step_fixup): Don't check for NULL.
8460 (prepare_for_detach): Don't check for NULL.
8462 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8464 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
8465 in case of call that did not complete.
8467 2019-01-02 Andrey Utkin <autkin@undo.io>
8469 * symfile.c (find_separate_debug_file): Fix search of debug files for
8472 2019-01-02 Tom Tromey <tom@tromey.com>
8474 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
8476 * python/py-frame.c (frapy_older): Remove cast.
8477 (frapy_newer): Likewise.
8478 * python/py-breakpoint.c (local_setattro): Remove cast.
8479 * python/py-arch.c (archpy_name): Remove local variable.
8480 * python/py-type.c (gdbpy_lookup_type): Remove cast.
8482 2019-01-02 Joel Brobecker <brobecker@adacore.com>
8484 * unittests/basic_string_view/element_access/char/empty.cc:
8485 Fix year range in copyright header.
8487 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
8489 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
8491 <operator==>: Update with for removed field.
8493 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
8494 <isa_features>: ...this.
8495 <abi_features>: New field.
8496 (riscv_isa_flen): Update comment.
8497 (riscv_abi_xlen): New declaration.
8498 (riscv_abi_flen): New declaration.
8499 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
8501 (riscv_abi_xlen): New function.
8502 (riscv_isa_flen): Update to get answer from isa_features.
8503 (riscv_abi_flen): New function.
8504 (riscv_has_fp_abi): Update to get answer from abi_features.
8505 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
8507 (riscv_call_info) <xlen, flen>: Update comment.
8508 (riscv_call_arg_struct): Remove invalid assertions
8509 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
8511 (riscv_gdbarch_init): Gather isa features and abi features
8512 separately, ensure both match on the gdbarch when reusing an old
8513 gdbarch. Relax an error check to allow 32-bit abi float to run on
8514 a target with 64-bit float hardware.
8516 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8518 * source.c (search_command_helper): Stop reverse search
8519 when line 1 has been searched.
8521 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8523 * record-full.c (record_full_base_target::close): Rewrite
8524 record_full_core_buf_list free logic.
8526 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8528 * break-catch-syscall.c (print_one_catch_syscall): xfree
8531 2019-01-01 Joel Brobecker <brobecker@adacore.com>
8533 * top.c (print_gdb_version): Update Copyright year in version
8536 2019-01-01 Joel Brobecker <brobecker@adacore.com>
8538 Update copyright year range in all GDB files.
8540 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
8542 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
8544 For older changes see ChangeLog-2018.
8550 version-control: never