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