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