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