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