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