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