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