Remove tui_scroll_direction enum
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c3bd716f
TT
12019-06-25 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.c
4 (tui_source_window_base::do_scroll_horizontal): Remove direction
5 parameter.
6 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7 direction parameter.
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
12 direction parameter.
13 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
14 direction parameter.
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.
21
21c32dca
TT
222019-06-25 Tom Tromey <tom@tromey.com>
23
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.
32
73fbdc65
TT
332019-06-25 Tom Tromey <tom@tromey.com>
34
35 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
36 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
37
33325343
TT
382019-06-25 Tom Tromey <tom@tromey.com>
39
40 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
41 check.
42
29d2c474
TT
432019-06-25 Tom Tromey <tom@tromey.com>
44
45 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
46 type to void.
47 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
48 type to void.
49 * tui/tui-source.c (tui_set_source_content): Update.
50 * tui/tui-disasm.c (tui_set_disassem_content): Update.
51
152f3f4b
TT
522019-06-25 Tom Tromey <tom@tromey.com>
53
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
59 method.
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.
63
be4da588
TT
642019-06-25 Tom Tromey <tom@tromey.com>
65
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.
72
5b81daba
TT
732019-06-25 Tom Tromey <tom@tromey.com>
74
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
80 from tui_refresh_win.
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
85 method.
86 * tui/tui-regs.c (tui_display_register): Call refresh_window
87 method.
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>:
92 New method.
93
cb2ce893
TT
942019-06-25 Tom Tromey <tom@tromey.com>
95
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)
137 (tui_getc): Update.
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>:
141 Now virtual.
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.
150
ab313b35
TT
1512019-06-25 Tom Tromey <tom@tromey.com>
152
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.
159 (exec_info): Remove.
160 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
161 Update.
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.
166
dc2c33e4
TT
1672019-06-25 Tom Tromey <tom@tromey.com>
168
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
176 pointer.
177 * tui/tui-data.c (init_content_element): Update. Allocate the new
178 window.
179 (tui_free_data_content): Update.
180 (free_content_elements) <case DATA_WIN>: Free the window.
181
214a5cbe
TT
1822019-06-25 Tom Tromey <tom@tromey.com>
183
184 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
185 Update.
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
190 method.
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.
194
8e2daf15
TT
1952019-06-25 Tom Tromey <tom@tromey.com>
196
197 * tui/tui-wingeneral.c (make_visible): Remove check of window
198 type.
199
8903bd8a
TT
2002019-06-25 Tom Tromey <tom@tromey.com>
201
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.
207
3f02ce1e
TT
2082019-06-25 Tom Tromey <tom@tromey.com>
209
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.
216
1825f487
TT
2172019-06-25 Tom Tromey <tom@tromey.com>
218
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
223 method.
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>:
228 Likewise.
229
ad54d15b
TT
2302019-06-25 Tom Tromey <tom@tromey.com>
231
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.
253
2042b506
TT
2542019-06-25 Tom Tromey <tom@tromey.com>
255
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.
261
56122977
TT
2622019-06-25 Tom Tromey <tom@tromey.com>
263
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
273 bool.
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.
277
cda37efb
TT
2782019-06-25 Tom Tromey <tom@tromey.com>
279
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
285 make_visible.
286 (tui_win_is_source_type): Don't declare.
287 * tui/tui-data.c (tui_win_is_source_type): Remove.
288
6a0ee02c
TT
2892019-06-25 Tom Tromey <tom@tromey.com>
290
291 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
292 NULL check.
293
63901aec
TT
2942019-06-25 Tom Tromey <tom@tromey.com>
295
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.
300
ceb13a13
TT
3012019-06-25 Tom Tromey <tom@tromey.com>
302
303 * tui/tui-regs.c (tui_show_registers): Update.
304 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
305 bool.
306 * tui/tui-data.c (tui_data_window::clear_detail)
307 (tui_data_window): Update.
308
238eb706
TT
3092019-06-25 Tom Tromey <tom@tromey.com>
310
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):
314 Update.
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
323 tui_data_window.
324 (struct tui_win_info) <detail>: Remove. Add new fields from
325 tui_data_info.
326 (TUI_DATA_WIN): Add cast.
327 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
328 (~tui_data_window): Simplify.
329
81491aa0
TT
3302019-06-25 Tom Tromey <tom@tromey.com>
331
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
339 tui_command_info.
340 (TUI_CMD_WIN): Add casts.
341
e6e41501
TT
3422019-06-25 Tom Tromey <tom@tromey.com>
343
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):
351 Update.
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
362 "gdbarch".
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
368 m_has_locator.
369 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
370 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
371 header file.
372 (tui_source_window_base::clear_detail, ~tui_source_window_base):
373 Simplify.
374 (tui_free_all_source_wins_content): Cast to
375 tui_source_window_base.
376
44f0e208
TT
3772019-06-25 Tom Tromey <tom@tromey.com>
378
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.
390
7778b912
TT
3912019-06-25 Tom Tromey <tom@tromey.com>
392
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.
397
f83d391c
TT
3982019-06-25 Tom Tromey <tom@tromey.com>
399
400 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
401 "this", not TUI_DISASM_WIN.
402
13446e05
TT
4032019-06-25 Tom Tromey <tom@tromey.com>
404
405 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
406 declare.
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>:
429 Likewise.
430 (struct tui_source_window_base): Add do_scroll_horizontal.
431 (struct tui_source_window, struct tui_disasm_window): Add
432 do_scroll_vertical.
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.
436
5cf82909
TT
4372019-06-25 Tom Tromey <tom@tromey.com>
438
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.
447
ee1d42d6
TT
4482019-06-25 Tom Tromey <tom@tromey.com>
449
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
453 destructors.
454 (tui_win_info): Simplify.
455
b4eb2452
TT
4562019-06-25 Tom Tromey <tom@tromey.com>
457
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.
471
8761a91b
TT
4722019-06-25 Tom Tromey <tom@tromey.com>
473
474 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
475 (struct tui_data_window, struct tui_cmd_window): Declare
476 clear_detail method.
477 * tui/tui-data.c (tui_source_window::clear_detail)
478 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
479 methods.
480 (tui_clear_win_detail): Simplify.
481
0ed69eda
TT
4822019-06-25 Tom Tromey <tom@tromey.com>
483
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.
489
82432e10
TT
4902019-06-25 Tom Tromey <tom@tromey.com>
491
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.
496
ec328aa5
TT
4972019-06-25 Tom Tromey <tom@tromey.com>
498
499 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
500
33b906ab
TT
5012019-06-25 Tom Tromey <tom@tromey.com>
502
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
506 classes.
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
510 constructors.
511 (tui_alloc_win_info): Instantiate the appropriate subclass.
512
e7e11af4
TT
5132019-06-25 Tom Tromey <tom@tromey.com>
514
515 * tui/tui-win.c (tui_resize_all): Use delete.
516 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
517 destructor.
518 (tui_free_window): Don't declare.
519 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
520 Update.
521
6792b55e
TT
5222019-06-25 Tom Tromey <tom@tromey.com>
523
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.
527
f95675e1
TT
5282019-06-22 Tom Tromey <tom@tromey.com>
529
530 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
531 declare.
532 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
533
5bff081c
TT
5342019-06-22 Tom Tromey <tom@tromey.com>
535
536 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
537 declare.
538 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
539
47e3f474
TV
5402019-06-22 Tom de Vries <tdevries@suse.de>
541
542 * dwarf2read.c (create_addrmap_from_aranges)
543 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
544 instead of '%zu'.
545
fd5866f6
SM
5462019-06-21 Simon Marchi <simon.marchi@efficios.com>
547
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
554 types field.
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.
563
fb1eb2f9
SM
5642019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
565
566 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
567 gdb_bfd_ref_ptr.
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.
571
51ac9db5
SM
5722019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
575 type to htab_up.
576 * dwarf2read.c (struct dwo_file): Initialize fields.
577 <~dwo_file>: New.
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
583 dwo_files.
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
588 unique_ptr::get.
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.
593
dc4ccb6f
SM
5942019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
595
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
599 true instead of 1.
600
e6a1c5cb
TT
6012019-06-19 Tom Tromey <tom@tromey.com>
602
603 * tui/tui-data.h (tui_init_content_element): Don't declare.
604
6f6ffbeb
TT
6052019-06-19 Tom Tromey <tom@tromey.com>
606
607 * tui/tui-data.h (tui_init_win_info): Don't declare.
608
f23f598e
TV
6092019-06-19 Tom de Vries <tdevries@suse.de>
610
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>>.
614
680e1bee
TT
6152019-06-19 Tom Tromey <tromey@adacore.com>
616
617 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
618 EVAL_AVOID_SIDE_EFFECTS specially.
619
dcf37923
TT
6202019-06-19 Tom Tromey <tromey@adacore.com>
621
622 * source-cache.c (highlighter): New global.
623 (source_cache::get_source_lines): Create a highlighter on demand.
624
494986d5
AB
6252019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
626
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.
632
3360b6e7
TV
6332019-06-18 Tom de Vries <tdevries@suse.de>
634
635 PR gdb/24515
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.
641
310b3441
TV
6422019-06-17 Tom de Vries <tdevries@suse.de>
643
644 PR gdb/24617
645 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
646 accessing parent[parent_len - 1].
647
ba9777be
PP
6482019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
649
650 PR gdb/24364
651 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
652 call dtrace_process_dof with NULL dof.
653
2b9f6e89
TV
6542019-06-16 Tom de Vries <tdevries@suse.de>
655
656 PR gdb/24445
657 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
658
431b3ead
TT
6592019-06-16 Tom Tromey <tom@tromey.com>
660
661 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
662 (make_all_visible): Use address of member.
663
d04b44a1
TT
6642019-06-16 Tom Tromey <tom@tromey.com>
665
666 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
667 (tui_free_window, free_content, free_content_elements): Remove
668 unnecessary cast.
669 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
670 cast.
671 * tui/tui-regs.c (tui_show_register_group)
672 (tui_display_registers_from, tui_display_reg_element_at_line):
673 Remove unnecessary cast.
674
bf5142e7
AB
6752019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * linux-nat.c (normal_mask): Delete.
678 (_initialize_linux_nat): Don't initialise normal_mask.
679
c4973306
SM
6802019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
681
682 PR gdb/24445
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
690 assert_file_size.
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
694 needed.
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.
702
395f9c91
TT
7032019-06-16 Tom Tromey <tom@tromey.com>
704
705 * coffread.c (process_coff_symbol): Use xstrdup.
706 * value.c (create_internalvar): Use xstrdup.
707
cafb3438
TT
7082019-06-16 Tom Tromey <tom@tromey.com>
709
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
713 cast.
714 * utils.c (subset_compare): Remove unnecessary cast.
715 * ada-lang.c (ada_update_initial_language): Remove unnecessary
716 cast.
717 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
718 cast.
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
732 unnecessary cast.
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
736 cast.
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
745 unnecessary cast.
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
753 unnecessary cast.
754 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
755
730ead81
TT
7562019-06-16 Tom Tromey <tom@tromey.com>
757
758 * tui/tui-data.c (tui_alloc_generic_win_info)
759 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
760 checks.
761
584a927c
AB
7622019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
763 Andrew Burgess <andrew.burgess@embecosm.com>
764
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.
770
30056ea0
AB
7712019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
772
773 * NEWS: Mention new MI commands.
774 * break-catch-throw.c (enum exception_event_kind): Move to
775 breakpoint.h.
776 (print_mention_exception_catchpoint): Output text as a single
777 message.
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
787 break-catch-throw.c.
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.
798
ec8e2b6d
AB
7992019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
800
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.
807
0d3abd8c
AB
8082019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
809
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.
825
00df30ae
AB
8262019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
827
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
839 find_source_lines.
840 * source.h (open_source_file_with_line_charpos): Declare new
841 function.
842 (find_source_lines): Delete declaration.
843
afda45a2
AB
8442019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
845
846 * source.c (get_filename_and_charpos): Remove fullname
847 parameter.
848 (identify_source_line): Update call to get_filename_and_charpos.
849
0735b091
TT
8502019-06-14 Tom Tromey <tromey@adacore.com>
851
852 PR gdb/24502:
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.
859
52ce35e2
TT
8602019-06-14 Tom Tromey <tromey@adacore.com>
861
862 * NEWS: Move convenience variable news above Python news.
863
73cc7272
TT
8642019-06-14 Tom Tromey <tom@tromey.com>
865
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.
871 (GNULIB_H): Remove.
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.
879
f5686554
TT
8802019-06-14 Tom Tromey <tromey@adacore.com>
881
882 * symfile.c (add_symbol_file_command): Remove obsolete comment.
883 Warn if symbol file does not provide any symbols.
884
a0c1ffed
TT
8852019-06-14 Tom Tromey <tromey@adacore.com>
886
887 * source.c (find_and_open_source): Respect basenames_may_differ.
888
7c39e397
AB
8892019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
890
891 * annotate.c (annotate_breakpoints_invalid): Make use of
892 scoped_restore_terminal_state.
893 (annotate_frames_invalid): Likewise.
894
f411722c
TT
8952019-06-14 Tom Tromey <tromey@adacore.com>
896
897 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
898 allow assignment to an internalvar.
899
4268ec18
TT
9002019-06-14 Tom Tromey <tromey@adacore.com>
901
902 * ada-lex.l: Allow "_" in attribute names.
903
abdb711e
TT
9042019-06-14 Tom Tromey <tromey@adacore.com>
905
906 PR gdb/24653:
907 * regcache.c (registers_changed): Don't call alloca.
908 * top.c (execute_command): Don't call alloca.
909
4c048731
PA
9102019-06-13 Pedro Alves <palves@redhat.com>
911
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.
917
66eb1ed3
PA
9182019-06-13 Pedro Alves <palves@redhat.com>
919
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.
924
3345721a
PA
9252019-06-13 Pedro Alves <palves@redhat.com>
926
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".
934
6206060d
PA
9352019-06-13 Pedro Alves <palves@redhat.com>
936
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.
942
6665660a
PA
9432019-06-13 Pedro Alves <palves@redhat.com>
944
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
949 functions.
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.
963
f7e13587
PA
9642019-06-13 Pedro Alves <palves@redhat.com>
965
966 * thread.c (thread_apply_command): Check for invalid TID with
967 isdigit instead of !isalpha.
968
5d707134
PA
9692019-06-13 Pedro Alves <palves@redhat.com>
970
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.
990
272d4594
PA
9912019-06-13 Pedro Alves <palves@redhat.com>
992
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.
996
90a1ef87
PA
9972019-06-13 Pedro Alves <palves@redhat.com>
998
999 * stack.c (parse_backtrace_qualifiers): New.
1000 (backtrace_command): Use it.
1001 (backtrace_command_completer): Complete on qualifiers.
1002
d4c16835
PA
10032019-06-13 Pedro Alves <palves@redhat.com>
1004
1005 * frame.c: Include "cli/cli-option.h.
1006 (user_set_backtrace_options): New.
1007 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
1008 Delete.
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):
1036 New.
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
1043 and use it.
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.
1054
2daf894e
PA
10552019-06-13 Pedro Alves <palves@redhat.com>
1056
1057 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
1058 and that "set/show print raw frame-arguments" are now deprecated.
1059
1060 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
1061 command.
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
1065 frame-arguments".
1066 * valprint.c (_initialize_valprint): Deprecate "set/show print
1067 raw".
1068
e6ed716c
PA
10692019-06-13 Pedro Alves <palves@redhat.com>
1070
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
1084 ...
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
1088 declaration.
1089
7d8062de
PA
10902019-06-13 Pedro Alves <palves@redhat.com>
1091
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.
1129
9d0faba9
PA
11302019-06-13 Pedro Alves <palves@redhat.com>
1131
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
1135 ...
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.
1156
2c722807
PA
11572019-06-13 Pedro Alves <palves@redhat.com>
1158
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.
1161
dee7b4c8
PA
11622019-06-13 Pedro Alves <palves@redhat.com>
1163
1164 * cli/cli-setshow.c (parse_auto_binary_operation)
1165 (parse_cli_boolean_value): Don't allow "o".
1166
dca0f6c0
PA
11672019-06-13 Pedro Alves <palves@redhat.com>
1168
1169 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
1170 * NEWS: Mention maint test-settings KIND.
1171 * maint-test-settings.c: New file.
1172
597bf39d
PA
11732019-06-13 Pedro Alves <palves@redhat.com>
1174
1175 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
1176 completer.
1177 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
1178 "set" completers.
1179
48c410fb
PA
11802019-06-13 Pedro Alves <palves@redhat.com>
1181
1182 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
1183 after item.
1184
93bcb043
PA
11852019-06-13 Pedro Alves <palves@redhat.com>
1186
1187 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
1188
cbba3ecd
PA
11892019-06-13 Pedro Alves <palves@redhat.com>
1190
1191 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
1192 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
1193 call.
1194 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
1195 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
1196 calls.
1197 (check_for_argument): Skip spaces after argument.
1198
b9a3f842
PA
11992019-06-13 Pedro Alves <palves@redhat.com>
1200
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.
1205
3844e605
PA
12062019-06-13 Pedro Alves <palves@redhat.com>
1207
1208 * completer.c (complete_line_internal_1): Rewind completion word
1209 point.
1210 (completion_tracker::advance_custom_word_point_by): Change
1211 parameter type to int.
1212 * completer.h (completion_tracker::advance_custom_word_point_by):
1213 Likewise.
1214
00b56dbe
PA
12152019-06-13 Pedro Alves <palves@redhat.com>
1216
1217 * completer.c (advance_to_completion_word): Handle delimiters.
1218
d106773e
PA
12192019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
1220
1221 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
1222
08f10e02
TT
12232019-06-11 Tom Tromey <tom@tromey.com>
1224
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.
1229
1c7fe951
TT
12302019-06-11 Tom Tromey <tom@tromey.com>
1231
1232 * nat/linux-waitpid.c: Don't include server.h.
1233 (linux_debug): Remove.
1234 (my_waitpid): Update.
1235
89549d7f
TT
12362019-06-11 Tom Tromey <tromey@adacore.com>
1237
1238 * infcall.c (_initialize_infcall): Remove trailing newline from
1239 help.
1240 * user-regs.c (_initialize_user_regs): Remove trailing newline
1241 from help.
1242 * typeprint.c (_initialize_typeprint): Remove trailing newline
1243 from help.
1244 * reverse.c (_initialize_reverse): Remove trailing newlines from
1245 help.
1246 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
1247 from help.
1248 * language.c (add_set_language_command): Remove trailing newline
1249 from help.
1250 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
1251 help.
1252 * disasm.c (_initialize_disasm): Remove trailing newline from
1253 help.
1254 * top.c (init_main): Remove trailing newline from help.
1255 * interps.c (_initialize_interpreter): Remove trailing newline
1256 from help.
1257 * btrace.c (_initialize_btrace): Remove trailing newlines from
1258 help.
1259 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
1260 from help.
1261 * python/python.c (_initialize_python): Remove trailing newline
1262 from help.
1263 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
1264 help.
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
1268 from help.
1269 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
1270 newline from help.
1271
86108c13
TT
12722019-06-11 Tom Tromey <tromey@adacore.com>
1273
1274 * darwin-nat.c (darwin_decode_exception_message)
1275 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
1276
a7067863
AB
12772019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
1278
1279 * valops.c (value_slice): Check for not allocated or not
1280 associated values.
1281
9ab08412
TV
12822019-06-10 Tom de Vries <tdevries@suse.de>
1283
1284 PR gdb/24618
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
1287 invalid.
1288
f19e22e9
TV
12892019-06-10 Tom de Vries <tdevries@suse.de>
1290
1291 PR gdb/24611
1292 * linespec.c (linespec_lexer_lex_string): Remove incorrect
1293 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
1294
e99f9db0
TV
12952019-06-10 Tom de Vries <tdevries@suse.de>
1296
1297 PR symtab/24545
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.
1301
9bf7038b
TT
13022019-06-10 Tom Tromey <tromey@adacore.com>
1303
1304 * ada-lang.c (_initialize_ada_language): Update help text.
1305
422186a9
TT
13062019-06-10 Tom Tromey <tromey@adacore.com>
1307
1308 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
1309 with a newline.
1310 * guile/guile.c (handle_boot_error): Don't end warning with a
1311 newline.
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
1315 newline.
1316 (s12z_frame_cache): Likewise.
1317 * dwarf-index-cache.c (index_cache::store): Don't end warning with
1318 a newline.
1319 * solib-svr4.c (disable_probes_interface): Don't end warning with
1320 a newline.
1321 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
1322 newline.
1323 * python/python.c (do_finish_initialization): Don't end warning
1324 with a newline.
1325
25ce02ee
TT
13262019-06-10 Tom Tromey <tom@tromey.com>
1327
1328 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1329 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
1330 gdbpy_enter.
1331
caa429d8
TT
13322019-06-10 Tom Tromey <tromey@adacore.com>
1333
1334 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
1335 data.
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.
1340
81873cc8
TV
13412019-06-10 Tom de Vries <tdevries@suse.de>
1342
1343 PR symtab/16264
1344 PR symtab/24517
1345 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
1346
4fa0265e
РИ
13472019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
1348
1349 * source.c (find_and_open_source): Also rewrite relative file
1350 names.
1351
1a3da2cd
AB
13522019-04-26 Amos Bird <amosbird@gmail.com>
1353
1354 * annotate.c (annotate_thread_exited): Add "thread-exited"
1355 annotation.
1356
3847a7bf
TT
13572019-06-06 Tom Tromey <tromey@adacore.com>
1358
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
1363 print_time.
1364 (scoped_command_stats::print_time): New method.
1365
312617a3
AB
13662019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
1369 instructions of lengths 6 or 8 bytes.
1370
b02f78f9
PA
13712019-06-04 Pedro Alves <palves@redhat.com>
1372
1373 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
1374
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.
1397
e1f2e1a2
CB
13982019-06-04 Christian Biesinger <cbiesinger@google.com>
1399
1400 Add objfile property to gdb.Type.
d3238f7d
PA
1401 * NEWS: Mention Python API addition.
1402 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 1403
e664d728
PW
14042019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1405
1406 * NEWS: Mention the new set|show style [title|highlight].
1407 Mention changes to "show style", "help" and "apropos".
1408
66d8c862
PW
14092019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1410
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.
1419
9303eb2f
PW
14202019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1421
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.
1434
e2c52041
PW
14352019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1436
1437 * NEWS: Mention new pipe command and new convenience variables.
1438
947d3946
PW
14392019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1440
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.
1448
b8fd0918
PW
14492019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1450
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.
1456
68bb5386
PW
14572019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1458
1459 * top.h (saved_command_line): Remove declaration.
1460 * top.c (previous_saved_command_line, previous_repeat_arguments):
1461 New variables.
1462 (saved_command_line): Make static, define together with other
1463 'repeat variables'.
1464 (dont_repeat): Clear repeat_arguments.
1465 (repeat_previous, get_saved_command_line, save_command_line):
1466 New functions.
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
1472 saved_command_line.
1473 * command.h (repeat_previous, get_saved_command_line,
1474 save_command_line): New declarations.
1475 (dont_repeat): Add comment.
1476
bfcdb852
TT
14772019-05-30 Tom Tromey <tromey@adacore.com>
1478
1479 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
1480 Fix comment.
1481 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
1482
0ef209f2
JV
14832019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
1484
1485 PR cli/24587
1486 * completer.c (complete): Initialize variable word.
1487
955b06fa
SDJ
14882019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
1489
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'
1494 situation as well.
1495
fa9c3fa0
TT
14962019-05-29 Tom Tromey <tromey@adacore.com>
1497
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.
1502
4330d61d
TT
15032019-05-29 Tom Tromey <tromey@adacore.com>
1504
1505 PR c++/20020:
1506 * cp-valprint.c (cp_print_value_fields): Call
1507 cp_print_static_field inside "try".
1508
33a6bc35
TT
15092019-05-29 Tom Tromey <tromey@adacore.com>
1510
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.
1515
000439d5
TT
15162019-05-29 Tom Tromey <tromey@adacore.com>
1517
1518 * NEWS: Add entry.
1519 * infcmd.c (print_return_value_1): Handle finish_print
1520 option.
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
1525 member.
1526
c0e70c62
TT
15272019-05-28 Tom Tromey <tromey@adacore.com>
1528
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
1536 bool. Now static.
1537 (ada_read_var_value): Update and simplify.
1538 * ada-exp.y (write_var_or_type): Remove old code.
1539
766f8836
AH
15402019-05-28 Alan Hayward <alan.hayward@arm.com>
1541
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.
1547
eb41253a
TT
15482019-05-27 Tom Tromey <tom@tromey.com>
1549
1550 * NEWS: Fix typo.
1551
4ca51187
TT
15522019-05-22 Tom Tromey <tromey@adacore.com>
1553
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.
1560
8fca4da0
AH
15612019-05-22 Alan Hayward <alan.hayward@arm.com>
1562
1563 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
1564 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
1565
b7060614
AH
15662019-05-22 Alan Hayward <alan.hayward@arm.com>
1567
1568 * NEWS: Add debugredirect and testsuite sections.
1569
0a5954bd
SC
15702019-05-22 Simon Cook <simon.cook@embecosm.com>
1571
1572 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
1573 target descriptions using exclusively floating point register name
1574 aliases.
1575
dc42e902
AB
15762019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1577
1578 PR gdb/18644:
1579 * f-lang.c (build_fortran_types): Handle the case where
1580 gdbarch_floatformat_for_type returns a nullptr.
1581
fb7806c7
TV
15822019-05-21 Tom de Vries <tdevries@suse.de>
1583
1584 PR cli/24587
1585 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
1586
34d11c68
AB
15872019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1588
1589 PR gdb/18644:
1590 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
1591 16-byte floats.
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.
1595
122cf0f2
AB
15962019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1597
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.
1605
33d0e35a
TT
16062019-05-17 Tom Tromey <tromey@adacore.com>
1607
1608 * source.c (find_and_open_source): Remove cast.
1609
a45575b0
TT
16102019-05-17 Tom Tromey <tromey@adacore.com>
1611
1612 * annotate.c (annotate_source): Make "filename" const.
1613 * annotate.h (annotate_source): Use const.
1614
81f47ac2
AH
16152019-05-17 Alan Hayward <alan.hayward@arm.com>
1616
1617 * disasm.c (set_disassembler_options): Send errors to stderr.
1618
ca1285d1
AH
16192019-05-17 Alan Hayward <alan.hayward@arm.com>
1620
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
1630 parameter.
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.
1635
16362019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
1637 Tom Tromey <tromey@adacore.com>
1638
1639 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
1640 directly.
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
1644 directly.
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.
1648
26648588
JV
16492019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
1650
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.
1655
6e035501
JV
16562019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
1657
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.
1662
7d0e2ece
JV
16632019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
1664
e79be6e5 1665 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 1666
fb816e8b
TV
16672019-05-17 Tom de Vries <tdevries@suse.de>
1668
1669 PR gdb/24094
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.
1674
677052f2
SDJ
16752019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1676
1677 * stap-probe.c (stap_parse_register_operand): Make "regname" an
1678 "std::string", simplifying the algorithm.
1679
f3da9116
SDJ
16802019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1681
1682 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
1683 (stap_static_probe_ops::get_probes): Likewise.
1684
f1bb75ab
SDJ
16852019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1686
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
1693 displacement.
1694
3ca58cde
SDJ
16952019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1696
1697 * stap-probe.c (stap_get_opcode): Update comment.
1698 (stap_get_expected_argument_type): Likewise.
1699 (handle_stap_probe): Likewise.
1700
af2d9bee
SDJ
17012019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1702
1703 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
1704 return type to 'bool'. Adjust comment. Use 'bool' when
1705 appropriate.
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.
1722
61c9c421
TT
17232019-05-16 Tom Tromey <tromey@adacore.com>
1724
1725 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
1726 keyword to foreach.
1727
9ddc1af1
SM
17282019-05-15 Simon Marchi <simon.marchi@efficios.com>
1729
1730 * linux-thread-db.c (try_thread_db_load_1): Change return type
1731 to bool.
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.
1740
7bede828
SDJ
17412019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
1742
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.
1746
c5358db4
JD
17472019-05-15 John Darrington <john@darrington.wattle.id.au>
1748
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.
1753
c408a94f
TT
17542019-05-14 Tom Tromey <tromey@adacore.com>
1755
1756 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
1757 value is not lval_memory.
1758
e7bd7fba
TT
17592019-05-14 Tom Tromey <tromey@adacore.com>
1760
1761 * solib.c (info_sharedlibrary_command): Style the file name.
1762
a6d0f249
AH
17632019-05-14 Alan Hayward <alan.hayward@arm.com>
1764
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.
1776
66b8bb74
SM
17772019-05-12 Paul Naert <paul.naert@polymtl.ca>
1778
1779 * language.c (language_sniff_from_mangled_name): Fix "langauge"
1780 typo.
1781 * location.h (string_to_event_location): Likewise.
1782
21c219fd
JB
17832019-05-11 Joel Brobecker <brobecker@adacore.com>
1784
1785 GDB 8.3 released.
1786
13674803
SM
17872019-05-10 Simon Marchi <simon.marchi@efficios.com>
1788
1789 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
1790 New variable declaration.
1791 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
1792 New variable.
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):
1796 Remove.
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
1800 new variable.
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.
1805
a9eac7f9
SM
18062019-05-10 Simon Marchi <simon.marchi@efficios.com>
1807
1808 * contrib/cc-with-tweaks.sh: Validate dwz's work.
1809
71bed2db
TT
18102019-05-10 Tom Tromey <tromey@adacore.com>
1811
1812 * ada-lang.c (catch_ada_completer): New function.
1813 (_initialize_ada_language): Use it.
1814
24c54127
TT
18152019-05-10 Tom Tromey <tromey@adacore.com>
1816
1817 * thread.c (print_thread_info): Make "requested_threads" const.
1818 * gdbthread.h (print_thread_info): Make "requested_threads"
1819 const.
1820 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
1821 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
1822
7a102139
TT
18232019-05-08 Tom Tromey <tom@tromey.com>
1824
1825 * gdbtypes.c (objfile_type_data): Change type.
1826 (objfile_type, _initialize_gdbtypes): Update.
1827
924d79e2
TT
18282019-05-08 Tom Tromey <tom@tromey.com>
1829
1830 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
1831 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
1832 (_initialize_dwarf2_frame): Update.
1833
4c58e337
TT
18342019-05-08 Tom Tromey <tom@tromey.com>
1835
1836 * objc-lang.c (objc_objfile_data): Change type.
1837 (find_methods): Update.
1838 (_initialize_objc_lang): Remove.
1839
d772d2ab
TT
18402019-05-08 Tom Tromey <tom@tromey.com>
1841
1842 * stabsread.c (rs6000_builtin_type_data): Change type.
1843 (rs6000_builtin_type, _initialize_stabsread): Update.
1844
d11d83f4
TT
18452019-05-08 Tom Tromey <tom@tromey.com>
1846
1847 * mips-tdep.c (mips_pdr_data): Remove.
1848 (_initialize_mips_tdep): Update.
1849
9a73f0ad
TT
18502019-05-08 Tom Tromey <tom@tromey.com>
1851
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.
1855
8127a2fa
TT
18562019-05-08 Tom Tromey <tom@tromey.com>
1857
1858 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
1859 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
1860 on obstack.
1861 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
1862
91d3055d
TT
18632019-05-08 Tom Tromey <tom@tromey.com>
1864
1865 * mdebugread.c (basic_type_data): Change type.
1866 (basic_type, _initialize_mdebugread): Update.
1867
31930bd3
TT
18682019-05-08 Tom Tromey <tom@tromey.com>
1869
1870 * common/gdb_unique_ptr.h (struct noop_deleter): New.
1871
bdb3ed9e
TT
18722019-05-08 Tom Tromey <tom@tromey.com>
1873
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.
1879
f37b313d
TT
18802019-05-08 Tom Tromey <tom@tromey.com>
1881
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.
1890
24699405
TT
18912019-05-08 Tom Tromey <tom@tromey.com>
1892
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):
1896 Update.
1897 (coff_free_info): Remove.
1898
d4e05d2f
TT
18992019-05-08 Tom Tromey <tom@tromey.com>
1900
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.
1906
14ef6690
TT
19072019-05-08 Tom Tromey <tom@tromey.com>
1908
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.
1917
814cf43a
TT
19182019-05-08 Tom Tromey <tom@tromey.com>
1919
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):
1928 Update.
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>:
1936 Change type.
1937 (dtrace_process_dof_probe, dtrace_process_dof)
1938 (dtrace_static_probe_ops::get_probe): Change type.
1939
02dc647e
TT
19402019-05-08 Tom Tromey <tom@tromey.com>
1941
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.
1950
09232438
TT
19512019-05-08 Tom Tromey <tom@tromey.com>
1952
1953 * solib-svr4.c (struct svr4_info): Add initializers and
1954 destructor.
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.
1963
7b4a314f
TT
19642019-05-08 Tom Tromey <tom@tromey.com>
1965
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.
1970
51d3063a
TT
19712019-05-08 Tom Tromey <tom@tromey.com>
1972
1973 * breakpoint.c (breakpoint_objfile_key): Change type.
1974 (get_breakpoint_objfile_data): Update.
1975 (free_breakpoint_objfile_data): Remove.
1976 (_initialize_breakpoint): Update.
1977
89fb8848
TT
19782019-05-08 Tom Tromey <tom@tromey.com>
1979
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.
1985
e9b89e2d
TT
19862019-05-08 Tom Tromey <tom@tromey.com>
1987
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.
1992
8c42777c
TT
19932019-05-08 Tom Tromey <tom@tromey.com>
1994
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):
2015 Update.
2016
5bfd760d
TT
20172019-05-08 Tom Tromey <tom@tromey.com>
2018
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.
2027
e85e19b4
TT
20282019-05-08 Tom Tromey <tom@tromey.com>
2029
2030 * auto-load.c (struct auto_load_pspace_info): Add destructor and
2031 initializers.
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):
2040 Update.
2041
f6aa7436
TT
20422019-05-08 Tom Tromey <tom@tromey.com>
2043
2044 * objfiles.c (objfile_pspace_info): Add destructor and
2045 initializers.
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.
2052
6ae614f6
TT
20532019-05-08 Tom Tromey <tom@tromey.com>
2054
2055 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
2056 Change type.
2057 (get_catch_syscall_inferior_data): Update.
2058 (catch_syscall_inferior_data_cleanup): Remove.
2059 (_initialize_break_catch_syscall): Update.
2060
6509b8eb
TT
20612019-05-08 Tom Tromey <tom@tromey.com>
2062
2063 * inflow.c (struct terminal_info): Add destructor and
2064 initializers.
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.
2069
35632941
TT
20702019-05-08 Tom Tromey <tom@tromey.com>
2071
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.
2078
3017b94d
TT
20792019-05-08 Tom Tromey <tom@tromey.com>
2080
2081 * symtab.c (struct symbol_cache): Add destructor and
2082 initializers.
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):
2090 Update.
2091
a32ad8c5
TT
20922019-05-08 Tom Tromey <tom@tromey.com>
2093
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.
2099
5f6e90a0
TT
21002019-05-08 Tom Tromey <tom@tromey.com>
2101
2102 * registry.h (DECLARE_REGISTRY): Define the _key class.
2103
1bd0c6e4
AB
21042019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * NEWS: Merge two 'New commands' sections.
2107
2228ef77
XR
21082019-05-08 Joel Brobecker <brobecker@adacore.com>
2109
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
2114 definition instead.
2115 (ada_val_print_enum, ada_val_print_flt): Remove unused language
2116 parameter.
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.
2122
60fcc1c3
TT
21232019-05-08 Tom Tromey <tromey@adacore.com>
2124
2125 * remote.c (remote_hw_watchpoint_limit)
2126 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
2127 Now static.
2128
ed2b7c17
TT
21292019-05-08 Tom Tromey <tromey@adacore.com>
2130
2131 * maint.c (_initialize_maint_cmds): Move initialization code to
2132 remote.c.
2133 (watchdog, show_watchdog): Move to remote.c.
2134 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
2135 "watchdog" static.
2136 (_initialize_remote): Move initialization code from maint.c.
2137 * defs.h (watchdog): Don't declare.
2138
b0be6c91
TT
21392019-05-08 Tom Tromey <tromey@adacore.com>
2140
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.
2145
587ee17b
TT
21462019-05-08 Tom Tromey <tromey@adacore.com>
2147
2148 * dwarf2loc.c: Include dwarf2read.h.
2149 * defs.h (read_unsigned_leb128): Don't declare.
2150 * dwarf2read.h (read_unsigned_leb128): Declare.
2151
ca1df239
TT
21522019-05-08 Tom Tromey <tromey@adacore.com>
2153
2154 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
2155 method.
2156
99f20f08
TT
21572019-05-08 Tom Tromey <tromey@adacore.com>
2158
2159 * utils.c (fputs_maybe_filtered): Reset style after paging, even
2160 when no wrap column is set.
2161
80e55b13
TT
21622019-05-08 Tom Tromey <tromey@adacore.com>
2163
2164 * c-lang.c (c_get_string): Handle non-C-style arrays.
2165
9d3421af
TT
21662019-05-08 Tom Tromey <tromey@adacore.com>
2167
2168 * typeprint.c (print_offset_data::update): Print the bit offset,
2169 not the number of bits remaining.
2170
844333e2
TT
21712019-05-08 Tom Tromey <tromey@adacore.com>
2172
2173 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
2174 padding at end of comment.
2175
988915ee
TT
21762019-05-08 Tom Tromey <tromey@adacore.com>
2177
2178 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
2179 Compare main types.
2180
26bfd823
TT
21812019-05-06 Tom Tromey <tom@tromey.com>
2182
2183 * common/scoped_mmap.c: Include common-defs.h.
2184 * common/scoped_mmap.h: Don't include config.h.
2185
89055eaa
TT
21862019-05-04 Tom Tromey <tom@tromey.com>
2187
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.
2192
5da01df5
TT
21932019-05-04 Simon Marchi <simon.marchi@efficios.com>
2194 Tom Tromey <tom@tromey.com>
2195
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):
2200 Update.
2201
fbdf05a1
TT
22022019-05-04 Tom Tromey <tom@tromey.com>
2203
2204 * arc-tdep.c (arc_tdesc_init): Return bool.
2205
06d16ec9
TT
22062019-05-04 Tom Tromey <tom@tromey.com>
2207
2208 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
2209 Use gdb_assert_not_reached.
2210
9c056022
TT
22112019-05-04 Tom Tromey <tom@tromey.com>
2212
2213 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
2214 "false".
2215
fa9c2a59
TT
22162019-05-04 Tom Tromey <tom@tromey.com>
2217
2218 * arc-tdep.c (arc_tdesc_init): Use bool.
2219
e2eb806a
TT
22202019-05-04 Tom Tromey <tom@tromey.com>
2221
2222 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
2223
6fe87677
TT
22242019-05-04 Tom Tromey <tom@tromey.com>
2225
2226 * cli/cli-cmds.c (valid_command_p): Return bool.
2227
7f008c9e
TT
22282019-05-04 Tom Tromey <tom@tromey.com>
2229
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.
2232
b6484282
RT
22332019-05-04 Raul Tambre <raul@tambre.ee>
2234
2235 * python/lib/gdb/prompt.py (_ExtendedPrompt)
2236 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
2237 operator for comparison.
2238
af97b416
TT
22392019-05-04 Tom Tromey <tom@tromey.com>
2240
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.
2254
9d6d4be8
TV
22552019-05-04 Tom de Vries <tdevries@suse.de>
2256
2257 * contrib/cc-with-tweaks.sh: Support -n arg.
2258
66452beb
PW
22592019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2260
2261 * corelow.c (core_target::detach): Ensure frame cache and
2262 register caches are cleared.
2263 inferior.c (exit_inferior_1): Likewise.
2264
bde09ab7
TT
22652019-05-03 Sandra Loosemore <sandra@codesourcery.com>
2266 Tom Tromey <tom@tromey.com>
2267
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
2272 foreach.
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"
2277 from foreach.
2278 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
2279 foreach.
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
2284 foreach.
2285
222a8d25
TT
22862019-05-03 Tom Tromey <tromey@adacore.com>
2287
2288 * ada-exp.y (convert_char_literal): Check suffix of each
2289 enumerator.
2290
fcd60b84
DP
22912019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
2292
2293 PR ada/21406:
2294 * ada-exp.y (yywrap): Don't define.
2295 * ada-lex.l (%option): Add noyywrap
2296 (yywrap): Remove.
2297
5f2459c2
EZ
22982019-05-03 Eli Zaretskii <eliz@gnu.org>
2299
353ea2d1
EZ
2300 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
2301 _WIN32_WINNT to the XP level, unless already defined to a higher
2302 level.
2303
2304 * unittests/parse-connection-spec-selftests.c:
2305 * ser-tcp.c:
2306 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
2307 override.
2308
5f2459c2
EZ
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.
2313
80062eb9
AB
23142019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * rust-lang.c (val_print_struct): Handle printing structures
2317 containing strings.
2318
b8c05e85
TT
23192019-05-02 Tom Tromey <tromey@adacore.com>
2320
2321 * valarith.c (_initialize_valarith): Remove.
2322
4504bbde
TT
23232019-05-01 Tom Tromey <tromey@adacore.com>
2324
2325 * ada-lang.c (ada_value_primitive_field): Treat more fields as
2326 bitfields.
2327
d48e62f4
TT
23282019-05-01 Tom Tromey <tromey@adacore.com>
2329
2330 * ada-lang.c (ada_value_assign): Correctly compute starting offset
2331 for big-endian copies.
2332
15f18d14
AT
23332019-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.
2337
ab4ee614
JB
23382019-04-30 Joel Brobecker <brobecker@adacore.com>
2339
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.
2349
8ed5b76e
JB
23502019-04-30 Joel Brobecker <brobecker@adacore.com>
2351
2352 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
2353 Use current_event.dwThreadId instead of main_thread_id.
2354
2ff0a947
TT
23552019-04-30 Tom Tromey <tromey@adacore.com>
2356
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.
2361
a776957c
TT
23622019-04-30 Tom Tromey <tromey@adacore.com>
2363
2364 PR c++/24470:
2365 * dwarf2read.c (process_structure_scope): Handle case where type
2366 has template parameters but no symbol was created.
2367
bc68014d
AB
23682019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2369 Chris January <chris.january@arm.com>
2370
2371 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
2372 qualifier.
2373 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
2374
f1fdc960
AB
23752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * f-typeprint.c (f_print_type): Update rules for printing
2378 whitespace.
2379 (f_type_print_varspec_suffix): Likewise.
2380
bf7a4de1
AB
23812019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2382 Chris January <chris.january@arm.com>
2383
2384 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
2385 function arguments.
2386
bbe75b9d
AB
23872019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * f-lang.c (build_fortran_types): Change name of void type to
2390 lower case.
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.
2394
1db455a7
AB
23952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2396 Chris January <chris.january@arm.com>
2397
2398 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
2399 types for Fortran.
2400
b6d03bb2
AB
24012019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2402 Chris January <chris.january@arm.com>
2403 David Lecomber <david.lecomber@arm.com>
2404
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
2420
83228e93
AB
24212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
2424 UNOP_KIND.
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
2434 with new 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.
2438
6fdcd7cc
AB
24392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * std-operator.def: Remove unbalanced, stray double quote
2442 character.
2443
2e62ab40
AB
24442019-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>
2449
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
2459 is exceeded.
2460 (print_children): When printing the key of a map, allow one extra
2461 level of depth.
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.
2473
4be290b2
AB
24742019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2475
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
2492 member variable.
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.
2501
721b08c6
AB
25022019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2503
2504 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
2505 New field.
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.
2521
fc913e53
AB
25222019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2523
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.
2528
fa731fa0
PW
25292019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2530
2531 Support style in 'frame|thread apply'
2532
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
2538 methods.
2539 (class string_file): New constructor with term_out parameter.
2540 Override methods term_out and can_emit_style_escape. New member
2541 term_out.
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.
2559
136afab8
PW
25602019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2561
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
2566 may-call-functions.
2567 (_initialize_infcall): Call add_setshow_boolean_cmd for
2568 may-call-functions.
2569
725cbb63
KS
25702019-04-25 Keith Seitz <keiths@redhat.com>
2571
2572 PR c++/24367
2573 * cp-support.c (inspect_type): Don't attempt substitutions
2574 of symbol with the same name.
2575
3d1cbb78
TT
25762019-04-25 Tom Tromey <tromey@adacore.com>
2577
2578 PR gdb/24475:
2579 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
2580 static.
2581
94aeb44b
TT
25822019-04-25 Tom Tromey <tromey@adacore.com>
2583
2584 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
2585 rvalue reference.
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
2589 reference.
2590 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
2591 std::move.
2592 * python/py-utils.c (gdbpy_convert_exception): Take a const
2593 reference.
2594 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
2595 Use std::move.
2596 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2597 Use std::move.
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
2608 const reference.
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
2612 constructor.
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
2617 reference.
2618 * cli/cli-interp.c (safe_execute_command): Use std::move.
2619 * breakpoint.c (insert_bp_location, location_to_sals): Use
2620 std::move.
2621
680d7fd5
TT
26222019-04-25 Tom Tromey <tromey@adacore.com>
2623
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.
2637
c6fdd8b2
TT
26382019-04-25 Tom Tromey <tromey@adacore.com>
2639
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.
2647
cc06b668
TT
26482019-04-25 Tom Tromey <tromey@adacore.com>
2649
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):
2653 Update.
2654 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2655 Update.
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.
2674
cf532bd1
AT
26752019-04-25 Ali Tamur <tamur@google.com>
2676
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.
2687
82433e3e
SDJ
26882019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2689
2690 PR corefiles/11608
2691 PR corefiles/18187
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
2695 dump_mapping_p.
2696
723adb65
SL
26972019-04-25 Sandra Loosemore <sandra@codesourcery.com>
2698 Kang Li <kanglictf@gmail.com>
2699
2700 PR gdb/21600
2701
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.
2706
596179f7
SDJ
27072019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2708
2709 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
2710 "vq".
2711
a59240a4
TT
27122019-04-24 Tom Tromey <tromey@adacore.com>
2713
2714 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
2715
f872fdbb
AB
27162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2717
2718 * s12z-tdep.c (s12z_unwind_pc): Delete.
2719 (s12z_unwind_sp): Delete.
2720 (s12z_gdbarch_init): Don't register deleted functions with
2721 gdbarch.
2722
b614e6f3
AB
27232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2724
2725 * rl78-tdep.c (rl78_unwind_sp): Delete.
2726 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
2727
14faed38
AB
27282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2729
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
2734 gdbarch.
2735
541aad8a
AB
27362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2737
2738 * vax-tdep.c (vax_unwind_pc): Delete.
2739 (vax_gdbarch_init): Don't register deleted function with gdbarch.
2740
29222070
AB
27412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2742
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
2747 gdbarch.
2748
0f534d76
AB
27492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2750
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
2755 gdbarch.
2756
1ba7b7f9
AB
27572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2758
2759 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
2760 (tic6x_dummy_id): Delete.
2761 (tic6x_gdbarch_init): Don't register deleted functions with
2762 gdbarch.
2763
d31f262c
AB
27642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2765
2766 * sparc-tdep.c (sparc_unwind_pc): Delete.
2767 (sparc32_gdbarch_init): Don't register deleted function with
2768 gdbarch.
2769
6d14d64d
AB
27702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2771
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
2776 gdbarch.
2777
a40dde9d
AB
27782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2779
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
2784 gdbarch.
2785
47c47d69
AB
27862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2787
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.
2793
833a4480
AB
27942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2795
2796 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
2797 (rs6000_dummy_id): Delete.
2798 (rs6000_gdbarch_init): Don't register deleted functions with
2799 gdbarch.
2800
3f2cef49
AB
28012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2802
2803 * or1k-tdep.c (or1k_dummy_id): Delete.
2804 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
2805
96acf884
AB
28062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2807
2808 * nios2-tdep.c (nios2_dummy_id): Delete.
2809 (nios2_unwind_sp): Delete.
2810 (nios2_gdbarch_init): Don't register deleted functions with
2811 gdbarch.
2812
ca0ab0aa
AB
28132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2814
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
2819 gdbarch.
2820
c8259044
AB
28212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2822
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
2827 gdbarch.
2828
27f113c8
AB
28292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2830
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
2835 gdbarch.
2836
aee6c3cd
AB
28372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2838
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
2843 mn10300_unwind_sp.
2844 (mn10300_frame_unwind_init): Don't register deleted functions with
2845 gdbarch.
2846
8e2b5aea
AB
28472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2848
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
2853 gdbarch.
2854
43cf3ede
AB
28552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2856
2857 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
2858 (m68hc11_unwind_sp): Delete.
2859 (m68hc11_gdbarch_init): Don't register deleted functions with
2860 gdbarch.
2861
5e79b7bb
AB
28622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2863
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
2868 gdbarch.
2869
89b268d8
AB
28702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2871
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
2876 gdbarch.
2877
946c28d2
AB
28782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2879
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
2884 gdbarch.
2885
bf12844a
AB
28862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2887
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
2892 gdbarch.
2893
ecbc06d2
AB
28942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2895
2896 * nds32-tdep.c (nds32_type_align): Delete.
2897 (nds32_push_dummy_call): Use type_align instead.
2898
030197b4
AB
28992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2900
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.
2904
b907456c
AB
29052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
2908 case.
2909 (pass_on_stack): Use type_align.
2910 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
2911 function.
2912
9e97ba43
TT
29132019-04-23 Tom Tromey <tromey@adacore.com>
2914
2915 * dwarf2read.c (line_header::file_name_at): Remove unused
2916 overload.
2917
6892f601
TV
29182019-04-23 Tom de Vries <tdevries@suse.de>
2919
2920 PR gdb/24438
2921 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
2922 invocation.
2923
336d760d
AT
2924
29252019-03-27 Ali Tamur <tamur@google.com>
2926
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
2944
ad9d13f8
AT
29452019-04-22 Ali Tamur <tamur@google.com>
2946
2947 * MAINTAINERS (Write After Approval): Add self.
2948
d70cc3ba
SM
29492019-04-22 Simon Marchi <simon.marchi@efficios.com>
2950
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
2957 info.
2958 (svr4_current_sos_1): Add info parameter.
2959 (svr4_current_sos): Call get_svr4_info, pass info down to
2960 svr4_current_sos_1.
2961 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
2962 get_svr4_info.
2963 (svr4_in_dynsym_resolve_code): Pass current_program_space to
2964 get_svr4_info.
2965 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
2966 to get_svr4_info.
2967 (probes_table_remove_objfile_probes): Likewise.
2968 (register_solib_event_probe): Add info parameter.
2969 (solist_update_incremental): Pass info parameter down to
2970 svr4_read_so_list.
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
2981 get_svr4_info.
2982 (svr4_clear_solib): Likewise.
2983
7905fc35
PA
29842019-04-22 Pedro Alves <palves@redhat.com>
2985
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.
2995
fb881986
TT
29962019-04-19 Tom Tromey <tom@tromey.com>
2997
2998 * common/queue.h: Remove.
2999
8732db6c
TT
30002019-04-19 Tom Tromey <tom@tromey.com>
3001
3002 * event-loop.c: Don't include "common/queue.h".
3003
97dfbadd
TT
30042019-04-19 Tom Tromey <tom@tromey.com>
3005
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.
3015
cf250e36
TT
30162019-04-19 Tom Tromey <tom@tromey.com>
3017
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.
3023
61f4b350
TT
30242019-04-19 Tom Tromey <tom@tromey.com>
3025
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
3031 const.
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.
3037 (yylex): Update.
3038 * f-exp.y: Update rules.
3039 (yylex): Update.
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.
3045 (yylex): Update.
3046 * go-exp.y (lex_one_token): Update.
3047 Update rules.
3048 (classify_unsafe_function, classify_packaged_name)
3049 (classify_name, yylex): Update.
3050
189b8c2e
ST
30512019-04-19 Sergei Trofimovich <siarheit@google.com>
3052
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".
3057
8ecb59f8
TT
30582019-04-19 Tom Tromey <tromey@adacore.com>
3059
3060 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
3061 Check ADA_TYPE_P.
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
3067 macros.
3068
62160ec9
TT
30692019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
3070
3071 PR symtab/24423:
3072 * source.c (print_source_lines_base): Advance "iter" when a
3073 control character is seen.
3074
f2ae8bc8
PW
30752019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3076
3077 * inferior.h (struct infcall_suspend_state_deleter):
3078 Catch exception in destructor to avoid crash.
3079
d563b953
PW
30802019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3081
3082 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
3083 close to the add_com "shell".
3084
dc34c897
TT
30852019-04-18 Tom Tromey <tromey@adacore.com>
3086
3087 * process-stratum-target.h (class process_stratum_target)
3088 <stratum>: Add "final".
3089
a12e5744
TT
30902019-04-17 Tom Tromey <tromey@adacore.com>
3091
3092 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
3093 against nullptr before use.
3094
a7e559cc
AH
30952019-04-17 Alan Hayward <alan.hayward@arm.com>
3096
3097 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
3098
c01660c6
AB
30992019-04-17 Jim Wilson <jimw@sifive.com>
3100 Andrew Burgess <andrew.burgess@embecosm.com>
3101
3102 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
3103 code read might fail, assume 4-byte breakpoint in that case.
3104
4aa866af
LS
31052019-04-15 Leszek Swirski <leszeks@google.com>
3106
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
3109 classification.
3110
48574d91
AH
31112019-04-15 Alan Hayward <alan.hayward@arm.com>
3112
3113 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
3114 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
3115 function.
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
3119 declaration.
3120
4da037ef
AH
31212019-04-15 Alan Hayward <alan.hayward@arm.com>
3122
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
3126 each VQ.
3127
ccb8d7e8
AH
31282019-04-15 Alan Hayward <alan.hayward@arm.com>
3129
3130 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
3131
35add35e
AB
31322019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
3133
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.
3137
51196bbc
EZ
31382019-04-12 Eli Zaretskii <eliz@gnu.org>
3139
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?"
3143 prompt.
3144
62253a61
AB
31452019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
3146
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.
3164
a9158a86
AB
31652019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3166
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.
3171
41077b66
AB
31722019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3173
3174 * gdbtypes.c (type_align): A struct with no non-static fields also
3175 has alignment of 1.
3176
9f0272f8
AB
31772019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3178
3179 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
3180 component to 0.
3181 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
3182 member.
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
3192 length, are found.
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.
3198
02cf60c7
TT
31992019-04-11 Tom Tromey <tromey@adacore.com>
3200
3201 * utils.c (internal_vproblem): Make "msg" const.
3202
68811f8f
AH
32032019-04-11 Alan Hayward <alan.hayward@arm.com>
3204
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.
3209
3f52fdbc
KB
32102019-04-10 Kevin Buettner <kevinb@redhat.com>
3211
3212 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
3213 function.
3214 (fill_gregset): Call amd64_linux_collect_native_gregset instead
3215 of amd64_collect_native_gregset.
3216 (amd64_linux_nat_target::store_registers): Likewise.
3217
e9ad22ee
TT
32182019-04-10 Tom Tromey <tom@tromey.com>
3219
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
3229 iterator.
3230 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
3231 iterator.
3232
ee371134
TT
32332019-04-10 Tom Tromey <tom@tromey.com>
3234
3235 * symfile.c (reread_symbols): Remove old comment.
3236 * objfiles.c (free_all_objfiles): Fix a typo.
3237
bf227d61
TT
32382019-04-10 Tom Tromey <tom@tromey.com>
3239
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.
3245
8dc433a0
TT
32462019-04-09 Ivan Begert <ivanbegert@gmail.com>
3247 Tom Tromey <tromey@adacore.com>
3248
3249 PR rust/24414:
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.
3253
9ab8741a
TT
32542019-04-09 Tom Tromey <tromey@adacore.com>
3255
3256 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
3257 to bool.
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.
3263
e242fd12
SM
32642019-04-09 Simon Marchi <simon.marchi@efficios.com>
3265
9ca1957f 3266 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
3267 the "start" command.
3268
2b0c8b01
KB
32692019-04-08 Kevin Buettner <kevinb@redhat.com>
3270
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.
3276
50a82723
KB
32772019-04-08 Kevin Buettner <kevinb@redhat.com>
3278
3279 * gdbthread.h (find_thread_by_handle): Revise declaration.
3280 * thread.c (find_thread_by_handle): Likewise. Adjust
3281 implementation too.
3282 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
3283 support for buffer objects as handles.
3284
cf63b016
KB
32852019-04-08 Kevin Buettner <kevinb@redhat.com>
3286
3287 * python/py-infthread.c (thpy_thread_handle): New function.
3288 (thread_object_methods): Register thpy_thread_handle.
3289
3d6c6204
KB
32902019-04-08 Kevin Buettner <kevinb@redhat.com>
3291
3292 * gdbthread.h (thread_to_thread_handle): Declare.
3293 * thread.c (gdbtypes.h): Include.
3294 (thread_to_thread_handle): New function.
3295
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.
3301
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.
3308
56be6ea8
PA
33092019-04-08 Pedro Alves <palves@redhat.com>
3310
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
3319 errors)): Delete.
3320 (gdb_exception_error::gdb_exception_error(enum errors, const char
3321 *, va_list)): New.
3322 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
3323 Add assertion.
3324 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
3325 errors)): Delete.
3326 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
3327 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
3328 Add assertion.
3329
eedc3f4f
TT
33302019-04-08 Tom Tromey <tom@tromey.com>
3331
3332 * valops.c (value_rtti_indirect_type): Replace throw_exception
3333 with throw.
3334 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
3335 with throw.
3336 * thread.c (thr_try_catch_cmd): Replace throw_exception with
3337 throw.
3338 * target.c (target_translate_tls_address): Replace throw_exception
3339 with throw.
3340 * stack.c (frame_apply_command_count): Replace throw_exception
3341 with throw.
3342 * solib-spu.c (append_ocl_sos): Replace throw_exception with
3343 throw.
3344 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
3345 with throw.
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.
3351 * record-btrace.c:
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
3356 throw.
3357 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
3358 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
3359 * linespec.c:
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
3364 throw.
3365 * inf-loop.c (inferior_event_handler): Replace throw_exception
3366 with throw.
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
3382 with throw.
3383 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
3384 throw.
3385 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
3386 * completer.c (complete_line_internal): Replace throw_exception
3387 with throw.
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
3391 with throw.
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.
3403
26003a20
TT
34042019-04-08 Tom Tromey <tom@tromey.com>
3405
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
3410 const.
3411 (struct gdb_exception_error): Add constructor.
3412 (struct gdb_exception_quit): Add constructor.
3413
d272eb37
TT
34142019-04-08 Tom Tromey <tom@tromey.com>
3415
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.
3420
230d2906
TT
34212019-04-08 Tom Tromey <tom@tromey.com>
3422
3423 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
3424 Remove.
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.
3437 * btrace.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.
3451 * cp-abi.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.
3463 * eval.c: Update.
3464 * event-loop.c: Update.
3465 * event-top.c: Update.
3466 * exec.c: Update.
3467 * f-valprint.c: Update.
3468 * fbsd-tdep.c: Update.
3469 * frame-unwind.c: Update.
3470 * frame.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.
3492 * infcmd.c: Update.
3493 * infrun.c: Update.
3494 * jit.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.
3501 * main.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.
3508 * parse.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.
3537 * remote.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.
3549 * solib.c: Update.
3550 * sparc64-linux-tdep.c: Update.
3551 * stack.c: Update.
3552 * symfile-mem.c: Update.
3553 * symmisc.c: Update.
3554 * target.c: Update.
3555 * thread.c: Update.
3556 * top.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.
3562 * valops.c: Update.
3563 * valprint.c: Update.
3564 * value.c: Update.
3565 * varobj.c: Update.
3566 * windows-nat.c: Update.
3567 * x86-linux-nat.c: Update.
3568 * xml-support.c: Update.
3569
a70b8144
TT
35702019-04-08 Tom Tromey <tom@tromey.com>
3571
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
3580 handling.
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.
3712
3d6e9d23
TT
37132019-04-08 Tom Tromey <tom@tromey.com>
3714
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
3755 a std::string.
3756 (exception_try_scope_entry, exception_try_scope_exit): Don't
3757 declare.
3758 (struct exception_try_scope): Remove.
3759 (TRY): Don't use exception_try_scope.
3760 (struct gdb_exception): Add constructor, operator=.
3761 <what>: New method.
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
3767 initializer.
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):
3784 Update.
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.
3788
c5c10118
TT
37892019-04-08 Tom Tromey <tom@tromey.com>
3790
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.
3797
4de283e4
TT
37982019-04-05 Tom Tromey <tom@tromey.com>
3799
3800 Revert the header-sorting patch.
3801 * ft32-tdep.c: Revert.
3802 * frv-tdep.c: Revert.
3803 * frv-linux-tdep.c: Revert.
3804 * frame.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.
3818 * f-lang.c: Revert.
3819 * extension.h: Revert.
3820 * extension.c: Revert.
3821 * extension-priv.h: Revert.
3822 * expprint.c: Revert.
3823 * exec.h: Revert.
3824 * exec.c: Revert.
3825 * exceptions.c: Revert.
3826 * event-top.c: Revert.
3827 * event-loop.c: Revert.
3828 * eval.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.
3844 * disasm.h: Revert.
3845 * disasm.c: Revert.
3846 * disasm-selftests.c: Revert.
3847 * dictionary.c: Revert.
3848 * dicos-tdep.c: Revert.
3849 * demangle.c: Revert.
3850 * dcache.h: Revert.
3851 * dcache.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.
3857 * d-lang.c: Revert.
3858 * ctf.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.
3866 * cp-abi.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.
3881 * c-lang.c: Revert.
3882 * buildsym.c: Revert.
3883 * buildsym-legacy.c: Revert.
3884 * build-id.h: Revert.
3885 * build-id.c: Revert.
3886 * btrace.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.
3894 * block.c: Revert.
3895 * bfin-tdep.c: Revert.
3896 * bfin-linux-tdep.c: Revert.
3897 * bfd-target.c: Revert.
3898 * bcache.c: Revert.
3899 * ax-general.c: Revert.
3900 * ax-gdb.h: Revert.
3901 * ax-gdb.c: Revert.
3902 * avr-tdep.c: Revert.
3903 * auxv.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.
3947 * agent.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.
3962
d55e5aa6
TT
39632019-04-05 Tom Tromey <tom@tromey.com>
3964
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.
4126
699bd4cf
TT
41272019-04-04 Tom Tromey <tom@tromey.com>
4128
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):
4133 Rename.
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
4141 "types" parameter.
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"
4159 parameter.
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.
4168
dac43e32
TT
41692019-04-04 Tom Tromey <tom@tromey.com>
4170
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
4174 type-stack.h.
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
4187 type-stack.c).
4188 * f-exp.y (type_stack): New global.
4189 Update rules.
4190 (push_kind_type, f_parse): Update.
4191 * d-exp.y (type_stack): New global.
4192 Update rules.
4193 (d_parse): Update.
4194 * c-exp.y (struct c_parse_state) <type_stack>: New member.
4195 Update rules.
4196 * Makefile.in (COMMON_SFILES): Add type-stack.c.
4197 (HFILES_NO_SRCDIR): Add type-stack.h.
4198
2a612529
TT
41992019-04-04 Tom Tromey <tom@tromey.com>
4200
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
4212 globals.
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.
4223 (yylex): Update.
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.
4236
43476f0b
TT
42372019-04-04 Tom Tromey <tom@tromey.com>
4238
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.
4252
5776fca3
TT
42532019-04-04 Tom Tromey <tom@tromey.com>
4254
4255 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
4256 lex_operator, push_back>: New methods.
4257 Update all rules.
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"
4265 parameter.
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.
4280
8621b685
TT
42812019-04-04 Tom Tromey <tom@tromey.com>
4282
4283 * rust-exp.y (rustyylex, rust_lex_tests): Update.
4284 * parser-defs.h (struct parser_state) <parser_state>: Add new
4285 parameter.
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.
4297
28aaf3fd
TT
42982019-04-04 Tom Tromey <tom@tromey.com>
4299
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.
4320
1e58a4a4
TT
43212019-04-04 Tom Tromey <tom@tromey.com>
4322
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):
4330 Remove globals.
4331 (parse_exp_in_context): Update.
4332 * p-exp.y: Update all rules.
4333 (yylex): Update.
4334 * m2-exp.y: Update all rules.
4335 (yylex): Update.
4336 * go-exp.y (yylex): Update.
4337 * f-exp.y (yylex): Update.
4338 * d-exp.y: Update all rules.
4339 (yylex): Update.
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.
4343
37eedb39
TT
43442019-04-04 Tom Tromey <tom@tromey.com>
4345
4346 * gdbarch.h, gdbarch.c: Rebuild.
4347 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
4348 * stap-probe.h:
4349 (struct stap_parse_info): Replace "parser_state" with
4350 "expr_builder".
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".
4367
73923d7e
TT
43682019-04-04 Tom Tromey <tom@tromey.com>
4369
4370 * rust-exp.y: Replace "parse_language" with method call.
4371 * p-exp.y:
4372 (yylex): Replace "parse_language" with method call.
4373 * m2-exp.y:
4374 (yylex): Replace "parse_language" with method call.
4375 * go-exp.y (classify_name): Replace "parse_language" with method
4376 call.
4377 * f-exp.y (yylex): Replace "parse_language" with method call.
4378 * d-exp.y (lex_one_token): Replace "parse_language" with method
4379 call.
4380 * c-exp.y:
4381 (lex_one_token, classify_name, yylex): Replace "parse_language"
4382 with method call.
4383 * ada-exp.y (find_primitive_type, type_char)
4384 (type_system_address): Replace "parse_language" with method call.
4385
fa9f5be6
TT
43862019-04-04 Tom Tromey <tom@tromey.com>
4387
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
4392 call.
4393 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
4394 call.
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"
4398 with method call.
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.
4408
1201a264
TT
44092019-04-04 Tom Tromey <tom@tromey.com>
4410
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.
4420
e3980ce2
TT
44212019-04-04 Tom Tromey <tom@tromey.com>
4422
4423 * parser-defs.h (increase_expout_size): Don't declare.
4424 * parse.c (increase_expout_size): Now static.
4425
e9f8e3f1
TS
44262019-04-04 Thomas Schwinge <thomas@codesourcery.com>
4427
4428 * gnu-nat.c (gnu_nat_target::wait): Fix
4429 target_waitstatus_to_string call.
4430
d7df6549
AB
44312019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
4432
4433 * eval.c (evaluate_subexp_standard): Handle internal functions
4434 during Fortran function call handling.
4435
8bdc1658
AB
44362019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
4437
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.
4444
c29705b7
PW
44452019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4446
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
4455 obsolete comment.
4456
05caa1d2
TT
44572019-04-01 Tom Tromey <tromey@adacore.com>
4458
4459 PR symtab/23331:
4460 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
4461
9d1447e0
SDJ
44622019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
4463 Pedro Alves <palves@redhat.com>
4464
4465 * top.c (quit_force): Call 'finalize_values'.
4466 * value.c (finalize_values): New function.
4467 * value.h (finalize_values): Declare.
4468
7734102d
EZ
44692019-03-30 Eli Zaretskii <eliz@gnu.org>
4470
4471 * NEWS: Announce $_gdb_major and $_gdb_minor.
4472
4473 * top.c (init_gdb_version_vars): New function.
4474 (gdb_init): Call init_gdb_version_vars.
4475
188e1fa9
TT
44762019-03-29 Tom Tromey <tromey@adacore.com>
4477
4478 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
4479 help text. Remove dead code.
4480
2880242d
KS
44812019-03-29 Keith Seitz <keiths@redhat.com>
4482
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
4488 print them.
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.
4496
cc1defb1
KS
44972019-03-29 Keith Seitz <keiths@redhat.com>
4498
4499 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4500 %s/pulongest for TYPE_LENGTH instead of %d in format
4501 strings.
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.
4518
e432ccf1
JT
45192019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
4520
4521 * windows-nat.c (display_selector): Fixed format specifications
4522 for 64-bit Cygwin.
4523
65d2b333
PW
45242019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4525
4526 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
4527
f489207e
SL
45282019-03-28 Sandra Loosemore <sandra@codesourcery.com>
4529
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.
4534
bffa1015
AH
45352019-03-28 Alan Hayward <alan.hayward@arm.com>
4536
4537 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
4538
fc96163a
AH
45392019-03-28 Alan Hayward <alan.hayward@arm.com>
4540
4541 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
4542
20dc7e9b
PW
45432019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4544 Tom Tromey <tromey@adacore.com>
4545
4546 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
4547
7f5331a8
JB
45482019-03-26 Joel Brobecker <brobecker@adacore.com>
4549
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.
4554
18c77628
AB
45552019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
4556
4557 * cp-valprint.c (cp_print_value_fields): Don't print trailing
4558 whitespace when pretty printing is on.
4559
53c973f2
AH
45602019-03-26 Alan Hayward <alan.hayward@arm.com>
4561
e79be6e5 4562 * ppc-linux-nat.c: Add include.
53c973f2 4563
d851aa71
AH
45642019-03-26 Alan Hayward <alan.hayward@arm.com>
4565
e79be6e5 4566 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 4567
2fe7bab7
AH
45682019-03-26 Alan Hayward <alan.hayward@arm.com>
4569
e79be6e5 4570 * arm-linux-nat.c: Add include.
2fe7bab7 4571
068ef30e
SM
45722019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
4573
4574 * source-cache.c (source_cache::get_source_lines): Re-read
4575 fullname after calling open_source_file.
4576
81a24d04
JB
45772019-03-25 John Baldwin <jhb@FreeBSD.org>
4578
4579 * NEWS: Mention TLS support for FreeBSD.
4580
79e7ae11
TT
45812019-03-25 Tom Tromey <tromey@adacore.com>
4582
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
4587 other comments.
4588
d45963c2
AH
45892019-03-25 Alan Hayward <alan.hayward@arm.com>
4590
4591 * s390-linux-nat.c: Add include.
4592
0f83012e
AH
45932019-03-25 Alan Hayward <alan.hayward@arm.com>
4594
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):
4598 Likewise.
4599 (aarch64_linux_get_hwcap): Remove function.
4600 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
4601 declaration.
4602 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
4603 linux_get_hwcap.
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
4612 linux_get_hwcap.
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.
4619
6640a367
TT
46202019-03-24 Tom Tromey <tom@tromey.com>
4621
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
4628 initialization.
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.
4651
a930ebcd
TT
46522019-03-24 Tom Tromey <tom@tromey.com>
4653
4654 * expression.h: Don't include symtab.h.
4655 (struct block): Forward declare.
4656
582942f4
TT
46572019-03-24 Tom Tromey <tom@tromey.com>
4658
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"
4671 const.
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"
4683 const.
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"
4701 const.
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.
4705
7ad417dd
TT
47062019-03-23 Tom Tromey <tom@tromey.com>
4707
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
4711 innermost_block.
4712 * parser-defs.h (enum innermost_block_tracker_type): Move to
4713 expression.h.
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
4721 innermost_block.
4722 * expression.h (enum innermost_block_tracker_type): Move from
4723 parser-defs.h.
4724 (parse_exp_1): Add tracker_types parameter.
4725 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
4726 reset innermost_block.
4727
b366c208
TT
47282019-03-23 Tom Tromey <tom@tromey.com>
4729
4730 * objfiles.h: Include bcache.h.
4731
9bb9b2f9
TT
47322019-03-23 Tom Tromey <tom@tromey.com>
4733
4734 * linespec.c (get_current_search_block): Use
4735 scoped_restore_current_language.
4736 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
4737
59c28372
AH
47382019-03-22 Alan Hayward <alan.hayward@arm.com>
4739 Jiong Wang <jiong.wang@arm.com>
4740
4741 * aarch64-linux-tdep.c
4742 (aarch64_linux_iterate_over_regset_sections): Check for pauth
4743 section.
4744 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
4745
17e116a7
AH
47462019-03-22 Alan Hayward <alan.hayward@arm.com>
4747 Jiong Wang <jiong.wang@arm.com>
4748
4749 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
4750 instructions.
4751 (aarch64_analyze_prologue_test): Add PACIASP test.
4752 (aarch64_prologue_prev_register): Unmask PC value.
4753
11e1b75f
AH
47542019-03-22 Alan Hayward <alan.hayward@arm.com>
4755 Jiong Wang <jiong.wang@arm.com>
4756
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.
4763
34dcc7cf
AH
47642019-03-22 Alan Hayward <alan.hayward@arm.com>
4765 Jiong Wang <jiong.wang@arm.com>
4766
4767 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
4768 registers.
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.
4777
1ef53e6b
AH
47782019-03-22 Alan Hayward <alan.hayward@arm.com>
4779 Jiong Wang <jiong.wang@arm.com>
4780
4781 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
4782
76bed0fd
AH
47832019-03-22 Alan Hayward <alan.hayward@arm.com>
4784 Jiong Wang <jiong.wang@arm.com>
4785
4786 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
4787 function.
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.
4794
ee4fbcfa
AH
47952019-03-22 Alan Hayward <alan.hayward@arm.com>
4796 Jiong Wang <jiong.wang@arm.com>
4797
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.
4805
6dc0ebde
AH
48062019-03-22 Alan Hayward <alan.hayward@arm.com>
4807 Jiong Wang <jiong.wang@arm.com>
4808
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.
4822
595915c1
TT
48232019-03-20 Tom Tromey <tromey@adacore.com>
4824
4825 * infrun.c (handle_inferior_event): Rename from
4826 handle_inferior_event_1. Create a scoped_value_mark.
4827 (handle_inferior_event): Remove.
4828
4c7d57e7
TT
48292019-03-19 Tom Tromey <tromey@adacore.com>
4830
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.
4834
cb246234
PA
48352019-03-19 Pedro Alves <palves@redhat.com>
4836
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
4843 comment.
4844
3a0e45b2
AH
48452019-03-18 Alan Hayward <alan.hayward@arm.com>
4846
4847 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
4848 variable names.
4849 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
4850
5371b850
PA
48512019-03-18 Pedro Alves <palves@redhat.com>
4852 Eli Zaretskii <eliz@gnu.org>
4853
4854 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
4855 m_line and m_start_of_line.
4856
b17c4cd0
EZ
48572019-03-18 Eli Zaretskii <eliz@gnu.org>
4858
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.
4863
4bd56d18
TT
48642019-03-18 Tom Tromey <tromey@adacore.com>
4865
4866 * minsyms.c (minimal_symbol_reader::install): Remove call to
4867 obstack_blank.
4868
55c10aca
PA
48692019-03-18 Pedro Alves <palves@redhat.com>
4870
4871 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
4872 New globals.
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>:
4880 New setter methods.
4881
647bb750
HD
48822019-03-18 Hannes Domani <ssbssa@yahoo.de>
4883
4884 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
4885 Handle tabs.
4886
bff8c71f
TT
48872019-03-18 Tom Tromey <tromey@adacore.com>
4888
4889 * ada-lang.c (empty_array): Add "high" parameter.
4890 (ada_evaluate_subexp): Update.
4891
58785d98
ST
48922019-03-17 Sergei Trofimovich <siarheit@google.com>
4893
4894 * unittests/string_view-selftests.c: Define
4895 _initialize_string_view_selftests unconditionally.
4896
d4cbef22
ВМ
48972019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4898
4899 PR gdb/24350
4900 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
4901
fce4c071
ВМ
49022019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4903
4904 PR gdb/24351
4905 * windows-nat.c (display_selector): Fix format specifiers.
4906
f7f0a123
EZ
49072019-03-17 Eli Zaretskii <eliz@gnu.org>
4908
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".
4913
ab42892f
EZ
49142019-03-16 Eli Zaretskii <eliz@gnu.org>
4915
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.
4919
8d8c087f
PW
49202019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4921
4922 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
4923 linux-thread-db.c (_initialize_thread_db): Likewise.
4924
798e1c30
EZ
49252019-03-16 Eli Zaretskii <eliz@gnu.org>
4926
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.
4930
eefba3da
TT
49312019-03-15 Tom Tromey <tom@tromey.com>
4932
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.
4944
0de2420c
TT
49452019-03-15 Tom Tromey <tom@tromey.com>
4946
4947 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
4948
042d75e4
TT
49492019-03-15 Tom Tromey <tom@tromey.com>
4950
4951 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
4952 unique_xmalloc_ptr.
4953 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
4954 Update.
4955 * minsyms.c (lookup_minimal_symbol_by_pc_section)
4956 (build_minimal_symbol_hash_tables)
4957 (minimal_symbol_reader::install): Update.
4958
db92718b
TT
49592019-03-15 Tom Tromey <tom@tromey.com>
4960
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.
4966
d6797f46
TT
49672019-03-15 Tom Tromey <tom@tromey.com>
4968
4969 * objfiles.h (struct objfile_per_bfd_storage): Declare
4970 destructor.
4971 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
4972 New.
4973 (get_objfile_bfd_data): Use new. Don't initialize
4974 language_of_main.
4975 (free_objfile_per_bfd_storage): Remove.
4976 (objfile_bfd_data_free, objfile::~objfile): Use delete.
4977
741d7538
TT
49782019-03-15 Tom Tromey <tom@tromey.com>
4979
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
4984 comment.
4985 (minimal_symbol_reader::install): Update.
4986 (terminate_minimal_symbol_table): Remove.
4987 * jit.c (jit_object_close_impl): Update.
4988
788c80d1
TT
49892019-03-15 Tom Tromey <tom@tromey.com>
4990
4991 * minsyms.c (minimal_symbol_reader::record_full): Remove some
4992 initializations.
4993
1b7a07cb
TT
49942019-03-15 Tom Tromey <tom@tromey.com>
4995
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.
5000
3db066bc
TT
50012019-03-15 Tom Tromey <tom@tromey.com>
5002
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.
5006
3fff2c37
EZ
50072019-03-14 Eli Zaretskii <eliz@gnu.org>
5008
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.
5014
5015 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
5016 ncurses_norm_attr.
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
5021 ncurses_norm_attr.
5022
3b336828
TT
50232019-03-14 Tom Tromey <tromey@adacore.com>
5024
5025 * source-cache.h (class source_cache) <get_source_lines>: Return
5026 std::string.
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.
5030
d085f989
TT
50312019-03-14 Tom Tromey <tromey@adacore.com>
5032
5033 * NEWS: Add item for "style sources" commands.
5034 * source-cache.c (source_cache::get_source_lines): Check
5035 source_styling.
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.
5040
6f11e682
TT
50412019-03-14 Pedro Alves <palves@redhat.com>
5042 Tom Tromey <tromey@adacore.com>
5043
5044 * tui/tui-winsource.h (tui_refill_source_window): Declare.
5045 * tui/tui-winsource.c (tui_refill_source_window): New function,
5046 from...
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.
5054
a068643d
TT
50552019-03-13 Tom Tromey <tromey@adacore.com>
5056
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.
5092 (resume_1): Update.
5093 (clear_proceed_status_thread): Update.
5094 (proceed): 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
5116 type.
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
5123 return type.
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
5130 return type.
5131 (sol_thread_target::pid_to_str): Change return type.
5132 * remote.c (class remote_target) <pid_to_str>: Change return
5133 type.
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):
5138 Update.
5139 (extended_remote_target::attach): Update.
5140 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
5141 type.
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
5147 type.
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
5157 return type.
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
5161 return type.
5162 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
5163 (exit_lwp): Update.
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
5172 type.
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
5176 type.
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
5185 type.
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
5195 return type.
5196 (bsd_uthread_target::pid_to_str): Change return type.
5197 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
5198 type.
5199 (bsd_kvm_target::pid_to_str): Change return type.
5200 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
5201 return type.
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
5206 type.
5207 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
5208 type.
5209 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
5210 return type.
5211 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
5212 type.
5213 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
5214 type.
5215 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
5216 return type.
5217
b4be1b06
SM
52182019-03-13 Simon Marchi <simon.marchi@ericsson.com>
5219
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
5225 >= 3.
5226 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
5227 New.
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
5235 interpreter "mi".
5236
8e5e5494
SM
52372019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5238
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.
5244
197df35e
JB
52452019-03-12 John Baldwin <jhb@FreeBSD.org>
5246
5247 * NEWS: Combine separate "New targets" sections for 8.3.
5248
8399425f
JB
52492019-03-12 John Baldwin <jhb@FreeBSD.org>
5250
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"
5254 methods.
5255
b0f87ed0
JB
52562019-03-12 John Baldwin <jhb@FreeBSD.org>
5257
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"
5261 methods.
5262
ce25aa57
JB
52632019-03-12 John Baldwin <jhb@FreeBSD.org>
5264
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"
5268 methods.
5269
f5424cfa
JB
52702019-03-12 John Baldwin <jhb@FreeBSD.org>
5271
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"
5275 methods.
5276
945f3901
JB
52772019-03-12 John Baldwin <jhb@FreeBSD.org>
5278
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.
5286
ef0bd204
JB
52872019-03-12 John Baldwin <jhb@FreeBSD.org>
5288
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.
5293
36c53a02
JB
52942019-03-12 John Baldwin <jhb@FreeBSD.org>
5295
5296 * gdbtypes.c (lookup_struct_elt_type): Update comment and
5297 remove disabled code block.
5298
6e056c81
JB
52992019-03-12 John Baldwin <jhb@FreeBSD.org>
5300
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.
5306
cd250a18
JB
53072019-03-12 John Baldwin <jhb@FreeBSD.org>
5308
5309 * target.h (target::get_thread_local_address): Update comment.
5310
df22c1e5
JB
53112019-03-12 John Baldwin <jhb@FreeBSD.org>
5312
5313 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
5314 objfile->separate_debug_objfile_backlink if not NULL.
5315
dd6876c9
JB
53162019-03-12 John Baldwin <jhb@FreeBSD.org>
5317
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
5326 PT_SETGSBASE.
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.
5330
1163a4b7
JB
53312019-03-12 John Baldwin <jhb@FreeBSD.org>
5332
5333 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
5334 Update calls to i386_target_description to add 'segments'
5335 parameter.
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.
5361
3a350822
EZ
53622019-03-12 Eli Zaretskii <eliz@gnu.org>
5363
5364 PR/24325
5365 * source-cache.c: #undef open and close, to avoid unresolved
5366 externals during linking.
5367
ffdd69cf
TT
53682019-03-12 Tom Tromey <tromey@adacore.com>
5369
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.
5373
ec148c57
PA
53742019-03-12 Pedro Alves <palves@redhat.com>
5375
5376 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
5377
32764270
PA
53782019-03-12 Pedro Alves <palves@redhat.com>
5379
5380 * cp-name-parser.y (main): Remove unused 'len' variable.
5381
17547186
TT
53822019-03-12 Tom Tromey <tromey@adacore.com>
5383
5384 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
5385 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
5386
d3a70e03
TT
53872019-03-12 Tom Tromey <tromey@adacore.com>
5388
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
5395 data parameter.
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
5409 parameter.
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.
5419
82cb27ff
TT
54202019-03-11 Tom Tromey <tromey@adacore.com>
5421
5422 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
5423 redundant assignment to "this_cu".
5424
568c0683
SM
54252019-03-08 Simon Marchi <simon.marchi@efficios.com>
5426
5427 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
5428
f09ce22d
SM
54292019-03-08 Simon Marchi <simon.marchi@efficios.com>
5430
5431 * gdbtypes.c (rank_one_type_parm_set): New function extracted
5432 from...
5433 (rank_one_type): ... this.
5434
595f96a9
SM
54352019-03-08 Simon Marchi <simon.marchi@efficios.com>
5436
5437 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
5438 from...
5439 (rank_one_type): ... this.
5440
2598a94b
SM
54412019-03-08 Simon Marchi <simon.marchi@efficios.com>
5442
5443 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
5444 from...
5445 (rank_one_type): ... this.
5446
7f17b20d
SM
54472019-03-08 Simon Marchi <simon.marchi@efficios.com>
5448
5449 * gdbtypes.c (rank_one_type_parm_float): New function extracted
5450 from...
5451 (rank_one_type): ... this.
5452
2c509035
SM
54532019-03-08 Simon Marchi <simon.marchi@efficios.com>
5454
5455 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
5456 from...
5457 (rank_one_type): ... this.
5458
0dd322dc
SM
54592019-03-08 Simon Marchi <simon.marchi@efficios.com>
5460
5461 * gdbtypes.c (rank_one_type_parm_range): New function extracted
5462 from...
5463 (rank_one_type): ... this.
5464
41ea4728
SM
54652019-03-08 Simon Marchi <simon.marchi@efficios.com>
5466
5467 * gdbtypes.c (rank_one_type_parm_char): New function extracted
5468 from...
5469 (rank_one_type): ... this.
5470
793cd1d2
SM
54712019-03-08 Simon Marchi <simon.marchi@efficios.com>
5472
5473 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
5474 from...
5475 (rank_one_type): ... this.
5476
34910087
SM
54772019-03-08 Simon Marchi <simon.marchi@efficios.com>
5478
5479 * gdbtypes.c (rank_one_type_parm_int): New function extracted
5480 from...
5481 (rank_one_type): ... this.
5482
f1f832d6
SM
54832019-03-08 Simon Marchi <simon.marchi@efficios.com>
5484
5485 * gdbtypes.c (rank_one_type_parm_func): New function extracted
5486 from...
5487 (rank_one_type): ... this.
5488
b9f4512f
SM
54892019-03-08 Simon Marchi <simon.marchi@efficios.com>
5490
5491 * gdbtypes.c (rank_one_type_parm_array): New function extracted
5492 from...
5493 (rank_one_type): ... this.
5494
9293fc63
SM
54952019-03-08 Simon Marchi <simon.marchi@efficios.com>
5496
5497 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
5498 from...
5499 (rank_one_type): ... this.
5500
e3abbe7e
PW
55012019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5502
5503 * inferior.c (initialize_inferiors): Ensure 'help set/show print
5504 inferior-events' shows the example events.
5505
e4adb939
EZ
55062019-03-08 Eli Zaretskii <eliz@gnu.org>
5507
5508 Support styling on native MS-Windows console
5509
5510 PR/24315
5511 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
5512 on MS-Windows if $TERM is not defined.
5513
5514 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
5515
5516 * posix-hdep.c (gdb_console_fputs):
5517 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
5518 functions.
5519 * ui-file.h (gdb_console_fputs): Add prototype.
5520
5521 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
5522 back to fputs only if the former returns zero.
5523
25629dfd
TT
55242019-03-07 Tom Tromey <tom@tromey.com>
5525
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.
5558 (bcache): Remove.
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.
5565
fe726667
PA
55662019-03-07 Pedro Alves <palves@redhat.com>
5567
5568 * infrun.c (normal_stop): Also check for
5569 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
5570
7584bb30
AB
55712019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
5572
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.
5581
a7b1986e
TT
55822019-03-06 Tom Tromey <tom@tromey.com>
5583
5584 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
5585
0ccf4211
TT
55862019-03-06 Tom Tromey <tom@tromey.com>
5587
5588 * utils.h (free_current_contents): Don't declare.
5589 * utils.c (free_current_contents): Remove.
5590
fe7b42e5
TT
55912019-03-06 Tom Tromey <tom@tromey.com>
5592
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.
5614
c6321f19
TT
56152019-03-06 Tom Tromey <tom@tromey.com>
5616
5617 * remote.c (remote_target::remote_parse_stop_reply): Use
5618 unique_xmalloc_ptr.
5619
61b30099
TT
56202019-03-06 Tom Tromey <tom@tromey.com>
5621
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.
5631
6cceac94
TT
56322019-03-06 Tom Tromey <tom@tromey.com>
5633
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):
5637 Remove.
5638
72412762
TT
56392019-03-06 Tom Tromey <tom@tromey.com>
5640
5641 * solib-aix.c: Use make_scope_exit.
5642
2b6ff1c0
TT
56432019-03-06 Tom Tromey <tom@tromey.com>
5644
5645 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
5646 Use make_scope_exit.
5647
d01c5877
TT
56482019-03-06 Tom Tromey <tom@tromey.com>
5649
5650 * solib-svr4.c (disable_probes_interface): Remove parameter.
5651 (svr4_handle_solib_event): Use make_scope_exit.
5652
32603266
TT
56532019-03-06 Tom Tromey <tom@tromey.com>
5654
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.
5673
9799571e
TT
56742019-03-06 Tom Tromey <tom@tromey.com>
5675
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.
5680
09e3c4ca
TT
56812019-03-06 Tom Tromey <tom@tromey.com>
5682
5683 * inferior.h (class inferior): Update comment.
5684 * gdbthread.h (class thread_info): Update comment.
5685
e2a03548
TT
56862019-03-06 Joel Brobecker <brobecker@adacore.com>
5687 Tom Tromey <tom@tromey.com>
5688
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.
5695 Update.
5696 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
5697 std::vector.
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.
5705
b7e60d85
PA
57062019-03-06 Pedro Alves <palves@redhat.com>
5707
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
5711 comment. Adjust.
5712 (scoped_switch_fork_info::scoped_switch_fork_info)
5713 (checkpoint_command, linux_fork_context): Adjust
5714 fork_save_infrun_state calls.
5715
e52c971f
PA
57162019-03-06 Pedro Alves <palves@redhat.com>
5717
5718 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
5719 (inf_has_multiple_threads): Return 'bool' and rewrite using
5720 inferior_info::threads().
5721
06974e6c
PA
57222019-03-06 Pedro Alves <palves@redhat.com>
5723
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.
5728 (new_fork): Delete.
5729 (one_fork_p): New.
5730 (add_fork): Adjust.
5731 (free_fork): Delete, folded into fork_info::~fork_info().
5732 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
5733 Adjust.
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.
5738
72f31aea
PA
57392019-03-06 Pedro Alves <palves@redhat.com>
5740
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.
5746
efbecbc1
AB
57472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5748
5749 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
5750
0841c79a
AB
57512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5752 Chris January <chris.january@arm.com>
5753 David Lecomber <david.lecomber@arm.com>
5754
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.
5761
4a270568
AB
57622019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5763
5764 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
5765 types.
5766
067630bd
AB
57672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5768
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.
5772
3be47f7a
AB
57732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5774
5775 * f-exp.y (convert_to_kind_type): Handle more type kinds.
5776
4d00f5d8
AB
57772019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5778 Chris January <chris.january@arm.com>
5779
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.
5792
e454224f
AB
57932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5794
5795 * f-exp.y (f_parse): Set yydebug.
5796
9dad4a58
AB
57972019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5798
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.
5803
c8f91604
AB
58042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5805
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.
5814
dd9f2c76
AB
58152019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5816
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.
5822
67a3048c
TT
58232019-03-06 Tom Tromey <tromey@adacore.com>
5824
5825 * remote-sim.c (gdbsim_target_open): Use result of
5826 gdb_argv::release.
5827
aa3cfbda
RB
58282019-03-06 Richard Bunt <richard.bunt@arm.com>
5829 Dirk Schubert <dirk.schubert@arm.com>
5830 Chris January <chris.january@arm.com>
5831
5832 * eval.c (evaluate_subexp_standard): Call Fortran argument
5833 wrapping logic.
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
5837 where appropriate.
5838 (struct type): Value ready for a Fortran function call.
5839 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
5840 is needed.
5841 * f-lang.h (fortran_argument_convert): Declaration.
5842 (fortran_preserve_arg_pointer): Declaration.
5843 * infcall.c (value_arg_coerce): Call Fortran argument logic.
5844
ea38e5df
TT
58452019-03-05 Tom Tromey <tromey@adacore.com>
5846
5847 * python/py-prettyprint.c (print_string_repr): Remove #if.
5848 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
5849
06b5b831
TT
58502019-03-05 Tom Tromey <tromey@adacore.com>
5851
5852 * target.c (the_dummy_target): Move later. Change type to
5853 "dummy_target".
5854 (initialize_targets): Don't initialize the_dummy_target.
5855
edbd9e45
TT
58562019-03-05 Tom Tromey <tromey@adacore.com>
5857
5858 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
5859 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
5860
c119e040
TT
58612019-03-05 Tom Tromey <tromey@adacore.com>
5862
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
5872 gdb_flush.
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
5890 gdb_flush.
5891 * c-valprint.c (c_val_print): Don't call gdb_flush.
5892 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
5893
895dafa6
TT
58942019-03-05 Tom Tromey <tromey@adacore.com>
5895
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.
5902
88a774b9
TT
59032019-03-05 Tom Tromey <tromey@adacore.com>
5904
5905 * remote.c (class scoped_remote_fd) <release>: Add
5906 ATTRIBUTE_UNUSED_RESULT.
5907
4e4a8b93
TT
59082019-03-05 Tom Tromey <tromey@adacore.com>
5909
5910 * macroexp.c (struct macro_buffer) <release>: Add
5911 ATTRIBUTE_UNUSED_RESULT.
5912
083eef1f
TT
59132019-03-05 Tom Tromey <tromey@adacore.com>
5914
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.
5918
3cabd438
TT
59192019-03-05 Tom Tromey <tromey@adacore.com>
5920
5921 * common/scoped_fd.h (class scoped_fd) <release>: Add
5922 ATTRIBUTE_UNUSED_RESULT.
5923
41e3300a
TT
59242019-03-05 Tom Tromey <tromey@adacore.com>
5925
5926 * parser-defs.h (struct parser_state) <release>: Add
5927 ATTRIBUTE_UNUSED_RESULT.
5928
18cb7c9f
TT
59292019-03-05 Tom Tromey <tromey@adacore.com>
5930
5931 * utils.h (class gdb_argv) <release>: Add
5932 ATTRIBUTE_UNUSED_RESULT.
5933 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
5934
41fa577f
EZ
59352019-03-02 Eli Zaretskii <eliz@gnu.org>
5936
a6a4b2c6
EZ
5937 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
5938 for-loop range, to avoid compiler warnings.
5939
5940 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
5941 avoid compiler warnings about unused variables.
5942
742a7df5
EZ
5943 * NEWS: Mention end of support for native debugging on MS-Windows
5944 before XP.
5945
41fa577f
EZ
5946 PR gdb/24292
5947 * common/netstuff.c:
5948 * gdbserver/gdbreplay.c
5949 * gdbserver/remote-utils.c:
5950 * ser-tcp.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.
5957
827f438f
GB
59582019-03-01 Gary Benson <gbenson@redhat.com>
5959
5960 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
5961
92137da0
RO
59622019-02-28 Brian Vandenberg <phantall@gmail.com>
5963 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5964
5965 PR gdb/8527
5966 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
5967 set_sigint_trap, clear_sigint_trap.
5968
799efbe8
PW
59692019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5970
5971 * target.c (target_detach): Clear the regcache and the
5972 frame cache.
5973
8ed25214
PA
59742019-02-27 Pedro Alves <palves@redhat.com>
5975
5976 * utils.c (set_screen_size): When we cap the height/width sizes,
5977 tweak the corresponding command variable to show "unlimited":
5978
23031e31
SJ
59792019-02-27 Saagar Jha <saagar@saagarjha.com>
5980 Pedro Alves <palves@redhat.com>
5981
5982 * utils.c (set_screen_size): Reduce "infinite" rows and columns
5983 before calling rl_set_screen_size.
5984
6c28e44a
TT
59852019-02-27 Tom Tromey <tromey@adacore.com>
5986
5987 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
5988 define.
5989 * python/py-value.c: Remove Python 2.4 workaround.
5990 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
5991 workaround.
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
6001 workaround.
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
6005 workaround.
6006 (CHARBUFFERPROC_NAME): Remove.
6007 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
6008 Python 2.4 workaround.
6009
2c3fc25d 60102019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 6011
2c3fc25d
KB
6012 * NEWS: Note minimum Python version.
6013
6ca62222
KB
60142019-02-27 Kevin Buettner <kevinb@redhat.com>
6015
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.
6021
f4bc7d2c
AB
60222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6023
6024 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
6025 (hppa_gdbarch_init): Don't register deleted functions with
6026 gdbarch.
6027
9734a586
AB
60282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6029
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
6034 gdbarch.
6035
68b867f3
AB
60362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6037
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
6042 gdbarch.
6043
2fbe7ad0
AB
60442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6045
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
6050 gdbarch.
6051
76055cbe
AB
60522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6053
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
6058 gdbarch.
6059
4133e5a1
AB
60602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6061
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
6066 gdbarch.
6067
8010f576
AB
60682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6069
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
6074 gdbarch.
6075
b56bf084
AB
60762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6077
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.
6081
a19a650f
AB
60822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6083
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.
6088
f8278c3c
AB
60892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6090
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.
6095
480e46cf
AB
60962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6097
6098 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
6099 (alpha_unwind_pc): Delete.
6100 (alpha_gdbarch_init): Don't register deleted functions with
6101 gdbarch.
6102
7a995095
AB
61032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6104
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
6109 gdbarch.
6110
bf9a735e
AB
61112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6112
6113 * gdbtypes.c (type_align): Don't consider static members when
6114 computing structure alignment.
6115
5561fc30
AB
61162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6117
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.
6129
9335e75a
JB
61302019-02-27 Joel Brobecker <brobecker@adacore.com>
6131
6132 * NEWS: Create a new section for the next release branch.
6133 Rename the section of the current branch, now that it has
6134 been cut.
6135
3d34d8de
JB
61362019-02-27 Joel Brobecker <brobecker@adacore.com>
6137
6138 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
6139 * version.in: Bump version to 8.3.50.DATE-git.
6140
143420fb
SM
61412019-02-26 Simon Marchi <simon.marchi@efficios.com>
6142
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.
6148
172fb711
AB
61492019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
6150
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.
6157
26c89782
KB
61582019-02-26 Kevin Buettner <kevinb@redhat.com>
6159
af54ade9 6160 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
6161 * python/py-value.c (convert_buffer_and_type_to_value): New
6162 function.
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.
26c89782
KB
6166 * python/python-internal.h (Py_buffer_deleter): New struct.
6167 (Py_buffer_up): New typedef.
6168
0f58c9e8
JB
61692019-02-25 John Baldwin <jhb@FreeBSD.org>
6170
6171 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
6172 instead of releasing ownership.
6173
0a0f4c01
JR
61742019-02-25 Jordan Rupprecht <rupprecht@google.com>
6175
6176 * dwarf2read.c (open_and_init_dwp_file): Call
6177 elf_numsections instead of bfd_count_sections to initialize
6178 dwp_file->num_sections.
6179
cd5a152c
TT
61802019-02-25 Tom Tromey <tromey@adacore.com>
6181
6182 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
6183
8a6a8513
SDJ
61842019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
6185
6186 * gcore.in: Add '--readnever' option when invoking GDB.
6187
04dcda9c
SM
61882019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * MAINTAINERS: Update my email address.
6191
07bc701d
SM
61922019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * build-id.c (build_id_to_debug_bfd_1): New function.
6195 (build_id_to_debug_bfd): Look for separate debug file in
6196 sysroot.
6197
c6f4a5d0
AB
61982019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
6199
6200 * gdbarch.sh: Update the copyright year range that is placed into
6201 generated files.
6202
9600246d
KS
62032019-02-22 Keith Seitz <keiths@redhat.com>
6204
6205 PR symtab/23853
6206 * linespec.c (create_sals_line_offset): Search for the default
6207 symtab's filename instead of its fullname.
6208
7557a514
AH
62092019-02-21 Alan Hayward <alan.hayward@arm.com>
6210
6211 * NEWS: Update style defaults.
6212
ee2bcb0c
AH
62132019-02-21 Alan Hayward <alan.hayward@arm.com>
6214
6215 * main.c (captured_main_1): Disable styling in batch mode.
6216
0c95f9ed
TT
62172019-02-20 Tom Tromey <tom@tromey.com>
6218
6219 * symtab.c (symtab_symbol_info): Fix typos.
6220
c763b894
TT
62212019-02-20 Tom Tromey <tromey@adacore.com>
6222
6223 * findcmd.c (_initialize_mem_search): Use upper case for
6224 metasyntactic variables.
6225
0ef8a082
AH
62262019-02-20 Alan Hayward <alan.hayward@arm.com>
6227
6228 * aarch64-tdep.c (aarch64_add_reggroups): New function.
6229 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
6230
6caa91b6
SM
62312019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
6232
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.
6237
98814c6c
TT
62382019-02-19 Tom Tromey <tromey@adacore.com>
6239
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.
6252
70cd633e
AB
62532019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
6254
6255 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
6256 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
6257
040b3e95
PW
62582019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6259
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.
6265
9409233b
TT
62662019-02-17 Tom Tromey <tom@tromey.com>
6267
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.
6274
6506371f
TT
62752019-02-17 Tom Tromey <tom@tromey.com>
6276
6277 * macrocmd.c (show_pp_source_pos): Style the file names.
6278
0c820d67
TT
62792019-02-17 Tom Tromey <tom@tromey.com>
6280
6281 PR tui/24197:
6282 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
6283
a0087920
TT
62842019-02-17 Tom Tromey <tom@tromey.com>
6285
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):
6291 Update.
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
6296 flushed.
6297 (fputs_styled): Do not set the output style when the default is
6298 requested.
6299 * ui-style.h (struct ui_file_style) <is_default>: New method.
6300 * source.c (print_source_lines_base): Emit escape sequences in one
6301 piece.
6302
75ba10dc
JB
63032019-02-17 Joel Brobecker <brobecker@adacore.com>
6304
6305 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
6306 integers and enumeration types.
6307
a2cd4f14
JB
63082019-02-17 Joel Brobecker <brobecker@adacore.com>
6309
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.
6315
485b851b
TT
63162019-02-15 Tom Tromey <tromey@adacore.com>
6317
6318 * ravenscar-thread.c (ravenscar_thread_target::resume)
6319 (ravenscar_thread_target::wait): Special case wildcard requests.
6320
0b790b1e
TT
63212019-02-15 Tom Tromey <tromey@adacore.com>
6322
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.
6343
dea57a62
TT
63442019-02-15 Tom Tromey <tromey@adacore.com>
6345
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.
6350
989f3c58
TT
63512019-02-15 Tom Tromey <tromey@adacore.com>
6352
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.
6358 Return bool.
6359
6cbcc006
TT
63602019-02-15 Tom Tromey <tromey@adacore.com>
6361
6362 * ravenscar-thread.c (ravenscar_runtime_initializer)
6363 (has_ravenscar_runtime, get_running_thread_id)
6364 (ravenscar_thread_target::resume): Fix indentation.
6365
7657f14d
TT
63662019-02-15 Tom Tromey <tromey@adacore.com>
6367
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):
6380 Remove.
6381 (struct ppc_ravenscar_powerpc_ops): Derive from
6382 ravenscar_arch_ops.
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.
6396
5b6ea500
TT
63972019-02-15 Tom Tromey <tromey@adacore.com>
6398
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.
6404
e397fd39
TT
64052019-02-15 Tom Tromey <tromey@adacore.com>
6406
6407 * ravenscar-thread.c: Fix some typos.
6408
cc12f4a8
TT
64092019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6410 Tom Tromey <tromey@adacore.com>
6411
6412 * ada-lang.c (ada_exception_sal): Change addr_string to a
6413 std::string.
6414 (create_ada_exception_catchpoint): Update.
6415
5f486660
TT
64162019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6417 Tom Tromey <tromey@adacore.com>
6418
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
6430 parameter.
6431 <~bp_location>: Add destructor.
6432 <ops>: Remove.
6433
b671c7fb
TS
64342019-02-14 Thomas Schwinge <thomas@codesourcery.com>
6435 Pedro Alves <palves@redhat.com>
6436
6437 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
6438 'PATH_MAX'.
6439
8071c5ce
DM
64402019-02-14 David Michael <fedora.dm0@gmail.com>
6441 Samuel Thibault <samuel.thibault@gnu.org>
6442 Thomas Schwinge <thomas@codesourcery.com>
6443
6444 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
6445 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
6446
b1041ae0
TS
64472019-02-14 Thomas Schwinge <thomas@codesourcery.com>
6448
924514e1
TS
6449 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
6450 (check_empty): Use "const char *".
6451
c29ee8d4
TS
6452 * gnu-nat.c (gnu_nat_target::detach): Instead of
6453 'detach_inferior (pid)' call
6454 'detach_inferior (find_inferior_pid (pid))'.
6455
6c6ef69f
TS
6456 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
6457 'nat/fork-inferior.o'.
6458 * gnu-nat.c: #include "nat/fork-inferior.h".
6459
2d0a338c
TS
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'.
6467
cabb5f06
TS
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.
6471
b1041ae0
TS
6472 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
6473
2988d01e
KF
64742019-02-14 Frederic Konrad <konrad@adacore.com>
6475
6476 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
6477
c559d709
JB
64782019-02-14 Joel Brobecker <brobecker@adacore.com>
6479
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.
6489
007024cc
SM
64902019-02-13 Simon Marchi <simon.marchi@ericsson.com>
6491
6492 * MAINTAINERS: Add Andrew Burgess as global maintainer.
6493
f62318e9
JB
64942019-02-12 John Baldwin <jhb@FreeBSD.org>
6495
6496 * symfile.c (find_separate_debug_file): Use canonical path of
6497 sysroot with child_path instead of gdb_sysroot if it is valid.
6498
cd4b7848
JB
64992019-02-12 John Baldwin <jhb@FreeBSD.org>
6500
6501 * symfile.c (find_separate_debug_file): Use child_path to
6502 determine if an object file is under a sysroot.
6503
efac4bfe
JB
65042019-02-12 John Baldwin <jhb@FreeBSD.org>
6505
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.
6511
402d2bfe
JB
65122019-02-12 John Baldwin <jhb@FreeBSD.org>
6513
6514 * symfile.c (find_separate_debug_file): Look for separate debug
6515 files in debug directories under the sysroot.
6516
1ed9f74e
PW
65172019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6518
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
6522 to print file name.
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.
6528
2636d81d
PW
65292019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6530
6531 * breakpoint.c (describe_other_breakpoints): Use address style
6532 to print addresses.
6533 (say_where): Likewise.
6534
ac8c53cc
PW
65352019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6536
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.
6540
ea638c43
AH
65412019-02-11 Alan Hayward <alan.hayward@arm.com>
6542
6543 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
6544 for execve.
6545
ab759ca8
PW
65462019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6547
6548 * c-exp.y (direct_abs_decl): Use emplace_back to record the
6549 type_stack.
6550
aff29d1c
JB
65512019-02-10 Joel Brobecker <brobecker@adacore.com>
6552
6553 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
6554 TYPE_CODE_REF types.
6555
617126bc
JW
65562019-02-08 Jim Wilson <jimw@sifive.com>
6557
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.
6561
46e3ed7f
TT
65622019-02-07 Tom Tromey <tom@tromey.com>
6563
6564 * thread.c (thread_cancel_execution_command): Update.
6565 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
6566 methods.
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):
6572 Don't declare.
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.
6578 Add constructor.
6579 (step_command_fsm_ops): Remove.
6580 (new_step_command_fsm): Remove.
6581 (step_1): Update.
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
6589 constructor.
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.
6611 Add constructor.
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,
6623 caller_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.
6635
1a5c2598
TT
66362019-02-07 Tom Tromey <tom@tromey.com>
6637
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.
6826
ab9268d2
PW
68272019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6828
6829 * macrotab.c (macro_define_internal): New function that
6830 factorizes macro_define_object_internal and macro_define_function
6831 code.
6832 (macro_define_object_internal): Use macro_define_internal.
6833 (macro_define_function): Likewise.
6834
bb0da2b4
PW
68352019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6836
6837 * macrocmd.c (extract_identifier): Return
6838 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
6839 callers.
6840
424eb552
JB
68412019-02-06 John Baldwin <jhb@FreeBSD.org>
6842
6843 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
6844
1688cb29
TT
68452019-02-05 Tom Tromey <tom@tromey.com>
6846
6847 * target.c (target_stack::unpush): Move assertion earlier.
6848
b5eba2d8
TT
68492019-01-30 Tom Tromey <tom@tromey.com>
6850
6851 PR python/23615:
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.
6855
7054e2ff
JB
68562019-01-28 John Baldwin <jhb@FreeBSD.org>
6857
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
6864 earlier.
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.
6868
36c25ffa
AH
68692019-01-28 Alan Hayward <alan.hayward@arm.com>
6870
6871 * CONTRIBUTE: Replace contribution list with wiki link.
6872
a0707f3c
TT
68732019-01-25 Tom Tromey <tom@tromey.com>
6874
6875 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
6876
0747795c
TT
68772019-01-25 Tom Tromey <tom@tromey.com>
6878
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/
6900 includes.
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.
7060 * ax.h:
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.
7092
2f5c153e
TT
70932019-01-25 Tom Tromey <tom@tromey.com>
7094
7095 * common/create-version.sh: Use common/version.h.
7096
adc6a863
PA
70972019-01-24 Pedro Alves <palves@redhat.com>
7098
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):
7105 Adjust.
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.
7118
3046d67a
PA
71192019-01-24 Pedro Alves <palves@redhat.com>
7120
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
7124 copying that.
7125
353229bf
AH
71262019-01-24 Alan Hayward <alan.hayward@arm.com>
7127
7128 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
7129 for static members.
7130 (pass_in_v_vfp_candidate): Likewise.
7131
311dc83a
TT
71322019-01-23 Tom Tromey <tom@tromey.com>
7133 Pedro Alves <palves@redhat.com>
7134
7135 * regcache.c (class regcache_invalidator): Remove.
7136 (regcache::raw_write): Use make_scope_exit.
7137
296bd123
TT
71382019-01-23 Tom Tromey <tom@tromey.com>
7139
7140 * ui-out.h (class ui_out_emit_type): Update comment.
7141
979a0d13
TT
71422019-01-23 Tom Tromey <tom@tromey.com>
7143
7144 * infrun.c (fetch_inferior_event): Update comment.
7145
d238133d
TT
71462019-01-23 Tom Tromey <tom@tromey.com>
7147 Pedro Alves <palves@redhat.com>
7148
7149 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
7150 parameter.
7151 (fetch_inferior_event): Use SCOPE_EXIT.
7152
7153
9885e6bb
TT
71542019-01-23 Tom Tromey <tom@tromey.com>
7155 Pedro Alves <palves@redhat.com>
7156
7157 * infrun.c (disable_thread_events): Delete.
7158 (stop_all_threads): Use SCOPE_EXIT.
7159
286526c1
TT
71602019-01-23 Tom Tromey <tom@tromey.com>
7161 Pedro Alves <palves@redhat.com>
7162
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
7169 cleanup_function.
7170 (clear_symtab_users_cleanup): Remove function.
7171
1db93f14
TT
71722019-01-23 Tom Tromey <tom@tromey.com>
7173 Pedro Alves <palves@redhat.com>
7174
7175 * linux-nat.c: Include scope-exit.h.
7176 (cleanup_target_stop): Remove.
7177 (linux_nat_target::static_tracepoint_markers_by_strid): Use
7178 SCOPE_EXIT.
7179
2cc83d1e
TT
71802019-01-23 Tom Tromey <tom@tromey.com>
7181 Pedro Alves <palves@redhat.com>
7182
7183 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
7184 (call_function_by_hand_dummy): Use SCOPE_EXIT.
7185
694c6bf5
TT
71862019-01-23 Tom Tromey <tom@tromey.com>
7187 Andrew Burgess <andrew.burgess@embecosm.com>
7188 Pedro Alves <palves@redhat.com>
7189
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.
7196
4c41382a
TT
71972019-01-23 Tom Tromey <tom@tromey.com>
7198 Pedro Alves <palves@redhat.com>
7199
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.
7204
89f8fb50
TT
72052019-01-23 Tom Tromey <tom@tromey.com>
7206 Pedro Alves <palves@redhat.com>
7207
7208 * breakpoint.c (create_breakpoint): Remove cleanup.
7209
5419bdae
TT
72102019-01-23 Tom Tromey <tom@tromey.com>
7211 Andrew Burgess <andrew.burgess@embecosm.com>
7212 Pedro Alves <palves@redhat.com>
7213
e587ef42
PA
72142019-01-23 Pedro Alves <palves@redhat.com>
7215
7216 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
7217
77f0e74c
PA
72182019-01-23 Pedro Alves <palves@redhat.com>
7219 Andrew Burgess <andrew.burgess@embecosm.com>
7220
7221 * gdbthread.h: Include "common/forward-scope-exit.h".
7222 (scoped_finish_thread_state): Redefine custom class in terms of
7223 forward_scope_exit.
7224
5b9b3e53
PA
72252019-01-23 Pedro Alves <palves@redhat.com>
7226 Andrew Burgess <andrew.burgess@embecosm.com>
7227
7228 * common/forward-scope-exit.h: New file.
7229
54b65c9b
PA
72302019-01-23 Pedro Alves <palves@redhat.com>
7231 Andrew Burgess <andrew.burgess@embecosm.com>
7232 Tom Tromey <tom@tromey.com>
7233
7234 * common/scope-exit.h: New file.
7235
cf08fb29
PA
72362019-01-23 Pedro Alves <palves@redhat.com>
7237
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.
7242
ae73e2e2
TT
72432019-01-23 Tom Tromey <tom@tromey.com>
7244
7245 * language.h (class scoped_switch_to_sym_language_if_auto):
7246 Initialize m_lang in both cases.
7247
6594e122
AH
72482019-01-23 Alan Hayward <alan.hayward@arm.com>
7249
7250 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
7251 with XCNEW.
7252
a7c9855d
TT
72532019-01-22 Tom Tromey <tom@tromey.com>
7254
7255 * corelow.c: Do not include sys/file.h.
7256
93cc1d53
TT
72572019-01-22 Tom Tromey <tom@tromey.com>
7258
7259 * tui/tui-wingeneral.h: Include gdb_curses.h.
7260
38561778
TT
72612019-01-22 Tom Tromey <tom@tromey.com>
7262
7263 * source-cache.h (class source_cache) <get_source_lines,
7264 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
7265
37b3ab5b
TT
72662019-01-22 Tom Tromey <tom@tromey.com>
7267
7268 * remote-fileio.h (struct remote_target): Declare.
7269
3fabc016
TT
72702019-01-22 Tom Tromey <tom@tromey.com>
7271
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.
7298
6b4d7774
TT
72992019-01-22 Tom Tromey <tom@tromey.com>
7300
7301 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
7302 keyword for bcache.
7303
7af7e9b5
TT
73042019-01-22 Tom Tromey <tom@tromey.com>
7305
7306 * compile/compile-cplus-types.c: Remove a comment by #include.
7307
951d1049
TT
73082019-01-22 Tom Tromey <tom@tromey.com>
7309
7310 * compile/gcc-c-plugin.h: Include compile-internal.h.
7311
d65d5705
TT
73122019-01-22 Tom Tromey <tom@tromey.com>
7313
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".
7321
b6fb1ee5
PW
73222019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7323
7324 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
7325 history_value.
7326
be6d4f74
TT
73272019-01-21 Tom Tromey <tom@tromey.com>
7328
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.
7342
73021deb
AH
73432019-01-21 Alan Hayward <alan.hayward@arm.com>
7344
7345 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
7346 for padding.
7347
7932255d
TT
73482019-01-16 Tom Tromey <tom@tromey.com>
7349
7350 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
7351 earlier.
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):
7356 Update.
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.
7366
604b1bfb
TT
73672019-01-16 Tom Tromey <tom@tromey.com>
7368
7369 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
7370 type. Remove no-argument constructor.
7371 <iterator::operator++>: Simplify.
7372 <begin>: Update.
7373 <end>: Use minimal_symbol_count.
7374
f252c6d5
TT
73752019-01-16 Tom Tromey <tom@tromey.com>
7376
7377 * objfiles.h (struct objfile) <psymtabs>: New method.
7378 (class objfile_psymtabs): Remove.
7379 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
7380 typedef.
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.
7387
b669c953
TT
73882019-01-15 Tom Tromey <tom@tromey.com>
7389
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):
7399 Update.
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.
7414
7e955d83
TT
74152019-01-15 Tom Tromey <tom@tromey.com>
7416
7417 * progspace.h (program_space) <objfiles_safe_range>: New
7418 typedef.
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.
7423
2030c079
TT
74242019-01-17 Tom Tromey <tom@tromey.com>
7425
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):
7435 Update.
7436 * python/py-progspace.c (pspy_get_objfiles): Update.
7437 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7438 Update.
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):
7443 Update.
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):
7456 Update.
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):
7464 Update.
7465 * source.c (select_source_symtab, forget_cached_source_info):
7466 Update.
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):
7474 Update.
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):
7485 Update.
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):
7495 Update.
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.
7509
776489e0
TT
75102019-01-17 Tom Tromey <tom@tromey.com>
7511
7512 * solib-target.c (lm_info_target_p): Remove typedef. Don't
7513 declare VEC.
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
7519 type.
7520 (solib_target_current_sos): Update.
7521
6471e7d2
TT
75222019-01-17 Tom Tromey <tromey@bapiya>
7523
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".
7532
c24bdb02
KS
75332019-01-16 Keith Seitz <keiths@redhat.com>
7534
7535 PR gdb/23773
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
7545 callers.
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.
7552
8d64371b
TT
75532019-01-15 Tom Tromey <tom@tromey.com>
7554
7555 * remote.c (class remote_state) <buf>: Now a char_vector.
7556 <buf_size>: Remove.
7557 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
7558 parameter.
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
7564 sizeof_p parameter.
7565 (packet_ok): New overload.
7566 (packet_check_result): New overload.
7567 Update all uses.
7568
bb277751
TT
75692019-01-14 Tom Tromey <tom@tromey.com>
7570
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"
7574 const.
7575 (remote_notif_parse, remote_notif_ack, handle_notification):
7576 Likewise.
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.
7580
05be00a8
TT
75812019-01-14 Tom Tromey <tom@tromey.com>
7582
7583 * remote.c (remote_console_output): Make parameter const.
7584
491adeca
TT
75852019-01-14 Tom Tromey <tom@tromey.com>
7586
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>:
7598 Constify argument.
7599 (target_pass_signals, target_program_signals): Constify argument.
7600
bbd94648
TT
76012019-01-14 Tom Tromey <tom@tromey.com>
7602
7603 PR tui/28819:
7604 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
7605
6f072a10
PFC
76062019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7607
7608 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
7609 field.
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
7616 pseudo-registers.
7617 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
7618 New functions.
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.
7627
1a782351
MF
76282019-01-13 Max Filippov <jcmvbkbc@gmail.com>
7629
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.
7633
d73cff18
PW
76342019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7635
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.
7646
60a90376
JB
76472019-10-12 Joel Brobecker <brobecker@adacore.com>
7648
7649 * ada-lang.c (_initialize_ada_language): Expand the help text
7650 for the "catch exception" command.
7651
9d7c67bf
PW
76522019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7653
7654 * symtab.c (matching_obj_sections): Initialize obj,
7655 declare it closer to its usage.
7656
7cf47dc4
TT
76572019-01-10 Tom Tromey <tom@tromey.com>
7658
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.
7663
d3cb6808
KS
76642019-01-10 Keith Seitz <keiths@redhat.com>
7665
7666 PR gdb/23712
7667 PR symtab/23010
7668 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
7669 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
7670
63a20375
KS
76712019-01-10 Keith Seitz <keiths@redhat.com>
7672
7673 PR gdb/23712
7674 PR symtab/23010
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
7678 all callers.
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.
7683
b026f593
KS
76842019-01-10 Keith Seitz <keiths@redhat.com>
7685
7686 PR gdb/23712
7687 PR symtab/23010
7688 * dictionary.h (struct dictionary): Replace declaration with
7689 multidictionary.
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.
7701
c7748ee9
KS
77022019-01-10 Keith Seitz <keiths@redhat.com>
7703
7704 PR gdb/23712
7705 PR symtab/23010
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
7710 of linked list.
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.
7723
67aa1f3c
PA
77242019-01-10 Pedro Alves <palves@redhat.com>
7725
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.
7738
2f667667
PA
77392019-01-10 Pedro Alves <palves@redhat.com>
7740
7741 * solib-target.c (library_list_start_library): Don't xstrdup name.
7742
36cb7237
PA
77432019-01-10 Pedro Alves <palves@redhat.com>
7744
7745 * mdebugread.c (parse_partial_symbols): Use
7746 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
7747
da584958
AB
77482019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7749
7750 * linux-fork.c (scoped_switch_fork_info)
7751 <~scoped_switch_fork_info>: Fix incorrect variable name.
7752
1ef8573c
AB
77532019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7754
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.
7758
8d7bcccb
TT
77592019-01-10 Tom Tromey <tom@tromey.com>
7760
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
7766 parameter.
7767 * psymtab.c (psymtab_storage::psymtab_storage): Update.
7768
b596a3c7
TT
77692019-01-10 Tom Tromey <tom@tromey.com>
7770
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.
7775
a9342b62
TT
77762019-01-10 Tom Tromey <tom@tromey.com>
7777
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.
7787
5af70966
TT
77882019-01-10 Tom Tromey <tom@tromey.com>
7789
7790 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
7791 PSYMBOL_SET_LANGUAGE.
7792 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
7793
5923a04c
TT
77942019-01-10 Tom Tromey <tom@tromey.com>
7795
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):
7801 Update.
7802
6d6a12bf
TT
78032019-01-10 Tom Tromey <tom@tromey.com>
7804
7805 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
7806 * objfiles.h (objfile::reset_psymtabs): New method.
7807
d320c2b5
TT
78082019-01-10 Tom Tromey <tom@tromey.com>
7809
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.
7826 Update.
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>:
7836 Remove fields.
7837 <partial_symtabs>: New field.
7838 (class objfile_psymtabs): Move from psymtab.h. Update.
7839 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
7840 psymbol_cache.
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):
7850 Update.
7851
1d94a5a3
TT
78522019-01-10 Tom Tromey <tom@tromey.com>
7853
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.
7861
0f14768a
TT
78622019-01-10 Tom Tromey <tom@tromey.com>
7863
7864 * symtab.c (create_demangled_names_hash): Change argument to be an
7865 objfile_per_bfd_storage.
7866 (symbol_set_names): Update.
7867
6eee24ce
TT
78682019-01-10 Tom Tromey <tom@tromey.com>
7869
7870 * xcoffread.c (xcoff_initial_scan): Unconditionally call
7871 init_psymbol_list.
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
7875 init_psymbol_list.
7876 * dbxread.c (dbx_symfile_read): Unconditionally call
7877 init_psymbol_list.
7878
75aedd27
TT
78792019-01-10 Tom Tromey <tom@tromey.com>
7880
7881 * xcoffread.c (scan_xcoff_symtab): Update.
7882 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
7883 "where".
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.
7890
939652a5
TT
78912019-01-10 Tom Tromey <tom@tromey.com>
7892
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
7903 parameters.
7904
baa62830
TT
79052019-01-10 Tom Tromey <tom@tromey.com>
7906
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
7911 initializations.
7912 * dbxread.c (dbx_end_psymtab): Remove some initializations.
7913
0e8f53ba
TT
79142019-01-10 Tom Tromey <tom@tromey.com>
7915
7916 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7917 Don't declare.
7918 * mipsread.c: Include mdebugread.h.
7919 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7920 Declare.
7921 * elfread.c: Include mdebugread.h.
7922
b22a7c6a
TT
79232019-01-09 Tom Tromey <tom@tromey.com>
7924
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.
7940
3b9d3ac2
TT
79412019-01-09 Tom Tromey <tom@tromey.com>
7942
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.
7953
8b31193a
TT
79542019-01-09 Tom Tromey <tom@tromey.com>
7955
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
7963 objfile_compunits.
7964
d5da8b3c
TT
79652019-01-09 Tom Tromey <tom@tromey.com>
7966
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
7970 compunit_filetabs.
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.
7975
5accd1a0
TT
79762019-01-09 Tom Tromey <tom@tromey.com>
7977
7978 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
7979 (compunit_filetabs): New.
7980 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
7981 compunit_filetabs.
7982 (info_sources_command, make_source_files_completion_list): Remove
7983 declaration.
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
7993 declaration.
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
7997 compunit_filetabs.
7998
d8aeb77f
TT
79992019-01-09 Tom Tromey <tom@tromey.com>
8000
8001 * symtab.c (lookup_objfile_from_block)
8002 (find_pc_sect_compunit_symtab, search_symbols)
8003 (default_collect_symbol_completion_matches_break_on): Use
8004 objfile_compunits.
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
8008 objfile_compunits.
8009 * ada-lang.c (ada_collect_symbol_completion_matches)
8010 (ada_add_global_exceptions): Use objfile_compunits.
8011
592553c4
TT
80122019-01-09 Tom Tromey <tom@tromey.com>
8013
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
8017 declaration.
8018 * maint.c (count_symtabs_and_blocks): Remove declaration.
8019 * cp-support.c (add_symbol_overload_list_qualified): Remove
8020 declaration.
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
8032 objfile_compunits.
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
8038 objfile_compunits.
8039 * objfiles.c (objfile_relocate1): Use objfile_compunits.
8040
5325b9bf
TT
80412019-01-09 Tom Tromey <tom@tromey.com>
8042
8043 * symtab.c (search_symbols)
8044 (default_collect_symbol_completion_matches_break_on): Use
8045 objfile_msymbols.
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
8050 objfile_msymbols.
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.
8059
cac85af2
TT
80602019-01-09 Tom Tromey <tom@tromey.com>
8061
8062 * common/next-iterator.h (next_adapter): Add Iterator template
8063 parameter.
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.
8071
aed57c53
TT
80722019-01-09 Tom Tromey <tom@tromey.com>
8073
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
8078 all_objfiles.
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
8102 all_objfiles.
8103 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
8104 all_objfiles.
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
8110 all_objfiles.
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
8116 all_objfiles.
8117 * blockframe.c (find_pc_partial_function): Use all_objfiles.
8118 * cp-support.c (add_symbol_overload_list_qualified): Use
8119 all_objfiles.
8120 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
8121 Use all_objfiles.
8122 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
8123 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
8124 all_objfiles.
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):
8128 Uses all_objfiles.
8129 * solib.c (solib_read_symbols): Use all_objfiles
8130
99d89cde
TT
81312019-01-09 Tom Tromey <tom@tromey.com>
8132
8133 * probe.c (parse_probes_in_pspace): Use all_objfiles.
8134 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
8135 all_objfiles.
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
8141 all_objfiles.
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.
8150
21708325
TT
81512019-01-09 Tom Tromey <tom@tromey.com>
8152
8153 * common/next-iterator.h: New file.
8154 * objfiles.h (class all_objfiles): New.
8155 (struct objfile_iterator): New.
8156
669e09f6
PW
81572019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8158
8159 * NEWS: Move the description of the changed "frame", "select-frame",
8160 and "info frame" commands to the Changed commands section.
8161
041be526
SM
81622019-01-09 Simon Marchi <simon.marchi@ericsson.com>
8163
8164 * gdbtypes.c (check_stub_method_group): Remove handling of old
8165 mangling schemes.
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.
8171
0e2a2133
AB
81722019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
8175 print_source_lines.
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.
8181
1055a3b4
PW
81822019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8183
8184 * linespec.c (linespec_state_destructor): Free self->canonical_names.
8185
cfeadda5
TT
81862019-01-08 Tom Tromey <tom@tromey.com>
8187 Simon Marchi <simon.marchi@ericsson.com>
8188
8189 PR gdb/24060
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.
8196
583068ca
AB
81972019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8198
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.
8218
ec98a4ad
AB
82192019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8220
8221 * source.c (print_source_lines_base): Handle requests to print
8222 reverse line number sequences, and guard against empty lines
8223 string.
8224
62ea19c1
AB
82252019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8226
8227 * source.c (print_source_lines_base): Fix skip of '\r' if next
8228 character is '\n'.
8229
9d30e1fd
TT
82302019-01-06 Tom Tromey <tom@tromey.com>
8231
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.
8239
c65bac38
TT
82402019-01-06 Tom Tromey <tom@tromey.com>
8241
8242 * c-exp.y (struct c_parse_state) <strings>: New member.
8243 (operator_stoken): Update.
8244
02e12e38
TT
82452019-01-06 Tom Tromey <tom@tromey.com>
8246
8247 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
8248 (union type_stack_elt) <typelist_val>: Now a pointer to
8249 std::vector.
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.
8264
f097f5ad
TT
82652019-01-06 Tom Tromey <tom@tromey.com>
8266
8267 PR gdb/28155:
8268 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
8269 check_typedef.
8270 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
8271 (print_return_value): Likewise.
8272
d2adf9f1
TT
82732019-01-05 Tom Tromey <tom@tromey.com>
8274
8275 * contrib/cleanup_check.py: Remove.
8276 * contrib/gcc-with-excheck: Remove.
8277 * contrib/exsummary.py: Remove.
8278 * contrib/excheck.py: Remove.
8279
2eab46b1
JB
82802019-01-05 Joel Brobecker <brobecker@adacore.com>
8281
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.
8292
48c5e7e2
TT
82932019-01-04 Tom Tromey <tom@tromey.com>
8294
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
8302 variables.
8303 (_initialize_demangler): Likewise.
8304 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
8305 variables.
8306
986041cd
TT
83072019-01-03 Tom Tromey <tom@tromey.com>
8308
8309 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
8310
7c711119
TT
83112019-01-03 Tom Tromey <tom@tromey.com>
8312
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.
8317
1b20edf0
TT
83182019-01-03 Tom Tromey <tom@tromey.com>
8319
8320 * python/py-type.c (convert_field): Use new_reference. Return
8321 gdbpy_ref.
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.
8327
ea41325b
TT
83282019-01-03 Tom Tromey <tom@tromey.com>
8329
8330 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
8331
2a3c71d6
TT
83322019-01-03 Tom Tromey <tom@tromey.com>
8333
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.
8344
5c329e6a
TT
83452019-01-03 Tom Tromey <tom@tromey.com>
8346
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
8356 gdbpy_err_fetch.
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
8361 gdbpy_err_fetch.
8362
169bb27b
AB
83632019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8364
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
8369 lwp_info_up.
8370
a07c8880
AB
83712019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8372
8373 * linux-fork.c (class scoped_switch_fork_info): New class.
8374 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
8375
26089c49
AB
83762019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8377
8378 * valops.c (find_overload_match): Remove use of null_cleanup, and
8379 calls to do_cleanups.
8380
06d3e5b0
AB
83812019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8382
8383 * compile/compile-cplus-types.c
8384 (compile_cplus_instance::decl_name): Handle changes to
8385 cp_func_name.
8386 * cp-support.c (cp_func_name): Update header comment, update
8387 return type.
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.
8392
66644cd3
AB
83932019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8394
8395 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
8396 gdb::char_vector, remove cleanup, and update uses of `msg`.
8397
592d8c0a
JW
83982019-01-03 Jim Wilson <jimw@sifive.com>
8399
8400 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
8401
c55d06ec
TT
84022019-01-02 Tom Tromey <tom@tromey.com>
8403
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):
8407 Don't declare.
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.
8413
3a6ae42d
TT
84142019-01-02 Tom Tromey <tom@tromey.com>
8415
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.
8424
61fd3e73
TT
84252019-01-02 Tom Tromey <tom@tromey.com>
8426
8427 * python/python-internal.h (inferior_to_inferior_object): Change
8428 return type.
8429 * python/py-exitedevent.c (create_exited_event_object): Update.
8430 * python/py-inferior.c (inferior_to_inferior_object): Return
8431 gdbpy_ref.
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.
8437
d20172fc
SM
84382019-01-02 Simon Marchi <simon.marchi@ericsson.com>
8439
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
8446 infrun.h.
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.
8461
e3319240
PW
84622019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8463
8464 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
8465 in case of call that did not complete.
8466
5d36dfb9
AU
84672019-01-02 Andrey Utkin <autkin@undo.io>
8468
8469 * symfile.c (find_separate_debug_file): Fix search of debug files for
8470 remote debuggee.
8471
8833fbf0
TT
84722019-01-02 Tom Tromey <tom@tromey.com>
8473
8474 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
8475 indentation.
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.
8481
4ada3dfd
JB
84822019-01-02 Joel Brobecker <brobecker@adacore.com>
8483
8484 * unittests/basic_string_view/element_access/char/empty.cc:
8485 Fix year range in copyright header.
8486
113b7b81
AB
84872019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
8488
8489 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
8490 Delete.
8491 <operator==>: Update with for removed field.
8492 <hash>: Likewise.
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
8500 isa_features.
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
8506 xlen and flen.
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
8510 is removed.
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.
8515
b18ca514
PW
85162019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8517
8518 * source.c (search_command_helper): Stop reverse search
8519 when line 1 has been searched.
8520
ec70d8db
PW
85212019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8522
8523 * record-full.c (record_full_base_target::close): Rewrite
8524 record_full_core_buf_list free logic.
8525
5b38f9c1
PW
85262019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8527
8528 * break-catch-syscall.c (print_one_catch_syscall): xfree
8529 the last text.
8530
66d91b39
JB
85312019-01-01 Joel Brobecker <brobecker@adacore.com>
8532
8533 * top.c (print_gdb_version): Update Copyright year in version
8534 message.
8535
42a4f53d
JB
85362019-01-01 Joel Brobecker <brobecker@adacore.com>
8537
8538 Update copyright year range in all GDB files.
8539
7e955d83 85402019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 8541
5bbd631d 8542 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 8543
5bbd631d 8544For older changes see ChangeLog-2018.
c906108c
SS
8545\f
8546Local Variables:
8547mode: change-log
8548left-margin: 8
8549fill-column: 74
8550version-control: never
57da7796 8551coding: utf-8
c906108c 8552End:
5bbd631d 8553
This page took 4.267361 seconds and 4 git commands to generate.