Introduce enum tui_box
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
17374de4
TT
12019-06-25 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4 parameter.
5 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6 parameter.
7 (tui_gen_win_info::make_visible): Update.
8 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
9 parameter.
10 * tui/tui-data.h (enum tui_box): New enum.
11 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
12
f936bca2
TT
132019-06-25 Tom Tromey <tom@tromey.com>
14
15 * tui/tui-layout.c (make_source_or_disasm_window): Always use
16 init_and_make_win for EXEC_INFO_WIN.
17 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
18 longer inline.
19 (struct tui_win_info) <~tui_win_info>: Inline.
20 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
21 Don't declare.
22 * tui/tui-data.c (source_win, disasm_win): Remove globals.
23 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
24 Remove.
25 (tui_initialize_static_data): Update.
26 (~tui_gen_win_info): Handle more cleanup here.
27 (~tui_source_window_base): Delete "execution_info".
28 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
29
d6ba6a11
TT
302019-06-25 Tom Tromey <tom@tromey.com>
31
32 * tui/tui-layout.c (make_command_window): Don't set
33 can_highlight.
34 (show_source_disasm_command): Call the reset method.
35 (show_data): Don't set can_highlight. Call the reset method.
36 (tui_gen_win_info::reset): Rename from init_gen_win_info
37 (init_and_make_win): Simplify. Return tui_gen_win_info.
38 (show_source_or_disasm_and_command): Call the reset method.
39 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
40 (struct tui_cmd_window): Set can_highlight.
41
48a3bd16
TT
422019-06-25 Tom Tromey <tom@tromey.com>
43
44 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
45 from make_visible.
46 (tui_make_visible, tui_make_invisible): Rewrite.
47 (tui_win_info::make_visible): Remove.
48 (tui_source_window_base::make_visible): Update.
49 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
50 method. Moved from...
51 (struct tui_win_info) <make_visible>: ...here.
52
c3bd716f
TT
532019-06-25 Tom Tromey <tom@tromey.com>
54
55 * tui/tui-winsource.c
56 (tui_source_window_base::do_scroll_horizontal): Remove direction
57 parameter.
58 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
59 direction parameter.
60 * tui/tui-win.c (tui_win_info::forward_scroll)
61 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
62 (tui_win_info::right_scroll): Update.
63 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
64 direction parameter.
65 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
66 direction parameter.
67 * tui/tui-data.h (enum tui_scroll_direction): Remove.
68 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
69 Remove direction parameter.
70 (struct tui_source_window_base, struct tui_source_window)
71 (struct tui_disasm_window, struct tui_data_window)
72 (struct tui_cmd_window): Update.
73
21c32dca
TT
742019-06-25 Tom Tromey <tom@tromey.com>
75
76 * tui/tui-winsource.h (tui_set_exec_info_content)
77 (tui_show_exec_info_content, tui_erase_exec_info_content)
78 (tui_clear_exec_info_content, tui_update_exec_info): Change
79 argument to tui_source_window_base.
80 * tui/tui-winsource.c (tui_set_exec_info_content)
81 (tui_show_exec_info_content, tui_erase_exec_info_content)
82 (tui_clear_exec_info_content, tui_update_exec_info): Change
83 argument to tui_source_window_base.
84
73fbdc65
TT
852019-06-25 Tom Tromey <tom@tromey.com>
86
87 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
88 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
89
33325343
TT
902019-06-25 Tom Tromey <tom@tromey.com>
91
92 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
93 check.
94
29d2c474
TT
952019-06-25 Tom Tromey <tom@tromey.com>
96
97 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
98 type to void.
99 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
100 type to void.
101 * tui/tui-source.c (tui_set_source_content): Update.
102 * tui/tui-disasm.c (tui_set_disassem_content): Update.
103
152f3f4b
TT
1042019-06-25 Tom Tromey <tom@tromey.com>
105
106 * tui/tui-win.c (window_name_completer, tui_set_focus)
107 (tui_all_windows_info): Use name method.
108 * tui/tui-data.h (struct tui_gen_win_info)
109 (struct tui_source_window, struct tui_disasm_window)
110 (struct tui_data_window, struct tui_cmd_window) <name>: New
111 method.
112 (tui_win_name): Don't declare.
113 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
114 (tui_win_name): Remove.
115
be4da588
TT
1162019-06-25 Tom Tromey <tom@tromey.com>
117
118 * tui/tui-winsource.h (tui_update_source_window)
119 (tui_update_source_window_as_is): Change parameter type.
120 * tui/tui-winsource.c (tui_update_source_window): Change win_info
121 to be a tui_source_window_base.
122 (tui_update_source_window_as_is): Likewise.
123 * tui/tui-win.c (make_visible_with_new_height): Update.
124
5b81daba
TT
1252019-06-25 Tom Tromey <tom@tromey.com>
126
127 * tui/tui-winsource.c (tui_erase_source_content)
128 (tui_show_source_content, tui_show_exec_info_content)
129 (tui_erase_exec_info_content): Use refresh_window method.
130 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
131 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
132 from tui_refresh_win.
133 (tui_data_window::refresh_window): New method.
134 (tui_win_info::refresh, tui_source_window_base::refresh)
135 (tui_refresh_all): Use refresh_window method.
136 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
137 method.
138 * tui/tui-regs.c (tui_display_register): Call refresh_window
139 method.
140 * tui/tui-layout.c (show_source_disasm_command)
141 (show_source_or_disasm_and_command): Call refresh_window method.
142 * tui/tui-data.h (struct tui_gen_win_info)
143 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
144 New method.
145
cb2ce893
TT
1462019-06-25 Tom Tromey <tom@tromey.com>
147
148 * tui/tui.c (tui_rl_other_window, tui_enable)
149 (tui_is_window_visible, tui_get_command_dimension): Update.
150 * tui/tui-winsource.c (tui_update_source_window_as_is)
151 (tui_clear_source_content, tui_erase_source_content)
152 (tui_show_source_line, tui_source_window_base::refill)
153 (tui_source_window_base::do_scroll_horizontal)
154 (tui_source_window_base::set_is_exec_point_at)
155 (tui_update_breakpoint_info, tui_set_exec_info_content)
156 (tui_alloc_source_buffer, tui_line_is_displayed)
157 (tui_addr_is_displayed): Update.
158 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
159 (tui_check_and_display_highlight_if_needed)
160 (tui_win_info::make_visible, tui_win_info::refresh)
161 (tui_refresh_all): Update.
162 * tui/tui-windata.c (tui_first_data_item_displayed)
163 (tui_delete_data_content_windows, tui_erase_data_content)
164 (tui_display_all_data, tui_data_window::refresh_all)
165 (tui_check_data_values): Update.
166 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
167 (tui_set_win_focus_to, tui_win_info::forward_scroll)
168 (tui_win_info::backward_scroll, tui_refresh_all_win)
169 (tui_resize_all, tui_set_focus, tui_all_windows_info)
170 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
171 (tui_source_window_base::set_new_height)
172 (tui_data_window::set_new_height)
173 (make_invisible_and_set_new_height)
174 (make_visible_with_new_height, new_height_ok)
175 (parse_scrolling_args): Update.
176 * tui/tui-stack.c (tui_show_frame_info): Update.
177 * tui/tui-source.c (tui_set_source_content)
178 (tui_set_source_content_nil, tui_source_is_displayed)
179 (tui_source_window::do_scroll_vertical): Update.
180 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
181 (tui_display_registers_from, tui_display_reg_element_at_line)
182 (tui_check_register_values, tui_reg_command): Update.
183 * tui/tui-layout.c (tui_default_win_height)
184 (show_source_disasm_command, show_data, init_and_make_win)
185 (show_source_or_disasm_and_command): Update.
186 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
187 (tui_redisplay_readline, tui_mld_flush)
188 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
189 (tui_getc): Update.
190 * tui/tui-disasm.c (tui_set_disassem_content)
191 (tui_disasm_window::do_scroll_vertical): Update.
192 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
193 Now virtual.
194 (struct tui_win_info): Derive from tui_gen_win_info.
195 <~tui_win_info>: Mark as override.
196 <generic>: Remove member.
197 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
198 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
199 (~tui_data_window, ~tui_win_info)
200 (tui_free_all_source_wins_content): Update.
201 * tui/tui-command.c (tui_refresh_cmd_win): Update.
202
ab313b35
TT
2032019-06-25 Tom Tromey <tom@tromey.com>
204
205 * tui/tui-layout.c (init_and_make_win): Use new.
206 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
207 destructor, initializers.
208 (tui_alloc_generic_win_info): Don't declare.
209 * tui/tui-data.c (_locator): Add argument to constructor.
210 (source_win, disasm_win): New globals.
211 (exec_info): Remove.
212 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
213 Update.
214 (tui_alloc_generic_win_info): Remove.
215 (init_content_element): Use new.
216 (tui_win_info::tui_win_info): Update.
217 (free_content_elements) <case DATA_WIN>: Use delete.
218
dc2c33e4
TT
2192019-06-25 Tom Tromey <tom@tromey.com>
220
221 * tui/tui-wingeneral.c (tui_refresh_win): Update.
222 * tui/tui-windata.c (tui_first_data_item_displayed)
223 (tui_delete_data_content_windows): Update.
224 * tui/tui-win.c (tui_data_window::set_new_height): Update.
225 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
226 (tui_display_registers_from, tui_check_register_values): Update.
227 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
228 pointer.
229 * tui/tui-data.c (init_content_element): Update. Allocate the new
230 window.
231 (tui_free_data_content): Update.
232 (free_content_elements) <case DATA_WIN>: Free the window.
233
214a5cbe
TT
2342019-06-25 Tom Tromey <tom@tromey.com>
235
236 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
237 Update.
238 * tui/tui-layout.c (make_command_window)
239 (show_source_disasm_command, show_data, init_and_make_win)
240 (show_source_or_disasm_and_command): Update.
241 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
242 method.
243 <can_highight, is_highlighted>: Now bool.
244 (tui_set_win_highlight): Don't declare.
245 * tui/tui-data.c (tui_set_win_highlight): Remove.
246
8e2daf15
TT
2472019-06-25 Tom Tromey <tom@tromey.com>
248
249 * tui/tui-wingeneral.c (make_visible): Remove check of window
250 type.
251
8903bd8a
TT
2522019-06-25 Tom Tromey <tom@tromey.com>
253
254 * tui/tui-win.c (tui_win_info::max_height)
255 (tui_cmd_window::max_height): New methods.
256 (new_height_ok): Call max_height.
257 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
258 <max_height>: New method.
259
3f02ce1e
TT
2602019-06-25 Tom Tromey <tom@tromey.com>
261
262 * tui/tui-win.c (tui_source_window_base::set_new_height)
263 (tui_data_window::set_new_height): New methods.
264 (make_invisible_and_set_new_height): Call set_new_height method.
265 * tui/tui-data.h (struct tui_win_info)
266 (struct tui_source_window_base, struct tui_data_window)
267 <set_new_height>: New method.
268
1825f487
TT
2692019-06-25 Tom Tromey <tom@tromey.com>
270
271 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
272 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
273 tui_refresh_data_win.
274 * tui/tui-win.c (tui_source_window_base::refresh_all): New
275 method.
276 (tui_refresh_all_win): Call the refresh_all method.
277 (tui_set_focus): Likewise.
278 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
279 (struct tui_source_window_base, struct tui_data_window) <refresh>:
280 Likewise.
281
ad54d15b
TT
2822019-06-25 Tom Tromey <tom@tromey.com>
283
284 * tui/tui-winsource.h (tui_refill_source_window)
285 (tui_set_is_exec_point_at): Don't declare.
286 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
287 (tui_source_window_base::refill): Rename from
288 tui_refill_source_window.
289 (tui_source_window_base::do_scroll_horizontal): Update.
290 (tui_source_window_base::set_is_exec_point_at): Rename from
291 tui_set_is_exec_point_at.
292 (tui_update_all_breakpoint_info): Update.
293 * tui/tui-stack.c (tui_show_frame_info): Update.
294 * tui/tui-layout.c (show_data): Add cast.
295 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
296 * tui/tui-data.h (struct tui_source_window_base) <refill,
297 set_is_exec_point_at>: New methods.
298 (tui_source_windows, tui_add_to_source_windows): Update types.
299 (tui_add_to_source_windows): Remove redundant declaration.
300 * tui/tui-data.c (source_windows): Store tui_source_window_base.
301 (tui_source_windows): Change return type.
302 (tui_clear_source_windows_detail): Update.
303 (tui_add_to_source_windows): Change type of parameter.
304 (tui_free_all_source_wins_content): Update.
305
2042b506
TT
3062019-06-25 Tom Tromey <tom@tromey.com>
307
308 * tui/tui-wingeneral.c (tui_win_info::refresh)
309 (tui_source_window_base::refresh): New methods.
310 (tui_refresh_all): Call the refresh method.
311 * tui/tui-data.h (struct tui_win_info)
312 (struct tui_source_window_base) <refresh>: New method.
313
56122977
TT
3142019-06-25 Tom Tromey <tom@tromey.com>
315
316 * tui/tui.h (tui_is_window_visible): Return bool.
317 * tui/tui.c (tui_is_window_visible): Return bool.
318 * tui/tui-wingeneral.c (tui_make_window, make_visible)
319 (tui_make_visible, tui_make_invisible)
320 (tui_win_info::make_visible)
321 (tui_source_window_base::make_visible, make_all_visible)
322 (tui_make_all_visible, tui_make_all_invisible): Update.
323 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
324 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
325 bool.
326 (struct tui_win_info, struct tui_source_window_base)
327 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
328 * tui/tui-data.c (tui_init_generic_part): Update.
329
cda37efb
TT
3302019-06-25 Tom Tromey <tom@tromey.com>
331
332 * tui/tui-wingeneral.c (tui_win_info::make_visible)
333 (tui_source_window_base::make_visible): New methods.
334 (make_all_visible): Make method call.
335 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
336 (struct tui_source_window_base, struct tui_cmd_window): Override
337 make_visible.
338 (tui_win_is_source_type): Don't declare.
339 * tui/tui-data.c (tui_win_is_source_type): Remove.
340
6a0ee02c
TT
3412019-06-25 Tom Tromey <tom@tromey.com>
342
343 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
344 NULL check.
345
63901aec
TT
3462019-06-25 Tom Tromey <tom@tromey.com>
347
348 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
349 Inline constructor. Add initializers for members.
350 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
351 constructors; now inline in class.
352
ceb13a13
TT
3532019-06-25 Tom Tromey <tom@tromey.com>
354
355 * tui/tui-regs.c (tui_show_registers): Update.
356 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
357 bool.
358 * tui/tui-data.c (tui_data_window::clear_detail)
359 (tui_data_window): Update.
360
238eb706
TT
3612019-06-25 Tom Tromey <tom@tromey.com>
362
363 * tui/tui-windata.c (tui_display_all_data)
364 (tui_display_data_from_line, tui_display_data_from)
365 (tui_check_data_values, tui_data_window::do_scroll_vertical):
366 Update.
367 * tui/tui-regs.c (tui_last_regs_line_no)
368 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
369 (tui_show_registers, tui_show_register_group)
370 (tui_display_registers_from, tui_display_reg_element_at_line)
371 (tui_display_registers_from_line, tui_check_register_values)
372 (tui_reg_next, tui_reg_prev): Update.
373 * tui/tui-layout.c (tui_set_layout, show_data): Update.
374 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
375 tui_data_window.
376 (struct tui_win_info) <detail>: Remove. Add new fields from
377 tui_data_info.
378 (TUI_DATA_WIN): Add cast.
379 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
380 (~tui_data_window): Simplify.
381
81491aa0
TT
3822019-06-25 Tom Tromey <tom@tromey.com>
383
384 * tui/tui-layout.c (show_source_disasm_command)
385 (show_source_or_disasm_and_command): Update.
386 * tui/tui-io.c (update_cmdwin_start_line)
387 (tui_redisplay_readline): Update.
388 * tui/tui-data.h (struct tui_command_info): Remove.
389 (struct tui_win_info) <detail>: Remove command_info member.
390 (struct tui_data_window) <start_line>: New member, from
391 tui_command_info.
392 (TUI_CMD_WIN): Add casts.
393
e6e41501
TT
3942019-06-25 Tom Tromey <tom@tromey.com>
395
396 * tui/tui-winsource.c (tui_update_source_window)
397 (tui_refill_source_window)
398 (tui_source_window_base::do_scroll_horizontal)
399 (tui_update_breakpoint_info, tui_set_exec_info_content)
400 (tui_show_exec_info_content, tui_erase_exec_info_content)
401 (tui_clear_exec_info_content): Update.
402 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
403 Update.
404 * tui/tui-win.c (make_invisible_and_set_new_height)
405 (make_visible_with_new_height): Update.
406 * tui/tui-source.c (tui_set_source_content)
407 (tui_show_symtab_source): Update.
408 * tui/tui-layout.c (extract_display_start_addr)
409 (show_source_disasm_command, show_data)
410 (make_source_or_disasm_window)
411 (show_source_or_disasm_and_command): Update.
412 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
413 (tui_disasm_window::do_scroll_vertical): Remove shadowing
414 "gdbarch".
415 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
416 to tui_source_window_base.
417 (struct tui_win_info) <detail>: Remove source_info member.
418 (struct tui_source_window_base) <has_locator>: Inline.
419 Move contents from tui_source_info; rename has_locator member to
420 m_has_locator.
421 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
422 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
423 header file.
424 (tui_source_window_base::clear_detail, ~tui_source_window_base):
425 Simplify.
426 (tui_free_all_source_wins_content): Cast to
427 tui_source_window_base.
428
44f0e208
TT
4292019-06-25 Tom Tromey <tom@tromey.com>
430
431 * tui/tui-win.c (make_invisible_and_set_new_height)
432 (make_visible_with_new_height): Call has_locator method.
433 * tui/tui-layout.c (show_source_disasm_command, show_data)
434 (show_source_or_disasm_and_command): Update for bool change.
435 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
436 (tui_win_info) <has_locator>: New method.
437 (struct tui_source_window_base) <has_locator>: New method.
438 (tui_win_has_locator): Don't declare.
439 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
440 from tui_win_has_locator.
441 (tui_source_window_base): Use false, not FALSE.
442
7778b912
TT
4432019-06-25 Tom Tromey <tom@tromey.com>
444
445 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
446 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
447 clear_detail method directly.
448 (tui_clear_win_detail): Remove.
449
f83d391c
TT
4502019-06-25 Tom Tromey <tom@tromey.com>
451
452 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
453 "this", not TUI_DISASM_WIN.
454
13446e05
TT
4552019-06-25 Tom Tromey <tom@tromey.com>
456
457 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
458 declare.
459 * tui/tui-winsource.c
460 (tui_source_window_base::do_scroll_horizontal): Rename from
461 tui_horizontal_source_scroll.
462 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
463 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
464 from tui_vertical_data_scroll.
465 * tui/tui-win.h (tui_scroll): Don't declare.
466 * tui/tui-win.c (tui_win_info::forward_scroll)
467 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
468 (tui_win_info::right_scroll): Rename and update.
469 (tui_scroll_forward_command, tui_scroll_backward_command)
470 (tui_scroll_left_command, tui_scroll_right_command): Update.
471 (tui_scroll): Remove.
472 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
473 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
474 from tui_vertical_source_scroll.
475 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
476 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
477 from tui_vertical_disassem_scroll.
478 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
479 do_scroll_horizontal>: New methods.
480 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
481 Likewise.
482 (struct tui_source_window_base): Add do_scroll_horizontal.
483 (struct tui_source_window, struct tui_disasm_window): Add
484 do_scroll_vertical.
485 (struct tui_data_window, struct tui_cmd_window): Add
486 do_scroll_horizontal and do_scroll_vertical.
487 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
488
5cf82909
TT
4892019-06-25 Tom Tromey <tom@tromey.com>
490
491 * tui/tui-data.h (struct tui_source_window_base): New struct.
492 (struct tui_source_window): Derive from tui_source_window_base.
493 (struct tui_disasm_window): New struct.
494 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
495 from tui_source_window::clear_detail.
496 (tui_source_window_base): Rename from tui_source_window.
497 (~tui_source_window_base): Rename from ~tui_source_window.
498 (tui_alloc_win_info): Create a tui_disasm_window.
499
ee1d42d6
TT
5002019-06-25 Tom Tromey <tom@tromey.com>
501
502 * tui/tui-data.h (struct tui_source_window)
503 (struct tui_data_window): Declare destructors.
504 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
505 destructors.
506 (tui_win_info): Simplify.
507
b4eb2452
TT
5082019-06-25 Tom Tromey <tom@tromey.com>
509
510 * tui/tui-winsource.c (tui_display_main)
511 (tui_update_source_windows_with_addr)
512 (tui_update_all_breakpoint_info): Update.
513 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
514 (new_height_ok, parse_scrolling_args): Update.
515 * tui/tui-stack.c (tui_show_frame_info): Update.
516 * tui/tui-data.h (struct tui_list): Remove.
517 (tui_source_windows): Return a reference to a std::vector.
518 * tui/tui-data.c (source_windows): Now a std::vector.
519 (tui_source_windows): Change return type.
520 (tui_clear_source_windows): Rewrite.
521 (tui_clear_source_windows_detail, tui_add_to_source_windows)
522 (tui_free_all_source_wins_content): Rewrite.
523
8761a91b
TT
5242019-06-25 Tom Tromey <tom@tromey.com>
525
526 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
527 (struct tui_data_window, struct tui_cmd_window): Declare
528 clear_detail method.
529 * tui/tui-data.c (tui_source_window::clear_detail)
530 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
531 methods.
532 (tui_clear_win_detail): Simplify.
533
0ed69eda
TT
5342019-06-25 Tom Tromey <tom@tromey.com>
535
536 * tui/tui-layout.c (make_source_window, make_disasm_window)
537 (make_source_or_disasm_window): Remove win_info_ptr parameter.
538 Return the new window.
539 (show_source_disasm_command, show_data)
540 (show_source_or_disasm_and_command): Update.
541
82432e10
TT
5422019-06-25 Tom Tromey <tom@tromey.com>
543
544 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
545 parameter. Return the new window.
546 (show_source_disasm_command): Update and remove NULL check.
547 (show_source_or_disasm_and_command): Update.
548
ec328aa5
TT
5492019-06-25 Tom Tromey <tom@tromey.com>
550
551 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
552
33b906ab
TT
5532019-06-25 Tom Tromey <tom@tromey.com>
554
555 * tui/tui-data.h (struct tui_win_info): Make constructor
556 protected. Make destructor virtual. Add initializers.
557 (tui_source_window, tui_data_window, tui_cmd_window): New
558 classes.
559 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
560 constructor. Add "type" parameter.
561 (tui_source_window, tui_data_window, tui_cmd_window): New
562 constructors.
563 (tui_alloc_win_info): Instantiate the appropriate subclass.
564
e7e11af4
TT
5652019-06-25 Tom Tromey <tom@tromey.com>
566
567 * tui/tui-win.c (tui_resize_all): Use delete.
568 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
569 destructor.
570 (tui_free_window): Don't declare.
571 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
572 Update.
573
6792b55e
TT
5742019-06-25 Tom Tromey <tom@tromey.com>
575
576 * tui/tui-data.h (struct tui_win_info): Add constructor.
577 * tui/tui-data.c (tui_alloc_win_info): Use new.
578 (tui_free_window): Use delete.
579
f95675e1
TT
5802019-06-22 Tom Tromey <tom@tromey.com>
581
582 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
583 declare.
584 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
585
5bff081c
TT
5862019-06-22 Tom Tromey <tom@tromey.com>
587
588 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
589 declare.
590 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
591
47e3f474
TV
5922019-06-22 Tom de Vries <tdevries@suse.de>
593
594 * dwarf2read.c (create_addrmap_from_aranges)
595 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
596 instead of '%zu'.
597
fd5866f6
SM
5982019-06-21 Simon Marchi <simon.marchi@efficios.com>
599
600 * dwarf2read.h (dwarf2_section_info_def): Remove.
601 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
602 * dwarf2read.c (struct dwo_sections) <types>: Change type to
603 std::vector<dwarf2_section_info>.
604 (struct dwo_file) <~dwo_file>: Remove.
605 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
606 types field.
607 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
608 (dwarf2_read_debug_names): Likewise.
609 (create_debug_types_hash_table): Change parameter type to
610 array_view, adjust code accordingly.
611 (dwarf2_locate_dwo_sections): Adjust to std::vector.
612 (partial_die_info::fixup): Likewise.
613 (determine_prefix): Likewise.
614 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
615
fb1eb2f9
SM
6162019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
617
618 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
619 gdb_bfd_ref_ptr.
620 <~dwo_file>: Remove call to gdb_bfd_unref.
621 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
622 gdb_bfd_ref_ptr::get.
623
51ac9db5
SM
6242019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
625
626 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
627 type to htab_up.
628 * dwarf2read.c (struct dwo_file): Initialize fields.
629 <~dwo_file>: New.
630 (free_dwo_file): Remove, move content to ~dwo_file.
631 (struct dwo_file_deleter): Remove.
632 (dwo_file_up>: Remove custom deleter.
633 (free_dwo_files): Remove.
634 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
635 dwo_files.
636 (process_skeletonless_type_units): Call unique_ptr::get.
637 (allocate_dwo_file_hash_table): Add deleter to created hash
638 table. Change return type to htab_up.
639 (lookup_dwo_file_slot): Don't memset dwo_file, call
640 unique_ptr::get.
641 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
642 (create_dwo_unit_in_dwp_v2): Likewise.
643 (open_and_init_dwo_file): Likewise.
644 (free_dwo_file_from_slot): Remove.
645
dc4ccb6f
SM
6462019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
647
648 * dwarf2read.h (struct dwarf2_section_info) <readin,
649 is_virtual>: Change type to bool.
650 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
651 true instead of 1.
652
e6a1c5cb
TT
6532019-06-19 Tom Tromey <tom@tromey.com>
654
655 * tui/tui-data.h (tui_init_content_element): Don't declare.
656
6f6ffbeb
TT
6572019-06-19 Tom Tromey <tom@tromey.com>
658
659 * tui/tui-data.h (tui_init_win_info): Don't declare.
660
f23f598e
TV
6612019-06-19 Tom de Vries <tdevries@suse.de>
662
663 * dwarf2read.h (abstract_to_concrete): Change type to
664 std::unordered_map<sect_offset, std::vector<sect_offset>,
665 gdb::hash_enum<sect_offset>>.
666
680e1bee
TT
6672019-06-19 Tom Tromey <tromey@adacore.com>
668
669 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
670 EVAL_AVOID_SIDE_EFFECTS specially.
671
dcf37923
TT
6722019-06-19 Tom Tromey <tromey@adacore.com>
673
674 * source-cache.c (highlighter): New global.
675 (source_cache::get_source_lines): Create a highlighter on demand.
676
494986d5
AB
6772019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
678
679 * defs.h (deprecated_interactive_hook): Delete declaration.
680 * interps.c (clear_interpreter_hooks): Remove use of
681 deprecated_interactive_hook.
682 * top.c (deprecated_interactive_hook): Delete definition.
683 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
684
3360b6e7
TV
6852019-06-18 Tom de Vries <tdevries@suse.de>
686
687 PR gdb/24515
688 * dwarf2read.h (abstract_to_concrete): Change type from
689 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
690 std::unordered_map<sect_offset, std::vector<sect_offset>>.
691 * dwarf2read.c (read_variable): Update.
692 (dwarf2_fetch_die_loc_sect_off): Update.
693
310b3441
TV
6942019-06-17 Tom de Vries <tdevries@suse.de>
695
696 PR gdb/24617
697 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
698 accessing parent[parent_len - 1].
699
ba9777be
PP
7002019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
701
702 PR gdb/24364
703 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
704 call dtrace_process_dof with NULL dof.
705
2b9f6e89
TV
7062019-06-16 Tom de Vries <tdevries@suse.de>
707
708 PR gdb/24445
709 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
710
431b3ead
TT
7112019-06-16 Tom Tromey <tom@tromey.com>
712
713 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
714 (make_all_visible): Use address of member.
715
d04b44a1
TT
7162019-06-16 Tom Tromey <tom@tromey.com>
717
718 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
719 (tui_free_window, free_content, free_content_elements): Remove
720 unnecessary cast.
721 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
722 cast.
723 * tui/tui-regs.c (tui_show_register_group)
724 (tui_display_registers_from, tui_display_reg_element_at_line):
725 Remove unnecessary cast.
726
bf5142e7
AB
7272019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
728
729 * linux-nat.c (normal_mask): Delete.
730 (_initialize_linux_nat): Don't initialise normal_mask.
731
c4973306
SM
7322019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
733
734 PR gdb/24445
735 * dwarf-index-write.h (write_psymtabs_to_index): Add
736 dwz_basename parameter.
737 * dwarf-index-write.c (write_gdbindex): Move file writing to
738 write_gdbindex_1. Change return type void.
739 (assert_file_size): Move up, remove filename parameter.
740 (write_gdbindex_1): New function.
741 (write_debug_names): Change return type to void, call
742 assert_file_size.
743 (struct index_wip_file): New struct.
744 (write_psymtabs_to_index): Add dwz_basename parameter. Move
745 file logic to index_wip_file. Write index for dwz file if
746 needed.
747 (save_gdb_index_command): Pass basename of dwz file, if present.
748 * dwarf-index-cache.c (index_cache::store): Obtain and pass
749 build-id of dwz file, if present.
750 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
751 (dwarf2_get_dwz_file): Likewise.
752 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
753 (dwarf2_get_dwz_file): Likewise.
754
395f9c91
TT
7552019-06-16 Tom Tromey <tom@tromey.com>
756
757 * coffread.c (process_coff_symbol): Use xstrdup.
758 * value.c (create_internalvar): Use xstrdup.
759
cafb3438
TT
7602019-06-16 Tom Tromey <tom@tromey.com>
761
762 * valops.c (value_cast, value_slice): Remove unnecessary cast.
763 * breakpoint.c (stopin_command, stopat_command)
764 (until_break_command, decode_location_default): Remove unnecessary
765 cast.
766 * utils.c (subset_compare): Remove unnecessary cast.
767 * ada-lang.c (ada_update_initial_language): Remove unnecessary
768 cast.
769 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
770 cast.
771 * infcmd.c (path_command): Remove unnecessary cast.
772 * coffread.c (decode_type): Remove unnecessary cast.
773 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
774 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
775 * tui/tui-stack.c (tui_show_locator_content)
776 (tui_show_frame_info): Remove unnecessary cast.
777 * tui/tui-win.c (tui_scroll_forward_command)
778 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
779 (parse_scrolling_args): Remove unnecessary cast.
780 * tui/tui-data.c (init_win_info, tui_del_window)
781 (tui_free_window, tui_del_data_windows, tui_free_data_content)
782 (free_content_elements): Remove unnecessary cast.
783 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
784 unnecessary cast.
785 * tui/tui-source.c (tui_set_source_content)
786 (tui_vertical_source_scroll): Remove unnecessary cast.
787 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
788 cast.
789 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
790 * tui/tui-regs.c (tui_display_registers_from)
791 (tui_display_register): Remove unnecessary cast.
792 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
793 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
794 (make_visible): Remove unnecessary cast.
795 * tui/tui-winsource.c (tui_erase_source_content)
796 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
797 unnecessary cast.
798 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
799 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
800 * stabsread.c (read_type, read_array_type, read_range_type):
801 Remove unnecessary cast.
802 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
803 (parse_symbol, parse_type, upgrade_type, parse_external)
804 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
805 unnecessary cast.
806 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
807
730ead81
TT
8082019-06-16 Tom Tromey <tom@tromey.com>
809
810 * tui/tui-data.c (tui_alloc_generic_win_info)
811 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
812 checks.
813
584a927c
AB
8142019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
815 Andrew Burgess <andrew.burgess@embecosm.com>
816
817 * f-typeprint.c (f_print_type): Don't return early for not
818 associated or not allocated types.
819 (f_type_print_varspec_suffix): Add print_rank parameter and print
820 ranks of array types in case they dangling.
821 (f_type_print_base): Add print_rank parameter.
822
30056ea0
AB
8232019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
824
825 * NEWS: Mention new MI commands.
826 * break-catch-throw.c (enum exception_event_kind): Move to
827 breakpoint.h.
828 (print_mention_exception_catchpoint): Output text as a single
829 message.
830 (catch_exception_command_1): Rename to...
831 (catch_exception_event): ...this, make non-static, update header
832 command, and change some parameter types.
833 (catch_catch_command): Update for changes to
834 catch_exception_command_1.
835 (catch_throw_command): Likewise.
836 (catch_rethrow_command): Likewise.
837 * breakpoint.c (enum exception_event_kind): Delete.
838 * breakpoint.h (enum exception_event_kind): Moved here from
839 break-catch-throw.c.
840 (catch_exception_event): Declare.
841 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
842 (mi_cmd_catch_throw): New function.
843 (mi_cmd_catch_rethrow): New function.
844 (mi_cmd_catch_catch): New function.
845 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
846 'catch-catch' entries.
847 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
848 (mi_cmd_catch_rethrow): Declare.
849 (mi_cmd_catch_catch): Declare.
850
ec8e2b6d
AB
8512019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
852
853 * annotate.c (annotate_source_line): Change return type to void,
854 update implementation to match.
855 * annotate.h (annotate_source_line): Change return type to void,
856 update header comment.
857 * stack.c (print_frame_info): Don't change what frame information
858 is printed based on whether annotations are on or not.
859
0d3abd8c
AB
8602019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
861
862 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
863 (annotate_source): Make static.
864 (annotate_source_line): Moved from source.c and renamed from
865 identify_source_line. Update the return type.
866 * annotate.h (annotate_source): Delete declaration.
867 (annotate_source_line): Declaration moved from source.h, and
868 renamed from identify_source_line. Return type updated.
869 * source.c (identify_source_line): Moved to annotate.c and renamed
870 to annotate_source_line.
871 (info_line_command): Remove check of annotation_level.
872 * source.h (identify_source_line): Move declaration to annotate.h
873 and rename to annotate_source_line.
874 * stack.c: Add 'annotate.h' include.
875 (print_frame_info): Remove check of annotation_level before
876 calling annotate_source_line.
877
00df30ae
AB
8782019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
879
880 * source-cache.c (source_cache::get_plain_source_lines): Use
881 open_source_file_with_line_charpos instead of just
882 open_source_file, remove call to find_source_lines.
883 (source_cache::get_source_lines): Likewise.
884 * source.c (find_source_lines): Make static.
885 (get_filename_and_charpos): Renamed into...
886 (open_source_file_with_line_charpos): ..this along with changes to
887 return a scoped_fd, and some other minor clean ups.
888 (identify_source_line): Use open_source_file_with_line_charpos.
889 (search_command_helper): Use open_source_file_with_line_charpos
890 instead of just open_source_file, remove call to
891 find_source_lines.
892 * source.h (open_source_file_with_line_charpos): Declare new
893 function.
894 (find_source_lines): Delete declaration.
895
afda45a2
AB
8962019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 * source.c (get_filename_and_charpos): Remove fullname
899 parameter.
900 (identify_source_line): Update call to get_filename_and_charpos.
901
0735b091
TT
9022019-06-14 Tom Tromey <tromey@adacore.com>
903
904 PR gdb/24502:
905 * ui-style.h (skip_ansi_escape): Update comment.
906 * ui-file.h (class no_terminal_escape_file): New class.
907 * ui-file.c (no_terminal_escape_file::write)
908 (no_terminal_escape_file::puts): New methods.
909 * cli/cli-logging.c (handle_redirections): Use
910 no_terminal_escape_file.
911
52ce35e2
TT
9122019-06-14 Tom Tromey <tromey@adacore.com>
913
914 * NEWS: Move convenience variable news above Python news.
915
73cc7272
TT
9162019-06-14 Tom Tromey <tom@tromey.com>
917
918 * gnulib: Move directory to top-level.
919 * configure.ac: Don't configure gnulib.
920 * configure: Rebuild.
921 * common/common-defs.h: Use new path to gnulib.
922 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
923 (GNULIB_H): Remove.
924 (INCGNU): Look in new gnulib location.
925 (HFILES_NO_SRCDIR): Remove gnulib files.
926 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
927 (generated_files): Remove GNULIB_H.
928 ($(LIBGNU), all-lib): Remove targets.
929 (distclean): Don't mention GNULIB_BUILDDIR.
930 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
931
f5686554
TT
9322019-06-14 Tom Tromey <tromey@adacore.com>
933
934 * symfile.c (add_symbol_file_command): Remove obsolete comment.
935 Warn if symbol file does not provide any symbols.
936
a0c1ffed
TT
9372019-06-14 Tom Tromey <tromey@adacore.com>
938
939 * source.c (find_and_open_source): Respect basenames_may_differ.
940
7c39e397
AB
9412019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
942
943 * annotate.c (annotate_breakpoints_invalid): Make use of
944 scoped_restore_terminal_state.
945 (annotate_frames_invalid): Likewise.
946
f411722c
TT
9472019-06-14 Tom Tromey <tromey@adacore.com>
948
949 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
950 allow assignment to an internalvar.
951
4268ec18
TT
9522019-06-14 Tom Tromey <tromey@adacore.com>
953
954 * ada-lex.l: Allow "_" in attribute names.
955
abdb711e
TT
9562019-06-14 Tom Tromey <tromey@adacore.com>
957
958 PR gdb/24653:
959 * regcache.c (registers_changed): Don't call alloca.
960 * top.c (execute_command): Don't call alloca.
961
4c048731
PA
9622019-06-13 Pedro Alves <palves@redhat.com>
963
964 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
965 'expression'. When parsing an expression, error out if there's
966 junk after "unlimited".
967 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
968 (do_set_command): Adjust calls to is_unlimited_literal.
969
66eb1ed3
PA
9702019-06-13 Pedro Alves <palves@redhat.com>
971
972 * compile/compile.c (make_compile_options_def_group): Add braces
973 around array_view initializer.
974 * thread.c (make_thread_apply_all_options_def_group)
975 (make_thread_apply_all_options_def_group): Likewise.
976
3345721a
PA
9772019-06-13 Pedro Alves <palves@redhat.com>
978
979 * NEWS (New commands): Mention "maint test-options
980 require-delimiter", "maint test-options unknown-is-error", "maint
981 test-options unknown-is-operand" and "maint show
982 test-options-completion-result".
983 (New command options, command completion): New section.
984 (Completion improvements): New section.
985 Mention that you can abbreviate "unlimited".
986
6206060d
PA
9872019-06-13 Pedro Alves <palves@redhat.com>
988
989 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
990 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
991 * unittests/cli-utils-selftests.c (test_parse_flags)
992 (test_parse_flags_qcs): Delete.
993 (test_cli_utils): Don't call deleted functions.
994
6665660a
PA
9952019-06-13 Pedro Alves <palves@redhat.com>
996
997 * thread.c: Include "cli/cli-option.h".
998 (tp_array_compar_ascending): Global.
999 (tp_array_compar): Delete function.
1000 (tp_array_compar_ascending, tp_array_compar_descending): New
1001 functions.
1002 (ascending_option_def, qcs_flag_option_def)
1003 (thr_qcs_flags_option_defs)
1004 (make_thread_apply_all_options_def_group)
1005 (make_thread_apply_options_def_group): New.
1006 (thread_apply_all_command): Use gdb::option::process_options.
1007 (thread_apply_command_completer)
1008 (thread_apply_all_command_completer): New.
1009 (thread_apply_command): Use gdb::option::process_options.
1010 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
1011 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
1012 to generate help text of "thread apply". Adjust "taas"'s help.
1013 * tid-parse.c (tid_range_parser::in_thread_range): New method.
1014 * tid-parse.h (tid_range_parser::in_thread_range): New method.
1015
f7e13587
PA
10162019-06-13 Pedro Alves <palves@redhat.com>
1017
1018 * thread.c (thread_apply_command): Check for invalid TID with
1019 isdigit instead of !isalpha.
1020
5d707134
PA
10212019-06-13 Pedro Alves <palves@redhat.com>
1022
1023 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
1024 (validate_flags_qcs): New.
1025 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
1026 (validate_flags_qcs): Declare.
1027 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
1028 (make_frame_apply_options_def_group): New.
1029 (frame_apply_command_count): Process options with
1030 gdb::option::process_options.
1031 (frame_apply_completer): New.
1032 (frame_apply_level_completer, frame_apply_all_completer)
1033 (frame_apply_completer): New.
1034 (_initialize_stack): Update help of "frame apply", "frame apply
1035 level", "frame apply all" and "faas" to mention supported options
1036 and install command completers.
1037 * stack.h (frame_apply_all_completer): Declare.
1038 * thread.c: Include "stack.h".
1039 (tfaas_command): Add "--".
1040 (_initialize_thread): Update help "tfaas" to mention supported
1041 options and install command completer.
1042
272d4594
PA
10432019-06-13 Pedro Alves <palves@redhat.com>
1044
1045 * completer.c (complete_nested_command_line): New.
1046 (gdb_completion_word_break_characters_throw): Add assertion.
1047 * completer.h (complete_nested_command_line): Declare.
1048
90a1ef87
PA
10492019-06-13 Pedro Alves <palves@redhat.com>
1050
1051 * stack.c (parse_backtrace_qualifiers): New.
1052 (backtrace_command): Use it.
1053 (backtrace_command_completer): Complete on qualifiers.
1054
d4c16835
PA
10552019-06-13 Pedro Alves <palves@redhat.com>
1056
1057 * frame.c: Include "cli/cli-option.h.
1058 (user_set_backtrace_options): New.
1059 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
1060 Delete.
1061 (get_prev_frame): Adjust.
1062 (boolean_option_def, uinteger_option_def)
1063 (set_backtrace_option_defs): New.
1064 (_initialize_frame): Adjust and use
1065 gdb::option::add_setshow_cmds_for_options to install "set
1066 backtrace past-main" and "set backtrace past-entry".
1067 * frame.h: Include "cli/cli-option.h".
1068 (struct frame_print_options): Forward declare.
1069 (print_frame_arguments_all, print_frame_arguments_scalars)
1070 (print_frame_arguments_none): Declare.
1071 (print_entry_values): Delete declaration.
1072 (struct frame_print_options, user_frame_print_options): New.
1073 (struct set_backtrace_options): New.
1074 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
1075 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1076 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
1077 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
1078 (list_args_or_locals): Add frame_print_options parameter.
1079 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
1080 * python/py-framefilter.c (enumerate_args): Pass down
1081 USER_FRAME_PRINT_OPTIONS.
1082 * stack.c: Include "cli/cli-option.h".
1083 (print_frame_arguments_all, print_frame_arguments_scalars)
1084 (print_frame_arguments_none): Declare.
1085 (print_raw_frame_arguments, print_entry_values): Delete.
1086 (user_frame_print_options): New.
1087 (boolean_option_def, enum_option_def, frame_print_option_defs):
1088 New.
1089 (struct backtrace_cmd_options): New.
1090 (bt_flag_option_def): New.
1091 (backtrace_command_option_defs): New.
1092 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
1093 (print_frame_arg, read_frame_arg, print_frame_args)
1094 (print_frame_info, print_frame): Add frame_print_options parameter
1095 and use it.
1096 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
1097 (backtrace_command_1): Add frame_print_options and
1098 backtrace_cmd_options parameters and use them.
1099 (make_backtrace_options_def_group): New.
1100 (backtrace_command): Process command options with
1101 gdb::option::process_options.
1102 (backtrace_command_completer): New.
1103 (_initialize_stack): Extend "backtrace"'s help to mention
1104 supported options. Install completer for "backtrace".
1105 Install some settings commands with add_setshow_cmds_for_options.
1106
2daf894e
PA
11072019-06-13 Pedro Alves <palves@redhat.com>
1108
1109 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
1110 and that "set/show print raw frame-arguments" are now deprecated.
1111
1112 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
1113 command.
1114 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
1115 * stack.c (_initialize_stack): Install "set/show print
1116 raw-frame-arguments", and deprecate "set/show print raw
1117 frame-arguments".
1118 * valprint.c (_initialize_valprint): Deprecate "set/show print
1119 raw".
1120
e6ed716c
PA
11212019-06-13 Pedro Alves <palves@redhat.com>
1122
1123 * compile/compile.c (struct compile_options): New.
1124 (compile_flag_option_def, compile_command_option_defs)
1125 (make_compile_options_def_group): New.
1126 (compile_file_command): Handle options with
1127 gdb::option::process_options.
1128 (compile_file_command_completer): New function.
1129 (compile_code_command): Handle options with
1130 gdb::option::process_options.
1131 (compile_code_command_completer): New function.
1132 (_initialize_compiler): Install completers for "compile code" and
1133 "compile file". Mention available options in "compile code" and
1134 "compile code"'s help.
1135 * completer.c (advance_to_completion_word): New, factored out from
1136 ...
1137 (advance_to_expression_complete_word_point): ... this.
1138 (advance_to_filename_complete_word_point): New.
1139 * completer.h (advance_to_filename_complete_word_point): New
1140 declaration.
1141
7d8062de
PA
11422019-06-13 Pedro Alves <palves@redhat.com>
1143
1144 * compile/compile.c: Include "cli/cli-option.h".
1145 (compile_print_value): Scope data pointer is now a
1146 value_print_options pointer; adjust.
1147 (compile_print_command): Process options. Scope data pointer is
1148 now a value_print_options pointer; adjust.
1149 (_initialize_compile): Update "compile print"'s help to include
1150 supported options. Install a completer for "compile print".
1151 * cp-valprint.c (show_vtblprint, show_objectprint)
1152 (show_static_field_print): Delete.
1153 (_initialize_cp_valprint): Don't install "set print
1154 static-members", "set print vtbl", "set print object" here.
1155 * printcmd.c: Include "cli/cli-option.h" and
1156 "common/gdb_optional.h".
1157 (print_command_parse_format): Rework to fill in a
1158 value_print_options instead of a format_data.
1159 (print_value): Change parameter type from format_data pointer to
1160 value_print_options reference. Adjust.
1161 (print_command_1): Process options. Adjust to pass down a
1162 value_print_options.
1163 (print_command_completer): New.
1164 (_initialize_printcmd): Install print_command_completer as
1165 handle_brkchars completer for the "print" command. Update
1166 "print"'s help to include supported options.
1167 * valprint.c: Include "cli/cli-option.h".
1168 (show_vtblprint, show_objectprint, show_static_field_print): Moved
1169 here from cp-valprint.c.
1170 (boolean_option_def, uinteger_option_def)
1171 (value_print_option_defs, make_value_print_options_def_group):
1172 New. Use gdb::option::add_setshow_cmds_for_options to install
1173 "set print elements", "set print null-stop", "set print repeats",
1174 "set print pretty", "set print union", "set print array", "set
1175 print address", "set print symbol", "set print array-indexes".
1176 * valprint.h: Include <string> and "cli/cli-option.h".
1177 (make_value_print_options_def_group): Declare.
1178 (print_value): Change parameter type from format_data pointer to
1179 value_print_options reference.
1180 (print_command_completer): Declare.
1181
9d0faba9
PA
11822019-06-13 Pedro Alves <palves@redhat.com>
1183
1184 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
1185 (COMMON_SFILES): Add maint-test-settings.c.
1186 * cli/cli-decode.c (boolean_enums): New global, factored out from
1187 ...
1188 (add_setshow_boolean_cmd): ... here.
1189 * cli/cli-decode.h (boolean_enums): Declare.
1190 * cli/cli-option.c: New file.
1191 * cli/cli-option.h: New file.
1192 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
1193 factored out from ...
1194 (parse_cli_boolean_value(const char *)): ... this.
1195 (is_unlimited_literal): Change parameter type to pointer to
1196 pointer. Adjust and advance ARG pointer.
1197 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
1198 (parse_cli_var_enum): New, factored out from ...
1199 (do_set_command): ... this. Adjust.
1200 * cli/cli-setshow.h (parse_cli_boolean_value)
1201 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
1202 (parse_cli_var_enum): Declare.
1203 * cli/cli-utils.c: Include "cli/cli-option.h".
1204 (get_ulongest): New.
1205 * cli/cli-utils.h (get_ulongest): Declare.
1206 (check_for_argument): New overloads.
1207 * maint-test-options.c: New file.
1208
2c722807
PA
12092019-06-13 Pedro Alves <palves@redhat.com>
1210
1211 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
1212 parse a range if "-" is at the end of the string.
1213
dee7b4c8
PA
12142019-06-13 Pedro Alves <palves@redhat.com>
1215
1216 * cli/cli-setshow.c (parse_auto_binary_operation)
1217 (parse_cli_boolean_value): Don't allow "o".
1218
dca0f6c0
PA
12192019-06-13 Pedro Alves <palves@redhat.com>
1220
1221 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
1222 * NEWS: Mention maint test-settings KIND.
1223 * maint-test-settings.c: New file.
1224
597bf39d
PA
12252019-06-13 Pedro Alves <palves@redhat.com>
1226
1227 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
1228 completer.
1229 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
1230 "set" completers.
1231
48c410fb
PA
12322019-06-13 Pedro Alves <palves@redhat.com>
1233
1234 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
1235 after item.
1236
93bcb043
PA
12372019-06-13 Pedro Alves <palves@redhat.com>
1238
1239 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
1240
cbba3ecd
PA
12412019-06-13 Pedro Alves <palves@redhat.com>
1242
1243 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
1244 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
1245 call.
1246 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
1247 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
1248 calls.
1249 (check_for_argument): Skip spaces after argument.
1250
b9a3f842
PA
12512019-06-13 Pedro Alves <palves@redhat.com>
1252
1253 * thread.c (thread_apply_command): Adjust TID parsing.
1254 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
1255 detected before end of string.
1256 (tid_is_in_list): Error out if LIST is invalid.
1257
3844e605
PA
12582019-06-13 Pedro Alves <palves@redhat.com>
1259
1260 * completer.c (complete_line_internal_1): Rewind completion word
1261 point.
1262 (completion_tracker::advance_custom_word_point_by): Change
1263 parameter type to int.
1264 * completer.h (completion_tracker::advance_custom_word_point_by):
1265 Likewise.
1266
00b56dbe
PA
12672019-06-13 Pedro Alves <palves@redhat.com>
1268
1269 * completer.c (advance_to_completion_word): Handle delimiters.
1270
d106773e
PA
12712019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
1272
1273 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
1274
08f10e02
TT
12752019-06-11 Tom Tromey <tom@tromey.com>
1276
1277 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
1278 (xmalloc_failed): Move to alloc.c.
1279 * alloc.c: New file.
1280 * Makefile.in (COMMON_SFILES): Add alloc.c.
1281
1c7fe951
TT
12822019-06-11 Tom Tromey <tom@tromey.com>
1283
1284 * nat/linux-waitpid.c: Don't include server.h.
1285 (linux_debug): Remove.
1286 (my_waitpid): Update.
1287
89549d7f
TT
12882019-06-11 Tom Tromey <tromey@adacore.com>
1289
1290 * infcall.c (_initialize_infcall): Remove trailing newline from
1291 help.
1292 * user-regs.c (_initialize_user_regs): Remove trailing newline
1293 from help.
1294 * typeprint.c (_initialize_typeprint): Remove trailing newline
1295 from help.
1296 * reverse.c (_initialize_reverse): Remove trailing newlines from
1297 help.
1298 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
1299 from help.
1300 * language.c (add_set_language_command): Remove trailing newline
1301 from help.
1302 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
1303 help.
1304 * disasm.c (_initialize_disasm): Remove trailing newline from
1305 help.
1306 * top.c (init_main): Remove trailing newline from help.
1307 * interps.c (_initialize_interpreter): Remove trailing newline
1308 from help.
1309 * btrace.c (_initialize_btrace): Remove trailing newlines from
1310 help.
1311 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
1312 from help.
1313 * python/python.c (_initialize_python): Remove trailing newline
1314 from help.
1315 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
1316 help.
1317 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
1318 from help. Reformat some text.
1319 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
1320 from help.
1321 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
1322 newline from help.
1323
86108c13
TT
13242019-06-11 Tom Tromey <tromey@adacore.com>
1325
1326 * darwin-nat.c (darwin_decode_exception_message)
1327 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
1328
a7067863
AB
13292019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * valops.c (value_slice): Check for not allocated or not
1332 associated values.
1333
9ab08412
TV
13342019-06-10 Tom de Vries <tdevries@suse.de>
1335
1336 PR gdb/24618
1337 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
1338 sure an empty slot (defined by a 32-bit zero pair) is recognized as
1339 invalid.
1340
f19e22e9
TV
13412019-06-10 Tom de Vries <tdevries@suse.de>
1342
1343 PR gdb/24611
1344 * linespec.c (linespec_lexer_lex_string): Remove incorrect
1345 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
1346
e99f9db0
TV
13472019-06-10 Tom de Vries <tdevries@suse.de>
1348
1349 PR symtab/24545
1350 * symtab.c (struct demangled_name_entry): Add language field.
1351 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
1352 static minimal symbol". Set and use language field.
1353
9bf7038b
TT
13542019-06-10 Tom Tromey <tromey@adacore.com>
1355
1356 * ada-lang.c (_initialize_ada_language): Update help text.
1357
422186a9
TT
13582019-06-10 Tom Tromey <tromey@adacore.com>
1359
1360 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
1361 with a newline.
1362 * guile/guile.c (handle_boot_error): Don't end warning with a
1363 newline.
1364 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
1365 warning with a newline.
1366 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
1367 newline.
1368 (s12z_frame_cache): Likewise.
1369 * dwarf-index-cache.c (index_cache::store): Don't end warning with
1370 a newline.
1371 * solib-svr4.c (disable_probes_interface): Don't end warning with
1372 a newline.
1373 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
1374 newline.
1375 * python/python.c (do_finish_initialization): Don't end warning
1376 with a newline.
1377
25ce02ee
TT
13782019-06-10 Tom Tromey <tom@tromey.com>
1379
1380 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1381 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
1382 gdbpy_enter.
1383
caa429d8
TT
13842019-06-10 Tom Tromey <tromey@adacore.com>
1385
1386 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
1387 data.
1388 (elf_new_init): Don't call stabsread_new_init.
1389 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
1390 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
1391 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
1392
81873cc8
TV
13932019-06-10 Tom de Vries <tdevries@suse.de>
1394
1395 PR symtab/16264
1396 PR symtab/24517
1397 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
1398
4fa0265e
РИ
13992019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
1400
1401 * source.c (find_and_open_source): Also rewrite relative file
1402 names.
1403
1a3da2cd
AB
14042019-04-26 Amos Bird <amosbird@gmail.com>
1405
1406 * annotate.c (annotate_thread_exited): Add "thread-exited"
1407 annotation.
1408
3847a7bf
TT
14092019-06-06 Tom Tromey <tromey@adacore.com>
1410
1411 * maint.h (class scoped_command_stats): Use
1412 DISABLE_COPY_AND_ASSIGN.
1413 <print_time>: New method.
1414 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
1415 print_time.
1416 (scoped_command_stats::print_time): New method.
1417
312617a3
AB
14182019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1419
1420 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
1421 instructions of lengths 6 or 8 bytes.
1422
b02f78f9
PA
14232019-06-04 Pedro Alves <palves@redhat.com>
1424
1425 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
1426
1427 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
1428 * breakpoint.c (condition_completer): Likewise.
1429 * cli/cli-dump.c (scan_expression): Likewise.
1430 * common/filestuff.c (mkdir_recursive): Likewise.
1431 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
1432 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
1433 (gdb_abspath): Likewise.
1434 * compile/compile-cplus-types.c
1435 (compile_cplus_instance::decl_name): Likewise.
1436 * completer.c (complete_explicit_location):
1437 (signal_completer, reg_or_group_completer_1): Likewise.
1438 * cp-support.c (cp_remove_params_if_any): Likewise.
1439 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
1440 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
1441 * infcmd.c (strip_bg_char): Likewise.
1442 * linespec.c (copy_token_string): Likewise.
1443 * mi/mi-main.c (output_cores): Likewise.
1444 * psymtab.c (psymtab_search_name):
1445 * symfile.c (test_set_ext_lang_command): Likewise.
1446 * target.c (target_fileio_read_stralloc): Likewise.
1447 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
1448 * value.c (complete_internalvar): Likewise.
1449
e1f2e1a2
CB
14502019-06-04 Christian Biesinger <cbiesinger@google.com>
1451
1452 Add objfile property to gdb.Type.
d3238f7d
PA
1453 * NEWS: Mention Python API addition.
1454 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 1455
e664d728
PW
14562019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1457
1458 * NEWS: Mention the new set|show style [title|highlight].
1459 Mention changes to "show style", "help" and "apropos".
1460
66d8c862
PW
14612019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1462
1463 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
1464 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
1465 instead of print_help_for_command.
1466 (print_doc_of_command): New function.
1467 (help_list): Add 'apropos -v word' suggestion.
1468 (print_help_for_command): Style the command name using title style.
1469 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
1470 (_initialize_cli_cmds): Describe -v in apropos_command help.
1471
9303eb2f
PW
14722019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1473
1474 * cli/cli-style.h (cli_style_option): Add name in constructor,
1475 add m_name class member, add constructor with intensity,
1476 add name class function.
1477 (cli_style_option::add_setshow_commands): Remove name argument.
1478 (highlight_style, title_style): New styles.
1479 * cli/cli-style.c (do_show): New function that shows a style
1480 characteristic styling the style name with itself.
1481 (set_style_name): New function.
1482 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
1483 Update all callers according to the changes in cli/cli-style.h.
1484 * utils.h (fputs_highlighted): New function.
1485 * utils.c (fputs_highlighted): Likewise.
1486
e2c52041
PW
14872019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1488
1489 * NEWS: Mention new pipe command and new convenience variables.
1490
947d3946
PW
14912019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1492
1493 * cli/cli-cmds.c (pipe_command): New function.
1494 (_initialize_cli_cmds): Call add_com for pipe_command.
1495 Define | as an alias for pipe.
1496 (exit_status_set_internal_vars): New function.
1497 (shell_escape): Call exit_status_set_internal_vars.
1498 cli/cli-decode.c (find_command_name_length): Recognize | as
1499 a single character command.
1500
b8fd0918
PW
15012019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1502
1503 * gdbcmd.h (execute_command_to_ui_file): New declaration.
1504 top.c (execute_command_to_ui_file): New function, mostly a copy
1505 of execute_command_to_string.
1506 (execute_command_to_string): Implement by calling
1507 execute_command_to_ui_file.
1508
68bb5386
PW
15092019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1510
1511 * top.h (saved_command_line): Remove declaration.
1512 * top.c (previous_saved_command_line, previous_repeat_arguments):
1513 New variables.
1514 (saved_command_line): Make static, define together with other
1515 'repeat variables'.
1516 (dont_repeat): Clear repeat_arguments.
1517 (repeat_previous, get_saved_command_line, save_command_line):
1518 New functions.
1519 (gdb_init): Initialize saved_command_line
1520 and previous_saved_command_line.
1521 * main.c (captured_main_1): Remove saved_command_line initialization.
1522 * event-top.c (handle_line_of_input): Update to use
1523 the new 'repeat' related functions instead of direct access to
1524 saved_command_line.
1525 * command.h (repeat_previous, get_saved_command_line,
1526 save_command_line): New declarations.
1527 (dont_repeat): Add comment.
1528
bfcdb852
TT
15292019-05-30 Tom Tromey <tromey@adacore.com>
1530
1531 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
1532 Fix comment.
1533 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
1534
0ef209f2
JV
15352019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
1536
1537 PR cli/24587
1538 * completer.c (complete): Initialize variable word.
1539
955b06fa
SDJ
15402019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
1541
1542 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
1543 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
1544 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
1545 'body' is NULL to the outter 'if', protecting the '!is_define'
1546 situation as well.
1547
fa9c3fa0
TT
15482019-05-29 Tom Tromey <tromey@adacore.com>
1549
1550 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
1551 (dwarf_unknown): New function.
1552 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
1553 (dwarf_type_encoding_name): Use dwarf_unknown.
1554
4330d61d
TT
15552019-05-29 Tom Tromey <tromey@adacore.com>
1556
1557 PR c++/20020:
1558 * cp-valprint.c (cp_print_value_fields): Call
1559 cp_print_static_field inside "try".
1560
33a6bc35
TT
15612019-05-29 Tom Tromey <tromey@adacore.com>
1562
1563 * inflow.c (struct terminal_info): Add default operator=.
1564 * configure: Rebuild.
1565 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
1566 -Wdeprecated-copy-dtor, -Wredundant-move.
1567
000439d5
TT
15682019-05-29 Tom Tromey <tromey@adacore.com>
1569
1570 * NEWS: Add entry.
1571 * infcmd.c (print_return_value_1): Handle finish_print
1572 option.
1573 (show_print_finish): New function.
1574 (_initialize_infcmd): Add "set/show print finish" commands.
1575 * valprint.c (user_print_options): Initialize new member.
1576 * valprint.h (struct value_print_options) <finish_print>: New
1577 member.
1578
c0e70c62
TT
15792019-05-28 Tom Tromey <tromey@adacore.com>
1580
1581 * ada-lang.c (ada_remove_Xbn_suffix)
1582 (find_old_style_renaming_symbol)
1583 (parse_old_style_renaming): Remove.
1584 (ada_find_renaming_symbol): Don't call
1585 find_old_style_renaming_symbol.
1586 (ada_is_renaming_symbol): Rename from
1587 ada_find_renaming_symbol. Remove "block" parameter. Return
1588 bool. Now static.
1589 (ada_read_var_value): Update and simplify.
1590 * ada-exp.y (write_var_or_type): Remove old code.
1591
766f8836
AH
15922019-05-28 Alan Hayward <alan.hayward@arm.com>
1593
1594 * event-top.c: Remove include comment.
1595 * inflow.c (class scoped_ignore_sigttou): Move from here...
1596 * inflow.h (class scoped_ignore_sigttou): ...to here.
1597 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
1598 * top.c: Remove include comment.
1599
eb41253a
TT
16002019-05-27 Tom Tromey <tom@tromey.com>
1601
1602 * NEWS: Fix typo.
1603
4ca51187
TT
16042019-05-22 Tom Tromey <tromey@adacore.com>
1605
1606 * target.c (target_follow_exec): Constify parameter.
1607 * target-delegates.c: Rebuild.
1608 * remote.c (remote_target::follow_exec): Constify parameter.
1609 * infrun.c (follow_exec): Constify parameter.
1610 * target.h (struct target_ops) <follow_exec>: Constify parameter.
1611 (target_follow_exec): Likewise.
1612
8fca4da0
AH
16132019-05-22 Alan Hayward <alan.hayward@arm.com>
1614
1615 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
1616 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
1617
b7060614
AH
16182019-05-22 Alan Hayward <alan.hayward@arm.com>
1619
1620 * NEWS: Add debugredirect and testsuite sections.
1621
0a5954bd
SC
16222019-05-22 Simon Cook <simon.cook@embecosm.com>
1623
1624 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
1625 target descriptions using exclusively floating point register name
1626 aliases.
1627
dc42e902
AB
16282019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1629
1630 PR gdb/18644:
1631 * f-lang.c (build_fortran_types): Handle the case where
1632 gdbarch_floatformat_for_type returns a nullptr.
1633
fb7806c7
TV
16342019-05-21 Tom de Vries <tdevries@suse.de>
1635
1636 PR cli/24587
1637 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
1638
34d11c68
AB
16392019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1640
1641 PR gdb/18644:
1642 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
1643 16-byte floats.
1644 * i386-tdep.c (i386_floatformat_for_type): Use
1645 floatformats_ia64_quad for the 16-byte floating point component
1646 within a fortran 32-byte complex number.
1647
122cf0f2
AB
16482019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1649
1650 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
1651 delete default constructor.
1652 (find_partial_die): Update to return const struct.
1653 (partial_die_parent_scope): Move variable declaration into scope
1654 of its use and change its type to auto.
1655 (guess_partial_die_structure_name): Likewise.
1656 (partial_die_info::fixup): Likewise.
1657
33d0e35a
TT
16582019-05-17 Tom Tromey <tromey@adacore.com>
1659
1660 * source.c (find_and_open_source): Remove cast.
1661
a45575b0
TT
16622019-05-17 Tom Tromey <tromey@adacore.com>
1663
1664 * annotate.c (annotate_source): Make "filename" const.
1665 * annotate.h (annotate_source): Use const.
1666
81f47ac2
AH
16672019-05-17 Alan Hayward <alan.hayward@arm.com>
1668
1669 * disasm.c (set_disassembler_options): Send errors to stderr.
1670
ca1285d1
AH
16712019-05-17 Alan Hayward <alan.hayward@arm.com>
1672
1673 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
1674 (cli_interp_base::set_logging): Check debug_redirect.
1675 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
1676 * cli/cli-logging.c (debug_redirect): Add static variable.
1677 (pop_output_files): Add default param.
1678 (handle_redirections): Print debug setting.
1679 (show_logging_command): Likewise.
1680 (_initialize_cli_logging): Add debugredirect command.
1681 * interps.c (current_interp_set_logging): Add debug_redirect
1682 parameter.
1683 * interps.h (set_logging): Add debug_redirect parameter.
1684 (current_interp_set_logging): Likewise.
1685 * mi/mi-common.h: Likewise.
1686 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
1687
16882019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
1689 Tom Tromey <tromey@adacore.com>
1690
1691 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
1692 directly.
1693 * cli/cli-interp.h (make_logging_output): Remove declaration.
1694 * cli/cli-logging.c (make_logging_output): Remove function.
1695 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
1696 directly.
1697 * ui-file.c (tee_file::tee_file): Remove bools.
1698 (tee_file::~tee_file): Remove deletes.
1699 * ui-file.h (tee_file): Remove bools.
1700
26648588
JV
17012019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
1702
1703 * mi/mi-cmds.h (mi_cmd_complete): New function.
1704 * mi/mi-main.c (mi_cmd_complete): Likewise.
1705 * mi/mi-cmds.c: Define new MI command -complete.
1706 * NEWS: Mention new -complete command.
1707
6e035501
JV
17082019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
1709
1710 * completer.h (complete): New function.
1711 * completer.c (complete): Likewise.
1712 * cli/cli-cmds.c: (complete_command): Update to use new complete()
1713 function defined in completer.h.
1714
7d0e2ece
JV
17152019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
1716
e79be6e5 1717 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 1718
fb816e8b
TV
17192019-05-17 Tom de Vries <tdevries@suse.de>
1720
1721 PR gdb/24094
1722 * dwarf2read.c (struct cu_partial_die_info): New struct.
1723 (find_partial_die): Return cu_partial_die_info.
1724 (partial_die_parent_scope, guess_partial_die_structure_name)
1725 (partial_die_info::fixup): Handle new return type of find_partial_die.
1726
677052f2
SDJ
17272019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1728
1729 * stap-probe.c (stap_parse_register_operand): Make "regname" an
1730 "std::string", simplifying the algorithm.
1731
f3da9116
SDJ
17322019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1733
1734 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
1735 (stap_static_probe_ops::get_probes): Likewise.
1736
f1bb75ab
SDJ
17372019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1738
1739 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
1740 '-')" and "else if".
1741 (stap_parse_single_operand): Join checks for
1742 "gdbarch_stap_parse_special_token_p" and
1743 "gdbarch_stap_parse_special_token" in the same "if" statement.
1744 Invert check when verifying for operation on register
1745 displacement.
1746
3ca58cde
SDJ
17472019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1748
1749 * stap-probe.c (stap_get_opcode): Update comment.
1750 (stap_get_expected_argument_type): Likewise.
1751 (handle_stap_probe): Likewise.
1752
af2d9bee
SDJ
17532019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1754
1755 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
1756 return type to 'bool'. Adjust comment. Use 'bool' when
1757 appropriate.
1758 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1759 * stap-probe.c (stap_parse_argument_1): Likewise.
1760 (stap_is_operator): Likewise.
1761 (stap_is_generic_prefix): Likewise.
1762 (stap_is_register_prefix): Likewise.
1763 (stap_is_register_indirection_prefix): Likewise.
1764 (stap_is_integer_prefix): Likewise.
1765 (stap_generic_check_suffix): Likewise.
1766 (stap_check_integer_suffix): Likewise.
1767 (stap_check_register_suffix): Likewise.
1768 (stap_check_register_indirection_suffix): Likewise.
1769 (stap_parse_register_operand): Likewise.
1770 (stap_parse_single_operand): Likewise.
1771 (stap_parse_argument_1): Likewise.
1772 (stap_probe::get_argument_count): Likewise.
1773 (stap_is_operator): Likewise.
1774
61c9c421
TT
17752019-05-16 Tom Tromey <tromey@adacore.com>
1776
1777 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
1778 keyword to foreach.
1779
9ddc1af1
SM
17802019-05-15 Simon Marchi <simon.marchi@efficios.com>
1781
1782 * linux-thread-db.c (try_thread_db_load_1): Change return type
1783 to bool.
1784 (try_thread_db_load): Likewise.
1785 (try_thread_db_load_from_pdir_1): Likewise.
1786 (try_thread_db_load_from_pdir): Likewise.
1787 (try_thread_db_load_from_sdir): Likewise.
1788 (try_thread_db_load_from_dir): Likewise.
1789 (thread_db_load_search): Likewise.
1790 (has_libpthread): Likewise.
1791 (thread_db_load): Likewise.
1792
7bede828
SDJ
17932019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
1794
1795 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
1796 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
1797 NULL, and complain/return if that's the case.
1798
c5358db4
JD
17992019-05-15 John Darrington <john@darrington.wattle.id.au>
1800
1801 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
1802 (advance, posn, abstract_read_memory): New functions.
1803 [struct mem_read_abstraction]: New struct.
1804 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
1805
c408a94f
TT
18062019-05-14 Tom Tromey <tromey@adacore.com>
1807
1808 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
1809 value is not lval_memory.
1810
e7bd7fba
TT
18112019-05-14 Tom Tromey <tromey@adacore.com>
1812
1813 * solib.c (info_sharedlibrary_command): Style the file name.
1814
a6d0f249
AH
18152019-05-14 Alan Hayward <alan.hayward@arm.com>
1816
1817 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
1818 (aarch64_vnv_type): Likewise.
1819 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
1820 * common/tdesc.c: Likewise.
1821 * common/tdesc.h (enum tdesc_type_kind): Likewise.
1822 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1823 * features/aarch64-fpu.xml: Add ieee half view.
1824 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
1825 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
1826 * gdbtypes.h (struct builtin_type): Likewise.
1827 (struct objfile_type): Likewise.
1828
66b8bb74
SM
18292019-05-12 Paul Naert <paul.naert@polymtl.ca>
1830
1831 * language.c (language_sniff_from_mangled_name): Fix "langauge"
1832 typo.
1833 * location.h (string_to_event_location): Likewise.
1834
21c219fd
JB
18352019-05-11 Joel Brobecker <brobecker@adacore.com>
1836
1837 GDB 8.3 released.
1838
13674803
SM
18392019-05-10 Simon Marchi <simon.marchi@efficios.com>
1840
1841 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
1842 New variable declaration.
1843 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
1844 New variable.
1845 (print_one_breakpoint): Use ui_out::test_flags and new global
1846 variable to compute use_fixed_output.
1847 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
1848 Remove.
1849 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
1850 (mi_multi_location_breakpoint_output_fixed): Remove.
1851 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
1852 new variable.
1853 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
1854 fix_multi_location_breakpoint_output flag if version >= 3.
1855 * ui-out.h (enum ui_out_flag)
1856 <fix_multi_location_breakpoint_output>: New enumerator.
1857
a9eac7f9
SM
18582019-05-10 Simon Marchi <simon.marchi@efficios.com>
1859
1860 * contrib/cc-with-tweaks.sh: Validate dwz's work.
1861
71bed2db
TT
18622019-05-10 Tom Tromey <tromey@adacore.com>
1863
1864 * ada-lang.c (catch_ada_completer): New function.
1865 (_initialize_ada_language): Use it.
1866
24c54127
TT
18672019-05-10 Tom Tromey <tromey@adacore.com>
1868
1869 * thread.c (print_thread_info): Make "requested_threads" const.
1870 * gdbthread.h (print_thread_info): Make "requested_threads"
1871 const.
1872 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
1873 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
1874
7a102139
TT
18752019-05-08 Tom Tromey <tom@tromey.com>
1876
1877 * gdbtypes.c (objfile_type_data): Change type.
1878 (objfile_type, _initialize_gdbtypes): Update.
1879
924d79e2
TT
18802019-05-08 Tom Tromey <tom@tromey.com>
1881
1882 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
1883 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
1884 (_initialize_dwarf2_frame): Update.
1885
4c58e337
TT
18862019-05-08 Tom Tromey <tom@tromey.com>
1887
1888 * objc-lang.c (objc_objfile_data): Change type.
1889 (find_methods): Update.
1890 (_initialize_objc_lang): Remove.
1891
d772d2ab
TT
18922019-05-08 Tom Tromey <tom@tromey.com>
1893
1894 * stabsread.c (rs6000_builtin_type_data): Change type.
1895 (rs6000_builtin_type, _initialize_stabsread): Update.
1896
d11d83f4
TT
18972019-05-08 Tom Tromey <tom@tromey.com>
1898
1899 * mips-tdep.c (mips_pdr_data): Remove.
1900 (_initialize_mips_tdep): Update.
1901
9a73f0ad
TT
19022019-05-08 Tom Tromey <tom@tromey.com>
1903
1904 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
1905 (hppa_init_objfile_priv_data, read_unwind_info)
1906 (find_unwind_entry, _initialize_hppa_tdep): Update.
1907
8127a2fa
TT
19082019-05-08 Tom Tromey <tom@tromey.com>
1909
1910 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
1911 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
1912 on obstack.
1913 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
1914
91d3055d
TT
19152019-05-08 Tom Tromey <tom@tromey.com>
1916
1917 * mdebugread.c (basic_type_data): Change type.
1918 (basic_type, _initialize_mdebugread): Update.
1919
31930bd3
TT
19202019-05-08 Tom Tromey <tom@tromey.com>
1921
1922 * common/gdb_unique_ptr.h (struct noop_deleter): New.
1923
bdb3ed9e
TT
19242019-05-08 Tom Tromey <tom@tromey.com>
1925
1926 * nto-tdep.c (nto_inferior_data_reg): Change type.
1927 (nto_inferior_data): Update.
1928 (nto_inferior_data_cleanup, nto_new_inferior_data)
1929 (_initialize_nto_tdep): Remove.
1930 * nto-tdep.h (struct nto_inferior_data): Add initializers.
1931
f37b313d
TT
19322019-05-08 Tom Tromey <tom@tromey.com>
1933
1934 * ada-lang.c (struct ada_inferior_data): Add initializers.
1935 (ada_inferior_data): Change type.
1936 (ada_inferior_data_cleanup): Remove.
1937 (get_ada_inferior_data, ada_inferior_exit)
1938 (struct ada_pspace_data): Add initializers, destructor.
1939 (ada_pspace_data_handle): Change type.
1940 (get_ada_pspace_data): Update.
1941 (ada_pspace_data_cleanup): Remove.
1942
24699405
TT
19432019-05-08 Tom Tromey <tom@tromey.com>
1944
1945 * coffread.c (struct coff_symfile_info): Add initializers.
1946 (coff_objfile_data_key): Move lower. Change type.
1947 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
1948 Update.
1949 (coff_free_info): Remove.
1950
d4e05d2f
TT
19512019-05-08 Tom Tromey <tom@tromey.com>
1952
1953 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
1954 (fbsd_pspace_data_handle): Move lower. Change type.
1955 (get_fbsd_pspace_data): Update.
1956 (fbsd_pspace_data_cleanup): Remove.
1957 (_initialize_fbsd_tdep): Update.
1958
14ef6690
TT
19592019-05-08 Tom Tromey <tom@tromey.com>
1960
1961 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
1962 (get_ada_tasks_pspace_data): Update.
1963 (ada_tasks_pspace_data_cleanup): Remove.
1964 (_initialize_tasks): Update.
1965 (ada_tasks_inferior_data_handle): Change type.
1966 (get_ada_tasks_inferior_data): Update.
1967 (ada_tasks_inferior_data_cleanup): Remove.
1968 (struct ada_tasks_pspace_data): Add initializers.
1969
814cf43a
TT
19702019-05-08 Tom Tromey <tom@tromey.com>
1971
1972 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
1973 * symfile-debug.c (debug_sym_get_probes): Change type.
1974 * stap-probe.c (handle_stap_probe):
1975 (stap_static_probe_ops::get_probes): Change type.
1976 * probe.h (class static_probe_ops) <get_probes>: Change type.
1977 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
1978 (parse_probes_in_pspace): Update.
1979 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
1980 Update.
1981 (any_static_probe_ops::get_probes): Change type.
1982 * elfread.c (elfread_data): New typedef.
1983 (probe_key): Change type.
1984 (elf_get_probes): Likewise. Update.
1985 (probe_key_free): Remove.
1986 (_initialize_elfread): Update.
1987 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
1988 Change type.
1989 (dtrace_process_dof_probe, dtrace_process_dof)
1990 (dtrace_static_probe_ops::get_probe): Change type.
1991
02dc647e
TT
19922019-05-08 Tom Tromey <tom@tromey.com>
1993
1994 * xcoffread.c (struct xcoff_symfile_info): Rename from
1995 coff_symfile_info. Add initializers.
1996 (xcoff_objfile_data_key): Move lower. Change type.
1997 (XCOFF_DATA): Rewrite.
1998 (xcoff_free_info): Remove.
1999 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
2000 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
2001 (xcoff_initial_scan): Update.
2002
09232438
TT
20032019-05-08 Tom Tromey <tom@tromey.com>
2004
2005 * solib-svr4.c (struct svr4_info): Add initializers and
2006 destructor.
2007 <probes_table>: Now an htab_up.
2008 (solib_svr4_pspace_data): Change type.
2009 (free_probes_table): Simplify.
2010 (~svr4_info): Rename from svr4_pspace_data_cleanup.
2011 (get_svr4_info, probes_table_htab_remove_objfile_probes)
2012 (probes_table_remove_objfile_probes, register_solib_event_probe)
2013 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
2014 (_initialize_svr4_solib): Update.
2015
7b4a314f
TT
20162019-05-08 Tom Tromey <tom@tromey.com>
2017
2018 * remote.c (remote_pspace_data): Change type.
2019 (remote_pspace_data_cleanup): Remove.
2020 (get_remote_exec_file, set_pspace_remote_exec_file)
2021 (_initialize_remote): Update.
2022
51d3063a
TT
20232019-05-08 Tom Tromey <tom@tromey.com>
2024
2025 * breakpoint.c (breakpoint_objfile_key): Change type.
2026 (get_breakpoint_objfile_data): Update.
2027 (free_breakpoint_objfile_data): Remove.
2028 (_initialize_breakpoint): Update.
2029
89fb8848
TT
20302019-05-08 Tom Tromey <tom@tromey.com>
2031
2032 * linux-tdep.c (struct linux_info): Add initializers.
2033 (linux_inferior_data): Move. Change type.
2034 (invalidate_linux_cache_inf): Update.
2035 (linux_inferior_data_cleanup): Remove.
2036 (get_linux_inferior_data, _initialize_linux_tdep): Update.
2037
e9b89e2d
TT
20382019-05-08 Tom Tromey <tom@tromey.com>
2039
2040 * auxv.c (auxv_inferior_data): Move. Change type.
2041 (auxv_inferior_data_cleanup): Remove.
2042 (invalidate_auxv_cache_inf): Rewrite.
2043 (get_auxv_inferior_data, _initialize_auxv): Update.
2044
8c42777c
TT
20452019-05-08 Tom Tromey <tom@tromey.com>
2046
2047 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
2048 (symfile_debug_objfile_data_key): Change type.
2049 (symfile_debug_installed, debug_qf_has_symbols)
2050 (debug_qf_find_last_source_symtab)
2051 (debug_qf_forget_cached_source_info)
2052 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
2053 (debug_qf_print_stats, debug_qf_dump)
2054 (debug_qf_expand_symtabs_for_function)
2055 (debug_qf_expand_all_symtabs)
2056 (debug_qf_expand_symtabs_with_fullname)
2057 (debug_qf_map_matching_symbols)
2058 (debug_qf_expand_symtabs_matching)
2059 (debug_qf_find_pc_sect_compunit_symtab)
2060 (debug_qf_map_symbol_filenames)
2061 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
2062 (debug_sym_new_init, debug_sym_init, debug_sym_read)
2063 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
2064 (debug_sym_read_linetable, debug_sym_relocate): Update.
2065 (symfile_debug_free_objfile): Remove.
2066 (install_symfile_debug_logging, _initialize_symfile_debug):
2067 Update.
2068
5bfd760d
TT
20692019-05-08 Tom Tromey <tom@tromey.com>
2070
2071 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
2072 allocate_on_obstack.
2073 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
2074 (get_dwarf2_per_objfile): Update.
2075 (set_dwarf2_per_objfile): Remove.
2076 (dwarf2_has_info, dwarf2_get_section_info): Update.
2077 (dwarf2_free_objfile): Remove.
2078 (_initialize_dwarf2_read): Update.
2079
e85e19b4
TT
20802019-05-08 Tom Tromey <tom@tromey.com>
2081
2082 * auto-load.c (struct auto_load_pspace_info): Add destructor and
2083 initializers.
2084 <unsupported_script_warning_printed,
2085 script_not_found_warning_printed>: Now bool.
2086 (auto_load_pspace_data): Change type.
2087 (~auto_load_pspace_info): Rename from
2088 auto_load_pspace_data_cleanup.
2089 (get_auto_load_pspace_data, init_loaded_scripts_info)
2090 (clear_section_scripts, maybe_print_unsupported_script_warning)
2091 (maybe_print_script_not_found_warning, _initialize_auto_load):
2092 Update.
2093
f6aa7436
TT
20942019-05-08 Tom Tromey <tom@tromey.com>
2095
2096 * objfiles.c (objfile_pspace_info): Add destructor and
2097 initializers.
2098 (objfiles_pspace_data): Change type.
2099 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
2100 (get_objfile_pspace_data): Update.
2101 (objfiles_bfd_data): Change type.
2102 (get_objfile_bfd_data): Update.
2103 (objfile_bfd_data_free, _initialize_objfiles): Remove.
2104
6ae614f6
TT
21052019-05-08 Tom Tromey <tom@tromey.com>
2106
2107 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
2108 Change type.
2109 (get_catch_syscall_inferior_data): Update.
2110 (catch_syscall_inferior_data_cleanup): Remove.
2111 (_initialize_break_catch_syscall): Update.
2112
6509b8eb
TT
21132019-05-08 Tom Tromey <tom@tromey.com>
2114
2115 * inflow.c (struct terminal_info): Add destructor and
2116 initializers.
2117 (inflow_inferior_data): Change type.
2118 (~terminal_info): Rename from inflow_inferior_data_cleanup.
2119 (get_inflow_inferior_data, inflow_inferior_exit)
2120 (swap_terminal_info, _initialize_inflow): Update.
2121
35632941
TT
21222019-05-08 Tom Tromey <tom@tromey.com>
2123
2124 * target-dcache.c (target_dcache_cleanup): Remove.
2125 (target_dcache_aspace_key): Change type.
2126 (target_dcache_init_p, target_dcache_invalidate)
2127 (target_dcache_get, target_dcache_get_or_init)
2128 (_initialize_target_dcache): Update.
2129 * dcache.h (struct dcache_deleter): New.
2130
3017b94d
TT
21312019-05-08 Tom Tromey <tom@tromey.com>
2132
2133 * symtab.c (struct symbol_cache): Add destructor and
2134 initializers.
2135 (symbol_cache_key): Move. Change type.
2136 (make_symbol_cache, free_symbol_cache): Remove.
2137 (get_symbol_cache): Update.
2138 (symbol_cache_cleanup): Remove.
2139 (ALL_PSPACES, symbol_cache_flush)
2140 (maintenance_print_symbol_cache)
2141 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
2142 Update.
2143
a32ad8c5
TT
21442019-05-08 Tom Tromey <tom@tromey.com>
2145
2146 * symtab.c (struct main_info): Add destructor and initializers.
2147 (main_progspace_key): Move. Change type.
2148 (get_main_info): Update.
2149 (main_info_cleanup): Remove.
2150 (_initialize_symtab): Update.
2151
5f6e90a0
TT
21522019-05-08 Tom Tromey <tom@tromey.com>
2153
2154 * registry.h (DECLARE_REGISTRY): Define the _key class.
2155
1bd0c6e4
AB
21562019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2157
2158 * NEWS: Merge two 'New commands' sections.
2159
2228ef77
XR
21602019-05-08 Joel Brobecker <brobecker@adacore.com>
2161
2162 * ada-valprint.c (ada_val_print_gnat_array): Remove language
2163 parameter and use Ada language definition instead.
2164 (ada_val_print_ptr): Remove unused language parameter.
2165 (ada_val_print_num): Remove language parameter and use Ada language
2166 definition instead.
2167 (ada_val_print_enum, ada_val_print_flt): Remove unused language
2168 parameter.
2169 (ada_val_print_struct_union, ada_val_print_ref): Remove language
2170 parameter and use Ada language definition instead.
2171 (ada_val_print_1): Update all ada_val_print_xxx calls.
2172 Remove language parameter.
2173 (ada_val_print): Update ada_val_print_1 call.
2174
60fcc1c3
TT
21752019-05-08 Tom Tromey <tromey@adacore.com>
2176
2177 * remote.c (remote_hw_watchpoint_limit)
2178 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
2179 Now static.
2180
ed2b7c17
TT
21812019-05-08 Tom Tromey <tromey@adacore.com>
2182
2183 * maint.c (_initialize_maint_cmds): Move initialization code to
2184 remote.c.
2185 (watchdog, show_watchdog): Move to remote.c.
2186 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
2187 "watchdog" static.
2188 (_initialize_remote): Move initialization code from maint.c.
2189 * defs.h (watchdog): Don't declare.
2190
b0be6c91
TT
21912019-05-08 Tom Tromey <tromey@adacore.com>
2192
2193 * tui/tui-interp.c: Include main.h.
2194 * interps.c: Include main.h.
2195 * main.h (interpreter_p): Declare.
2196 * defs.h (interpreter_p): Don't declare.
2197
587ee17b
TT
21982019-05-08 Tom Tromey <tromey@adacore.com>
2199
2200 * dwarf2loc.c: Include dwarf2read.h.
2201 * defs.h (read_unsigned_leb128): Don't declare.
2202 * dwarf2read.h (read_unsigned_leb128): Declare.
2203
ca1df239
TT
22042019-05-08 Tom Tromey <tromey@adacore.com>
2205
2206 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
2207 method.
2208
99f20f08
TT
22092019-05-08 Tom Tromey <tromey@adacore.com>
2210
2211 * utils.c (fputs_maybe_filtered): Reset style after paging, even
2212 when no wrap column is set.
2213
80e55b13
TT
22142019-05-08 Tom Tromey <tromey@adacore.com>
2215
2216 * c-lang.c (c_get_string): Handle non-C-style arrays.
2217
9d3421af
TT
22182019-05-08 Tom Tromey <tromey@adacore.com>
2219
2220 * typeprint.c (print_offset_data::update): Print the bit offset,
2221 not the number of bits remaining.
2222
844333e2
TT
22232019-05-08 Tom Tromey <tromey@adacore.com>
2224
2225 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
2226 padding at end of comment.
2227
988915ee
TT
22282019-05-08 Tom Tromey <tromey@adacore.com>
2229
2230 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
2231 Compare main types.
2232
26bfd823
TT
22332019-05-06 Tom Tromey <tom@tromey.com>
2234
2235 * common/scoped_mmap.c: Include common-defs.h.
2236 * common/scoped_mmap.h: Don't include config.h.
2237
89055eaa
TT
22382019-05-04 Tom Tromey <tom@tromey.com>
2239
2240 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
2241 (struct aarch64_call_info): Add initializers.
2242 <si>: Now a std::vector.
2243 (pass_on_stack, aarch64_push_dummy_call): Update.
2244
5da01df5
TT
22452019-05-04 Simon Marchi <simon.marchi@efficios.com>
2246 Tom Tromey <tom@tromey.com>
2247
2248 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
2249 (ppc_threads): Now a std::vector. Now static.
2250 (hwdebug_find_thread_points_by_tid)
2251 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
2252 Update.
2253
fbdf05a1
TT
22542019-05-04 Tom Tromey <tom@tromey.com>
2255
2256 * arc-tdep.c (arc_tdesc_init): Return bool.
2257
06d16ec9
TT
22582019-05-04 Tom Tromey <tom@tromey.com>
2259
2260 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
2261 Use gdb_assert_not_reached.
2262
9c056022
TT
22632019-05-04 Tom Tromey <tom@tromey.com>
2264
2265 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
2266 "false".
2267
fa9c2a59
TT
22682019-05-04 Tom Tromey <tom@tromey.com>
2269
2270 * arc-tdep.c (arc_tdesc_init): Use bool.
2271
e2eb806a
TT
22722019-05-04 Tom Tromey <tom@tromey.com>
2273
2274 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
2275
6fe87677
TT
22762019-05-04 Tom Tromey <tom@tromey.com>
2277
2278 * cli/cli-cmds.c (valid_command_p): Return bool.
2279
7f008c9e
TT
22802019-05-04 Tom Tromey <tom@tromey.com>
2281
2282 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
2283 * command.h (valid_user_defined_cmd_name_p): Channge return type.
2284
b6484282
RT
22852019-05-04 Raul Tambre <raul@tambre.ee>
2286
2287 * python/lib/gdb/prompt.py (_ExtendedPrompt)
2288 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
2289 operator for comparison.
2290
af97b416
TT
22912019-05-04 Tom Tromey <tom@tromey.com>
2292
2293 * psymtab.c (psymbol_name_matches, match_partial_symbol)
2294 (lookup_partial_symbol, print_partial_symbols)
2295 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
2296 (psymbol_compare): Update.
2297 (add_psymbol_to_bcache): Clear the entire psymbol.
2298 (maintenance_check_psymtabs): Update.
2299 * psympriv.h (struct partial_symbol): Don't derive from
2300 general_symbol_info.
2301 <obj_section, unrelocated_address, address,
2302 set_unrelocated_address>: Update.
2303 <ginfo>: New member.
2304 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2305 (debug_names::write_psymbols): Update.
2306
9d6d4be8
TV
23072019-05-04 Tom de Vries <tdevries@suse.de>
2308
2309 * contrib/cc-with-tweaks.sh: Support -n arg.
2310
66452beb
PW
23112019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2312
2313 * corelow.c (core_target::detach): Ensure frame cache and
2314 register caches are cleared.
2315 inferior.c (exit_inferior_1): Likewise.
2316
bde09ab7
TT
23172019-05-03 Sandra Loosemore <sandra@codesourcery.com>
2318 Tom Tromey <tom@tromey.com>
2319
2320 * dictionary.c (collate_pending_symbols_by_language): Remove
2321 "struct" from foreach.
2322 * symtab.c (lookup_global_symbol_from_objfile)
2323 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
2324 foreach.
2325 * ser-tcp.c (net_open): Remove "struct" from foreach.
2326 * objfiles.c (objfile_relocate, objfile_rebase)
2327 (objfile_has_symbols): Remove "struct" from foreach.
2328 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
2329 from foreach.
2330 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
2331 foreach.
2332 * darwin-nat.c (thread_info_from_private_thread_info): Remove
2333 "struct" from foreach.
2334 * ada-lang.c (create_excep_cond_exprs)
2335 (ada_exception_catchpoint_cond_string): Remove "struct" from
2336 foreach.
2337
222a8d25
TT
23382019-05-03 Tom Tromey <tromey@adacore.com>
2339
2340 * ada-exp.y (convert_char_literal): Check suffix of each
2341 enumerator.
2342
fcd60b84
DP
23432019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
2344
2345 PR ada/21406:
2346 * ada-exp.y (yywrap): Don't define.
2347 * ada-lex.l (%option): Add noyywrap
2348 (yywrap): Remove.
2349
5f2459c2
EZ
23502019-05-03 Eli Zaretskii <eliz@gnu.org>
2351
353ea2d1
EZ
2352 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
2353 _WIN32_WINNT to the XP level, unless already defined to a higher
2354 level.
2355
2356 * unittests/parse-connection-spec-selftests.c:
2357 * ser-tcp.c:
2358 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
2359 override.
2360
5f2459c2
EZ
2361 * symfile.c (find_separate_debug_file): Remove colon from the
2362 drive spec of DOS/Windows file names of the target, so that the
2363 file name produced from DEBUGDIR and the target's directory will
2364 be valid on DOS/Windows systems.
2365
80062eb9
AB
23662019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
2367
2368 * rust-lang.c (val_print_struct): Handle printing structures
2369 containing strings.
2370
b8c05e85
TT
23712019-05-02 Tom Tromey <tromey@adacore.com>
2372
2373 * valarith.c (_initialize_valarith): Remove.
2374
4504bbde
TT
23752019-05-01 Tom Tromey <tromey@adacore.com>
2376
2377 * ada-lang.c (ada_value_primitive_field): Treat more fields as
2378 bitfields.
2379
d48e62f4
TT
23802019-05-01 Tom Tromey <tromey@adacore.com>
2381
2382 * ada-lang.c (ada_value_assign): Correctly compute starting offset
2383 for big-endian copies.
2384
15f18d14
AT
23852019-04-30 Ali Tamur <tamur@google.com>
2386 * gdb/dwarf2read.c (read_3_bytes): New declaration.
2387 (read_attribute_value): Added DW_FORM_strx1-4 cases.
2388 (read_3_bytes): New function.
2389
ab4ee614
JB
23902019-04-30 Joel Brobecker <brobecker@adacore.com>
2391
2392 * windows-nat.c (main_thread_id): Delete.
2393 (handle_output_debug_string): Replace main_thread_id by
2394 current_event.dwThreadId.
2395 (fake_create_process): Likewise.
2396 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
2397 Do not set main_thread_id.
2398 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
2399 current_event.dwThreadId.
2400 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
2401
8ed5b76e
JB
24022019-04-30 Joel Brobecker <brobecker@adacore.com>
2403
2404 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
2405 Use current_event.dwThreadId instead of main_thread_id.
2406
2ff0a947
TT
24072019-04-30 Tom Tromey <tromey@adacore.com>
2408
2409 * ada-lang.c (ada_lookup_simple_minsyms): New function.
2410 (create_excep_cond_exprs): Iterate over program spaces.
2411 (ada_exception_catchpoint_cond_string): Examine all minimal
2412 symbols for exception types.
2413
a776957c
TT
24142019-04-30 Tom Tromey <tromey@adacore.com>
2415
2416 PR c++/24470:
2417 * dwarf2read.c (process_structure_scope): Handle case where type
2418 has template parameters but no symbol was created.
2419
bc68014d
AB
24202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2421 Chris January <chris.january@arm.com>
2422
2423 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
2424 qualifier.
2425 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
2426
f1fdc960
AB
24272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2428
2429 * f-typeprint.c (f_print_type): Update rules for printing
2430 whitespace.
2431 (f_type_print_varspec_suffix): Likewise.
2432
bf7a4de1
AB
24332019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2434 Chris January <chris.january@arm.com>
2435
2436 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
2437 function arguments.
2438
bbe75b9d
AB
24392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * f-lang.c (build_fortran_types): Change name of void type to
2442 lower case.
2443 * f-typeprint.c (f_type_print_base): Print the name of the void
2444 type, rather than a fixed string.
2445 * f-valprint.c (f_decorations): Use lower case void string.
2446
1db455a7
AB
24472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2448 Chris January <chris.january@arm.com>
2449
2450 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
2451 types for Fortran.
2452
b6d03bb2
AB
24532019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2454 Chris January <chris.january@arm.com>
2455 David Lecomber <david.lecomber@arm.com>
2456
2457 * f-exp.y (BINOP_INTRINSIC): New token.
2458 (exp): New parser rule handling BINOP_INTRINSIC.
2459 (f77_keywords): Add new builtin procedures.
2460 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
2461 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
2462 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
2463 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
2464 (print_unop_subexp_f): New function.
2465 (print_binop_subexp_f): New function.
2466 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
2467 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
2468 (dump_subexp_body_f): Likewise.
2469 (operator_check_f): Likewise.
2470 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
2471 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
2472
83228e93
AB
24732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2474
2475 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
2476 UNOP_KIND.
2477 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
2478 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
2479 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
2480 (operator_length_f): New fuction.
2481 (print_subexp_f): New function.
2482 (op_name_f): New function.
2483 (dump_subexp_body_f): New function.
2484 (operator_check_f): New function.
2485 (exp_descriptor_f): Replace standard expression handling functions
2486 with new functions.
2487 * gdb/fortran-operator.def: New file.
2488 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
2489 * gdb/std-operator.def: Remove UNOP_KIND.
2490
6fdcd7cc
AB
24912019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2492
2493 * std-operator.def: Remove unbalanced, stray double quote
2494 character.
2495
2e62ab40
AB
24962019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2497 Chris January <chris.january@arm.com>
2498 Daniel Everett <daniel.everett@arm.com>
2499 Nick Forrington <nick.forrington@arm.com>
2500 Richard Bunt <richard.bunt@arm.com>
2501
2502 * cp-valprint.c (cp_print_value_fields): Allow an additional level
2503 of depth when printing anonymous structs or unions.
2504 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2505 Don't print either the top-level value, or the children if the
2506 max-depth is exceeded.
2507 (ppscm_print_children): When printing the key of a map, allow one
2508 extra level of depth.
2509 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
2510 print either the top-level value, or the children if the max-depth
2511 is exceeded.
2512 (print_children): When printing the key of a map, allow one extra
2513 level of depth.
2514 * python/py-value.c (valpy_format_string): Add max_depth keyword.
2515 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
2516 (user_print_options): Initialise max_depth field.
2517 (val_print_scalar_or_string_type_p): New function.
2518 (val_print): Check to see if the max depth has been reached.
2519 (val_print_check_max_depth): Define new function.
2520 (show_print_max_depth): New function.
2521 (_initialize_valprint): Add 'print max-depth' option.
2522 * valprint.h (struct value_print_options) <max_depth>: New field.
2523 (val_print_check_max_depth): Declare new function.
2524 * NEWS: Document new feature.
2525
4be290b2
AB
25262019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * ada-lang.c (ada_language_defn): Initialise new field.
2529 * c-lang.c (c_is_string_type_p): New function.
2530 (c_language_defn): Initialise new field.
2531 (cplus_language_defn): Initialise new field.
2532 (asm_language_defn): Initialise new field.
2533 (minimal_language_defn): Initialise new field.
2534 * c-lang.h (c_is_string_type_p): Declare new function.
2535 * d-lang.c (d_language_defn): Initialise new field.
2536 * f-lang.c (f_is_string_type_p): New function.
2537 (f_language_defn): Initialise new field.
2538 * go-lang.c (go_is_string_type_p): New function.
2539 (go_language_defn): Initialise new field.
2540 * language.c (default_is_string_type_p): New function.
2541 (unknown_language_defn): Initialise new field.
2542 (auto_language_defn): Initialise new field.
2543 * language.h (struct language_defn) <la_is_string_type_p>: New
2544 member variable.
2545 (default_is_string_type_p): Declare new function.
2546 * m2-lang.c (m2_language_defn): Initialise new field.
2547 * objc-lang.c (objc_language_defn): Initialise new field.
2548 * opencl-lang.c (opencl_language_defn): Initialise new field.
2549 * p-lang.c (pascal_is_string_type_p): New function.
2550 (pascal_language_defn): Initialise new field.
2551 * rust-lang.c (rust_is_string_type_p): New function.
2552 (rust_language_defn): Initialise new field.
2553
721b08c6
AB
25542019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2555
2556 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
2557 New field.
2558 * ada-lang.c (ada_language_defn): Initialise new field.
2559 * c-lang.c (c_language_defn): Likewise.
2560 (cplus_language_defn): Likewise.
2561 (asm_language_defn): Likewise.
2562 (minimal_language_defn): Likewise.
2563 * d-lang.c (d_language_defn): Likewise.
2564 * f-lang.c (f_language_defn): Likewise.
2565 * go-lang.c (go_language_defn): Likewise.
2566 * language.c (unknown_language_defn): Likewise.
2567 (auto_language_defn): Likewise.
2568 * m2-lang.c (m2_language_defn): Likewise.
2569 * objc-lang.c (objc_language_defn): Likewise.
2570 * opencl-lang.c (opencl_language_defn): Likewise.
2571 * p-lang.c (pascal_language_defn): Likewise.
2572 * rust-lang.c (rust_language_defn): Likewise.
2573
fc913e53
AB
25742019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * ada-lang.c (ada_is_character_type): Change return type to bool.
2577 (ada_is_string_type): Likewise.
2578 * ada-lang.h (ada_is_character_type): Update declaration
2579 (ada_is_string_type): Likewise.
2580
fa731fa0
PW
25812019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2582
2583 Support style in 'frame|thread apply'
2584
2585 * gdbcmd.h (execute_command_to_string): New term_out parameter.
2586 * record.c (record_start, record_stop): Update callers of
2587 execute_command_to_string with false.
2588 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
2589 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
2590 methods.
2591 (class string_file): New constructor with term_out parameter.
2592 Override methods term_out and can_emit_style_escape. New member
2593 term_out.
2594 (class stdio_file): Override can_emit_style_escape.
2595 (class tee_file): Override term_out and can_emit_style_escape.
2596 * utils.h (can_emit_style_escape): Remove.
2597 * utils.c (can_emit_style_escape): Likewise.
2598 Update all callers of can_emit_style_escape (SOMESTREAM) to
2599 SOMESTREAM->can_emit_style_escape.
2600 * source-cache.c (source_cache::get_source_lines): Likewise.
2601 * stack.c (frame_apply_command_count): Call execute_command_to_string
2602 passing the term_out characteristic of the current gdb_stdout.
2603 * thread.c (thr_try_catch_cmd): Likewise.
2604 * top.c (execute_command_to_string): pass term_out parameter
2605 to construct the string_file for the command output.
2606 * ui-file.c (term_cli_styling): New function (most code moved
2607 from utils.c can_emit_style_escape).
2608 (string_file::string_file, string_file::can_emit_style_escape,
2609 stdio_file::can_emit_style_escape, tee_file::term_out,
2610 tee_file::can_emit_style_escape): New functions.
2611
136afab8
PW
26122019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2613
2614 * NEWS: Mention the new set|show may-call-functions.
2615 * infcall.c (may_call_functions_p): New variable.
2616 (show_may_call_functions_p): New function.
2617 (call_function_by_hand_dummy): Throws an error if not
2618 may-call-functions.
2619 (_initialize_infcall): Call add_setshow_boolean_cmd for
2620 may-call-functions.
2621
725cbb63
KS
26222019-04-25 Keith Seitz <keiths@redhat.com>
2623
2624 PR c++/24367
2625 * cp-support.c (inspect_type): Don't attempt substitutions
2626 of symbol with the same name.
2627
3d1cbb78
TT
26282019-04-25 Tom Tromey <tromey@adacore.com>
2629
2630 PR gdb/24475:
2631 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
2632 static.
2633
94aeb44b
TT
26342019-04-25 Tom Tromey <tromey@adacore.com>
2635
2636 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
2637 rvalue reference.
2638 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
2639 (gdb_xml_parser::parse): Use std::move.
2640 * python/python-internal.h (gdbpy_convert_exception): Take a const
2641 reference.
2642 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
2643 std::move.
2644 * python/py-utils.c (gdbpy_convert_exception): Take a const
2645 reference.
2646 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
2647 Use std::move.
2648 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2649 Use std::move.
2650 * mi/mi-main.c (mi_print_exception): Take a const reference.
2651 * main.c (handle_command_errors): Take a const reference.
2652 * linespec.c (parse_linespec): Use std::move.
2653 * infcall.c (run_inferior_call): Use std::move.
2654 (call_function_by_hand_dummy): Use std::move.
2655 * exec.c (try_open_exec_file): Use std::move.
2656 * exceptions.h (exception_print, exception_fprintf)
2657 (exception_print_same): Update.
2658 * exceptions.c (print_exception, exception_print)
2659 (exception_fprintf, exception_print_same): Change parameters to
2660 const reference.
2661 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
2662 * common/new-op.c: Use std::move.
2663 * common/common-exceptions.h (struct gdb_exception): Add move
2664 constructor.
2665 (struct gdb_exception_error, struct gdb_exception_quit, struct
2666 gdb_quit_bad_alloc): Change constructor to move constructor.
2667 (throw_exception): Change parameter to rvalue reference.
2668 * common/common-exceptions.c (throw_exception): Take rvalue
2669 reference.
2670 * cli/cli-interp.c (safe_execute_command): Use std::move.
2671 * breakpoint.c (insert_bp_location, location_to_sals): Use
2672 std::move.
2673
680d7fd5
TT
26742019-04-25 Tom Tromey <tromey@adacore.com>
2675
2676 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
2677 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
2678 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
2679 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
2680 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
2681 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
2682 guile/scm-value.c: Use unpack.
2683 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
2684 gdbscm_gdb_exception.
2685 (gdbscm_throw_gdb_exception): Likewise.
2686 (struct gdbscm_gdb_exception): New.
2687 (unpack): New function.
2688 (gdbscm_wrap): Use unpack.
2689
c6fdd8b2
TT
26902019-04-25 Tom Tromey <tromey@adacore.com>
2691
2692 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
2693 (gdb_rl_callback_handler): Use std::move.
2694 * common/common-exceptions.h (struct gdb_exception): Add move
2695 assignment operator.
2696 (throw_exception_sjlj): Change "exception" to const reference.
2697 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
2698 (throw_exception_sjlj): Change "exception" to const reference.
2699
cc06b668
TT
27002019-04-25 Tom Tromey <tromey@adacore.com>
2701
2702 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
2703 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
2704 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
2705 Update.
2706 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2707 Update.
2708 * mi/mi-interp.c (mi_interp::exec): Update.
2709 * linespec.c (parse_linespec): Update.
2710 * infcall.c (run_inferior_call): Update.
2711 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
2712 * guile/scm-symbol.c (gdbscm_lookup_symbol)
2713 (gdbscm_lookup_global_symbol): Update.
2714 * guile/scm-param.c (gdbscm_parameter_value): Update.
2715 * guile/scm-frame.c (gdbscm_frame_read_register)
2716 (gdbscm_frame_read_var): Update.
2717 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2718 * exec.c (try_open_exec_file): Update.
2719 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
2720 (gdb_rl_callback_handler): Update.
2721 * common/common-exceptions.h (exception_none): Don't declare.
2722 * common/common-exceptions.c (exception_none): Don't define.
2723 (struct catcher) <exception>: Update.
2724 * cli/cli-interp.c (safe_execute_command): Update.
2725 * breakpoint.c (insert_bp_location, location_to_sals): Update.
2726
cf532bd1
AT
27272019-04-25 Ali Tamur <tamur@google.com>
2728
2729 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
2730 (read_attribute_value): Likewise.
2731 (dwarf2_read_addr_index): Update comment.
2732 (read_str_index): Add DW_FORM_strx.
2733 (dwarf2_string_attr): Likewise.
2734 (dwarf2_const_value_attr): Likewise.
2735 (dump_die_shallow): Likewise.
2736 (dwarf2_fetch_constant_bytes): Likewise.
2737 (skip_form_bytes): Likewise.
2738 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
2739
82433e3e
SDJ
27402019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2741
2742 PR corefiles/11608
2743 PR corefiles/18187
2744 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
2745 OFFSET. Verify if current mapping contains an ELF header.
2746 (linux_find_memory_regions_full): Adjust call to
2747 dump_mapping_p.
2748
723adb65
SL
27492019-04-25 Sandra Loosemore <sandra@codesourcery.com>
2750 Kang Li <kanglictf@gmail.com>
2751
2752 PR gdb/21600
2753
2754 * dwarf2-frame.c (read_initial_length): Be consistent about using
2755 unsigned representation of length.
2756 (decode_frame_entry_1): Likewise. Check for wraparound of
2757 end pointer as well as buffer overflow.
2758
596179f7
SDJ
27592019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2760
2761 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
2762 "vq".
2763
a59240a4
TT
27642019-04-24 Tom Tromey <tromey@adacore.com>
2765
2766 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
2767
f872fdbb
AB
27682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * s12z-tdep.c (s12z_unwind_pc): Delete.
2771 (s12z_unwind_sp): Delete.
2772 (s12z_gdbarch_init): Don't register deleted functions with
2773 gdbarch.
2774
b614e6f3
AB
27752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2776
2777 * rl78-tdep.c (rl78_unwind_sp): Delete.
2778 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
2779
14faed38
AB
27802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2781
2782 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
2783 (xstormy16_unwind_pc): Delete.
2784 (xstormy16_dummy_id): Delete.
2785 (xstormy16_gdbarch_init): Don't register deleted functions with
2786 gdbarch.
2787
541aad8a
AB
27882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2789
2790 * vax-tdep.c (vax_unwind_pc): Delete.
2791 (vax_gdbarch_init): Don't register deleted function with gdbarch.
2792
29222070
AB
27932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2794
2795 * v850-tdep.c (v850_unwind_sp): Delete.
2796 (v850_unwind_pc): Delete.
2797 (v850_dummy_id): Delete.
2798 (v850_gdbarch_init): Don't register deleted functions with
2799 gdbarch.
2800
0f534d76
AB
28012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2802
2803 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
2804 (tilegx_unwind_pc): Delete.
2805 (tilegx_unwind_dummy_id): Delete.
2806 (tilegx_gdbarch_init): Don't register deleted functions with
2807 gdbarch.
2808
1ba7b7f9
AB
28092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2810
2811 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
2812 (tic6x_dummy_id): Delete.
2813 (tic6x_gdbarch_init): Don't register deleted functions with
2814 gdbarch.
2815
d31f262c
AB
28162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2817
2818 * sparc-tdep.c (sparc_unwind_pc): Delete.
2819 (sparc32_gdbarch_init): Don't register deleted function with
2820 gdbarch.
2821
6d14d64d
AB
28222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2823
2824 * sh-tdep.c (sh_unwind_sp): Delete.
2825 (sh_unwind_pc): Delete.
2826 (sh_dummy_id): Delete.
2827 (sh_gdbarch_init): Don't register deleted functions with
2828 gdbarch.
2829
a40dde9d
AB
28302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2831
2832 * score-tdep.c (score_unwind_sp): Delete.
2833 (score_unwind_pc): Delete.
2834 (score_dummy_id): Delete.
2835 (score_gdbarch_init): Don't register deleted functions with
2836 gdbarch.
2837
47c47d69
AB
28382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2839
2840 * rx-tdep.c (rx_unwind_pc): Delete.
2841 (rx_unwind_sp): Delete.
2842 (rx_dummy_id): Delete.
2843 (rx_gdbarch_init): Don't register deleted functions with
2844 gdbarch. Update comment.
2845
833a4480
AB
28462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
2849 (rs6000_dummy_id): Delete.
2850 (rs6000_gdbarch_init): Don't register deleted functions with
2851 gdbarch.
2852
3f2cef49
AB
28532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2854
2855 * or1k-tdep.c (or1k_dummy_id): Delete.
2856 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
2857
96acf884
AB
28582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2859
2860 * nios2-tdep.c (nios2_dummy_id): Delete.
2861 (nios2_unwind_sp): Delete.
2862 (nios2_gdbarch_init): Don't register deleted functions with
2863 gdbarch.
2864
ca0ab0aa
AB
28652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2866
2867 * nds32-tdep.c (nds32_dummy_id): Delete.
2868 (nds32_unwind_pc): Delete.
2869 (nds32_unwind_sp): Delete.
2870 (nds32_gdbarch_init): Don't register deleted functions with
2871 gdbarch.
2872
c8259044
AB
28732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2874
2875 * msp430-tdep.c (msp430_unwind_pc): Delete.
2876 (msp430_unwind_sp): Delete.
2877 (msp430_dummy_id): Delete.
2878 (msp430_gdbarch_init): Don't register deleted functions with
2879 gdbarch.
2880
27f113c8
AB
28812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2882
2883 * moxie-tdep.c (moxie_unwind_sp): Delete.
2884 (moxie_unwind_pc): Delete.
2885 (moxie_dummy_id): Delete.
2886 (moxie_gdbarch_init): Don't register deleted functions with
2887 gdbarch.
2888
aee6c3cd
AB
28892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2890
2891 * mn10300-tdep.c (mn10300_dummy_id): Delete.
2892 (mn10300_unwind_pc): Delete.
2893 (mn10300_unwind_sp): Delete.
2894 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
2895 mn10300_unwind_sp.
2896 (mn10300_frame_unwind_init): Don't register deleted functions with
2897 gdbarch.
2898
8e2b5aea
AB
28992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2900
2901 * mep-tdep.c (mep_unwind_pc): Delete.
2902 (mep_unwind_sp): Delete.
2903 (mep_dummy_id): Delete.
2904 (mep_gdbarch_init): Don't register deleted functions with
2905 gdbarch.
2906
43cf3ede
AB
29072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2908
2909 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
2910 (m68hc11_unwind_sp): Delete.
2911 (m68hc11_gdbarch_init): Don't register deleted functions with
2912 gdbarch.
2913
5e79b7bb
AB
29142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * m32r-tdep.c (m32r_unwind_sp): Delete.
2917 (m32r_unwind_pc): Delete.
2918 (m32r_dummy_id): Delete.
2919 (m32r_gdbarch_init): Don't register deleted functions with
2920 gdbarch.
2921
89b268d8
AB
29222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2923
2924 * m32c-tdep.c (m32c_unwind_pc): Delete.
2925 (m32c_unwind_sp): Delete.
2926 (m32c_dummy_id): Delete.
2927 (m32c_gdbarch_init): Don't register deleted functions with
2928 gdbarch.
2929
946c28d2
AB
29302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2931
2932 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
2933 (lm32_unwind_pc): Delete.
2934 (lm32_dummy_id): Delete.
2935 (lm32_gdbarch_init): Don't register deleted functions with
2936 gdbarch.
2937
bf12844a
AB
29382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2939
2940 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
2941 (iq2000_unwind_pc): Delete.
2942 (iq2000_dummy_id): Delete.
2943 (iq2000_gdbarch_init): Don't register deleted functions with
2944 gdbarch.
2945
ecbc06d2
AB
29462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2947
2948 * nds32-tdep.c (nds32_type_align): Delete.
2949 (nds32_push_dummy_call): Use type_align instead.
2950
030197b4
AB
29512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2952
2953 * arm-tdep.c (arm_type_align): Only handle vector override case.
2954 (arm_push_dummy_call): Use type_align.
2955 (arm_gdbarch_init): Register arm_type_align gdbarch function.
2956
b907456c
AB
29572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2958
2959 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
2960 case.
2961 (pass_on_stack): Use type_align.
2962 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
2963 function.
2964
9e97ba43
TT
29652019-04-23 Tom Tromey <tromey@adacore.com>
2966
2967 * dwarf2read.c (line_header::file_name_at): Remove unused
2968 overload.
2969
6892f601
TV
29702019-04-23 Tom de Vries <tdevries@suse.de>
2971
2972 PR gdb/24438
2973 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
2974 invocation.
2975
336d760d
AT
2976
29772019-03-27 Ali Tamur <tamur@google.com>
2978
2979 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
2980 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
2981 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
2982 (dwarf_expr_context::get_addr_index): Likewise
2983 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
2984 (symbol_needs_eval_context::get_addr_index): Likewise
2985 (disassemble_dwarf_expression): Add DW_OP_addrx
2986 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
2987 (read_cutu_die_from_dwo): Update comment
2988 (skip_one_die): Add DW_FORM_addrx
2989 (read_attribute_value): Likewise
2990 (var_decode_location): Add DW_OP_addrx
2991 (dwarf2_const_value_attr): Add DW_FORM_addrx
2992 (dump_die_shallow): Likewise
2993 (dwarf2_fetch_constant_bytes): Likewise
2994 (decode_locdesc): Add DW_OP_addrx
2995 (skip_form_bytes): Add DW_FORM_addrx
2996
ad9d13f8
AT
29972019-04-22 Ali Tamur <tamur@google.com>
2998
2999 * MAINTAINERS (Write After Approval): Add self.
3000
d70cc3ba
SM
30012019-04-22 Simon Marchi <simon.marchi@efficios.com>
3002
3003 * solib-svr4.c (get_svr4_info): Add pspace parameter.
3004 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
3005 (open_symbol_file_object): Likewise.
3006 (svr4_default_sos): Add info parameter.
3007 (svr4_read_so_list): Likewise.
3008 (svr4_current_sos_direct): Adjust functions calls to pass down
3009 info.
3010 (svr4_current_sos_1): Add info parameter.
3011 (svr4_current_sos): Call get_svr4_info, pass info down to
3012 svr4_current_sos_1.
3013 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
3014 get_svr4_info.
3015 (svr4_in_dynsym_resolve_code): Pass current_program_space to
3016 get_svr4_info.
3017 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
3018 to get_svr4_info.
3019 (probes_table_remove_objfile_probes): Likewise.
3020 (register_solib_event_probe): Add info parameter.
3021 (solist_update_incremental): Pass info parameter down to
3022 svr4_read_so_list.
3023 (disable_probes_interface): Add info parameter.
3024 (svr4_handle_solib_event): Pass current_program_space to
3025 get_svr4_info. Adjust disable_probes_interface cleanup.
3026 (svr4_create_probe_breakpoints): Add info parameter, pass it
3027 down to register_solib_event_probe.
3028 (svr4_create_solib_event_breakpoints): Add info parameter,
3029 pass it down to svr4_create_probe_breakpoints.
3030 (enable_break): Pass info down to
3031 svr4_create_solib_event_breakpoints.
3032 (svr4_solib_create_inferior_hook): Pass current_program_space to
3033 get_svr4_info.
3034 (svr4_clear_solib): Likewise.
3035
7905fc35
PA
30362019-04-22 Pedro Alves <palves@redhat.com>
3037
3038 * solib-svr4.c (svr4_free_objfile_observer): New.
3039 (probe_and_action::objfile): New field.
3040 (probes_table_htab_remove_objfile_probes)
3041 (probes_table_remove_objfile_probes): New functions.
3042 (register_solib_event_probe): Add 'objfile' parameter. Store it
3043 in the new probe_and_action. Don't store the probe in 'lookup'.
3044 (svr4_create_probe_breakpoints): Pass objfile to
3045 register_solib_event_probe.
3046 (_initialize_svr4_solib): Register a free_objfile observer.
3047
fb881986
TT
30482019-04-19 Tom Tromey <tom@tromey.com>
3049
3050 * common/queue.h: Remove.
3051
8732db6c
TT
30522019-04-19 Tom Tromey <tom@tromey.com>
3053
3054 * event-loop.c: Don't include "common/queue.h".
3055
97dfbadd
TT
30562019-04-19 Tom Tromey <tom@tromey.com>
3057
3058 * remote.c (remote_target): Use delete.
3059 * remote-notif.h: Include <list>, not "common/queue.h".
3060 (notif_client_p): Remove typedef.
3061 (remote_notif_state): Add constructor, destructor, initializer.
3062 <notif_queue>: Now a std::list.
3063 (remote_notif_state_xfree): Don't declare.
3064 * remote-notif.c (remote_notif_process, handle_notification)
3065 (remote_notif_state_allocate): Update.
3066 (~remote_notif_state): Rename from remote_notif_state_xfree.
3067
cf250e36
TT
30682019-04-19 Tom Tromey <tom@tromey.com>
3069
3070 * symfile.c (reread_symbols): Update.
3071 * objfiles.c (objfile_register_static_link)
3072 (objfile_lookup_static_link): Update
3073 (~objfile) Don't delete static_links.
3074 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
3075
61f4b350
TT
30762019-04-19 Tom Tromey <tom@tromey.com>
3077
3078 * type-stack.h (struct type_stack) <insert>: Constify string.
3079 * type-stack.c (type_stack::insert): Constify string.
3080 * gdbtypes.h (lookup_template_type): Update.
3081 (address_space_name_to_int): Update.
3082 * gdbtypes.c (address_space_name_to_int): Make space_identifier
3083 const.
3084 (lookup_template_type): Make name const.
3085 * c-exp.y: Update rules.
3086 (lex_one_token, classify_name, classify_inner_name)
3087 (c_print_token): Update.
3088 * p-exp.y: Update rules.
3089 (yylex): Update.
3090 * f-exp.y: Update rules.
3091 (yylex): Update.
3092 * d-exp.y: Update rules.
3093 (lex_one_token, classify_name, classify_inner_name): Update.
3094 * parse.c (write_dollar_variable, copy_name): Return std::string.
3095 * parser-defs.h (copy_name): Change return type.
3096 * m2-exp.y: Update rules.
3097 (yylex): Update.
3098 * go-exp.y (lex_one_token): Update.
3099 Update rules.
3100 (classify_unsafe_function, classify_packaged_name)
3101 (classify_name, yylex): Update.
3102
189b8c2e
ST
31032019-04-19 Sergei Trofimovich <siarheit@google.com>
3104
3105 * configure.ac: add --enable-source-highlight switch.
3106 * configure: Regenerate.
3107 * top.c (print_gdb_version): plumb --enable-source-highlight
3108 status to "show configuration".
3109
8ecb59f8
TT
31102019-04-19 Tom Tromey <tromey@adacore.com>
3111
3112 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
3113 Check ADA_TYPE_P.
3114 (empty_record, ada_template_to_fixed_record_type_1)
3115 (template_to_static_fixed_type)
3116 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
3117 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
3118 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
3119 macros.
3120
62160ec9
TT
31212019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
3122
3123 PR symtab/24423:
3124 * source.c (print_source_lines_base): Advance "iter" when a
3125 control character is seen.
3126
f2ae8bc8
PW
31272019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3128
3129 * inferior.h (struct infcall_suspend_state_deleter):
3130 Catch exception in destructor to avoid crash.
3131
d563b953
PW
31322019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3133
3134 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
3135 close to the add_com "shell".
3136
dc34c897
TT
31372019-04-18 Tom Tromey <tromey@adacore.com>
3138
3139 * process-stratum-target.h (class process_stratum_target)
3140 <stratum>: Add "final".
3141
a12e5744
TT
31422019-04-17 Tom Tromey <tromey@adacore.com>
3143
3144 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
3145 against nullptr before use.
3146
a7e559cc
AH
31472019-04-17 Alan Hayward <alan.hayward@arm.com>
3148
3149 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
3150
c01660c6
AB
31512019-04-17 Jim Wilson <jimw@sifive.com>
3152 Andrew Burgess <andrew.burgess@embecosm.com>
3153
3154 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
3155 code read might fail, assume 4-byte breakpoint in that case.
3156
4aa866af
LS
31572019-04-15 Leszek Swirski <leszeks@google.com>
3158
3159 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
3160 rather than a hand-rolled POD check when checking for forced MEMORY
3161 classification.
3162
48574d91
AH
31632019-04-15 Alan Hayward <alan.hayward@arm.com>
3164
3165 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
3166 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
3167 function.
3168 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
3169 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
3170 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
3171 declaration.
3172
4da037ef
AH
31732019-04-15 Alan Hayward <alan.hayward@arm.com>
3174
3175 * aarch64-linux-nat.c
3176 (aarch64_linux_nat_target::thread_architecture): Add override.
3177 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
3178 each VQ.
3179
ccb8d7e8
AH
31802019-04-15 Alan Hayward <alan.hayward@arm.com>
3181
3182 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
3183
35add35e
AB
31842019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
3187 target types of size 96-bits, add some additional comments, and
3188 check that the builtin type we found was the correct size.
3189
51196bbc
EZ
31902019-04-12 Eli Zaretskii <eliz@gnu.org>
3191
3192 * utils.c (prompt_for_continue): Don't restore the styling at the
3193 end, as applied_style has the wrong value. This fixes styling in
3194 long lists of file names that are interrupted by the "Continue?"
3195 prompt.
3196
62253a61
AB
31972019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
3200 * c-lang.c (c_language_defn): Likewise.
3201 (cplus_language_defn): Likewise.
3202 (asm_language_defn): Likewise.
3203 (minimal_language_defn): Likewise.
3204 * d-lang.c (d_language_defn): Likewise.
3205 * f-lang.c (f_language_defn): Likewise.
3206 * go-lang.c (go_language_defn): Likewise.
3207 * language.c (unknown_language_defn): Likewise.
3208 (auto_language_defn): Likewise.
3209 * language.h (struct language_defn): Remove la_magic field.
3210 (LANG_MAGIC): Delete.
3211 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
3212 * objc-lang.c (objc_language_defn): Likewise.
3213 * opencl-lang.c (opencl_language_defn): Likewise.
3214 * p-lang.c (pascal_language_defn): Likewise.
3215 * rust-lang.c (rust_language_defn): Likewise.
3216
a9158a86
AB
32172019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 * riscv-tdep.c (riscv_type_align): New function.
3220 (riscv_type_alignment): Delete.
3221 (riscv_arg_location): Use 'type_align'.
3222 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
3223
41077b66
AB
32242019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * gdbtypes.c (type_align): A struct with no non-static fields also
3227 has alignment of 1.
3228
9f0272f8
AB
32292019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
3230
3231 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
3232 component to 0.
3233 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
3234 member.
3235 (riscv_struct_info::analyse): New implementation using new
3236 analyse_inner member function.
3237 (riscv_struct_info::field_offset): New member function.
3238 (riscv_struct_info::m_offsets): New member variable.
3239 (riscv_struct_info::analyse_inner): New private member function,
3240 takes the old implementation of riscv_struct_info::analyse but
3241 extended to track field offsets.
3242 (riscv_call_arg_struct): Update the struct folding special cases
3243 to handle cases where empty C++ structs, which are non-zero
3244 length, are found.
3245 (riscv_arg_location): Initialise the length of each location, a
3246 non-zero length now indicates the location is in use.
3247 (riscv_push_dummy_call): Allow for the first location having a
3248 non-zero offset when setting up arguments.
3249 (riscv_return_value): Likewise, but for return values.
3250
02cf60c7
TT
32512019-04-11 Tom Tromey <tromey@adacore.com>
3252
3253 * utils.c (internal_vproblem): Make "msg" const.
3254
68811f8f
AH
32552019-04-11 Alan Hayward <alan.hayward@arm.com>
3256
3257 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
3258 * trad-frame.c (trad_frame_reset_saved_regs): New function.
3259 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
3260 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
3261
3f52fdbc
KB
32622019-04-10 Kevin Buettner <kevinb@redhat.com>
3263
3264 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
3265 function.
3266 (fill_gregset): Call amd64_linux_collect_native_gregset instead
3267 of amd64_collect_native_gregset.
3268 (amd64_linux_nat_target::store_registers): Likewise.
3269
e9ad22ee
TT
32702019-04-10 Tom Tromey <tom@tromey.com>
3271
3272 * symtab.c (lookup_global_symbol_from_objfile)
3273 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
3274 * objfiles.h (class separate_debug_iterator): New.
3275 (class separate_debug_range): New.
3276 (struct objfile) <separate_debug_objfiles>: New method.
3277 (objfile_separate_debug_iterate): Don't declare.
3278 * objfiles.c (separate_debug_iterator::operator++): Rename from
3279 objfile_separate_debug_iterate.
3280 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
3281 iterator.
3282 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
3283 iterator.
3284
ee371134
TT
32852019-04-10 Tom Tromey <tom@tromey.com>
3286
3287 * symfile.c (reread_symbols): Remove old comment.
3288 * objfiles.c (free_all_objfiles): Fix a typo.
3289
bf227d61
TT
32902019-04-10 Tom Tromey <tom@tromey.com>
3291
3292 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
3293 * minsyms.c (lookup_minimal_symbol): Use foreach.
3294 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3295 (lookup_minimal_symbol_solib_trampoline): Likewise.
3296 * symfile.c (reread_symbols): Use foreach.
3297
8dc433a0
TT
32982019-04-09 Ivan Begert <ivanbegert@gmail.com>
3299 Tom Tromey <tromey@adacore.com>
3300
3301 PR rust/24414:
3302 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
3303 (rust_lex_int_test): Change "value" to be LONGEST.
3304 (rust_lex_tests): Add test for long integer literal.
3305
9ab8741a
TT
33062019-04-09 Tom Tromey <tromey@adacore.com>
3307
3308 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
3309 to bool.
3310 (extended_remote_target::attach): Update.
3311 (remote_target::remote_notice_new_inferior): Update.
3312 (remote_target::add_current_inferior_and_thread): Update.
3313 * inferior.c (exit_inferior_1): Use "false".
3314 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
3315
e242fd12
SM
33162019-04-09 Simon Marchi <simon.marchi@efficios.com>
3317
9ca1957f 3318 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
3319 the "start" command.
3320
2b0c8b01
KB
33212019-04-08 Kevin Buettner <kevinb@redhat.com>
3322
3323 * python/py-inferior.c (infpy_thread_from_thread_handle):
3324 Adjust comments to reflect renaming of thread_from_thread_handle
3325 to thread_from_handle. Adjust keywords. Fix type error message.
3326 (inferior_object_methods): Add thread_from_handle. Retain
3327 thread_from_thread_handle, but mark it as deprecated.
3328
50a82723
KB
33292019-04-08 Kevin Buettner <kevinb@redhat.com>
3330
3331 * gdbthread.h (find_thread_by_handle): Revise declaration.
3332 * thread.c (find_thread_by_handle): Likewise. Adjust
3333 implementation too.
3334 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
3335 support for buffer objects as handles.
3336
cf63b016
KB
33372019-04-08 Kevin Buettner <kevinb@redhat.com>
3338
3339 * python/py-infthread.c (thpy_thread_handle): New function.
3340 (thread_object_methods): Register thpy_thread_handle.
3341
3d6c6204
KB
33422019-04-08 Kevin Buettner <kevinb@redhat.com>
3343
3344 * gdbthread.h (thread_to_thread_handle): Declare.
3345 * thread.c (gdbtypes.h): Include.
3346 (thread_to_thread_handle): New function.
3347
3348 * target.h (struct target_ops): Add thread_info_to_thread_handle.
3349 (target_thread_info_to_thread_handle): Declare.
3350 * target.c (target_thread_info_to_thread_handle): New function.
3351 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
3352 * target-delegates.c: Regenerate.
3353
3354 * linux-thread-db.c (class thread_db_target): Add method
3355 thread_info_to_thread_handle.
3356 (thread_db_target::thread_info_to_thread_handle): Define.
3357 * remote.c (class remote_target): Add new method
3358 thread_info_to_thread_handle.
3359 (remote_target::thread_info_to_thread_handle): Define.
3360
56be6ea8
PA
33612019-04-08 Pedro Alves <palves@redhat.com>
3362
3363 * common/common-exceptions.c (throw_exception): Don't create
3364 named object to throw; throw directly.
3365 (throw_it): Likewise. Don't initialize gdb_exception::message
3366 here, with new; pass FMT and AP to the ctor instead.
3367 * common/common-exceptions.h: Include <string>.
3368 (gdb_exception::gdb_exception(enum return_reason, enum errors,
3369 const char *, va_list)): New ctor. Use std::make_shared.
3370 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
3371 errors)): Delete.
3372 (gdb_exception_error::gdb_exception_error(enum errors, const char
3373 *, va_list)): New.
3374 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
3375 Add assertion.
3376 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
3377 errors)): Delete.
3378 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
3379 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
3380 Add assertion.
3381
eedc3f4f
TT
33822019-04-08 Tom Tromey <tom@tromey.com>
3383
3384 * valops.c (value_rtti_indirect_type): Replace throw_exception
3385 with throw.
3386 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
3387 with throw.
3388 * thread.c (thr_try_catch_cmd): Replace throw_exception with
3389 throw.
3390 * target.c (target_translate_tls_address): Replace throw_exception
3391 with throw.
3392 * stack.c (frame_apply_command_count): Replace throw_exception
3393 with throw.
3394 * solib-spu.c (append_ocl_sos): Replace throw_exception with
3395 throw.
3396 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
3397 with throw.
3398 * rs6000-tdep.c (rs6000_frame_cache)
3399 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
3400 * remote.c: Replace throw_exception with throw.
3401 * record-full.c (record_full_message, record_full_wait_1)
3402 (record_full_restore): Replace throw_exception with throw.
3403 * record-btrace.c:
3404 (get_thread_current_frame_id, record_btrace_start_replaying)
3405 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
3406 (cmd_record_btrace_start): Replace throw_exception with throw.
3407 * parse.c (parse_exp_in_context_1): Replace throw_exception with
3408 throw.
3409 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
3410 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
3411 * linespec.c:
3412 (find_linespec_symbols): Replace throw_exception with throw.
3413 * infrun.c (displaced_step_prepare, resume): Replace
3414 throw_exception with throw.
3415 * infcmd.c (post_create_inferior): Replace throw_exception with
3416 throw.
3417 * inf-loop.c (inferior_event_handler): Replace throw_exception
3418 with throw.
3419 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
3420 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
3421 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
3422 (get_prev_frame_always, get_frame_pc_if_available)
3423 (get_frame_address_in_block_if_available, get_frame_language):
3424 Replace throw_exception with throw.
3425 * frame-unwind.c (frame_unwind_try_unwinder): Replace
3426 throw_exception with throw.
3427 * eval.c (fetch_subexp_value, evaluate_var_value)
3428 (evaluate_funcall, evaluate_subexp_standard): Replace
3429 throw_exception with throw.
3430 * dwarf2loc.c (call_site_find_chain)
3431 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
3432 Replace throw_exception with throw.
3433 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
3434 with throw.
3435 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
3436 throw.
3437 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
3438 * completer.c (complete_line_internal): Replace throw_exception
3439 with throw.
3440 * compile/compile-object-run.c (compile_object_run): Replace
3441 throw_exception with throw.
3442 * cli/cli-script.c (process_next_line): Replace throw_exception
3443 with throw.
3444 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
3445 (btrace_enable, btrace_maint_update_pt_packets): Replace
3446 throw_exception with throw.
3447 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
3448 throw_exception with throw.
3449 * break-catch-throw.c (re_set_exception_catchpoint): Replace
3450 throw_exception with throw.
3451 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
3452 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
3453 * aarch64-tdep.c (aarch64_make_prologue_cache)
3454 (aarch64_make_stub_cache): Replace throw_exception with throw.
3455
26003a20
TT
34562019-04-08 Tom Tromey <tom@tromey.com>
3457
3458 * common/common-exceptions.c (throw_exception): Rename from
3459 throw_exception_cxx. Remove old copy. Make argument const.
3460 (throw_it): Create and throw exception objects directly.
3461 * common/common-exceptions.h (throw_exception): Make argument
3462 const.
3463 (struct gdb_exception_error): Add constructor.
3464 (struct gdb_exception_quit): Add constructor.
3465
d272eb37
TT
34662019-04-08 Tom Tromey <tom@tromey.com>
3467
3468 * common/common-exceptions.h (exception_rethrow): Don't declare.
3469 (TRY_SJLJ): Update comment.
3470 (TRY, CATCH, END_CATCH): Remove.
3471 * common/common-exceptions.c (exception_rethrow): Remove.
3472
230d2906
TT
34732019-04-08 Tom Tromey <tom@tromey.com>
3474
3475 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
3476 Remove.
3477 (gdb_exception_error): Rename from
3478 gdb_exception_RETURN_MASK_ERROR.
3479 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
3480 (gdb_quit_bad_alloc): Update.
3481 * aarch64-tdep.c: Update.
3482 * ada-lang.c: Update.
3483 * ada-typeprint.c: Update.
3484 * ada-valprint.c: Update.
3485 * amd64-tdep.c: Update.
3486 * arch-utils.c: Update.
3487 * break-catch-throw.c: Update.
3488 * breakpoint.c: Update.
3489 * btrace.c: Update.
3490 * c-varobj.c: Update.
3491 * cli/cli-cmds.c: Update.
3492 * cli/cli-interp.c: Update.
3493 * cli/cli-script.c: Update.
3494 * common/common-exceptions.c: Update.
3495 * common/new-op.c: Update.
3496 * common/selftest.c: Update.
3497 * compile/compile-c-symbols.c: Update.
3498 * compile/compile-cplus-symbols.c: Update.
3499 * compile/compile-object-load.c: Update.
3500 * compile/compile-object-run.c: Update.
3501 * completer.c: Update.
3502 * corelow.c: Update.
3503 * cp-abi.c: Update.
3504 * cp-support.c: Update.
3505 * cp-valprint.c: Update.
3506 * darwin-nat.c: Update.
3507 * disasm-selftests.c: Update.
3508 * dtrace-probe.c: Update.
3509 * dwarf-index-cache.c: Update.
3510 * dwarf-index-write.c: Update.
3511 * dwarf2-frame-tailcall.c: Update.
3512 * dwarf2-frame.c: Update.
3513 * dwarf2loc.c: Update.
3514 * dwarf2read.c: Update.
3515 * eval.c: Update.
3516 * event-loop.c: Update.
3517 * event-top.c: Update.
3518 * exec.c: Update.
3519 * f-valprint.c: Update.
3520 * fbsd-tdep.c: Update.
3521 * frame-unwind.c: Update.
3522 * frame.c: Update.
3523 * gdbtypes.c: Update.
3524 * gnu-v3-abi.c: Update.
3525 * guile/guile-internal.h: Update.
3526 * guile/scm-block.c: Update.
3527 * guile/scm-breakpoint.c: Update.
3528 * guile/scm-cmd.c: Update.
3529 * guile/scm-disasm.c: Update.
3530 * guile/scm-frame.c: Update.
3531 * guile/scm-lazy-string.c: Update.
3532 * guile/scm-math.c: Update.
3533 * guile/scm-param.c: Update.
3534 * guile/scm-ports.c: Update.
3535 * guile/scm-pretty-print.c: Update.
3536 * guile/scm-symbol.c: Update.
3537 * guile/scm-symtab.c: Update.
3538 * guile/scm-type.c: Update.
3539 * guile/scm-value.c: Update.
3540 * i386-linux-tdep.c: Update.
3541 * i386-tdep.c: Update.
3542 * inf-loop.c: Update.
3543 * infcall.c: Update.
3544 * infcmd.c: Update.
3545 * infrun.c: Update.
3546 * jit.c: Update.
3547 * language.c: Update.
3548 * linespec.c: Update.
3549 * linux-fork.c: Update.
3550 * linux-nat.c: Update.
3551 * linux-tdep.c: Update.
3552 * linux-thread-db.c: Update.
3553 * main.c: Update.
3554 * mi/mi-cmd-break.c: Update.
3555 * mi/mi-cmd-stack.c: Update.
3556 * mi/mi-interp.c: Update.
3557 * mi/mi-main.c: Update.
3558 * objc-lang.c: Update.
3559 * p-valprint.c: Update.
3560 * parse.c: Update.
3561 * ppc-linux-tdep.c: Update.
3562 * printcmd.c: Update.
3563 * python/py-arch.c: Update.
3564 * python/py-breakpoint.c: Update.
3565 * python/py-cmd.c: Update.
3566 * python/py-finishbreakpoint.c: Update.
3567 * python/py-frame.c: Update.
3568 * python/py-framefilter.c: Update.
3569 * python/py-gdb-readline.c: Update.
3570 * python/py-inferior.c: Update.
3571 * python/py-infthread.c: Update.
3572 * python/py-lazy-string.c: Update.
3573 * python/py-linetable.c: Update.
3574 * python/py-objfile.c: Update.
3575 * python/py-param.c: Update.
3576 * python/py-prettyprint.c: Update.
3577 * python/py-progspace.c: Update.
3578 * python/py-record-btrace.c: Update.
3579 * python/py-record.c: Update.
3580 * python/py-symbol.c: Update.
3581 * python/py-type.c: Update.
3582 * python/py-unwind.c: Update.
3583 * python/py-utils.c: Update.
3584 * python/py-value.c: Update.
3585 * python/python.c: Update.
3586 * record-btrace.c: Update.
3587 * record-full.c: Update.
3588 * remote-fileio.c: Update.
3589 * remote.c: Update.
3590 * riscv-tdep.c: Update.
3591 * rs6000-aix-tdep.c: Update.
3592 * rs6000-tdep.c: Update.
3593 * rust-exp.y: Update.
3594 * rust-lang.c: Update.
3595 * s390-tdep.c: Update.
3596 * selftest-arch.c: Update.
3597 * solib-dsbt.c: Update.
3598 * solib-frv.c: Update.
3599 * solib-spu.c: Update.
3600 * solib-svr4.c: Update.
3601 * solib.c: Update.
3602 * sparc64-linux-tdep.c: Update.
3603 * stack.c: Update.
3604 * symfile-mem.c: Update.
3605 * symmisc.c: Update.
3606 * target.c: Update.
3607 * thread.c: Update.
3608 * top.c: Update.
3609 * tracefile-tfile.c: Update.
3610 * tui/tui.c: Update.
3611 * typeprint.c: Update.
3612 * unittests/cli-utils-selftests.c: Update.
3613 * unittests/parse-connection-spec-selftests.c: Update.
3614 * valops.c: Update.
3615 * valprint.c: Update.
3616 * value.c: Update.
3617 * varobj.c: Update.
3618 * windows-nat.c: Update.
3619 * x86-linux-nat.c: Update.
3620 * xml-support.c: Update.
3621
a70b8144
TT
36222019-04-08 Tom Tromey <tom@tromey.com>
3623
3624 * xml-support.c: Use C++ exception handling.
3625 * x86-linux-nat.c: Use C++ exception handling.
3626 * windows-nat.c: Use C++ exception handling.
3627 * varobj.c: Use C++ exception handling.
3628 * value.c: Use C++ exception handling.
3629 * valprint.c: Use C++ exception handling.
3630 * valops.c: Use C++ exception handling.
3631 * unittests/parse-connection-spec-selftests.c: Use C++ exception
3632 handling.
3633 * unittests/cli-utils-selftests.c: Use C++ exception handling.
3634 * typeprint.c: Use C++ exception handling.
3635 * tui/tui.c: Use C++ exception handling.
3636 * tracefile-tfile.c: Use C++ exception handling.
3637 * top.c: Use C++ exception handling.
3638 * thread.c: Use C++ exception handling.
3639 * target.c: Use C++ exception handling.
3640 * symmisc.c: Use C++ exception handling.
3641 * symfile-mem.c: Use C++ exception handling.
3642 * stack.c: Use C++ exception handling.
3643 * sparc64-linux-tdep.c: Use C++ exception handling.
3644 * solib.c: Use C++ exception handling.
3645 * solib-svr4.c: Use C++ exception handling.
3646 * solib-spu.c: Use C++ exception handling.
3647 * solib-frv.c: Use C++ exception handling.
3648 * solib-dsbt.c: Use C++ exception handling.
3649 * selftest-arch.c: Use C++ exception handling.
3650 * s390-tdep.c: Use C++ exception handling.
3651 * rust-lang.c: Use C++ exception handling.
3652 * rust-exp.y: Use C++ exception handling.
3653 * rs6000-tdep.c: Use C++ exception handling.
3654 * rs6000-aix-tdep.c: Use C++ exception handling.
3655 * riscv-tdep.c: Use C++ exception handling.
3656 * remote.c: Use C++ exception handling.
3657 * remote-fileio.c: Use C++ exception handling.
3658 * record-full.c: Use C++ exception handling.
3659 * record-btrace.c: Use C++ exception handling.
3660 * python/python.c: Use C++ exception handling.
3661 * python/py-value.c: Use C++ exception handling.
3662 * python/py-utils.c: Use C++ exception handling.
3663 * python/py-unwind.c: Use C++ exception handling.
3664 * python/py-type.c: Use C++ exception handling.
3665 * python/py-symbol.c: Use C++ exception handling.
3666 * python/py-record.c: Use C++ exception handling.
3667 * python/py-record-btrace.c: Use C++ exception handling.
3668 * python/py-progspace.c: Use C++ exception handling.
3669 * python/py-prettyprint.c: Use C++ exception handling.
3670 * python/py-param.c: Use C++ exception handling.
3671 * python/py-objfile.c: Use C++ exception handling.
3672 * python/py-linetable.c: Use C++ exception handling.
3673 * python/py-lazy-string.c: Use C++ exception handling.
3674 * python/py-infthread.c: Use C++ exception handling.
3675 * python/py-inferior.c: Use C++ exception handling.
3676 * python/py-gdb-readline.c: Use C++ exception handling.
3677 * python/py-framefilter.c: Use C++ exception handling.
3678 * python/py-frame.c: Use C++ exception handling.
3679 * python/py-finishbreakpoint.c: Use C++ exception handling.
3680 * python/py-cmd.c: Use C++ exception handling.
3681 * python/py-breakpoint.c: Use C++ exception handling.
3682 * python/py-arch.c: Use C++ exception handling.
3683 * printcmd.c: Use C++ exception handling.
3684 * ppc-linux-tdep.c: Use C++ exception handling.
3685 * parse.c: Use C++ exception handling.
3686 * p-valprint.c: Use C++ exception handling.
3687 * objc-lang.c: Use C++ exception handling.
3688 * mi/mi-main.c: Use C++ exception handling.
3689 * mi/mi-interp.c: Use C++ exception handling.
3690 * mi/mi-cmd-stack.c: Use C++ exception handling.
3691 * mi/mi-cmd-break.c: Use C++ exception handling.
3692 * main.c: Use C++ exception handling.
3693 * linux-thread-db.c: Use C++ exception handling.
3694 * linux-tdep.c: Use C++ exception handling.
3695 * linux-nat.c: Use C++ exception handling.
3696 * linux-fork.c: Use C++ exception handling.
3697 * linespec.c: Use C++ exception handling.
3698 * language.c: Use C++ exception handling.
3699 * jit.c: Use C++ exception handling.
3700 * infrun.c: Use C++ exception handling.
3701 * infcmd.c: Use C++ exception handling.
3702 * infcall.c: Use C++ exception handling.
3703 * inf-loop.c: Use C++ exception handling.
3704 * i386-tdep.c: Use C++ exception handling.
3705 * i386-linux-tdep.c: Use C++ exception handling.
3706 * guile/scm-value.c: Use C++ exception handling.
3707 * guile/scm-type.c: Use C++ exception handling.
3708 * guile/scm-symtab.c: Use C++ exception handling.
3709 * guile/scm-symbol.c: Use C++ exception handling.
3710 * guile/scm-pretty-print.c: Use C++ exception handling.
3711 * guile/scm-ports.c: Use C++ exception handling.
3712 * guile/scm-param.c: Use C++ exception handling.
3713 * guile/scm-math.c: Use C++ exception handling.
3714 * guile/scm-lazy-string.c: Use C++ exception handling.
3715 * guile/scm-frame.c: Use C++ exception handling.
3716 * guile/scm-disasm.c: Use C++ exception handling.
3717 * guile/scm-cmd.c: Use C++ exception handling.
3718 * guile/scm-breakpoint.c: Use C++ exception handling.
3719 * guile/scm-block.c: Use C++ exception handling.
3720 * guile/guile-internal.h: Use C++ exception handling.
3721 * gnu-v3-abi.c: Use C++ exception handling.
3722 * gdbtypes.c: Use C++ exception handling.
3723 * frame.c: Use C++ exception handling.
3724 * frame-unwind.c: Use C++ exception handling.
3725 * fbsd-tdep.c: Use C++ exception handling.
3726 * f-valprint.c: Use C++ exception handling.
3727 * exec.c: Use C++ exception handling.
3728 * event-top.c: Use C++ exception handling.
3729 * event-loop.c: Use C++ exception handling.
3730 * eval.c: Use C++ exception handling.
3731 * dwarf2read.c: Use C++ exception handling.
3732 * dwarf2loc.c: Use C++ exception handling.
3733 * dwarf2-frame.c: Use C++ exception handling.
3734 * dwarf2-frame-tailcall.c: Use C++ exception handling.
3735 * dwarf-index-write.c: Use C++ exception handling.
3736 * dwarf-index-cache.c: Use C++ exception handling.
3737 * dtrace-probe.c: Use C++ exception handling.
3738 * disasm-selftests.c: Use C++ exception handling.
3739 * darwin-nat.c: Use C++ exception handling.
3740 * cp-valprint.c: Use C++ exception handling.
3741 * cp-support.c: Use C++ exception handling.
3742 * cp-abi.c: Use C++ exception handling.
3743 * corelow.c: Use C++ exception handling.
3744 * completer.c: Use C++ exception handling.
3745 * compile/compile-object-run.c: Use C++ exception handling.
3746 * compile/compile-object-load.c: Use C++ exception handling.
3747 * compile/compile-cplus-symbols.c: Use C++ exception handling.
3748 * compile/compile-c-symbols.c: Use C++ exception handling.
3749 * common/selftest.c: Use C++ exception handling.
3750 * common/new-op.c: Use C++ exception handling.
3751 * cli/cli-script.c: Use C++ exception handling.
3752 * cli/cli-interp.c: Use C++ exception handling.
3753 * cli/cli-cmds.c: Use C++ exception handling.
3754 * c-varobj.c: Use C++ exception handling.
3755 * btrace.c: Use C++ exception handling.
3756 * breakpoint.c: Use C++ exception handling.
3757 * break-catch-throw.c: Use C++ exception handling.
3758 * arch-utils.c: Use C++ exception handling.
3759 * amd64-tdep.c: Use C++ exception handling.
3760 * ada-valprint.c: Use C++ exception handling.
3761 * ada-typeprint.c: Use C++ exception handling.
3762 * ada-lang.c: Use C++ exception handling.
3763 * aarch64-tdep.c: Use C++ exception handling.
3764
3d6e9d23
TT
37652019-04-08 Tom Tromey <tom@tromey.com>
3766
3767 * xml-support.c (gdb_xml_parser::parse): Update.
3768 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3769 * value.c (show_convenience): Update.
3770 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
3771 (test_parse_flags_qcs): Update.
3772 * thread.c (thr_try_catch_cmd): Update.
3773 * target.c (target_translate_tls_address): Update.
3774 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3775 (info_frame_command_core, frame_apply_command_count): Update.
3776 * rust-exp.y (rust_lex_exception_test): Update.
3777 * riscv-tdep.c (riscv_print_one_register_info): Update.
3778 * remote.c (remote_target::enable_btrace): Update.
3779 * record-btrace.c (record_btrace_enable_warn): Update.
3780 * python/py-utils.c (gdbpy_convert_exception): Update.
3781 * printcmd.c (do_one_display, print_variable_and_value): Update.
3782 * mi/mi-main.c (mi_print_exception): Update.
3783 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
3784 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3785 * linux-nat.c (linux_nat_target::attach): Update.
3786 * linux-fork.c (class scoped_switch_fork_info): Update.
3787 * infrun.c (displaced_step_prepare): Update.
3788 * infcall.c (call_function_by_hand_dummy): Update.
3789 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
3790 * gnu-v3-abi.c (print_one_vtable): Update.
3791 * frame.c (get_prev_frame_always): Update.
3792 * f-valprint.c (info_common_command_for_block): Update.
3793 * exec.c (try_open_exec_file): Update.
3794 * exceptions.c (print_exception, exception_print)
3795 (exception_fprintf, exception_print_same): Update.
3796 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
3797 * dwarf-index-cache.c (index_cache::store)
3798 (index_cache::lookup_gdb_index): Update.
3799 * darwin-nat.c (maybe_cache_shell): Update.
3800 * cp-valprint.c (cp_print_value_fields): Update.
3801 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
3802 (gcc_cplus_symbol_address): Update.
3803 * compile/compile-c-symbols.c (gcc_convert_symbol)
3804 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
3805 * common/selftest.c: Update.
3806 * common/common-exceptions.h (struct gdb_exception) <message>: Now
3807 a std::string.
3808 (exception_try_scope_entry, exception_try_scope_exit): Don't
3809 declare.
3810 (struct exception_try_scope): Remove.
3811 (TRY): Don't use exception_try_scope.
3812 (struct gdb_exception): Add constructor, operator=.
3813 <what>: New method.
3814 (struct gdb_exception_RETURN_MASK_ALL)
3815 (struct gdb_exception_RETURN_MASK_ERROR)
3816 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
3817 (struct gdb_quit_bad_alloc): Update.
3818 * common/common-exceptions.c (exception_none): Change
3819 initializer.
3820 (struct catcher) <state, exception>: Initialize inline.
3821 <prev>: Remove member.
3822 (current_catcher): Remove.
3823 (catchers): New global.
3824 (exceptions_state_mc_init): Simplify.
3825 (catcher_pop): Remove.
3826 (exceptions_state_mc, exceptions_state_mc_catch): Update.
3827 (try_scope_depth, exception_try_scope_entry)
3828 (exception_try_scope_exit): Remove.
3829 (throw_exception_sjlj): Update.
3830 (exception_messages, exception_messages_size): Remove.
3831 (throw_it): Simplify.
3832 (gdb_exception_sliced_copy): Remove.
3833 (throw_exception_cxx): Update.
3834 * cli/cli-script.c (script_from_file): Update.
3835 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
3836 Update.
3837 * ada-valprint.c (ada_val_print): Update.
3838 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
3839 (create_excep_cond_exprs): Update.
3840
c5c10118
TT
38412019-04-08 Tom Tromey <tom@tromey.com>
3842
3843 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
3844 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
3845 (TRY, CATCH, END_CATCH): Remove some definitions.
3846 * common/common-exceptions.c: Don't use GDB_XCPT.
3847 (catcher_list_size): Remove.
3848 (throw_exception, throw_it): Simplify.
3849
4de283e4
TT
38502019-04-05 Tom Tromey <tom@tromey.com>
3851
3852 Revert the header-sorting patch.
3853 * ft32-tdep.c: Revert.
3854 * frv-tdep.c: Revert.
3855 * frv-linux-tdep.c: Revert.
3856 * frame.c: Revert.
3857 * frame-unwind.c: Revert.
3858 * frame-base.c: Revert.
3859 * fork-child.c: Revert.
3860 * findvar.c: Revert.
3861 * findcmd.c: Revert.
3862 * filesystem.c: Revert.
3863 * filename-seen-cache.h: Revert.
3864 * filename-seen-cache.c: Revert.
3865 * fbsd-tdep.c: Revert.
3866 * fbsd-nat.h: Revert.
3867 * fbsd-nat.c: Revert.
3868 * f-valprint.c: Revert.
3869 * f-typeprint.c: Revert.
3870 * f-lang.c: Revert.
3871 * extension.h: Revert.
3872 * extension.c: Revert.
3873 * extension-priv.h: Revert.
3874 * expprint.c: Revert.
3875 * exec.h: Revert.
3876 * exec.c: Revert.
3877 * exceptions.c: Revert.
3878 * event-top.c: Revert.
3879 * event-loop.c: Revert.
3880 * eval.c: Revert.
3881 * elfread.c: Revert.
3882 * dwarf2read.h: Revert.
3883 * dwarf2read.c: Revert.
3884 * dwarf2loc.c: Revert.
3885 * dwarf2expr.h: Revert.
3886 * dwarf2expr.c: Revert.
3887 * dwarf2-frame.c: Revert.
3888 * dwarf2-frame-tailcall.c: Revert.
3889 * dwarf-index-write.h: Revert.
3890 * dwarf-index-write.c: Revert.
3891 * dwarf-index-common.c: Revert.
3892 * dwarf-index-cache.h: Revert.
3893 * dwarf-index-cache.c: Revert.
3894 * dummy-frame.c: Revert.
3895 * dtrace-probe.c: Revert.
3896 * disasm.h: Revert.
3897 * disasm.c: Revert.
3898 * disasm-selftests.c: Revert.
3899 * dictionary.c: Revert.
3900 * dicos-tdep.c: Revert.
3901 * demangle.c: Revert.
3902 * dcache.h: Revert.
3903 * dcache.c: Revert.
3904 * darwin-nat.h: Revert.
3905 * darwin-nat.c: Revert.
3906 * darwin-nat-info.c: Revert.
3907 * d-valprint.c: Revert.
3908 * d-namespace.c: Revert.
3909 * d-lang.c: Revert.
3910 * ctf.c: Revert.
3911 * csky-tdep.c: Revert.
3912 * csky-linux-tdep.c: Revert.
3913 * cris-tdep.c: Revert.
3914 * cris-linux-tdep.c: Revert.
3915 * cp-valprint.c: Revert.
3916 * cp-support.c: Revert.
3917 * cp-namespace.c: Revert.
3918 * cp-abi.c: Revert.
3919 * corelow.c: Revert.
3920 * corefile.c: Revert.
3921 * continuations.c: Revert.
3922 * completer.h: Revert.
3923 * completer.c: Revert.
3924 * complaints.c: Revert.
3925 * coffread.c: Revert.
3926 * coff-pe-read.c: Revert.
3927 * cli-out.h: Revert.
3928 * cli-out.c: Revert.
3929 * charset.c: Revert.
3930 * c-varobj.c: Revert.
3931 * c-valprint.c: Revert.
3932 * c-typeprint.c: Revert.
3933 * c-lang.c: Revert.
3934 * buildsym.c: Revert.
3935 * buildsym-legacy.c: Revert.
3936 * build-id.h: Revert.
3937 * build-id.c: Revert.
3938 * btrace.c: Revert.
3939 * bsd-uthread.c: Revert.
3940 * breakpoint.h: Revert.
3941 * breakpoint.c: Revert.
3942 * break-catch-throw.c: Revert.
3943 * break-catch-syscall.c: Revert.
3944 * break-catch-sig.c: Revert.
3945 * blockframe.c: Revert.
3946 * block.c: Revert.
3947 * bfin-tdep.c: Revert.
3948 * bfin-linux-tdep.c: Revert.
3949 * bfd-target.c: Revert.
3950 * bcache.c: Revert.
3951 * ax-general.c: Revert.
3952 * ax-gdb.h: Revert.
3953 * ax-gdb.c: Revert.
3954 * avr-tdep.c: Revert.
3955 * auxv.c: Revert.
3956 * auto-load.c: Revert.
3957 * arm-wince-tdep.c: Revert.
3958 * arm-tdep.c: Revert.
3959 * arm-symbian-tdep.c: Revert.
3960 * arm-pikeos-tdep.c: Revert.
3961 * arm-obsd-tdep.c: Revert.
3962 * arm-nbsd-tdep.c: Revert.
3963 * arm-nbsd-nat.c: Revert.
3964 * arm-linux-tdep.c: Revert.
3965 * arm-linux-nat.c: Revert.
3966 * arm-fbsd-tdep.c: Revert.
3967 * arm-fbsd-nat.c: Revert.
3968 * arm-bsd-tdep.c: Revert.
3969 * arch-utils.c: Revert.
3970 * arc-tdep.c: Revert.
3971 * arc-newlib-tdep.c: Revert.
3972 * annotate.h: Revert.
3973 * annotate.c: Revert.
3974 * amd64-windows-tdep.c: Revert.
3975 * amd64-windows-nat.c: Revert.
3976 * amd64-tdep.c: Revert.
3977 * amd64-sol2-tdep.c: Revert.
3978 * amd64-obsd-tdep.c: Revert.
3979 * amd64-obsd-nat.c: Revert.
3980 * amd64-nbsd-tdep.c: Revert.
3981 * amd64-nbsd-nat.c: Revert.
3982 * amd64-nat.c: Revert.
3983 * amd64-linux-tdep.c: Revert.
3984 * amd64-linux-nat.c: Revert.
3985 * amd64-fbsd-tdep.c: Revert.
3986 * amd64-fbsd-nat.c: Revert.
3987 * amd64-dicos-tdep.c: Revert.
3988 * amd64-darwin-tdep.c: Revert.
3989 * amd64-bsd-nat.c: Revert.
3990 * alpha-tdep.c: Revert.
3991 * alpha-obsd-tdep.c: Revert.
3992 * alpha-nbsd-tdep.c: Revert.
3993 * alpha-mdebug-tdep.c: Revert.
3994 * alpha-linux-tdep.c: Revert.
3995 * alpha-linux-nat.c: Revert.
3996 * alpha-bsd-tdep.c: Revert.
3997 * alpha-bsd-nat.c: Revert.
3998 * aix-thread.c: Revert.
3999 * agent.c: Revert.
4000 * addrmap.c: Revert.
4001 * ada-varobj.c: Revert.
4002 * ada-valprint.c: Revert.
4003 * ada-typeprint.c: Revert.
4004 * ada-tasks.c: Revert.
4005 * ada-lang.c: Revert.
4006 * aarch64-tdep.c: Revert.
4007 * aarch64-ravenscar-thread.c: Revert.
4008 * aarch64-newlib-tdep.c: Revert.
4009 * aarch64-linux-tdep.c: Revert.
4010 * aarch64-linux-nat.c: Revert.
4011 * aarch64-fbsd-tdep.c: Revert.
4012 * aarch64-fbsd-nat.c: Revert.
4013 * aarch32-linux-nat.c: Revert.
4014
d55e5aa6
TT
40152019-04-05 Tom Tromey <tom@tromey.com>
4016
4017 * ft32-tdep.c: Sort headers.
4018 * frv-tdep.c: Sort headers.
4019 * frv-linux-tdep.c: Sort headers.
4020 * frame.c: Sort headers.
4021 * frame-unwind.c: Sort headers.
4022 * frame-base.c: Sort headers.
4023 * fork-child.c: Sort headers.
4024 * findvar.c: Sort headers.
4025 * findcmd.c: Sort headers.
4026 * filesystem.c: Sort headers.
4027 * filename-seen-cache.h: Sort headers.
4028 * filename-seen-cache.c: Sort headers.
4029 * fbsd-tdep.c: Sort headers.
4030 * fbsd-nat.h: Sort headers.
4031 * fbsd-nat.c: Sort headers.
4032 * f-valprint.c: Sort headers.
4033 * f-typeprint.c: Sort headers.
4034 * f-lang.c: Sort headers.
4035 * extension.h: Sort headers.
4036 * extension.c: Sort headers.
4037 * extension-priv.h: Sort headers.
4038 * expprint.c: Sort headers.
4039 * exec.h: Sort headers.
4040 * exec.c: Sort headers.
4041 * exceptions.c: Sort headers.
4042 * event-top.c: Sort headers.
4043 * event-loop.c: Sort headers.
4044 * eval.c: Sort headers.
4045 * elfread.c: Sort headers.
4046 * dwarf2read.h: Sort headers.
4047 * dwarf2read.c: Sort headers.
4048 * dwarf2loc.c: Sort headers.
4049 * dwarf2expr.h: Sort headers.
4050 * dwarf2expr.c: Sort headers.
4051 * dwarf2-frame.c: Sort headers.
4052 * dwarf2-frame-tailcall.c: Sort headers.
4053 * dwarf-index-write.h: Sort headers.
4054 * dwarf-index-write.c: Sort headers.
4055 * dwarf-index-common.c: Sort headers.
4056 * dwarf-index-cache.h: Sort headers.
4057 * dwarf-index-cache.c: Sort headers.
4058 * dummy-frame.c: Sort headers.
4059 * dtrace-probe.c: Sort headers.
4060 * disasm.h: Sort headers.
4061 * disasm.c: Sort headers.
4062 * disasm-selftests.c: Sort headers.
4063 * dictionary.c: Sort headers.
4064 * dicos-tdep.c: Sort headers.
4065 * demangle.c: Sort headers.
4066 * dcache.h: Sort headers.
4067 * dcache.c: Sort headers.
4068 * darwin-nat.h: Sort headers.
4069 * darwin-nat.c: Sort headers.
4070 * darwin-nat-info.c: Sort headers.
4071 * d-valprint.c: Sort headers.
4072 * d-namespace.c: Sort headers.
4073 * d-lang.c: Sort headers.
4074 * ctf.c: Sort headers.
4075 * csky-tdep.c: Sort headers.
4076 * csky-linux-tdep.c: Sort headers.
4077 * cris-tdep.c: Sort headers.
4078 * cris-linux-tdep.c: Sort headers.
4079 * cp-valprint.c: Sort headers.
4080 * cp-support.c: Sort headers.
4081 * cp-namespace.c: Sort headers.
4082 * cp-abi.c: Sort headers.
4083 * corelow.c: Sort headers.
4084 * corefile.c: Sort headers.
4085 * continuations.c: Sort headers.
4086 * completer.h: Sort headers.
4087 * completer.c: Sort headers.
4088 * complaints.c: Sort headers.
4089 * coffread.c: Sort headers.
4090 * coff-pe-read.c: Sort headers.
4091 * cli-out.h: Sort headers.
4092 * cli-out.c: Sort headers.
4093 * charset.c: Sort headers.
4094 * c-varobj.c: Sort headers.
4095 * c-valprint.c: Sort headers.
4096 * c-typeprint.c: Sort headers.
4097 * c-lang.c: Sort headers.
4098 * buildsym.c: Sort headers.
4099 * buildsym-legacy.c: Sort headers.
4100 * build-id.h: Sort headers.
4101 * build-id.c: Sort headers.
4102 * btrace.c: Sort headers.
4103 * bsd-uthread.c: Sort headers.
4104 * breakpoint.h: Sort headers.
4105 * breakpoint.c: Sort headers.
4106 * break-catch-throw.c: Sort headers.
4107 * break-catch-syscall.c: Sort headers.
4108 * break-catch-sig.c: Sort headers.
4109 * blockframe.c: Sort headers.
4110 * block.c: Sort headers.
4111 * bfin-tdep.c: Sort headers.
4112 * bfin-linux-tdep.c: Sort headers.
4113 * bfd-target.c: Sort headers.
4114 * bcache.c: Sort headers.
4115 * ax-general.c: Sort headers.
4116 * ax-gdb.h: Sort headers.
4117 * ax-gdb.c: Sort headers.
4118 * avr-tdep.c: Sort headers.
4119 * auxv.c: Sort headers.
4120 * auto-load.c: Sort headers.
4121 * arm-wince-tdep.c: Sort headers.
4122 * arm-tdep.c: Sort headers.
4123 * arm-symbian-tdep.c: Sort headers.
4124 * arm-pikeos-tdep.c: Sort headers.
4125 * arm-obsd-tdep.c: Sort headers.
4126 * arm-nbsd-tdep.c: Sort headers.
4127 * arm-nbsd-nat.c: Sort headers.
4128 * arm-linux-tdep.c: Sort headers.
4129 * arm-linux-nat.c: Sort headers.
4130 * arm-fbsd-tdep.c: Sort headers.
4131 * arm-fbsd-nat.c: Sort headers.
4132 * arm-bsd-tdep.c: Sort headers.
4133 * arch-utils.c: Sort headers.
4134 * arc-tdep.c: Sort headers.
4135 * arc-newlib-tdep.c: Sort headers.
4136 * annotate.h: Sort headers.
4137 * annotate.c: Sort headers.
4138 * amd64-windows-tdep.c: Sort headers.
4139 * amd64-windows-nat.c: Sort headers.
4140 * amd64-tdep.c: Sort headers.
4141 * amd64-sol2-tdep.c: Sort headers.
4142 * amd64-obsd-tdep.c: Sort headers.
4143 * amd64-obsd-nat.c: Sort headers.
4144 * amd64-nbsd-tdep.c: Sort headers.
4145 * amd64-nbsd-nat.c: Sort headers.
4146 * amd64-nat.c: Sort headers.
4147 * amd64-linux-tdep.c: Sort headers.
4148 * amd64-linux-nat.c: Sort headers.
4149 * amd64-fbsd-tdep.c: Sort headers.
4150 * amd64-fbsd-nat.c: Sort headers.
4151 * amd64-dicos-tdep.c: Sort headers.
4152 * amd64-darwin-tdep.c: Sort headers.
4153 * amd64-bsd-nat.c: Sort headers.
4154 * alpha-tdep.c: Sort headers.
4155 * alpha-obsd-tdep.c: Sort headers.
4156 * alpha-nbsd-tdep.c: Sort headers.
4157 * alpha-mdebug-tdep.c: Sort headers.
4158 * alpha-linux-tdep.c: Sort headers.
4159 * alpha-linux-nat.c: Sort headers.
4160 * alpha-bsd-tdep.c: Sort headers.
4161 * alpha-bsd-nat.c: Sort headers.
4162 * aix-thread.c: Sort headers.
4163 * agent.c: Sort headers.
4164 * addrmap.c: Sort headers.
4165 * ada-varobj.c: Sort headers.
4166 * ada-valprint.c: Sort headers.
4167 * ada-typeprint.c: Sort headers.
4168 * ada-tasks.c: Sort headers.
4169 * ada-lang.c: Sort headers.
4170 * aarch64-tdep.c: Sort headers.
4171 * aarch64-ravenscar-thread.c: Sort headers.
4172 * aarch64-newlib-tdep.c: Sort headers.
4173 * aarch64-linux-tdep.c: Sort headers.
4174 * aarch64-linux-nat.c: Sort headers.
4175 * aarch64-fbsd-tdep.c: Sort headers.
4176 * aarch64-fbsd-nat.c: Sort headers.
4177 * aarch32-linux-nat.c: Sort headers.
4178
699bd4cf
TT
41792019-04-04 Tom Tromey <tom@tromey.com>
4180
4181 * varobj.c (varobj_create): Update.
4182 * rust-exp.y (struct rust_parser) <update_innermost_block,
4183 lookup_symbol>: New methods.
4184 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
4185 Rename.
4186 (rust_parser::rust_lookup_type)
4187 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
4188 * printcmd.c (display_command, do_one_display): Update.
4189 * parser-defs.h (struct parser_state) <parser_state>: Add
4190 "tracker" parameter.
4191 (block_tracker): New member.
4192 (class innermost_block_tracker) <innermost_block_tracker>: Add
4193 "types" parameter.
4194 <reset>: Remove method.
4195 (innermost_block): Don't declare.
4196 (null_post_parser): Update.
4197 * parse.c (innermost_block): Remove global.
4198 (write_dollar_variable): Update.
4199 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
4200 Remove "tracker_types" parameter.
4201 (parse_expression): Add "tracker" parameter.
4202 (parse_expression_for_completion): Update.
4203 (null_post_parser): Add "tracker" parameter.
4204 * p-exp.y: Update rules.
4205 * m2-exp.y: Update rules.
4206 * language.h (struct language_defn) <la_post_parser>: Add
4207 "tracker" parameter.
4208 * go-exp.y: Update rules.
4209 * f-exp.y: Update rules.
4210 * expression.h (parse_expression, parse_exp_1): Add "tracker"
4211 parameter.
4212 * d-exp.y: Update rules.
4213 * c-exp.y: Update rules.
4214 * breakpoint.c (set_breakpoint_condition): Create an
4215 innermost_block_tracker.
4216 (watch_command_1): Likewise.
4217 * ada-lang.c (resolve): Add "tracker" parameter.
4218 (resolve_subexp): Likewise.
4219 * ada-exp.y (write_var_from_sym): Update.
4220
dac43e32
TT
42212019-04-04 Tom Tromey <tom@tromey.com>
4222
4223 * type-stack.h: New file.
4224 * type-stack.c: New file.
4225 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
4226 type-stack.h.
4227 (insert_into_type_stack, insert_type, push_type, push_type_int)
4228 (insert_type_address_space, pop_type, pop_type_int)
4229 (pop_typelist, pop_type_stack, append_type_stack)
4230 (push_type_stack, get_type_stack, push_typelist)
4231 (follow_type_instance_flags, follow_types): Don't declare.
4232 * parse.c (type_stack): Remove global.
4233 (parse_exp_in_context): Update.
4234 (insert_into_type_stack, insert_type, push_type, push_type_int)
4235 (insert_type_address_space, pop_type, pop_type_int)
4236 (pop_typelist, pop_type_stack, append_type_stack)
4237 (push_type_stack, get_type_stack, push_typelist)
4238 (follow_type_instance_flags, follow_types): Remove (moved to
4239 type-stack.c).
4240 * f-exp.y (type_stack): New global.
4241 Update rules.
4242 (push_kind_type, f_parse): Update.
4243 * d-exp.y (type_stack): New global.
4244 Update rules.
4245 (d_parse): Update.
4246 * c-exp.y (struct c_parse_state) <type_stack>: New member.
4247 Update rules.
4248 * Makefile.in (COMMON_SFILES): Add type-stack.c.
4249 (HFILES_NO_SRCDIR): Add type-stack.h.
4250
2a612529
TT
42512019-04-04 Tom Tromey <tom@tromey.com>
4252
4253 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
4254 (rust_parser::convert_ast_to_expression, rust_parse)
4255 (rust_lex_test_completion, rust_lex_tests): Update.
4256 * parser-defs.h (struct expr_completion_state): New.
4257 (struct parser_state) <parser_state>: Add completion parameter.
4258 <mark_struct_expression, mark_completion_tag>: New methods.
4259 <parse_completion, m_completion_state>: New members.
4260 (prefixify_expression, null_post_parser): Update.
4261 (mark_struct_expression, mark_completion_tag): Don't declare.
4262 * parse.c (parse_completion, expout_last_struct)
4263 (expout_tag_completion_type, expout_completion_name): Remove
4264 globals.
4265 (parser_state::mark_struct_expression)
4266 (parser_state::mark_completion_tag): Now methods.
4267 (prefixify_expression): Add last_struct parameter.
4268 (prefixify_subexp): Likewise.
4269 (parse_exp_1): Update.
4270 (parse_exp_in_context): Add cstate parameter. Update.
4271 (parse_expression_for_completion): Create an
4272 expr_completion_state.
4273 (null_post_parser): Add "completion" parameter.
4274 * p-exp.y: Update rules.
4275 (yylex): Update.
4276 * language.h (struct language_defn) <la_post_parser>: Add
4277 "completing" parameter.
4278 * go-exp.y: Update rules.
4279 (lex_one_token): Update.
4280 * expression.h (parse_completion): Don't declare.
4281 * d-exp.y: Update rules.
4282 (lex_one_token): Update rules.
4283 * c-exp.y: Update rules.
4284 (lex_one_token): Update.
4285 * ada-lang.c (resolve): Add "parse_completion" parameter.
4286 (resolve_subexp): Likewise.
4287 (ada_resolve_function): Likewise.
4288
43476f0b
TT
42892019-04-04 Tom Tromey <tom@tromey.com>
4290
4291 * parser-defs.h (struct parser_state) <start_arglist,
4292 end_arglist>: New methods.
4293 <arglist_len, m_funcall_chain>: New members.
4294 (arglist_len, start_arglist, end_arglist): Don't declare.
4295 * parse.c (arglist_len, funcall_chain): Remove global.
4296 (start_arglist, end_arglist): Remove functions.
4297 (parse_exp_in_context): Update.
4298 * p-exp.y: Update rules.
4299 * m2-exp.y: Update rules.
4300 * go-exp.y: Update rules.
4301 * f-exp.y: Update rules.
4302 * d-exp.y: Update rules.
4303 * c-exp.y: Update rules.
4304
5776fca3
TT
43052019-04-04 Tom Tromey <tom@tromey.com>
4306
4307 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
4308 lex_operator, push_back>: New methods.
4309 Update all rules.
4310 (rust_parser::lex_hex, lex_escape): Rename and update.
4311 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
4312 (rust_parser::lex_operator): Rename and update.
4313 (rust_parser::lex_number, rustyylex, rustyyerror)
4314 (rust_lex_test_init, rust_lex_test_sequence)
4315 (rust_lex_test_push_back, rust_lex_tests): Update.
4316 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
4317 parameter.
4318 <lexptr, prev_lexptr>: New members.
4319 (lexptr, prev_lexptr): Don't declare.
4320 * parse.c (lexptr, prev_lexptr): Remove globals.
4321 (parse_exp_in_context): Update.
4322 * p-exp.y (yylex, yyerror): Update.
4323 * m2-exp.y (parse_number, yylex, yyerror): Update.
4324 * go-exp.y (lex_one_token, yyerror): Update.
4325 * f-exp.y (match_string_literal, yylex, yyerror): Update.
4326 * d-exp.y (lex_one_token, yyerror): Update.
4327 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
4328 (lex_one_token, yyerror): Update.
4329 * ada-lex.l (YY_INPUT): Update.
4330 (rewind_to_char): Update.
4331 * ada-exp.y (yyerror): Update.
4332
8621b685
TT
43332019-04-04 Tom Tromey <tom@tromey.com>
4334
4335 * rust-exp.y (rustyylex, rust_lex_tests): Update.
4336 * parser-defs.h (struct parser_state) <parser_state>: Add new
4337 parameter.
4338 <comma_terminates>: New member.
4339 (comma_terminates): Don't declare global.
4340 * parse.c (comma_terminates): Remove global.
4341 (parse_exp_in_context): Update.
4342 * p-exp.y (yylex): Update.
4343 * m2-exp.y (yylex): Update.
4344 * go-exp.y (lex_one_token): Update.
4345 * f-exp.y (yylex): Update.
4346 * d-exp.y (lex_one_token): Update.
4347 * c-exp.y (lex_one_token): Update.
4348 * ada-lex.l: Update.
4349
28aaf3fd
TT
43502019-04-04 Tom Tromey <tom@tromey.com>
4351
4352 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
4353 (rustyylex, rust_lex_test_init, rust_lex_test_one)
4354 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
4355 * parser-defs.h (paren_depth): Don't declare.
4356 * parse.c (paren_depth): Remove global.
4357 (parse_exp_in_context): Update.
4358 * p-exp.y (paren_depth): New global.
4359 (pascal_parse): Initialize it.
4360 * m2-exp.y (paren_depth): New global.
4361 (m2_parse): Initialize it.
4362 * go-exp.y (paren_depth): New global.
4363 (go_parse): Initialize it.
4364 * f-exp.y (paren_depth): New global.
4365 (f_parse): Initialize it.
4366 * d-exp.y (paren_depth): New global.
4367 (d_parse): Initialize it.
4368 * c-exp.y (paren_depth): New global.
4369 (c_parse): Initialize it.
4370 * ada-lex.l (paren_depth): New global.
4371 (lexer_init): Initialize it.
4372
1e58a4a4
TT
43732019-04-04 Tom Tromey <tom@tromey.com>
4374
4375 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
4376 (rust_parser::convert_ast_to_type)
4377 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
4378 * parser-defs.h (struct parser_state) <parser_state>: Add
4379 parameters. Initialize new members.
4380 <expression_context_block, expression_context_pc>: New members.
4381 * parse.c (expression_context_block, expression_context_pc):
4382 Remove globals.
4383 (parse_exp_in_context): Update.
4384 * p-exp.y: Update all rules.
4385 (yylex): Update.
4386 * m2-exp.y: Update all rules.
4387 (yylex): Update.
4388 * go-exp.y (yylex): Update.
4389 * f-exp.y (yylex): Update.
4390 * d-exp.y: Update all rules.
4391 (yylex): Update.
4392 * c-exp.y: Update all rules.
4393 (lex_one_token, classify_name, yylex, c_parse): Update.
4394 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
4395
37eedb39
TT
43962019-04-04 Tom Tromey <tom@tromey.com>
4397
4398 * gdbarch.h, gdbarch.c: Rebuild.
4399 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
4400 * stap-probe.h:
4401 (struct stap_parse_info): Replace "parser_state" with
4402 "expr_builder".
4403 * parser-defs.h (struct expr_builder): Rename from "parser_state".
4404 (parser_state): New class.
4405 * parse.c (expr_builder): Rename.
4406 (expr_builder::release): Rename.
4407 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4408 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4409 (write_exp_elt_longcst, write_exp_elt_floatcst)
4410 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4411 (write_exp_string_vector, write_exp_bitstring)
4412 (write_exp_msymbol, mark_struct_expression)
4413 (write_dollar_variable)
4414 (insert_type_address_space, increase_expout_size): Replace
4415 "parser_state" with "expr_builder".
4416 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
4417 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
4418 "parser_state" with "expr_builder".
4419
73923d7e
TT
44202019-04-04 Tom Tromey <tom@tromey.com>
4421
4422 * rust-exp.y: Replace "parse_language" with method call.
4423 * p-exp.y:
4424 (yylex): Replace "parse_language" with method call.
4425 * m2-exp.y:
4426 (yylex): Replace "parse_language" with method call.
4427 * go-exp.y (classify_name): Replace "parse_language" with method
4428 call.
4429 * f-exp.y (yylex): Replace "parse_language" with method call.
4430 * d-exp.y (lex_one_token): Replace "parse_language" with method
4431 call.
4432 * c-exp.y:
4433 (lex_one_token, classify_name, yylex): Replace "parse_language"
4434 with method call.
4435 * ada-exp.y (find_primitive_type, type_char)
4436 (type_system_address): Replace "parse_language" with method call.
4437
fa9f5be6
TT
44382019-04-04 Tom Tromey <tom@tromey.com>
4439
4440 * rust-exp.y: Replace "parse_gdbarch" with method call.
4441 * parse.c (write_dollar_variable, insert_type_address_space):
4442 Replace "parse_gdbarch" with method call.
4443 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
4444 call.
4445 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
4446 call.
4447 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
4448 "parse_gdbarch" with method call.
4449 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
4450 with method call.
4451 * f-exp.y (parse_type, parse_f_type, yylex): Replace
4452 "parse_gdbarch" with method call.
4453 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
4454 "parse_gdbarch" with method call.
4455 * c-exp.y (parse_type, parse_number, classify_name): Replace
4456 "parse_gdbarch" with method call.
4457 * ada-lex.l: Replace "parse_gdbarch" with method call.
4458 * ada-exp.y (parse_type, find_primitive_type, type_char)
4459 (type_system_address): Replace "parse_gdbarch" with method call.
4460
1201a264
TT
44612019-04-04 Tom Tromey <tom@tromey.com>
4462
4463 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4464 * stap-probe.c (stap_parse_argument): Update.
4465 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
4466 initial_size parameter.
4467 * rust-exp.y (rust_lex_tests): Update.
4468 * parse.c (parser_state): Update.
4469 (parse_exp_in_context): Update.
4470 * parser-defs.h (struct parser_state) <parser_state>: Remove
4471 "initial_size" parameter.
4472
e3980ce2
TT
44732019-04-04 Tom Tromey <tom@tromey.com>
4474
4475 * parser-defs.h (increase_expout_size): Don't declare.
4476 * parse.c (increase_expout_size): Now static.
4477
e9f8e3f1
TS
44782019-04-04 Thomas Schwinge <thomas@codesourcery.com>
4479
4480 * gnu-nat.c (gnu_nat_target::wait): Fix
4481 target_waitstatus_to_string call.
4482
d7df6549
AB
44832019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
4484
4485 * eval.c (evaluate_subexp_standard): Handle internal functions
4486 during Fortran function call handling.
4487
8bdc1658
AB
44882019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
4489
4490 * NEWS: Mention new internal functions.
4491 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
4492 (read_base_type): Use dwarf2_init_complex_target_type.
4493 * value.c (creal_internal_fn): New function.
4494 (cimag_internal_fn): New function.
4495 (_initialize_values): Register new internal functions.
4496
c29705b7
PW
44972019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4498
4499 * infrun.c (stop_all_threads): If debug_infrun, always
4500 trace the wait status after wait_one, using
4501 target_waitstatus_to_string and target_pid_to_str.
4502 (handle_inferior_event): Replace various trace of
4503 wait status kind by a single trace.
4504 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
4505 wait status kind image by target_waitstatus_to_string.
4506 * target/waitstatus.c (target_waitstatus_to_string): Fix
4507 obsolete comment.
4508
05caa1d2
TT
45092019-04-01 Tom Tromey <tromey@adacore.com>
4510
4511 PR symtab/23331:
4512 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
4513
9d1447e0
SDJ
45142019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
4515 Pedro Alves <palves@redhat.com>
4516
4517 * top.c (quit_force): Call 'finalize_values'.
4518 * value.c (finalize_values): New function.
4519 * value.h (finalize_values): Declare.
4520
7734102d
EZ
45212019-03-30 Eli Zaretskii <eliz@gnu.org>
4522
4523 * NEWS: Announce $_gdb_major and $_gdb_minor.
4524
4525 * top.c (init_gdb_version_vars): New function.
4526 (gdb_init): Call init_gdb_version_vars.
4527
188e1fa9
TT
45282019-03-29 Tom Tromey <tromey@adacore.com>
4529
4530 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
4531 help text. Remove dead code.
4532
2880242d
KS
45332019-03-29 Keith Seitz <keiths@redhat.com>
4534
4535 From Siddhesh Poyarekar:
4536 * f-lang.h (f77_get_upperbound): Return LONGEST.
4537 (f77_get_lowerbound): Likewise.
4538 * f-typeprint.c (f_type_print_varspec_suffix): Expand
4539 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
4540 print them.
4541 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
4542 plongest to format print it.
4543 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
4544 (f77_get_upperbound): Likewise.
4545 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
4546 LOWER_BOUND to LONGEST.
4547 (f77_create_arrayprint_offset_tbl): Likewise.
4548
cc1defb1
KS
45492019-03-29 Keith Seitz <keiths@redhat.com>
4550
4551 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4552 %s/pulongest for TYPE_LENGTH instead of %d in format
4553 strings.
4554 * ada-typerint.c (ada_print_type): Likewise.
4555 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
4556 * compile/compile-c-support.c (generate_register_struct): Likewise.
4557 * gdbtypes.c (recursive_dump_type): Likewise.
4558 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
4559 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
4560 instead of %d in format strings.
4561 * riscv-tdep.c (riscv_type_alignment): Cast second argument
4562 to std::min to ULONGEST.
4563 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
4564 instead of %d in format strings.
4565 * tracepoint.c (info_scope_command): Likewise.
4566 * typeprint.c (print_offset_data::update)
4567 (print_offset_data::finish): Likewise.
4568 * xtensa-tdep.c (xtensa_store_return_value)
4569 (xtensa_push_dummy_call): Likewise.
4570
e432ccf1
JT
45712019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
4572
4573 * windows-nat.c (display_selector): Fixed format specifications
4574 for 64-bit Cygwin.
4575
65d2b333
PW
45762019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4577
4578 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
4579
f489207e
SL
45802019-03-28 Sandra Loosemore <sandra@codesourcery.com>
4581
4582 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
4583 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
4584 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
4585 (nios2_linux_init_abi): Install it.
4586
bffa1015
AH
45872019-03-28 Alan Hayward <alan.hayward@arm.com>
4588
4589 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
4590
fc96163a
AH
45912019-03-28 Alan Hayward <alan.hayward@arm.com>
4592
4593 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
4594
20dc7e9b
PW
45952019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4596 Tom Tromey <tromey@adacore.com>
4597
4598 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
4599
7f5331a8
JB
46002019-03-26 Joel Brobecker <brobecker@adacore.com>
4601
4602 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
4603 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
4604 method to compute the bounds of range types. Also print "[evaluated]"
4605 if the bounds' values come from a dynamic evaluation.
4606
18c77628
AB
46072019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
4608
4609 * cp-valprint.c (cp_print_value_fields): Don't print trailing
4610 whitespace when pretty printing is on.
4611
53c973f2
AH
46122019-03-26 Alan Hayward <alan.hayward@arm.com>
4613
e79be6e5 4614 * ppc-linux-nat.c: Add include.
53c973f2 4615
d851aa71
AH
46162019-03-26 Alan Hayward <alan.hayward@arm.com>
4617
e79be6e5 4618 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 4619
2fe7bab7
AH
46202019-03-26 Alan Hayward <alan.hayward@arm.com>
4621
e79be6e5 4622 * arm-linux-nat.c: Add include.
2fe7bab7 4623
068ef30e
SM
46242019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
4625
4626 * source-cache.c (source_cache::get_source_lines): Re-read
4627 fullname after calling open_source_file.
4628
81a24d04
JB
46292019-03-25 John Baldwin <jhb@FreeBSD.org>
4630
4631 * NEWS: Mention TLS support for FreeBSD.
4632
79e7ae11
TT
46332019-03-25 Tom Tromey <tromey@adacore.com>
4634
4635 * minsyms.c (BUNCH_SIZE): Update comment.
4636 (~minimal_symbol_reader): Remove old comment.
4637 (compact_minimal_symbols): Update comment.
4638 (minimal_symbol_reader::install): Remove old comment. Update
4639 other comments.
4640
d45963c2
AH
46412019-03-25 Alan Hayward <alan.hayward@arm.com>
4642
4643 * s390-linux-nat.c: Add include.
4644
0f83012e
AH
46452019-03-25 Alan Hayward <alan.hayward@arm.com>
4646
4647 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4648 Call linux_get_hwcap.
4649 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4650 Likewise.
4651 (aarch64_linux_get_hwcap): Remove function.
4652 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
4653 declaration.
4654 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
4655 linux_get_hwcap.
4656 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4657 * linux-tdep.c (linux_get_hwcap): Add function.
4658 (linux_get_hwcap2): Likewise.
4659 * linux-tdep.h (linux_get_hwcap): Add declaration.
4660 (linux_get_hwcap2): Likewise.
4661 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
4662 (ppc_linux_get_hwcap2): Likewise.
4663 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
4664 linux_get_hwcap.
4665 (ppc_linux_nat_target::insert_watchpoint): Likewise.
4666 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
4667 (ppc_linux_nat_target::read_description): Likewise.
4668 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
4669 * s390-linux-nat.c: Likewise.
4670 * s390-linux-tdep.c (s390_core_read_description): Likewise.
4671
6640a367
TT
46722019-03-24 Tom Tromey <tom@tromey.com>
4673
4674 * ada-lang.c (standard_lookup): Simplify initialization.
4675 (ada_lookup_symbol_nonlocal): Simplify return.
4676 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
4677 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
4678 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
4679 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
4680 initialization.
4681 * solib.c (solib_global_lookup): Simplify.
4682 * symtab.c (null_block_symbol): Remove.
4683 (symbol_cache_lookup): Simplify returns.
4684 (lookup_language_this): Simplify returns.
4685 (lookup_symbol_aux): Simplify return.
4686 (lookup_local_symbol): Simplify returns.
4687 (lookup_global_symbol_from_objfile): Simplify return.
4688 (lookup_symbol_in_objfile_symtabs)
4689 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
4690 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
4691 (lookup_static_symbol, lookup_global_symbol): Simplify return.
4692 * cp-namespace.c (cp_lookup_bare_symbol)
4693 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
4694 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
4695 (cp_lookup_nested_symbol): Don't use null_block_symbol.
4696 (cp_lookup_symbol_via_imports): Simplify initialization.
4697 (find_symbol_in_baseclass): Likewise.
4698 * symtab.h (null_block_symbol): Remove.
4699 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
4700 (d_lookup_nested_symbol, d_lookup_symbol_imports)
4701 (d_lookup_symbol_module): Likewise.
4702 (find_symbol_in_baseclass): Simplify initialization.
4703
a930ebcd
TT
47042019-03-24 Tom Tromey <tom@tromey.com>
4705
4706 * expression.h: Don't include symtab.h.
4707 (struct block): Forward declare.
4708
582942f4
TT
47092019-03-24 Tom Tromey <tom@tromey.com>
4710
4711 * c-exp.y (typebase): Remove casts.
4712 * gdbtypes.c (lookup_unsigned_typename, )
4713 (lookup_signed_typename): Remove cast.
4714 * eval.c (parse_to_comma_and_eval): Remove cast.
4715 * parse.c (write_dollar_variable): Remove cast.
4716 * block.h (struct block) <superblock>: Now const.
4717 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
4718 * psymtab.c (psym_map_matching_symbols): Make "block" const.
4719 (map_block): Make "block" const.
4720 * symfile.h (struct quick_symbol_functions)
4721 <map_matching_symbols>: Constify block argument to "callback".
4722 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
4723 const.
4724 (find_pc_sect_compunit_symtab): Make "b" const.
4725 (find_symbol_at_address): Likewise.
4726 (search_symbols): Likewise.
4727 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
4728 (dw2_debug_names_lookup_symbol): Likewise.
4729 (dw2_map_matching_symbols): Update.
4730 * p-valprint.c (pascal_val_print): Remove "block".
4731 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
4732 (aux_add_nonlocal_symbols): Make "block" const.
4733 (resolve_subexp): Remove cast.
4734 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
4735 const.
4736 (iterate_over_file_blocks): Likewise.
4737 * f-exp.y (%union) <bval>: Remove.
4738 * coffread.c (patch_opaque_types): Make "b" const.
4739 * spu-tdep.c (spu_catch_start): Make "block" const.
4740 * c-valprint.c (print_unpacked_pointer): Remove "block".
4741 * symmisc.c (dump_symtab_1): Make "b" const.
4742 (block_depth): Make "block" const.
4743 * d-exp.y (%union) <bval>: Remove.
4744 * cp-support.h (cp_lookup_rtti_type): Update.
4745 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
4746 * psymtab.c (psym_lookup_symbol): Make "block" const.
4747 (maintenance_check_psymtabs): Make "b" const.
4748 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
4749 (enumerate_locals, enumerate_args): Update.
4750 * python/py-symtab.c (stpy_global_block): Make "block" const.
4751 (stpy_static_block): Likewise.
4752 * inline-frame.c (block_starting_point_at): Make "new_block"
4753 const.
4754 * block.c (find_block_in_blockvector): Make return type const.
4755 (blockvector_for_pc_sect): Make "b" const.
4756 (find_block_in_blockvector): Make "b" const.
4757
7ad417dd
TT
47582019-03-23 Tom Tromey <tom@tromey.com>
4759
4760 * varobj.c (varobj_create): Update.
4761 * symfile.c (clear_symtab_users): Don't reset innermost_block.
4762 * printcmd.c (display_command, do_one_display): Don't reset
4763 innermost_block.
4764 * parser-defs.h (enum innermost_block_tracker_type): Move to
4765 expression.h.
4766 (innermost_block): Update comment.
4767 * parse.c (parse_exp_1): Add tracker_types parameter.
4768 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
4769 tracker_types parameter. Reset innermost_block.
4770 (parse_exp_in_context): Remove.
4771 (parse_expression_for_completion): Update.
4772 * objfiles.c (~objfile): Don't reset expression_context_block or
4773 innermost_block.
4774 * expression.h (enum innermost_block_tracker_type): Move from
4775 parser-defs.h.
4776 (parse_exp_1): Add tracker_types parameter.
4777 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
4778 reset innermost_block.
4779
b366c208
TT
47802019-03-23 Tom Tromey <tom@tromey.com>
4781
4782 * objfiles.h: Include bcache.h.
4783
9bb9b2f9
TT
47842019-03-23 Tom Tromey <tom@tromey.com>
4785
4786 * linespec.c (get_current_search_block): Use
4787 scoped_restore_current_language.
4788 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
4789
59c28372
AH
47902019-03-22 Alan Hayward <alan.hayward@arm.com>
4791 Jiong Wang <jiong.wang@arm.com>
4792
4793 * aarch64-linux-tdep.c
4794 (aarch64_linux_iterate_over_regset_sections): Check for pauth
4795 section.
4796 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
4797
17e116a7
AH
47982019-03-22 Alan Hayward <alan.hayward@arm.com>
4799 Jiong Wang <jiong.wang@arm.com>
4800
4801 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
4802 instructions.
4803 (aarch64_analyze_prologue_test): Add PACIASP test.
4804 (aarch64_prologue_prev_register): Unmask PC value.
4805
11e1b75f
AH
48062019-03-22 Alan Hayward <alan.hayward@arm.com>
4807 Jiong Wang <jiong.wang@arm.com>
4808
4809 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
4810 (aarch64_dwarf2_prev_register): Unmask PC value.
4811 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
4812 (aarch64_execute_dwarf_cfa_vendor_op): Check for
4813 DW_CFA_AARCH64_negate_ra_state.
4814 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
4815
34dcc7cf
AH
48162019-03-22 Alan Hayward <alan.hayward@arm.com>
4817 Jiong Wang <jiong.wang@arm.com>
4818
4819 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
4820 registers.
4821 (aarch64_pseudo_register_name): Likewise.
4822 (aarch64_pseudo_register_type): Likewise.
4823 (aarch64_pseudo_register_reggroup_p): Likewise.
4824 (aarch64_gdbarch_init): Add pauth registers.
4825 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
4826 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
4827 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
4828 (struct gdbarch_tdep): Add regnum for ra_state.
4829
1ef53e6b
AH
48302019-03-22 Alan Hayward <alan.hayward@arm.com>
4831 Jiong Wang <jiong.wang@arm.com>
4832
4833 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
4834
76bed0fd
AH
48352019-03-22 Alan Hayward <alan.hayward@arm.com>
4836 Jiong Wang <jiong.wang@arm.com>
4837
4838 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
4839 function.
4840 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
4841 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
4842 (aarch64_gdbarch_init): Add puth registers.
4843 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
4844 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
4845 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
4846
ee4fbcfa
AH
48472019-03-22 Alan Hayward <alan.hayward@arm.com>
4848 Jiong Wang <jiong.wang@arm.com>
4849
4850 * aarch64-linux-nat.c
4851 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
4852 * aarch64-linux-tdep.c
4853 (aarch64_linux_core_read_description): Likewise.
4854 (aarch64_linux_get_hwcap): New function.
4855 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
4856 (aarch64_linux_get_hwcap): New declaration.
4857
6dc0ebde
AH
48582019-03-22 Alan Hayward <alan.hayward@arm.com>
4859 Jiong Wang <jiong.wang@arm.com>
4860
4861 * aarch64-linux-nat.c
4862 (aarch64_linux_nat_target::read_description): Add pauth param.
4863 * aarch64-linux-tdep.c
4864 (aarch64_linux_core_read_description): Likewise.
4865 * aarch64-tdep.c (struct target_desc): Add in pauth.
4866 (aarch64_read_description): Add pauth param.
4867 (aarch64_gdbarch_init): Likewise.
4868 * aarch64-tdep.h (aarch64_read_description): Likewise.
4869 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4870 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4871 * features/Makefile: Add new files.
4872 * features/aarch64-pauth.c: New file.
4873 * features/aarch64-pauth.xml: New file.
4874
595915c1
TT
48752019-03-20 Tom Tromey <tromey@adacore.com>
4876
4877 * infrun.c (handle_inferior_event): Rename from
4878 handle_inferior_event_1. Create a scoped_value_mark.
4879 (handle_inferior_event): Remove.
4880
4c7d57e7
TT
48812019-03-19 Tom Tromey <tromey@adacore.com>
4882
4883 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
4884 * infrun.h (print_stop_event): Add "displays" parameter.
4885 * infrun.c (print_stop_event): Add "displays" parameter.
4886
cb246234
PA
48872019-03-19 Pedro Alves <palves@redhat.com>
4888
4889 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
4890 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
4891 to -1. Fix TABs vs spaces.
4892 (tui_ui_out::tui_ui_out): Don't initialize fields here.
4893 * tui/tui-out.h (tui_ui_out) Add intro comments.
4894 <m_line, m_start_of_line>: In-class initialize, and add describing
4895 comment.
4896
3a0e45b2
AH
48972019-03-18 Alan Hayward <alan.hayward@arm.com>
4898
4899 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
4900 variable names.
4901 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
4902
5371b850
PA
49032019-03-18 Pedro Alves <palves@redhat.com>
4904 Eli Zaretskii <eliz@gnu.org>
4905
4906 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
4907 m_line and m_start_of_line.
4908
b17c4cd0
EZ
49092019-03-18 Eli Zaretskii <eliz@gnu.org>
4910
4911 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
4912 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
4913 it returns a newline. This fixes a regression in TU mode, whereby
4914 the next line is output on the same screen line as the user input.
4915
4bd56d18
TT
49162019-03-18 Tom Tromey <tromey@adacore.com>
4917
4918 * minsyms.c (minimal_symbol_reader::install): Remove call to
4919 obstack_blank.
4920
55c10aca
PA
49212019-03-18 Pedro Alves <palves@redhat.com>
4922
4923 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
4924 New globals.
4925 (apply_style): New, factored out from ...
4926 (apply_ansi_escape): ... this. Handle reverse video mode.
4927 (tui_set_reverse_mode): New function.
4928 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
4929 * tui/tui-winsource.c (tui_show_source_line): Use
4930 tui_set_reverse_mode instead of setting A_STANDOUT.
4931 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
4932 New setter methods.
4933
647bb750
HD
49342019-03-18 Hannes Domani <ssbssa@yahoo.de>
4935
4936 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
4937 Handle tabs.
4938
bff8c71f
TT
49392019-03-18 Tom Tromey <tromey@adacore.com>
4940
4941 * ada-lang.c (empty_array): Add "high" parameter.
4942 (ada_evaluate_subexp): Update.
4943
58785d98
ST
49442019-03-17 Sergei Trofimovich <siarheit@google.com>
4945
4946 * unittests/string_view-selftests.c: Define
4947 _initialize_string_view_selftests unconditionally.
4948
d4cbef22
ВМ
49492019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4950
4951 PR gdb/24350
4952 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
4953
fce4c071
ВМ
49542019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4955
4956 PR gdb/24351
4957 * windows-nat.c (display_selector): Fix format specifiers.
4958
f7f0a123
EZ
49592019-03-17 Eli Zaretskii <eliz@gnu.org>
4960
4961 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
4962 tui_refill_source_window instead of tui_refresh_win, to update the
4963 current execution line. This fixes redisplay of the current line
4964 when stepping through the code with "next" or "step".
4965
ab42892f
EZ
49662019-03-16 Eli Zaretskii <eliz@gnu.org>
4967
4968 * source-cache.c (source_cache::get_source_lines): Call
4969 find_source_lines to initialize s->nlines. This fixes vertical
4970 scrolling of TUI source window when the DOWN arrow is pressed.
4971
8d8c087f
PW
49722019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4973
4974 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
4975 linux-thread-db.c (_initialize_thread_db): Likewise.
4976
798e1c30
EZ
49772019-03-16 Eli Zaretskii <eliz@gnu.org>
4978
4979 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
4980 wclrtoeol in tui_show_source_line". This reverts changes made in
4981 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
4982
eefba3da
TT
49832019-03-15 Tom Tromey <tom@tromey.com>
4984
4985 * symtab.h (struct minimal_symbol): Derive from
4986 general_symbol_info.
4987 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
4988 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4989 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4990 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4991 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
4992 (MSYMBOL_SEARCH_NAME): Update.
4993 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
4994 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
4995 * minsyms.c (minimal_symbol_reader::record_full): Update.
4996
0de2420c
TT
49972019-03-15 Tom Tromey <tom@tromey.com>
4998
4999 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
5000
042d75e4
TT
50012019-03-15 Tom Tromey <tom@tromey.com>
5002
5003 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
5004 unique_xmalloc_ptr.
5005 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
5006 Update.
5007 * minsyms.c (lookup_minimal_symbol_by_pc_section)
5008 (build_minimal_symbol_hash_tables)
5009 (minimal_symbol_reader::install): Update.
5010
db92718b
TT
50112019-03-15 Tom Tromey <tom@tromey.com>
5012
5013 * symtab.c (create_demangled_names_hash): Update.
5014 (symbol_set_names): Update.
5015 * objfiles.h (struct objfile_per_bfd_storage)
5016 <demangled_names_hash>: Now an htab_up.
5017 * objfiles.c (objfile_per_bfd_storage): Simplify.
5018
d6797f46
TT
50192019-03-15 Tom Tromey <tom@tromey.com>
5020
5021 * objfiles.h (struct objfile_per_bfd_storage): Declare
5022 destructor.
5023 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
5024 New.
5025 (get_objfile_bfd_data): Use new. Don't initialize
5026 language_of_main.
5027 (free_objfile_per_bfd_storage): Remove.
5028 (objfile_bfd_data_free, objfile::~objfile): Use delete.
5029
741d7538
TT
50302019-03-15 Tom Tromey <tom@tromey.com>
5031
5032 * symfile.c (reread_symbols): Update.
5033 * objfiles.c (objfile::objfile): Update.
5034 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
5035 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
5036 comment.
5037 (minimal_symbol_reader::install): Update.
5038 (terminate_minimal_symbol_table): Remove.
5039 * jit.c (jit_object_close_impl): Update.
5040
788c80d1
TT
50412019-03-15 Tom Tromey <tom@tromey.com>
5042
5043 * minsyms.c (minimal_symbol_reader::record_full): Remove some
5044 initializations.
5045
1b7a07cb
TT
50462019-03-15 Tom Tromey <tom@tromey.com>
5047
5048 * objfiles.h (struct objfile_per_bfd_storage)
5049 <demangled_hash_languages>: Now a bitset.
5050 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
5051 (lookup_minimal_symbol): Update.
5052
3db066bc
TT
50532019-03-15 Tom Tromey <tom@tromey.com>
5054
5055 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
5056 Don't return the symbol.
5057 * coffread.c (record_minimal_symbol): Use record_full.
5058
3fff2c37
EZ
50592019-03-14 Eli Zaretskii <eliz@gnu.org>
5060
5061 The MS-Windows port of ncurses fails to switch to a color pair if
5062 one or both of the colors are the implicit default colors. This
5063 change records the default colors when TUI is initialized, and
5064 then specifies them explicitly when a color pair uses the default
5065 colors. This allows color styling in TUI mode on MS-Windows.
5066
5067 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
5068 ncurses_norm_attr.
5069 (tui_initialize_io) [__MINGW32__]: Record the default terminal
5070 colors in ncurses_norm_attr.
5071 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
5072 "none", replace it with the default color recorded in
5073 ncurses_norm_attr.
5074
3b336828
TT
50752019-03-14 Tom Tromey <tromey@adacore.com>
5076
5077 * source-cache.h (class source_cache) <get_source_lines>: Return
5078 std::string.
5079 * source-cache.c (source_cache::extract_lines): Handle case where
5080 first_pos==npos. Return std::string.
5081 (source_cache::get_source_lines): Update.
5082
d085f989
TT
50832019-03-14 Tom Tromey <tromey@adacore.com>
5084
5085 * NEWS: Add item for "style sources" commands.
5086 * source-cache.c (source_cache::get_source_lines): Check
5087 source_styling.
5088 * cli/cli-style.c (source_styling): New global.
5089 (_initialize_cli_style): Add "style sources" commands.
5090 (show_style_sources): New function.
5091 * cli/cli-style.h (source_styling): Declare.
5092
6f11e682
TT
50932019-03-14 Pedro Alves <palves@redhat.com>
5094 Tom Tromey <tromey@adacore.com>
5095
5096 * tui/tui-winsource.h (tui_refill_source_window): Declare.
5097 * tui/tui-winsource.c (tui_refill_source_window): New function,
5098 from...
5099 (tui_horizontal_source_scroll): ... here. Move some logic.
5100 * cli/cli-style.c (set_style_enabled): Notify new observable.
5101 * tui/tui-hooks.c (tui_redisplay_source): New function.
5102 (tui_attach_detach_observers): Attach or detach
5103 tui_redisplay_source.
5104 * observable.h (source_styling_changed): New observable.
5105 * observable.c: Define source_styling_changed observable.
5106
a068643d
TT
51072019-03-13 Tom Tromey <tromey@adacore.com>
5108
5109 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
5110 (i386_gnu_nat_target::store_registers): Update.
5111 * target-debug.h (target_debug_print_std_string): New macro.
5112 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
5113 * windows-tdep.c (display_one_tib): Update.
5114 * tui/tui-stack.c (tui_make_status_line): Update.
5115 * top.c (print_inferior_quit_action): Update.
5116 * thread.c (thr_try_catch_cmd): Update.
5117 (add_thread_with_info): Update.
5118 (thread_target_id_str): Update.
5119 (thr_try_catch_cmd): Update.
5120 (thread_command): Update.
5121 (thread_find_command): Update.
5122 * record-btrace.c (record_btrace_target::info_record)
5123 (record_btrace_resume_thread, record_btrace_target::resume)
5124 (record_btrace_cancel_resume, record_btrace_step_thread)
5125 (record_btrace_target::wait, record_btrace_target::wait)
5126 (record_btrace_target::wait, record_btrace_target::stop): Update.
5127 * progspace.c (print_program_space): Update.
5128 * process-stratum-target.c
5129 (process_stratum_target::thread_address_space): Update.
5130 * linux-fork.c (linux_fork_mourn_inferior)
5131 (detach_checkpoint_command, info_checkpoints_command)
5132 (linux_fork_context): Update.
5133 (linux_fork_detach): Update.
5134 (class scoped_switch_fork_info): Update.
5135 (delete_checkpoint_command): Update.
5136 * infrun.c (follow_fork_inferior): Update.
5137 (follow_fork_inferior): Update.
5138 (proceed_after_vfork_done): Update.
5139 (handle_vfork_child_exec_or_exit): Update.
5140 (follow_exec): Update.
5141 (displaced_step_prepare_throw): Update.
5142 (displaced_step_restore): Update.
5143 (start_step_over): Update.
5144 (resume_1): Update.
5145 (clear_proceed_status_thread): Update.
5146 (proceed): Update.
5147 (print_target_wait_results): Update.
5148 (do_target_wait): Update.
5149 (context_switch): Update.
5150 (stop_all_threads): Update.
5151 (restart_threads): Update.
5152 (finish_step_over): Update.
5153 (handle_signal_stop): Update.
5154 (switch_back_to_stepped_thread): Update.
5155 (keep_going_pass_signal): Update.
5156 (print_exited_reason): Update.
5157 (normal_stop): Update.
5158 * inferior.c (inferior_pid_to_str): Change return type.
5159 (print_selected_inferior): Update.
5160 (add_inferior): Update.
5161 (detach_inferior): Update.
5162 * dummy-frame.c (fprint_dummy_frames): Update.
5163 * dcache.c (dcache_info_1): Update.
5164 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
5165 (btrace_fetch, btrace_clear): Update.
5166 * linux-tdep.c (linux_core_pid_to_str): Change return type.
5167 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
5168 type.
5169 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
5170 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
5171 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
5172 * gdbarch.c, gdbarch.h: Rebuild.
5173 * gdbarch.sh (core_pid_to_str): Change return type.
5174 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
5175 return type.
5176 (windows_nat_target::pid_to_str): Change return type.
5177 (windows_delete_thread): Update.
5178 (windows_nat_target::attach): Update.
5179 (windows_nat_target::files_info): Update.
5180 * target-delegates.c: Rebuild.
5181 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
5182 return type.
5183 (sol_thread_target::pid_to_str): Change return type.
5184 * remote.c (class remote_target) <pid_to_str>: Change return
5185 type.
5186 (remote_target::pid_to_str): Change return type.
5187 (extended_remote_target::attach, remote_target::remote_stop_ns)
5188 (remote_target::remote_notif_remove_queued_reply)
5189 (remote_target::push_stop_reply, remote_target::disable_btrace):
5190 Update.
5191 (extended_remote_target::attach): Update.
5192 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
5193 type.
5194 (gdbsim_target::pid_to_str): Change return type.
5195 * ravenscar-thread.c (struct ravenscar_thread_target)
5196 <pid_to_str>: Change return type.
5197 (ravenscar_thread_target::pid_to_str): Change return type.
5198 * procfs.c (class procfs_target) <pid_to_str>: Change return
5199 type.
5200 (procfs_target::pid_to_str): Change return type.
5201 (procfs_target::attach): Update.
5202 (procfs_target::detach): Update.
5203 (procfs_target::fetch_registers): Update.
5204 (procfs_target::store_registers): Update.
5205 (procfs_target::wait): Update.
5206 (procfs_target::files_info): Update.
5207 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
5208 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
5209 return type.
5210 (nto_procfs_target::pid_to_str): Change return type.
5211 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
5212 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
5213 return type.
5214 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
5215 (exit_lwp): Update.
5216 (attach_proc_task_lwp_callback, get_detach_signal)
5217 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
5218 (linux_nat_target::resume, wait_lwp, stop_callback)
5219 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
5220 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
5221 (linux_nat_wait_1, resume_stopped_resumed_lwps)
5222 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
5223 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
5224 type.
5225 (inf_ptrace_target::attach): Update.
5226 (inf_ptrace_target::files_info): Update.
5227 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
5228 type.
5229 (go32_nat_target::pid_to_str): Change return type.
5230 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
5231 (gnu_nat_target::wait): Update.
5232 (gnu_nat_target::wait): Update.
5233 (gnu_nat_target::resume): Update.
5234 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
5235 (fbsd_nat_target::wait): Update.
5236 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
5237 type.
5238 (darwin_nat_target::attach): Update.
5239 * corelow.c (class core_target) <pid_to_str>: Change return type.
5240 (core_target::pid_to_str): Change return type.
5241 * target.c (normal_pid_to_str): Change return type.
5242 (default_pid_to_str): Likewise.
5243 (target_pid_to_str): Change return type.
5244 (target_translate_tls_address): Update.
5245 (target_announce_detach): Update.
5246 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
5247 return type.
5248 (bsd_uthread_target::pid_to_str): Change return type.
5249 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
5250 type.
5251 (bsd_kvm_target::pid_to_str): Change return type.
5252 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
5253 return type.
5254 (aix_thread_target::pid_to_str): Change return type.
5255 * target.h (struct target_ops) <pid_to_str>: Change return type.
5256 (target_pid_to_str, normal_pid_to_str): Likewise.
5257 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
5258 type.
5259 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
5260 type.
5261 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
5262 return type.
5263 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
5264 type.
5265 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
5266 type.
5267 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
5268 return type.
5269
b4be1b06
SM
52702019-03-13 Simon Marchi <simon.marchi@ericsson.com>
5271
5272 * NEWS: Mention that the new default MI version is 3. Mention
5273 changes to the output of commands and events that deal with
5274 multi-location breakpoints.
5275 * breakpoint.c: Include "mi/mi-out.h".
5276 (print_one_breakpoint): Change output syntax if using MI version
5277 >= 3.
5278 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
5279 New.
5280 (mi_multi_location_breakpoint_output_fixed): New.
5281 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
5282 (mi_cmd_fix_multi_location_breakpoint_output): New.
5283 (mi_multi_location_breakpoint_output_fixed): New.
5284 * mi/mi-cmds.c (mi_cmds): Register command
5285 -fix-multi-location-breakpoint-output.
5286 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
5287 interpreter "mi".
5288
8e5e5494
SM
52892019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5290
5291 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
5292 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
5293 instantiate mi_ui_out based on interpreter name.
5294 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
5295 * mi/mi-main.c (mi_load_progress): Likewise.
5296
197df35e
JB
52972019-03-12 John Baldwin <jhb@FreeBSD.org>
5298
5299 * NEWS: Combine separate "New targets" sections for 8.3.
5300
8399425f
JB
53012019-03-12 John Baldwin <jhb@FreeBSD.org>
5302
5303 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
5304 (ppcfbsd_init_abi): Install gdbarch
5305 "fetch_tls_load_module_address" and "get_thread_local_address"
5306 methods.
5307
b0f87ed0
JB
53082019-03-12 John Baldwin <jhb@FreeBSD.org>
5309
5310 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
5311 (riscv_fbsd_init_abi): Install gdbarch
5312 "fetch_tls_load_module_address" and "get_thread_local_address"
5313 methods.
5314
ce25aa57
JB
53152019-03-12 John Baldwin <jhb@FreeBSD.org>
5316
5317 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
5318 (i386fbsd_init_abi): Install gdbarch
5319 "fetch_tls_load_module_address" and "get_thread_local_address"
5320 methods.
5321
f5424cfa
JB
53222019-03-12 John Baldwin <jhb@FreeBSD.org>
5323
5324 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
5325 (amd64fbsd_init_abi): Install gdbarch
5326 "fetch_tls_load_module_address" and "get_thread_local_address"
5327 methods.
5328
945f3901
JB
53292019-03-12 John Baldwin <jhb@FreeBSD.org>
5330
5331 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
5332 (struct fbsd_pspace_data): New type.
5333 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
5334 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
5335 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
5336 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
5337 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
5338
ef0bd204
JB
53392019-03-12 John Baldwin <jhb@FreeBSD.org>
5340
5341 * gdbtypes.c (lookup_struct_elt): New function.
5342 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
5343 * gdbtypes.h (struct struct_elt): New type.
5344 (lookup_struct_elt): New prototype.
5345
36c53a02
JB
53462019-03-12 John Baldwin <jhb@FreeBSD.org>
5347
5348 * gdbtypes.c (lookup_struct_elt_type): Update comment and
5349 remove disabled code block.
5350
6e056c81
JB
53512019-03-12 John Baldwin <jhb@FreeBSD.org>
5352
5353 * gdbarch.sh (get_thread_local_address): New method.
5354 * gdbarch.h, gdbarch.c: Regenerate.
5355 * target.c (target_translate_tls_address): Use
5356 gdbarch_get_thread_local_address if present instead of
5357 target::get_thread_local_address.
5358
cd250a18
JB
53592019-03-12 John Baldwin <jhb@FreeBSD.org>
5360
5361 * target.h (target::get_thread_local_address): Update comment.
5362
df22c1e5
JB
53632019-03-12 John Baldwin <jhb@FreeBSD.org>
5364
5365 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
5366 objfile->separate_debug_objfile_backlink if not NULL.
5367
dd6876c9
JB
53682019-03-12 John Baldwin <jhb@FreeBSD.org>
5369
5370 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5371 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
5372 (amd64bsd_store_inferior_registers): Likewise.
5373 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
5374 Enable segment base registers.
5375 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
5376 PT_GETFSBASE and PT_GETGSBASE.
5377 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
5378 PT_SETGSBASE.
5379 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
5380 segment base registers.
5381 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
5382
1163a4b7
JB
53832019-03-12 John Baldwin <jhb@FreeBSD.org>
5384
5385 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
5386 Update calls to i386_target_description to add 'segments'
5387 parameter.
5388 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
5389 add segment base registers.
5390 * arch/i386.c (i386_create_target_description): Add 'segments'
5391 parameter to enable segment base registers.
5392 * arch/i386.h (i386_create_target_description): Likewise.
5393 * features/i386/32bit-segments.xml: New file.
5394 * features/i386/32bit-segments.c: Generate.
5395 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
5396 call to i386_target_description to add 'segments' parameter.
5397 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
5398 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
5399 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
5400 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
5401 if feature is present.
5402 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
5403 Add 'segments' parameter to call to i386_target_description.
5404 (i386_target_description): Add 'segments' parameter to enable
5405 segment base registers.
5406 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
5407 to call to i386_target_description.
5408 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
5409 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
5410 Define I386_NUM_REGS.
5411 (i386_target_description): Add 'segments' parameter to enable
5412 segment base registers.
5413
3a350822
EZ
54142019-03-12 Eli Zaretskii <eliz@gnu.org>
5415
5416 PR/24325
5417 * source-cache.c: #undef open and close, to avoid unresolved
5418 externals during linking.
5419
ffdd69cf
TT
54202019-03-12 Tom Tromey <tromey@adacore.com>
5421
5422 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
5423 const. Add initializers.
5424 (_initialize_remote): Don't initialize ptid globals.
5425
ec148c57
PA
54262019-03-12 Pedro Alves <palves@redhat.com>
5427
5428 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
5429
32764270
PA
54302019-03-12 Pedro Alves <palves@redhat.com>
5431
5432 * cp-name-parser.y (main): Remove unused 'len' variable.
5433
17547186
TT
54342019-03-12 Tom Tromey <tromey@adacore.com>
5435
5436 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
5437 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
5438
d3a70e03
TT
54392019-03-12 Tom Tromey <tromey@adacore.com>
5440
5441 * linux-nat.c (iterate_over_lwps): Update.
5442 (stop_callback): Remove parameter.
5443 (stop_wait_callback, detach_callback, resume_set_callback)
5444 (select_singlestep_lwp_callback, set_ignore_sigint)
5445 (status_callback, resumed_callback, resume_clear_callback)
5446 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
5447 data parameter.
5448 (linux_nat_target::detach, linux_nat_target::resume)
5449 (linux_stop_and_wait_all_lwps, select_event_lwp)
5450 (linux_nat_filter_event, linux_nat_wait_1)
5451 (linux_nat_target::kill, linux_nat_target::stop)
5452 (linux_nat_target::stop): Update.
5453 (linux_nat_resume_callback): Change type.
5454 (resume_stopped_resumed_lwps, count_events_callback)
5455 (select_event_lwp_callback): Likewise.
5456 (linux_stop_lwp, linux_nat_stop_lwp): Update.
5457 * arm-linux-nat.c (struct update_registers_data): Remove.
5458 (update_registers_callback): Change type.
5459 (arm_linux_insert_hw_breakpoint1): Update.
5460 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
5461 parameter.
5462 (x86_linux_dr_set_addr): Update.
5463 (x86_linux_dr_set_control): Update.
5464 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
5465 (iterate_over_lwps): Use gdb::function_view.
5466 * nat/aarch64-linux-hw-point.c (struct
5467 aarch64_dr_update_callback_param): Remove.
5468 (debug_reg_change_callback): Change type.
5469 (aarch64_notify_debug_reg_change): Update.
5470 * s390-linux-nat.c (s390_refresh_per_info): Update.
5471
82cb27ff
TT
54722019-03-11 Tom Tromey <tromey@adacore.com>
5473
5474 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
5475 redundant assignment to "this_cu".
5476
568c0683
SM
54772019-03-08 Simon Marchi <simon.marchi@efficios.com>
5478
5479 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
5480
f09ce22d
SM
54812019-03-08 Simon Marchi <simon.marchi@efficios.com>
5482
5483 * gdbtypes.c (rank_one_type_parm_set): New function extracted
5484 from...
5485 (rank_one_type): ... this.
5486
595f96a9
SM
54872019-03-08 Simon Marchi <simon.marchi@efficios.com>
5488
5489 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
5490 from...
5491 (rank_one_type): ... this.
5492
2598a94b
SM
54932019-03-08 Simon Marchi <simon.marchi@efficios.com>
5494
5495 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
5496 from...
5497 (rank_one_type): ... this.
5498
7f17b20d
SM
54992019-03-08 Simon Marchi <simon.marchi@efficios.com>
5500
5501 * gdbtypes.c (rank_one_type_parm_float): New function extracted
5502 from...
5503 (rank_one_type): ... this.
5504
2c509035
SM
55052019-03-08 Simon Marchi <simon.marchi@efficios.com>
5506
5507 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
5508 from...
5509 (rank_one_type): ... this.
5510
0dd322dc
SM
55112019-03-08 Simon Marchi <simon.marchi@efficios.com>
5512
5513 * gdbtypes.c (rank_one_type_parm_range): New function extracted
5514 from...
5515 (rank_one_type): ... this.
5516
41ea4728
SM
55172019-03-08 Simon Marchi <simon.marchi@efficios.com>
5518
5519 * gdbtypes.c (rank_one_type_parm_char): New function extracted
5520 from...
5521 (rank_one_type): ... this.
5522
793cd1d2
SM
55232019-03-08 Simon Marchi <simon.marchi@efficios.com>
5524
5525 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
5526 from...
5527 (rank_one_type): ... this.
5528
34910087
SM
55292019-03-08 Simon Marchi <simon.marchi@efficios.com>
5530
5531 * gdbtypes.c (rank_one_type_parm_int): New function extracted
5532 from...
5533 (rank_one_type): ... this.
5534
f1f832d6
SM
55352019-03-08 Simon Marchi <simon.marchi@efficios.com>
5536
5537 * gdbtypes.c (rank_one_type_parm_func): New function extracted
5538 from...
5539 (rank_one_type): ... this.
5540
b9f4512f
SM
55412019-03-08 Simon Marchi <simon.marchi@efficios.com>
5542
5543 * gdbtypes.c (rank_one_type_parm_array): New function extracted
5544 from...
5545 (rank_one_type): ... this.
5546
9293fc63
SM
55472019-03-08 Simon Marchi <simon.marchi@efficios.com>
5548
5549 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
5550 from...
5551 (rank_one_type): ... this.
5552
e3abbe7e
PW
55532019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5554
5555 * inferior.c (initialize_inferiors): Ensure 'help set/show print
5556 inferior-events' shows the example events.
5557
e4adb939
EZ
55582019-03-08 Eli Zaretskii <eliz@gnu.org>
5559
5560 Support styling on native MS-Windows console
5561
5562 PR/24315
5563 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
5564 on MS-Windows if $TERM is not defined.
5565
5566 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
5567
5568 * posix-hdep.c (gdb_console_fputs):
5569 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
5570 functions.
5571 * ui-file.h (gdb_console_fputs): Add prototype.
5572
5573 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
5574 back to fputs only if the former returns zero.
5575
25629dfd
TT
55762019-03-07 Tom Tromey <tom@tromey.com>
5577
5578 * symmisc.c (print_symbol_bcache_statistics): Update.
5579 (print_objfile_statistics): Update.
5580 * symfile.c (allocate_symtab): Update.
5581 * stabsread.c: Don't include bcache.h.
5582 * psymtab.h (struct psymbol_bcache): Don't declare.
5583 (class psymtab_storage) <psymbol_cache>: Now a bcache.
5584 (psymbol_bcache_init, psymbol_bcache_free)
5585 (psymbol_bcache_get_bcache): Don't declare.
5586 * psymtab.c (struct psymbol_bcache): Remove.
5587 (psymtab_storage::psymtab_storage): Update.
5588 (psymtab_storage::~psymtab_storage): Update.
5589 (psymbol_bcache_init, psymbol_bcache_free)
5590 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
5591 (add_psymbol_to_bcache): Update.
5592 (allocate_psymtab): Update.
5593 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
5594 macro_cache>: No longer pointers.
5595 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
5596 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
5597 * macrotab.c (macro_bcache): Update.
5598 * macroexp.c: Don't include bcache.h.
5599 * gdbtypes.c (check_types_worklist): Update.
5600 (types_deeply_equal): Remove TRY/CATCH. Update.
5601 * elfread.c (elf_symtab_read): Update.
5602 * dwarf2read.c: Don't include bcache.h.
5603 * buildsym.c (buildsym_compunit::get_macro_table): Update.
5604 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
5605 (print_bcache_statistics, bcache_memory_used): Don't declare.
5606 (struct bcache): Move from bcache.c. Add constructor, destructor,
5607 methods. Rename all data members.
5608 * bcache.c (struct bcache): Move to bcache.h.
5609 (bcache::expand_hash_table): Rename from expand_hash_table.
5610 (bcache): Remove.
5611 (bcache::insert): Rename from bcache_full.
5612 (bcache::compare): Rename from bcache_compare.
5613 (bcache_xmalloc): Remove.
5614 (bcache::~bcache): Rename from bcache_xfree.
5615 (bcache::print_statistics): Rename from print_bcache_statistics.
5616 (bcache::memory_used): Rename from bcache_memory_used.
5617
fe726667
PA
56182019-03-07 Pedro Alves <palves@redhat.com>
5619
5620 * infrun.c (normal_stop): Also check for
5621 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
5622
7584bb30
AB
56232019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
5624
5625 * f-lang.c (value_from_host_double): Moved to...
5626 * value.c (value_from_host_double): ...here.
5627 * value.h (value_from_host_double): Declare.
5628 * guile/scm-math.c (vlscm_convert_typed_number): Use
5629 value_from_host_double.
5630 (vlscm_convert_number): Likewise.
5631 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
5632 * python/py-value.c (convert_value_from_python): Likewise.
5633
a7b1986e
TT
56342019-03-06 Tom Tromey <tom@tromey.com>
5635
5636 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
5637
0ccf4211
TT
56382019-03-06 Tom Tromey <tom@tromey.com>
5639
5640 * utils.h (free_current_contents): Don't declare.
5641 * utils.c (free_current_contents): Remove.
5642
fe7b42e5
TT
56432019-03-06 Tom Tromey <tom@tromey.com>
5644
5645 * top.c (quit_force): Update.
5646 * main.c (captured_command_loop): Update.
5647 * common/new-op.c (operator new): Update.
5648 * common/common-exceptions.c (struct catcher)
5649 <save_cleanup_chain>: Remove member.
5650 (exceptions_state_mc_init): Update.
5651 (exception_try_scope_entry): Return nullptr.
5652 (exception_try_scope_exit, exception_rethrow)
5653 (throw_exception_sjlj, throw_exception_cxx): Update.
5654 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
5655 (all_cleanups, do_cleanups, discard_cleanups)
5656 (discard_final_cleanups, save_cleanups, save_final_cleanups)
5657 (restore_cleanups, restore_final_cleanups): Don't declare.
5658 (do_final_cleanups): Remove parameter.
5659 * common/cleanups.c (cleanup_chain, make_cleanup)
5660 (make_cleanup_dtor, all_cleanups, do_cleanups)
5661 (discard_my_cleanups, discard_cleanups)
5662 (discard_final_cleanups, save_my_cleanups, save_cleanups)
5663 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
5664 (null_cleanup): Remove.
5665 (do_final_cleanups): Remove parameter.
5666
c6321f19
TT
56672019-03-06 Tom Tromey <tom@tromey.com>
5668
5669 * remote.c (remote_target::remote_parse_stop_reply): Use
5670 unique_xmalloc_ptr.
5671
61b30099
TT
56722019-03-06 Tom Tromey <tom@tromey.com>
5673
5674 * stabsread.c (struct stabs_field_info): Rename from field_info.
5675 <list, fnlist>: Add initializers.
5676 <obstack>: New member.
5677 (read_member_functions, read_struct_fields, read_baseclasses):
5678 Allocate on obstack. Don't use cleanups.
5679 (read_one_struct_field, read_member_functions, read_struct_fields)
5680 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
5681 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
5682 (read_struct_type): Update.
5683
6cceac94
TT
56842019-03-06 Tom Tromey <tom@tromey.com>
5685
5686 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
5687 * common/filestuff.h (make_cleanup_close): Don't declare.
5688 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
5689 Remove.
5690
72412762
TT
56912019-03-06 Tom Tromey <tom@tromey.com>
5692
5693 * solib-aix.c: Use make_scope_exit.
5694
2b6ff1c0
TT
56952019-03-06 Tom Tromey <tom@tromey.com>
5696
5697 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
5698 Use make_scope_exit.
5699
d01c5877
TT
57002019-03-06 Tom Tromey <tom@tromey.com>
5701
5702 * solib-svr4.c (disable_probes_interface): Remove parameter.
5703 (svr4_handle_solib_event): Use make_scope_exit.
5704
32603266
TT
57052019-03-06 Tom Tromey <tom@tromey.com>
5706
5707 * remote.c (struct stop_reply_deleter): Remove.
5708 (stop_reply_up): Update.
5709 (struct stop_reply): Derive from notif_event. Don't typedef.
5710 <regcache>: Now a std::vector.
5711 (stop_reply_xfree): Remove.
5712 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
5713 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
5714 (remote_target::discard_pending_stop_replies): Use delete.
5715 (remote_target::remote_parse_stop_reply): Update.
5716 (remote_target::process_stop_reply): Update.
5717 * remote-notif.h (struct notif_event): Add virtual destructor.
5718 Remove "dtr" member.
5719 (struct notif_client) <alloc_event>: Return a unique_ptr.
5720 (notif_event_xfree): Don't declare.
5721 (notif_event_up): New typedef.
5722 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
5723 (notif_event_xfree, do_notif_event_xfree): Remove.
5724 (remote_notif_state_xfree): Update.
5725
9799571e
TT
57262019-03-06 Tom Tromey <tom@tromey.com>
5727
5728 * infrun.c (displaced_step_clear_cleanup): Now a
5729 forward_scope_exit type.
5730 (displaced_step_prepare_throw): Update.
5731 (displaced_step_fixup): Update.
5732
09e3c4ca
TT
57332019-03-06 Tom Tromey <tom@tromey.com>
5734
5735 * inferior.h (class inferior): Update comment.
5736 * gdbthread.h (class thread_info): Update comment.
5737
e2a03548
TT
57382019-03-06 Joel Brobecker <brobecker@adacore.com>
5739 Tom Tromey <tom@tromey.com>
5740
5741 * stabsread.h (struct stab_section_list): Remove.
5742 (coffstab_build_psymtabs): Update.
5743 * dbxread.c (symbuf_sections): Now a std::vector.
5744 (sect_idx): New global.
5745 (fill_symbuf): Update.
5746 (coffstab_build_psymtabs): Change type of stabsects parameter.
5747 Update.
5748 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
5749 std::vector.
5750 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
5751 (coff_locate_sections): Update.
5752 (coff_symfile_read): Remove cleanups. Update.
5753 (init_stringtab): Add storage parameter.
5754 (free_stringtab, free_stringtab_cleanup): Remove.
5755 (init_lineno): Add storage parameter.
5756 (free_linetab, free_linetab_cleanup): Remove.
5757
b7e60d85
PA
57582019-03-06 Pedro Alves <palves@redhat.com>
5759
5760 * linux-fork.c (fork_info::clobber_regs): Delete.
5761 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
5762 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
5763 comment. Adjust.
5764 (scoped_switch_fork_info::scoped_switch_fork_info)
5765 (checkpoint_command, linux_fork_context): Adjust
5766 fork_save_infrun_state calls.
5767
e52c971f
PA
57682019-03-06 Pedro Alves <palves@redhat.com>
5769
5770 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
5771 (inf_has_multiple_threads): Return 'bool' and rewrite using
5772 inferior_info::threads().
5773
06974e6c
PA
57742019-03-06 Pedro Alves <palves@redhat.com>
5775
5776 * linux-fork.c: Include <list>.
5777 (fork_list): Now a std::list instance.
5778 (fork_info): Add ctor, dtor, and in-class initialize all fields.
5779 (forks_exist_p, find_last_fork): Adjust.
5780 (new_fork): Delete.
5781 (one_fork_p): New.
5782 (add_fork): Adjust.
5783 (free_fork): Delete, folded into fork_info::~fork_info().
5784 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
5785 Adjust.
5786 (init_fork_list): Delete.
5787 (linux_fork_killall, linux_fork_mourn_inferior)
5788 (linux_fork_detach, info_checkpoints_command): Adjust.
5789 (_initialize_linux_fork): No longer call init_fork_list.
5790
72f31aea
PA
57912019-03-06 Pedro Alves <palves@redhat.com>
5792
5793 * linux-fork.c (new_fork): New, split out of ...
5794 (add_fork): ... this. Return void. Move "first fork" special
5795 case from here, to ...
5796 (checkpoint_command): ... here.
5797 * linux-linux.h (add_fork): Return void.
5798
efbecbc1
AB
57992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5800
5801 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
5802
0841c79a
AB
58032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5804 Chris January <chris.january@arm.com>
5805 David Lecomber <david.lecomber@arm.com>
5806
5807 * f-exp.y: New token, UNOP_INTRINSIC.
5808 (exp): New pattern using UNOP_INTRINSIC token.
5809 (f77_keywords): Add 'abs' keyword.
5810 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
5811 (value_from_host_double): New function.
5812 (evaluate_subexp_f): Support UNOP_ABS.
5813
4a270568
AB
58142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5815
5816 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
5817 types.
5818
067630bd
AB
58192019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5820
5821 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
5822 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
5823 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
5824
3be47f7a
AB
58252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5826
5827 * f-exp.y (convert_to_kind_type): Handle more type kinds.
5828
4d00f5d8
AB
58292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5830 Chris January <chris.january@arm.com>
5831
5832 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
5833 * f-exp.y: Define 'KIND' token.
5834 (exp): New pattern for KIND expressions.
5835 (ptype): Handle types with a kind extension.
5836 (direct_abs_decl): Extend to spot kind extensions.
5837 (f77_keywords): Add 'kind' to the list.
5838 (push_kind_type): New function.
5839 (convert_to_kind_type): New function.
5840 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
5841 * parse.c (operator_length_standard): Likewise.
5842 * parser-defs.h (enum type_pieces): Add tp_kind.
5843 * std-operator.def: Add UNOP_KIND.
5844
e454224f
AB
58452019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5846
5847 * f-exp.y (f_parse): Set yydebug.
5848
9dad4a58
AB
58492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5850
5851 * f-lang.c (evaluate_subexp_f): New function.
5852 (exp_descriptor_f): New global.
5853 (f_language_defn): Use exp_descriptor_f instead of
5854 exp_descriptor_standard.
5855
c8f91604
AB
58562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5857
5858 * f-exp.y (struct token): Add comments.
5859 (dot_ops): Remove uppercase versions and the end marker.
5860 (f77_keywords): Likewise.
5861 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
5862 entries in the dot_ops array are case insensitive, and use
5863 strncasecmp to compare strings. Also some whitespace cleanup in
5864 this area. Similar for the f77_keywords array, except entries in
5865 this list might be case sensitive.
5866
dd9f2c76
AB
58672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5868
5869 * f-exp.y (struct f77_boolean_val): Add comments.
5870 (boolean_values): Remove uppercase versions, and end marker.
5871 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
5872 and use strncasecmp to achieve case insensitivity. Additionally,
5873 perform whitespace cleanup around this code.
5874
67a3048c
TT
58752019-03-06 Tom Tromey <tromey@adacore.com>
5876
5877 * remote-sim.c (gdbsim_target_open): Use result of
5878 gdb_argv::release.
5879
aa3cfbda
RB
58802019-03-06 Richard Bunt <richard.bunt@arm.com>
5881 Dirk Schubert <dirk.schubert@arm.com>
5882 Chris January <chris.january@arm.com>
5883
5884 * eval.c (evaluate_subexp_standard): Call Fortran argument
5885 wrapping logic.
5886 * f-lang.c (struct value): A value which can be passed into a
5887 Fortran function call.
5888 (fortran_argument_convert): Wrap Fortran arguments in a pointer
5889 where appropriate.
5890 (struct type): Value ready for a Fortran function call.
5891 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
5892 is needed.
5893 * f-lang.h (fortran_argument_convert): Declaration.
5894 (fortran_preserve_arg_pointer): Declaration.
5895 * infcall.c (value_arg_coerce): Call Fortran argument logic.
5896
ea38e5df
TT
58972019-03-05 Tom Tromey <tromey@adacore.com>
5898
5899 * python/py-prettyprint.c (print_string_repr): Remove #if.
5900 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
5901
06b5b831
TT
59022019-03-05 Tom Tromey <tromey@adacore.com>
5903
5904 * target.c (the_dummy_target): Move later. Change type to
5905 "dummy_target".
5906 (initialize_targets): Don't initialize the_dummy_target.
5907
edbd9e45
TT
59082019-03-05 Tom Tromey <tromey@adacore.com>
5909
5910 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
5911 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
5912
c119e040
TT
59132019-03-05 Tom Tromey <tromey@adacore.com>
5914
5915 * windows-nat.c (windows_nat_target::attach)
5916 (windows_nat_target::detach): Don't call gdb_flush.
5917 * valprint.c (generic_val_print, val_print, val_print_string):
5918 Don't call gdb_flush.
5919 * utils.c (defaulted_query): Don't call gdb_flush.
5920 * typeprint.c (print_type_scalar): Don't call gdb_flush.
5921 * target.c (target_announce_detach): Don't call gdb_flush.
5922 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
5923 * remote.c (extended_remote_target::attach): Don't call
5924 gdb_flush.
5925 * procfs.c (procfs_target::detach): Don't call gdb_flush.
5926 * printcmd.c (do_examine): Don't call gdb_flush.
5927 (info_display_command): Don't call gdb_flush.
5928 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
5929 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
5930 * memattr.c (info_mem_command): Don't call gdb_flush.
5931 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
5932 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
5933 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
5934 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
5935 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
5936 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
5937 (gnu_nat_target::detach): Don't call gdb_flush.
5938 * f-valprint.c (f_val_print): Don't call gdb_flush.
5939 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
5940 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
5941 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
5942 gdb_flush.
5943 * c-valprint.c (c_val_print): Don't call gdb_flush.
5944 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
5945
895dafa6
TT
59462019-03-05 Tom Tromey <tromey@adacore.com>
5947
5948 * varobj.c (update_dynamic_varobj_children): Update.
5949 (install_default_visualizer): Use reset, not release.
5950 * value.c (set_internalvar): Update.
5951 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
5952 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
5953 ATTRIBUTE_UNUSED_RESULT.
5954
88a774b9
TT
59552019-03-05 Tom Tromey <tromey@adacore.com>
5956
5957 * remote.c (class scoped_remote_fd) <release>: Add
5958 ATTRIBUTE_UNUSED_RESULT.
5959
4e4a8b93
TT
59602019-03-05 Tom Tromey <tromey@adacore.com>
5961
5962 * macroexp.c (struct macro_buffer) <release>: Add
5963 ATTRIBUTE_UNUSED_RESULT.
5964
083eef1f
TT
59652019-03-05 Tom Tromey <tromey@adacore.com>
5966
5967 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
5968 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
5969 ATTRIBUTE_UNUSED_RESULT.
5970
3cabd438
TT
59712019-03-05 Tom Tromey <tromey@adacore.com>
5972
5973 * common/scoped_fd.h (class scoped_fd) <release>: Add
5974 ATTRIBUTE_UNUSED_RESULT.
5975
41e3300a
TT
59762019-03-05 Tom Tromey <tromey@adacore.com>
5977
5978 * parser-defs.h (struct parser_state) <release>: Add
5979 ATTRIBUTE_UNUSED_RESULT.
5980
18cb7c9f
TT
59812019-03-05 Tom Tromey <tromey@adacore.com>
5982
5983 * utils.h (class gdb_argv) <release>: Add
5984 ATTRIBUTE_UNUSED_RESULT.
5985 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
5986
41fa577f
EZ
59872019-03-02 Eli Zaretskii <eliz@gnu.org>
5988
a6a4b2c6
EZ
5989 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
5990 for-loop range, to avoid compiler warnings.
5991
5992 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
5993 avoid compiler warnings about unused variables.
5994
742a7df5
EZ
5995 * NEWS: Mention end of support for native debugging on MS-Windows
5996 before XP.
5997
41fa577f
EZ
5998 PR gdb/24292
5999 * common/netstuff.c:
6000 * gdbserver/gdbreplay.c
6001 * gdbserver/remote-utils.c:
6002 * ser-tcp.c:
6003 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
6004 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
6005 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
6006 'getaddrinfo' and 'freeaddrinfo' were not available before
6007 Windows XP, and mingw.org's MinGW headers by default define
6008 _WIN32_WINNT to 0x500.
6009
827f438f
GB
60102019-03-01 Gary Benson <gbenson@redhat.com>
6011
6012 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
6013
92137da0
RO
60142019-02-28 Brian Vandenberg <phantall@gmail.com>
6015 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6016
6017 PR gdb/8527
6018 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
6019 set_sigint_trap, clear_sigint_trap.
6020
799efbe8
PW
60212019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6022
6023 * target.c (target_detach): Clear the regcache and the
6024 frame cache.
6025
8ed25214
PA
60262019-02-27 Pedro Alves <palves@redhat.com>
6027
6028 * utils.c (set_screen_size): When we cap the height/width sizes,
6029 tweak the corresponding command variable to show "unlimited":
6030
23031e31
SJ
60312019-02-27 Saagar Jha <saagar@saagarjha.com>
6032 Pedro Alves <palves@redhat.com>
6033
6034 * utils.c (set_screen_size): Reduce "infinite" rows and columns
6035 before calling rl_set_screen_size.
6036
6c28e44a
TT
60372019-02-27 Tom Tromey <tromey@adacore.com>
6038
6039 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
6040 define.
6041 * python/py-value.c: Remove Python 2.4 workaround.
6042 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
6043 workaround.
6044 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
6045 Python 2.4 workaround.
6046 * python/python-internal.h: Remove Python 2.4 comment.
6047 (Py_ssize_t): Don't define.
6048 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
6049 (gdb_Py_DECREF): Remove Python 2.4 workaround.
6050 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
6051 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
6052 * python/python.c (do_start_initialization): Remove Python 2.4
6053 workaround.
6054 * python/py-prettyprint.c (class dummy_python_frame): Remove.
6055 (print_children): Remove Python 2.4 workaround.
6056 * python/py-inferior.c (buffer_procs): Remove Python 2.4
6057 workaround.
6058 (CHARBUFFERPROC_NAME): Remove.
6059 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
6060 Python 2.4 workaround.
6061
2c3fc25d 60622019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 6063
2c3fc25d
KB
6064 * NEWS: Note minimum Python version.
6065
6ca62222
KB
60662019-02-27 Kevin Buettner <kevinb@redhat.com>
6067
6068 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
6069 code from these functions. Remove corresponding ifdefs. Use
6070 Py_buffer_up instead of explicit calls to PyBuffer_Release.
6071 Remove gotos and target of gotos.
6072 (infpy_search_memory): Likewise.
6073
f4bc7d2c
AB
60742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6075
6076 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
6077 (hppa_gdbarch_init): Don't register deleted functions with
6078 gdbarch.
6079
9734a586
AB
60802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6081
6082 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
6083 (h8300_unwind_sp): Delete.
6084 (h8300_dummy_id): Delete.
6085 (h8300_gdbarch_init): Don't register deleted functions with
6086 gdbarch.
6087
68b867f3
AB
60882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6089
6090 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
6091 (ft32_unwind_pc): Delete.
6092 (ft32_unwind_sp): Delete.
6093 (ft32_gdbarch_init): Don't register deleted functions with
6094 gdbarch.
6095
2fbe7ad0
AB
60962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6097
6098 * gdb/frv-tdep.c (frv_dummy_id): Delete.
6099 (frv_unwind_pc): Delete.
6100 (frv_unwind_sp): Delete.
6101 (frv_gdbarch_init): Don't register deleted functions with
6102 gdbarch.
6103
76055cbe
AB
61042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6105
6106 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
6107 (riscv_unwind_pc): Delete.
6108 (riscv_unwind_sp): Delete.
6109 (riscv_gdbarch_init): Don't register deleted functions with
6110 gdbarch.
6111
4133e5a1
AB
61122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6113
6114 * gdb/csky-tdep.c (csky_dummy_id): Delete.
6115 (csky_unwind_pc): Delete.
6116 (csky_unwind_sp): Delete.
6117 (csky_gdbarch_init): Don't register deleted functions with
6118 gdbarch.
6119
8010f576
AB
61202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6121
6122 * gdb/cris-tdep.c (cris_dummy_id): Delete.
6123 (cris_unwind_pc): Delete.
6124 (cris_unwind_sp): Delete.
6125 (cris_gdbarch_init): Don't register deleted functions with
6126 gdbarch.
6127
b56bf084
AB
61282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6129
6130 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
6131 (bfin_unwind_pc): Delete.
6132 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
6133
a19a650f
AB
61342019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6135
6136 * gdb/arm-tdep.c (arm_dummy_id): Delete.
6137 (arm_unwind_pc): Delete.
6138 (arm_unwind_sp): Delete.
6139 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
6140
f8278c3c
AB
61412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6142
6143 * gdb/arc-tdep.c (arc_dummy_id): Delete.
6144 (arc_unwind_pc): Delete.
6145 (arc_unwind_sp): Delete.
6146 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
6147
480e46cf
AB
61482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6149
6150 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
6151 (alpha_unwind_pc): Delete.
6152 (alpha_gdbarch_init): Don't register deleted functions with
6153 gdbarch.
6154
7a995095
AB
61552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6156
6157 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
6158 (aarch64_unwind_pc): Delete.
6159 (aarch64_unwind_sp): Delete.
6160 (aarch64_gdbarch_init): Don't register deleted functions with
6161 gdbarch.
6162
bf9a735e
AB
61632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6164
6165 * gdbtypes.c (type_align): Don't consider static members when
6166 computing structure alignment.
6167
5561fc30
AB
61682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6169
6170 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
6171 return 0 for other types.
6172 * arch-utils.c (default_type_align): Always return 0.
6173 * gdbarch.h: Regenerate.
6174 * gdbarch.sh (type_align): Extend comment.
6175 * gdbtypes.c (type_align): Add additional comments, always call
6176 gdbarch_type_align before applying the default rules.
6177 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
6178 generic code will then apply a suitable default.
6179 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
6180 types, return 0 for other types.
6181
9335e75a
JB
61822019-02-27 Joel Brobecker <brobecker@adacore.com>
6183
6184 * NEWS: Create a new section for the next release branch.
6185 Rename the section of the current branch, now that it has
6186 been cut.
6187
3d34d8de
JB
61882019-02-27 Joel Brobecker <brobecker@adacore.com>
6189
6190 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
6191 * version.in: Bump version to 8.3.50.DATE-git.
6192
143420fb
SM
61932019-02-26 Simon Marchi <simon.marchi@efficios.com>
6194
6195 * aix-thread.c (ptid_cmp): Remove unused variable.
6196 (get_signaled_thread): Likewise.
6197 (store_regs_user_thread): Likewise.
6198 (store_regs_kernel_thread): Likewise.
6199 (fetch_regs_kernel_thread): Remove shadowed variable.
6200
172fb711
AB
62012019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
6202
6203 * features/riscv/32bit-cpu.xml: Add register numbers.
6204 * features/riscv/32bit-fpu.c: Regenerate.
6205 * features/riscv/32bit-fpu.xml: Add register numbers.
6206 * features/riscv/64bit-cpu.xml: Add register numbers.
6207 * features/riscv/64bit-fpu.c: Regenerate.
6208 * features/riscv/64bit-fpu.xml: Add register numbers.
6209
26c89782
KB
62102019-02-26 Kevin Buettner <kevinb@redhat.com>
6211
af54ade9 6212 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
6213 * python/py-value.c (convert_buffer_and_type_to_value): New
6214 function.
6215 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
6216 Add support for handling an optional second argument. Call
6217 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
6218 * python/python-internal.h (Py_buffer_deleter): New struct.
6219 (Py_buffer_up): New typedef.
6220
0f58c9e8
JB
62212019-02-25 John Baldwin <jhb@FreeBSD.org>
6222
6223 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
6224 instead of releasing ownership.
6225
0a0f4c01
JR
62262019-02-25 Jordan Rupprecht <rupprecht@google.com>
6227
6228 * dwarf2read.c (open_and_init_dwp_file): Call
6229 elf_numsections instead of bfd_count_sections to initialize
6230 dwp_file->num_sections.
6231
cd5a152c
TT
62322019-02-25 Tom Tromey <tromey@adacore.com>
6233
6234 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
6235
8a6a8513
SDJ
62362019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
6237
6238 * gcore.in: Add '--readnever' option when invoking GDB.
6239
04dcda9c
SM
62402019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6241
6242 * MAINTAINERS: Update my email address.
6243
07bc701d
SM
62442019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6245
6246 * build-id.c (build_id_to_debug_bfd_1): New function.
6247 (build_id_to_debug_bfd): Look for separate debug file in
6248 sysroot.
6249
c6f4a5d0
AB
62502019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
6251
6252 * gdbarch.sh: Update the copyright year range that is placed into
6253 generated files.
6254
9600246d
KS
62552019-02-22 Keith Seitz <keiths@redhat.com>
6256
6257 PR symtab/23853
6258 * linespec.c (create_sals_line_offset): Search for the default
6259 symtab's filename instead of its fullname.
6260
7557a514
AH
62612019-02-21 Alan Hayward <alan.hayward@arm.com>
6262
6263 * NEWS: Update style defaults.
6264
ee2bcb0c
AH
62652019-02-21 Alan Hayward <alan.hayward@arm.com>
6266
6267 * main.c (captured_main_1): Disable styling in batch mode.
6268
0c95f9ed
TT
62692019-02-20 Tom Tromey <tom@tromey.com>
6270
6271 * symtab.c (symtab_symbol_info): Fix typos.
6272
c763b894
TT
62732019-02-20 Tom Tromey <tromey@adacore.com>
6274
6275 * findcmd.c (_initialize_mem_search): Use upper case for
6276 metasyntactic variables.
6277
0ef8a082
AH
62782019-02-20 Alan Hayward <alan.hayward@arm.com>
6279
6280 * aarch64-tdep.c (aarch64_add_reggroups): New function.
6281 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
6282
6caa91b6
SM
62832019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
6284
6285 * top.h (source_file_name): Change to std::string.
6286 * top.c (source_file_name): Likewise.
6287 (command_line_input): Adjust.
6288 * cli/cli-script.c (script_from_file): Adjust.
6289
98814c6c
TT
62902019-02-19 Tom Tromey <tromey@adacore.com>
6291
6292 * ravenscar-thread.c
6293 (ravenscar_thread_target::update_thread_list): Don't call
6294 ada_build_task_list.
6295 * ada-lang.h (ada_build_task_list): Don't declare.
6296 * ada-tasks.c (struct ada_tasks_inferior_data)
6297 <task_list_valid_p>: Now bool.
6298 (read_known_tasks, ada_task_list_changed)
6299 (ada_tasks_invalidate_inferior_data): Update.
6300 (read_known_tasks_array): Return bool.
6301 (read_known_tasks_list): Likewise.
6302 (read_known_tasks): Return void.
6303 (ada_build_task_list): Now static.
6304
70cd633e
AB
63052019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
6306
6307 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
6308 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
6309
040b3e95
PW
63102019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6311
6312 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
6313 variant for ada_tasks_pspace_data_handle and
6314 ada_tasks_inferior_data_handle.
6315 (ada_tasks_pspace_data_cleanup): New function.
6316 (ada_tasks_inferior_data_cleanup): New function.
6317
9409233b
TT
63182019-02-17 Tom Tromey <tom@tromey.com>
6319
6320 * macrotab.h (macro_source_fullname): Return a std::string.
6321 * macrotab.c (macro_include, check_for_redefinition)
6322 (macro_undef, macro_lookup_definition, foreach_macro)
6323 (foreach_macro_in_scope): Update.
6324 (macro_source_fullname): Return a std::string.
6325 * macrocmd.c (show_pp_source_pos): Update.
6326
6506371f
TT
63272019-02-17 Tom Tromey <tom@tromey.com>
6328
6329 * macrocmd.c (show_pp_source_pos): Style the file names.
6330
0c820d67
TT
63312019-02-17 Tom Tromey <tom@tromey.com>
6332
6333 PR tui/24197:
6334 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
6335
a0087920
TT
63362019-02-17 Tom Tromey <tom@tromey.com>
6337
6338 * ada-lang.c (user_select_syms): Use filtered printing.
6339 * utils.c (wrap_style): New global.
6340 (desired_style): Remove.
6341 (emit_style_escape): Add stream parameter.
6342 (set_output_style, reset_terminal_style, prompt_for_continue):
6343 Update.
6344 (flush_wrap_buffer): Only flush gdb_stdout.
6345 (wrap_here): Set wrap_style.
6346 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
6347 treat escape sequences as a character. Change when wrap buffer is
6348 flushed.
6349 (fputs_styled): Do not set the output style when the default is
6350 requested.
6351 * ui-style.h (struct ui_file_style) <is_default>: New method.
6352 * source.c (print_source_lines_base): Emit escape sequences in one
6353 piece.
6354
75ba10dc
JB
63552019-02-17 Joel Brobecker <brobecker@adacore.com>
6356
6357 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
6358 integers and enumeration types.
6359
a2cd4f14
JB
63602019-02-17 Joel Brobecker <brobecker@adacore.com>
6361
6362 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
6363 instead of lookup_symbol_in_language
6364 (do_exact_match): New function.
6365 (ada_get_symbol_name_matcher): Return do_exact_match when
6366 doing a verbatim match.
6367
485b851b
TT
63682019-02-15 Tom Tromey <tromey@adacore.com>
6369
6370 * ravenscar-thread.c (ravenscar_thread_target::resume)
6371 (ravenscar_thread_target::wait): Special case wildcard requests.
6372
0b790b1e
TT
63732019-02-15 Tom Tromey <tromey@adacore.com>
6374
6375 * ravenscar-thread.c (base_ptid): Remove.
6376 (struct ravenscar_thread_target) <close>: New method.
6377 <m_base_ptid>: New member.
6378 <update_inferior_ptid, active_task, task_is_currently_active,
6379 runtime_initialized>: Declare methods.
6380 <ravenscar_thread_target>: Add constructor.
6381 (ravenscar_thread_target::task_is_currently_active)
6382 (ravenscar_thread_target::update_inferior_ptid)
6383 (ravenscar_runtime_initialized): Rename. Now methods.
6384 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
6385 (ravenscar_thread_target::update_thread_list): Update.
6386 (ravenscar_thread_target::active_task): Now method.
6387 (ravenscar_thread_target::store_registers)
6388 (ravenscar_thread_target::prepare_to_store)
6389 (ravenscar_thread_target::prepare_to_store)
6390 (ravenscar_thread_target::mourn_inferior): Update.
6391 (ravenscar_inferior_created): Use "new" to create target.
6392 (ravenscar_thread_target::get_ada_task_ptid): Update.
6393 (_initialize_ravenscar): Don't initialize base_ptid.
6394 (ravenscar_ops): Remove global.
6395
dea57a62
TT
63962019-02-15 Tom Tromey <tromey@adacore.com>
6397
6398 * target.h (push_target): Declare new overload.
6399 * target.c (push_target): New overload, taking an rvalue reference.
6400 * remote.c (remote_target::open_1): Use push_target overload.
6401 * corelow.c (core_target_open): Use push_target overload.
6402
989f3c58
TT
64032019-02-15 Tom Tromey <tromey@adacore.com>
6404
6405 * ravenscar-thread.c (is_ravenscar_task)
6406 (ravenscar_task_is_currently_active): Return bool.
6407 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
6408 (_initialize_ravenscar): Remove "(void)".
6409 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
6410 Return bool.
6411
6cbcc006
TT
64122019-02-15 Tom Tromey <tromey@adacore.com>
6413
6414 * ravenscar-thread.c (ravenscar_runtime_initializer)
6415 (has_ravenscar_runtime, get_running_thread_id)
6416 (ravenscar_thread_target::resume): Fix indentation.
6417
7657f14d
TT
64182019-02-15 Tom Tromey <tromey@adacore.com>
6419
6420 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
6421 from ravenscar_arch_ops.
6422 (sparc_ravenscar_ops::fetch_registers)
6423 (sparc_ravenscar_ops::store_registers): Now methods.
6424 (sparc_ravenscar_prepare_to_store): Remove.
6425 (sparc_ravenscar_ops): Redefine.
6426 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
6427 methods and destructor. Remove members.
6428 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
6429 (ravenscar_thread_target::store_registers)
6430 (ravenscar_thread_target::prepare_to_store): Update.
6431 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
6432 Remove.
6433 (struct ppc_ravenscar_powerpc_ops): Derive from
6434 ravenscar_arch_ops.
6435 (ppc_ravenscar_powerpc_ops::fetch_registers)
6436 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
6437 (ppc_ravenscar_powerpc_ops): Redefine.
6438 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
6439 (ppc_ravenscar_e500_ops::fetch_registers)
6440 (ppc_ravenscar_e500_ops::store_registers): Now methods.
6441 (ppc_ravenscar_e500_ops): Redefine.
6442 * aarch64-ravenscar-thread.c
6443 (aarch64_ravenscar_generic_prepare_to_store): Remove.
6444 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
6445 (aarch64_ravenscar_fetch_registers)
6446 (aarch64_ravenscar_store_registers): Now methods.
6447 (aarch64_ravenscar_ops): Redefine.
6448
5b6ea500
TT
64492019-02-15 Tom Tromey <tromey@adacore.com>
6450
6451 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
6452 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6453 (ravenscar_thread_target::stopped_by_watchpoint)
6454 (ravenscar_thread_target::stopped_data_address)
6455 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
6456
e397fd39
TT
64572019-02-15 Tom Tromey <tromey@adacore.com>
6458
6459 * ravenscar-thread.c: Fix some typos.
6460
cc12f4a8
TT
64612019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6462 Tom Tromey <tromey@adacore.com>
6463
6464 * ada-lang.c (ada_exception_sal): Change addr_string to a
6465 std::string.
6466 (create_ada_exception_catchpoint): Update.
6467
5f486660
TT
64682019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6469 Tom Tromey <tromey@adacore.com>
6470
6471 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
6472 (bp_location_ops): Remove.
6473 (base_breakpoint_allocate_location): Update.
6474 (free_bp_location): Update.
6475 * ada-lang.c (class ada_catchpoint_location)
6476 <ada_catchpoint_location>: Remove ops parameter.
6477 (ada_catchpoint_location_dtor): Remove.
6478 (ada_catchpoint_location_ops): Remove.
6479 (allocate_location_exception): Update.
6480 * breakpoint.h (struct bp_location_ops): Remove.
6481 (class bp_location) <bp_location>: Remove bp_location_ops
6482 parameter.
6483 <~bp_location>: Add destructor.
6484 <ops>: Remove.
6485
b671c7fb
TS
64862019-02-14 Thomas Schwinge <thomas@codesourcery.com>
6487 Pedro Alves <palves@redhat.com>
6488
6489 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
6490 'PATH_MAX'.
6491
8071c5ce
DM
64922019-02-14 David Michael <fedora.dm0@gmail.com>
6493 Samuel Thibault <samuel.thibault@gnu.org>
6494 Thomas Schwinge <thomas@codesourcery.com>
6495
6496 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
6497 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
6498
b1041ae0
TS
64992019-02-14 Thomas Schwinge <thomas@codesourcery.com>
6500
924514e1
TS
6501 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
6502 (check_empty): Use "const char *".
6503
c29ee8d4
TS
6504 * gnu-nat.c (gnu_nat_target::detach): Instead of
6505 'detach_inferior (pid)' call
6506 'detach_inferior (find_inferior_pid (pid))'.
6507
6c6ef69f
TS
6508 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
6509 'nat/fork-inferior.o'.
6510 * gnu-nat.c: #include "nat/fork-inferior.h".
6511
2d0a338c
TS
6512 * gnu-nat.c (gnu_nat_target::detach): Instead of
6513 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
6514 * gnu-nat.h: #include "inf-child.h".
6515 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
6516 'i386_gnu_nat_target::fetch_registers'.
6517 (gnu_store_registers): Rename/move to
6518 'i386_gnu_nat_target::store_registers'.
6519
cabb5f06
TS
6520 * config/i386/nm-i386gnu.h: Don't "#include" any files.
6521 * gnu-nat.h (mach_thread_info): New function.
6522 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
6523
b1041ae0
TS
6524 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
6525
2988d01e
KF
65262019-02-14 Frederic Konrad <konrad@adacore.com>
6527
6528 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
6529
c559d709
JB
65302019-02-14 Joel Brobecker <brobecker@adacore.com>
6531
6532 * windows-nat.c (windows_add_thread): Add new parameter
6533 "main_thread_p" with default value set to false. Update
6534 function documentation as well as all callers.
6535 (windows_delete_thread): Likewise.
6536 (fake_create_process): Update call to windows_add_thread.
6537 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
6538 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
6539 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
6540 call to windows_delete_thread.
6541
007024cc
SM
65422019-02-13 Simon Marchi <simon.marchi@ericsson.com>
6543
6544 * MAINTAINERS: Add Andrew Burgess as global maintainer.
6545
f62318e9
JB
65462019-02-12 John Baldwin <jhb@FreeBSD.org>
6547
6548 * symfile.c (find_separate_debug_file): Use canonical path of
6549 sysroot with child_path instead of gdb_sysroot if it is valid.
6550
cd4b7848
JB
65512019-02-12 John Baldwin <jhb@FreeBSD.org>
6552
6553 * symfile.c (find_separate_debug_file): Use child_path to
6554 determine if an object file is under a sysroot.
6555
efac4bfe
JB
65562019-02-12 John Baldwin <jhb@FreeBSD.org>
6557
6558 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6559 unittests/child-path-selftests.c.
6560 * common/pathstuff.c (child_path): New function.
6561 * common/pathstuff.h (child_path): New prototype.
6562 * unittests/child-path-selftests.c: New file.
6563
402d2bfe
JB
65642019-02-12 John Baldwin <jhb@FreeBSD.org>
6565
6566 * symfile.c (find_separate_debug_file): Look for separate debug
6567 files in debug directories under the sysroot.
6568
1ed9f74e
PW
65692019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6570
6571 * symtab.h (struct minimal_symbol data_p): New const method.
6572 (struct minimal_symbol text_p): Likewise.
6573 * symtab.c (output_source_filename): Use file name style
6574 to print file name.
6575 (print_symbol_info): Likewise.
6576 (print_msymbol_info): Use address style to print addresses.
6577 Use function name style to print executable text symbols.
6578 (expand_symtab_containing_pc): Use data_p.
6579 (find_pc_sect_compunit_symtab): Likewise.
6580
2636d81d
PW
65812019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6582
6583 * breakpoint.c (describe_other_breakpoints): Use address style
6584 to print addresses.
6585 (say_where): Likewise.
6586
ac8c53cc
PW
65872019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6588
6589 * ada-typeprint.c (print_func_type): Print function name
6590 style to print function name.
6591 * c-typeprint.c (c_print_type_1): Likewise.
6592
ea638c43
AH
65932019-02-11 Alan Hayward <alan.hayward@arm.com>
6594
6595 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
6596 for execve.
6597
ab759ca8
PW
65982019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6599
6600 * c-exp.y (direct_abs_decl): Use emplace_back to record the
6601 type_stack.
6602
aff29d1c
JB
66032019-02-10 Joel Brobecker <brobecker@adacore.com>
6604
6605 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
6606 TYPE_CODE_REF types.
6607
617126bc
JW
66082019-02-08 Jim Wilson <jimw@sifive.com>
6609
6610 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
6611 (riscv_linux_fregset): New.
6612 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
6613
46e3ed7f
TT
66142019-02-07 Tom Tromey <tom@tromey.com>
6615
6616 * thread.c (thread_cancel_execution_command): Update.
6617 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
6618 methods.
6619 (struct thread_fsm_ops): Remove.
6620 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
6621 (thread_fsm_should_stop, thread_fsm_return_value)
6622 (thread_fsm_set_finished, thread_fsm_finished_p)
6623 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
6624 Don't declare.
6625 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
6626 * infrun.c (clear_proceed_status_thread)
6627 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
6628 (print_stop_event): Update.
6629 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
6630 Add constructor.
6631 (step_command_fsm_ops): Remove.
6632 (new_step_command_fsm): Remove.
6633 (step_1): Update.
6634 (step_command_fsm::should_stop): Rename from
6635 step_command_fsm_should_stop.
6636 (step_command_fsm::clean_up): Rename from
6637 step_command_fsm_clean_up.
6638 (step_command_fsm::do_async_reply_reason): Rename from
6639 step_command_fsm_async_reply_reason.
6640 (struct until_next_fsm): Inherit from thread_fsm. Add
6641 constructor.
6642 (until_next_fsm_ops): Remove.
6643 (new_until_next_fsm): Remove.
6644 (until_next_fsm::should_stop): Rename from
6645 until_next_fsm_should_stop.
6646 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
6647 (until_next_fsm::do_async_reply_reason): Rename from
6648 until_next_fsm_async_reply_reason.
6649 (struct finish_command_fsm): Inherit from thread_fsm. Add
6650 constructor. Change type of breakpoint.
6651 (finish_command_fsm_ops): Remove.
6652 (new_finish_command_fsm): Remove.
6653 (finish_command_fsm::should_stop): Rename from
6654 finish_command_fsm_should_stop.
6655 (finish_command_fsm::clean_up): Rename from
6656 finish_command_fsm_clean_up.
6657 (finish_command_fsm::return_value): Rename from
6658 finish_command_fsm_return_value.
6659 (finish_command_fsm::do_async_reply_reason): Rename from
6660 finish_command_fsm_async_reply_reason.
6661 (finish_command): Update.
6662 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
6663 Add constructor.
6664 (call_thread_fsm_ops): Remove.
6665 (call_thread_fsm::call_thread_fsm): Rename from
6666 new_call_thread_fsm.
6667 (call_thread_fsm::should_stop): Rename from
6668 call_thread_fsm_should_stop.
6669 (call_thread_fsm::should_notify_stop): Rename from
6670 call_thread_fsm_should_notify_stop.
6671 (run_inferior_call, call_function_by_hand_dummy): Update.
6672 * cli/cli-interp.c (should_print_stop_to_console): Update.
6673 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
6674 Add constructor. Change type of location_breakpoint,
6675 caller_breakpoint.
6676 (until_break_fsm_ops): Remove.
6677 (new_until_break_fsm): Remove.
6678 (until_break_fsm::should_stop): Rename from
6679 until_break_fsm_should_stop.
6680 (until_break_fsm::clean_up): Rename from
6681 until_break_fsm_clean_up.
6682 (until_break_fsm::do_async_reply_reason): Rename from
6683 until_break_fsm_async_reply_reason.
6684 (until_break_command): Update.
6685 * thread-fsm.c: Remove.
6686 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
6687
1a5c2598
TT
66882019-02-07 Tom Tromey <tom@tromey.com>
6689
6690 * yy-remap.h: Add include guard.
6691 * xtensa-tdep.h: Add include guard.
6692 * xcoffread.h: Rename include guard.
6693 * varobj-iter.h: Add include guard.
6694 * tui/tui.h: Rename include guard.
6695 * tui/tui-winsource.h: Rename include guard.
6696 * tui/tui-wingeneral.h: Rename include guard.
6697 * tui/tui-windata.h: Rename include guard.
6698 * tui/tui-win.h: Rename include guard.
6699 * tui/tui-stack.h: Rename include guard.
6700 * tui/tui-source.h: Rename include guard.
6701 * tui/tui-regs.h: Rename include guard.
6702 * tui/tui-out.h: Rename include guard.
6703 * tui/tui-layout.h: Rename include guard.
6704 * tui/tui-io.h: Rename include guard.
6705 * tui/tui-hooks.h: Rename include guard.
6706 * tui/tui-file.h: Rename include guard.
6707 * tui/tui-disasm.h: Rename include guard.
6708 * tui/tui-data.h: Rename include guard.
6709 * tui/tui-command.h: Rename include guard.
6710 * tic6x-tdep.h: Add include guard.
6711 * target/waitstatus.h: Rename include guard.
6712 * target/wait.h: Rename include guard.
6713 * target/target.h: Rename include guard.
6714 * target/resume.h: Rename include guard.
6715 * target-float.h: Rename include guard.
6716 * stabsread.h: Add include guard.
6717 * rs6000-tdep.h: Add include guard.
6718 * riscv-fbsd-tdep.h: Add include guard.
6719 * regformats/regdef.h: Rename include guard.
6720 * record.h: Rename include guard.
6721 * python/python.h: Rename include guard.
6722 * python/python-internal.h: Rename include guard.
6723 * python/py-stopevent.h: Rename include guard.
6724 * python/py-ref.h: Rename include guard.
6725 * python/py-record.h: Rename include guard.
6726 * python/py-record-full.h: Rename include guard.
6727 * python/py-record-btrace.h: Rename include guard.
6728 * python/py-instruction.h: Rename include guard.
6729 * python/py-events.h: Rename include guard.
6730 * python/py-event.h: Rename include guard.
6731 * procfs.h: Add include guard.
6732 * proc-utils.h: Add include guard.
6733 * p-lang.h: Add include guard.
6734 * or1k-tdep.h: Rename include guard.
6735 * observable.h: Rename include guard.
6736 * nto-tdep.h: Rename include guard.
6737 * nat/x86-linux.h: Rename include guard.
6738 * nat/x86-linux-dregs.h: Rename include guard.
6739 * nat/x86-gcc-cpuid.h: Add include guard.
6740 * nat/x86-dregs.h: Rename include guard.
6741 * nat/x86-cpuid.h: Rename include guard.
6742 * nat/ppc-linux.h: Rename include guard.
6743 * nat/mips-linux-watch.h: Rename include guard.
6744 * nat/linux-waitpid.h: Rename include guard.
6745 * nat/linux-ptrace.h: Rename include guard.
6746 * nat/linux-procfs.h: Rename include guard.
6747 * nat/linux-osdata.h: Rename include guard.
6748 * nat/linux-nat.h: Rename include guard.
6749 * nat/linux-namespaces.h: Rename include guard.
6750 * nat/linux-btrace.h: Rename include guard.
6751 * nat/glibc_thread_db.h: Rename include guard.
6752 * nat/gdb_thread_db.h: Rename include guard.
6753 * nat/gdb_ptrace.h: Rename include guard.
6754 * nat/fork-inferior.h: Rename include guard.
6755 * nat/amd64-linux-siginfo.h: Rename include guard.
6756 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
6757 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
6758 * nat/aarch64-linux.h: Rename include guard.
6759 * nat/aarch64-linux-hw-point.h: Rename include guard.
6760 * mn10300-tdep.h: Add include guard.
6761 * mips-linux-tdep.h: Add include guard.
6762 * mi/mi-parse.h: Rename include guard.
6763 * mi/mi-out.h: Rename include guard.
6764 * mi/mi-main.h: Rename include guard.
6765 * mi/mi-interp.h: Rename include guard.
6766 * mi/mi-getopt.h: Rename include guard.
6767 * mi/mi-console.h: Rename include guard.
6768 * mi/mi-common.h: Rename include guard.
6769 * mi/mi-cmds.h: Rename include guard.
6770 * mi/mi-cmd-break.h: Rename include guard.
6771 * m2-lang.h: Add include guard.
6772 * location.h: Rename include guard.
6773 * linux-record.h: Rename include guard.
6774 * linux-nat.h: Add include guard.
6775 * linux-fork.h: Add include guard.
6776 * i386-darwin-tdep.h: Rename include guard.
6777 * hppa-linux-offsets.h: Add include guard.
6778 * guile/guile.h: Rename include guard.
6779 * guile/guile-internal.h: Rename include guard.
6780 * gnu-nat.h: Rename include guard.
6781 * gdb-stabs.h: Rename include guard.
6782 * frv-tdep.h: Add include guard.
6783 * f-lang.h: Add include guard.
6784 * event-loop.h: Add include guard.
6785 * darwin-nat.h: Rename include guard.
6786 * cp-abi.h: Rename include guard.
6787 * config/sparc/nm-sol2.h: Rename include guard.
6788 * config/nm-nto.h: Rename include guard.
6789 * config/nm-linux.h: Add include guard.
6790 * config/i386/nm-i386gnu.h: Rename include guard.
6791 * config/djgpp/nl_types.h: Rename include guard.
6792 * config/djgpp/langinfo.h: Rename include guard.
6793 * compile/gcc-cp-plugin.h: Add include guard.
6794 * compile/gcc-c-plugin.h: Add include guard.
6795 * compile/compile.h: Rename include guard.
6796 * compile/compile-object-run.h: Rename include guard.
6797 * compile/compile-object-load.h: Rename include guard.
6798 * compile/compile-internal.h: Rename include guard.
6799 * compile/compile-cplus.h: Rename include guard.
6800 * compile/compile-c.h: Rename include guard.
6801 * common/xml-utils.h: Rename include guard.
6802 * common/x86-xstate.h: Rename include guard.
6803 * common/version.h: Rename include guard.
6804 * common/vec.h: Rename include guard.
6805 * common/tdesc.h: Rename include guard.
6806 * common/selftest.h: Rename include guard.
6807 * common/scoped_restore.h: Rename include guard.
6808 * common/scoped_mmap.h: Rename include guard.
6809 * common/scoped_fd.h: Rename include guard.
6810 * common/safe-iterator.h: Rename include guard.
6811 * common/run-time-clock.h: Rename include guard.
6812 * common/refcounted-object.h: Rename include guard.
6813 * common/queue.h: Rename include guard.
6814 * common/ptid.h: Rename include guard.
6815 * common/print-utils.h: Rename include guard.
6816 * common/preprocessor.h: Rename include guard.
6817 * common/pathstuff.h: Rename include guard.
6818 * common/observable.h: Rename include guard.
6819 * common/netstuff.h: Rename include guard.
6820 * common/job-control.h: Rename include guard.
6821 * common/host-defs.h: Rename include guard.
6822 * common/gdb_wait.h: Rename include guard.
6823 * common/gdb_vecs.h: Rename include guard.
6824 * common/gdb_unlinker.h: Rename include guard.
6825 * common/gdb_unique_ptr.h: Rename include guard.
6826 * common/gdb_tilde_expand.h: Rename include guard.
6827 * common/gdb_sys_time.h: Rename include guard.
6828 * common/gdb_string_view.h: Rename include guard.
6829 * common/gdb_splay_tree.h: Rename include guard.
6830 * common/gdb_setjmp.h: Rename include guard.
6831 * common/gdb_ref_ptr.h: Rename include guard.
6832 * common/gdb_optional.h: Rename include guard.
6833 * common/gdb_locale.h: Rename include guard.
6834 * common/gdb_assert.h: Rename include guard.
6835 * common/filtered-iterator.h: Rename include guard.
6836 * common/filestuff.h: Rename include guard.
6837 * common/fileio.h: Rename include guard.
6838 * common/environ.h: Rename include guard.
6839 * common/common-utils.h: Rename include guard.
6840 * common/common-types.h: Rename include guard.
6841 * common/common-regcache.h: Rename include guard.
6842 * common/common-inferior.h: Rename include guard.
6843 * common/common-gdbthread.h: Rename include guard.
6844 * common/common-exceptions.h: Rename include guard.
6845 * common/common-defs.h: Rename include guard.
6846 * common/common-debug.h: Rename include guard.
6847 * common/cleanups.h: Rename include guard.
6848 * common/buffer.h: Rename include guard.
6849 * common/btrace-common.h: Rename include guard.
6850 * common/break-common.h: Rename include guard.
6851 * cli/cli-utils.h: Rename include guard.
6852 * cli/cli-style.h: Rename include guard.
6853 * cli/cli-setshow.h: Rename include guard.
6854 * cli/cli-script.h: Rename include guard.
6855 * cli/cli-interp.h: Rename include guard.
6856 * cli/cli-decode.h: Rename include guard.
6857 * cli/cli-cmds.h: Rename include guard.
6858 * charset-list.h: Add include guard.
6859 * buildsym-legacy.h: Rename include guard.
6860 * bfin-tdep.h: Add include guard.
6861 * ax.h: Rename include guard.
6862 * arm-linux-tdep.h: Add include guard.
6863 * arm-fbsd-tdep.h: Add include guard.
6864 * arch/xtensa.h: Rename include guard.
6865 * arch/tic6x.h: Add include guard.
6866 * arch/i386.h: Add include guard.
6867 * arch/arm.h: Rename include guard.
6868 * arch/arm-linux.h: Rename include guard.
6869 * arch/arm-get-next-pcs.h: Rename include guard.
6870 * arch/amd64.h: Add include guard.
6871 * arch/aarch64-insn.h: Rename include guard.
6872 * arch-utils.h: Rename include guard.
6873 * annotate.h: Add include guard.
6874 * amd64-darwin-tdep.h: Rename include guard.
6875 * aarch64-linux-tdep.h: Add include guard.
6876 * aarch64-fbsd-tdep.h: Add include guard.
6877 * aarch32-linux-nat.h: Add include guard.
6878
ab9268d2
PW
68792019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6880
6881 * macrotab.c (macro_define_internal): New function that
6882 factorizes macro_define_object_internal and macro_define_function
6883 code.
6884 (macro_define_object_internal): Use macro_define_internal.
6885 (macro_define_function): Likewise.
6886
bb0da2b4
PW
68872019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6888
6889 * macrocmd.c (extract_identifier): Return
6890 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
6891 callers.
6892
424eb552
JB
68932019-02-06 John Baldwin <jhb@FreeBSD.org>
6894
6895 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
6896
1688cb29
TT
68972019-02-05 Tom Tromey <tom@tromey.com>
6898
6899 * target.c (target_stack::unpush): Move assertion earlier.
6900
b5eba2d8
TT
69012019-01-30 Tom Tromey <tom@tromey.com>
6902
6903 PR python/23615:
6904 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
6905 (gdbpy_parse_and_eval): Likewise.
6906 * python/python-internal.h (gdbpy_allow_threads): New class.
6907
7054e2ff
JB
69082019-01-28 John Baldwin <jhb@FreeBSD.org>
6909
6910 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
6911 (aarch64_fbsd_fpregmap): Move earlier.
6912 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
6913 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6914 instead of individual calls to trad_frame_set_reg_addr.
6915 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
6916 earlier.
6917 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
6918 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6919 instead of individual calls to trad_frame_set_reg_addr.
6920
36c25ffa
AH
69212019-01-28 Alan Hayward <alan.hayward@arm.com>
6922
6923 * CONTRIBUTE: Replace contribution list with wiki link.
6924
a0707f3c
TT
69252019-01-25 Tom Tromey <tom@tromey.com>
6926
6927 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
6928
0747795c
TT
69292019-01-25 Tom Tromey <tom@tromey.com>
6930
6931 * xtensa-linux-nat.c: Fix common/ includes.
6932 * xml-support.h: Fix common/ includes.
6933 * xml-support.c: Fix common/ includes.
6934 * x86-linux-nat.c: Fix common/ includes.
6935 * windows-nat.c: Fix common/ includes.
6936 * varobj.h: Fix common/ includes.
6937 * varobj.c: Fix common/ includes.
6938 * value.c: Fix common/ includes.
6939 * valops.c: Fix common/ includes.
6940 * utils.c: Fix common/ includes.
6941 * unittests/xml-utils-selftests.c: Fix common/ includes.
6942 * unittests/utils-selftests.c: Fix common/ includes.
6943 * unittests/unpack-selftests.c: Fix common/ includes.
6944 * unittests/tracepoint-selftests.c: Fix common/ includes.
6945 * unittests/style-selftests.c: Fix common/ includes.
6946 * unittests/string_view-selftests.c: Fix common/ includes.
6947 * unittests/scoped_restore-selftests.c: Fix common/ includes.
6948 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
6949 * unittests/scoped_fd-selftests.c: Fix common/ includes.
6950 * unittests/rsp-low-selftests.c: Fix common/ includes.
6951 * unittests/parse-connection-spec-selftests.c: Fix common/
6952 includes.
6953 * unittests/optional-selftests.c: Fix common/ includes.
6954 * unittests/offset-type-selftests.c: Fix common/ includes.
6955 * unittests/observable-selftests.c: Fix common/ includes.
6956 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
6957 * unittests/memrange-selftests.c: Fix common/ includes.
6958 * unittests/memory-map-selftests.c: Fix common/ includes.
6959 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
6960 * unittests/function-view-selftests.c: Fix common/ includes.
6961 * unittests/environ-selftests.c: Fix common/ includes.
6962 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
6963 * unittests/common-utils-selftests.c: Fix common/ includes.
6964 * unittests/cli-utils-selftests.c: Fix common/ includes.
6965 * unittests/array-view-selftests.c: Fix common/ includes.
6966 * ui-file.c: Fix common/ includes.
6967 * tui/tui-io.c: Fix common/ includes.
6968 * tracepoint.h: Fix common/ includes.
6969 * tracepoint.c: Fix common/ includes.
6970 * tracefile-tfile.c: Fix common/ includes.
6971 * top.h: Fix common/ includes.
6972 * top.c: Fix common/ includes.
6973 * thread.c: Fix common/ includes.
6974 * target/waitstatus.h: Fix common/ includes.
6975 * target/waitstatus.c: Fix common/ includes.
6976 * target.h: Fix common/ includes.
6977 * target.c: Fix common/ includes.
6978 * target-memory.c: Fix common/ includes.
6979 * target-descriptions.c: Fix common/ includes.
6980 * symtab.h: Fix common/ includes.
6981 * symfile.c: Fix common/ includes.
6982 * stap-probe.c: Fix common/ includes.
6983 * spu-linux-nat.c: Fix common/ includes.
6984 * sparc-nat.c: Fix common/ includes.
6985 * source.c: Fix common/ includes.
6986 * solib.c: Fix common/ includes.
6987 * solib-target.c: Fix common/ includes.
6988 * ser-unix.c: Fix common/ includes.
6989 * ser-tcp.c: Fix common/ includes.
6990 * ser-pipe.c: Fix common/ includes.
6991 * ser-base.c: Fix common/ includes.
6992 * selftest-arch.c: Fix common/ includes.
6993 * s12z-tdep.c: Fix common/ includes.
6994 * rust-exp.y: Fix common/ includes.
6995 * rs6000-aix-tdep.c: Fix common/ includes.
6996 * riscv-tdep.c: Fix common/ includes.
6997 * remote.c: Fix common/ includes.
6998 * remote-notif.h: Fix common/ includes.
6999 * remote-fileio.h: Fix common/ includes.
7000 * remote-fileio.c: Fix common/ includes.
7001 * regcache.h: Fix common/ includes.
7002 * regcache.c: Fix common/ includes.
7003 * record-btrace.c: Fix common/ includes.
7004 * python/python.c: Fix common/ includes.
7005 * python/py-type.c: Fix common/ includes.
7006 * python/py-inferior.c: Fix common/ includes.
7007 * progspace.h: Fix common/ includes.
7008 * producer.c: Fix common/ includes.
7009 * procfs.c: Fix common/ includes.
7010 * proc-api.c: Fix common/ includes.
7011 * printcmd.c: Fix common/ includes.
7012 * ppc-linux-nat.c: Fix common/ includes.
7013 * parser-defs.h: Fix common/ includes.
7014 * osdata.c: Fix common/ includes.
7015 * obsd-nat.c: Fix common/ includes.
7016 * nat/x86-linux.c: Fix common/ includes.
7017 * nat/x86-linux-dregs.c: Fix common/ includes.
7018 * nat/x86-dregs.h: Fix common/ includes.
7019 * nat/x86-dregs.c: Fix common/ includes.
7020 * nat/ppc-linux.c: Fix common/ includes.
7021 * nat/mips-linux-watch.h: Fix common/ includes.
7022 * nat/mips-linux-watch.c: Fix common/ includes.
7023 * nat/linux-waitpid.c: Fix common/ includes.
7024 * nat/linux-ptrace.h: Fix common/ includes.
7025 * nat/linux-ptrace.c: Fix common/ includes.
7026 * nat/linux-procfs.c: Fix common/ includes.
7027 * nat/linux-personality.c: Fix common/ includes.
7028 * nat/linux-osdata.c: Fix common/ includes.
7029 * nat/linux-namespaces.c: Fix common/ includes.
7030 * nat/linux-btrace.h: Fix common/ includes.
7031 * nat/linux-btrace.c: Fix common/ includes.
7032 * nat/fork-inferior.c: Fix common/ includes.
7033 * nat/amd64-linux-siginfo.c: Fix common/ includes.
7034 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
7035 * nat/aarch64-linux.c: Fix common/ includes.
7036 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
7037 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
7038 * namespace.h: Fix common/ includes.
7039 * mips-linux-tdep.c: Fix common/ includes.
7040 * minsyms.c: Fix common/ includes.
7041 * mi/mi-parse.h: Fix common/ includes.
7042 * mi/mi-main.c: Fix common/ includes.
7043 * mi/mi-cmd-env.c: Fix common/ includes.
7044 * memrange.h: Fix common/ includes.
7045 * memattr.c: Fix common/ includes.
7046 * maint.h: Fix common/ includes.
7047 * maint.c: Fix common/ includes.
7048 * main.c: Fix common/ includes.
7049 * machoread.c: Fix common/ includes.
7050 * location.c: Fix common/ includes.
7051 * linux-thread-db.c: Fix common/ includes.
7052 * linux-nat.c: Fix common/ includes.
7053 * linux-fork.c: Fix common/ includes.
7054 * inline-frame.c: Fix common/ includes.
7055 * infrun.c: Fix common/ includes.
7056 * inflow.c: Fix common/ includes.
7057 * inferior.h: Fix common/ includes.
7058 * inferior.c: Fix common/ includes.
7059 * infcmd.c: Fix common/ includes.
7060 * inf-ptrace.c: Fix common/ includes.
7061 * inf-child.c: Fix common/ includes.
7062 * ia64-linux-nat.c: Fix common/ includes.
7063 * i387-tdep.c: Fix common/ includes.
7064 * i386-tdep.c: Fix common/ includes.
7065 * i386-linux-tdep.c: Fix common/ includes.
7066 * i386-linux-nat.c: Fix common/ includes.
7067 * i386-go32-tdep.c: Fix common/ includes.
7068 * i386-fbsd-tdep.c: Fix common/ includes.
7069 * i386-fbsd-nat.c: Fix common/ includes.
7070 * guile/scm-type.c: Fix common/ includes.
7071 * guile/guile.c: Fix common/ includes.
7072 * go32-nat.c: Fix common/ includes.
7073 * gnu-nat.c: Fix common/ includes.
7074 * gdbthread.h: Fix common/ includes.
7075 * gdbarch-selftests.c: Fix common/ includes.
7076 * gdb_usleep.c: Fix common/ includes.
7077 * gdb_select.h: Fix common/ includes.
7078 * gdb_bfd.c: Fix common/ includes.
7079 * gcore.c: Fix common/ includes.
7080 * fork-child.c: Fix common/ includes.
7081 * findvar.c: Fix common/ includes.
7082 * fbsd-nat.c: Fix common/ includes.
7083 * event-top.c: Fix common/ includes.
7084 * event-loop.c: Fix common/ includes.
7085 * dwarf2read.c: Fix common/ includes.
7086 * dwarf2loc.c: Fix common/ includes.
7087 * dwarf2-frame.c: Fix common/ includes.
7088 * dwarf-index-cache.c: Fix common/ includes.
7089 * dtrace-probe.c: Fix common/ includes.
7090 * disasm-selftests.c: Fix common/ includes.
7091 * defs.h: Fix common/ includes.
7092 * csky-tdep.c: Fix common/ includes.
7093 * cp-valprint.c: Fix common/ includes.
7094 * cp-support.h: Fix common/ includes.
7095 * cp-support.c: Fix common/ includes.
7096 * corelow.c: Fix common/ includes.
7097 * completer.h: Fix common/ includes.
7098 * completer.c: Fix common/ includes.
7099 * compile/compile.c: Fix common/ includes.
7100 * compile/compile-loc2c.c: Fix common/ includes.
7101 * compile/compile-cplus-types.c: Fix common/ includes.
7102 * compile/compile-cplus-symbols.c: Fix common/ includes.
7103 * command.h: Fix common/ includes.
7104 * cli/cli-dump.c: Fix common/ includes.
7105 * cli/cli-cmds.c: Fix common/ includes.
7106 * charset.c: Fix common/ includes.
7107 * build-id.c: Fix common/ includes.
7108 * btrace.h: Fix common/ includes.
7109 * btrace.c: Fix common/ includes.
7110 * breakpoint.h: Fix common/ includes.
7111 * breakpoint.c: Fix common/ includes.
7112 * ax.h:
7113 (enum agent_op): Fix common/ includes.
7114 * ax-general.c (struct aop_map): Fix common/ includes.
7115 * ax-gdb.c: Fix common/ includes.
7116 * auxv.c: Fix common/ includes.
7117 * auto-load.c: Fix common/ includes.
7118 * arm-tdep.c: Fix common/ includes.
7119 * arch/riscv.c: Fix common/ includes.
7120 * arch/ppc-linux-common.c: Fix common/ includes.
7121 * arch/i386.c: Fix common/ includes.
7122 * arch/arm.c: Fix common/ includes.
7123 * arch/arm-linux.c: Fix common/ includes.
7124 * arch/arm-get-next-pcs.c: Fix common/ includes.
7125 * arch/amd64.c: Fix common/ includes.
7126 * arch/aarch64.c: Fix common/ includes.
7127 * arch/aarch64-insn.c: Fix common/ includes.
7128 * arch-utils.c: Fix common/ includes.
7129 * amd64-windows-tdep.c: Fix common/ includes.
7130 * amd64-tdep.c: Fix common/ includes.
7131 * amd64-sol2-tdep.c: Fix common/ includes.
7132 * amd64-obsd-tdep.c: Fix common/ includes.
7133 * amd64-nbsd-tdep.c: Fix common/ includes.
7134 * amd64-linux-tdep.c: Fix common/ includes.
7135 * amd64-linux-nat.c: Fix common/ includes.
7136 * amd64-fbsd-tdep.c: Fix common/ includes.
7137 * amd64-fbsd-nat.c: Fix common/ includes.
7138 * amd64-dicos-tdep.c: Fix common/ includes.
7139 * amd64-darwin-tdep.c: Fix common/ includes.
7140 * agent.c: Fix common/ includes.
7141 * ada-lang.h: Fix common/ includes.
7142 * ada-lang.c: Fix common/ includes.
7143 * aarch64-tdep.c: Fix common/ includes.
7144
2f5c153e
TT
71452019-01-25 Tom Tromey <tom@tromey.com>
7146
7147 * common/create-version.sh: Use common/version.h.
7148
adc6a863
PA
71492019-01-24 Pedro Alves <palves@redhat.com>
7150
7151 * infrun.c (signal_stop, signal_print, signal_program)
7152 (signal_catch, signal_pass): Now arrays instead of pointers.
7153 (update_signals_program_target, do_target_resume)
7154 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
7155 * linux-nat.c (linux_nat_target::pass_signals)
7156 (linux_nat_target::create_inferior, linux_nat_target::attach):
7157 Adjust.
7158 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
7159 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
7160 * procfs.c (procfs_target::pass_signals): Adjust.
7161 * record-full.c (record_full_target::resume): Adjust.
7162 * remote.c (remote_target::pass_signals)
7163 (remote_target::program_signals): Adjust.
7164 * target-debug.h (target_debug_print_signals): Now takes a
7165 gdb::array_view as parameter. Adjust.
7166 * target.h (target_ops) <pass_signals, program_signals>: Replace
7167 pointer and length parameters with gdb::array_view.
7168 (target_pass_signals, target_program_signals): Likewise.
7169 * target-delegates.c: Regenerate.
7170
3046d67a
PA
71712019-01-24 Pedro Alves <palves@redhat.com>
7172
7173 * common/forward-scope-exit.h
7174 (forward_scope_exit::forward_scope_exit): Pass arguments to
7175 m_bind_function directly, instead of creating a std::bind and
7176 copying that.
7177
353229bf
AH
71782019-01-24 Alan Hayward <alan.hayward@arm.com>
7179
7180 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
7181 for static members.
7182 (pass_in_v_vfp_candidate): Likewise.
7183
311dc83a
TT
71842019-01-23 Tom Tromey <tom@tromey.com>
7185 Pedro Alves <palves@redhat.com>
7186
7187 * regcache.c (class regcache_invalidator): Remove.
7188 (regcache::raw_write): Use make_scope_exit.
7189
296bd123
TT
71902019-01-23 Tom Tromey <tom@tromey.com>
7191
7192 * ui-out.h (class ui_out_emit_type): Update comment.
7193
979a0d13
TT
71942019-01-23 Tom Tromey <tom@tromey.com>
7195
7196 * infrun.c (fetch_inferior_event): Update comment.
7197
d238133d
TT
71982019-01-23 Tom Tromey <tom@tromey.com>
7199 Pedro Alves <palves@redhat.com>
7200
7201 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
7202 parameter.
7203 (fetch_inferior_event): Use SCOPE_EXIT.
7204
7205
9885e6bb
TT
72062019-01-23 Tom Tromey <tom@tromey.com>
7207 Pedro Alves <palves@redhat.com>
7208
7209 * infrun.c (disable_thread_events): Delete.
7210 (stop_all_threads): Use SCOPE_EXIT.
7211
286526c1
TT
72122019-01-23 Tom Tromey <tom@tromey.com>
7213 Pedro Alves <palves@redhat.com>
7214
7215 * symfile.c: Include forward-scope-exit.h.
7216 (clear_symtab_users_cleanup): Replace forward declaration with
7217 a FORWARD_SCOPE_EXIT.
7218 (syms_from_objfile_1): Use the forward_scope_exit and
7219 gdb::optional instead of cleanup_function.
7220 (reread_symbols): Use the forward_scope_exit instead of
7221 cleanup_function.
7222 (clear_symtab_users_cleanup): Remove function.
7223
1db93f14
TT
72242019-01-23 Tom Tromey <tom@tromey.com>
7225 Pedro Alves <palves@redhat.com>
7226
7227 * linux-nat.c: Include scope-exit.h.
7228 (cleanup_target_stop): Remove.
7229 (linux_nat_target::static_tracepoint_markers_by_strid): Use
7230 SCOPE_EXIT.
7231
2cc83d1e
TT
72322019-01-23 Tom Tromey <tom@tromey.com>
7233 Pedro Alves <palves@redhat.com>
7234
7235 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
7236 (call_function_by_hand_dummy): Use SCOPE_EXIT.
7237
694c6bf5
TT
72382019-01-23 Tom Tromey <tom@tromey.com>
7239 Andrew Burgess <andrew.burgess@embecosm.com>
7240 Pedro Alves <palves@redhat.com>
7241
7242 * infrun.c (fetch_inferior_event): Use scope_exit.
7243 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
7244 * top.c (execute_command): Use scope_exit.
7245 * breakpoint.c (bpstat_do_actions): Use scope_exit.
7246 * utils.c (do_bpstat_clear_actions_cleanup)
7247 (make_bpstat_clear_actions_cleanup): Remove.
7248
4c41382a
TT
72492019-01-23 Tom Tromey <tom@tromey.com>
7250 Pedro Alves <palves@redhat.com>
7251
7252 * infrun.c: Include "common/scope-exit.h"
7253 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
7254 (wait_for_inferior): Use SCOPE_EXIT.
7255 (fetch_inferior_event): Use scope_exit.
7256
89f8fb50
TT
72572019-01-23 Tom Tromey <tom@tromey.com>
7258 Pedro Alves <palves@redhat.com>
7259
7260 * breakpoint.c (create_breakpoint): Remove cleanup.
7261
5419bdae
TT
72622019-01-23 Tom Tromey <tom@tromey.com>
7263 Andrew Burgess <andrew.burgess@embecosm.com>
7264 Pedro Alves <palves@redhat.com>
7265
e587ef42
PA
72662019-01-23 Pedro Alves <palves@redhat.com>
7267
7268 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
7269
77f0e74c
PA
72702019-01-23 Pedro Alves <palves@redhat.com>
7271 Andrew Burgess <andrew.burgess@embecosm.com>
7272
7273 * gdbthread.h: Include "common/forward-scope-exit.h".
7274 (scoped_finish_thread_state): Redefine custom class in terms of
7275 forward_scope_exit.
7276
5b9b3e53
PA
72772019-01-23 Pedro Alves <palves@redhat.com>
7278 Andrew Burgess <andrew.burgess@embecosm.com>
7279
7280 * common/forward-scope-exit.h: New file.
7281
54b65c9b
PA
72822019-01-23 Pedro Alves <palves@redhat.com>
7283 Andrew Burgess <andrew.burgess@embecosm.com>
7284 Tom Tromey <tom@tromey.com>
7285
7286 * common/scope-exit.h: New file.
7287
cf08fb29
PA
72882019-01-23 Pedro Alves <palves@redhat.com>
7289
7290 * common/preprocessor.h (ESC): Rename to ...
7291 (ESC_PARENS): ... this.
7292 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
7293 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
7294
ae73e2e2
TT
72952019-01-23 Tom Tromey <tom@tromey.com>
7296
7297 * language.h (class scoped_switch_to_sym_language_if_auto):
7298 Initialize m_lang in both cases.
7299
6594e122
AH
73002019-01-23 Alan Hayward <alan.hayward@arm.com>
7301
7302 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
7303 with XCNEW.
7304
a7c9855d
TT
73052019-01-22 Tom Tromey <tom@tromey.com>
7306
7307 * corelow.c: Do not include sys/file.h.
7308
93cc1d53
TT
73092019-01-22 Tom Tromey <tom@tromey.com>
7310
7311 * tui/tui-wingeneral.h: Include gdb_curses.h.
7312
38561778
TT
73132019-01-22 Tom Tromey <tom@tromey.com>
7314
7315 * source-cache.h (class source_cache) <get_source_lines,
7316 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
7317
37b3ab5b
TT
73182019-01-22 Tom Tromey <tom@tromey.com>
7319
7320 * remote-fileio.h (struct remote_target): Declare.
7321
3fabc016
TT
73222019-01-22 Tom Tromey <tom@tromey.com>
7323
7324 * python/py-arch.c: Do not include py-ref.h.
7325 * python/py-bpevent.c: Do not include py-ref.h.
7326 * python/py-cmd.c: Do not include py-ref.h.
7327 * python/py-continueevent.c: Do not include py-ref.h.
7328 * python/py-event.h: Do not include py-ref.h.
7329 * python/py-evtregistry.c: Do not include py-ref.h.
7330 * python/py-finishbreakpoint.c: Do not include py-ref.h.
7331 * python/py-frame.c: Do not include py-ref.h.
7332 * python/py-framefilter.c: Do not include py-ref.h.
7333 * python/py-function.c: Do not include py-ref.h.
7334 * python/py-infevents.c: Do not include py-ref.h.
7335 * python/py-linetable.c: Do not include py-ref.h.
7336 * python/py-objfile.c: Do not include py-ref.h.
7337 * python/py-param.c: Do not include py-ref.h.
7338 * python/py-prettyprint.c: Do not include py-ref.h.
7339 * python/py-progspace.c: Do not include py-ref.h.
7340 * python/py-symbol.c: Do not include py-ref.h.
7341 * python/py-symtab.c: Do not include py-ref.h.
7342 * python/py-type.c: Do not include py-ref.h.
7343 * python/py-unwind.c: Do not include py-ref.h.
7344 * python/py-utils.c: Do not include py-ref.h.
7345 * python/py-value.c: Do not include py-ref.h.
7346 * python/py-varobj.c: Do not include py-ref.h.
7347 * python/py-xmethods.c: Do not include py-ref.h.
7348 * python/python.c: Do not include py-ref.h.
7349 * varobj.c: Do not include py-ref.h.
7350
6b4d7774
TT
73512019-01-22 Tom Tromey <tom@tromey.com>
7352
7353 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
7354 keyword for bcache.
7355
7af7e9b5
TT
73562019-01-22 Tom Tromey <tom@tromey.com>
7357
7358 * compile/compile-cplus-types.c: Remove a comment by #include.
7359
951d1049
TT
73602019-01-22 Tom Tromey <tom@tromey.com>
7361
7362 * compile/gcc-c-plugin.h: Include compile-internal.h.
7363
d65d5705
TT
73642019-01-22 Tom Tromey <tom@tromey.com>
7365
7366 * stabsread.c (EXTERN): Do not define.
7367 (symnum, next_symbol_text_func, processing_gcc_compilation)
7368 (within_function, global_sym_chain, global_stabs)
7369 (previous_stab_code, this_object_header_files)
7370 (n_this_object_header_files)
7371 (n_allocated_this_object_header_files): Define.
7372 * stabsread.h (EXTERN): Never define. Use "extern".
7373
b6fb1ee5
PW
73742019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7375
7376 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
7377 history_value.
7378
be6d4f74
TT
73792019-01-21 Tom Tromey <tom@tromey.com>
7380
7381 * ui-out.c: Fix includes.
7382 * tui/tui-source.c: Fix includes.
7383 * target.c: Fix includes.
7384 * remote.c: Fix includes.
7385 * regcache.c: Fix includes.
7386 * python/py-block.c: Fix includes.
7387 * printcmd.c: Fix includes.
7388 * or1k-tdep.c: Fix includes.
7389 * mi/mi-main.c: Fix includes.
7390 * m32r-tdep.c: Fix includes.
7391 * csky-tdep.c: Fix includes.
7392 * compile/compile-cplus-types.c: Fix includes.
7393 * cli/cli-interp.c: Fix includes.
7394
73021deb
AH
73952019-01-21 Alan Hayward <alan.hayward@arm.com>
7396
7397 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
7398 for padding.
7399
7932255d
TT
74002019-01-16 Tom Tromey <tom@tromey.com>
7401
7402 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
7403 earlier.
7404 (struct objfile) <msymbols_range>: Move from top level.
7405 <msymbols>: New method.
7406 (class objfile_msymbols): Remove.
7407 * symtab.c (default_collect_symbol_completion_matches_break_on):
7408 Update.
7409 * symmisc.c (dump_msymbols): Update.
7410 * stabsread.c (scan_file_globals): Update.
7411 * objc-lang.c (info_selectors_command, info_classes_command)
7412 (find_methods): Update.
7413 * minsyms.c (find_solib_trampoline_target): Update.
7414 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
7415 * coffread.c (coff_symfile_read): Update.
7416 * ada-lang.c (ada_lookup_simple_minsym)
7417 (ada_collect_symbol_completion_matches): Update.
7418
604b1bfb
TT
74192019-01-16 Tom Tromey <tom@tromey.com>
7420
7421 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
7422 type. Remove no-argument constructor.
7423 <iterator::operator++>: Simplify.
7424 <begin>: Update.
7425 <end>: Use minimal_symbol_count.
7426
f252c6d5
TT
74272019-01-16 Tom Tromey <tom@tromey.com>
7428
7429 * objfiles.h (struct objfile) <psymtabs>: New method.
7430 (class objfile_psymtabs): Remove.
7431 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
7432 typedef.
7433 <range>: New method.
7434 (require_partial_symbols): Change return type.
7435 * psymtab.c (require_partial_symbols)
7436 (psym_expand_symtabs_matching): Update.
7437 * mdebugread.c (parse_partial_symbols): Update.
7438 * dbxread.c (dbx_end_psymtab): Update.
7439
b669c953
TT
74402019-01-15 Tom Tromey <tom@tromey.com>
7441
7442 * symtab.c (lookup_objfile_from_block)
7443 (lookup_symbol_in_objfile_symtabs)
7444 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
7445 (find_line_symtab, info_sources_command)
7446 (default_collect_symbol_completion_matches_break_on)
7447 (make_source_files_completion_list): Update.
7448 * symmisc.c (print_objfile_statistics, dump_objfile)
7449 (maintenance_print_symbols, maintenance_info_symtabs)
7450 (maintenance_check_symtabs, maintenance_info_line_tables):
7451 Update.
7452 * source.c (select_source_symtab)
7453 (forget_cached_source_info_for_objfile): Update.
7454 * objfiles.h (class objfile_compunits): Remove.
7455 (struct objfile) <compunits_range>: New typedef.
7456 (compunits): New method.
7457 * objfiles.c (objfile_relocate1): Update.
7458 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
7459 * maint.c (count_symtabs_and_blocks): Update.
7460 * linespec.c (iterate_over_all_matching_symtabs): Update.
7461 * cp-support.c (add_symbol_overload_list_qualified): Update.
7462 * coffread.c (coff_symtab_read): Update.
7463 * ada-lang.c (add_nonlocal_symbols)
7464 (ada_collect_symbol_completion_matches)
7465 (ada_add_global_exceptions): Update.
7466
7e955d83
TT
74672019-01-15 Tom Tromey <tom@tromey.com>
7468
7469 * progspace.h (program_space) <objfiles_safe_range>: New
7470 typedef.
7471 <objfiles_safe>: New method.
7472 * objfiles.h (class all_objfiles_safe): Remove.
7473 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
7474 * jit.c (jit_inferior_exit_hook): Update.
7475
2030c079
TT
74762019-01-17 Tom Tromey <tom@tromey.com>
7477
7478 * progspace.h (program_space) <objfiles_range>: New typedef.
7479 <objfiles>: New method.
7480 <objfiles_head>: Rename from objfiles.
7481 (object_files): Update.
7482 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
7483 * guile/scm-pretty-print.c
7484 (ppscm_find_pretty_printer_from_objfiles): Update.
7485 * guile/scm-objfile.c (gdbscm_objfiles): Update.
7486 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
7487 Update.
7488 * python/py-progspace.c (pspy_get_objfiles): Update.
7489 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7490 Update.
7491 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
7492 (objfpy_lookup_objfile_by_build_id): Update.
7493 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
7494 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
7495 Update.
7496 * symtab.c (iterate_over_symtabs, matching_obj_sections)
7497 (expand_symtab_containing_pc, lookup_objfile_from_block)
7498 (lookup_static_symbol, basic_lookup_transparent_type)
7499 (find_pc_sect_compunit_symtab, find_symbol_at_address)
7500 (find_line_symtab, info_sources_command)
7501 (default_collect_symbol_completion_matches_break_on)
7502 (make_source_files_completion_list, find_main_name): Update.
7503 * symmisc.c (print_symbol_bcache_statistics)
7504 (print_objfile_statistics, maintenance_print_symbols)
7505 (maintenance_print_msymbols, maintenance_print_objfiles)
7506 (maintenance_info_symtabs, maintenance_check_symtabs)
7507 (maintenance_expand_symtabs, maintenance_info_line_tables):
7508 Update.
7509 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
7510 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
7511 (map_overlay_command, unmap_overlay_command)
7512 (simple_overlay_update, expand_symtabs_matching)
7513 (map_symbol_filenames): Update.
7514 * symfile-debug.c (set_debug_symfile): Update.
7515 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
7516 Update.
7517 * source.c (select_source_symtab, forget_cached_source_info):
7518 Update.
7519 * solib.c (solib_read_symbols): Update.
7520 * solib-spu.c (append_ocl_sos): Update.
7521 * psymtab.c (maintenance_print_psymbols)
7522 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
7523 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
7524 * printcmd.c (info_symbol_command): Update.
7525 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
7526 Update.
7527 * objfiles.h (class all_objfiles): Remove.
7528 * objfiles.c (have_partial_symbols, have_full_symbols)
7529 (have_minimal_symbols, qsort_cmp, update_section_map)
7530 (shared_objfile_contains_address_p)
7531 (default_iterate_over_objfiles_in_search_order): Update.
7532 * objc-lang.c (info_selectors_command, info_classes_command)
7533 (find_methods): Update.
7534 * minsyms.c (find_solib_trampoline_target): Update.
7535 * maint.c (maintenance_info_sections)
7536 (maintenance_translate_address, count_symtabs_and_blocks):
7537 Update.
7538 * main.c (captured_main_1): Update.
7539 * linux-thread-db.c (try_thread_db_load_from_pdir)
7540 (has_libpthread): Update.
7541 * linespec.c (iterate_over_all_matching_symtabs)
7542 (search_minsyms_for_name): Update.
7543 * jit.c (jit_find_objf_with_entry_addr): Update.
7544 * hppa-tdep.c (find_unwind_entry)
7545 (hppa_lookup_stub_minimal_symbol): Update.
7546 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
7547 Update.
7548 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
7549 (elf_gnu_ifunc_resolve_by_got): Update.
7550 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
7551 * dwarf-index-write.c (save_gdb_index_command): Update.
7552 * cp-support.c (add_symbol_overload_list_qualified): Update.
7553 * breakpoint.c (create_overlay_event_breakpoint)
7554 (create_longjmp_master_breakpoint)
7555 (create_std_terminate_master_breakpoint)
7556 (create_exception_master_breakpoint): Update.
7557 * blockframe.c (find_pc_partial_function): Update.
7558 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
7559 (ada_collect_symbol_completion_matches)
7560 (ada_add_global_exceptions): Update.
7561
776489e0
TT
75622019-01-17 Tom Tromey <tom@tromey.com>
7563
7564 * solib-target.c (lm_info_target_p): Remove typedef. Don't
7565 declare VEC.
7566 (solib_target_parse_libraries): Change return type.
7567 (library_list_start_segment, library_list_start_section)
7568 (library_list_end_library, library_list_start_library); Update.
7569 (solib_target_free_library_list): Remove.
7570 (solib_target_parse_libraries): Remove cleanup. Change return
7571 type.
7572 (solib_target_current_sos): Update.
7573
6471e7d2
TT
75742019-01-17 Tom Tromey <tromey@bapiya>
7575
7576 * valprint.c: Replace "the the" with "the".
7577 * symtab.c: Replace "the the" with "the".
7578 * solib.c: Replace "the the" with "the".
7579 * solib-dsbt.c: Replace "the the" with "the".
7580 * linespec.c: Replace "the the" with "the".
7581 * dwarf2loc.h: Replace "the the" with "the".
7582 * amd64-windows-tdep.c: Replace "the the" with "the".
7583 * aarch64-tdep.c: Replace "the the" with "the".
7584
c24bdb02
KS
75852019-01-16 Keith Seitz <keiths@redhat.com>
7586
7587 PR gdb/23773
7588 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
7589 <builder>: Rename to ..
7590 <m_builder>: ... this and make private.
7591 (dwarf2_cu::get_builder): New method. Change all users of
7592 `builder' to use this method.
7593 (dwarf2_start_symtab): Move to ...
7594 (dwarf2_cu::start_symtab): ... here. Update all callers
7595 (setup_type_unit_groups): Move to ...
7596 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
7597 callers.
7598 (dwarf2_cu::reset_builder): New method.
7599 (process_full_compunit, process_full_type_unit): Use
7600 dwarf2_cu::reset_builder.
7601 (follow_die_offset): Record the ancestor CU if it is different
7602 from the followed DIE's CU.
7603 (follow_die_sig_1): Likewise.
7604
8d64371b
TT
76052019-01-15 Tom Tromey <tom@tromey.com>
7606
7607 * remote.c (class remote_state) <buf>: Now a char_vector.
7608 <buf_size>: Remove.
7609 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
7610 parameter.
7611 (remote_target::getpkt_or_notif_sane_1)
7612 (remote_target::getpkt_sane)
7613 (remote_target::getpkt_or_notif_sane): Likewise.
7614 (class remote_target) <putpkt>: New overload.
7615 (remote_target::read_frame): Change type of "buf_p". Remove
7616 sizeof_p parameter.
7617 (packet_ok): New overload.
7618 (packet_check_result): New overload.
7619 Update all uses.
7620
bb277751
TT
76212019-01-14 Tom Tromey <tom@tromey.com>
7622
7623 * remote-notif.c (handle_notification, remote_notif_ack)
7624 (remote_notif_parse): Make "buf" const.
7625 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
7626 const.
7627 (remote_notif_parse, remote_notif_ack, handle_notification):
7628 Likewise.
7629 * remote.c (remote_notif_stop_parse): Make "buf" const.
7630 (remote_target::remote_parse_stop_reply): Make "buf" const.
7631 (remote_notif_stop_ack): Make "buf" const.
7632
05be00a8
TT
76332019-01-14 Tom Tromey <tom@tromey.com>
7634
7635 * remote.c (remote_console_output): Make parameter const.
7636
491adeca
TT
76372019-01-14 Tom Tromey <tom@tromey.com>
7638
7639 * target-debug.h (target_debug_print_signals): Constify.
7640 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
7641 * procfs.c (procfs_target::pass_signals): Update.
7642 * linux-nat.c (linux_nat_target::pass_signals): Update.
7643 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
7644 * target-delegates.c: Rebuild.
7645 * remote.c (remote_target::program_signals): Update.
7646 (remote_target::pass_signals): Update.
7647 * target.c (target_pass_signals): Constify argument.
7648 (target_program_signals): Likewise.
7649 * target.h (struct target_ops) <pass_signals, program_signals>:
7650 Constify argument.
7651 (target_pass_signals, target_program_signals): Constify argument.
7652
bbd94648
TT
76532019-01-14 Tom Tromey <tom@tromey.com>
7654
7655 PR tui/28819:
7656 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
7657
6f072a10
PFC
76582019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7659
7660 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
7661 field.
7662 * rs6000-tdep.c: Include reggroups.h.
7663 (IS_V_ALIAS_PSEUDOREG): Define.
7664 (rs6000_register_name): Return names for the "vX" aliases.
7665 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
7666 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
7667 aliases. Call default_register_reggroup_p for all other
7668 pseudo-registers.
7669 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
7670 New functions.
7671 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
7672 Handle "vX" aliases.
7673 (v_alias_pseudo_register_collect): New function.
7674 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
7675 (rs6000_gdbarch_init): Initialize "vX" aliases as
7676 pseudo-registers. Restore registration of
7677 rs6000_pseudo_register_reggroup_p with
7678 set_tdesc_pseudo_register_reggroup_p.
7679
1a782351
MF
76802019-01-13 Max Filippov <jcmvbkbc@gmail.com>
7681
7682 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
7683 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
7684 set_gdbarch_num_pseudo_regs.
7685
d73cff18
PW
76862019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7687
7688 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
7689 Remove arg prefixname, add do_set and do_show.
7690 Add member functions set_list and show_list.
7691 * cli/cli-style.c (class cli_style_option): Update accordingly.
7692 (style_set_list): Move to file scope.
7693 (style_show_list): Likewise.
7694 (set_style): Call help_list.
7695 (show_style): Call cmd_show_list.
7696 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
7697 Update to use the new macro.
7698
60a90376
JB
76992019-10-12 Joel Brobecker <brobecker@adacore.com>
7700
7701 * ada-lang.c (_initialize_ada_language): Expand the help text
7702 for the "catch exception" command.
7703
9d7c67bf
PW
77042019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7705
7706 * symtab.c (matching_obj_sections): Initialize obj,
7707 declare it closer to its usage.
7708
7cf47dc4
TT
77092019-01-10 Tom Tromey <tom@tromey.com>
7710
7711 * thread-iter.h (inf_threads_iterator): Use next_iterator.
7712 (basic_inf_threads_range): Remove.
7713 (inf_threads_range, inf_non_exited_threads_range)
7714 (safe_inf_threads_range): Use next_adapter.
7715
d3cb6808
KS
77162019-01-10 Keith Seitz <keiths@redhat.com>
7717
7718 PR gdb/23712
7719 PR symtab/23010
7720 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
7721 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
7722
63a20375
KS
77232019-01-10 Keith Seitz <keiths@redhat.com>
7724
7725 PR gdb/23712
7726 PR symtab/23010
7727 * dictionary.c (pending_to_vector): Remove.
7728 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7729 Remove _1 suffix, replacing functions of the same name. Update
7730 all callers.
7731 (dict_create_hashed, dict_create_hashed_expandable)
7732 (dict_create_linear, dict_create_linear_expandable, dict_free)
7733 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
7734 Make functions static.
7735
b026f593
KS
77362019-01-10 Keith Seitz <keiths@redhat.com>
7737
7738 PR gdb/23712
7739 PR symtab/23010
7740 * dictionary.h (struct dictionary): Replace declaration with
7741 multidictionary.
7742 (dict_create_hashed, dict_create_hashed_expandable)
7743 (dict_create_linear, dict_create_linear_expandable)
7744 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
7745 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
7746 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
7747 taking multidictionary argument.
7748 [ALL_DICT_SYMBOLS]: Update for multidictionary.
7749 * block.h (struct block) <dict>: Change to multidictionary
7750 and rename `multidict'.
7751 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
7752 symmisc.c: Update all dictionary references to multidictionary.
7753
c7748ee9
KS
77542019-01-10 Keith Seitz <keiths@redhat.com>
7755
7756 PR gdb/23712
7757 PR symtab/23010
7758 * dictionary.c: Include unordered_map.
7759 (pending_to_vector): New function.
7760 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7761 Rewrite the non-"_1" functions to take vector instead
7762 of linked list.
7763 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
7764 "new" _1 versions of the same name.
7765 (multidictionary): Define.
7766 (std::hash<enum language): New definition.
7767 (collate_pending_symbols_by_language, mdict_create_hashed)
7768 (mdict_create_hashed_expandable, mdict_create_linear)
7769 (mdict_create_linear_expandable, mdict_free)
7770 (find_language_dictionary, create_new_language_dictionary)
7771 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
7772 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
7773 (mdict_size, mdict_empty): New functions.
7774 * dictionary.h (mdict_iterator): Define.
7775
67aa1f3c
PA
77762019-01-10 Pedro Alves <palves@redhat.com>
7777
7778 * breakpoint.c (read_uploaded_action)
7779 (create_tracepoint_from_upload): Adjust to use
7780 gdb::unique_xmalloc_ptr.
7781 * ctf.c (ctf_write_uploaded_tp):
7782 (SET_ARRAY_FIELD): Use emplace_back.
7783 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
7784 * tracefile-tfile.c (tfile_write_uploaded_tp):
7785 * tracepoint.c (parse_tracepoint_definition): Adjust to use
7786 gdb::unique_xmalloc_ptr.
7787 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
7788 at_string, cond_string, cmd_strings>: Replace char pointers
7789 with gdb::unique_xmalloc_ptr.
7790
2f667667
PA
77912019-01-10 Pedro Alves <palves@redhat.com>
7792
7793 * solib-target.c (library_list_start_library): Don't xstrdup name.
7794
36cb7237
PA
77952019-01-10 Pedro Alves <palves@redhat.com>
7796
7797 * mdebugread.c (parse_partial_symbols): Use
7798 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
7799
da584958
AB
78002019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7801
7802 * linux-fork.c (scoped_switch_fork_info)
7803 <~scoped_switch_fork_info>: Fix incorrect variable name.
7804
1ef8573c
AB
78052019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 * linux-fork.c (scoped_switch_fork_info)
7808 <scoped_switch_fork_info>: Make explicit.
7809 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
7810
8d7bcccb
TT
78112019-01-10 Tom Tromey <tom@tromey.com>
7812
7813 * objfiles.h (objfile::reset_psymtabs): Update.
7814 * objfiles.c (objfile::objfile): Update.
7815 * psymtab.h (psymtab_storage::obstack): Update.
7816 (psymtab_storage::m_obstack): Use gdb::optional.
7817 (class psymtab_storage): Update comment. Remove objfile
7818 parameter.
7819 * psymtab.c (psymtab_storage::psymtab_storage): Update.
7820
b596a3c7
TT
78212019-01-10 Tom Tromey <tom@tromey.com>
7822
7823 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
7824 <free_psymtabs>: Now private.
7825 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
7826 (allocate_psymtab): Use new method.
7827
a9342b62
TT
78282019-01-10 Tom Tromey <tom@tromey.com>
7829
7830 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
7831 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
7832 * mdebugread.c (parse_partial_symbols): Use
7833 allocate_dependencies.
7834 * dwarf2read.c (dwarf2_create_include_psymtab): Use
7835 allocate_dependencies.
7836 (process_psymtab_comp_unit_reader)
7837 (build_type_psymtab_dependencies): Likewise.
7838 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
7839
5af70966
TT
78402019-01-10 Tom Tromey <tom@tromey.com>
7841
7842 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
7843 PSYMBOL_SET_LANGUAGE.
7844 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
7845
5923a04c
TT
78462019-01-10 Tom Tromey <tom@tromey.com>
7847
7848 * psymtab.h (psymtab_storage::obstack): New method.
7849 <m_obstack>: Rename from obstack; now private.
7850 * psymtab.c (psymtab_storage): Update.
7851 * dwarf2read.c (create_addrmap_from_index)
7852 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
7853 Update.
7854
6d6a12bf
TT
78552019-01-10 Tom Tromey <tom@tromey.com>
7856
7857 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
7858 * objfiles.h (objfile::reset_psymtabs): New method.
7859
d320c2b5
TT
78602019-01-10 Tom Tromey <tom@tromey.com>
7861
7862 * symmisc.c (print_symbol_bcache_statistics): Update.
7863 (print_objfile_statistics): Update.
7864 * symfile.c (reread_symbols): Update.
7865 * psymtab.h (class psymtab_storage): New.
7866 * psymtab.c (psymtab_storage): New constructor.
7867 (~psymtab_storage): New destructor.
7868 (require_partial_symbols): Update.
7869 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
7870 (find_pc_sect_psymtab, find_pc_sect_psymbol)
7871 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
7872 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
7873 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
7874 (start_psymtab_common, end_psymtab_common)
7875 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
7876 (allocate_psymtab): Update.
7877 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
7878 Update.
7879 (dump_psymtab_addrmap, maintenance_print_psymbols)
7880 (maintenance_check_psymtabs): Update.
7881 (class objfile_psymtabs): Move to objfiles.h.
7882 * psympriv.h (discard_psymtab): Now inline.
7883 (psymtab_discarder::psymtab_discarder): Update.
7884 (psymtab_discarder::~psymtab_discarder): Update.
7885 (ALL_OBJFILE_PSYMTABS): Rewrite.
7886 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
7887 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
7888 Remove fields.
7889 <partial_symtabs>: New field.
7890 (class objfile_psymtabs): Move from psymtab.h. Update.
7891 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
7892 psymbol_cache.
7893 (objfile::~objfile): Don't destroy psymbol_cache.
7894 * mdebugread.c (parse_partial_symbols): Update.
7895 * dwarf2read.c (create_addrmap_from_index)
7896 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7897 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
7898 (add_partial_subprogram, dwarf2_ranges_read): Update.
7899 * dwarf-index-write.c (write_address_map)
7900 (write_one_signatured_type, recursively_write_psymbols)
7901 (class debug_names, class debug_names, write_psymtabs_to_index):
7902 Update.
7903
1d94a5a3
TT
79042019-01-10 Tom Tromey <tom@tromey.com>
7905
7906 * symtab.h (SYMBOL_SET_NAMES): Update.
7907 (symbol_set_names): Update.
7908 (MSYMBOL_SET_NAMES): Update.
7909 * symtab.c (symbol_set_names): Change argument to be an
7910 objfile_per_bfd_storage.
7911 * psymtab.c (add_psymbol_to_bcache): Update.
7912 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
7913
0f14768a
TT
79142019-01-10 Tom Tromey <tom@tromey.com>
7915
7916 * symtab.c (create_demangled_names_hash): Change argument to be an
7917 objfile_per_bfd_storage.
7918 (symbol_set_names): Update.
7919
6eee24ce
TT
79202019-01-10 Tom Tromey <tom@tromey.com>
7921
7922 * xcoffread.c (xcoff_initial_scan): Unconditionally call
7923 init_psymbol_list.
7924 * psymtab.c (init_psymbol_list): Do nothing if already called.
7925 * psympriv.h (init_psymbol_list): Add comment.
7926 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
7927 init_psymbol_list.
7928 * dbxread.c (dbx_symfile_read): Unconditionally call
7929 init_psymbol_list.
7930
75aedd27
TT
79312019-01-10 Tom Tromey <tom@tromey.com>
7932
7933 * xcoffread.c (scan_xcoff_symtab): Update.
7934 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
7935 "where".
7936 * mdebugread.c (parse_partial_symbols)
7937 (handle_psymbol_enumerators): Update.
7938 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
7939 * dbxread.c (read_dbx_symtab): Update.
7940 * psympriv.h (psymbol_placement): New enum.
7941 (add_psymbol_to_list): Update.
7942
939652a5
TT
79432019-01-10 Tom Tromey <tom@tromey.com>
7944
7945 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
7946 static_psymbols parameters.
7947 (scan_xcoff_symtab): Update.
7948 * psymtab.c (start_psymtab_common): Remove global_psymbols and
7949 static_psymbols parameters.
7950 * psympriv.h (start_psymtab_common): Update.
7951 * mdebugread.c (parse_partial_symbols): Update.
7952 * dwarf2read.c (create_partial_symtab): Update.
7953 * dbxread.c (read_dbx_symtab): Update.
7954 (start_psymtab): Remove global_psymbols and static_psymbols
7955 parameters.
7956
baa62830
TT
79572019-01-10 Tom Tromey <tom@tromey.com>
7958
7959 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
7960 * psymtab.c (allocate_psymtab): Add comment.
7961 * psympriv.h (allocate_psymtab): Add comment.
7962 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
7963 initializations.
7964 * dbxread.c (dbx_end_psymtab): Remove some initializations.
7965
0e8f53ba
TT
79662019-01-10 Tom Tromey <tom@tromey.com>
7967
7968 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7969 Don't declare.
7970 * mipsread.c: Include mdebugread.h.
7971 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7972 Declare.
7973 * elfread.c: Include mdebugread.h.
7974
b22a7c6a
TT
79752019-01-09 Tom Tromey <tom@tromey.com>
7976
7977 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
7978 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
7979 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
7980 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
7981 (psym_lookup_symbol, psym_find_last_source_symtab)
7982 (psym_forget_cached_source_info, psym_print_stats)
7983 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
7984 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
7985 (psym_map_matching_symbols, psym_expand_symtabs_matching)
7986 (psym_find_compunit_symtab_by_address)
7987 (maintenance_print_psymbols, maintenance_info_psymtabs)
7988 (maintenance_check_psymtabs): Use ranged for.
7989 * psymtab.h (class objfile_psymtabs): New.
7990 (require_partial_symbols): Return objfile_psymtabs.
7991 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
7992
3b9d3ac2
TT
79932019-01-09 Tom Tromey <tom@tromey.com>
7994
7995 * symfile.c (overlay_invalidate_all, find_pc_overlay)
7996 (find_pc_mapped_section, list_overlays_command)
7997 (map_overlay_command, unmap_overlay_command)
7998 (simple_overlay_update): Use all_objfiles.
7999 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
8000 * printcmd.c (info_symbol_command): Use all_objfiles.
8001 * objfiles.h (ALL_OBJSECTIONS): Remove.
8002 * maint.c (maintenance_translate_address): Use all_objfiles.
8003 * gcore.c (gcore_create_callback): Use all_objfiles.
8004 (objfile_find_memory_regions): Likewise.
8005
8b31193a
TT
80062019-01-09 Tom Tromey <tom@tromey.com>
8007
8008 * symtab.c (find_line_symtab, info_sources_command)
8009 (make_source_files_completion_list): Use objfile_compunits.
8010 * source.c (select_source_symtab): Use objfile_compunits.
8011 * objfiles.h (struct objfile): Update comment.
8012 (ALL_OBJFILES): Remove.
8013 (ALL_FILETABS): Remove.
8014 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
8015 objfile_compunits.
8016
d5da8b3c
TT
80172019-01-09 Tom Tromey <tom@tromey.com>
8018
8019 * symmisc.c (print_objfile_statistics, dump_objfile)
8020 (maintenance_print_symbols): Use compunit_filetabs.
8021 * source.c (forget_cached_source_info_for_objfile): Use
8022 compunit_filetabs.
8023 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
8024 (ALL_FILETABS): Use compunit_filetabs.
8025 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
8026 * coffread.c (coff_symtab_read): Use compunit_filetabs.
8027
5accd1a0
TT
80282019-01-09 Tom Tromey <tom@tromey.com>
8029
8030 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
8031 (compunit_filetabs): New.
8032 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
8033 compunit_filetabs.
8034 (info_sources_command, make_source_files_completion_list): Remove
8035 declaration.
8036 * symmisc.c (print_objfile_statistics, dump_objfile)
8037 (maintenance_print_symbols): Remove declaration.
8038 (maintenance_info_symtabs): Use compunit_filetabs.
8039 (maintenance_info_line_tables): Likewise.
8040 * source.c (select_source_symtab): Change local variable name.
8041 (forget_cached_source_info_for_objfile): Remove declaration.
8042 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
8043 * objfiles.c (objfile_relocate1): Remove declaration.
8044 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
8045 declaration.
8046 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
8047 * coffread.c (coff_symtab_read): Remove declaration.
8048 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
8049 compunit_filetabs.
8050
d8aeb77f
TT
80512019-01-09 Tom Tromey <tom@tromey.com>
8052
8053 * symtab.c (lookup_objfile_from_block)
8054 (find_pc_sect_compunit_symtab, search_symbols)
8055 (default_collect_symbol_completion_matches_break_on): Use
8056 objfile_compunits.
8057 * objfiles.h (ALL_COMPUNITS): Remove.
8058 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
8059 * cp-support.c (add_symbol_overload_list_qualified): Use
8060 objfile_compunits.
8061 * ada-lang.c (ada_collect_symbol_completion_matches)
8062 (ada_add_global_exceptions): Use objfile_compunits.
8063
592553c4
TT
80642019-01-09 Tom Tromey <tom@tromey.com>
8065
8066 * source.c (select_source_symtab)
8067 (forget_cached_source_info_for_objfile): Remove declaration.
8068 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
8069 declaration.
8070 * maint.c (count_symtabs_and_blocks): Remove declaration.
8071 * cp-support.c (add_symbol_overload_list_qualified): Remove
8072 declaration.
8073 * coffread.c (coff_symtab_read): Remove declaration.
8074 * symtab.c (lookup_symbol_in_objfile_symtabs)
8075 (basic_lookup_transparent_type_1): Use objfile_compunits.
8076 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
8077 (info_sources_command, search_symbols)
8078 (default_collect_symbol_completion_matches_break_on)
8079 (make_source_files_completion_list): Remove declaration.
8080 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
8081 (ada_collect_symbol_completion_matches)
8082 (ada_add_global_exceptions): Remove declaration.
8083 * linespec.c (iterate_over_all_matching_symtabs): Use
8084 objfile_compunits.
8085 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
8086 (class objfile_compunits): New.
8087 (ALL_COMPUNITS): Use objfile_compunits.
8088 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
8089 (maintenance_check_symtabs, maintenance_info_line_tables): Use
8090 objfile_compunits.
8091 * objfiles.c (objfile_relocate1): Use objfile_compunits.
8092
5325b9bf
TT
80932019-01-09 Tom Tromey <tom@tromey.com>
8094
8095 * symtab.c (search_symbols)
8096 (default_collect_symbol_completion_matches_break_on): Use
8097 objfile_msymbols.
8098 * ada-lang.c (ada_lookup_simple_minsym)
8099 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
8100 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
8101 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
8102 objfile_msymbols.
8103 * coffread.c (coff_symfile_read): Use objfile_msymbols.
8104 * symmisc.c (dump_msymbols): Use objfile_msymbols.
8105 * objc-lang.c (find_methods): Use objfile_msymbols.
8106 (info_selectors_command, info_classes_command): Likewise.
8107 * stabsread.c (scan_file_globals): Use objfile_msymbols.
8108 * objfiles.h (class objfile_msymbols): New.
8109 (ALL_OBJFILE_MSYMBOLS): Remove.
8110 (ALL_MSYMBOLS): Remove.
8111
cac85af2
TT
81122019-01-09 Tom Tromey <tom@tromey.com>
8113
8114 * common/next-iterator.h (next_adapter): Add Iterator template
8115 parameter.
8116 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
8117 (class all_objfiles_safe): New.
8118 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
8119 * objfiles.c (put_objfile_before): Update comment.
8120 (add_separate_debug_objfile): Likewise.
8121 (free_all_objfiles): Use all_objfiles_safe.
8122 (objfile_purge_solibs): Likewise.
8123
aed57c53
TT
81242019-01-09 Tom Tromey <tom@tromey.com>
8125
8126 * symtab.c (iterate_over_symtabs, matching_obj_sections)
8127 (expand_symtab_containing_pc, lookup_static_symbol)
8128 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
8129 (find_symbol_at_address, find_line_symtab, find_main_name): Use
8130 all_objfiles.
8131 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
8132 * breakpoint.c (create_overlay_event_breakpoint)
8133 (create_longjmp_master_breakpoint)
8134 (create_std_terminate_master_breakpoint)
8135 (create_exception_master_breakpoint): Use all_objfiles.
8136 * linux-thread-db.c (try_thread_db_load_from_pdir)
8137 (has_libpthread): Use all_objfiles.
8138 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
8139 * linespec.c (iterate_over_all_matching_symtabs)
8140 (search_minsyms_for_name): Use all_objfiles.
8141 * maint.c (maintenance_info_sections): Use all_objfiles.
8142 * main.c (captured_main_1): Use all_objfiles.
8143 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
8144 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
8145 * guile/scm-pretty-print.c
8146 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
8147 * solib-spu.c (append_ocl_sos): Use all_objfiles.
8148 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
8149 (maintenance_print_msymbols): Use all_objfiles.
8150 * source.c (select_source_symtab): Use all_objfiles.
8151 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
8152 * symfile.c (remove_symbol_file_command)
8153 (expand_symtabs_matching, map_symbol_filenames): Use
8154 all_objfiles.
8155 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
8156 all_objfiles.
8157 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
8158 * objc-lang.c (find_methods): Use all_objfiles.
8159 * objfiles.c (have_partial_symbols, have_full_symbols)
8160 (have_minimal_symbols, qsort_cmp)
8161 (default_iterate_over_objfiles_in_search_order): Use
8162 all_objfiles.
8163 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
8164 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
8165 (maintenance_check_psymtabs): Use all_objfiles.
8166 (ALL_PSYMTABS): Remove.
8167 * compile/compile-object-run.c (do_module_cleanup): Use
8168 all_objfiles.
8169 * blockframe.c (find_pc_partial_function): Use all_objfiles.
8170 * cp-support.c (add_symbol_overload_list_qualified): Use
8171 all_objfiles.
8172 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
8173 Use all_objfiles.
8174 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
8175 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
8176 all_objfiles.
8177 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
8178 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
8179 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
8180 Uses all_objfiles.
8181 * solib.c (solib_read_symbols): Use all_objfiles
8182
99d89cde
TT
81832019-01-09 Tom Tromey <tom@tromey.com>
8184
8185 * probe.c (parse_probes_in_pspace): Use all_objfiles.
8186 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
8187 all_objfiles.
8188 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
8189 * symmisc.c (print_symbol_bcache_statistics)
8190 (print_objfile_statistics, maintenance_print_objfiles)
8191 (maintenance_info_symtabs, maintenance_check_symtabs)
8192 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
8193 all_objfiles.
8194 * source.c (forget_cached_source_info): Use all_objfiles.
8195 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
8196 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
8197 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
8198 * objfiles.c (update_section_map): Use all_objfiles.
8199 (shared_objfile_contains_address_p): Likewise.
8200 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
8201 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
8202
21708325
TT
82032019-01-09 Tom Tromey <tom@tromey.com>
8204
8205 * common/next-iterator.h: New file.
8206 * objfiles.h (class all_objfiles): New.
8207 (struct objfile_iterator): New.
8208
669e09f6
PW
82092019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8210
8211 * NEWS: Move the description of the changed "frame", "select-frame",
8212 and "info frame" commands to the Changed commands section.
8213
041be526
SM
82142019-01-09 Simon Marchi <simon.marchi@ericsson.com>
8215
8216 * gdbtypes.c (check_stub_method_group): Remove handling of old
8217 mangling schemes.
8218 * linespec.c (find_methods): Likewise.
8219 * stabsread.c (read_member_functions): Likewise.
8220 * valops.c (search_struct_method): Likewise.
8221 (value_struct_elt_for_reference): Likewise.
8222 * NEWS: Mention this change.
8223
0e2a2133
AB
82242019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
8225
8226 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
8227 print_source_lines.
8228 * source.c (print_source_lines_base): Update line number check.
8229 (print_source_lines): New function.
8230 (source_lines_range::source_lines_range): New function.
8231 * source.h (class source_lines_range): New class.
8232 (print_source_lines): New declaration.
8233
1055a3b4
PW
82342019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8235
8236 * linespec.c (linespec_state_destructor): Free self->canonical_names.
8237
cfeadda5
TT
82382019-01-08 Tom Tromey <tom@tromey.com>
8239 Simon Marchi <simon.marchi@ericsson.com>
8240
8241 PR gdb/24060
8242 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
8243 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
8244 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
8245 * f-exp.y (DOLLAR_VARIABLE): Likewise.
8246 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
8247 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
8248
583068ca
AB
82492019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8250
8251 * source.c (select_source_symtab): Move header comment to
8252 declaration in source.h.
8253 (forget_cached_source_info_for_objfile): Likewise.
8254 (forget_cached_source_info): Likewise.
8255 (identify_source_line): Likewise.
8256 * source.h (identify_source_line): Move declaration from symtab.h
8257 and add comment from source.c
8258 (print_source_lines): Likewise.
8259 (forget_cached_source_info_for_objfile): Likewise.
8260 (forget_cached_source_info): Likewise.
8261 (select_source_symtab): Likewise.
8262 (enum print_source_lines_flag): Move definition from symtab.h.
8263 * symtab.h (identify_source_line): Move declaration to source.h.
8264 (print_source_lines): Likewise.
8265 (forget_cached_source_info_for_objfile): Likewise.
8266 (forget_cached_source_info): Likewise.
8267 (select_source_symtab): Likewise.
8268 (enum print_source_lines_flag): Move definition to source.h.
8269 * tui/tui-hooks.c: Add 'source.h' include.
8270
ec98a4ad
AB
82712019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8272
8273 * source.c (print_source_lines_base): Handle requests to print
8274 reverse line number sequences, and guard against empty lines
8275 string.
8276
62ea19c1
AB
82772019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
8278
8279 * source.c (print_source_lines_base): Fix skip of '\r' if next
8280 character is '\n'.
8281
9d30e1fd
TT
82822019-01-06 Tom Tromey <tom@tromey.com>
8283
8284 * c-exp.y (struct c_parse_state) <macro_original_text,
8285 expansion_obstack>: New member.
8286 (macro_original_text, expansion_obstack): Remove globals.
8287 (scan_macro_expansion, scanning_macro_expansion)
8288 (finished_macro_expansion): Update.
8289 (scan_macro_cleanup): Remove.
8290 (yylex, c_parse): Update.
8291
c65bac38
TT
82922019-01-06 Tom Tromey <tom@tromey.com>
8293
8294 * c-exp.y (struct c_parse_state) <strings>: New member.
8295 (operator_stoken): Update.
8296
02e12e38
TT
82972019-01-06 Tom Tromey <tom@tromey.com>
8298
8299 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
8300 (union type_stack_elt) <typelist_val>: Now a pointer to
8301 std::vector.
8302 (type_stack_cleanup): Don't declare.
8303 (push_typelist): Update.
8304 * parse.c (pop_typelist): Return a std::vector.
8305 (push_typelist): Take a std::vector.
8306 (follow_types): Update. Do not free args.
8307 (type_stack_cleanup): Remove.
8308 * c-exp.y (struct c_parse_state): New.
8309 (cpstate): New global.
8310 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
8311 (nonempty_typelist): Update.
8312 (func_mod): Create a new vector.
8313 (c_parse): Create a c_parse_state.
8314 (check_parameter_typelist): Do not delete params.
8315 (function_method): Update. Do not delete type_list.
8316
f097f5ad
TT
83172019-01-06 Tom Tromey <tom@tromey.com>
8318
8319 PR gdb/28155:
8320 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
8321 check_typedef.
8322 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
8323 (print_return_value): Likewise.
8324
d2adf9f1
TT
83252019-01-05 Tom Tromey <tom@tromey.com>
8326
8327 * contrib/cleanup_check.py: Remove.
8328 * contrib/gcc-with-excheck: Remove.
8329 * contrib/exsummary.py: Remove.
8330 * contrib/excheck.py: Remove.
8331
2eab46b1
JB
83322019-01-05 Joel Brobecker <brobecker@adacore.com>
8333
8334 * thread.c (delete_thread_1): Add gdb_assert that THR is not
8335 NULL. Initialize tpprev to NULL instead of assigning it
8336 to NULL on the next statement.
8337 * windows-nat.c (windows_delete_thread): Remove check for
8338 main_thread_id before printing thread exit notifications.
8339 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
8340 Remove thread ID check against main_thread_id.
8341 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
8342 windows_delete_thread.
8343 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
8344
48c5e7e2
TT
83452019-01-04 Tom Tromey <tom@tromey.com>
8346
8347 * compile/compile.c (_initialize_compile): Use upper case for
8348 metasyntactic variables.
8349 * symmisc.c (_initialize_symmisc): Use upper case for
8350 metasyntactic variables.
8351 * psymtab.c (_initialize_psymtab): Use upper case for
8352 metasyntactic variables.
8353 * demangle.c (demangle_command): Use upper case for metasyntactic
8354 variables.
8355 (_initialize_demangler): Likewise.
8356 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
8357 variables.
8358
986041cd
TT
83592019-01-03 Tom Tromey <tom@tromey.com>
8360
8361 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
8362
7c711119
TT
83632019-01-03 Tom Tromey <tom@tromey.com>
8364
8365 * python/py-symtab.c (salpy_str): Update.
8366 (struct salpy_sal_object) <symtab>: Now a PyObject.
8367 (salpy_dealloc): Update.
8368 (del_objfile_sal): Use gdbpy_ref.
8369
1b20edf0
TT
83702019-01-03 Tom Tromey <tom@tromey.com>
8371
8372 * python/py-type.c (convert_field): Use new_reference. Return
8373 gdbpy_ref.
8374 (make_fielditem): Return gdbpy_ref.
8375 (typy_fields): Update.
8376 (typy_getitem): Update.
8377 (field_name): Return gdbpy_ref. Use new_reference.
8378 (typy_iterator_iternext): Update.
8379
ea41325b
TT
83802019-01-03 Tom Tromey <tom@tromey.com>
8381
8382 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
8383
2a3c71d6
TT
83842019-01-03 Tom Tromey <tom@tromey.com>
8385
8386 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
8387 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
8388 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
8389 (pspy_set_frame_filters, pspy_set_frame_unwinders)
8390 (pspy_set_type_printers): Likewise.
8391 * python/py-function.c (fnpy_init): Use gdbpy_ref.
8392 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
8393 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
8394 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
8395 (objfpy_set_type_printers): Likewise.
8396
5c329e6a
TT
83972019-01-03 Tom Tromey <tom@tromey.com>
8398
8399 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
8400 (gdbpy_print_stack): Use gdbpy_err_fetch.
8401 * python/python-internal.h (class gdbpy_err_fetch): New class.
8402 (class gdbpy_enter) <m_error_type, m_error_value,
8403 m_error_traceback>: Remove.
8404 <m_error>: New member.
8405 (gdbpy_exception_to_string): Don't declare.
8406 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
8407 * python/py-value.c (convert_value_from_python): Use
8408 gdbpy_err_fetch.
8409 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
8410 gdbpy_exception_to_string.
8411 (gdbpy_handle_exception): Use gdbpy_err_fetch.
8412 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
8413 gdbpy_err_fetch.
8414
169bb27b
AB
84152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8416
8417 * linux-nat.c (delete_lwp_cleanup): Delete.
8418 (struct lwp_deleter): New struct.
8419 (lwp_info_up): New typedef.
8420 (linux_nat_target::follow_fork): Delete cleanup, and make use of
8421 lwp_info_up.
8422
a07c8880
AB
84232019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8424
8425 * linux-fork.c (class scoped_switch_fork_info): New class.
8426 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
8427
26089c49
AB
84282019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * valops.c (find_overload_match): Remove use of null_cleanup, and
8431 calls to do_cleanups.
8432
06d3e5b0
AB
84332019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8434
8435 * compile/compile-cplus-types.c
8436 (compile_cplus_instance::decl_name): Handle changes to
8437 cp_func_name.
8438 * cp-support.c (cp_func_name): Update header comment, update
8439 return type.
8440 * cp-support.h (cp_func_name): Update return type in declaration.
8441 * valops.c (find_overload_match): Move temp_func local to top
8442 level of function and change its type. Use temp_func to hold and
8443 delete temporary string obtained from cp_func_name.
8444
66644cd3
AB
84452019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
8446
8447 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
8448 gdb::char_vector, remove cleanup, and update uses of `msg`.
8449
592d8c0a
JW
84502019-01-03 Jim Wilson <jimw@sifive.com>
8451
8452 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
8453
c55d06ec
TT
84542019-01-02 Tom Tromey <tom@tromey.com>
8455
8456 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
8457 (tdesc_parse_xml): Remove cleanups.
8458 * target-descriptions.h (make_cleanup_free_target_description):
8459 Don't declare.
8460 (target_desc_deleter): New struct.
8461 (target_desc_up): New typedef.
8462 * target-descriptions.c (target_desc_deleter::operator()): Rename
8463 from free_target_description.
8464 (make_cleanup_free_target_description): Remove.
8465
3a6ae42d
TT
84662019-01-02 Tom Tromey <tom@tromey.com>
8467
8468 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
8469 constructor, destructor.
8470 (linespec_parser): Remove typedef.
8471 (~linespec_parser): Rename from linespec_parser_delete.
8472 (linespec_lex_to_end, linespec_complete_label)
8473 (linespec_complete): Update.
8474 (decode_line_full): Remove cleanups.
8475 (decode_line_1): Update.
8476
61fd3e73
TT
84772019-01-02 Tom Tromey <tom@tromey.com>
8478
8479 * python/python-internal.h (inferior_to_inferior_object): Change
8480 return type.
8481 * python/py-exitedevent.c (create_exited_event_object): Update.
8482 * python/py-inferior.c (inferior_to_inferior_object): Return
8483 gdbpy_ref.
8484 (python_new_inferior, python_inferior_deleted)
8485 (thread_to_thread_object, delete_thread_object)
8486 (build_inferior_list, gdbpy_selected_inferior): Update.
8487 * python/py-infthread.c (create_thread_object): Update. Also fail
8488 if inferior_to_inferior_object fails.
8489
d20172fc
SM
84902019-01-02 Simon Marchi <simon.marchi@ericsson.com>
8491
8492 * inferior.h (class inferior) <displaced_step_state>: New field.
8493 * infrun.h (struct displaced_step_state): Move here from
8494 infrun.c. Initialize fields, add constructor.
8495 <inf>: Remove field.
8496 <reset>: New method.
8497 * infrun.c (struct displaced_step_inferior_state): Move to
8498 infrun.h.
8499 (displaced_step_inferior_states): Remove.
8500 (get_displaced_stepping_state): Adust.
8501 (displaced_step_in_progress_any_inferior): Adjust.
8502 (displaced_step_in_progress_thread): Adjust.
8503 (displaced_step_in_progress): Adjust.
8504 (add_displaced_stepping_state): Remove.
8505 (get_displaced_step_closure_by_addr): Adjust.
8506 (remove_displaced_stepping_state): Remove.
8507 (infrun_inferior_exit): Call displaced_step_state.reset.
8508 (use_displaced_stepping): Don't check for NULL.
8509 (displaced_step_prepare_throw): Call
8510 get_displaced_stepping_state.
8511 (displaced_step_fixup): Don't check for NULL.
8512 (prepare_for_detach): Don't check for NULL.
8513
e3319240
PW
85142019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8515
8516 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
8517 in case of call that did not complete.
8518
5d36dfb9
AU
85192019-01-02 Andrey Utkin <autkin@undo.io>
8520
8521 * symfile.c (find_separate_debug_file): Fix search of debug files for
8522 remote debuggee.
8523
8833fbf0
TT
85242019-01-02 Tom Tromey <tom@tromey.com>
8525
8526 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
8527 indentation.
8528 * python/py-frame.c (frapy_older): Remove cast.
8529 (frapy_newer): Likewise.
8530 * python/py-breakpoint.c (local_setattro): Remove cast.
8531 * python/py-arch.c (archpy_name): Remove local variable.
8532 * python/py-type.c (gdbpy_lookup_type): Remove cast.
8533
4ada3dfd
JB
85342019-01-02 Joel Brobecker <brobecker@adacore.com>
8535
8536 * unittests/basic_string_view/element_access/char/empty.cc:
8537 Fix year range in copyright header.
8538
113b7b81
AB
85392019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
8540
8541 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
8542 Delete.
8543 <operator==>: Update with for removed field.
8544 <hash>: Likewise.
8545 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
8546 <isa_features>: ...this.
8547 <abi_features>: New field.
8548 (riscv_isa_flen): Update comment.
8549 (riscv_abi_xlen): New declaration.
8550 (riscv_abi_flen): New declaration.
8551 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
8552 isa_features.
8553 (riscv_abi_xlen): New function.
8554 (riscv_isa_flen): Update to get answer from isa_features.
8555 (riscv_abi_flen): New function.
8556 (riscv_has_fp_abi): Update to get answer from abi_features.
8557 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
8558 xlen and flen.
8559 (riscv_call_info) <xlen, flen>: Update comment.
8560 (riscv_call_arg_struct): Remove invalid assertions
8561 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
8562 is removed.
8563 (riscv_gdbarch_init): Gather isa features and abi features
8564 separately, ensure both match on the gdbarch when reusing an old
8565 gdbarch. Relax an error check to allow 32-bit abi float to run on
8566 a target with 64-bit float hardware.
8567
b18ca514
PW
85682019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8569
8570 * source.c (search_command_helper): Stop reverse search
8571 when line 1 has been searched.
8572
ec70d8db
PW
85732019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8574
8575 * record-full.c (record_full_base_target::close): Rewrite
8576 record_full_core_buf_list free logic.
8577
5b38f9c1
PW
85782019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8579
8580 * break-catch-syscall.c (print_one_catch_syscall): xfree
8581 the last text.
8582
66d91b39
JB
85832019-01-01 Joel Brobecker <brobecker@adacore.com>
8584
8585 * top.c (print_gdb_version): Update Copyright year in version
8586 message.
8587
42a4f53d
JB
85882019-01-01 Joel Brobecker <brobecker@adacore.com>
8589
8590 Update copyright year range in all GDB files.
8591
7e955d83 85922019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 8593
5bbd631d 8594 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 8595
5bbd631d 8596For older changes see ChangeLog-2018.
c906108c
SS
8597\f
8598Local Variables:
8599mode: change-log
8600left-margin: 8
8601fill-column: 74
8602version-control: never
57da7796 8603coding: utf-8
c906108c 8604End:
5bbd631d 8605
This page took 2.517187 seconds and 4 git commands to generate.