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