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