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