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