1 2019-06-16 Tom Tromey <tom@tromey.com>
3 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4 * breakpoint.c (stopin_command, stopat_command)
5 (until_break_command, decode_location_default): Remove unnecessary
7 * utils.c (subset_compare): Remove unnecessary cast.
8 * ada-lang.c (ada_update_initial_language): Remove unnecessary
10 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
12 * infcmd.c (path_command): Remove unnecessary cast.
13 * coffread.c (decode_type): Remove unnecessary cast.
14 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
15 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
16 * tui/tui-stack.c (tui_show_locator_content)
17 (tui_show_frame_info): Remove unnecessary cast.
18 * tui/tui-win.c (tui_scroll_forward_command)
19 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
20 (parse_scrolling_args): Remove unnecessary cast.
21 * tui/tui-data.c (init_win_info, tui_del_window)
22 (tui_free_window, tui_del_data_windows, tui_free_data_content)
23 (free_content_elements): Remove unnecessary cast.
24 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
26 * tui/tui-source.c (tui_set_source_content)
27 (tui_vertical_source_scroll): Remove unnecessary cast.
28 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
30 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
31 * tui/tui-regs.c (tui_display_registers_from)
32 (tui_display_register): Remove unnecessary cast.
33 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
34 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
35 (make_visible): Remove unnecessary cast.
36 * tui/tui-winsource.c (tui_erase_source_content)
37 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
39 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
40 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
41 * stabsread.c (read_type, read_array_type, read_range_type):
42 Remove unnecessary cast.
43 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
44 (parse_symbol, parse_type, upgrade_type, parse_external)
45 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
47 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
49 2019-06-16 Tom Tromey <tom@tromey.com>
51 * tui/tui-data.c (tui_alloc_generic_win_info)
52 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
55 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
56 Andrew Burgess <andrew.burgess@embecosm.com>
58 * f-typeprint.c (f_print_type): Don't return early for not
59 associated or not allocated types.
60 (f_type_print_varspec_suffix): Add print_rank parameter and print
61 ranks of array types in case they dangling.
62 (f_type_print_base): Add print_rank parameter.
64 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
66 * NEWS: Mention new MI commands.
67 * break-catch-throw.c (enum exception_event_kind): Move to
69 (print_mention_exception_catchpoint): Output text as a single
71 (catch_exception_command_1): Rename to...
72 (catch_exception_event): ...this, make non-static, update header
73 command, and change some parameter types.
74 (catch_catch_command): Update for changes to
75 catch_exception_command_1.
76 (catch_throw_command): Likewise.
77 (catch_rethrow_command): Likewise.
78 * breakpoint.c (enum exception_event_kind): Delete.
79 * breakpoint.h (enum exception_event_kind): Moved here from
81 (catch_exception_event): Declare.
82 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
83 (mi_cmd_catch_throw): New function.
84 (mi_cmd_catch_rethrow): New function.
85 (mi_cmd_catch_catch): New function.
86 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
87 'catch-catch' entries.
88 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
89 (mi_cmd_catch_rethrow): Declare.
90 (mi_cmd_catch_catch): Declare.
92 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
94 * annotate.c (annotate_source_line): Change return type to void,
95 update implementation to match.
96 * annotate.h (annotate_source_line): Change return type to void,
97 update header comment.
98 * stack.c (print_frame_info): Don't change what frame information
99 is printed based on whether annotations are on or not.
101 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
103 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
104 (annotate_source): Make static.
105 (annotate_source_line): Moved from source.c and renamed from
106 identify_source_line. Update the return type.
107 * annotate.h (annotate_source): Delete declaration.
108 (annotate_source_line): Declaration moved from source.h, and
109 renamed from identify_source_line. Return type updated.
110 * source.c (identify_source_line): Moved to annotate.c and renamed
111 to annotate_source_line.
112 (info_line_command): Remove check of annotation_level.
113 * source.h (identify_source_line): Move declaration to annotate.h
114 and rename to annotate_source_line.
115 * stack.c: Add 'annotate.h' include.
116 (print_frame_info): Remove check of annotation_level before
117 calling annotate_source_line.
119 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
121 * source-cache.c (source_cache::get_plain_source_lines): Use
122 open_source_file_with_line_charpos instead of just
123 open_source_file, remove call to find_source_lines.
124 (source_cache::get_source_lines): Likewise.
125 * source.c (find_source_lines): Make static.
126 (get_filename_and_charpos): Renamed into...
127 (open_source_file_with_line_charpos): ..this along with changes to
128 return a scoped_fd, and some other minor clean ups.
129 (identify_source_line): Use open_source_file_with_line_charpos.
130 (search_command_helper): Use open_source_file_with_line_charpos
131 instead of just open_source_file, remove call to
133 * source.h (open_source_file_with_line_charpos): Declare new
135 (find_source_lines): Delete declaration.
137 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
139 * source.c (get_filename_and_charpos): Remove fullname
141 (identify_source_line): Update call to get_filename_and_charpos.
143 2019-06-14 Tom Tromey <tromey@adacore.com>
146 * ui-style.h (skip_ansi_escape): Update comment.
147 * ui-file.h (class no_terminal_escape_file): New class.
148 * ui-file.c (no_terminal_escape_file::write)
149 (no_terminal_escape_file::puts): New methods.
150 * cli/cli-logging.c (handle_redirections): Use
151 no_terminal_escape_file.
153 2019-06-14 Tom Tromey <tromey@adacore.com>
155 * NEWS: Move convenience variable news above Python news.
157 2019-06-14 Tom Tromey <tom@tromey.com>
159 * gnulib: Move directory to top-level.
160 * configure.ac: Don't configure gnulib.
161 * configure: Rebuild.
162 * common/common-defs.h: Use new path to gnulib.
163 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
165 (INCGNU): Look in new gnulib location.
166 (HFILES_NO_SRCDIR): Remove gnulib files.
167 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
168 (generated_files): Remove GNULIB_H.
169 ($(LIBGNU), all-lib): Remove targets.
170 (distclean): Don't mention GNULIB_BUILDDIR.
171 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
173 2019-06-14 Tom Tromey <tromey@adacore.com>
175 * symfile.c (add_symbol_file_command): Remove obsolete comment.
176 Warn if symbol file does not provide any symbols.
178 2019-06-14 Tom Tromey <tromey@adacore.com>
180 * source.c (find_and_open_source): Respect basenames_may_differ.
182 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
184 * annotate.c (annotate_breakpoints_invalid): Make use of
185 scoped_restore_terminal_state.
186 (annotate_frames_invalid): Likewise.
188 2019-06-14 Tom Tromey <tromey@adacore.com>
190 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
191 allow assignment to an internalvar.
193 2019-06-14 Tom Tromey <tromey@adacore.com>
195 * ada-lex.l: Allow "_" in attribute names.
197 2019-06-14 Tom Tromey <tromey@adacore.com>
200 * regcache.c (registers_changed): Don't call alloca.
201 * top.c (execute_command): Don't call alloca.
203 2019-06-13 Pedro Alves <palves@redhat.com>
205 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
206 'expression'. When parsing an expression, error out if there's
207 junk after "unlimited".
208 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
209 (do_set_command): Adjust calls to is_unlimited_literal.
211 2019-06-13 Pedro Alves <palves@redhat.com>
213 * compile/compile.c (make_compile_options_def_group): Add braces
214 around array_view initializer.
215 * thread.c (make_thread_apply_all_options_def_group)
216 (make_thread_apply_all_options_def_group): Likewise.
218 2019-06-13 Pedro Alves <palves@redhat.com>
220 * NEWS (New commands): Mention "maint test-options
221 require-delimiter", "maint test-options unknown-is-error", "maint
222 test-options unknown-is-operand" and "maint show
223 test-options-completion-result".
224 (New command options, command completion): New section.
225 (Completion improvements): New section.
226 Mention that you can abbreviate "unlimited".
228 2019-06-13 Pedro Alves <palves@redhat.com>
230 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
231 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
232 * unittests/cli-utils-selftests.c (test_parse_flags)
233 (test_parse_flags_qcs): Delete.
234 (test_cli_utils): Don't call deleted functions.
236 2019-06-13 Pedro Alves <palves@redhat.com>
238 * thread.c: Include "cli/cli-option.h".
239 (tp_array_compar_ascending): Global.
240 (tp_array_compar): Delete function.
241 (tp_array_compar_ascending, tp_array_compar_descending): New
243 (ascending_option_def, qcs_flag_option_def)
244 (thr_qcs_flags_option_defs)
245 (make_thread_apply_all_options_def_group)
246 (make_thread_apply_options_def_group): New.
247 (thread_apply_all_command): Use gdb::option::process_options.
248 (thread_apply_command_completer)
249 (thread_apply_all_command_completer): New.
250 (thread_apply_command): Use gdb::option::process_options.
251 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
252 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
253 to generate help text of "thread apply". Adjust "taas"'s help.
254 * tid-parse.c (tid_range_parser::in_thread_range): New method.
255 * tid-parse.h (tid_range_parser::in_thread_range): New method.
257 2019-06-13 Pedro Alves <palves@redhat.com>
259 * thread.c (thread_apply_command): Check for invalid TID with
260 isdigit instead of !isalpha.
262 2019-06-13 Pedro Alves <palves@redhat.com>
264 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
265 (validate_flags_qcs): New.
266 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
267 (validate_flags_qcs): Declare.
268 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
269 (make_frame_apply_options_def_group): New.
270 (frame_apply_command_count): Process options with
271 gdb::option::process_options.
272 (frame_apply_completer): New.
273 (frame_apply_level_completer, frame_apply_all_completer)
274 (frame_apply_completer): New.
275 (_initialize_stack): Update help of "frame apply", "frame apply
276 level", "frame apply all" and "faas" to mention supported options
277 and install command completers.
278 * stack.h (frame_apply_all_completer): Declare.
279 * thread.c: Include "stack.h".
280 (tfaas_command): Add "--".
281 (_initialize_thread): Update help "tfaas" to mention supported
282 options and install command completer.
284 2019-06-13 Pedro Alves <palves@redhat.com>
286 * completer.c (complete_nested_command_line): New.
287 (gdb_completion_word_break_characters_throw): Add assertion.
288 * completer.h (complete_nested_command_line): Declare.
290 2019-06-13 Pedro Alves <palves@redhat.com>
292 * stack.c (parse_backtrace_qualifiers): New.
293 (backtrace_command): Use it.
294 (backtrace_command_completer): Complete on qualifiers.
296 2019-06-13 Pedro Alves <palves@redhat.com>
298 * frame.c: Include "cli/cli-option.h.
299 (user_set_backtrace_options): New.
300 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
302 (get_prev_frame): Adjust.
303 (boolean_option_def, uinteger_option_def)
304 (set_backtrace_option_defs): New.
305 (_initialize_frame): Adjust and use
306 gdb::option::add_setshow_cmds_for_options to install "set
307 backtrace past-main" and "set backtrace past-entry".
308 * frame.h: Include "cli/cli-option.h".
309 (struct frame_print_options): Forward declare.
310 (print_frame_arguments_all, print_frame_arguments_scalars)
311 (print_frame_arguments_none): Declare.
312 (print_entry_values): Delete declaration.
313 (struct frame_print_options, user_frame_print_options): New.
314 (struct set_backtrace_options): New.
315 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
316 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
317 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
318 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
319 (list_args_or_locals): Add frame_print_options parameter.
320 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
321 * python/py-framefilter.c (enumerate_args): Pass down
322 USER_FRAME_PRINT_OPTIONS.
323 * stack.c: Include "cli/cli-option.h".
324 (print_frame_arguments_all, print_frame_arguments_scalars)
325 (print_frame_arguments_none): Declare.
326 (print_raw_frame_arguments, print_entry_values): Delete.
327 (user_frame_print_options): New.
328 (boolean_option_def, enum_option_def, frame_print_option_defs):
330 (struct backtrace_cmd_options): New.
331 (bt_flag_option_def): New.
332 (backtrace_command_option_defs): New.
333 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
334 (print_frame_arg, read_frame_arg, print_frame_args)
335 (print_frame_info, print_frame): Add frame_print_options parameter
337 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
338 (backtrace_command_1): Add frame_print_options and
339 backtrace_cmd_options parameters and use them.
340 (make_backtrace_options_def_group): New.
341 (backtrace_command): Process command options with
342 gdb::option::process_options.
343 (backtrace_command_completer): New.
344 (_initialize_stack): Extend "backtrace"'s help to mention
345 supported options. Install completer for "backtrace".
346 Install some settings commands with add_setshow_cmds_for_options.
348 2019-06-13 Pedro Alves <palves@redhat.com>
350 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
351 and that "set/show print raw frame-arguments" are now deprecated.
353 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
355 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
356 * stack.c (_initialize_stack): Install "set/show print
357 raw-frame-arguments", and deprecate "set/show print raw
359 * valprint.c (_initialize_valprint): Deprecate "set/show print
362 2019-06-13 Pedro Alves <palves@redhat.com>
364 * compile/compile.c (struct compile_options): New.
365 (compile_flag_option_def, compile_command_option_defs)
366 (make_compile_options_def_group): New.
367 (compile_file_command): Handle options with
368 gdb::option::process_options.
369 (compile_file_command_completer): New function.
370 (compile_code_command): Handle options with
371 gdb::option::process_options.
372 (compile_code_command_completer): New function.
373 (_initialize_compiler): Install completers for "compile code" and
374 "compile file". Mention available options in "compile code" and
375 "compile code"'s help.
376 * completer.c (advance_to_completion_word): New, factored out from
378 (advance_to_expression_complete_word_point): ... this.
379 (advance_to_filename_complete_word_point): New.
380 * completer.h (advance_to_filename_complete_word_point): New
383 2019-06-13 Pedro Alves <palves@redhat.com>
385 * compile/compile.c: Include "cli/cli-option.h".
386 (compile_print_value): Scope data pointer is now a
387 value_print_options pointer; adjust.
388 (compile_print_command): Process options. Scope data pointer is
389 now a value_print_options pointer; adjust.
390 (_initialize_compile): Update "compile print"'s help to include
391 supported options. Install a completer for "compile print".
392 * cp-valprint.c (show_vtblprint, show_objectprint)
393 (show_static_field_print): Delete.
394 (_initialize_cp_valprint): Don't install "set print
395 static-members", "set print vtbl", "set print object" here.
396 * printcmd.c: Include "cli/cli-option.h" and
397 "common/gdb_optional.h".
398 (print_command_parse_format): Rework to fill in a
399 value_print_options instead of a format_data.
400 (print_value): Change parameter type from format_data pointer to
401 value_print_options reference. Adjust.
402 (print_command_1): Process options. Adjust to pass down a
404 (print_command_completer): New.
405 (_initialize_printcmd): Install print_command_completer as
406 handle_brkchars completer for the "print" command. Update
407 "print"'s help to include supported options.
408 * valprint.c: Include "cli/cli-option.h".
409 (show_vtblprint, show_objectprint, show_static_field_print): Moved
410 here from cp-valprint.c.
411 (boolean_option_def, uinteger_option_def)
412 (value_print_option_defs, make_value_print_options_def_group):
413 New. Use gdb::option::add_setshow_cmds_for_options to install
414 "set print elements", "set print null-stop", "set print repeats",
415 "set print pretty", "set print union", "set print array", "set
416 print address", "set print symbol", "set print array-indexes".
417 * valprint.h: Include <string> and "cli/cli-option.h".
418 (make_value_print_options_def_group): Declare.
419 (print_value): Change parameter type from format_data pointer to
420 value_print_options reference.
421 (print_command_completer): Declare.
423 2019-06-13 Pedro Alves <palves@redhat.com>
425 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
426 (COMMON_SFILES): Add maint-test-settings.c.
427 * cli/cli-decode.c (boolean_enums): New global, factored out from
429 (add_setshow_boolean_cmd): ... here.
430 * cli/cli-decode.h (boolean_enums): Declare.
431 * cli/cli-option.c: New file.
432 * cli/cli-option.h: New file.
433 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
434 factored out from ...
435 (parse_cli_boolean_value(const char *)): ... this.
436 (is_unlimited_literal): Change parameter type to pointer to
437 pointer. Adjust and advance ARG pointer.
438 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
439 (parse_cli_var_enum): New, factored out from ...
440 (do_set_command): ... this. Adjust.
441 * cli/cli-setshow.h (parse_cli_boolean_value)
442 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
443 (parse_cli_var_enum): Declare.
444 * cli/cli-utils.c: Include "cli/cli-option.h".
446 * cli/cli-utils.h (get_ulongest): Declare.
447 (check_for_argument): New overloads.
448 * maint-test-options.c: New file.
450 2019-06-13 Pedro Alves <palves@redhat.com>
452 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
453 parse a range if "-" is at the end of the string.
455 2019-06-13 Pedro Alves <palves@redhat.com>
457 * cli/cli-setshow.c (parse_auto_binary_operation)
458 (parse_cli_boolean_value): Don't allow "o".
460 2019-06-13 Pedro Alves <palves@redhat.com>
462 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
463 * NEWS: Mention maint test-settings KIND.
464 * maint-test-settings.c: New file.
466 2019-06-13 Pedro Alves <palves@redhat.com>
468 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
470 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
473 2019-06-13 Pedro Alves <palves@redhat.com>
475 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
478 2019-06-13 Pedro Alves <palves@redhat.com>
480 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
482 2019-06-13 Pedro Alves <palves@redhat.com>
484 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
485 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
487 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
488 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
490 (check_for_argument): Skip spaces after argument.
492 2019-06-13 Pedro Alves <palves@redhat.com>
494 * thread.c (thread_apply_command): Adjust TID parsing.
495 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
496 detected before end of string.
497 (tid_is_in_list): Error out if LIST is invalid.
499 2019-06-13 Pedro Alves <palves@redhat.com>
501 * completer.c (complete_line_internal_1): Rewind completion word
503 (completion_tracker::advance_custom_word_point_by): Change
504 parameter type to int.
505 * completer.h (completion_tracker::advance_custom_word_point_by):
508 2019-06-13 Pedro Alves <palves@redhat.com>
510 * completer.c (advance_to_completion_word): Handle delimiters.
512 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
514 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
516 2019-06-11 Tom Tromey <tom@tromey.com>
518 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
519 (xmalloc_failed): Move to alloc.c.
521 * Makefile.in (COMMON_SFILES): Add alloc.c.
523 2019-06-11 Tom Tromey <tom@tromey.com>
525 * nat/linux-waitpid.c: Don't include server.h.
526 (linux_debug): Remove.
527 (my_waitpid): Update.
529 2019-06-11 Tom Tromey <tromey@adacore.com>
531 * infcall.c (_initialize_infcall): Remove trailing newline from
533 * user-regs.c (_initialize_user_regs): Remove trailing newline
535 * typeprint.c (_initialize_typeprint): Remove trailing newline
537 * reverse.c (_initialize_reverse): Remove trailing newlines from
539 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
541 * language.c (add_set_language_command): Remove trailing newline
543 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
545 * disasm.c (_initialize_disasm): Remove trailing newline from
547 * top.c (init_main): Remove trailing newline from help.
548 * interps.c (_initialize_interpreter): Remove trailing newline
550 * btrace.c (_initialize_btrace): Remove trailing newlines from
552 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
554 * python/python.c (_initialize_python): Remove trailing newline
556 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
558 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
559 from help. Reformat some text.
560 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
562 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
565 2019-06-11 Tom Tromey <tromey@adacore.com>
567 * darwin-nat.c (darwin_decode_exception_message)
568 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
570 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
572 * valops.c (value_slice): Check for not allocated or not
575 2019-06-10 Tom de Vries <tdevries@suse.de>
578 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
579 sure an empty slot (defined by a 32-bit zero pair) is recognized as
582 2019-06-10 Tom de Vries <tdevries@suse.de>
585 * linespec.c (linespec_lexer_lex_string): Remove incorrect
586 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
588 2019-06-10 Tom de Vries <tdevries@suse.de>
591 * symtab.c (struct demangled_name_entry): Add language field.
592 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
593 static minimal symbol". Set and use language field.
595 2019-06-10 Tom Tromey <tromey@adacore.com>
597 * ada-lang.c (_initialize_ada_language): Update help text.
599 2019-06-10 Tom Tromey <tromey@adacore.com>
601 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
603 * guile/guile.c (handle_boot_error): Don't end warning with a
605 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
606 warning with a newline.
607 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
609 (s12z_frame_cache): Likewise.
610 * dwarf-index-cache.c (index_cache::store): Don't end warning with
612 * solib-svr4.c (disable_probes_interface): Don't end warning with
614 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
616 * python/python.c (do_finish_initialization): Don't end warning
619 2019-06-10 Tom Tromey <tom@tromey.com>
621 * python/py-breakpoint.c (gdbpy_breakpoint_created)
622 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
625 2019-06-10 Tom Tromey <tromey@adacore.com>
627 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
629 (elf_new_init): Don't call stabsread_new_init.
630 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
631 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
632 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
634 2019-06-10 Tom de Vries <tdevries@suse.de>
638 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
640 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
642 * source.c (find_and_open_source): Also rewrite relative file
645 2019-04-26 Amos Bird <amosbird@gmail.com>
647 * annotate.c (annotate_thread_exited): Add "thread-exited"
650 2019-06-06 Tom Tromey <tromey@adacore.com>
652 * maint.h (class scoped_command_stats): Use
653 DISABLE_COPY_AND_ASSIGN.
654 <print_time>: New method.
655 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
657 (scoped_command_stats::print_time): New method.
659 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
661 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
662 instructions of lengths 6 or 8 bytes.
664 2019-06-04 Pedro Alves <palves@redhat.com>
666 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
668 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
669 * breakpoint.c (condition_completer): Likewise.
670 * cli/cli-dump.c (scan_expression): Likewise.
671 * common/filestuff.c (mkdir_recursive): Likewise.
672 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
673 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
674 (gdb_abspath): Likewise.
675 * compile/compile-cplus-types.c
676 (compile_cplus_instance::decl_name): Likewise.
677 * completer.c (complete_explicit_location):
678 (signal_completer, reg_or_group_completer_1): Likewise.
679 * cp-support.c (cp_remove_params_if_any): Likewise.
680 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
681 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
682 * infcmd.c (strip_bg_char): Likewise.
683 * linespec.c (copy_token_string): Likewise.
684 * mi/mi-main.c (output_cores): Likewise.
685 * psymtab.c (psymtab_search_name):
686 * symfile.c (test_set_ext_lang_command): Likewise.
687 * target.c (target_fileio_read_stralloc): Likewise.
688 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
689 * value.c (complete_internalvar): Likewise.
691 2019-06-04 Christian Biesinger <cbiesinger@google.com>
693 Add objfile property to gdb.Type.
694 * NEWS: Mention Python API addition.
695 * python/py-type.c (typy_get_objfile): New method.
697 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
699 * NEWS: Mention the new set|show style [title|highlight].
700 Mention changes to "show style", "help" and "apropos".
702 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
704 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
705 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
706 instead of print_help_for_command.
707 (print_doc_of_command): New function.
708 (help_list): Add 'apropos -v word' suggestion.
709 (print_help_for_command): Style the command name using title style.
710 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
711 (_initialize_cli_cmds): Describe -v in apropos_command help.
713 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
715 * cli/cli-style.h (cli_style_option): Add name in constructor,
716 add m_name class member, add constructor with intensity,
717 add name class function.
718 (cli_style_option::add_setshow_commands): Remove name argument.
719 (highlight_style, title_style): New styles.
720 * cli/cli-style.c (do_show): New function that shows a style
721 characteristic styling the style name with itself.
722 (set_style_name): New function.
723 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
724 Update all callers according to the changes in cli/cli-style.h.
725 * utils.h (fputs_highlighted): New function.
726 * utils.c (fputs_highlighted): Likewise.
728 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
730 * NEWS: Mention new pipe command and new convenience variables.
732 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
734 * cli/cli-cmds.c (pipe_command): New function.
735 (_initialize_cli_cmds): Call add_com for pipe_command.
736 Define | as an alias for pipe.
737 (exit_status_set_internal_vars): New function.
738 (shell_escape): Call exit_status_set_internal_vars.
739 cli/cli-decode.c (find_command_name_length): Recognize | as
740 a single character command.
742 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
744 * gdbcmd.h (execute_command_to_ui_file): New declaration.
745 top.c (execute_command_to_ui_file): New function, mostly a copy
746 of execute_command_to_string.
747 (execute_command_to_string): Implement by calling
748 execute_command_to_ui_file.
750 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
752 * top.h (saved_command_line): Remove declaration.
753 * top.c (previous_saved_command_line, previous_repeat_arguments):
755 (saved_command_line): Make static, define together with other
757 (dont_repeat): Clear repeat_arguments.
758 (repeat_previous, get_saved_command_line, save_command_line):
760 (gdb_init): Initialize saved_command_line
761 and previous_saved_command_line.
762 * main.c (captured_main_1): Remove saved_command_line initialization.
763 * event-top.c (handle_line_of_input): Update to use
764 the new 'repeat' related functions instead of direct access to
766 * command.h (repeat_previous, get_saved_command_line,
767 save_command_line): New declarations.
768 (dont_repeat): Add comment.
770 2019-05-30 Tom Tromey <tromey@adacore.com>
772 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
774 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
776 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
779 * completer.c (complete): Initialize variable word.
781 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
783 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
784 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
785 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
786 'body' is NULL to the outter 'if', protecting the '!is_define'
789 2019-05-29 Tom Tromey <tromey@adacore.com>
791 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
792 (dwarf_unknown): New function.
793 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
794 (dwarf_type_encoding_name): Use dwarf_unknown.
796 2019-05-29 Tom Tromey <tromey@adacore.com>
799 * cp-valprint.c (cp_print_value_fields): Call
800 cp_print_static_field inside "try".
802 2019-05-29 Tom Tromey <tromey@adacore.com>
804 * inflow.c (struct terminal_info): Add default operator=.
805 * configure: Rebuild.
806 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
807 -Wdeprecated-copy-dtor, -Wredundant-move.
809 2019-05-29 Tom Tromey <tromey@adacore.com>
812 * infcmd.c (print_return_value_1): Handle finish_print
814 (show_print_finish): New function.
815 (_initialize_infcmd): Add "set/show print finish" commands.
816 * valprint.c (user_print_options): Initialize new member.
817 * valprint.h (struct value_print_options) <finish_print>: New
820 2019-05-28 Tom Tromey <tromey@adacore.com>
822 * ada-lang.c (ada_remove_Xbn_suffix)
823 (find_old_style_renaming_symbol)
824 (parse_old_style_renaming): Remove.
825 (ada_find_renaming_symbol): Don't call
826 find_old_style_renaming_symbol.
827 (ada_is_renaming_symbol): Rename from
828 ada_find_renaming_symbol. Remove "block" parameter. Return
830 (ada_read_var_value): Update and simplify.
831 * ada-exp.y (write_var_or_type): Remove old code.
833 2019-05-28 Alan Hayward <alan.hayward@arm.com>
835 * event-top.c: Remove include comment.
836 * inflow.c (class scoped_ignore_sigttou): Move from here...
837 * inflow.h (class scoped_ignore_sigttou): ...to here.
838 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
839 * top.c: Remove include comment.
841 2019-05-27 Tom Tromey <tom@tromey.com>
845 2019-05-22 Tom Tromey <tromey@adacore.com>
847 * target.c (target_follow_exec): Constify parameter.
848 * target-delegates.c: Rebuild.
849 * remote.c (remote_target::follow_exec): Constify parameter.
850 * infrun.c (follow_exec): Constify parameter.
851 * target.h (struct target_ops) <follow_exec>: Constify parameter.
852 (target_follow_exec): Likewise.
854 2019-05-22 Alan Hayward <alan.hayward@arm.com>
856 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
857 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
859 2019-05-22 Alan Hayward <alan.hayward@arm.com>
861 * NEWS: Add debugredirect and testsuite sections.
863 2019-05-22 Simon Cook <simon.cook@embecosm.com>
865 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
866 target descriptions using exclusively floating point register name
869 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
872 * f-lang.c (build_fortran_types): Handle the case where
873 gdbarch_floatformat_for_type returns a nullptr.
875 2019-05-21 Tom de Vries <tdevries@suse.de>
878 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
880 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
883 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
885 * i386-tdep.c (i386_floatformat_for_type): Use
886 floatformats_ia64_quad for the 16-byte floating point component
887 within a fortran 32-byte complex number.
889 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
891 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
892 delete default constructor.
893 (find_partial_die): Update to return const struct.
894 (partial_die_parent_scope): Move variable declaration into scope
895 of its use and change its type to auto.
896 (guess_partial_die_structure_name): Likewise.
897 (partial_die_info::fixup): Likewise.
899 2019-05-17 Tom Tromey <tromey@adacore.com>
901 * source.c (find_and_open_source): Remove cast.
903 2019-05-17 Tom Tromey <tromey@adacore.com>
905 * annotate.c (annotate_source): Make "filename" const.
906 * annotate.h (annotate_source): Use const.
908 2019-05-17 Alan Hayward <alan.hayward@arm.com>
910 * disasm.c (set_disassembler_options): Send errors to stderr.
912 2019-05-17 Alan Hayward <alan.hayward@arm.com>
914 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
915 (cli_interp_base::set_logging): Check debug_redirect.
916 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
917 * cli/cli-logging.c (debug_redirect): Add static variable.
918 (pop_output_files): Add default param.
919 (handle_redirections): Print debug setting.
920 (show_logging_command): Likewise.
921 (_initialize_cli_logging): Add debugredirect command.
922 * interps.c (current_interp_set_logging): Add debug_redirect
924 * interps.h (set_logging): Add debug_redirect parameter.
925 (current_interp_set_logging): Likewise.
926 * mi/mi-common.h: Likewise.
927 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
929 2019-05-17 Alan Hayward <alan.hayward@arm.com>
930 Tom Tromey <tromey@adacore.com>
932 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
934 * cli/cli-interp.h (make_logging_output): Remove declaration.
935 * cli/cli-logging.c (make_logging_output): Remove function.
936 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
938 * ui-file.c (tee_file::tee_file): Remove bools.
939 (tee_file::~tee_file): Remove deletes.
940 * ui-file.h (tee_file): Remove bools.
942 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
944 * mi/mi-cmds.h (mi_cmd_complete): New function.
945 * mi/mi-main.c (mi_cmd_complete): Likewise.
946 * mi/mi-cmds.c: Define new MI command -complete.
947 * NEWS: Mention new -complete command.
949 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
951 * completer.h (complete): New function.
952 * completer.c (complete): Likewise.
953 * cli/cli-cmds.c: (complete_command): Update to use new complete()
954 function defined in completer.h.
956 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
958 * MAINTAINERS (Write After Approval): Add myself.
960 2019-05-17 Tom de Vries <tdevries@suse.de>
963 * dwarf2read.c (struct cu_partial_die_info): New struct.
964 (find_partial_die): Return cu_partial_die_info.
965 (partial_die_parent_scope, guess_partial_die_structure_name)
966 (partial_die_info::fixup): Handle new return type of find_partial_die.
968 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
970 * stap-probe.c (stap_parse_register_operand): Make "regname" an
971 "std::string", simplifying the algorithm.
973 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
975 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
976 (stap_static_probe_ops::get_probes): Likewise.
978 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
980 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
982 (stap_parse_single_operand): Join checks for
983 "gdbarch_stap_parse_special_token_p" and
984 "gdbarch_stap_parse_special_token" in the same "if" statement.
985 Invert check when verifying for operation on register
988 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
990 * stap-probe.c (stap_get_opcode): Update comment.
991 (stap_get_expected_argument_type): Likewise.
992 (handle_stap_probe): Likewise.
994 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
996 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
997 return type to 'bool'. Adjust comment. Use 'bool' when
999 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1000 * stap-probe.c (stap_parse_argument_1): Likewise.
1001 (stap_is_operator): Likewise.
1002 (stap_is_generic_prefix): Likewise.
1003 (stap_is_register_prefix): Likewise.
1004 (stap_is_register_indirection_prefix): Likewise.
1005 (stap_is_integer_prefix): Likewise.
1006 (stap_generic_check_suffix): Likewise.
1007 (stap_check_integer_suffix): Likewise.
1008 (stap_check_register_suffix): Likewise.
1009 (stap_check_register_indirection_suffix): Likewise.
1010 (stap_parse_register_operand): Likewise.
1011 (stap_parse_single_operand): Likewise.
1012 (stap_parse_argument_1): Likewise.
1013 (stap_probe::get_argument_count): Likewise.
1014 (stap_is_operator): Likewise.
1016 2019-05-16 Tom Tromey <tromey@adacore.com>
1018 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
1021 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
1023 * linux-thread-db.c (try_thread_db_load_1): Change return type
1025 (try_thread_db_load): Likewise.
1026 (try_thread_db_load_from_pdir_1): Likewise.
1027 (try_thread_db_load_from_pdir): Likewise.
1028 (try_thread_db_load_from_sdir): Likewise.
1029 (try_thread_db_load_from_dir): Likewise.
1030 (thread_db_load_search): Likewise.
1031 (has_libpthread): Likewise.
1032 (thread_db_load): Likewise.
1034 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
1036 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
1037 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
1038 NULL, and complain/return if that's the case.
1040 2019-05-15 John Darrington <john@darrington.wattle.id.au>
1042 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
1043 (advance, posn, abstract_read_memory): New functions.
1044 [struct mem_read_abstraction]: New struct.
1045 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
1047 2019-05-14 Tom Tromey <tromey@adacore.com>
1049 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
1050 value is not lval_memory.
1052 2019-05-14 Tom Tromey <tromey@adacore.com>
1054 * solib.c (info_sharedlibrary_command): Style the file name.
1056 2019-05-14 Alan Hayward <alan.hayward@arm.com>
1058 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
1059 (aarch64_vnv_type): Likewise.
1060 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
1061 * common/tdesc.c: Likewise.
1062 * common/tdesc.h (enum tdesc_type_kind): Likewise.
1063 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1064 * features/aarch64-fpu.xml: Add ieee half view.
1065 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
1066 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
1067 * gdbtypes.h (struct builtin_type): Likewise.
1068 (struct objfile_type): Likewise.
1070 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
1072 * language.c (language_sniff_from_mangled_name): Fix "langauge"
1074 * location.h (string_to_event_location): Likewise.
1076 2019-05-11 Joel Brobecker <brobecker@adacore.com>
1080 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
1082 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
1083 New variable declaration.
1084 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
1086 (print_one_breakpoint): Use ui_out::test_flags and new global
1087 variable to compute use_fixed_output.
1088 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
1090 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
1091 (mi_multi_location_breakpoint_output_fixed): Remove.
1092 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
1094 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
1095 fix_multi_location_breakpoint_output flag if version >= 3.
1096 * ui-out.h (enum ui_out_flag)
1097 <fix_multi_location_breakpoint_output>: New enumerator.
1099 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
1101 * contrib/cc-with-tweaks.sh: Validate dwz's work.
1103 2019-05-10 Tom Tromey <tromey@adacore.com>
1105 * ada-lang.c (catch_ada_completer): New function.
1106 (_initialize_ada_language): Use it.
1108 2019-05-10 Tom Tromey <tromey@adacore.com>
1110 * thread.c (print_thread_info): Make "requested_threads" const.
1111 * gdbthread.h (print_thread_info): Make "requested_threads"
1113 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
1114 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
1116 2019-05-08 Tom Tromey <tom@tromey.com>
1118 * gdbtypes.c (objfile_type_data): Change type.
1119 (objfile_type, _initialize_gdbtypes): Update.
1121 2019-05-08 Tom Tromey <tom@tromey.com>
1123 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
1124 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
1125 (_initialize_dwarf2_frame): Update.
1127 2019-05-08 Tom Tromey <tom@tromey.com>
1129 * objc-lang.c (objc_objfile_data): Change type.
1130 (find_methods): Update.
1131 (_initialize_objc_lang): Remove.
1133 2019-05-08 Tom Tromey <tom@tromey.com>
1135 * stabsread.c (rs6000_builtin_type_data): Change type.
1136 (rs6000_builtin_type, _initialize_stabsread): Update.
1138 2019-05-08 Tom Tromey <tom@tromey.com>
1140 * mips-tdep.c (mips_pdr_data): Remove.
1141 (_initialize_mips_tdep): Update.
1143 2019-05-08 Tom Tromey <tom@tromey.com>
1145 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
1146 (hppa_init_objfile_priv_data, read_unwind_info)
1147 (find_unwind_entry, _initialize_hppa_tdep): Update.
1149 2019-05-08 Tom Tromey <tom@tromey.com>
1151 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
1152 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
1154 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
1156 2019-05-08 Tom Tromey <tom@tromey.com>
1158 * mdebugread.c (basic_type_data): Change type.
1159 (basic_type, _initialize_mdebugread): Update.
1161 2019-05-08 Tom Tromey <tom@tromey.com>
1163 * common/gdb_unique_ptr.h (struct noop_deleter): New.
1165 2019-05-08 Tom Tromey <tom@tromey.com>
1167 * nto-tdep.c (nto_inferior_data_reg): Change type.
1168 (nto_inferior_data): Update.
1169 (nto_inferior_data_cleanup, nto_new_inferior_data)
1170 (_initialize_nto_tdep): Remove.
1171 * nto-tdep.h (struct nto_inferior_data): Add initializers.
1173 2019-05-08 Tom Tromey <tom@tromey.com>
1175 * ada-lang.c (struct ada_inferior_data): Add initializers.
1176 (ada_inferior_data): Change type.
1177 (ada_inferior_data_cleanup): Remove.
1178 (get_ada_inferior_data, ada_inferior_exit)
1179 (struct ada_pspace_data): Add initializers, destructor.
1180 (ada_pspace_data_handle): Change type.
1181 (get_ada_pspace_data): Update.
1182 (ada_pspace_data_cleanup): Remove.
1184 2019-05-08 Tom Tromey <tom@tromey.com>
1186 * coffread.c (struct coff_symfile_info): Add initializers.
1187 (coff_objfile_data_key): Move lower. Change type.
1188 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
1190 (coff_free_info): Remove.
1192 2019-05-08 Tom Tromey <tom@tromey.com>
1194 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
1195 (fbsd_pspace_data_handle): Move lower. Change type.
1196 (get_fbsd_pspace_data): Update.
1197 (fbsd_pspace_data_cleanup): Remove.
1198 (_initialize_fbsd_tdep): Update.
1200 2019-05-08 Tom Tromey <tom@tromey.com>
1202 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
1203 (get_ada_tasks_pspace_data): Update.
1204 (ada_tasks_pspace_data_cleanup): Remove.
1205 (_initialize_tasks): Update.
1206 (ada_tasks_inferior_data_handle): Change type.
1207 (get_ada_tasks_inferior_data): Update.
1208 (ada_tasks_inferior_data_cleanup): Remove.
1209 (struct ada_tasks_pspace_data): Add initializers.
1211 2019-05-08 Tom Tromey <tom@tromey.com>
1213 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
1214 * symfile-debug.c (debug_sym_get_probes): Change type.
1215 * stap-probe.c (handle_stap_probe):
1216 (stap_static_probe_ops::get_probes): Change type.
1217 * probe.h (class static_probe_ops) <get_probes>: Change type.
1218 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
1219 (parse_probes_in_pspace): Update.
1220 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
1222 (any_static_probe_ops::get_probes): Change type.
1223 * elfread.c (elfread_data): New typedef.
1224 (probe_key): Change type.
1225 (elf_get_probes): Likewise. Update.
1226 (probe_key_free): Remove.
1227 (_initialize_elfread): Update.
1228 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
1230 (dtrace_process_dof_probe, dtrace_process_dof)
1231 (dtrace_static_probe_ops::get_probe): Change type.
1233 2019-05-08 Tom Tromey <tom@tromey.com>
1235 * xcoffread.c (struct xcoff_symfile_info): Rename from
1236 coff_symfile_info. Add initializers.
1237 (xcoff_objfile_data_key): Move lower. Change type.
1238 (XCOFF_DATA): Rewrite.
1239 (xcoff_free_info): Remove.
1240 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
1241 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
1242 (xcoff_initial_scan): Update.
1244 2019-05-08 Tom Tromey <tom@tromey.com>
1246 * solib-svr4.c (struct svr4_info): Add initializers and
1248 <probes_table>: Now an htab_up.
1249 (solib_svr4_pspace_data): Change type.
1250 (free_probes_table): Simplify.
1251 (~svr4_info): Rename from svr4_pspace_data_cleanup.
1252 (get_svr4_info, probes_table_htab_remove_objfile_probes)
1253 (probes_table_remove_objfile_probes, register_solib_event_probe)
1254 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
1255 (_initialize_svr4_solib): Update.
1257 2019-05-08 Tom Tromey <tom@tromey.com>
1259 * remote.c (remote_pspace_data): Change type.
1260 (remote_pspace_data_cleanup): Remove.
1261 (get_remote_exec_file, set_pspace_remote_exec_file)
1262 (_initialize_remote): Update.
1264 2019-05-08 Tom Tromey <tom@tromey.com>
1266 * breakpoint.c (breakpoint_objfile_key): Change type.
1267 (get_breakpoint_objfile_data): Update.
1268 (free_breakpoint_objfile_data): Remove.
1269 (_initialize_breakpoint): Update.
1271 2019-05-08 Tom Tromey <tom@tromey.com>
1273 * linux-tdep.c (struct linux_info): Add initializers.
1274 (linux_inferior_data): Move. Change type.
1275 (invalidate_linux_cache_inf): Update.
1276 (linux_inferior_data_cleanup): Remove.
1277 (get_linux_inferior_data, _initialize_linux_tdep): Update.
1279 2019-05-08 Tom Tromey <tom@tromey.com>
1281 * auxv.c (auxv_inferior_data): Move. Change type.
1282 (auxv_inferior_data_cleanup): Remove.
1283 (invalidate_auxv_cache_inf): Rewrite.
1284 (get_auxv_inferior_data, _initialize_auxv): Update.
1286 2019-05-08 Tom Tromey <tom@tromey.com>
1288 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
1289 (symfile_debug_objfile_data_key): Change type.
1290 (symfile_debug_installed, debug_qf_has_symbols)
1291 (debug_qf_find_last_source_symtab)
1292 (debug_qf_forget_cached_source_info)
1293 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
1294 (debug_qf_print_stats, debug_qf_dump)
1295 (debug_qf_expand_symtabs_for_function)
1296 (debug_qf_expand_all_symtabs)
1297 (debug_qf_expand_symtabs_with_fullname)
1298 (debug_qf_map_matching_symbols)
1299 (debug_qf_expand_symtabs_matching)
1300 (debug_qf_find_pc_sect_compunit_symtab)
1301 (debug_qf_map_symbol_filenames)
1302 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
1303 (debug_sym_new_init, debug_sym_init, debug_sym_read)
1304 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
1305 (debug_sym_read_linetable, debug_sym_relocate): Update.
1306 (symfile_debug_free_objfile): Remove.
1307 (install_symfile_debug_logging, _initialize_symfile_debug):
1310 2019-05-08 Tom Tromey <tom@tromey.com>
1312 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
1313 allocate_on_obstack.
1314 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
1315 (get_dwarf2_per_objfile): Update.
1316 (set_dwarf2_per_objfile): Remove.
1317 (dwarf2_has_info, dwarf2_get_section_info): Update.
1318 (dwarf2_free_objfile): Remove.
1319 (_initialize_dwarf2_read): Update.
1321 2019-05-08 Tom Tromey <tom@tromey.com>
1323 * auto-load.c (struct auto_load_pspace_info): Add destructor and
1325 <unsupported_script_warning_printed,
1326 script_not_found_warning_printed>: Now bool.
1327 (auto_load_pspace_data): Change type.
1328 (~auto_load_pspace_info): Rename from
1329 auto_load_pspace_data_cleanup.
1330 (get_auto_load_pspace_data, init_loaded_scripts_info)
1331 (clear_section_scripts, maybe_print_unsupported_script_warning)
1332 (maybe_print_script_not_found_warning, _initialize_auto_load):
1335 2019-05-08 Tom Tromey <tom@tromey.com>
1337 * objfiles.c (objfile_pspace_info): Add destructor and
1339 (objfiles_pspace_data): Change type.
1340 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
1341 (get_objfile_pspace_data): Update.
1342 (objfiles_bfd_data): Change type.
1343 (get_objfile_bfd_data): Update.
1344 (objfile_bfd_data_free, _initialize_objfiles): Remove.
1346 2019-05-08 Tom Tromey <tom@tromey.com>
1348 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
1350 (get_catch_syscall_inferior_data): Update.
1351 (catch_syscall_inferior_data_cleanup): Remove.
1352 (_initialize_break_catch_syscall): Update.
1354 2019-05-08 Tom Tromey <tom@tromey.com>
1356 * inflow.c (struct terminal_info): Add destructor and
1358 (inflow_inferior_data): Change type.
1359 (~terminal_info): Rename from inflow_inferior_data_cleanup.
1360 (get_inflow_inferior_data, inflow_inferior_exit)
1361 (swap_terminal_info, _initialize_inflow): Update.
1363 2019-05-08 Tom Tromey <tom@tromey.com>
1365 * target-dcache.c (target_dcache_cleanup): Remove.
1366 (target_dcache_aspace_key): Change type.
1367 (target_dcache_init_p, target_dcache_invalidate)
1368 (target_dcache_get, target_dcache_get_or_init)
1369 (_initialize_target_dcache): Update.
1370 * dcache.h (struct dcache_deleter): New.
1372 2019-05-08 Tom Tromey <tom@tromey.com>
1374 * symtab.c (struct symbol_cache): Add destructor and
1376 (symbol_cache_key): Move. Change type.
1377 (make_symbol_cache, free_symbol_cache): Remove.
1378 (get_symbol_cache): Update.
1379 (symbol_cache_cleanup): Remove.
1380 (ALL_PSPACES, symbol_cache_flush)
1381 (maintenance_print_symbol_cache)
1382 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
1385 2019-05-08 Tom Tromey <tom@tromey.com>
1387 * symtab.c (struct main_info): Add destructor and initializers.
1388 (main_progspace_key): Move. Change type.
1389 (get_main_info): Update.
1390 (main_info_cleanup): Remove.
1391 (_initialize_symtab): Update.
1393 2019-05-08 Tom Tromey <tom@tromey.com>
1395 * registry.h (DECLARE_REGISTRY): Define the _key class.
1397 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1399 * NEWS: Merge two 'New commands' sections.
1401 2019-05-08 Joel Brobecker <brobecker@adacore.com>
1403 * ada-valprint.c (ada_val_print_gnat_array): Remove language
1404 parameter and use Ada language definition instead.
1405 (ada_val_print_ptr): Remove unused language parameter.
1406 (ada_val_print_num): Remove language parameter and use Ada language
1408 (ada_val_print_enum, ada_val_print_flt): Remove unused language
1410 (ada_val_print_struct_union, ada_val_print_ref): Remove language
1411 parameter and use Ada language definition instead.
1412 (ada_val_print_1): Update all ada_val_print_xxx calls.
1413 Remove language parameter.
1414 (ada_val_print): Update ada_val_print_1 call.
1416 2019-05-08 Tom Tromey <tromey@adacore.com>
1418 * remote.c (remote_hw_watchpoint_limit)
1419 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
1422 2019-05-08 Tom Tromey <tromey@adacore.com>
1424 * maint.c (_initialize_maint_cmds): Move initialization code to
1426 (watchdog, show_watchdog): Move to remote.c.
1427 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
1429 (_initialize_remote): Move initialization code from maint.c.
1430 * defs.h (watchdog): Don't declare.
1432 2019-05-08 Tom Tromey <tromey@adacore.com>
1434 * tui/tui-interp.c: Include main.h.
1435 * interps.c: Include main.h.
1436 * main.h (interpreter_p): Declare.
1437 * defs.h (interpreter_p): Don't declare.
1439 2019-05-08 Tom Tromey <tromey@adacore.com>
1441 * dwarf2loc.c: Include dwarf2read.h.
1442 * defs.h (read_unsigned_leb128): Don't declare.
1443 * dwarf2read.h (read_unsigned_leb128): Declare.
1445 2019-05-08 Tom Tromey <tromey@adacore.com>
1447 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
1450 2019-05-08 Tom Tromey <tromey@adacore.com>
1452 * utils.c (fputs_maybe_filtered): Reset style after paging, even
1453 when no wrap column is set.
1455 2019-05-08 Tom Tromey <tromey@adacore.com>
1457 * c-lang.c (c_get_string): Handle non-C-style arrays.
1459 2019-05-08 Tom Tromey <tromey@adacore.com>
1461 * typeprint.c (print_offset_data::update): Print the bit offset,
1462 not the number of bits remaining.
1464 2019-05-08 Tom Tromey <tromey@adacore.com>
1466 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
1467 padding at end of comment.
1469 2019-05-08 Tom Tromey <tromey@adacore.com>
1471 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
1474 2019-05-06 Tom Tromey <tom@tromey.com>
1476 * common/scoped_mmap.c: Include common-defs.h.
1477 * common/scoped_mmap.h: Don't include config.h.
1479 2019-05-04 Tom Tromey <tom@tromey.com>
1481 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
1482 (struct aarch64_call_info): Add initializers.
1483 <si>: Now a std::vector.
1484 (pass_on_stack, aarch64_push_dummy_call): Update.
1486 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
1487 Tom Tromey <tom@tromey.com>
1489 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
1490 (ppc_threads): Now a std::vector. Now static.
1491 (hwdebug_find_thread_points_by_tid)
1492 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
1495 2019-05-04 Tom Tromey <tom@tromey.com>
1497 * arc-tdep.c (arc_tdesc_init): Return bool.
1499 2019-05-04 Tom Tromey <tom@tromey.com>
1501 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1502 Use gdb_assert_not_reached.
1504 2019-05-04 Tom Tromey <tom@tromey.com>
1506 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1509 2019-05-04 Tom Tromey <tom@tromey.com>
1511 * arc-tdep.c (arc_tdesc_init): Use bool.
1513 2019-05-04 Tom Tromey <tom@tromey.com>
1515 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1517 2019-05-04 Tom Tromey <tom@tromey.com>
1519 * cli/cli-cmds.c (valid_command_p): Return bool.
1521 2019-05-04 Tom Tromey <tom@tromey.com>
1523 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1524 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1526 2019-05-04 Raul Tambre <raul@tambre.ee>
1528 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1529 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1530 operator for comparison.
1532 2019-05-04 Tom Tromey <tom@tromey.com>
1534 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1535 (lookup_partial_symbol, print_partial_symbols)
1536 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1537 (psymbol_compare): Update.
1538 (add_psymbol_to_bcache): Clear the entire psymbol.
1539 (maintenance_check_psymtabs): Update.
1540 * psympriv.h (struct partial_symbol): Don't derive from
1541 general_symbol_info.
1542 <obj_section, unrelocated_address, address,
1543 set_unrelocated_address>: Update.
1544 <ginfo>: New member.
1545 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1546 (debug_names::write_psymbols): Update.
1548 2019-05-04 Tom de Vries <tdevries@suse.de>
1550 * contrib/cc-with-tweaks.sh: Support -n arg.
1552 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1554 * corelow.c (core_target::detach): Ensure frame cache and
1555 register caches are cleared.
1556 inferior.c (exit_inferior_1): Likewise.
1558 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1559 Tom Tromey <tom@tromey.com>
1561 * dictionary.c (collate_pending_symbols_by_language): Remove
1562 "struct" from foreach.
1563 * symtab.c (lookup_global_symbol_from_objfile)
1564 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1566 * ser-tcp.c (net_open): Remove "struct" from foreach.
1567 * objfiles.c (objfile_relocate, objfile_rebase)
1568 (objfile_has_symbols): Remove "struct" from foreach.
1569 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1571 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1573 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1574 "struct" from foreach.
1575 * ada-lang.c (create_excep_cond_exprs)
1576 (ada_exception_catchpoint_cond_string): Remove "struct" from
1579 2019-05-03 Tom Tromey <tromey@adacore.com>
1581 * ada-exp.y (convert_char_literal): Check suffix of each
1584 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1587 * ada-exp.y (yywrap): Don't define.
1588 * ada-lex.l (%option): Add noyywrap
1591 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1593 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1594 _WIN32_WINNT to the XP level, unless already defined to a higher
1597 * unittests/parse-connection-spec-selftests.c:
1599 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1602 * symfile.c (find_separate_debug_file): Remove colon from the
1603 drive spec of DOS/Windows file names of the target, so that the
1604 file name produced from DEBUGDIR and the target's directory will
1605 be valid on DOS/Windows systems.
1607 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1609 * rust-lang.c (val_print_struct): Handle printing structures
1612 2019-05-02 Tom Tromey <tromey@adacore.com>
1614 * valarith.c (_initialize_valarith): Remove.
1616 2019-05-01 Tom Tromey <tromey@adacore.com>
1618 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1621 2019-05-01 Tom Tromey <tromey@adacore.com>
1623 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1624 for big-endian copies.
1626 2019-04-30 Ali Tamur <tamur@google.com>
1627 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1628 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1629 (read_3_bytes): New function.
1631 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1633 * windows-nat.c (main_thread_id): Delete.
1634 (handle_output_debug_string): Replace main_thread_id by
1635 current_event.dwThreadId.
1636 (fake_create_process): Likewise.
1637 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1638 Do not set main_thread_id.
1639 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1640 current_event.dwThreadId.
1641 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1643 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1645 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1646 Use current_event.dwThreadId instead of main_thread_id.
1648 2019-04-30 Tom Tromey <tromey@adacore.com>
1650 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1651 (create_excep_cond_exprs): Iterate over program spaces.
1652 (ada_exception_catchpoint_cond_string): Examine all minimal
1653 symbols for exception types.
1655 2019-04-30 Tom Tromey <tromey@adacore.com>
1658 * dwarf2read.c (process_structure_scope): Handle case where type
1659 has template parameters but no symbol was created.
1661 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1662 Chris January <chris.january@arm.com>
1664 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1666 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1668 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1670 * f-typeprint.c (f_print_type): Update rules for printing
1672 (f_type_print_varspec_suffix): Likewise.
1674 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1675 Chris January <chris.january@arm.com>
1677 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1680 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1682 * f-lang.c (build_fortran_types): Change name of void type to
1684 * f-typeprint.c (f_type_print_base): Print the name of the void
1685 type, rather than a fixed string.
1686 * f-valprint.c (f_decorations): Use lower case void string.
1688 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1689 Chris January <chris.january@arm.com>
1691 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1694 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1695 Chris January <chris.january@arm.com>
1696 David Lecomber <david.lecomber@arm.com>
1698 * f-exp.y (BINOP_INTRINSIC): New token.
1699 (exp): New parser rule handling BINOP_INTRINSIC.
1700 (f77_keywords): Add new builtin procedures.
1701 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1702 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1703 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1704 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1705 (print_unop_subexp_f): New function.
1706 (print_binop_subexp_f): New function.
1707 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1708 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1709 (dump_subexp_body_f): Likewise.
1710 (operator_check_f): Likewise.
1711 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1712 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1714 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1716 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1718 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1719 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1720 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1721 (operator_length_f): New fuction.
1722 (print_subexp_f): New function.
1723 (op_name_f): New function.
1724 (dump_subexp_body_f): New function.
1725 (operator_check_f): New function.
1726 (exp_descriptor_f): Replace standard expression handling functions
1728 * gdb/fortran-operator.def: New file.
1729 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1730 * gdb/std-operator.def: Remove UNOP_KIND.
1732 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1734 * std-operator.def: Remove unbalanced, stray double quote
1737 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1738 Chris January <chris.january@arm.com>
1739 Daniel Everett <daniel.everett@arm.com>
1740 Nick Forrington <nick.forrington@arm.com>
1741 Richard Bunt <richard.bunt@arm.com>
1743 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1744 of depth when printing anonymous structs or unions.
1745 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1746 Don't print either the top-level value, or the children if the
1747 max-depth is exceeded.
1748 (ppscm_print_children): When printing the key of a map, allow one
1749 extra level of depth.
1750 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1751 print either the top-level value, or the children if the max-depth
1753 (print_children): When printing the key of a map, allow one extra
1755 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1756 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1757 (user_print_options): Initialise max_depth field.
1758 (val_print_scalar_or_string_type_p): New function.
1759 (val_print): Check to see if the max depth has been reached.
1760 (val_print_check_max_depth): Define new function.
1761 (show_print_max_depth): New function.
1762 (_initialize_valprint): Add 'print max-depth' option.
1763 * valprint.h (struct value_print_options) <max_depth>: New field.
1764 (val_print_check_max_depth): Declare new function.
1765 * NEWS: Document new feature.
1767 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1769 * ada-lang.c (ada_language_defn): Initialise new field.
1770 * c-lang.c (c_is_string_type_p): New function.
1771 (c_language_defn): Initialise new field.
1772 (cplus_language_defn): Initialise new field.
1773 (asm_language_defn): Initialise new field.
1774 (minimal_language_defn): Initialise new field.
1775 * c-lang.h (c_is_string_type_p): Declare new function.
1776 * d-lang.c (d_language_defn): Initialise new field.
1777 * f-lang.c (f_is_string_type_p): New function.
1778 (f_language_defn): Initialise new field.
1779 * go-lang.c (go_is_string_type_p): New function.
1780 (go_language_defn): Initialise new field.
1781 * language.c (default_is_string_type_p): New function.
1782 (unknown_language_defn): Initialise new field.
1783 (auto_language_defn): Initialise new field.
1784 * language.h (struct language_defn) <la_is_string_type_p>: New
1786 (default_is_string_type_p): Declare new function.
1787 * m2-lang.c (m2_language_defn): Initialise new field.
1788 * objc-lang.c (objc_language_defn): Initialise new field.
1789 * opencl-lang.c (opencl_language_defn): Initialise new field.
1790 * p-lang.c (pascal_is_string_type_p): New function.
1791 (pascal_language_defn): Initialise new field.
1792 * rust-lang.c (rust_is_string_type_p): New function.
1793 (rust_language_defn): Initialise new field.
1795 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1797 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1799 * ada-lang.c (ada_language_defn): Initialise new field.
1800 * c-lang.c (c_language_defn): Likewise.
1801 (cplus_language_defn): Likewise.
1802 (asm_language_defn): Likewise.
1803 (minimal_language_defn): Likewise.
1804 * d-lang.c (d_language_defn): Likewise.
1805 * f-lang.c (f_language_defn): Likewise.
1806 * go-lang.c (go_language_defn): Likewise.
1807 * language.c (unknown_language_defn): Likewise.
1808 (auto_language_defn): Likewise.
1809 * m2-lang.c (m2_language_defn): Likewise.
1810 * objc-lang.c (objc_language_defn): Likewise.
1811 * opencl-lang.c (opencl_language_defn): Likewise.
1812 * p-lang.c (pascal_language_defn): Likewise.
1813 * rust-lang.c (rust_language_defn): Likewise.
1815 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1817 * ada-lang.c (ada_is_character_type): Change return type to bool.
1818 (ada_is_string_type): Likewise.
1819 * ada-lang.h (ada_is_character_type): Update declaration
1820 (ada_is_string_type): Likewise.
1822 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1824 Support style in 'frame|thread apply'
1826 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1827 * record.c (record_start, record_stop): Update callers of
1828 execute_command_to_string with false.
1829 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1830 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1832 (class string_file): New constructor with term_out parameter.
1833 Override methods term_out and can_emit_style_escape. New member
1835 (class stdio_file): Override can_emit_style_escape.
1836 (class tee_file): Override term_out and can_emit_style_escape.
1837 * utils.h (can_emit_style_escape): Remove.
1838 * utils.c (can_emit_style_escape): Likewise.
1839 Update all callers of can_emit_style_escape (SOMESTREAM) to
1840 SOMESTREAM->can_emit_style_escape.
1841 * source-cache.c (source_cache::get_source_lines): Likewise.
1842 * stack.c (frame_apply_command_count): Call execute_command_to_string
1843 passing the term_out characteristic of the current gdb_stdout.
1844 * thread.c (thr_try_catch_cmd): Likewise.
1845 * top.c (execute_command_to_string): pass term_out parameter
1846 to construct the string_file for the command output.
1847 * ui-file.c (term_cli_styling): New function (most code moved
1848 from utils.c can_emit_style_escape).
1849 (string_file::string_file, string_file::can_emit_style_escape,
1850 stdio_file::can_emit_style_escape, tee_file::term_out,
1851 tee_file::can_emit_style_escape): New functions.
1853 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1855 * NEWS: Mention the new set|show may-call-functions.
1856 * infcall.c (may_call_functions_p): New variable.
1857 (show_may_call_functions_p): New function.
1858 (call_function_by_hand_dummy): Throws an error if not
1860 (_initialize_infcall): Call add_setshow_boolean_cmd for
1863 2019-04-25 Keith Seitz <keiths@redhat.com>
1866 * cp-support.c (inspect_type): Don't attempt substitutions
1867 of symbol with the same name.
1869 2019-04-25 Tom Tromey <tromey@adacore.com>
1872 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1875 2019-04-25 Tom Tromey <tromey@adacore.com>
1877 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1879 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1880 (gdb_xml_parser::parse): Use std::move.
1881 * python/python-internal.h (gdbpy_convert_exception): Take a const
1883 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1885 * python/py-utils.c (gdbpy_convert_exception): Take a const
1887 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1889 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1891 * mi/mi-main.c (mi_print_exception): Take a const reference.
1892 * main.c (handle_command_errors): Take a const reference.
1893 * linespec.c (parse_linespec): Use std::move.
1894 * infcall.c (run_inferior_call): Use std::move.
1895 (call_function_by_hand_dummy): Use std::move.
1896 * exec.c (try_open_exec_file): Use std::move.
1897 * exceptions.h (exception_print, exception_fprintf)
1898 (exception_print_same): Update.
1899 * exceptions.c (print_exception, exception_print)
1900 (exception_fprintf, exception_print_same): Change parameters to
1902 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1903 * common/new-op.c: Use std::move.
1904 * common/common-exceptions.h (struct gdb_exception): Add move
1906 (struct gdb_exception_error, struct gdb_exception_quit, struct
1907 gdb_quit_bad_alloc): Change constructor to move constructor.
1908 (throw_exception): Change parameter to rvalue reference.
1909 * common/common-exceptions.c (throw_exception): Take rvalue
1911 * cli/cli-interp.c (safe_execute_command): Use std::move.
1912 * breakpoint.c (insert_bp_location, location_to_sals): Use
1915 2019-04-25 Tom Tromey <tromey@adacore.com>
1917 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1918 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1919 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1920 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1921 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1922 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1923 guile/scm-value.c: Use unpack.
1924 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1925 gdbscm_gdb_exception.
1926 (gdbscm_throw_gdb_exception): Likewise.
1927 (struct gdbscm_gdb_exception): New.
1928 (unpack): New function.
1929 (gdbscm_wrap): Use unpack.
1931 2019-04-25 Tom Tromey <tromey@adacore.com>
1933 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1934 (gdb_rl_callback_handler): Use std::move.
1935 * common/common-exceptions.h (struct gdb_exception): Add move
1936 assignment operator.
1937 (throw_exception_sjlj): Change "exception" to const reference.
1938 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1939 (throw_exception_sjlj): Change "exception" to const reference.
1941 2019-04-25 Tom Tromey <tromey@adacore.com>
1943 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1944 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1945 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1947 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1949 * mi/mi-interp.c (mi_interp::exec): Update.
1950 * linespec.c (parse_linespec): Update.
1951 * infcall.c (run_inferior_call): Update.
1952 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1953 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1954 (gdbscm_lookup_global_symbol): Update.
1955 * guile/scm-param.c (gdbscm_parameter_value): Update.
1956 * guile/scm-frame.c (gdbscm_frame_read_register)
1957 (gdbscm_frame_read_var): Update.
1958 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1959 * exec.c (try_open_exec_file): Update.
1960 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1961 (gdb_rl_callback_handler): Update.
1962 * common/common-exceptions.h (exception_none): Don't declare.
1963 * common/common-exceptions.c (exception_none): Don't define.
1964 (struct catcher) <exception>: Update.
1965 * cli/cli-interp.c (safe_execute_command): Update.
1966 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1968 2019-04-25 Ali Tamur <tamur@google.com>
1970 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1971 (read_attribute_value): Likewise.
1972 (dwarf2_read_addr_index): Update comment.
1973 (read_str_index): Add DW_FORM_strx.
1974 (dwarf2_string_attr): Likewise.
1975 (dwarf2_const_value_attr): Likewise.
1976 (dump_die_shallow): Likewise.
1977 (dwarf2_fetch_constant_bytes): Likewise.
1978 (skip_form_bytes): Likewise.
1979 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1981 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1985 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1986 OFFSET. Verify if current mapping contains an ELF header.
1987 (linux_find_memory_regions_full): Adjust call to
1990 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1991 Kang Li <kanglictf@gmail.com>
1995 * dwarf2-frame.c (read_initial_length): Be consistent about using
1996 unsigned representation of length.
1997 (decode_frame_entry_1): Likewise. Check for wraparound of
1998 end pointer as well as buffer overflow.
2000 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2002 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
2005 2019-04-24 Tom Tromey <tromey@adacore.com>
2007 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
2009 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2011 * s12z-tdep.c (s12z_unwind_pc): Delete.
2012 (s12z_unwind_sp): Delete.
2013 (s12z_gdbarch_init): Don't register deleted functions with
2016 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2018 * rl78-tdep.c (rl78_unwind_sp): Delete.
2019 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
2021 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2023 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
2024 (xstormy16_unwind_pc): Delete.
2025 (xstormy16_dummy_id): Delete.
2026 (xstormy16_gdbarch_init): Don't register deleted functions with
2029 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2031 * vax-tdep.c (vax_unwind_pc): Delete.
2032 (vax_gdbarch_init): Don't register deleted function with gdbarch.
2034 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2036 * v850-tdep.c (v850_unwind_sp): Delete.
2037 (v850_unwind_pc): Delete.
2038 (v850_dummy_id): Delete.
2039 (v850_gdbarch_init): Don't register deleted functions with
2042 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2044 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
2045 (tilegx_unwind_pc): Delete.
2046 (tilegx_unwind_dummy_id): Delete.
2047 (tilegx_gdbarch_init): Don't register deleted functions with
2050 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2052 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
2053 (tic6x_dummy_id): Delete.
2054 (tic6x_gdbarch_init): Don't register deleted functions with
2057 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2059 * sparc-tdep.c (sparc_unwind_pc): Delete.
2060 (sparc32_gdbarch_init): Don't register deleted function with
2063 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2065 * sh-tdep.c (sh_unwind_sp): Delete.
2066 (sh_unwind_pc): Delete.
2067 (sh_dummy_id): Delete.
2068 (sh_gdbarch_init): Don't register deleted functions with
2071 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2073 * score-tdep.c (score_unwind_sp): Delete.
2074 (score_unwind_pc): Delete.
2075 (score_dummy_id): Delete.
2076 (score_gdbarch_init): Don't register deleted functions with
2079 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2081 * rx-tdep.c (rx_unwind_pc): Delete.
2082 (rx_unwind_sp): Delete.
2083 (rx_dummy_id): Delete.
2084 (rx_gdbarch_init): Don't register deleted functions with
2085 gdbarch. Update comment.
2087 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2089 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
2090 (rs6000_dummy_id): Delete.
2091 (rs6000_gdbarch_init): Don't register deleted functions with
2094 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2096 * or1k-tdep.c (or1k_dummy_id): Delete.
2097 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
2099 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2101 * nios2-tdep.c (nios2_dummy_id): Delete.
2102 (nios2_unwind_sp): Delete.
2103 (nios2_gdbarch_init): Don't register deleted functions with
2106 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2108 * nds32-tdep.c (nds32_dummy_id): Delete.
2109 (nds32_unwind_pc): Delete.
2110 (nds32_unwind_sp): Delete.
2111 (nds32_gdbarch_init): Don't register deleted functions with
2114 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2116 * msp430-tdep.c (msp430_unwind_pc): Delete.
2117 (msp430_unwind_sp): Delete.
2118 (msp430_dummy_id): Delete.
2119 (msp430_gdbarch_init): Don't register deleted functions with
2122 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2124 * moxie-tdep.c (moxie_unwind_sp): Delete.
2125 (moxie_unwind_pc): Delete.
2126 (moxie_dummy_id): Delete.
2127 (moxie_gdbarch_init): Don't register deleted functions with
2130 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2132 * mn10300-tdep.c (mn10300_dummy_id): Delete.
2133 (mn10300_unwind_pc): Delete.
2134 (mn10300_unwind_sp): Delete.
2135 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
2137 (mn10300_frame_unwind_init): Don't register deleted functions with
2140 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2142 * mep-tdep.c (mep_unwind_pc): Delete.
2143 (mep_unwind_sp): Delete.
2144 (mep_dummy_id): Delete.
2145 (mep_gdbarch_init): Don't register deleted functions with
2148 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2150 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
2151 (m68hc11_unwind_sp): Delete.
2152 (m68hc11_gdbarch_init): Don't register deleted functions with
2155 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2157 * m32r-tdep.c (m32r_unwind_sp): Delete.
2158 (m32r_unwind_pc): Delete.
2159 (m32r_dummy_id): Delete.
2160 (m32r_gdbarch_init): Don't register deleted functions with
2163 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2165 * m32c-tdep.c (m32c_unwind_pc): Delete.
2166 (m32c_unwind_sp): Delete.
2167 (m32c_dummy_id): Delete.
2168 (m32c_gdbarch_init): Don't register deleted functions with
2171 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2173 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
2174 (lm32_unwind_pc): Delete.
2175 (lm32_dummy_id): Delete.
2176 (lm32_gdbarch_init): Don't register deleted functions with
2179 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2181 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
2182 (iq2000_unwind_pc): Delete.
2183 (iq2000_dummy_id): Delete.
2184 (iq2000_gdbarch_init): Don't register deleted functions with
2187 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2189 * nds32-tdep.c (nds32_type_align): Delete.
2190 (nds32_push_dummy_call): Use type_align instead.
2192 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2194 * arm-tdep.c (arm_type_align): Only handle vector override case.
2195 (arm_push_dummy_call): Use type_align.
2196 (arm_gdbarch_init): Register arm_type_align gdbarch function.
2198 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2200 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
2202 (pass_on_stack): Use type_align.
2203 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
2206 2019-04-23 Tom Tromey <tromey@adacore.com>
2208 * dwarf2read.c (line_header::file_name_at): Remove unused
2211 2019-04-23 Tom de Vries <tdevries@suse.de>
2214 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
2218 2019-03-27 Ali Tamur <tamur@google.com>
2220 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
2221 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
2222 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
2223 (dwarf_expr_context::get_addr_index): Likewise
2224 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
2225 (symbol_needs_eval_context::get_addr_index): Likewise
2226 (disassemble_dwarf_expression): Add DW_OP_addrx
2227 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
2228 (read_cutu_die_from_dwo): Update comment
2229 (skip_one_die): Add DW_FORM_addrx
2230 (read_attribute_value): Likewise
2231 (var_decode_location): Add DW_OP_addrx
2232 (dwarf2_const_value_attr): Add DW_FORM_addrx
2233 (dump_die_shallow): Likewise
2234 (dwarf2_fetch_constant_bytes): Likewise
2235 (decode_locdesc): Add DW_OP_addrx
2236 (skip_form_bytes): Add DW_FORM_addrx
2238 2019-04-22 Ali Tamur <tamur@google.com>
2240 * MAINTAINERS (Write After Approval): Add self.
2242 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
2244 * solib-svr4.c (get_svr4_info): Add pspace parameter.
2245 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
2246 (open_symbol_file_object): Likewise.
2247 (svr4_default_sos): Add info parameter.
2248 (svr4_read_so_list): Likewise.
2249 (svr4_current_sos_direct): Adjust functions calls to pass down
2251 (svr4_current_sos_1): Add info parameter.
2252 (svr4_current_sos): Call get_svr4_info, pass info down to
2254 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
2256 (svr4_in_dynsym_resolve_code): Pass current_program_space to
2258 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
2260 (probes_table_remove_objfile_probes): Likewise.
2261 (register_solib_event_probe): Add info parameter.
2262 (solist_update_incremental): Pass info parameter down to
2264 (disable_probes_interface): Add info parameter.
2265 (svr4_handle_solib_event): Pass current_program_space to
2266 get_svr4_info. Adjust disable_probes_interface cleanup.
2267 (svr4_create_probe_breakpoints): Add info parameter, pass it
2268 down to register_solib_event_probe.
2269 (svr4_create_solib_event_breakpoints): Add info parameter,
2270 pass it down to svr4_create_probe_breakpoints.
2271 (enable_break): Pass info down to
2272 svr4_create_solib_event_breakpoints.
2273 (svr4_solib_create_inferior_hook): Pass current_program_space to
2275 (svr4_clear_solib): Likewise.
2277 2019-04-22 Pedro Alves <palves@redhat.com>
2279 * solib-svr4.c (svr4_free_objfile_observer): New.
2280 (probe_and_action::objfile): New field.
2281 (probes_table_htab_remove_objfile_probes)
2282 (probes_table_remove_objfile_probes): New functions.
2283 (register_solib_event_probe): Add 'objfile' parameter. Store it
2284 in the new probe_and_action. Don't store the probe in 'lookup'.
2285 (svr4_create_probe_breakpoints): Pass objfile to
2286 register_solib_event_probe.
2287 (_initialize_svr4_solib): Register a free_objfile observer.
2289 2019-04-19 Tom Tromey <tom@tromey.com>
2291 * common/queue.h: Remove.
2293 2019-04-19 Tom Tromey <tom@tromey.com>
2295 * event-loop.c: Don't include "common/queue.h".
2297 2019-04-19 Tom Tromey <tom@tromey.com>
2299 * remote.c (remote_target): Use delete.
2300 * remote-notif.h: Include <list>, not "common/queue.h".
2301 (notif_client_p): Remove typedef.
2302 (remote_notif_state): Add constructor, destructor, initializer.
2303 <notif_queue>: Now a std::list.
2304 (remote_notif_state_xfree): Don't declare.
2305 * remote-notif.c (remote_notif_process, handle_notification)
2306 (remote_notif_state_allocate): Update.
2307 (~remote_notif_state): Rename from remote_notif_state_xfree.
2309 2019-04-19 Tom Tromey <tom@tromey.com>
2311 * symfile.c (reread_symbols): Update.
2312 * objfiles.c (objfile_register_static_link)
2313 (objfile_lookup_static_link): Update
2314 (~objfile) Don't delete static_links.
2315 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
2317 2019-04-19 Tom Tromey <tom@tromey.com>
2319 * type-stack.h (struct type_stack) <insert>: Constify string.
2320 * type-stack.c (type_stack::insert): Constify string.
2321 * gdbtypes.h (lookup_template_type): Update.
2322 (address_space_name_to_int): Update.
2323 * gdbtypes.c (address_space_name_to_int): Make space_identifier
2325 (lookup_template_type): Make name const.
2326 * c-exp.y: Update rules.
2327 (lex_one_token, classify_name, classify_inner_name)
2328 (c_print_token): Update.
2329 * p-exp.y: Update rules.
2331 * f-exp.y: Update rules.
2333 * d-exp.y: Update rules.
2334 (lex_one_token, classify_name, classify_inner_name): Update.
2335 * parse.c (write_dollar_variable, copy_name): Return std::string.
2336 * parser-defs.h (copy_name): Change return type.
2337 * m2-exp.y: Update rules.
2339 * go-exp.y (lex_one_token): Update.
2341 (classify_unsafe_function, classify_packaged_name)
2342 (classify_name, yylex): Update.
2344 2019-04-19 Sergei Trofimovich <siarheit@google.com>
2346 * configure.ac: add --enable-source-highlight switch.
2347 * configure: Regenerate.
2348 * top.c (print_gdb_version): plumb --enable-source-highlight
2349 status to "show configuration".
2351 2019-04-19 Tom Tromey <tromey@adacore.com>
2353 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
2355 (empty_record, ada_template_to_fixed_record_type_1)
2356 (template_to_static_fixed_type)
2357 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
2358 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
2359 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
2362 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2365 * source.c (print_source_lines_base): Advance "iter" when a
2366 control character is seen.
2368 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2370 * inferior.h (struct infcall_suspend_state_deleter):
2371 Catch exception in destructor to avoid crash.
2373 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2375 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
2376 close to the add_com "shell".
2378 2019-04-18 Tom Tromey <tromey@adacore.com>
2380 * process-stratum-target.h (class process_stratum_target)
2381 <stratum>: Add "final".
2383 2019-04-17 Tom Tromey <tromey@adacore.com>
2385 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
2386 against nullptr before use.
2388 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2390 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
2392 2019-04-17 Jim Wilson <jimw@sifive.com>
2393 Andrew Burgess <andrew.burgess@embecosm.com>
2395 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
2396 code read might fail, assume 4-byte breakpoint in that case.
2398 2019-04-15 Leszek Swirski <leszeks@google.com>
2400 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
2401 rather than a hand-rolled POD check when checking for forced MEMORY
2404 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2406 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
2407 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
2409 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
2410 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
2411 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
2414 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2416 * aarch64-linux-nat.c
2417 (aarch64_linux_nat_target::thread_architecture): Add override.
2418 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
2421 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2423 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
2425 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
2427 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
2428 target types of size 96-bits, add some additional comments, and
2429 check that the builtin type we found was the correct size.
2431 2019-04-12 Eli Zaretskii <eliz@gnu.org>
2433 * utils.c (prompt_for_continue): Don't restore the styling at the
2434 end, as applied_style has the wrong value. This fixes styling in
2435 long lists of file names that are interrupted by the "Continue?"
2438 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
2440 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
2441 * c-lang.c (c_language_defn): Likewise.
2442 (cplus_language_defn): Likewise.
2443 (asm_language_defn): Likewise.
2444 (minimal_language_defn): Likewise.
2445 * d-lang.c (d_language_defn): Likewise.
2446 * f-lang.c (f_language_defn): Likewise.
2447 * go-lang.c (go_language_defn): Likewise.
2448 * language.c (unknown_language_defn): Likewise.
2449 (auto_language_defn): Likewise.
2450 * language.h (struct language_defn): Remove la_magic field.
2451 (LANG_MAGIC): Delete.
2452 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
2453 * objc-lang.c (objc_language_defn): Likewise.
2454 * opencl-lang.c (opencl_language_defn): Likewise.
2455 * p-lang.c (pascal_language_defn): Likewise.
2456 * rust-lang.c (rust_language_defn): Likewise.
2458 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2460 * riscv-tdep.c (riscv_type_align): New function.
2461 (riscv_type_alignment): Delete.
2462 (riscv_arg_location): Use 'type_align'.
2463 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
2465 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2467 * gdbtypes.c (type_align): A struct with no non-static fields also
2470 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2472 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
2474 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
2476 (riscv_struct_info::analyse): New implementation using new
2477 analyse_inner member function.
2478 (riscv_struct_info::field_offset): New member function.
2479 (riscv_struct_info::m_offsets): New member variable.
2480 (riscv_struct_info::analyse_inner): New private member function,
2481 takes the old implementation of riscv_struct_info::analyse but
2482 extended to track field offsets.
2483 (riscv_call_arg_struct): Update the struct folding special cases
2484 to handle cases where empty C++ structs, which are non-zero
2486 (riscv_arg_location): Initialise the length of each location, a
2487 non-zero length now indicates the location is in use.
2488 (riscv_push_dummy_call): Allow for the first location having a
2489 non-zero offset when setting up arguments.
2490 (riscv_return_value): Likewise, but for return values.
2492 2019-04-11 Tom Tromey <tromey@adacore.com>
2494 * utils.c (internal_vproblem): Make "msg" const.
2496 2019-04-11 Alan Hayward <alan.hayward@arm.com>
2498 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2499 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2500 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2501 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2503 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2505 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2507 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2508 of amd64_collect_native_gregset.
2509 (amd64_linux_nat_target::store_registers): Likewise.
2511 2019-04-10 Tom Tromey <tom@tromey.com>
2513 * symtab.c (lookup_global_symbol_from_objfile)
2514 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2515 * objfiles.h (class separate_debug_iterator): New.
2516 (class separate_debug_range): New.
2517 (struct objfile) <separate_debug_objfiles>: New method.
2518 (objfile_separate_debug_iterate): Don't declare.
2519 * objfiles.c (separate_debug_iterator::operator++): Rename from
2520 objfile_separate_debug_iterate.
2521 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2523 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2526 2019-04-10 Tom Tromey <tom@tromey.com>
2528 * symfile.c (reread_symbols): Remove old comment.
2529 * objfiles.c (free_all_objfiles): Fix a typo.
2531 2019-04-10 Tom Tromey <tom@tromey.com>
2533 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2534 * minsyms.c (lookup_minimal_symbol): Use foreach.
2535 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2536 (lookup_minimal_symbol_solib_trampoline): Likewise.
2537 * symfile.c (reread_symbols): Use foreach.
2539 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2540 Tom Tromey <tromey@adacore.com>
2543 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2544 (rust_lex_int_test): Change "value" to be LONGEST.
2545 (rust_lex_tests): Add test for long integer literal.
2547 2019-04-09 Tom Tromey <tromey@adacore.com>
2549 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2551 (extended_remote_target::attach): Update.
2552 (remote_target::remote_notice_new_inferior): Update.
2553 (remote_target::add_current_inferior_and_thread): Update.
2554 * inferior.c (exit_inferior_1): Use "false".
2555 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2557 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2559 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2560 the "start" command.
2562 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2564 * python/py-inferior.c (infpy_thread_from_thread_handle):
2565 Adjust comments to reflect renaming of thread_from_thread_handle
2566 to thread_from_handle. Adjust keywords. Fix type error message.
2567 (inferior_object_methods): Add thread_from_handle. Retain
2568 thread_from_thread_handle, but mark it as deprecated.
2570 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2572 * gdbthread.h (find_thread_by_handle): Revise declaration.
2573 * thread.c (find_thread_by_handle): Likewise. Adjust
2575 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2576 support for buffer objects as handles.
2578 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2580 * python/py-infthread.c (thpy_thread_handle): New function.
2581 (thread_object_methods): Register thpy_thread_handle.
2583 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2585 * gdbthread.h (thread_to_thread_handle): Declare.
2586 * thread.c (gdbtypes.h): Include.
2587 (thread_to_thread_handle): New function.
2589 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2590 (target_thread_info_to_thread_handle): Declare.
2591 * target.c (target_thread_info_to_thread_handle): New function.
2592 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2593 * target-delegates.c: Regenerate.
2595 * linux-thread-db.c (class thread_db_target): Add method
2596 thread_info_to_thread_handle.
2597 (thread_db_target::thread_info_to_thread_handle): Define.
2598 * remote.c (class remote_target): Add new method
2599 thread_info_to_thread_handle.
2600 (remote_target::thread_info_to_thread_handle): Define.
2602 2019-04-08 Pedro Alves <palves@redhat.com>
2604 * common/common-exceptions.c (throw_exception): Don't create
2605 named object to throw; throw directly.
2606 (throw_it): Likewise. Don't initialize gdb_exception::message
2607 here, with new; pass FMT and AP to the ctor instead.
2608 * common/common-exceptions.h: Include <string>.
2609 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2610 const char *, va_list)): New ctor. Use std::make_shared.
2611 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2613 (gdb_exception_error::gdb_exception_error(enum errors, const char
2615 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2617 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2619 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2620 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2623 2019-04-08 Tom Tromey <tom@tromey.com>
2625 * valops.c (value_rtti_indirect_type): Replace throw_exception
2627 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2629 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2631 * target.c (target_translate_tls_address): Replace throw_exception
2633 * stack.c (frame_apply_command_count): Replace throw_exception
2635 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2637 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2639 * rs6000-tdep.c (rs6000_frame_cache)
2640 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2641 * remote.c: Replace throw_exception with throw.
2642 * record-full.c (record_full_message, record_full_wait_1)
2643 (record_full_restore): Replace throw_exception with throw.
2645 (get_thread_current_frame_id, record_btrace_start_replaying)
2646 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2647 (cmd_record_btrace_start): Replace throw_exception with throw.
2648 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2650 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2651 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2653 (find_linespec_symbols): Replace throw_exception with throw.
2654 * infrun.c (displaced_step_prepare, resume): Replace
2655 throw_exception with throw.
2656 * infcmd.c (post_create_inferior): Replace throw_exception with
2658 * inf-loop.c (inferior_event_handler): Replace throw_exception
2660 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2661 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2662 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2663 (get_prev_frame_always, get_frame_pc_if_available)
2664 (get_frame_address_in_block_if_available, get_frame_language):
2665 Replace throw_exception with throw.
2666 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2667 throw_exception with throw.
2668 * eval.c (fetch_subexp_value, evaluate_var_value)
2669 (evaluate_funcall, evaluate_subexp_standard): Replace
2670 throw_exception with throw.
2671 * dwarf2loc.c (call_site_find_chain)
2672 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2673 Replace throw_exception with throw.
2674 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2676 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2678 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2679 * completer.c (complete_line_internal): Replace throw_exception
2681 * compile/compile-object-run.c (compile_object_run): Replace
2682 throw_exception with throw.
2683 * cli/cli-script.c (process_next_line): Replace throw_exception
2685 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2686 (btrace_enable, btrace_maint_update_pt_packets): Replace
2687 throw_exception with throw.
2688 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2689 throw_exception with throw.
2690 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2691 throw_exception with throw.
2692 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2693 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2694 * aarch64-tdep.c (aarch64_make_prologue_cache)
2695 (aarch64_make_stub_cache): Replace throw_exception with throw.
2697 2019-04-08 Tom Tromey <tom@tromey.com>
2699 * common/common-exceptions.c (throw_exception): Rename from
2700 throw_exception_cxx. Remove old copy. Make argument const.
2701 (throw_it): Create and throw exception objects directly.
2702 * common/common-exceptions.h (throw_exception): Make argument
2704 (struct gdb_exception_error): Add constructor.
2705 (struct gdb_exception_quit): Add constructor.
2707 2019-04-08 Tom Tromey <tom@tromey.com>
2709 * common/common-exceptions.h (exception_rethrow): Don't declare.
2710 (TRY_SJLJ): Update comment.
2711 (TRY, CATCH, END_CATCH): Remove.
2712 * common/common-exceptions.c (exception_rethrow): Remove.
2714 2019-04-08 Tom Tromey <tom@tromey.com>
2716 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2718 (gdb_exception_error): Rename from
2719 gdb_exception_RETURN_MASK_ERROR.
2720 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2721 (gdb_quit_bad_alloc): Update.
2722 * aarch64-tdep.c: Update.
2723 * ada-lang.c: Update.
2724 * ada-typeprint.c: Update.
2725 * ada-valprint.c: Update.
2726 * amd64-tdep.c: Update.
2727 * arch-utils.c: Update.
2728 * break-catch-throw.c: Update.
2729 * breakpoint.c: Update.
2731 * c-varobj.c: Update.
2732 * cli/cli-cmds.c: Update.
2733 * cli/cli-interp.c: Update.
2734 * cli/cli-script.c: Update.
2735 * common/common-exceptions.c: Update.
2736 * common/new-op.c: Update.
2737 * common/selftest.c: Update.
2738 * compile/compile-c-symbols.c: Update.
2739 * compile/compile-cplus-symbols.c: Update.
2740 * compile/compile-object-load.c: Update.
2741 * compile/compile-object-run.c: Update.
2742 * completer.c: Update.
2743 * corelow.c: Update.
2745 * cp-support.c: Update.
2746 * cp-valprint.c: Update.
2747 * darwin-nat.c: Update.
2748 * disasm-selftests.c: Update.
2749 * dtrace-probe.c: Update.
2750 * dwarf-index-cache.c: Update.
2751 * dwarf-index-write.c: Update.
2752 * dwarf2-frame-tailcall.c: Update.
2753 * dwarf2-frame.c: Update.
2754 * dwarf2loc.c: Update.
2755 * dwarf2read.c: Update.
2757 * event-loop.c: Update.
2758 * event-top.c: Update.
2760 * f-valprint.c: Update.
2761 * fbsd-tdep.c: Update.
2762 * frame-unwind.c: Update.
2764 * gdbtypes.c: Update.
2765 * gnu-v3-abi.c: Update.
2766 * guile/guile-internal.h: Update.
2767 * guile/scm-block.c: Update.
2768 * guile/scm-breakpoint.c: Update.
2769 * guile/scm-cmd.c: Update.
2770 * guile/scm-disasm.c: Update.
2771 * guile/scm-frame.c: Update.
2772 * guile/scm-lazy-string.c: Update.
2773 * guile/scm-math.c: Update.
2774 * guile/scm-param.c: Update.
2775 * guile/scm-ports.c: Update.
2776 * guile/scm-pretty-print.c: Update.
2777 * guile/scm-symbol.c: Update.
2778 * guile/scm-symtab.c: Update.
2779 * guile/scm-type.c: Update.
2780 * guile/scm-value.c: Update.
2781 * i386-linux-tdep.c: Update.
2782 * i386-tdep.c: Update.
2783 * inf-loop.c: Update.
2784 * infcall.c: Update.
2788 * language.c: Update.
2789 * linespec.c: Update.
2790 * linux-fork.c: Update.
2791 * linux-nat.c: Update.
2792 * linux-tdep.c: Update.
2793 * linux-thread-db.c: Update.
2795 * mi/mi-cmd-break.c: Update.
2796 * mi/mi-cmd-stack.c: Update.
2797 * mi/mi-interp.c: Update.
2798 * mi/mi-main.c: Update.
2799 * objc-lang.c: Update.
2800 * p-valprint.c: Update.
2802 * ppc-linux-tdep.c: Update.
2803 * printcmd.c: Update.
2804 * python/py-arch.c: Update.
2805 * python/py-breakpoint.c: Update.
2806 * python/py-cmd.c: Update.
2807 * python/py-finishbreakpoint.c: Update.
2808 * python/py-frame.c: Update.
2809 * python/py-framefilter.c: Update.
2810 * python/py-gdb-readline.c: Update.
2811 * python/py-inferior.c: Update.
2812 * python/py-infthread.c: Update.
2813 * python/py-lazy-string.c: Update.
2814 * python/py-linetable.c: Update.
2815 * python/py-objfile.c: Update.
2816 * python/py-param.c: Update.
2817 * python/py-prettyprint.c: Update.
2818 * python/py-progspace.c: Update.
2819 * python/py-record-btrace.c: Update.
2820 * python/py-record.c: Update.
2821 * python/py-symbol.c: Update.
2822 * python/py-type.c: Update.
2823 * python/py-unwind.c: Update.
2824 * python/py-utils.c: Update.
2825 * python/py-value.c: Update.
2826 * python/python.c: Update.
2827 * record-btrace.c: Update.
2828 * record-full.c: Update.
2829 * remote-fileio.c: Update.
2831 * riscv-tdep.c: Update.
2832 * rs6000-aix-tdep.c: Update.
2833 * rs6000-tdep.c: Update.
2834 * rust-exp.y: Update.
2835 * rust-lang.c: Update.
2836 * s390-tdep.c: Update.
2837 * selftest-arch.c: Update.
2838 * solib-dsbt.c: Update.
2839 * solib-frv.c: Update.
2840 * solib-spu.c: Update.
2841 * solib-svr4.c: Update.
2843 * sparc64-linux-tdep.c: Update.
2845 * symfile-mem.c: Update.
2846 * symmisc.c: Update.
2850 * tracefile-tfile.c: Update.
2851 * tui/tui.c: Update.
2852 * typeprint.c: Update.
2853 * unittests/cli-utils-selftests.c: Update.
2854 * unittests/parse-connection-spec-selftests.c: Update.
2856 * valprint.c: Update.
2859 * windows-nat.c: Update.
2860 * x86-linux-nat.c: Update.
2861 * xml-support.c: Update.
2863 2019-04-08 Tom Tromey <tom@tromey.com>
2865 * xml-support.c: Use C++ exception handling.
2866 * x86-linux-nat.c: Use C++ exception handling.
2867 * windows-nat.c: Use C++ exception handling.
2868 * varobj.c: Use C++ exception handling.
2869 * value.c: Use C++ exception handling.
2870 * valprint.c: Use C++ exception handling.
2871 * valops.c: Use C++ exception handling.
2872 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2874 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2875 * typeprint.c: Use C++ exception handling.
2876 * tui/tui.c: Use C++ exception handling.
2877 * tracefile-tfile.c: Use C++ exception handling.
2878 * top.c: Use C++ exception handling.
2879 * thread.c: Use C++ exception handling.
2880 * target.c: Use C++ exception handling.
2881 * symmisc.c: Use C++ exception handling.
2882 * symfile-mem.c: Use C++ exception handling.
2883 * stack.c: Use C++ exception handling.
2884 * sparc64-linux-tdep.c: Use C++ exception handling.
2885 * solib.c: Use C++ exception handling.
2886 * solib-svr4.c: Use C++ exception handling.
2887 * solib-spu.c: Use C++ exception handling.
2888 * solib-frv.c: Use C++ exception handling.
2889 * solib-dsbt.c: Use C++ exception handling.
2890 * selftest-arch.c: Use C++ exception handling.
2891 * s390-tdep.c: Use C++ exception handling.
2892 * rust-lang.c: Use C++ exception handling.
2893 * rust-exp.y: Use C++ exception handling.
2894 * rs6000-tdep.c: Use C++ exception handling.
2895 * rs6000-aix-tdep.c: Use C++ exception handling.
2896 * riscv-tdep.c: Use C++ exception handling.
2897 * remote.c: Use C++ exception handling.
2898 * remote-fileio.c: Use C++ exception handling.
2899 * record-full.c: Use C++ exception handling.
2900 * record-btrace.c: Use C++ exception handling.
2901 * python/python.c: Use C++ exception handling.
2902 * python/py-value.c: Use C++ exception handling.
2903 * python/py-utils.c: Use C++ exception handling.
2904 * python/py-unwind.c: Use C++ exception handling.
2905 * python/py-type.c: Use C++ exception handling.
2906 * python/py-symbol.c: Use C++ exception handling.
2907 * python/py-record.c: Use C++ exception handling.
2908 * python/py-record-btrace.c: Use C++ exception handling.
2909 * python/py-progspace.c: Use C++ exception handling.
2910 * python/py-prettyprint.c: Use C++ exception handling.
2911 * python/py-param.c: Use C++ exception handling.
2912 * python/py-objfile.c: Use C++ exception handling.
2913 * python/py-linetable.c: Use C++ exception handling.
2914 * python/py-lazy-string.c: Use C++ exception handling.
2915 * python/py-infthread.c: Use C++ exception handling.
2916 * python/py-inferior.c: Use C++ exception handling.
2917 * python/py-gdb-readline.c: Use C++ exception handling.
2918 * python/py-framefilter.c: Use C++ exception handling.
2919 * python/py-frame.c: Use C++ exception handling.
2920 * python/py-finishbreakpoint.c: Use C++ exception handling.
2921 * python/py-cmd.c: Use C++ exception handling.
2922 * python/py-breakpoint.c: Use C++ exception handling.
2923 * python/py-arch.c: Use C++ exception handling.
2924 * printcmd.c: Use C++ exception handling.
2925 * ppc-linux-tdep.c: Use C++ exception handling.
2926 * parse.c: Use C++ exception handling.
2927 * p-valprint.c: Use C++ exception handling.
2928 * objc-lang.c: Use C++ exception handling.
2929 * mi/mi-main.c: Use C++ exception handling.
2930 * mi/mi-interp.c: Use C++ exception handling.
2931 * mi/mi-cmd-stack.c: Use C++ exception handling.
2932 * mi/mi-cmd-break.c: Use C++ exception handling.
2933 * main.c: Use C++ exception handling.
2934 * linux-thread-db.c: Use C++ exception handling.
2935 * linux-tdep.c: Use C++ exception handling.
2936 * linux-nat.c: Use C++ exception handling.
2937 * linux-fork.c: Use C++ exception handling.
2938 * linespec.c: Use C++ exception handling.
2939 * language.c: Use C++ exception handling.
2940 * jit.c: Use C++ exception handling.
2941 * infrun.c: Use C++ exception handling.
2942 * infcmd.c: Use C++ exception handling.
2943 * infcall.c: Use C++ exception handling.
2944 * inf-loop.c: Use C++ exception handling.
2945 * i386-tdep.c: Use C++ exception handling.
2946 * i386-linux-tdep.c: Use C++ exception handling.
2947 * guile/scm-value.c: Use C++ exception handling.
2948 * guile/scm-type.c: Use C++ exception handling.
2949 * guile/scm-symtab.c: Use C++ exception handling.
2950 * guile/scm-symbol.c: Use C++ exception handling.
2951 * guile/scm-pretty-print.c: Use C++ exception handling.
2952 * guile/scm-ports.c: Use C++ exception handling.
2953 * guile/scm-param.c: Use C++ exception handling.
2954 * guile/scm-math.c: Use C++ exception handling.
2955 * guile/scm-lazy-string.c: Use C++ exception handling.
2956 * guile/scm-frame.c: Use C++ exception handling.
2957 * guile/scm-disasm.c: Use C++ exception handling.
2958 * guile/scm-cmd.c: Use C++ exception handling.
2959 * guile/scm-breakpoint.c: Use C++ exception handling.
2960 * guile/scm-block.c: Use C++ exception handling.
2961 * guile/guile-internal.h: Use C++ exception handling.
2962 * gnu-v3-abi.c: Use C++ exception handling.
2963 * gdbtypes.c: Use C++ exception handling.
2964 * frame.c: Use C++ exception handling.
2965 * frame-unwind.c: Use C++ exception handling.
2966 * fbsd-tdep.c: Use C++ exception handling.
2967 * f-valprint.c: Use C++ exception handling.
2968 * exec.c: Use C++ exception handling.
2969 * event-top.c: Use C++ exception handling.
2970 * event-loop.c: Use C++ exception handling.
2971 * eval.c: Use C++ exception handling.
2972 * dwarf2read.c: Use C++ exception handling.
2973 * dwarf2loc.c: Use C++ exception handling.
2974 * dwarf2-frame.c: Use C++ exception handling.
2975 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2976 * dwarf-index-write.c: Use C++ exception handling.
2977 * dwarf-index-cache.c: Use C++ exception handling.
2978 * dtrace-probe.c: Use C++ exception handling.
2979 * disasm-selftests.c: Use C++ exception handling.
2980 * darwin-nat.c: Use C++ exception handling.
2981 * cp-valprint.c: Use C++ exception handling.
2982 * cp-support.c: Use C++ exception handling.
2983 * cp-abi.c: Use C++ exception handling.
2984 * corelow.c: Use C++ exception handling.
2985 * completer.c: Use C++ exception handling.
2986 * compile/compile-object-run.c: Use C++ exception handling.
2987 * compile/compile-object-load.c: Use C++ exception handling.
2988 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2989 * compile/compile-c-symbols.c: Use C++ exception handling.
2990 * common/selftest.c: Use C++ exception handling.
2991 * common/new-op.c: Use C++ exception handling.
2992 * cli/cli-script.c: Use C++ exception handling.
2993 * cli/cli-interp.c: Use C++ exception handling.
2994 * cli/cli-cmds.c: Use C++ exception handling.
2995 * c-varobj.c: Use C++ exception handling.
2996 * btrace.c: Use C++ exception handling.
2997 * breakpoint.c: Use C++ exception handling.
2998 * break-catch-throw.c: Use C++ exception handling.
2999 * arch-utils.c: Use C++ exception handling.
3000 * amd64-tdep.c: Use C++ exception handling.
3001 * ada-valprint.c: Use C++ exception handling.
3002 * ada-typeprint.c: Use C++ exception handling.
3003 * ada-lang.c: Use C++ exception handling.
3004 * aarch64-tdep.c: Use C++ exception handling.
3006 2019-04-08 Tom Tromey <tom@tromey.com>
3008 * xml-support.c (gdb_xml_parser::parse): Update.
3009 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3010 * value.c (show_convenience): Update.
3011 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
3012 (test_parse_flags_qcs): Update.
3013 * thread.c (thr_try_catch_cmd): Update.
3014 * target.c (target_translate_tls_address): Update.
3015 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3016 (info_frame_command_core, frame_apply_command_count): Update.
3017 * rust-exp.y (rust_lex_exception_test): Update.
3018 * riscv-tdep.c (riscv_print_one_register_info): Update.
3019 * remote.c (remote_target::enable_btrace): Update.
3020 * record-btrace.c (record_btrace_enable_warn): Update.
3021 * python/py-utils.c (gdbpy_convert_exception): Update.
3022 * printcmd.c (do_one_display, print_variable_and_value): Update.
3023 * mi/mi-main.c (mi_print_exception): Update.
3024 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
3025 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3026 * linux-nat.c (linux_nat_target::attach): Update.
3027 * linux-fork.c (class scoped_switch_fork_info): Update.
3028 * infrun.c (displaced_step_prepare): Update.
3029 * infcall.c (call_function_by_hand_dummy): Update.
3030 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
3031 * gnu-v3-abi.c (print_one_vtable): Update.
3032 * frame.c (get_prev_frame_always): Update.
3033 * f-valprint.c (info_common_command_for_block): Update.
3034 * exec.c (try_open_exec_file): Update.
3035 * exceptions.c (print_exception, exception_print)
3036 (exception_fprintf, exception_print_same): Update.
3037 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
3038 * dwarf-index-cache.c (index_cache::store)
3039 (index_cache::lookup_gdb_index): Update.
3040 * darwin-nat.c (maybe_cache_shell): Update.
3041 * cp-valprint.c (cp_print_value_fields): Update.
3042 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
3043 (gcc_cplus_symbol_address): Update.
3044 * compile/compile-c-symbols.c (gcc_convert_symbol)
3045 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
3046 * common/selftest.c: Update.
3047 * common/common-exceptions.h (struct gdb_exception) <message>: Now
3049 (exception_try_scope_entry, exception_try_scope_exit): Don't
3051 (struct exception_try_scope): Remove.
3052 (TRY): Don't use exception_try_scope.
3053 (struct gdb_exception): Add constructor, operator=.
3055 (struct gdb_exception_RETURN_MASK_ALL)
3056 (struct gdb_exception_RETURN_MASK_ERROR)
3057 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
3058 (struct gdb_quit_bad_alloc): Update.
3059 * common/common-exceptions.c (exception_none): Change
3061 (struct catcher) <state, exception>: Initialize inline.
3062 <prev>: Remove member.
3063 (current_catcher): Remove.
3064 (catchers): New global.
3065 (exceptions_state_mc_init): Simplify.
3066 (catcher_pop): Remove.
3067 (exceptions_state_mc, exceptions_state_mc_catch): Update.
3068 (try_scope_depth, exception_try_scope_entry)
3069 (exception_try_scope_exit): Remove.
3070 (throw_exception_sjlj): Update.
3071 (exception_messages, exception_messages_size): Remove.
3072 (throw_it): Simplify.
3073 (gdb_exception_sliced_copy): Remove.
3074 (throw_exception_cxx): Update.
3075 * cli/cli-script.c (script_from_file): Update.
3076 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
3078 * ada-valprint.c (ada_val_print): Update.
3079 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
3080 (create_excep_cond_exprs): Update.
3082 2019-04-08 Tom Tromey <tom@tromey.com>
3084 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
3085 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
3086 (TRY, CATCH, END_CATCH): Remove some definitions.
3087 * common/common-exceptions.c: Don't use GDB_XCPT.
3088 (catcher_list_size): Remove.
3089 (throw_exception, throw_it): Simplify.
3091 2019-04-05 Tom Tromey <tom@tromey.com>
3093 Revert the header-sorting patch.
3094 * ft32-tdep.c: Revert.
3095 * frv-tdep.c: Revert.
3096 * frv-linux-tdep.c: Revert.
3098 * frame-unwind.c: Revert.
3099 * frame-base.c: Revert.
3100 * fork-child.c: Revert.
3101 * findvar.c: Revert.
3102 * findcmd.c: Revert.
3103 * filesystem.c: Revert.
3104 * filename-seen-cache.h: Revert.
3105 * filename-seen-cache.c: Revert.
3106 * fbsd-tdep.c: Revert.
3107 * fbsd-nat.h: Revert.
3108 * fbsd-nat.c: Revert.
3109 * f-valprint.c: Revert.
3110 * f-typeprint.c: Revert.
3112 * extension.h: Revert.
3113 * extension.c: Revert.
3114 * extension-priv.h: Revert.
3115 * expprint.c: Revert.
3118 * exceptions.c: Revert.
3119 * event-top.c: Revert.
3120 * event-loop.c: Revert.
3122 * elfread.c: Revert.
3123 * dwarf2read.h: Revert.
3124 * dwarf2read.c: Revert.
3125 * dwarf2loc.c: Revert.
3126 * dwarf2expr.h: Revert.
3127 * dwarf2expr.c: Revert.
3128 * dwarf2-frame.c: Revert.
3129 * dwarf2-frame-tailcall.c: Revert.
3130 * dwarf-index-write.h: Revert.
3131 * dwarf-index-write.c: Revert.
3132 * dwarf-index-common.c: Revert.
3133 * dwarf-index-cache.h: Revert.
3134 * dwarf-index-cache.c: Revert.
3135 * dummy-frame.c: Revert.
3136 * dtrace-probe.c: Revert.
3139 * disasm-selftests.c: Revert.
3140 * dictionary.c: Revert.
3141 * dicos-tdep.c: Revert.
3142 * demangle.c: Revert.
3145 * darwin-nat.h: Revert.
3146 * darwin-nat.c: Revert.
3147 * darwin-nat-info.c: Revert.
3148 * d-valprint.c: Revert.
3149 * d-namespace.c: Revert.
3152 * csky-tdep.c: Revert.
3153 * csky-linux-tdep.c: Revert.
3154 * cris-tdep.c: Revert.
3155 * cris-linux-tdep.c: Revert.
3156 * cp-valprint.c: Revert.
3157 * cp-support.c: Revert.
3158 * cp-namespace.c: Revert.
3160 * corelow.c: Revert.
3161 * corefile.c: Revert.
3162 * continuations.c: Revert.
3163 * completer.h: Revert.
3164 * completer.c: Revert.
3165 * complaints.c: Revert.
3166 * coffread.c: Revert.
3167 * coff-pe-read.c: Revert.
3168 * cli-out.h: Revert.
3169 * cli-out.c: Revert.
3170 * charset.c: Revert.
3171 * c-varobj.c: Revert.
3172 * c-valprint.c: Revert.
3173 * c-typeprint.c: Revert.
3175 * buildsym.c: Revert.
3176 * buildsym-legacy.c: Revert.
3177 * build-id.h: Revert.
3178 * build-id.c: Revert.
3180 * bsd-uthread.c: Revert.
3181 * breakpoint.h: Revert.
3182 * breakpoint.c: Revert.
3183 * break-catch-throw.c: Revert.
3184 * break-catch-syscall.c: Revert.
3185 * break-catch-sig.c: Revert.
3186 * blockframe.c: Revert.
3188 * bfin-tdep.c: Revert.
3189 * bfin-linux-tdep.c: Revert.
3190 * bfd-target.c: Revert.
3192 * ax-general.c: Revert.
3195 * avr-tdep.c: Revert.
3197 * auto-load.c: Revert.
3198 * arm-wince-tdep.c: Revert.
3199 * arm-tdep.c: Revert.
3200 * arm-symbian-tdep.c: Revert.
3201 * arm-pikeos-tdep.c: Revert.
3202 * arm-obsd-tdep.c: Revert.
3203 * arm-nbsd-tdep.c: Revert.
3204 * arm-nbsd-nat.c: Revert.
3205 * arm-linux-tdep.c: Revert.
3206 * arm-linux-nat.c: Revert.
3207 * arm-fbsd-tdep.c: Revert.
3208 * arm-fbsd-nat.c: Revert.
3209 * arm-bsd-tdep.c: Revert.
3210 * arch-utils.c: Revert.
3211 * arc-tdep.c: Revert.
3212 * arc-newlib-tdep.c: Revert.
3213 * annotate.h: Revert.
3214 * annotate.c: Revert.
3215 * amd64-windows-tdep.c: Revert.
3216 * amd64-windows-nat.c: Revert.
3217 * amd64-tdep.c: Revert.
3218 * amd64-sol2-tdep.c: Revert.
3219 * amd64-obsd-tdep.c: Revert.
3220 * amd64-obsd-nat.c: Revert.
3221 * amd64-nbsd-tdep.c: Revert.
3222 * amd64-nbsd-nat.c: Revert.
3223 * amd64-nat.c: Revert.
3224 * amd64-linux-tdep.c: Revert.
3225 * amd64-linux-nat.c: Revert.
3226 * amd64-fbsd-tdep.c: Revert.
3227 * amd64-fbsd-nat.c: Revert.
3228 * amd64-dicos-tdep.c: Revert.
3229 * amd64-darwin-tdep.c: Revert.
3230 * amd64-bsd-nat.c: Revert.
3231 * alpha-tdep.c: Revert.
3232 * alpha-obsd-tdep.c: Revert.
3233 * alpha-nbsd-tdep.c: Revert.
3234 * alpha-mdebug-tdep.c: Revert.
3235 * alpha-linux-tdep.c: Revert.
3236 * alpha-linux-nat.c: Revert.
3237 * alpha-bsd-tdep.c: Revert.
3238 * alpha-bsd-nat.c: Revert.
3239 * aix-thread.c: Revert.
3241 * addrmap.c: Revert.
3242 * ada-varobj.c: Revert.
3243 * ada-valprint.c: Revert.
3244 * ada-typeprint.c: Revert.
3245 * ada-tasks.c: Revert.
3246 * ada-lang.c: Revert.
3247 * aarch64-tdep.c: Revert.
3248 * aarch64-ravenscar-thread.c: Revert.
3249 * aarch64-newlib-tdep.c: Revert.
3250 * aarch64-linux-tdep.c: Revert.
3251 * aarch64-linux-nat.c: Revert.
3252 * aarch64-fbsd-tdep.c: Revert.
3253 * aarch64-fbsd-nat.c: Revert.
3254 * aarch32-linux-nat.c: Revert.
3256 2019-04-05 Tom Tromey <tom@tromey.com>
3258 * ft32-tdep.c: Sort headers.
3259 * frv-tdep.c: Sort headers.
3260 * frv-linux-tdep.c: Sort headers.
3261 * frame.c: Sort headers.
3262 * frame-unwind.c: Sort headers.
3263 * frame-base.c: Sort headers.
3264 * fork-child.c: Sort headers.
3265 * findvar.c: Sort headers.
3266 * findcmd.c: Sort headers.
3267 * filesystem.c: Sort headers.
3268 * filename-seen-cache.h: Sort headers.
3269 * filename-seen-cache.c: Sort headers.
3270 * fbsd-tdep.c: Sort headers.
3271 * fbsd-nat.h: Sort headers.
3272 * fbsd-nat.c: Sort headers.
3273 * f-valprint.c: Sort headers.
3274 * f-typeprint.c: Sort headers.
3275 * f-lang.c: Sort headers.
3276 * extension.h: Sort headers.
3277 * extension.c: Sort headers.
3278 * extension-priv.h: Sort headers.
3279 * expprint.c: Sort headers.
3280 * exec.h: Sort headers.
3281 * exec.c: Sort headers.
3282 * exceptions.c: Sort headers.
3283 * event-top.c: Sort headers.
3284 * event-loop.c: Sort headers.
3285 * eval.c: Sort headers.
3286 * elfread.c: Sort headers.
3287 * dwarf2read.h: Sort headers.
3288 * dwarf2read.c: Sort headers.
3289 * dwarf2loc.c: Sort headers.
3290 * dwarf2expr.h: Sort headers.
3291 * dwarf2expr.c: Sort headers.
3292 * dwarf2-frame.c: Sort headers.
3293 * dwarf2-frame-tailcall.c: Sort headers.
3294 * dwarf-index-write.h: Sort headers.
3295 * dwarf-index-write.c: Sort headers.
3296 * dwarf-index-common.c: Sort headers.
3297 * dwarf-index-cache.h: Sort headers.
3298 * dwarf-index-cache.c: Sort headers.
3299 * dummy-frame.c: Sort headers.
3300 * dtrace-probe.c: Sort headers.
3301 * disasm.h: Sort headers.
3302 * disasm.c: Sort headers.
3303 * disasm-selftests.c: Sort headers.
3304 * dictionary.c: Sort headers.
3305 * dicos-tdep.c: Sort headers.
3306 * demangle.c: Sort headers.
3307 * dcache.h: Sort headers.
3308 * dcache.c: Sort headers.
3309 * darwin-nat.h: Sort headers.
3310 * darwin-nat.c: Sort headers.
3311 * darwin-nat-info.c: Sort headers.
3312 * d-valprint.c: Sort headers.
3313 * d-namespace.c: Sort headers.
3314 * d-lang.c: Sort headers.
3315 * ctf.c: Sort headers.
3316 * csky-tdep.c: Sort headers.
3317 * csky-linux-tdep.c: Sort headers.
3318 * cris-tdep.c: Sort headers.
3319 * cris-linux-tdep.c: Sort headers.
3320 * cp-valprint.c: Sort headers.
3321 * cp-support.c: Sort headers.
3322 * cp-namespace.c: Sort headers.
3323 * cp-abi.c: Sort headers.
3324 * corelow.c: Sort headers.
3325 * corefile.c: Sort headers.
3326 * continuations.c: Sort headers.
3327 * completer.h: Sort headers.
3328 * completer.c: Sort headers.
3329 * complaints.c: Sort headers.
3330 * coffread.c: Sort headers.
3331 * coff-pe-read.c: Sort headers.
3332 * cli-out.h: Sort headers.
3333 * cli-out.c: Sort headers.
3334 * charset.c: Sort headers.
3335 * c-varobj.c: Sort headers.
3336 * c-valprint.c: Sort headers.
3337 * c-typeprint.c: Sort headers.
3338 * c-lang.c: Sort headers.
3339 * buildsym.c: Sort headers.
3340 * buildsym-legacy.c: Sort headers.
3341 * build-id.h: Sort headers.
3342 * build-id.c: Sort headers.
3343 * btrace.c: Sort headers.
3344 * bsd-uthread.c: Sort headers.
3345 * breakpoint.h: Sort headers.
3346 * breakpoint.c: Sort headers.
3347 * break-catch-throw.c: Sort headers.
3348 * break-catch-syscall.c: Sort headers.
3349 * break-catch-sig.c: Sort headers.
3350 * blockframe.c: Sort headers.
3351 * block.c: Sort headers.
3352 * bfin-tdep.c: Sort headers.
3353 * bfin-linux-tdep.c: Sort headers.
3354 * bfd-target.c: Sort headers.
3355 * bcache.c: Sort headers.
3356 * ax-general.c: Sort headers.
3357 * ax-gdb.h: Sort headers.
3358 * ax-gdb.c: Sort headers.
3359 * avr-tdep.c: Sort headers.
3360 * auxv.c: Sort headers.
3361 * auto-load.c: Sort headers.
3362 * arm-wince-tdep.c: Sort headers.
3363 * arm-tdep.c: Sort headers.
3364 * arm-symbian-tdep.c: Sort headers.
3365 * arm-pikeos-tdep.c: Sort headers.
3366 * arm-obsd-tdep.c: Sort headers.
3367 * arm-nbsd-tdep.c: Sort headers.
3368 * arm-nbsd-nat.c: Sort headers.
3369 * arm-linux-tdep.c: Sort headers.
3370 * arm-linux-nat.c: Sort headers.
3371 * arm-fbsd-tdep.c: Sort headers.
3372 * arm-fbsd-nat.c: Sort headers.
3373 * arm-bsd-tdep.c: Sort headers.
3374 * arch-utils.c: Sort headers.
3375 * arc-tdep.c: Sort headers.
3376 * arc-newlib-tdep.c: Sort headers.
3377 * annotate.h: Sort headers.
3378 * annotate.c: Sort headers.
3379 * amd64-windows-tdep.c: Sort headers.
3380 * amd64-windows-nat.c: Sort headers.
3381 * amd64-tdep.c: Sort headers.
3382 * amd64-sol2-tdep.c: Sort headers.
3383 * amd64-obsd-tdep.c: Sort headers.
3384 * amd64-obsd-nat.c: Sort headers.
3385 * amd64-nbsd-tdep.c: Sort headers.
3386 * amd64-nbsd-nat.c: Sort headers.
3387 * amd64-nat.c: Sort headers.
3388 * amd64-linux-tdep.c: Sort headers.
3389 * amd64-linux-nat.c: Sort headers.
3390 * amd64-fbsd-tdep.c: Sort headers.
3391 * amd64-fbsd-nat.c: Sort headers.
3392 * amd64-dicos-tdep.c: Sort headers.
3393 * amd64-darwin-tdep.c: Sort headers.
3394 * amd64-bsd-nat.c: Sort headers.
3395 * alpha-tdep.c: Sort headers.
3396 * alpha-obsd-tdep.c: Sort headers.
3397 * alpha-nbsd-tdep.c: Sort headers.
3398 * alpha-mdebug-tdep.c: Sort headers.
3399 * alpha-linux-tdep.c: Sort headers.
3400 * alpha-linux-nat.c: Sort headers.
3401 * alpha-bsd-tdep.c: Sort headers.
3402 * alpha-bsd-nat.c: Sort headers.
3403 * aix-thread.c: Sort headers.
3404 * agent.c: Sort headers.
3405 * addrmap.c: Sort headers.
3406 * ada-varobj.c: Sort headers.
3407 * ada-valprint.c: Sort headers.
3408 * ada-typeprint.c: Sort headers.
3409 * ada-tasks.c: Sort headers.
3410 * ada-lang.c: Sort headers.
3411 * aarch64-tdep.c: Sort headers.
3412 * aarch64-ravenscar-thread.c: Sort headers.
3413 * aarch64-newlib-tdep.c: Sort headers.
3414 * aarch64-linux-tdep.c: Sort headers.
3415 * aarch64-linux-nat.c: Sort headers.
3416 * aarch64-fbsd-tdep.c: Sort headers.
3417 * aarch64-fbsd-nat.c: Sort headers.
3418 * aarch32-linux-nat.c: Sort headers.
3420 2019-04-04 Tom Tromey <tom@tromey.com>
3422 * varobj.c (varobj_create): Update.
3423 * rust-exp.y (struct rust_parser) <update_innermost_block,
3424 lookup_symbol>: New methods.
3425 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
3427 (rust_parser::rust_lookup_type)
3428 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3429 * printcmd.c (display_command, do_one_display): Update.
3430 * parser-defs.h (struct parser_state) <parser_state>: Add
3431 "tracker" parameter.
3432 (block_tracker): New member.
3433 (class innermost_block_tracker) <innermost_block_tracker>: Add
3435 <reset>: Remove method.
3436 (innermost_block): Don't declare.
3437 (null_post_parser): Update.
3438 * parse.c (innermost_block): Remove global.
3439 (write_dollar_variable): Update.
3440 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
3441 Remove "tracker_types" parameter.
3442 (parse_expression): Add "tracker" parameter.
3443 (parse_expression_for_completion): Update.
3444 (null_post_parser): Add "tracker" parameter.
3445 * p-exp.y: Update rules.
3446 * m2-exp.y: Update rules.
3447 * language.h (struct language_defn) <la_post_parser>: Add
3448 "tracker" parameter.
3449 * go-exp.y: Update rules.
3450 * f-exp.y: Update rules.
3451 * expression.h (parse_expression, parse_exp_1): Add "tracker"
3453 * d-exp.y: Update rules.
3454 * c-exp.y: Update rules.
3455 * breakpoint.c (set_breakpoint_condition): Create an
3456 innermost_block_tracker.
3457 (watch_command_1): Likewise.
3458 * ada-lang.c (resolve): Add "tracker" parameter.
3459 (resolve_subexp): Likewise.
3460 * ada-exp.y (write_var_from_sym): Update.
3462 2019-04-04 Tom Tromey <tom@tromey.com>
3464 * type-stack.h: New file.
3465 * type-stack.c: New file.
3466 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
3468 (insert_into_type_stack, insert_type, push_type, push_type_int)
3469 (insert_type_address_space, pop_type, pop_type_int)
3470 (pop_typelist, pop_type_stack, append_type_stack)
3471 (push_type_stack, get_type_stack, push_typelist)
3472 (follow_type_instance_flags, follow_types): Don't declare.
3473 * parse.c (type_stack): Remove global.
3474 (parse_exp_in_context): Update.
3475 (insert_into_type_stack, insert_type, push_type, push_type_int)
3476 (insert_type_address_space, pop_type, pop_type_int)
3477 (pop_typelist, pop_type_stack, append_type_stack)
3478 (push_type_stack, get_type_stack, push_typelist)
3479 (follow_type_instance_flags, follow_types): Remove (moved to
3481 * f-exp.y (type_stack): New global.
3483 (push_kind_type, f_parse): Update.
3484 * d-exp.y (type_stack): New global.
3487 * c-exp.y (struct c_parse_state) <type_stack>: New member.
3489 * Makefile.in (COMMON_SFILES): Add type-stack.c.
3490 (HFILES_NO_SRCDIR): Add type-stack.h.
3492 2019-04-04 Tom Tromey <tom@tromey.com>
3494 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
3495 (rust_parser::convert_ast_to_expression, rust_parse)
3496 (rust_lex_test_completion, rust_lex_tests): Update.
3497 * parser-defs.h (struct expr_completion_state): New.
3498 (struct parser_state) <parser_state>: Add completion parameter.
3499 <mark_struct_expression, mark_completion_tag>: New methods.
3500 <parse_completion, m_completion_state>: New members.
3501 (prefixify_expression, null_post_parser): Update.
3502 (mark_struct_expression, mark_completion_tag): Don't declare.
3503 * parse.c (parse_completion, expout_last_struct)
3504 (expout_tag_completion_type, expout_completion_name): Remove
3506 (parser_state::mark_struct_expression)
3507 (parser_state::mark_completion_tag): Now methods.
3508 (prefixify_expression): Add last_struct parameter.
3509 (prefixify_subexp): Likewise.
3510 (parse_exp_1): Update.
3511 (parse_exp_in_context): Add cstate parameter. Update.
3512 (parse_expression_for_completion): Create an
3513 expr_completion_state.
3514 (null_post_parser): Add "completion" parameter.
3515 * p-exp.y: Update rules.
3517 * language.h (struct language_defn) <la_post_parser>: Add
3518 "completing" parameter.
3519 * go-exp.y: Update rules.
3520 (lex_one_token): Update.
3521 * expression.h (parse_completion): Don't declare.
3522 * d-exp.y: Update rules.
3523 (lex_one_token): Update rules.
3524 * c-exp.y: Update rules.
3525 (lex_one_token): Update.
3526 * ada-lang.c (resolve): Add "parse_completion" parameter.
3527 (resolve_subexp): Likewise.
3528 (ada_resolve_function): Likewise.
3530 2019-04-04 Tom Tromey <tom@tromey.com>
3532 * parser-defs.h (struct parser_state) <start_arglist,
3533 end_arglist>: New methods.
3534 <arglist_len, m_funcall_chain>: New members.
3535 (arglist_len, start_arglist, end_arglist): Don't declare.
3536 * parse.c (arglist_len, funcall_chain): Remove global.
3537 (start_arglist, end_arglist): Remove functions.
3538 (parse_exp_in_context): Update.
3539 * p-exp.y: Update rules.
3540 * m2-exp.y: Update rules.
3541 * go-exp.y: Update rules.
3542 * f-exp.y: Update rules.
3543 * d-exp.y: Update rules.
3544 * c-exp.y: Update rules.
3546 2019-04-04 Tom Tromey <tom@tromey.com>
3548 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3549 lex_operator, push_back>: New methods.
3551 (rust_parser::lex_hex, lex_escape): Rename and update.
3552 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3553 (rust_parser::lex_operator): Rename and update.
3554 (rust_parser::lex_number, rustyylex, rustyyerror)
3555 (rust_lex_test_init, rust_lex_test_sequence)
3556 (rust_lex_test_push_back, rust_lex_tests): Update.
3557 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3559 <lexptr, prev_lexptr>: New members.
3560 (lexptr, prev_lexptr): Don't declare.
3561 * parse.c (lexptr, prev_lexptr): Remove globals.
3562 (parse_exp_in_context): Update.
3563 * p-exp.y (yylex, yyerror): Update.
3564 * m2-exp.y (parse_number, yylex, yyerror): Update.
3565 * go-exp.y (lex_one_token, yyerror): Update.
3566 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3567 * d-exp.y (lex_one_token, yyerror): Update.
3568 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3569 (lex_one_token, yyerror): Update.
3570 * ada-lex.l (YY_INPUT): Update.
3571 (rewind_to_char): Update.
3572 * ada-exp.y (yyerror): Update.
3574 2019-04-04 Tom Tromey <tom@tromey.com>
3576 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3577 * parser-defs.h (struct parser_state) <parser_state>: Add new
3579 <comma_terminates>: New member.
3580 (comma_terminates): Don't declare global.
3581 * parse.c (comma_terminates): Remove global.
3582 (parse_exp_in_context): Update.
3583 * p-exp.y (yylex): Update.
3584 * m2-exp.y (yylex): Update.
3585 * go-exp.y (lex_one_token): Update.
3586 * f-exp.y (yylex): Update.
3587 * d-exp.y (lex_one_token): Update.
3588 * c-exp.y (lex_one_token): Update.
3589 * ada-lex.l: Update.
3591 2019-04-04 Tom Tromey <tom@tromey.com>
3593 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3594 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3595 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3596 * parser-defs.h (paren_depth): Don't declare.
3597 * parse.c (paren_depth): Remove global.
3598 (parse_exp_in_context): Update.
3599 * p-exp.y (paren_depth): New global.
3600 (pascal_parse): Initialize it.
3601 * m2-exp.y (paren_depth): New global.
3602 (m2_parse): Initialize it.
3603 * go-exp.y (paren_depth): New global.
3604 (go_parse): Initialize it.
3605 * f-exp.y (paren_depth): New global.
3606 (f_parse): Initialize it.
3607 * d-exp.y (paren_depth): New global.
3608 (d_parse): Initialize it.
3609 * c-exp.y (paren_depth): New global.
3610 (c_parse): Initialize it.
3611 * ada-lex.l (paren_depth): New global.
3612 (lexer_init): Initialize it.
3614 2019-04-04 Tom Tromey <tom@tromey.com>
3616 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3617 (rust_parser::convert_ast_to_type)
3618 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3619 * parser-defs.h (struct parser_state) <parser_state>: Add
3620 parameters. Initialize new members.
3621 <expression_context_block, expression_context_pc>: New members.
3622 * parse.c (expression_context_block, expression_context_pc):
3624 (parse_exp_in_context): Update.
3625 * p-exp.y: Update all rules.
3627 * m2-exp.y: Update all rules.
3629 * go-exp.y (yylex): Update.
3630 * f-exp.y (yylex): Update.
3631 * d-exp.y: Update all rules.
3633 * c-exp.y: Update all rules.
3634 (lex_one_token, classify_name, yylex, c_parse): Update.
3635 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3637 2019-04-04 Tom Tromey <tom@tromey.com>
3639 * gdbarch.h, gdbarch.c: Rebuild.
3640 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3642 (struct stap_parse_info): Replace "parser_state" with
3644 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3645 (parser_state): New class.
3646 * parse.c (expr_builder): Rename.
3647 (expr_builder::release): Rename.
3648 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3649 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3650 (write_exp_elt_longcst, write_exp_elt_floatcst)
3651 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3652 (write_exp_string_vector, write_exp_bitstring)
3653 (write_exp_msymbol, mark_struct_expression)
3654 (write_dollar_variable)
3655 (insert_type_address_space, increase_expout_size): Replace
3656 "parser_state" with "expr_builder".
3657 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3658 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3659 "parser_state" with "expr_builder".
3661 2019-04-04 Tom Tromey <tom@tromey.com>
3663 * rust-exp.y: Replace "parse_language" with method call.
3665 (yylex): Replace "parse_language" with method call.
3667 (yylex): Replace "parse_language" with method call.
3668 * go-exp.y (classify_name): Replace "parse_language" with method
3670 * f-exp.y (yylex): Replace "parse_language" with method call.
3671 * d-exp.y (lex_one_token): Replace "parse_language" with method
3674 (lex_one_token, classify_name, yylex): Replace "parse_language"
3676 * ada-exp.y (find_primitive_type, type_char)
3677 (type_system_address): Replace "parse_language" with method call.
3679 2019-04-04 Tom Tromey <tom@tromey.com>
3681 * rust-exp.y: Replace "parse_gdbarch" with method call.
3682 * parse.c (write_dollar_variable, insert_type_address_space):
3683 Replace "parse_gdbarch" with method call.
3684 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3686 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3688 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3689 "parse_gdbarch" with method call.
3690 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3692 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3693 "parse_gdbarch" with method call.
3694 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3695 "parse_gdbarch" with method call.
3696 * c-exp.y (parse_type, parse_number, classify_name): Replace
3697 "parse_gdbarch" with method call.
3698 * ada-lex.l: Replace "parse_gdbarch" with method call.
3699 * ada-exp.y (parse_type, find_primitive_type, type_char)
3700 (type_system_address): Replace "parse_gdbarch" with method call.
3702 2019-04-04 Tom Tromey <tom@tromey.com>
3704 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3705 * stap-probe.c (stap_parse_argument): Update.
3706 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3707 initial_size parameter.
3708 * rust-exp.y (rust_lex_tests): Update.
3709 * parse.c (parser_state): Update.
3710 (parse_exp_in_context): Update.
3711 * parser-defs.h (struct parser_state) <parser_state>: Remove
3712 "initial_size" parameter.
3714 2019-04-04 Tom Tromey <tom@tromey.com>
3716 * parser-defs.h (increase_expout_size): Don't declare.
3717 * parse.c (increase_expout_size): Now static.
3719 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3721 * gnu-nat.c (gnu_nat_target::wait): Fix
3722 target_waitstatus_to_string call.
3724 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3726 * eval.c (evaluate_subexp_standard): Handle internal functions
3727 during Fortran function call handling.
3729 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3731 * NEWS: Mention new internal functions.
3732 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3733 (read_base_type): Use dwarf2_init_complex_target_type.
3734 * value.c (creal_internal_fn): New function.
3735 (cimag_internal_fn): New function.
3736 (_initialize_values): Register new internal functions.
3738 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3740 * infrun.c (stop_all_threads): If debug_infrun, always
3741 trace the wait status after wait_one, using
3742 target_waitstatus_to_string and target_pid_to_str.
3743 (handle_inferior_event): Replace various trace of
3744 wait status kind by a single trace.
3745 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3746 wait status kind image by target_waitstatus_to_string.
3747 * target/waitstatus.c (target_waitstatus_to_string): Fix
3750 2019-04-01 Tom Tromey <tromey@adacore.com>
3753 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3755 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3756 Pedro Alves <palves@redhat.com>
3758 * top.c (quit_force): Call 'finalize_values'.
3759 * value.c (finalize_values): New function.
3760 * value.h (finalize_values): Declare.
3762 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3764 * NEWS: Announce $_gdb_major and $_gdb_minor.
3766 * top.c (init_gdb_version_vars): New function.
3767 (gdb_init): Call init_gdb_version_vars.
3769 2019-03-29 Tom Tromey <tromey@adacore.com>
3771 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3772 help text. Remove dead code.
3774 2019-03-29 Keith Seitz <keiths@redhat.com>
3776 From Siddhesh Poyarekar:
3777 * f-lang.h (f77_get_upperbound): Return LONGEST.
3778 (f77_get_lowerbound): Likewise.
3779 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3780 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3782 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3783 plongest to format print it.
3784 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3785 (f77_get_upperbound): Likewise.
3786 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3787 LOWER_BOUND to LONGEST.
3788 (f77_create_arrayprint_offset_tbl): Likewise.
3790 2019-03-29 Keith Seitz <keiths@redhat.com>
3792 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3793 %s/pulongest for TYPE_LENGTH instead of %d in format
3795 * ada-typerint.c (ada_print_type): Likewise.
3796 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3797 * compile/compile-c-support.c (generate_register_struct): Likewise.
3798 * gdbtypes.c (recursive_dump_type): Likewise.
3799 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3800 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3801 instead of %d in format strings.
3802 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3803 to std::min to ULONGEST.
3804 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3805 instead of %d in format strings.
3806 * tracepoint.c (info_scope_command): Likewise.
3807 * typeprint.c (print_offset_data::update)
3808 (print_offset_data::finish): Likewise.
3809 * xtensa-tdep.c (xtensa_store_return_value)
3810 (xtensa_push_dummy_call): Likewise.
3812 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3814 * windows-nat.c (display_selector): Fixed format specifications
3817 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3819 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3821 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3823 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3824 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3825 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3826 (nios2_linux_init_abi): Install it.
3828 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3830 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3832 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3834 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3836 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3837 Tom Tromey <tromey@adacore.com>
3839 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3841 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3843 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3844 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3845 method to compute the bounds of range types. Also print "[evaluated]"
3846 if the bounds' values come from a dynamic evaluation.
3848 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3850 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3851 whitespace when pretty printing is on.
3853 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3855 * ppc-linux-nat.c: Add include.
3857 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3859 * NEWS: Mention AArch64 Pointer Authentication.
3861 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3863 * arm-linux-nat.c: Add include.
3865 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3867 * source-cache.c (source_cache::get_source_lines): Re-read
3868 fullname after calling open_source_file.
3870 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3872 * NEWS: Mention TLS support for FreeBSD.
3874 2019-03-25 Tom Tromey <tromey@adacore.com>
3876 * minsyms.c (BUNCH_SIZE): Update comment.
3877 (~minimal_symbol_reader): Remove old comment.
3878 (compact_minimal_symbols): Update comment.
3879 (minimal_symbol_reader::install): Remove old comment. Update
3882 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3884 * s390-linux-nat.c: Add include.
3886 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3888 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3889 Call linux_get_hwcap.
3890 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3892 (aarch64_linux_get_hwcap): Remove function.
3893 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3895 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3897 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3898 * linux-tdep.c (linux_get_hwcap): Add function.
3899 (linux_get_hwcap2): Likewise.
3900 * linux-tdep.h (linux_get_hwcap): Add declaration.
3901 (linux_get_hwcap2): Likewise.
3902 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3903 (ppc_linux_get_hwcap2): Likewise.
3904 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3906 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3907 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3908 (ppc_linux_nat_target::read_description): Likewise.
3909 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3910 * s390-linux-nat.c: Likewise.
3911 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3913 2019-03-24 Tom Tromey <tom@tromey.com>
3915 * ada-lang.c (standard_lookup): Simplify initialization.
3916 (ada_lookup_symbol_nonlocal): Simplify return.
3917 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3918 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3919 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3920 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3922 * solib.c (solib_global_lookup): Simplify.
3923 * symtab.c (null_block_symbol): Remove.
3924 (symbol_cache_lookup): Simplify returns.
3925 (lookup_language_this): Simplify returns.
3926 (lookup_symbol_aux): Simplify return.
3927 (lookup_local_symbol): Simplify returns.
3928 (lookup_global_symbol_from_objfile): Simplify return.
3929 (lookup_symbol_in_objfile_symtabs)
3930 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3931 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3932 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3933 * cp-namespace.c (cp_lookup_bare_symbol)
3934 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3935 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3936 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3937 (cp_lookup_symbol_via_imports): Simplify initialization.
3938 (find_symbol_in_baseclass): Likewise.
3939 * symtab.h (null_block_symbol): Remove.
3940 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3941 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3942 (d_lookup_symbol_module): Likewise.
3943 (find_symbol_in_baseclass): Simplify initialization.
3945 2019-03-24 Tom Tromey <tom@tromey.com>
3947 * expression.h: Don't include symtab.h.
3948 (struct block): Forward declare.
3950 2019-03-24 Tom Tromey <tom@tromey.com>
3952 * c-exp.y (typebase): Remove casts.
3953 * gdbtypes.c (lookup_unsigned_typename, )
3954 (lookup_signed_typename): Remove cast.
3955 * eval.c (parse_to_comma_and_eval): Remove cast.
3956 * parse.c (write_dollar_variable): Remove cast.
3957 * block.h (struct block) <superblock>: Now const.
3958 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3959 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3960 (map_block): Make "block" const.
3961 * symfile.h (struct quick_symbol_functions)
3962 <map_matching_symbols>: Constify block argument to "callback".
3963 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3965 (find_pc_sect_compunit_symtab): Make "b" const.
3966 (find_symbol_at_address): Likewise.
3967 (search_symbols): Likewise.
3968 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3969 (dw2_debug_names_lookup_symbol): Likewise.
3970 (dw2_map_matching_symbols): Update.
3971 * p-valprint.c (pascal_val_print): Remove "block".
3972 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3973 (aux_add_nonlocal_symbols): Make "block" const.
3974 (resolve_subexp): Remove cast.
3975 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3977 (iterate_over_file_blocks): Likewise.
3978 * f-exp.y (%union) <bval>: Remove.
3979 * coffread.c (patch_opaque_types): Make "b" const.
3980 * spu-tdep.c (spu_catch_start): Make "block" const.
3981 * c-valprint.c (print_unpacked_pointer): Remove "block".
3982 * symmisc.c (dump_symtab_1): Make "b" const.
3983 (block_depth): Make "block" const.
3984 * d-exp.y (%union) <bval>: Remove.
3985 * cp-support.h (cp_lookup_rtti_type): Update.
3986 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3987 * psymtab.c (psym_lookup_symbol): Make "block" const.
3988 (maintenance_check_psymtabs): Make "b" const.
3989 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3990 (enumerate_locals, enumerate_args): Update.
3991 * python/py-symtab.c (stpy_global_block): Make "block" const.
3992 (stpy_static_block): Likewise.
3993 * inline-frame.c (block_starting_point_at): Make "new_block"
3995 * block.c (find_block_in_blockvector): Make return type const.
3996 (blockvector_for_pc_sect): Make "b" const.
3997 (find_block_in_blockvector): Make "b" const.
3999 2019-03-23 Tom Tromey <tom@tromey.com>
4001 * varobj.c (varobj_create): Update.
4002 * symfile.c (clear_symtab_users): Don't reset innermost_block.
4003 * printcmd.c (display_command, do_one_display): Don't reset
4005 * parser-defs.h (enum innermost_block_tracker_type): Move to
4007 (innermost_block): Update comment.
4008 * parse.c (parse_exp_1): Add tracker_types parameter.
4009 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
4010 tracker_types parameter. Reset innermost_block.
4011 (parse_exp_in_context): Remove.
4012 (parse_expression_for_completion): Update.
4013 * objfiles.c (~objfile): Don't reset expression_context_block or
4015 * expression.h (enum innermost_block_tracker_type): Move from
4017 (parse_exp_1): Add tracker_types parameter.
4018 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
4019 reset innermost_block.
4021 2019-03-23 Tom Tromey <tom@tromey.com>
4023 * objfiles.h: Include bcache.h.
4025 2019-03-23 Tom Tromey <tom@tromey.com>
4027 * linespec.c (get_current_search_block): Use
4028 scoped_restore_current_language.
4029 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
4031 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4032 Jiong Wang <jiong.wang@arm.com>
4034 * aarch64-linux-tdep.c
4035 (aarch64_linux_iterate_over_regset_sections): Check for pauth
4037 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
4039 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4040 Jiong Wang <jiong.wang@arm.com>
4042 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
4044 (aarch64_analyze_prologue_test): Add PACIASP test.
4045 (aarch64_prologue_prev_register): Unmask PC value.
4047 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4048 Jiong Wang <jiong.wang@arm.com>
4050 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
4051 (aarch64_dwarf2_prev_register): Unmask PC value.
4052 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
4053 (aarch64_execute_dwarf_cfa_vendor_op): Check for
4054 DW_CFA_AARCH64_negate_ra_state.
4055 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
4057 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4058 Jiong Wang <jiong.wang@arm.com>
4060 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
4062 (aarch64_pseudo_register_name): Likewise.
4063 (aarch64_pseudo_register_type): Likewise.
4064 (aarch64_pseudo_register_reggroup_p): Likewise.
4065 (aarch64_gdbarch_init): Add pauth registers.
4066 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
4067 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
4068 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
4069 (struct gdbarch_tdep): Add regnum for ra_state.
4071 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4072 Jiong Wang <jiong.wang@arm.com>
4074 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
4076 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4077 Jiong Wang <jiong.wang@arm.com>
4079 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
4081 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
4082 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
4083 (aarch64_gdbarch_init): Add puth registers.
4084 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
4085 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
4086 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
4088 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4089 Jiong Wang <jiong.wang@arm.com>
4091 * aarch64-linux-nat.c
4092 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
4093 * aarch64-linux-tdep.c
4094 (aarch64_linux_core_read_description): Likewise.
4095 (aarch64_linux_get_hwcap): New function.
4096 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
4097 (aarch64_linux_get_hwcap): New declaration.
4099 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4100 Jiong Wang <jiong.wang@arm.com>
4102 * aarch64-linux-nat.c
4103 (aarch64_linux_nat_target::read_description): Add pauth param.
4104 * aarch64-linux-tdep.c
4105 (aarch64_linux_core_read_description): Likewise.
4106 * aarch64-tdep.c (struct target_desc): Add in pauth.
4107 (aarch64_read_description): Add pauth param.
4108 (aarch64_gdbarch_init): Likewise.
4109 * aarch64-tdep.h (aarch64_read_description): Likewise.
4110 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4111 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4112 * features/Makefile: Add new files.
4113 * features/aarch64-pauth.c: New file.
4114 * features/aarch64-pauth.xml: New file.
4116 2019-03-20 Tom Tromey <tromey@adacore.com>
4118 * infrun.c (handle_inferior_event): Rename from
4119 handle_inferior_event_1. Create a scoped_value_mark.
4120 (handle_inferior_event): Remove.
4122 2019-03-19 Tom Tromey <tromey@adacore.com>
4124 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
4125 * infrun.h (print_stop_event): Add "displays" parameter.
4126 * infrun.c (print_stop_event): Add "displays" parameter.
4128 2019-03-19 Pedro Alves <palves@redhat.com>
4130 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
4131 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
4132 to -1. Fix TABs vs spaces.
4133 (tui_ui_out::tui_ui_out): Don't initialize fields here.
4134 * tui/tui-out.h (tui_ui_out) Add intro comments.
4135 <m_line, m_start_of_line>: In-class initialize, and add describing
4138 2019-03-18 Alan Hayward <alan.hayward@arm.com>
4140 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
4142 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
4144 2019-03-18 Pedro Alves <palves@redhat.com>
4145 Eli Zaretskii <eliz@gnu.org>
4147 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
4148 m_line and m_start_of_line.
4150 2019-03-18 Eli Zaretskii <eliz@gnu.org>
4152 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
4153 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
4154 it returns a newline. This fixes a regression in TU mode, whereby
4155 the next line is output on the same screen line as the user input.
4157 2019-03-18 Tom Tromey <tromey@adacore.com>
4159 * minsyms.c (minimal_symbol_reader::install): Remove call to
4162 2019-03-18 Pedro Alves <palves@redhat.com>
4164 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
4166 (apply_style): New, factored out from ...
4167 (apply_ansi_escape): ... this. Handle reverse video mode.
4168 (tui_set_reverse_mode): New function.
4169 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
4170 * tui/tui-winsource.c (tui_show_source_line): Use
4171 tui_set_reverse_mode instead of setting A_STANDOUT.
4172 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
4175 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
4177 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
4180 2019-03-18 Tom Tromey <tromey@adacore.com>
4182 * ada-lang.c (empty_array): Add "high" parameter.
4183 (ada_evaluate_subexp): Update.
4185 2019-03-17 Sergei Trofimovich <siarheit@google.com>
4187 * unittests/string_view-selftests.c: Define
4188 _initialize_string_view_selftests unconditionally.
4190 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4193 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
4195 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4198 * windows-nat.c (display_selector): Fix format specifiers.
4200 2019-03-17 Eli Zaretskii <eliz@gnu.org>
4202 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
4203 tui_refill_source_window instead of tui_refresh_win, to update the
4204 current execution line. This fixes redisplay of the current line
4205 when stepping through the code with "next" or "step".
4207 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4209 * source-cache.c (source_cache::get_source_lines): Call
4210 find_source_lines to initialize s->nlines. This fixes vertical
4211 scrolling of TUI source window when the DOWN arrow is pressed.
4213 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4215 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
4216 linux-thread-db.c (_initialize_thread_db): Likewise.
4218 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4220 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
4221 wclrtoeol in tui_show_source_line". This reverts changes made in
4222 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
4224 2019-03-15 Tom Tromey <tom@tromey.com>
4226 * symtab.h (struct minimal_symbol): Derive from
4227 general_symbol_info.
4228 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
4229 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4230 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4231 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4232 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
4233 (MSYMBOL_SEARCH_NAME): Update.
4234 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
4235 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
4236 * minsyms.c (minimal_symbol_reader::record_full): Update.
4238 2019-03-15 Tom Tromey <tom@tromey.com>
4240 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
4242 2019-03-15 Tom Tromey <tom@tromey.com>
4244 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
4246 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
4248 * minsyms.c (lookup_minimal_symbol_by_pc_section)
4249 (build_minimal_symbol_hash_tables)
4250 (minimal_symbol_reader::install): Update.
4252 2019-03-15 Tom Tromey <tom@tromey.com>
4254 * symtab.c (create_demangled_names_hash): Update.
4255 (symbol_set_names): Update.
4256 * objfiles.h (struct objfile_per_bfd_storage)
4257 <demangled_names_hash>: Now an htab_up.
4258 * objfiles.c (objfile_per_bfd_storage): Simplify.
4260 2019-03-15 Tom Tromey <tom@tromey.com>
4262 * objfiles.h (struct objfile_per_bfd_storage): Declare
4264 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
4266 (get_objfile_bfd_data): Use new. Don't initialize
4268 (free_objfile_per_bfd_storage): Remove.
4269 (objfile_bfd_data_free, objfile::~objfile): Use delete.
4271 2019-03-15 Tom Tromey <tom@tromey.com>
4273 * symfile.c (reread_symbols): Update.
4274 * objfiles.c (objfile::objfile): Update.
4275 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
4276 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
4278 (minimal_symbol_reader::install): Update.
4279 (terminate_minimal_symbol_table): Remove.
4280 * jit.c (jit_object_close_impl): Update.
4282 2019-03-15 Tom Tromey <tom@tromey.com>
4284 * minsyms.c (minimal_symbol_reader::record_full): Remove some
4287 2019-03-15 Tom Tromey <tom@tromey.com>
4289 * objfiles.h (struct objfile_per_bfd_storage)
4290 <demangled_hash_languages>: Now a bitset.
4291 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
4292 (lookup_minimal_symbol): Update.
4294 2019-03-15 Tom Tromey <tom@tromey.com>
4296 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
4297 Don't return the symbol.
4298 * coffread.c (record_minimal_symbol): Use record_full.
4300 2019-03-14 Eli Zaretskii <eliz@gnu.org>
4302 The MS-Windows port of ncurses fails to switch to a color pair if
4303 one or both of the colors are the implicit default colors. This
4304 change records the default colors when TUI is initialized, and
4305 then specifies them explicitly when a color pair uses the default
4306 colors. This allows color styling in TUI mode on MS-Windows.
4308 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
4310 (tui_initialize_io) [__MINGW32__]: Record the default terminal
4311 colors in ncurses_norm_attr.
4312 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
4313 "none", replace it with the default color recorded in
4316 2019-03-14 Tom Tromey <tromey@adacore.com>
4318 * source-cache.h (class source_cache) <get_source_lines>: Return
4320 * source-cache.c (source_cache::extract_lines): Handle case where
4321 first_pos==npos. Return std::string.
4322 (source_cache::get_source_lines): Update.
4324 2019-03-14 Tom Tromey <tromey@adacore.com>
4326 * NEWS: Add item for "style sources" commands.
4327 * source-cache.c (source_cache::get_source_lines): Check
4329 * cli/cli-style.c (source_styling): New global.
4330 (_initialize_cli_style): Add "style sources" commands.
4331 (show_style_sources): New function.
4332 * cli/cli-style.h (source_styling): Declare.
4334 2019-03-14 Pedro Alves <palves@redhat.com>
4335 Tom Tromey <tromey@adacore.com>
4337 * tui/tui-winsource.h (tui_refill_source_window): Declare.
4338 * tui/tui-winsource.c (tui_refill_source_window): New function,
4340 (tui_horizontal_source_scroll): ... here. Move some logic.
4341 * cli/cli-style.c (set_style_enabled): Notify new observable.
4342 * tui/tui-hooks.c (tui_redisplay_source): New function.
4343 (tui_attach_detach_observers): Attach or detach
4344 tui_redisplay_source.
4345 * observable.h (source_styling_changed): New observable.
4346 * observable.c: Define source_styling_changed observable.
4348 2019-03-13 Tom Tromey <tromey@adacore.com>
4350 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
4351 (i386_gnu_nat_target::store_registers): Update.
4352 * target-debug.h (target_debug_print_std_string): New macro.
4353 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4354 * windows-tdep.c (display_one_tib): Update.
4355 * tui/tui-stack.c (tui_make_status_line): Update.
4356 * top.c (print_inferior_quit_action): Update.
4357 * thread.c (thr_try_catch_cmd): Update.
4358 (add_thread_with_info): Update.
4359 (thread_target_id_str): Update.
4360 (thr_try_catch_cmd): Update.
4361 (thread_command): Update.
4362 (thread_find_command): Update.
4363 * record-btrace.c (record_btrace_target::info_record)
4364 (record_btrace_resume_thread, record_btrace_target::resume)
4365 (record_btrace_cancel_resume, record_btrace_step_thread)
4366 (record_btrace_target::wait, record_btrace_target::wait)
4367 (record_btrace_target::wait, record_btrace_target::stop): Update.
4368 * progspace.c (print_program_space): Update.
4369 * process-stratum-target.c
4370 (process_stratum_target::thread_address_space): Update.
4371 * linux-fork.c (linux_fork_mourn_inferior)
4372 (detach_checkpoint_command, info_checkpoints_command)
4373 (linux_fork_context): Update.
4374 (linux_fork_detach): Update.
4375 (class scoped_switch_fork_info): Update.
4376 (delete_checkpoint_command): Update.
4377 * infrun.c (follow_fork_inferior): Update.
4378 (follow_fork_inferior): Update.
4379 (proceed_after_vfork_done): Update.
4380 (handle_vfork_child_exec_or_exit): Update.
4381 (follow_exec): Update.
4382 (displaced_step_prepare_throw): Update.
4383 (displaced_step_restore): Update.
4384 (start_step_over): Update.
4386 (clear_proceed_status_thread): Update.
4388 (print_target_wait_results): Update.
4389 (do_target_wait): Update.
4390 (context_switch): Update.
4391 (stop_all_threads): Update.
4392 (restart_threads): Update.
4393 (finish_step_over): Update.
4394 (handle_signal_stop): Update.
4395 (switch_back_to_stepped_thread): Update.
4396 (keep_going_pass_signal): Update.
4397 (print_exited_reason): Update.
4398 (normal_stop): Update.
4399 * inferior.c (inferior_pid_to_str): Change return type.
4400 (print_selected_inferior): Update.
4401 (add_inferior): Update.
4402 (detach_inferior): Update.
4403 * dummy-frame.c (fprint_dummy_frames): Update.
4404 * dcache.c (dcache_info_1): Update.
4405 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4406 (btrace_fetch, btrace_clear): Update.
4407 * linux-tdep.c (linux_core_pid_to_str): Change return type.
4408 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
4410 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
4411 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
4412 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
4413 * gdbarch.c, gdbarch.h: Rebuild.
4414 * gdbarch.sh (core_pid_to_str): Change return type.
4415 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
4417 (windows_nat_target::pid_to_str): Change return type.
4418 (windows_delete_thread): Update.
4419 (windows_nat_target::attach): Update.
4420 (windows_nat_target::files_info): Update.
4421 * target-delegates.c: Rebuild.
4422 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
4424 (sol_thread_target::pid_to_str): Change return type.
4425 * remote.c (class remote_target) <pid_to_str>: Change return
4427 (remote_target::pid_to_str): Change return type.
4428 (extended_remote_target::attach, remote_target::remote_stop_ns)
4429 (remote_target::remote_notif_remove_queued_reply)
4430 (remote_target::push_stop_reply, remote_target::disable_btrace):
4432 (extended_remote_target::attach): Update.
4433 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
4435 (gdbsim_target::pid_to_str): Change return type.
4436 * ravenscar-thread.c (struct ravenscar_thread_target)
4437 <pid_to_str>: Change return type.
4438 (ravenscar_thread_target::pid_to_str): Change return type.
4439 * procfs.c (class procfs_target) <pid_to_str>: Change return
4441 (procfs_target::pid_to_str): Change return type.
4442 (procfs_target::attach): Update.
4443 (procfs_target::detach): Update.
4444 (procfs_target::fetch_registers): Update.
4445 (procfs_target::store_registers): Update.
4446 (procfs_target::wait): Update.
4447 (procfs_target::files_info): Update.
4448 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
4449 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
4451 (nto_procfs_target::pid_to_str): Change return type.
4452 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
4453 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
4455 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
4457 (attach_proc_task_lwp_callback, get_detach_signal)
4458 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
4459 (linux_nat_target::resume, wait_lwp, stop_callback)
4460 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
4461 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
4462 (linux_nat_wait_1, resume_stopped_resumed_lwps)
4463 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
4464 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
4466 (inf_ptrace_target::attach): Update.
4467 (inf_ptrace_target::files_info): Update.
4468 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
4470 (go32_nat_target::pid_to_str): Change return type.
4471 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
4472 (gnu_nat_target::wait): Update.
4473 (gnu_nat_target::wait): Update.
4474 (gnu_nat_target::resume): Update.
4475 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
4476 (fbsd_nat_target::wait): Update.
4477 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
4479 (darwin_nat_target::attach): Update.
4480 * corelow.c (class core_target) <pid_to_str>: Change return type.
4481 (core_target::pid_to_str): Change return type.
4482 * target.c (normal_pid_to_str): Change return type.
4483 (default_pid_to_str): Likewise.
4484 (target_pid_to_str): Change return type.
4485 (target_translate_tls_address): Update.
4486 (target_announce_detach): Update.
4487 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
4489 (bsd_uthread_target::pid_to_str): Change return type.
4490 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
4492 (bsd_kvm_target::pid_to_str): Change return type.
4493 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
4495 (aix_thread_target::pid_to_str): Change return type.
4496 * target.h (struct target_ops) <pid_to_str>: Change return type.
4497 (target_pid_to_str, normal_pid_to_str): Likewise.
4498 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4500 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4502 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4504 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4506 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4508 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4511 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4513 * NEWS: Mention that the new default MI version is 3. Mention
4514 changes to the output of commands and events that deal with
4515 multi-location breakpoints.
4516 * breakpoint.c: Include "mi/mi-out.h".
4517 (print_one_breakpoint): Change output syntax if using MI version
4519 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4521 (mi_multi_location_breakpoint_output_fixed): New.
4522 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4523 (mi_cmd_fix_multi_location_breakpoint_output): New.
4524 (mi_multi_location_breakpoint_output_fixed): New.
4525 * mi/mi-cmds.c (mi_cmds): Register command
4526 -fix-multi-location-breakpoint-output.
4527 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4530 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4532 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4533 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4534 instantiate mi_ui_out based on interpreter name.
4535 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4536 * mi/mi-main.c (mi_load_progress): Likewise.
4538 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4540 * NEWS: Combine separate "New targets" sections for 8.3.
4542 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4544 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4545 (ppcfbsd_init_abi): Install gdbarch
4546 "fetch_tls_load_module_address" and "get_thread_local_address"
4549 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4551 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4552 (riscv_fbsd_init_abi): Install gdbarch
4553 "fetch_tls_load_module_address" and "get_thread_local_address"
4556 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4558 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4559 (i386fbsd_init_abi): Install gdbarch
4560 "fetch_tls_load_module_address" and "get_thread_local_address"
4563 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4565 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4566 (amd64fbsd_init_abi): Install gdbarch
4567 "fetch_tls_load_module_address" and "get_thread_local_address"
4570 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4572 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4573 (struct fbsd_pspace_data): New type.
4574 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4575 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4576 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4577 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4578 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4580 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4582 * gdbtypes.c (lookup_struct_elt): New function.
4583 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4584 * gdbtypes.h (struct struct_elt): New type.
4585 (lookup_struct_elt): New prototype.
4587 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4589 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4590 remove disabled code block.
4592 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4594 * gdbarch.sh (get_thread_local_address): New method.
4595 * gdbarch.h, gdbarch.c: Regenerate.
4596 * target.c (target_translate_tls_address): Use
4597 gdbarch_get_thread_local_address if present instead of
4598 target::get_thread_local_address.
4600 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4602 * target.h (target::get_thread_local_address): Update comment.
4604 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4606 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4607 objfile->separate_debug_objfile_backlink if not NULL.
4609 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4611 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4612 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4613 (amd64bsd_store_inferior_registers): Likewise.
4614 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4615 Enable segment base registers.
4616 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4617 PT_GETFSBASE and PT_GETGSBASE.
4618 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4620 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4621 segment base registers.
4622 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4624 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4626 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4627 Update calls to i386_target_description to add 'segments'
4629 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4630 add segment base registers.
4631 * arch/i386.c (i386_create_target_description): Add 'segments'
4632 parameter to enable segment base registers.
4633 * arch/i386.h (i386_create_target_description): Likewise.
4634 * features/i386/32bit-segments.xml: New file.
4635 * features/i386/32bit-segments.c: Generate.
4636 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4637 call to i386_target_description to add 'segments' parameter.
4638 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4639 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4640 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4641 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4642 if feature is present.
4643 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4644 Add 'segments' parameter to call to i386_target_description.
4645 (i386_target_description): Add 'segments' parameter to enable
4646 segment base registers.
4647 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4648 to call to i386_target_description.
4649 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4650 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4651 Define I386_NUM_REGS.
4652 (i386_target_description): Add 'segments' parameter to enable
4653 segment base registers.
4655 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4658 * source-cache.c: #undef open and close, to avoid unresolved
4659 externals during linking.
4661 2019-03-12 Tom Tromey <tromey@adacore.com>
4663 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4664 const. Add initializers.
4665 (_initialize_remote): Don't initialize ptid globals.
4667 2019-03-12 Pedro Alves <palves@redhat.com>
4669 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4671 2019-03-12 Pedro Alves <palves@redhat.com>
4673 * cp-name-parser.y (main): Remove unused 'len' variable.
4675 2019-03-12 Tom Tromey <tromey@adacore.com>
4677 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4678 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4680 2019-03-12 Tom Tromey <tromey@adacore.com>
4682 * linux-nat.c (iterate_over_lwps): Update.
4683 (stop_callback): Remove parameter.
4684 (stop_wait_callback, detach_callback, resume_set_callback)
4685 (select_singlestep_lwp_callback, set_ignore_sigint)
4686 (status_callback, resumed_callback, resume_clear_callback)
4687 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4689 (linux_nat_target::detach, linux_nat_target::resume)
4690 (linux_stop_and_wait_all_lwps, select_event_lwp)
4691 (linux_nat_filter_event, linux_nat_wait_1)
4692 (linux_nat_target::kill, linux_nat_target::stop)
4693 (linux_nat_target::stop): Update.
4694 (linux_nat_resume_callback): Change type.
4695 (resume_stopped_resumed_lwps, count_events_callback)
4696 (select_event_lwp_callback): Likewise.
4697 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4698 * arm-linux-nat.c (struct update_registers_data): Remove.
4699 (update_registers_callback): Change type.
4700 (arm_linux_insert_hw_breakpoint1): Update.
4701 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4703 (x86_linux_dr_set_addr): Update.
4704 (x86_linux_dr_set_control): Update.
4705 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4706 (iterate_over_lwps): Use gdb::function_view.
4707 * nat/aarch64-linux-hw-point.c (struct
4708 aarch64_dr_update_callback_param): Remove.
4709 (debug_reg_change_callback): Change type.
4710 (aarch64_notify_debug_reg_change): Update.
4711 * s390-linux-nat.c (s390_refresh_per_info): Update.
4713 2019-03-11 Tom Tromey <tromey@adacore.com>
4715 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4716 redundant assignment to "this_cu".
4718 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4720 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4722 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4724 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4726 (rank_one_type): ... this.
4728 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4730 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4732 (rank_one_type): ... this.
4734 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4736 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4738 (rank_one_type): ... this.
4740 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4742 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4744 (rank_one_type): ... this.
4746 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4748 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4750 (rank_one_type): ... this.
4752 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4754 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4756 (rank_one_type): ... this.
4758 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4760 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4762 (rank_one_type): ... this.
4764 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4766 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4768 (rank_one_type): ... this.
4770 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4772 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4774 (rank_one_type): ... this.
4776 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4778 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4780 (rank_one_type): ... this.
4782 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4784 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4786 (rank_one_type): ... this.
4788 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4790 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4792 (rank_one_type): ... this.
4794 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4796 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4797 inferior-events' shows the example events.
4799 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4801 Support styling on native MS-Windows console
4804 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4805 on MS-Windows if $TERM is not defined.
4807 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4809 * posix-hdep.c (gdb_console_fputs):
4810 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4812 * ui-file.h (gdb_console_fputs): Add prototype.
4814 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4815 back to fputs only if the former returns zero.
4817 2019-03-07 Tom Tromey <tom@tromey.com>
4819 * symmisc.c (print_symbol_bcache_statistics): Update.
4820 (print_objfile_statistics): Update.
4821 * symfile.c (allocate_symtab): Update.
4822 * stabsread.c: Don't include bcache.h.
4823 * psymtab.h (struct psymbol_bcache): Don't declare.
4824 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4825 (psymbol_bcache_init, psymbol_bcache_free)
4826 (psymbol_bcache_get_bcache): Don't declare.
4827 * psymtab.c (struct psymbol_bcache): Remove.
4828 (psymtab_storage::psymtab_storage): Update.
4829 (psymtab_storage::~psymtab_storage): Update.
4830 (psymbol_bcache_init, psymbol_bcache_free)
4831 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4832 (add_psymbol_to_bcache): Update.
4833 (allocate_psymtab): Update.
4834 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4835 macro_cache>: No longer pointers.
4836 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4837 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4838 * macrotab.c (macro_bcache): Update.
4839 * macroexp.c: Don't include bcache.h.
4840 * gdbtypes.c (check_types_worklist): Update.
4841 (types_deeply_equal): Remove TRY/CATCH. Update.
4842 * elfread.c (elf_symtab_read): Update.
4843 * dwarf2read.c: Don't include bcache.h.
4844 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4845 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4846 (print_bcache_statistics, bcache_memory_used): Don't declare.
4847 (struct bcache): Move from bcache.c. Add constructor, destructor,
4848 methods. Rename all data members.
4849 * bcache.c (struct bcache): Move to bcache.h.
4850 (bcache::expand_hash_table): Rename from expand_hash_table.
4852 (bcache::insert): Rename from bcache_full.
4853 (bcache::compare): Rename from bcache_compare.
4854 (bcache_xmalloc): Remove.
4855 (bcache::~bcache): Rename from bcache_xfree.
4856 (bcache::print_statistics): Rename from print_bcache_statistics.
4857 (bcache::memory_used): Rename from bcache_memory_used.
4859 2019-03-07 Pedro Alves <palves@redhat.com>
4861 * infrun.c (normal_stop): Also check for
4862 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4864 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4866 * f-lang.c (value_from_host_double): Moved to...
4867 * value.c (value_from_host_double): ...here.
4868 * value.h (value_from_host_double): Declare.
4869 * guile/scm-math.c (vlscm_convert_typed_number): Use
4870 value_from_host_double.
4871 (vlscm_convert_number): Likewise.
4872 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4873 * python/py-value.c (convert_value_from_python): Likewise.
4875 2019-03-06 Tom Tromey <tom@tromey.com>
4877 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4879 2019-03-06 Tom Tromey <tom@tromey.com>
4881 * utils.h (free_current_contents): Don't declare.
4882 * utils.c (free_current_contents): Remove.
4884 2019-03-06 Tom Tromey <tom@tromey.com>
4886 * top.c (quit_force): Update.
4887 * main.c (captured_command_loop): Update.
4888 * common/new-op.c (operator new): Update.
4889 * common/common-exceptions.c (struct catcher)
4890 <save_cleanup_chain>: Remove member.
4891 (exceptions_state_mc_init): Update.
4892 (exception_try_scope_entry): Return nullptr.
4893 (exception_try_scope_exit, exception_rethrow)
4894 (throw_exception_sjlj, throw_exception_cxx): Update.
4895 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4896 (all_cleanups, do_cleanups, discard_cleanups)
4897 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4898 (restore_cleanups, restore_final_cleanups): Don't declare.
4899 (do_final_cleanups): Remove parameter.
4900 * common/cleanups.c (cleanup_chain, make_cleanup)
4901 (make_cleanup_dtor, all_cleanups, do_cleanups)
4902 (discard_my_cleanups, discard_cleanups)
4903 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4904 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4905 (null_cleanup): Remove.
4906 (do_final_cleanups): Remove parameter.
4908 2019-03-06 Tom Tromey <tom@tromey.com>
4910 * remote.c (remote_target::remote_parse_stop_reply): Use
4913 2019-03-06 Tom Tromey <tom@tromey.com>
4915 * stabsread.c (struct stabs_field_info): Rename from field_info.
4916 <list, fnlist>: Add initializers.
4917 <obstack>: New member.
4918 (read_member_functions, read_struct_fields, read_baseclasses):
4919 Allocate on obstack. Don't use cleanups.
4920 (read_one_struct_field, read_member_functions, read_struct_fields)
4921 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4922 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4923 (read_struct_type): Update.
4925 2019-03-06 Tom Tromey <tom@tromey.com>
4927 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4928 * common/filestuff.h (make_cleanup_close): Don't declare.
4929 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4932 2019-03-06 Tom Tromey <tom@tromey.com>
4934 * solib-aix.c: Use make_scope_exit.
4936 2019-03-06 Tom Tromey <tom@tromey.com>
4938 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4939 Use make_scope_exit.
4941 2019-03-06 Tom Tromey <tom@tromey.com>
4943 * solib-svr4.c (disable_probes_interface): Remove parameter.
4944 (svr4_handle_solib_event): Use make_scope_exit.
4946 2019-03-06 Tom Tromey <tom@tromey.com>
4948 * remote.c (struct stop_reply_deleter): Remove.
4949 (stop_reply_up): Update.
4950 (struct stop_reply): Derive from notif_event. Don't typedef.
4951 <regcache>: Now a std::vector.
4952 (stop_reply_xfree): Remove.
4953 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4954 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4955 (remote_target::discard_pending_stop_replies): Use delete.
4956 (remote_target::remote_parse_stop_reply): Update.
4957 (remote_target::process_stop_reply): Update.
4958 * remote-notif.h (struct notif_event): Add virtual destructor.
4959 Remove "dtr" member.
4960 (struct notif_client) <alloc_event>: Return a unique_ptr.
4961 (notif_event_xfree): Don't declare.
4962 (notif_event_up): New typedef.
4963 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4964 (notif_event_xfree, do_notif_event_xfree): Remove.
4965 (remote_notif_state_xfree): Update.
4967 2019-03-06 Tom Tromey <tom@tromey.com>
4969 * infrun.c (displaced_step_clear_cleanup): Now a
4970 forward_scope_exit type.
4971 (displaced_step_prepare_throw): Update.
4972 (displaced_step_fixup): Update.
4974 2019-03-06 Tom Tromey <tom@tromey.com>
4976 * inferior.h (class inferior): Update comment.
4977 * gdbthread.h (class thread_info): Update comment.
4979 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4980 Tom Tromey <tom@tromey.com>
4982 * stabsread.h (struct stab_section_list): Remove.
4983 (coffstab_build_psymtabs): Update.
4984 * dbxread.c (symbuf_sections): Now a std::vector.
4985 (sect_idx): New global.
4986 (fill_symbuf): Update.
4987 (coffstab_build_psymtabs): Change type of stabsects parameter.
4989 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4991 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4992 (coff_locate_sections): Update.
4993 (coff_symfile_read): Remove cleanups. Update.
4994 (init_stringtab): Add storage parameter.
4995 (free_stringtab, free_stringtab_cleanup): Remove.
4996 (init_lineno): Add storage parameter.
4997 (free_linetab, free_linetab_cleanup): Remove.
4999 2019-03-06 Pedro Alves <palves@redhat.com>
5001 * linux-fork.c (fork_info::clobber_regs): Delete.
5002 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
5003 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
5005 (scoped_switch_fork_info::scoped_switch_fork_info)
5006 (checkpoint_command, linux_fork_context): Adjust
5007 fork_save_infrun_state calls.
5009 2019-03-06 Pedro Alves <palves@redhat.com>
5011 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
5012 (inf_has_multiple_threads): Return 'bool' and rewrite using
5013 inferior_info::threads().
5015 2019-03-06 Pedro Alves <palves@redhat.com>
5017 * linux-fork.c: Include <list>.
5018 (fork_list): Now a std::list instance.
5019 (fork_info): Add ctor, dtor, and in-class initialize all fields.
5020 (forks_exist_p, find_last_fork): Adjust.
5024 (free_fork): Delete, folded into fork_info::~fork_info().
5025 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
5027 (init_fork_list): Delete.
5028 (linux_fork_killall, linux_fork_mourn_inferior)
5029 (linux_fork_detach, info_checkpoints_command): Adjust.
5030 (_initialize_linux_fork): No longer call init_fork_list.
5032 2019-03-06 Pedro Alves <palves@redhat.com>
5034 * linux-fork.c (new_fork): New, split out of ...
5035 (add_fork): ... this. Return void. Move "first fork" special
5036 case from here, to ...
5037 (checkpoint_command): ... here.
5038 * linux-linux.h (add_fork): Return void.
5040 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5042 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
5044 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5045 Chris January <chris.january@arm.com>
5046 David Lecomber <david.lecomber@arm.com>
5048 * f-exp.y: New token, UNOP_INTRINSIC.
5049 (exp): New pattern using UNOP_INTRINSIC token.
5050 (f77_keywords): Add 'abs' keyword.
5051 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
5052 (value_from_host_double): New function.
5053 (evaluate_subexp_f): Support UNOP_ABS.
5055 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5057 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
5060 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5062 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
5063 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
5064 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
5066 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5068 * f-exp.y (convert_to_kind_type): Handle more type kinds.
5070 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5071 Chris January <chris.january@arm.com>
5073 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
5074 * f-exp.y: Define 'KIND' token.
5075 (exp): New pattern for KIND expressions.
5076 (ptype): Handle types with a kind extension.
5077 (direct_abs_decl): Extend to spot kind extensions.
5078 (f77_keywords): Add 'kind' to the list.
5079 (push_kind_type): New function.
5080 (convert_to_kind_type): New function.
5081 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
5082 * parse.c (operator_length_standard): Likewise.
5083 * parser-defs.h (enum type_pieces): Add tp_kind.
5084 * std-operator.def: Add UNOP_KIND.
5086 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5088 * f-exp.y (f_parse): Set yydebug.
5090 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5092 * f-lang.c (evaluate_subexp_f): New function.
5093 (exp_descriptor_f): New global.
5094 (f_language_defn): Use exp_descriptor_f instead of
5095 exp_descriptor_standard.
5097 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5099 * f-exp.y (struct token): Add comments.
5100 (dot_ops): Remove uppercase versions and the end marker.
5101 (f77_keywords): Likewise.
5102 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
5103 entries in the dot_ops array are case insensitive, and use
5104 strncasecmp to compare strings. Also some whitespace cleanup in
5105 this area. Similar for the f77_keywords array, except entries in
5106 this list might be case sensitive.
5108 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5110 * f-exp.y (struct f77_boolean_val): Add comments.
5111 (boolean_values): Remove uppercase versions, and end marker.
5112 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
5113 and use strncasecmp to achieve case insensitivity. Additionally,
5114 perform whitespace cleanup around this code.
5116 2019-03-06 Tom Tromey <tromey@adacore.com>
5118 * remote-sim.c (gdbsim_target_open): Use result of
5121 2019-03-06 Richard Bunt <richard.bunt@arm.com>
5122 Dirk Schubert <dirk.schubert@arm.com>
5123 Chris January <chris.january@arm.com>
5125 * eval.c (evaluate_subexp_standard): Call Fortran argument
5127 * f-lang.c (struct value): A value which can be passed into a
5128 Fortran function call.
5129 (fortran_argument_convert): Wrap Fortran arguments in a pointer
5131 (struct type): Value ready for a Fortran function call.
5132 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
5134 * f-lang.h (fortran_argument_convert): Declaration.
5135 (fortran_preserve_arg_pointer): Declaration.
5136 * infcall.c (value_arg_coerce): Call Fortran argument logic.
5138 2019-03-05 Tom Tromey <tromey@adacore.com>
5140 * python/py-prettyprint.c (print_string_repr): Remove #if.
5141 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
5143 2019-03-05 Tom Tromey <tromey@adacore.com>
5145 * target.c (the_dummy_target): Move later. Change type to
5147 (initialize_targets): Don't initialize the_dummy_target.
5149 2019-03-05 Tom Tromey <tromey@adacore.com>
5151 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
5152 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
5154 2019-03-05 Tom Tromey <tromey@adacore.com>
5156 * windows-nat.c (windows_nat_target::attach)
5157 (windows_nat_target::detach): Don't call gdb_flush.
5158 * valprint.c (generic_val_print, val_print, val_print_string):
5159 Don't call gdb_flush.
5160 * utils.c (defaulted_query): Don't call gdb_flush.
5161 * typeprint.c (print_type_scalar): Don't call gdb_flush.
5162 * target.c (target_announce_detach): Don't call gdb_flush.
5163 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
5164 * remote.c (extended_remote_target::attach): Don't call
5166 * procfs.c (procfs_target::detach): Don't call gdb_flush.
5167 * printcmd.c (do_examine): Don't call gdb_flush.
5168 (info_display_command): Don't call gdb_flush.
5169 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
5170 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
5171 * memattr.c (info_mem_command): Don't call gdb_flush.
5172 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
5173 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
5174 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
5175 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
5176 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
5177 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
5178 (gnu_nat_target::detach): Don't call gdb_flush.
5179 * f-valprint.c (f_val_print): Don't call gdb_flush.
5180 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
5181 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
5182 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
5184 * c-valprint.c (c_val_print): Don't call gdb_flush.
5185 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
5187 2019-03-05 Tom Tromey <tromey@adacore.com>
5189 * varobj.c (update_dynamic_varobj_children): Update.
5190 (install_default_visualizer): Use reset, not release.
5191 * value.c (set_internalvar): Update.
5192 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
5193 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
5194 ATTRIBUTE_UNUSED_RESULT.
5196 2019-03-05 Tom Tromey <tromey@adacore.com>
5198 * remote.c (class scoped_remote_fd) <release>: Add
5199 ATTRIBUTE_UNUSED_RESULT.
5201 2019-03-05 Tom Tromey <tromey@adacore.com>
5203 * macroexp.c (struct macro_buffer) <release>: Add
5204 ATTRIBUTE_UNUSED_RESULT.
5206 2019-03-05 Tom Tromey <tromey@adacore.com>
5208 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
5209 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
5210 ATTRIBUTE_UNUSED_RESULT.
5212 2019-03-05 Tom Tromey <tromey@adacore.com>
5214 * common/scoped_fd.h (class scoped_fd) <release>: Add
5215 ATTRIBUTE_UNUSED_RESULT.
5217 2019-03-05 Tom Tromey <tromey@adacore.com>
5219 * parser-defs.h (struct parser_state) <release>: Add
5220 ATTRIBUTE_UNUSED_RESULT.
5222 2019-03-05 Tom Tromey <tromey@adacore.com>
5224 * utils.h (class gdb_argv) <release>: Add
5225 ATTRIBUTE_UNUSED_RESULT.
5226 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
5228 2019-03-02 Eli Zaretskii <eliz@gnu.org>
5230 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
5231 for-loop range, to avoid compiler warnings.
5233 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
5234 avoid compiler warnings about unused variables.
5236 * NEWS: Mention end of support for native debugging on MS-Windows
5240 * common/netstuff.c:
5241 * gdbserver/gdbreplay.c
5242 * gdbserver/remote-utils.c:
5244 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
5245 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
5246 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
5247 'getaddrinfo' and 'freeaddrinfo' were not available before
5248 Windows XP, and mingw.org's MinGW headers by default define
5249 _WIN32_WINNT to 0x500.
5251 2019-03-01 Gary Benson <gbenson@redhat.com>
5253 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
5255 2019-02-28 Brian Vandenberg <phantall@gmail.com>
5256 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5259 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
5260 set_sigint_trap, clear_sigint_trap.
5262 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5264 * target.c (target_detach): Clear the regcache and the
5267 2019-02-27 Pedro Alves <palves@redhat.com>
5269 * utils.c (set_screen_size): When we cap the height/width sizes,
5270 tweak the corresponding command variable to show "unlimited":
5272 2019-02-27 Saagar Jha <saagar@saagarjha.com>
5273 Pedro Alves <palves@redhat.com>
5275 * utils.c (set_screen_size): Reduce "infinite" rows and columns
5276 before calling rl_set_screen_size.
5278 2019-02-27 Tom Tromey <tromey@adacore.com>
5280 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
5282 * python/py-value.c: Remove Python 2.4 workaround.
5283 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
5285 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
5286 Python 2.4 workaround.
5287 * python/python-internal.h: Remove Python 2.4 comment.
5288 (Py_ssize_t): Don't define.
5289 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
5290 (gdb_Py_DECREF): Remove Python 2.4 workaround.
5291 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
5292 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
5293 * python/python.c (do_start_initialization): Remove Python 2.4
5295 * python/py-prettyprint.c (class dummy_python_frame): Remove.
5296 (print_children): Remove Python 2.4 workaround.
5297 * python/py-inferior.c (buffer_procs): Remove Python 2.4
5299 (CHARBUFFERPROC_NAME): Remove.
5300 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
5301 Python 2.4 workaround.
5303 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5305 * NEWS: Note minimum Python version.
5307 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5309 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
5310 code from these functions. Remove corresponding ifdefs. Use
5311 Py_buffer_up instead of explicit calls to PyBuffer_Release.
5312 Remove gotos and target of gotos.
5313 (infpy_search_memory): Likewise.
5315 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5317 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
5318 (hppa_gdbarch_init): Don't register deleted functions with
5321 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5323 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
5324 (h8300_unwind_sp): Delete.
5325 (h8300_dummy_id): Delete.
5326 (h8300_gdbarch_init): Don't register deleted functions with
5329 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5331 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
5332 (ft32_unwind_pc): Delete.
5333 (ft32_unwind_sp): Delete.
5334 (ft32_gdbarch_init): Don't register deleted functions with
5337 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5339 * gdb/frv-tdep.c (frv_dummy_id): Delete.
5340 (frv_unwind_pc): Delete.
5341 (frv_unwind_sp): Delete.
5342 (frv_gdbarch_init): Don't register deleted functions with
5345 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5347 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
5348 (riscv_unwind_pc): Delete.
5349 (riscv_unwind_sp): Delete.
5350 (riscv_gdbarch_init): Don't register deleted functions with
5353 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5355 * gdb/csky-tdep.c (csky_dummy_id): Delete.
5356 (csky_unwind_pc): Delete.
5357 (csky_unwind_sp): Delete.
5358 (csky_gdbarch_init): Don't register deleted functions with
5361 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5363 * gdb/cris-tdep.c (cris_dummy_id): Delete.
5364 (cris_unwind_pc): Delete.
5365 (cris_unwind_sp): Delete.
5366 (cris_gdbarch_init): Don't register deleted functions with
5369 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5371 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
5372 (bfin_unwind_pc): Delete.
5373 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
5375 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5377 * gdb/arm-tdep.c (arm_dummy_id): Delete.
5378 (arm_unwind_pc): Delete.
5379 (arm_unwind_sp): Delete.
5380 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
5382 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5384 * gdb/arc-tdep.c (arc_dummy_id): Delete.
5385 (arc_unwind_pc): Delete.
5386 (arc_unwind_sp): Delete.
5387 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
5389 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5391 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
5392 (alpha_unwind_pc): Delete.
5393 (alpha_gdbarch_init): Don't register deleted functions with
5396 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5398 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
5399 (aarch64_unwind_pc): Delete.
5400 (aarch64_unwind_sp): Delete.
5401 (aarch64_gdbarch_init): Don't register deleted functions with
5404 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5406 * gdbtypes.c (type_align): Don't consider static members when
5407 computing structure alignment.
5409 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5411 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
5412 return 0 for other types.
5413 * arch-utils.c (default_type_align): Always return 0.
5414 * gdbarch.h: Regenerate.
5415 * gdbarch.sh (type_align): Extend comment.
5416 * gdbtypes.c (type_align): Add additional comments, always call
5417 gdbarch_type_align before applying the default rules.
5418 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
5419 generic code will then apply a suitable default.
5420 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
5421 types, return 0 for other types.
5423 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5425 * NEWS: Create a new section for the next release branch.
5426 Rename the section of the current branch, now that it has
5429 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5431 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
5432 * version.in: Bump version to 8.3.50.DATE-git.
5434 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
5436 * aix-thread.c (ptid_cmp): Remove unused variable.
5437 (get_signaled_thread): Likewise.
5438 (store_regs_user_thread): Likewise.
5439 (store_regs_kernel_thread): Likewise.
5440 (fetch_regs_kernel_thread): Remove shadowed variable.
5442 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
5444 * features/riscv/32bit-cpu.xml: Add register numbers.
5445 * features/riscv/32bit-fpu.c: Regenerate.
5446 * features/riscv/32bit-fpu.xml: Add register numbers.
5447 * features/riscv/64bit-cpu.xml: Add register numbers.
5448 * features/riscv/64bit-fpu.c: Regenerate.
5449 * features/riscv/64bit-fpu.xml: Add register numbers.
5451 2019-02-26 Kevin Buettner <kevinb@redhat.com>
5453 * NEWS: Mention two argument form of gdb.Value constructor.
5454 * python/py-value.c (convert_buffer_and_type_to_value): New
5456 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
5457 Add support for handling an optional second argument. Call
5458 convert_buffer_and_type_to_value as appropriate.
5459 * python/python-internal.h (Py_buffer_deleter): New struct.
5460 (Py_buffer_up): New typedef.
5462 2019-02-25 John Baldwin <jhb@FreeBSD.org>
5464 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
5465 instead of releasing ownership.
5467 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
5469 * dwarf2read.c (open_and_init_dwp_file): Call
5470 elf_numsections instead of bfd_count_sections to initialize
5471 dwp_file->num_sections.
5473 2019-02-25 Tom Tromey <tromey@adacore.com>
5475 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
5477 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
5479 * gcore.in: Add '--readnever' option when invoking GDB.
5481 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5483 * MAINTAINERS: Update my email address.
5485 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5487 * build-id.c (build_id_to_debug_bfd_1): New function.
5488 (build_id_to_debug_bfd): Look for separate debug file in
5491 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
5493 * gdbarch.sh: Update the copyright year range that is placed into
5496 2019-02-22 Keith Seitz <keiths@redhat.com>
5499 * linespec.c (create_sals_line_offset): Search for the default
5500 symtab's filename instead of its fullname.
5502 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5504 * NEWS: Update style defaults.
5506 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5508 * main.c (captured_main_1): Disable styling in batch mode.
5510 2019-02-20 Tom Tromey <tom@tromey.com>
5512 * symtab.c (symtab_symbol_info): Fix typos.
5514 2019-02-20 Tom Tromey <tromey@adacore.com>
5516 * findcmd.c (_initialize_mem_search): Use upper case for
5517 metasyntactic variables.
5519 2019-02-20 Alan Hayward <alan.hayward@arm.com>
5521 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5522 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5524 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5526 * top.h (source_file_name): Change to std::string.
5527 * top.c (source_file_name): Likewise.
5528 (command_line_input): Adjust.
5529 * cli/cli-script.c (script_from_file): Adjust.
5531 2019-02-19 Tom Tromey <tromey@adacore.com>
5533 * ravenscar-thread.c
5534 (ravenscar_thread_target::update_thread_list): Don't call
5535 ada_build_task_list.
5536 * ada-lang.h (ada_build_task_list): Don't declare.
5537 * ada-tasks.c (struct ada_tasks_inferior_data)
5538 <task_list_valid_p>: Now bool.
5539 (read_known_tasks, ada_task_list_changed)
5540 (ada_tasks_invalidate_inferior_data): Update.
5541 (read_known_tasks_array): Return bool.
5542 (read_known_tasks_list): Likewise.
5543 (read_known_tasks): Return void.
5544 (ada_build_task_list): Now static.
5546 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5548 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5549 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5551 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5553 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5554 variant for ada_tasks_pspace_data_handle and
5555 ada_tasks_inferior_data_handle.
5556 (ada_tasks_pspace_data_cleanup): New function.
5557 (ada_tasks_inferior_data_cleanup): New function.
5559 2019-02-17 Tom Tromey <tom@tromey.com>
5561 * macrotab.h (macro_source_fullname): Return a std::string.
5562 * macrotab.c (macro_include, check_for_redefinition)
5563 (macro_undef, macro_lookup_definition, foreach_macro)
5564 (foreach_macro_in_scope): Update.
5565 (macro_source_fullname): Return a std::string.
5566 * macrocmd.c (show_pp_source_pos): Update.
5568 2019-02-17 Tom Tromey <tom@tromey.com>
5570 * macrocmd.c (show_pp_source_pos): Style the file names.
5572 2019-02-17 Tom Tromey <tom@tromey.com>
5575 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5577 2019-02-17 Tom Tromey <tom@tromey.com>
5579 * ada-lang.c (user_select_syms): Use filtered printing.
5580 * utils.c (wrap_style): New global.
5581 (desired_style): Remove.
5582 (emit_style_escape): Add stream parameter.
5583 (set_output_style, reset_terminal_style, prompt_for_continue):
5585 (flush_wrap_buffer): Only flush gdb_stdout.
5586 (wrap_here): Set wrap_style.
5587 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5588 treat escape sequences as a character. Change when wrap buffer is
5590 (fputs_styled): Do not set the output style when the default is
5592 * ui-style.h (struct ui_file_style) <is_default>: New method.
5593 * source.c (print_source_lines_base): Emit escape sequences in one
5596 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5598 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5599 integers and enumeration types.
5601 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5603 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5604 instead of lookup_symbol_in_language
5605 (do_exact_match): New function.
5606 (ada_get_symbol_name_matcher): Return do_exact_match when
5607 doing a verbatim match.
5609 2019-02-15 Tom Tromey <tromey@adacore.com>
5611 * ravenscar-thread.c (ravenscar_thread_target::resume)
5612 (ravenscar_thread_target::wait): Special case wildcard requests.
5614 2019-02-15 Tom Tromey <tromey@adacore.com>
5616 * ravenscar-thread.c (base_ptid): Remove.
5617 (struct ravenscar_thread_target) <close>: New method.
5618 <m_base_ptid>: New member.
5619 <update_inferior_ptid, active_task, task_is_currently_active,
5620 runtime_initialized>: Declare methods.
5621 <ravenscar_thread_target>: Add constructor.
5622 (ravenscar_thread_target::task_is_currently_active)
5623 (ravenscar_thread_target::update_inferior_ptid)
5624 (ravenscar_runtime_initialized): Rename. Now methods.
5625 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5626 (ravenscar_thread_target::update_thread_list): Update.
5627 (ravenscar_thread_target::active_task): Now method.
5628 (ravenscar_thread_target::store_registers)
5629 (ravenscar_thread_target::prepare_to_store)
5630 (ravenscar_thread_target::prepare_to_store)
5631 (ravenscar_thread_target::mourn_inferior): Update.
5632 (ravenscar_inferior_created): Use "new" to create target.
5633 (ravenscar_thread_target::get_ada_task_ptid): Update.
5634 (_initialize_ravenscar): Don't initialize base_ptid.
5635 (ravenscar_ops): Remove global.
5637 2019-02-15 Tom Tromey <tromey@adacore.com>
5639 * target.h (push_target): Declare new overload.
5640 * target.c (push_target): New overload, taking an rvalue reference.
5641 * remote.c (remote_target::open_1): Use push_target overload.
5642 * corelow.c (core_target_open): Use push_target overload.
5644 2019-02-15 Tom Tromey <tromey@adacore.com>
5646 * ravenscar-thread.c (is_ravenscar_task)
5647 (ravenscar_task_is_currently_active): Return bool.
5648 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5649 (_initialize_ravenscar): Remove "(void)".
5650 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5653 2019-02-15 Tom Tromey <tromey@adacore.com>
5655 * ravenscar-thread.c (ravenscar_runtime_initializer)
5656 (has_ravenscar_runtime, get_running_thread_id)
5657 (ravenscar_thread_target::resume): Fix indentation.
5659 2019-02-15 Tom Tromey <tromey@adacore.com>
5661 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5662 from ravenscar_arch_ops.
5663 (sparc_ravenscar_ops::fetch_registers)
5664 (sparc_ravenscar_ops::store_registers): Now methods.
5665 (sparc_ravenscar_prepare_to_store): Remove.
5666 (sparc_ravenscar_ops): Redefine.
5667 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5668 methods and destructor. Remove members.
5669 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5670 (ravenscar_thread_target::store_registers)
5671 (ravenscar_thread_target::prepare_to_store): Update.
5672 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5674 (struct ppc_ravenscar_powerpc_ops): Derive from
5676 (ppc_ravenscar_powerpc_ops::fetch_registers)
5677 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5678 (ppc_ravenscar_powerpc_ops): Redefine.
5679 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5680 (ppc_ravenscar_e500_ops::fetch_registers)
5681 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5682 (ppc_ravenscar_e500_ops): Redefine.
5683 * aarch64-ravenscar-thread.c
5684 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5685 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5686 (aarch64_ravenscar_fetch_registers)
5687 (aarch64_ravenscar_store_registers): Now methods.
5688 (aarch64_ravenscar_ops): Redefine.
5690 2019-02-15 Tom Tromey <tromey@adacore.com>
5692 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5693 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5694 (ravenscar_thread_target::stopped_by_watchpoint)
5695 (ravenscar_thread_target::stopped_data_address)
5696 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5698 2019-02-15 Tom Tromey <tromey@adacore.com>
5700 * ravenscar-thread.c: Fix some typos.
5702 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5703 Tom Tromey <tromey@adacore.com>
5705 * ada-lang.c (ada_exception_sal): Change addr_string to a
5707 (create_ada_exception_catchpoint): Update.
5709 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5710 Tom Tromey <tromey@adacore.com>
5712 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5713 (bp_location_ops): Remove.
5714 (base_breakpoint_allocate_location): Update.
5715 (free_bp_location): Update.
5716 * ada-lang.c (class ada_catchpoint_location)
5717 <ada_catchpoint_location>: Remove ops parameter.
5718 (ada_catchpoint_location_dtor): Remove.
5719 (ada_catchpoint_location_ops): Remove.
5720 (allocate_location_exception): Update.
5721 * breakpoint.h (struct bp_location_ops): Remove.
5722 (class bp_location) <bp_location>: Remove bp_location_ops
5724 <~bp_location>: Add destructor.
5727 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5728 Pedro Alves <palves@redhat.com>
5730 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5733 2019-02-14 David Michael <fedora.dm0@gmail.com>
5734 Samuel Thibault <samuel.thibault@gnu.org>
5735 Thomas Schwinge <thomas@codesourcery.com>
5737 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5738 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5740 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5742 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5743 (check_empty): Use "const char *".
5745 * gnu-nat.c (gnu_nat_target::detach): Instead of
5746 'detach_inferior (pid)' call
5747 'detach_inferior (find_inferior_pid (pid))'.
5749 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5750 'nat/fork-inferior.o'.
5751 * gnu-nat.c: #include "nat/fork-inferior.h".
5753 * gnu-nat.c (gnu_nat_target::detach): Instead of
5754 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5755 * gnu-nat.h: #include "inf-child.h".
5756 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5757 'i386_gnu_nat_target::fetch_registers'.
5758 (gnu_store_registers): Rename/move to
5759 'i386_gnu_nat_target::store_registers'.
5761 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5762 * gnu-nat.h (mach_thread_info): New function.
5763 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5765 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5767 2019-02-14 Frederic Konrad <konrad@adacore.com>
5769 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5771 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5773 * windows-nat.c (windows_add_thread): Add new parameter
5774 "main_thread_p" with default value set to false. Update
5775 function documentation as well as all callers.
5776 (windows_delete_thread): Likewise.
5777 (fake_create_process): Update call to windows_add_thread.
5778 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5779 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5780 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5781 call to windows_delete_thread.
5783 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5785 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5787 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5789 * symfile.c (find_separate_debug_file): Use canonical path of
5790 sysroot with child_path instead of gdb_sysroot if it is valid.
5792 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5794 * symfile.c (find_separate_debug_file): Use child_path to
5795 determine if an object file is under a sysroot.
5797 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5799 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5800 unittests/child-path-selftests.c.
5801 * common/pathstuff.c (child_path): New function.
5802 * common/pathstuff.h (child_path): New prototype.
5803 * unittests/child-path-selftests.c: New file.
5805 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5807 * symfile.c (find_separate_debug_file): Look for separate debug
5808 files in debug directories under the sysroot.
5810 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5812 * symtab.h (struct minimal_symbol data_p): New const method.
5813 (struct minimal_symbol text_p): Likewise.
5814 * symtab.c (output_source_filename): Use file name style
5816 (print_symbol_info): Likewise.
5817 (print_msymbol_info): Use address style to print addresses.
5818 Use function name style to print executable text symbols.
5819 (expand_symtab_containing_pc): Use data_p.
5820 (find_pc_sect_compunit_symtab): Likewise.
5822 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5824 * breakpoint.c (describe_other_breakpoints): Use address style
5826 (say_where): Likewise.
5828 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5830 * ada-typeprint.c (print_func_type): Print function name
5831 style to print function name.
5832 * c-typeprint.c (c_print_type_1): Likewise.
5834 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5836 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5839 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5841 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5844 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5846 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5847 TYPE_CODE_REF types.
5849 2019-02-08 Jim Wilson <jimw@sifive.com>
5851 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5852 (riscv_linux_fregset): New.
5853 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5855 2019-02-07 Tom Tromey <tom@tromey.com>
5857 * thread.c (thread_cancel_execution_command): Update.
5858 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5860 (struct thread_fsm_ops): Remove.
5861 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5862 (thread_fsm_should_stop, thread_fsm_return_value)
5863 (thread_fsm_set_finished, thread_fsm_finished_p)
5864 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5866 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5867 * infrun.c (clear_proceed_status_thread)
5868 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5869 (print_stop_event): Update.
5870 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5872 (step_command_fsm_ops): Remove.
5873 (new_step_command_fsm): Remove.
5875 (step_command_fsm::should_stop): Rename from
5876 step_command_fsm_should_stop.
5877 (step_command_fsm::clean_up): Rename from
5878 step_command_fsm_clean_up.
5879 (step_command_fsm::do_async_reply_reason): Rename from
5880 step_command_fsm_async_reply_reason.
5881 (struct until_next_fsm): Inherit from thread_fsm. Add
5883 (until_next_fsm_ops): Remove.
5884 (new_until_next_fsm): Remove.
5885 (until_next_fsm::should_stop): Rename from
5886 until_next_fsm_should_stop.
5887 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5888 (until_next_fsm::do_async_reply_reason): Rename from
5889 until_next_fsm_async_reply_reason.
5890 (struct finish_command_fsm): Inherit from thread_fsm. Add
5891 constructor. Change type of breakpoint.
5892 (finish_command_fsm_ops): Remove.
5893 (new_finish_command_fsm): Remove.
5894 (finish_command_fsm::should_stop): Rename from
5895 finish_command_fsm_should_stop.
5896 (finish_command_fsm::clean_up): Rename from
5897 finish_command_fsm_clean_up.
5898 (finish_command_fsm::return_value): Rename from
5899 finish_command_fsm_return_value.
5900 (finish_command_fsm::do_async_reply_reason): Rename from
5901 finish_command_fsm_async_reply_reason.
5902 (finish_command): Update.
5903 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5905 (call_thread_fsm_ops): Remove.
5906 (call_thread_fsm::call_thread_fsm): Rename from
5907 new_call_thread_fsm.
5908 (call_thread_fsm::should_stop): Rename from
5909 call_thread_fsm_should_stop.
5910 (call_thread_fsm::should_notify_stop): Rename from
5911 call_thread_fsm_should_notify_stop.
5912 (run_inferior_call, call_function_by_hand_dummy): Update.
5913 * cli/cli-interp.c (should_print_stop_to_console): Update.
5914 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5915 Add constructor. Change type of location_breakpoint,
5917 (until_break_fsm_ops): Remove.
5918 (new_until_break_fsm): Remove.
5919 (until_break_fsm::should_stop): Rename from
5920 until_break_fsm_should_stop.
5921 (until_break_fsm::clean_up): Rename from
5922 until_break_fsm_clean_up.
5923 (until_break_fsm::do_async_reply_reason): Rename from
5924 until_break_fsm_async_reply_reason.
5925 (until_break_command): Update.
5926 * thread-fsm.c: Remove.
5927 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5929 2019-02-07 Tom Tromey <tom@tromey.com>
5931 * yy-remap.h: Add include guard.
5932 * xtensa-tdep.h: Add include guard.
5933 * xcoffread.h: Rename include guard.
5934 * varobj-iter.h: Add include guard.
5935 * tui/tui.h: Rename include guard.
5936 * tui/tui-winsource.h: Rename include guard.
5937 * tui/tui-wingeneral.h: Rename include guard.
5938 * tui/tui-windata.h: Rename include guard.
5939 * tui/tui-win.h: Rename include guard.
5940 * tui/tui-stack.h: Rename include guard.
5941 * tui/tui-source.h: Rename include guard.
5942 * tui/tui-regs.h: Rename include guard.
5943 * tui/tui-out.h: Rename include guard.
5944 * tui/tui-layout.h: Rename include guard.
5945 * tui/tui-io.h: Rename include guard.
5946 * tui/tui-hooks.h: Rename include guard.
5947 * tui/tui-file.h: Rename include guard.
5948 * tui/tui-disasm.h: Rename include guard.
5949 * tui/tui-data.h: Rename include guard.
5950 * tui/tui-command.h: Rename include guard.
5951 * tic6x-tdep.h: Add include guard.
5952 * target/waitstatus.h: Rename include guard.
5953 * target/wait.h: Rename include guard.
5954 * target/target.h: Rename include guard.
5955 * target/resume.h: Rename include guard.
5956 * target-float.h: Rename include guard.
5957 * stabsread.h: Add include guard.
5958 * rs6000-tdep.h: Add include guard.
5959 * riscv-fbsd-tdep.h: Add include guard.
5960 * regformats/regdef.h: Rename include guard.
5961 * record.h: Rename include guard.
5962 * python/python.h: Rename include guard.
5963 * python/python-internal.h: Rename include guard.
5964 * python/py-stopevent.h: Rename include guard.
5965 * python/py-ref.h: Rename include guard.
5966 * python/py-record.h: Rename include guard.
5967 * python/py-record-full.h: Rename include guard.
5968 * python/py-record-btrace.h: Rename include guard.
5969 * python/py-instruction.h: Rename include guard.
5970 * python/py-events.h: Rename include guard.
5971 * python/py-event.h: Rename include guard.
5972 * procfs.h: Add include guard.
5973 * proc-utils.h: Add include guard.
5974 * p-lang.h: Add include guard.
5975 * or1k-tdep.h: Rename include guard.
5976 * observable.h: Rename include guard.
5977 * nto-tdep.h: Rename include guard.
5978 * nat/x86-linux.h: Rename include guard.
5979 * nat/x86-linux-dregs.h: Rename include guard.
5980 * nat/x86-gcc-cpuid.h: Add include guard.
5981 * nat/x86-dregs.h: Rename include guard.
5982 * nat/x86-cpuid.h: Rename include guard.
5983 * nat/ppc-linux.h: Rename include guard.
5984 * nat/mips-linux-watch.h: Rename include guard.
5985 * nat/linux-waitpid.h: Rename include guard.
5986 * nat/linux-ptrace.h: Rename include guard.
5987 * nat/linux-procfs.h: Rename include guard.
5988 * nat/linux-osdata.h: Rename include guard.
5989 * nat/linux-nat.h: Rename include guard.
5990 * nat/linux-namespaces.h: Rename include guard.
5991 * nat/linux-btrace.h: Rename include guard.
5992 * nat/glibc_thread_db.h: Rename include guard.
5993 * nat/gdb_thread_db.h: Rename include guard.
5994 * nat/gdb_ptrace.h: Rename include guard.
5995 * nat/fork-inferior.h: Rename include guard.
5996 * nat/amd64-linux-siginfo.h: Rename include guard.
5997 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5998 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5999 * nat/aarch64-linux.h: Rename include guard.
6000 * nat/aarch64-linux-hw-point.h: Rename include guard.
6001 * mn10300-tdep.h: Add include guard.
6002 * mips-linux-tdep.h: Add include guard.
6003 * mi/mi-parse.h: Rename include guard.
6004 * mi/mi-out.h: Rename include guard.
6005 * mi/mi-main.h: Rename include guard.
6006 * mi/mi-interp.h: Rename include guard.
6007 * mi/mi-getopt.h: Rename include guard.
6008 * mi/mi-console.h: Rename include guard.
6009 * mi/mi-common.h: Rename include guard.
6010 * mi/mi-cmds.h: Rename include guard.
6011 * mi/mi-cmd-break.h: Rename include guard.
6012 * m2-lang.h: Add include guard.
6013 * location.h: Rename include guard.
6014 * linux-record.h: Rename include guard.
6015 * linux-nat.h: Add include guard.
6016 * linux-fork.h: Add include guard.
6017 * i386-darwin-tdep.h: Rename include guard.
6018 * hppa-linux-offsets.h: Add include guard.
6019 * guile/guile.h: Rename include guard.
6020 * guile/guile-internal.h: Rename include guard.
6021 * gnu-nat.h: Rename include guard.
6022 * gdb-stabs.h: Rename include guard.
6023 * frv-tdep.h: Add include guard.
6024 * f-lang.h: Add include guard.
6025 * event-loop.h: Add include guard.
6026 * darwin-nat.h: Rename include guard.
6027 * cp-abi.h: Rename include guard.
6028 * config/sparc/nm-sol2.h: Rename include guard.
6029 * config/nm-nto.h: Rename include guard.
6030 * config/nm-linux.h: Add include guard.
6031 * config/i386/nm-i386gnu.h: Rename include guard.
6032 * config/djgpp/nl_types.h: Rename include guard.
6033 * config/djgpp/langinfo.h: Rename include guard.
6034 * compile/gcc-cp-plugin.h: Add include guard.
6035 * compile/gcc-c-plugin.h: Add include guard.
6036 * compile/compile.h: Rename include guard.
6037 * compile/compile-object-run.h: Rename include guard.
6038 * compile/compile-object-load.h: Rename include guard.
6039 * compile/compile-internal.h: Rename include guard.
6040 * compile/compile-cplus.h: Rename include guard.
6041 * compile/compile-c.h: Rename include guard.
6042 * common/xml-utils.h: Rename include guard.
6043 * common/x86-xstate.h: Rename include guard.
6044 * common/version.h: Rename include guard.
6045 * common/vec.h: Rename include guard.
6046 * common/tdesc.h: Rename include guard.
6047 * common/selftest.h: Rename include guard.
6048 * common/scoped_restore.h: Rename include guard.
6049 * common/scoped_mmap.h: Rename include guard.
6050 * common/scoped_fd.h: Rename include guard.
6051 * common/safe-iterator.h: Rename include guard.
6052 * common/run-time-clock.h: Rename include guard.
6053 * common/refcounted-object.h: Rename include guard.
6054 * common/queue.h: Rename include guard.
6055 * common/ptid.h: Rename include guard.
6056 * common/print-utils.h: Rename include guard.
6057 * common/preprocessor.h: Rename include guard.
6058 * common/pathstuff.h: Rename include guard.
6059 * common/observable.h: Rename include guard.
6060 * common/netstuff.h: Rename include guard.
6061 * common/job-control.h: Rename include guard.
6062 * common/host-defs.h: Rename include guard.
6063 * common/gdb_wait.h: Rename include guard.
6064 * common/gdb_vecs.h: Rename include guard.
6065 * common/gdb_unlinker.h: Rename include guard.
6066 * common/gdb_unique_ptr.h: Rename include guard.
6067 * common/gdb_tilde_expand.h: Rename include guard.
6068 * common/gdb_sys_time.h: Rename include guard.
6069 * common/gdb_string_view.h: Rename include guard.
6070 * common/gdb_splay_tree.h: Rename include guard.
6071 * common/gdb_setjmp.h: Rename include guard.
6072 * common/gdb_ref_ptr.h: Rename include guard.
6073 * common/gdb_optional.h: Rename include guard.
6074 * common/gdb_locale.h: Rename include guard.
6075 * common/gdb_assert.h: Rename include guard.
6076 * common/filtered-iterator.h: Rename include guard.
6077 * common/filestuff.h: Rename include guard.
6078 * common/fileio.h: Rename include guard.
6079 * common/environ.h: Rename include guard.
6080 * common/common-utils.h: Rename include guard.
6081 * common/common-types.h: Rename include guard.
6082 * common/common-regcache.h: Rename include guard.
6083 * common/common-inferior.h: Rename include guard.
6084 * common/common-gdbthread.h: Rename include guard.
6085 * common/common-exceptions.h: Rename include guard.
6086 * common/common-defs.h: Rename include guard.
6087 * common/common-debug.h: Rename include guard.
6088 * common/cleanups.h: Rename include guard.
6089 * common/buffer.h: Rename include guard.
6090 * common/btrace-common.h: Rename include guard.
6091 * common/break-common.h: Rename include guard.
6092 * cli/cli-utils.h: Rename include guard.
6093 * cli/cli-style.h: Rename include guard.
6094 * cli/cli-setshow.h: Rename include guard.
6095 * cli/cli-script.h: Rename include guard.
6096 * cli/cli-interp.h: Rename include guard.
6097 * cli/cli-decode.h: Rename include guard.
6098 * cli/cli-cmds.h: Rename include guard.
6099 * charset-list.h: Add include guard.
6100 * buildsym-legacy.h: Rename include guard.
6101 * bfin-tdep.h: Add include guard.
6102 * ax.h: Rename include guard.
6103 * arm-linux-tdep.h: Add include guard.
6104 * arm-fbsd-tdep.h: Add include guard.
6105 * arch/xtensa.h: Rename include guard.
6106 * arch/tic6x.h: Add include guard.
6107 * arch/i386.h: Add include guard.
6108 * arch/arm.h: Rename include guard.
6109 * arch/arm-linux.h: Rename include guard.
6110 * arch/arm-get-next-pcs.h: Rename include guard.
6111 * arch/amd64.h: Add include guard.
6112 * arch/aarch64-insn.h: Rename include guard.
6113 * arch-utils.h: Rename include guard.
6114 * annotate.h: Add include guard.
6115 * amd64-darwin-tdep.h: Rename include guard.
6116 * aarch64-linux-tdep.h: Add include guard.
6117 * aarch64-fbsd-tdep.h: Add include guard.
6118 * aarch32-linux-nat.h: Add include guard.
6120 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6122 * macrotab.c (macro_define_internal): New function that
6123 factorizes macro_define_object_internal and macro_define_function
6125 (macro_define_object_internal): Use macro_define_internal.
6126 (macro_define_function): Likewise.
6128 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6130 * macrocmd.c (extract_identifier): Return
6131 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
6134 2019-02-06 John Baldwin <jhb@FreeBSD.org>
6136 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
6138 2019-02-05 Tom Tromey <tom@tromey.com>
6140 * target.c (target_stack::unpush): Move assertion earlier.
6142 2019-01-30 Tom Tromey <tom@tromey.com>
6145 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
6146 (gdbpy_parse_and_eval): Likewise.
6147 * python/python-internal.h (gdbpy_allow_threads): New class.
6149 2019-01-28 John Baldwin <jhb@FreeBSD.org>
6151 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
6152 (aarch64_fbsd_fpregmap): Move earlier.
6153 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
6154 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6155 instead of individual calls to trad_frame_set_reg_addr.
6156 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
6158 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
6159 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6160 instead of individual calls to trad_frame_set_reg_addr.
6162 2019-01-28 Alan Hayward <alan.hayward@arm.com>
6164 * CONTRIBUTE: Replace contribution list with wiki link.
6166 2019-01-25 Tom Tromey <tom@tromey.com>
6168 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
6170 2019-01-25 Tom Tromey <tom@tromey.com>
6172 * xtensa-linux-nat.c: Fix common/ includes.
6173 * xml-support.h: Fix common/ includes.
6174 * xml-support.c: Fix common/ includes.
6175 * x86-linux-nat.c: Fix common/ includes.
6176 * windows-nat.c: Fix common/ includes.
6177 * varobj.h: Fix common/ includes.
6178 * varobj.c: Fix common/ includes.
6179 * value.c: Fix common/ includes.
6180 * valops.c: Fix common/ includes.
6181 * utils.c: Fix common/ includes.
6182 * unittests/xml-utils-selftests.c: Fix common/ includes.
6183 * unittests/utils-selftests.c: Fix common/ includes.
6184 * unittests/unpack-selftests.c: Fix common/ includes.
6185 * unittests/tracepoint-selftests.c: Fix common/ includes.
6186 * unittests/style-selftests.c: Fix common/ includes.
6187 * unittests/string_view-selftests.c: Fix common/ includes.
6188 * unittests/scoped_restore-selftests.c: Fix common/ includes.
6189 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
6190 * unittests/scoped_fd-selftests.c: Fix common/ includes.
6191 * unittests/rsp-low-selftests.c: Fix common/ includes.
6192 * unittests/parse-connection-spec-selftests.c: Fix common/
6194 * unittests/optional-selftests.c: Fix common/ includes.
6195 * unittests/offset-type-selftests.c: Fix common/ includes.
6196 * unittests/observable-selftests.c: Fix common/ includes.
6197 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
6198 * unittests/memrange-selftests.c: Fix common/ includes.
6199 * unittests/memory-map-selftests.c: Fix common/ includes.
6200 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
6201 * unittests/function-view-selftests.c: Fix common/ includes.
6202 * unittests/environ-selftests.c: Fix common/ includes.
6203 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
6204 * unittests/common-utils-selftests.c: Fix common/ includes.
6205 * unittests/cli-utils-selftests.c: Fix common/ includes.
6206 * unittests/array-view-selftests.c: Fix common/ includes.
6207 * ui-file.c: Fix common/ includes.
6208 * tui/tui-io.c: Fix common/ includes.
6209 * tracepoint.h: Fix common/ includes.
6210 * tracepoint.c: Fix common/ includes.
6211 * tracefile-tfile.c: Fix common/ includes.
6212 * top.h: Fix common/ includes.
6213 * top.c: Fix common/ includes.
6214 * thread.c: Fix common/ includes.
6215 * target/waitstatus.h: Fix common/ includes.
6216 * target/waitstatus.c: Fix common/ includes.
6217 * target.h: Fix common/ includes.
6218 * target.c: Fix common/ includes.
6219 * target-memory.c: Fix common/ includes.
6220 * target-descriptions.c: Fix common/ includes.
6221 * symtab.h: Fix common/ includes.
6222 * symfile.c: Fix common/ includes.
6223 * stap-probe.c: Fix common/ includes.
6224 * spu-linux-nat.c: Fix common/ includes.
6225 * sparc-nat.c: Fix common/ includes.
6226 * source.c: Fix common/ includes.
6227 * solib.c: Fix common/ includes.
6228 * solib-target.c: Fix common/ includes.
6229 * ser-unix.c: Fix common/ includes.
6230 * ser-tcp.c: Fix common/ includes.
6231 * ser-pipe.c: Fix common/ includes.
6232 * ser-base.c: Fix common/ includes.
6233 * selftest-arch.c: Fix common/ includes.
6234 * s12z-tdep.c: Fix common/ includes.
6235 * rust-exp.y: Fix common/ includes.
6236 * rs6000-aix-tdep.c: Fix common/ includes.
6237 * riscv-tdep.c: Fix common/ includes.
6238 * remote.c: Fix common/ includes.
6239 * remote-notif.h: Fix common/ includes.
6240 * remote-fileio.h: Fix common/ includes.
6241 * remote-fileio.c: Fix common/ includes.
6242 * regcache.h: Fix common/ includes.
6243 * regcache.c: Fix common/ includes.
6244 * record-btrace.c: Fix common/ includes.
6245 * python/python.c: Fix common/ includes.
6246 * python/py-type.c: Fix common/ includes.
6247 * python/py-inferior.c: Fix common/ includes.
6248 * progspace.h: Fix common/ includes.
6249 * producer.c: Fix common/ includes.
6250 * procfs.c: Fix common/ includes.
6251 * proc-api.c: Fix common/ includes.
6252 * printcmd.c: Fix common/ includes.
6253 * ppc-linux-nat.c: Fix common/ includes.
6254 * parser-defs.h: Fix common/ includes.
6255 * osdata.c: Fix common/ includes.
6256 * obsd-nat.c: Fix common/ includes.
6257 * nat/x86-linux.c: Fix common/ includes.
6258 * nat/x86-linux-dregs.c: Fix common/ includes.
6259 * nat/x86-dregs.h: Fix common/ includes.
6260 * nat/x86-dregs.c: Fix common/ includes.
6261 * nat/ppc-linux.c: Fix common/ includes.
6262 * nat/mips-linux-watch.h: Fix common/ includes.
6263 * nat/mips-linux-watch.c: Fix common/ includes.
6264 * nat/linux-waitpid.c: Fix common/ includes.
6265 * nat/linux-ptrace.h: Fix common/ includes.
6266 * nat/linux-ptrace.c: Fix common/ includes.
6267 * nat/linux-procfs.c: Fix common/ includes.
6268 * nat/linux-personality.c: Fix common/ includes.
6269 * nat/linux-osdata.c: Fix common/ includes.
6270 * nat/linux-namespaces.c: Fix common/ includes.
6271 * nat/linux-btrace.h: Fix common/ includes.
6272 * nat/linux-btrace.c: Fix common/ includes.
6273 * nat/fork-inferior.c: Fix common/ includes.
6274 * nat/amd64-linux-siginfo.c: Fix common/ includes.
6275 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
6276 * nat/aarch64-linux.c: Fix common/ includes.
6277 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
6278 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
6279 * namespace.h: Fix common/ includes.
6280 * mips-linux-tdep.c: Fix common/ includes.
6281 * minsyms.c: Fix common/ includes.
6282 * mi/mi-parse.h: Fix common/ includes.
6283 * mi/mi-main.c: Fix common/ includes.
6284 * mi/mi-cmd-env.c: Fix common/ includes.
6285 * memrange.h: Fix common/ includes.
6286 * memattr.c: Fix common/ includes.
6287 * maint.h: Fix common/ includes.
6288 * maint.c: Fix common/ includes.
6289 * main.c: Fix common/ includes.
6290 * machoread.c: Fix common/ includes.
6291 * location.c: Fix common/ includes.
6292 * linux-thread-db.c: Fix common/ includes.
6293 * linux-nat.c: Fix common/ includes.
6294 * linux-fork.c: Fix common/ includes.
6295 * inline-frame.c: Fix common/ includes.
6296 * infrun.c: Fix common/ includes.
6297 * inflow.c: Fix common/ includes.
6298 * inferior.h: Fix common/ includes.
6299 * inferior.c: Fix common/ includes.
6300 * infcmd.c: Fix common/ includes.
6301 * inf-ptrace.c: Fix common/ includes.
6302 * inf-child.c: Fix common/ includes.
6303 * ia64-linux-nat.c: Fix common/ includes.
6304 * i387-tdep.c: Fix common/ includes.
6305 * i386-tdep.c: Fix common/ includes.
6306 * i386-linux-tdep.c: Fix common/ includes.
6307 * i386-linux-nat.c: Fix common/ includes.
6308 * i386-go32-tdep.c: Fix common/ includes.
6309 * i386-fbsd-tdep.c: Fix common/ includes.
6310 * i386-fbsd-nat.c: Fix common/ includes.
6311 * guile/scm-type.c: Fix common/ includes.
6312 * guile/guile.c: Fix common/ includes.
6313 * go32-nat.c: Fix common/ includes.
6314 * gnu-nat.c: Fix common/ includes.
6315 * gdbthread.h: Fix common/ includes.
6316 * gdbarch-selftests.c: Fix common/ includes.
6317 * gdb_usleep.c: Fix common/ includes.
6318 * gdb_select.h: Fix common/ includes.
6319 * gdb_bfd.c: Fix common/ includes.
6320 * gcore.c: Fix common/ includes.
6321 * fork-child.c: Fix common/ includes.
6322 * findvar.c: Fix common/ includes.
6323 * fbsd-nat.c: Fix common/ includes.
6324 * event-top.c: Fix common/ includes.
6325 * event-loop.c: Fix common/ includes.
6326 * dwarf2read.c: Fix common/ includes.
6327 * dwarf2loc.c: Fix common/ includes.
6328 * dwarf2-frame.c: Fix common/ includes.
6329 * dwarf-index-cache.c: Fix common/ includes.
6330 * dtrace-probe.c: Fix common/ includes.
6331 * disasm-selftests.c: Fix common/ includes.
6332 * defs.h: Fix common/ includes.
6333 * csky-tdep.c: Fix common/ includes.
6334 * cp-valprint.c: Fix common/ includes.
6335 * cp-support.h: Fix common/ includes.
6336 * cp-support.c: Fix common/ includes.
6337 * corelow.c: Fix common/ includes.
6338 * completer.h: Fix common/ includes.
6339 * completer.c: Fix common/ includes.
6340 * compile/compile.c: Fix common/ includes.
6341 * compile/compile-loc2c.c: Fix common/ includes.
6342 * compile/compile-cplus-types.c: Fix common/ includes.
6343 * compile/compile-cplus-symbols.c: Fix common/ includes.
6344 * command.h: Fix common/ includes.
6345 * cli/cli-dump.c: Fix common/ includes.
6346 * cli/cli-cmds.c: Fix common/ includes.
6347 * charset.c: Fix common/ includes.
6348 * build-id.c: Fix common/ includes.
6349 * btrace.h: Fix common/ includes.
6350 * btrace.c: Fix common/ includes.
6351 * breakpoint.h: Fix common/ includes.
6352 * breakpoint.c: Fix common/ includes.
6354 (enum agent_op): Fix common/ includes.
6355 * ax-general.c (struct aop_map): Fix common/ includes.
6356 * ax-gdb.c: Fix common/ includes.
6357 * auxv.c: Fix common/ includes.
6358 * auto-load.c: Fix common/ includes.
6359 * arm-tdep.c: Fix common/ includes.
6360 * arch/riscv.c: Fix common/ includes.
6361 * arch/ppc-linux-common.c: Fix common/ includes.
6362 * arch/i386.c: Fix common/ includes.
6363 * arch/arm.c: Fix common/ includes.
6364 * arch/arm-linux.c: Fix common/ includes.
6365 * arch/arm-get-next-pcs.c: Fix common/ includes.
6366 * arch/amd64.c: Fix common/ includes.
6367 * arch/aarch64.c: Fix common/ includes.
6368 * arch/aarch64-insn.c: Fix common/ includes.
6369 * arch-utils.c: Fix common/ includes.
6370 * amd64-windows-tdep.c: Fix common/ includes.
6371 * amd64-tdep.c: Fix common/ includes.
6372 * amd64-sol2-tdep.c: Fix common/ includes.
6373 * amd64-obsd-tdep.c: Fix common/ includes.
6374 * amd64-nbsd-tdep.c: Fix common/ includes.
6375 * amd64-linux-tdep.c: Fix common/ includes.
6376 * amd64-linux-nat.c: Fix common/ includes.
6377 * amd64-fbsd-tdep.c: Fix common/ includes.
6378 * amd64-fbsd-nat.c: Fix common/ includes.
6379 * amd64-dicos-tdep.c: Fix common/ includes.
6380 * amd64-darwin-tdep.c: Fix common/ includes.
6381 * agent.c: Fix common/ includes.
6382 * ada-lang.h: Fix common/ includes.
6383 * ada-lang.c: Fix common/ includes.
6384 * aarch64-tdep.c: Fix common/ includes.
6386 2019-01-25 Tom Tromey <tom@tromey.com>
6388 * common/create-version.sh: Use common/version.h.
6390 2019-01-24 Pedro Alves <palves@redhat.com>
6392 * infrun.c (signal_stop, signal_print, signal_program)
6393 (signal_catch, signal_pass): Now arrays instead of pointers.
6394 (update_signals_program_target, do_target_resume)
6395 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
6396 * linux-nat.c (linux_nat_target::pass_signals)
6397 (linux_nat_target::create_inferior, linux_nat_target::attach):
6399 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
6400 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
6401 * procfs.c (procfs_target::pass_signals): Adjust.
6402 * record-full.c (record_full_target::resume): Adjust.
6403 * remote.c (remote_target::pass_signals)
6404 (remote_target::program_signals): Adjust.
6405 * target-debug.h (target_debug_print_signals): Now takes a
6406 gdb::array_view as parameter. Adjust.
6407 * target.h (target_ops) <pass_signals, program_signals>: Replace
6408 pointer and length parameters with gdb::array_view.
6409 (target_pass_signals, target_program_signals): Likewise.
6410 * target-delegates.c: Regenerate.
6412 2019-01-24 Pedro Alves <palves@redhat.com>
6414 * common/forward-scope-exit.h
6415 (forward_scope_exit::forward_scope_exit): Pass arguments to
6416 m_bind_function directly, instead of creating a std::bind and
6419 2019-01-24 Alan Hayward <alan.hayward@arm.com>
6421 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6423 (pass_in_v_vfp_candidate): Likewise.
6425 2019-01-23 Tom Tromey <tom@tromey.com>
6426 Pedro Alves <palves@redhat.com>
6428 * regcache.c (class regcache_invalidator): Remove.
6429 (regcache::raw_write): Use make_scope_exit.
6431 2019-01-23 Tom Tromey <tom@tromey.com>
6433 * ui-out.h (class ui_out_emit_type): Update comment.
6435 2019-01-23 Tom Tromey <tom@tromey.com>
6437 * infrun.c (fetch_inferior_event): Update comment.
6439 2019-01-23 Tom Tromey <tom@tromey.com>
6440 Pedro Alves <palves@redhat.com>
6442 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
6444 (fetch_inferior_event): Use SCOPE_EXIT.
6447 2019-01-23 Tom Tromey <tom@tromey.com>
6448 Pedro Alves <palves@redhat.com>
6450 * infrun.c (disable_thread_events): Delete.
6451 (stop_all_threads): Use SCOPE_EXIT.
6453 2019-01-23 Tom Tromey <tom@tromey.com>
6454 Pedro Alves <palves@redhat.com>
6456 * symfile.c: Include forward-scope-exit.h.
6457 (clear_symtab_users_cleanup): Replace forward declaration with
6458 a FORWARD_SCOPE_EXIT.
6459 (syms_from_objfile_1): Use the forward_scope_exit and
6460 gdb::optional instead of cleanup_function.
6461 (reread_symbols): Use the forward_scope_exit instead of
6463 (clear_symtab_users_cleanup): Remove function.
6465 2019-01-23 Tom Tromey <tom@tromey.com>
6466 Pedro Alves <palves@redhat.com>
6468 * linux-nat.c: Include scope-exit.h.
6469 (cleanup_target_stop): Remove.
6470 (linux_nat_target::static_tracepoint_markers_by_strid): Use
6473 2019-01-23 Tom Tromey <tom@tromey.com>
6474 Pedro Alves <palves@redhat.com>
6476 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
6477 (call_function_by_hand_dummy): Use SCOPE_EXIT.
6479 2019-01-23 Tom Tromey <tom@tromey.com>
6480 Andrew Burgess <andrew.burgess@embecosm.com>
6481 Pedro Alves <palves@redhat.com>
6483 * infrun.c (fetch_inferior_event): Use scope_exit.
6484 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
6485 * top.c (execute_command): Use scope_exit.
6486 * breakpoint.c (bpstat_do_actions): Use scope_exit.
6487 * utils.c (do_bpstat_clear_actions_cleanup)
6488 (make_bpstat_clear_actions_cleanup): Remove.
6490 2019-01-23 Tom Tromey <tom@tromey.com>
6491 Pedro Alves <palves@redhat.com>
6493 * infrun.c: Include "common/scope-exit.h"
6494 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
6495 (wait_for_inferior): Use SCOPE_EXIT.
6496 (fetch_inferior_event): Use scope_exit.
6498 2019-01-23 Tom Tromey <tom@tromey.com>
6499 Pedro Alves <palves@redhat.com>
6501 * breakpoint.c (create_breakpoint): Remove cleanup.
6503 2019-01-23 Tom Tromey <tom@tromey.com>
6504 Andrew Burgess <andrew.burgess@embecosm.com>
6505 Pedro Alves <palves@redhat.com>
6507 2019-01-23 Pedro Alves <palves@redhat.com>
6509 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6511 2019-01-23 Pedro Alves <palves@redhat.com>
6512 Andrew Burgess <andrew.burgess@embecosm.com>
6514 * gdbthread.h: Include "common/forward-scope-exit.h".
6515 (scoped_finish_thread_state): Redefine custom class in terms of
6518 2019-01-23 Pedro Alves <palves@redhat.com>
6519 Andrew Burgess <andrew.burgess@embecosm.com>
6521 * common/forward-scope-exit.h: New file.
6523 2019-01-23 Pedro Alves <palves@redhat.com>
6524 Andrew Burgess <andrew.burgess@embecosm.com>
6525 Tom Tromey <tom@tromey.com>
6527 * common/scope-exit.h: New file.
6529 2019-01-23 Pedro Alves <palves@redhat.com>
6531 * common/preprocessor.h (ESC): Rename to ...
6532 (ESC_PARENS): ... this.
6533 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6534 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6536 2019-01-23 Tom Tromey <tom@tromey.com>
6538 * language.h (class scoped_switch_to_sym_language_if_auto):
6539 Initialize m_lang in both cases.
6541 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6543 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6546 2019-01-22 Tom Tromey <tom@tromey.com>
6548 * corelow.c: Do not include sys/file.h.
6550 2019-01-22 Tom Tromey <tom@tromey.com>
6552 * tui/tui-wingeneral.h: Include gdb_curses.h.
6554 2019-01-22 Tom Tromey <tom@tromey.com>
6556 * source-cache.h (class source_cache) <get_source_lines,
6557 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6559 2019-01-22 Tom Tromey <tom@tromey.com>
6561 * remote-fileio.h (struct remote_target): Declare.
6563 2019-01-22 Tom Tromey <tom@tromey.com>
6565 * python/py-arch.c: Do not include py-ref.h.
6566 * python/py-bpevent.c: Do not include py-ref.h.
6567 * python/py-cmd.c: Do not include py-ref.h.
6568 * python/py-continueevent.c: Do not include py-ref.h.
6569 * python/py-event.h: Do not include py-ref.h.
6570 * python/py-evtregistry.c: Do not include py-ref.h.
6571 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6572 * python/py-frame.c: Do not include py-ref.h.
6573 * python/py-framefilter.c: Do not include py-ref.h.
6574 * python/py-function.c: Do not include py-ref.h.
6575 * python/py-infevents.c: Do not include py-ref.h.
6576 * python/py-linetable.c: Do not include py-ref.h.
6577 * python/py-objfile.c: Do not include py-ref.h.
6578 * python/py-param.c: Do not include py-ref.h.
6579 * python/py-prettyprint.c: Do not include py-ref.h.
6580 * python/py-progspace.c: Do not include py-ref.h.
6581 * python/py-symbol.c: Do not include py-ref.h.
6582 * python/py-symtab.c: Do not include py-ref.h.
6583 * python/py-type.c: Do not include py-ref.h.
6584 * python/py-unwind.c: Do not include py-ref.h.
6585 * python/py-utils.c: Do not include py-ref.h.
6586 * python/py-value.c: Do not include py-ref.h.
6587 * python/py-varobj.c: Do not include py-ref.h.
6588 * python/py-xmethods.c: Do not include py-ref.h.
6589 * python/python.c: Do not include py-ref.h.
6590 * varobj.c: Do not include py-ref.h.
6592 2019-01-22 Tom Tromey <tom@tromey.com>
6594 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6597 2019-01-22 Tom Tromey <tom@tromey.com>
6599 * compile/compile-cplus-types.c: Remove a comment by #include.
6601 2019-01-22 Tom Tromey <tom@tromey.com>
6603 * compile/gcc-c-plugin.h: Include compile-internal.h.
6605 2019-01-22 Tom Tromey <tom@tromey.com>
6607 * stabsread.c (EXTERN): Do not define.
6608 (symnum, next_symbol_text_func, processing_gcc_compilation)
6609 (within_function, global_sym_chain, global_stabs)
6610 (previous_stab_code, this_object_header_files)
6611 (n_this_object_header_files)
6612 (n_allocated_this_object_header_files): Define.
6613 * stabsread.h (EXTERN): Never define. Use "extern".
6615 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6617 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6620 2019-01-21 Tom Tromey <tom@tromey.com>
6622 * ui-out.c: Fix includes.
6623 * tui/tui-source.c: Fix includes.
6624 * target.c: Fix includes.
6625 * remote.c: Fix includes.
6626 * regcache.c: Fix includes.
6627 * python/py-block.c: Fix includes.
6628 * printcmd.c: Fix includes.
6629 * or1k-tdep.c: Fix includes.
6630 * mi/mi-main.c: Fix includes.
6631 * m32r-tdep.c: Fix includes.
6632 * csky-tdep.c: Fix includes.
6633 * compile/compile-cplus-types.c: Fix includes.
6634 * cli/cli-interp.c: Fix includes.
6636 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6638 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6641 2019-01-16 Tom Tromey <tom@tromey.com>
6643 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6645 (struct objfile) <msymbols_range>: Move from top level.
6646 <msymbols>: New method.
6647 (class objfile_msymbols): Remove.
6648 * symtab.c (default_collect_symbol_completion_matches_break_on):
6650 * symmisc.c (dump_msymbols): Update.
6651 * stabsread.c (scan_file_globals): Update.
6652 * objc-lang.c (info_selectors_command, info_classes_command)
6653 (find_methods): Update.
6654 * minsyms.c (find_solib_trampoline_target): Update.
6655 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6656 * coffread.c (coff_symfile_read): Update.
6657 * ada-lang.c (ada_lookup_simple_minsym)
6658 (ada_collect_symbol_completion_matches): Update.
6660 2019-01-16 Tom Tromey <tom@tromey.com>
6662 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6663 type. Remove no-argument constructor.
6664 <iterator::operator++>: Simplify.
6666 <end>: Use minimal_symbol_count.
6668 2019-01-16 Tom Tromey <tom@tromey.com>
6670 * objfiles.h (struct objfile) <psymtabs>: New method.
6671 (class objfile_psymtabs): Remove.
6672 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6674 <range>: New method.
6675 (require_partial_symbols): Change return type.
6676 * psymtab.c (require_partial_symbols)
6677 (psym_expand_symtabs_matching): Update.
6678 * mdebugread.c (parse_partial_symbols): Update.
6679 * dbxread.c (dbx_end_psymtab): Update.
6681 2019-01-15 Tom Tromey <tom@tromey.com>
6683 * symtab.c (lookup_objfile_from_block)
6684 (lookup_symbol_in_objfile_symtabs)
6685 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6686 (find_line_symtab, info_sources_command)
6687 (default_collect_symbol_completion_matches_break_on)
6688 (make_source_files_completion_list): Update.
6689 * symmisc.c (print_objfile_statistics, dump_objfile)
6690 (maintenance_print_symbols, maintenance_info_symtabs)
6691 (maintenance_check_symtabs, maintenance_info_line_tables):
6693 * source.c (select_source_symtab)
6694 (forget_cached_source_info_for_objfile): Update.
6695 * objfiles.h (class objfile_compunits): Remove.
6696 (struct objfile) <compunits_range>: New typedef.
6697 (compunits): New method.
6698 * objfiles.c (objfile_relocate1): Update.
6699 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6700 * maint.c (count_symtabs_and_blocks): Update.
6701 * linespec.c (iterate_over_all_matching_symtabs): Update.
6702 * cp-support.c (add_symbol_overload_list_qualified): Update.
6703 * coffread.c (coff_symtab_read): Update.
6704 * ada-lang.c (add_nonlocal_symbols)
6705 (ada_collect_symbol_completion_matches)
6706 (ada_add_global_exceptions): Update.
6708 2019-01-15 Tom Tromey <tom@tromey.com>
6710 * progspace.h (program_space) <objfiles_safe_range>: New
6712 <objfiles_safe>: New method.
6713 * objfiles.h (class all_objfiles_safe): Remove.
6714 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6715 * jit.c (jit_inferior_exit_hook): Update.
6717 2019-01-17 Tom Tromey <tom@tromey.com>
6719 * progspace.h (program_space) <objfiles_range>: New typedef.
6720 <objfiles>: New method.
6721 <objfiles_head>: Rename from objfiles.
6722 (object_files): Update.
6723 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6724 * guile/scm-pretty-print.c
6725 (ppscm_find_pretty_printer_from_objfiles): Update.
6726 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6727 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6729 * python/py-progspace.c (pspy_get_objfiles): Update.
6730 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6732 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6733 (objfpy_lookup_objfile_by_build_id): Update.
6734 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6735 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6737 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6738 (expand_symtab_containing_pc, lookup_objfile_from_block)
6739 (lookup_static_symbol, basic_lookup_transparent_type)
6740 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6741 (find_line_symtab, info_sources_command)
6742 (default_collect_symbol_completion_matches_break_on)
6743 (make_source_files_completion_list, find_main_name): Update.
6744 * symmisc.c (print_symbol_bcache_statistics)
6745 (print_objfile_statistics, maintenance_print_symbols)
6746 (maintenance_print_msymbols, maintenance_print_objfiles)
6747 (maintenance_info_symtabs, maintenance_check_symtabs)
6748 (maintenance_expand_symtabs, maintenance_info_line_tables):
6750 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6751 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6752 (map_overlay_command, unmap_overlay_command)
6753 (simple_overlay_update, expand_symtabs_matching)
6754 (map_symbol_filenames): Update.
6755 * symfile-debug.c (set_debug_symfile): Update.
6756 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6758 * source.c (select_source_symtab, forget_cached_source_info):
6760 * solib.c (solib_read_symbols): Update.
6761 * solib-spu.c (append_ocl_sos): Update.
6762 * psymtab.c (maintenance_print_psymbols)
6763 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6764 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6765 * printcmd.c (info_symbol_command): Update.
6766 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6768 * objfiles.h (class all_objfiles): Remove.
6769 * objfiles.c (have_partial_symbols, have_full_symbols)
6770 (have_minimal_symbols, qsort_cmp, update_section_map)
6771 (shared_objfile_contains_address_p)
6772 (default_iterate_over_objfiles_in_search_order): Update.
6773 * objc-lang.c (info_selectors_command, info_classes_command)
6774 (find_methods): Update.
6775 * minsyms.c (find_solib_trampoline_target): Update.
6776 * maint.c (maintenance_info_sections)
6777 (maintenance_translate_address, count_symtabs_and_blocks):
6779 * main.c (captured_main_1): Update.
6780 * linux-thread-db.c (try_thread_db_load_from_pdir)
6781 (has_libpthread): Update.
6782 * linespec.c (iterate_over_all_matching_symtabs)
6783 (search_minsyms_for_name): Update.
6784 * jit.c (jit_find_objf_with_entry_addr): Update.
6785 * hppa-tdep.c (find_unwind_entry)
6786 (hppa_lookup_stub_minimal_symbol): Update.
6787 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6789 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6790 (elf_gnu_ifunc_resolve_by_got): Update.
6791 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6792 * dwarf-index-write.c (save_gdb_index_command): Update.
6793 * cp-support.c (add_symbol_overload_list_qualified): Update.
6794 * breakpoint.c (create_overlay_event_breakpoint)
6795 (create_longjmp_master_breakpoint)
6796 (create_std_terminate_master_breakpoint)
6797 (create_exception_master_breakpoint): Update.
6798 * blockframe.c (find_pc_partial_function): Update.
6799 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6800 (ada_collect_symbol_completion_matches)
6801 (ada_add_global_exceptions): Update.
6803 2019-01-17 Tom Tromey <tom@tromey.com>
6805 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6807 (solib_target_parse_libraries): Change return type.
6808 (library_list_start_segment, library_list_start_section)
6809 (library_list_end_library, library_list_start_library); Update.
6810 (solib_target_free_library_list): Remove.
6811 (solib_target_parse_libraries): Remove cleanup. Change return
6813 (solib_target_current_sos): Update.
6815 2019-01-17 Tom Tromey <tromey@bapiya>
6817 * valprint.c: Replace "the the" with "the".
6818 * symtab.c: Replace "the the" with "the".
6819 * solib.c: Replace "the the" with "the".
6820 * solib-dsbt.c: Replace "the the" with "the".
6821 * linespec.c: Replace "the the" with "the".
6822 * dwarf2loc.h: Replace "the the" with "the".
6823 * amd64-windows-tdep.c: Replace "the the" with "the".
6824 * aarch64-tdep.c: Replace "the the" with "the".
6826 2019-01-16 Keith Seitz <keiths@redhat.com>
6829 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6830 <builder>: Rename to ..
6831 <m_builder>: ... this and make private.
6832 (dwarf2_cu::get_builder): New method. Change all users of
6833 `builder' to use this method.
6834 (dwarf2_start_symtab): Move to ...
6835 (dwarf2_cu::start_symtab): ... here. Update all callers
6836 (setup_type_unit_groups): Move to ...
6837 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6839 (dwarf2_cu::reset_builder): New method.
6840 (process_full_compunit, process_full_type_unit): Use
6841 dwarf2_cu::reset_builder.
6842 (follow_die_offset): Record the ancestor CU if it is different
6843 from the followed DIE's CU.
6844 (follow_die_sig_1): Likewise.
6846 2019-01-15 Tom Tromey <tom@tromey.com>
6848 * remote.c (class remote_state) <buf>: Now a char_vector.
6850 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6852 (remote_target::getpkt_or_notif_sane_1)
6853 (remote_target::getpkt_sane)
6854 (remote_target::getpkt_or_notif_sane): Likewise.
6855 (class remote_target) <putpkt>: New overload.
6856 (remote_target::read_frame): Change type of "buf_p". Remove
6858 (packet_ok): New overload.
6859 (packet_check_result): New overload.
6862 2019-01-14 Tom Tromey <tom@tromey.com>
6864 * remote-notif.c (handle_notification, remote_notif_ack)
6865 (remote_notif_parse): Make "buf" const.
6866 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6868 (remote_notif_parse, remote_notif_ack, handle_notification):
6870 * remote.c (remote_notif_stop_parse): Make "buf" const.
6871 (remote_target::remote_parse_stop_reply): Make "buf" const.
6872 (remote_notif_stop_ack): Make "buf" const.
6874 2019-01-14 Tom Tromey <tom@tromey.com>
6876 * remote.c (remote_console_output): Make parameter const.
6878 2019-01-14 Tom Tromey <tom@tromey.com>
6880 * target-debug.h (target_debug_print_signals): Constify.
6881 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6882 * procfs.c (procfs_target::pass_signals): Update.
6883 * linux-nat.c (linux_nat_target::pass_signals): Update.
6884 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6885 * target-delegates.c: Rebuild.
6886 * remote.c (remote_target::program_signals): Update.
6887 (remote_target::pass_signals): Update.
6888 * target.c (target_pass_signals): Constify argument.
6889 (target_program_signals): Likewise.
6890 * target.h (struct target_ops) <pass_signals, program_signals>:
6892 (target_pass_signals, target_program_signals): Constify argument.
6894 2019-01-14 Tom Tromey <tom@tromey.com>
6897 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6899 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6901 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6903 * rs6000-tdep.c: Include reggroups.h.
6904 (IS_V_ALIAS_PSEUDOREG): Define.
6905 (rs6000_register_name): Return names for the "vX" aliases.
6906 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6907 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6908 aliases. Call default_register_reggroup_p for all other
6910 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6912 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6913 Handle "vX" aliases.
6914 (v_alias_pseudo_register_collect): New function.
6915 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6916 (rs6000_gdbarch_init): Initialize "vX" aliases as
6917 pseudo-registers. Restore registration of
6918 rs6000_pseudo_register_reggroup_p with
6919 set_tdesc_pseudo_register_reggroup_p.
6921 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6923 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6924 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6925 set_gdbarch_num_pseudo_regs.
6927 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6929 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6930 Remove arg prefixname, add do_set and do_show.
6931 Add member functions set_list and show_list.
6932 * cli/cli-style.c (class cli_style_option): Update accordingly.
6933 (style_set_list): Move to file scope.
6934 (style_show_list): Likewise.
6935 (set_style): Call help_list.
6936 (show_style): Call cmd_show_list.
6937 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6938 Update to use the new macro.
6940 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6942 * ada-lang.c (_initialize_ada_language): Expand the help text
6943 for the "catch exception" command.
6945 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6947 * symtab.c (matching_obj_sections): Initialize obj,
6948 declare it closer to its usage.
6950 2019-01-10 Tom Tromey <tom@tromey.com>
6952 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6953 (basic_inf_threads_range): Remove.
6954 (inf_threads_range, inf_non_exited_threads_range)
6955 (safe_inf_threads_range): Use next_adapter.
6957 2019-01-10 Keith Seitz <keiths@redhat.com>
6961 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6962 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6964 2019-01-10 Keith Seitz <keiths@redhat.com>
6968 * dictionary.c (pending_to_vector): Remove.
6969 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6970 Remove _1 suffix, replacing functions of the same name. Update
6972 (dict_create_hashed, dict_create_hashed_expandable)
6973 (dict_create_linear, dict_create_linear_expandable, dict_free)
6974 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6975 Make functions static.
6977 2019-01-10 Keith Seitz <keiths@redhat.com>
6981 * dictionary.h (struct dictionary): Replace declaration with
6983 (dict_create_hashed, dict_create_hashed_expandable)
6984 (dict_create_linear, dict_create_linear_expandable)
6985 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6986 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6987 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6988 taking multidictionary argument.
6989 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6990 * block.h (struct block) <dict>: Change to multidictionary
6991 and rename `multidict'.
6992 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6993 symmisc.c: Update all dictionary references to multidictionary.
6995 2019-01-10 Keith Seitz <keiths@redhat.com>
6999 * dictionary.c: Include unordered_map.
7000 (pending_to_vector): New function.
7001 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7002 Rewrite the non-"_1" functions to take vector instead
7004 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
7005 "new" _1 versions of the same name.
7006 (multidictionary): Define.
7007 (std::hash<enum language): New definition.
7008 (collate_pending_symbols_by_language, mdict_create_hashed)
7009 (mdict_create_hashed_expandable, mdict_create_linear)
7010 (mdict_create_linear_expandable, mdict_free)
7011 (find_language_dictionary, create_new_language_dictionary)
7012 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
7013 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
7014 (mdict_size, mdict_empty): New functions.
7015 * dictionary.h (mdict_iterator): Define.
7017 2019-01-10 Pedro Alves <palves@redhat.com>
7019 * breakpoint.c (read_uploaded_action)
7020 (create_tracepoint_from_upload): Adjust to use
7021 gdb::unique_xmalloc_ptr.
7022 * ctf.c (ctf_write_uploaded_tp):
7023 (SET_ARRAY_FIELD): Use emplace_back.
7024 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
7025 * tracefile-tfile.c (tfile_write_uploaded_tp):
7026 * tracepoint.c (parse_tracepoint_definition): Adjust to use
7027 gdb::unique_xmalloc_ptr.
7028 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
7029 at_string, cond_string, cmd_strings>: Replace char pointers
7030 with gdb::unique_xmalloc_ptr.
7032 2019-01-10 Pedro Alves <palves@redhat.com>
7034 * solib-target.c (library_list_start_library): Don't xstrdup name.
7036 2019-01-10 Pedro Alves <palves@redhat.com>
7038 * mdebugread.c (parse_partial_symbols): Use
7039 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
7041 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7043 * linux-fork.c (scoped_switch_fork_info)
7044 <~scoped_switch_fork_info>: Fix incorrect variable name.
7046 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7048 * linux-fork.c (scoped_switch_fork_info)
7049 <scoped_switch_fork_info>: Make explicit.
7050 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
7052 2019-01-10 Tom Tromey <tom@tromey.com>
7054 * objfiles.h (objfile::reset_psymtabs): Update.
7055 * objfiles.c (objfile::objfile): Update.
7056 * psymtab.h (psymtab_storage::obstack): Update.
7057 (psymtab_storage::m_obstack): Use gdb::optional.
7058 (class psymtab_storage): Update comment. Remove objfile
7060 * psymtab.c (psymtab_storage::psymtab_storage): Update.
7062 2019-01-10 Tom Tromey <tom@tromey.com>
7064 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
7065 <free_psymtabs>: Now private.
7066 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
7067 (allocate_psymtab): Use new method.
7069 2019-01-10 Tom Tromey <tom@tromey.com>
7071 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
7072 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
7073 * mdebugread.c (parse_partial_symbols): Use
7074 allocate_dependencies.
7075 * dwarf2read.c (dwarf2_create_include_psymtab): Use
7076 allocate_dependencies.
7077 (process_psymtab_comp_unit_reader)
7078 (build_type_psymtab_dependencies): Likewise.
7079 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
7081 2019-01-10 Tom Tromey <tom@tromey.com>
7083 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
7084 PSYMBOL_SET_LANGUAGE.
7085 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
7087 2019-01-10 Tom Tromey <tom@tromey.com>
7089 * psymtab.h (psymtab_storage::obstack): New method.
7090 <m_obstack>: Rename from obstack; now private.
7091 * psymtab.c (psymtab_storage): Update.
7092 * dwarf2read.c (create_addrmap_from_index)
7093 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
7096 2019-01-10 Tom Tromey <tom@tromey.com>
7098 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
7099 * objfiles.h (objfile::reset_psymtabs): New method.
7101 2019-01-10 Tom Tromey <tom@tromey.com>
7103 * symmisc.c (print_symbol_bcache_statistics): Update.
7104 (print_objfile_statistics): Update.
7105 * symfile.c (reread_symbols): Update.
7106 * psymtab.h (class psymtab_storage): New.
7107 * psymtab.c (psymtab_storage): New constructor.
7108 (~psymtab_storage): New destructor.
7109 (require_partial_symbols): Update.
7110 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
7111 (find_pc_sect_psymtab, find_pc_sect_psymbol)
7112 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
7113 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
7114 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
7115 (start_psymtab_common, end_psymtab_common)
7116 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
7117 (allocate_psymtab): Update.
7118 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
7120 (dump_psymtab_addrmap, maintenance_print_psymbols)
7121 (maintenance_check_psymtabs): Update.
7122 (class objfile_psymtabs): Move to objfiles.h.
7123 * psympriv.h (discard_psymtab): Now inline.
7124 (psymtab_discarder::psymtab_discarder): Update.
7125 (psymtab_discarder::~psymtab_discarder): Update.
7126 (ALL_OBJFILE_PSYMTABS): Rewrite.
7127 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
7128 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
7130 <partial_symtabs>: New field.
7131 (class objfile_psymtabs): Move from psymtab.h. Update.
7132 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
7134 (objfile::~objfile): Don't destroy psymbol_cache.
7135 * mdebugread.c (parse_partial_symbols): Update.
7136 * dwarf2read.c (create_addrmap_from_index)
7137 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7138 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
7139 (add_partial_subprogram, dwarf2_ranges_read): Update.
7140 * dwarf-index-write.c (write_address_map)
7141 (write_one_signatured_type, recursively_write_psymbols)
7142 (class debug_names, class debug_names, write_psymtabs_to_index):
7145 2019-01-10 Tom Tromey <tom@tromey.com>
7147 * symtab.h (SYMBOL_SET_NAMES): Update.
7148 (symbol_set_names): Update.
7149 (MSYMBOL_SET_NAMES): Update.
7150 * symtab.c (symbol_set_names): Change argument to be an
7151 objfile_per_bfd_storage.
7152 * psymtab.c (add_psymbol_to_bcache): Update.
7153 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
7155 2019-01-10 Tom Tromey <tom@tromey.com>
7157 * symtab.c (create_demangled_names_hash): Change argument to be an
7158 objfile_per_bfd_storage.
7159 (symbol_set_names): Update.
7161 2019-01-10 Tom Tromey <tom@tromey.com>
7163 * xcoffread.c (xcoff_initial_scan): Unconditionally call
7165 * psymtab.c (init_psymbol_list): Do nothing if already called.
7166 * psympriv.h (init_psymbol_list): Add comment.
7167 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
7169 * dbxread.c (dbx_symfile_read): Unconditionally call
7172 2019-01-10 Tom Tromey <tom@tromey.com>
7174 * xcoffread.c (scan_xcoff_symtab): Update.
7175 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
7177 * mdebugread.c (parse_partial_symbols)
7178 (handle_psymbol_enumerators): Update.
7179 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
7180 * dbxread.c (read_dbx_symtab): Update.
7181 * psympriv.h (psymbol_placement): New enum.
7182 (add_psymbol_to_list): Update.
7184 2019-01-10 Tom Tromey <tom@tromey.com>
7186 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
7187 static_psymbols parameters.
7188 (scan_xcoff_symtab): Update.
7189 * psymtab.c (start_psymtab_common): Remove global_psymbols and
7190 static_psymbols parameters.
7191 * psympriv.h (start_psymtab_common): Update.
7192 * mdebugread.c (parse_partial_symbols): Update.
7193 * dwarf2read.c (create_partial_symtab): Update.
7194 * dbxread.c (read_dbx_symtab): Update.
7195 (start_psymtab): Remove global_psymbols and static_psymbols
7198 2019-01-10 Tom Tromey <tom@tromey.com>
7200 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
7201 * psymtab.c (allocate_psymtab): Add comment.
7202 * psympriv.h (allocate_psymtab): Add comment.
7203 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
7205 * dbxread.c (dbx_end_psymtab): Remove some initializations.
7207 2019-01-10 Tom Tromey <tom@tromey.com>
7209 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7211 * mipsread.c: Include mdebugread.h.
7212 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7214 * elfread.c: Include mdebugread.h.
7216 2019-01-09 Tom Tromey <tom@tromey.com>
7218 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
7219 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
7220 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
7221 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
7222 (psym_lookup_symbol, psym_find_last_source_symtab)
7223 (psym_forget_cached_source_info, psym_print_stats)
7224 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
7225 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
7226 (psym_map_matching_symbols, psym_expand_symtabs_matching)
7227 (psym_find_compunit_symtab_by_address)
7228 (maintenance_print_psymbols, maintenance_info_psymtabs)
7229 (maintenance_check_psymtabs): Use ranged for.
7230 * psymtab.h (class objfile_psymtabs): New.
7231 (require_partial_symbols): Return objfile_psymtabs.
7232 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
7234 2019-01-09 Tom Tromey <tom@tromey.com>
7236 * symfile.c (overlay_invalidate_all, find_pc_overlay)
7237 (find_pc_mapped_section, list_overlays_command)
7238 (map_overlay_command, unmap_overlay_command)
7239 (simple_overlay_update): Use all_objfiles.
7240 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
7241 * printcmd.c (info_symbol_command): Use all_objfiles.
7242 * objfiles.h (ALL_OBJSECTIONS): Remove.
7243 * maint.c (maintenance_translate_address): Use all_objfiles.
7244 * gcore.c (gcore_create_callback): Use all_objfiles.
7245 (objfile_find_memory_regions): Likewise.
7247 2019-01-09 Tom Tromey <tom@tromey.com>
7249 * symtab.c (find_line_symtab, info_sources_command)
7250 (make_source_files_completion_list): Use objfile_compunits.
7251 * source.c (select_source_symtab): Use objfile_compunits.
7252 * objfiles.h (struct objfile): Update comment.
7253 (ALL_OBJFILES): Remove.
7254 (ALL_FILETABS): Remove.
7255 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
7258 2019-01-09 Tom Tromey <tom@tromey.com>
7260 * symmisc.c (print_objfile_statistics, dump_objfile)
7261 (maintenance_print_symbols): Use compunit_filetabs.
7262 * source.c (forget_cached_source_info_for_objfile): Use
7264 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
7265 (ALL_FILETABS): Use compunit_filetabs.
7266 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
7267 * coffread.c (coff_symtab_read): Use compunit_filetabs.
7269 2019-01-09 Tom Tromey <tom@tromey.com>
7271 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
7272 (compunit_filetabs): New.
7273 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
7275 (info_sources_command, make_source_files_completion_list): Remove
7277 * symmisc.c (print_objfile_statistics, dump_objfile)
7278 (maintenance_print_symbols): Remove declaration.
7279 (maintenance_info_symtabs): Use compunit_filetabs.
7280 (maintenance_info_line_tables): Likewise.
7281 * source.c (select_source_symtab): Change local variable name.
7282 (forget_cached_source_info_for_objfile): Remove declaration.
7283 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
7284 * objfiles.c (objfile_relocate1): Remove declaration.
7285 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7287 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
7288 * coffread.c (coff_symtab_read): Remove declaration.
7289 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
7292 2019-01-09 Tom Tromey <tom@tromey.com>
7294 * symtab.c (lookup_objfile_from_block)
7295 (find_pc_sect_compunit_symtab, search_symbols)
7296 (default_collect_symbol_completion_matches_break_on): Use
7298 * objfiles.h (ALL_COMPUNITS): Remove.
7299 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
7300 * cp-support.c (add_symbol_overload_list_qualified): Use
7302 * ada-lang.c (ada_collect_symbol_completion_matches)
7303 (ada_add_global_exceptions): Use objfile_compunits.
7305 2019-01-09 Tom Tromey <tom@tromey.com>
7307 * source.c (select_source_symtab)
7308 (forget_cached_source_info_for_objfile): Remove declaration.
7309 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7311 * maint.c (count_symtabs_and_blocks): Remove declaration.
7312 * cp-support.c (add_symbol_overload_list_qualified): Remove
7314 * coffread.c (coff_symtab_read): Remove declaration.
7315 * symtab.c (lookup_symbol_in_objfile_symtabs)
7316 (basic_lookup_transparent_type_1): Use objfile_compunits.
7317 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
7318 (info_sources_command, search_symbols)
7319 (default_collect_symbol_completion_matches_break_on)
7320 (make_source_files_completion_list): Remove declaration.
7321 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
7322 (ada_collect_symbol_completion_matches)
7323 (ada_add_global_exceptions): Remove declaration.
7324 * linespec.c (iterate_over_all_matching_symtabs): Use
7326 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
7327 (class objfile_compunits): New.
7328 (ALL_COMPUNITS): Use objfile_compunits.
7329 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
7330 (maintenance_check_symtabs, maintenance_info_line_tables): Use
7332 * objfiles.c (objfile_relocate1): Use objfile_compunits.
7334 2019-01-09 Tom Tromey <tom@tromey.com>
7336 * symtab.c (search_symbols)
7337 (default_collect_symbol_completion_matches_break_on): Use
7339 * ada-lang.c (ada_lookup_simple_minsym)
7340 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
7341 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
7342 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
7344 * coffread.c (coff_symfile_read): Use objfile_msymbols.
7345 * symmisc.c (dump_msymbols): Use objfile_msymbols.
7346 * objc-lang.c (find_methods): Use objfile_msymbols.
7347 (info_selectors_command, info_classes_command): Likewise.
7348 * stabsread.c (scan_file_globals): Use objfile_msymbols.
7349 * objfiles.h (class objfile_msymbols): New.
7350 (ALL_OBJFILE_MSYMBOLS): Remove.
7351 (ALL_MSYMBOLS): Remove.
7353 2019-01-09 Tom Tromey <tom@tromey.com>
7355 * common/next-iterator.h (next_adapter): Add Iterator template
7357 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
7358 (class all_objfiles_safe): New.
7359 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
7360 * objfiles.c (put_objfile_before): Update comment.
7361 (add_separate_debug_objfile): Likewise.
7362 (free_all_objfiles): Use all_objfiles_safe.
7363 (objfile_purge_solibs): Likewise.
7365 2019-01-09 Tom Tromey <tom@tromey.com>
7367 * symtab.c (iterate_over_symtabs, matching_obj_sections)
7368 (expand_symtab_containing_pc, lookup_static_symbol)
7369 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
7370 (find_symbol_at_address, find_line_symtab, find_main_name): Use
7372 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
7373 * breakpoint.c (create_overlay_event_breakpoint)
7374 (create_longjmp_master_breakpoint)
7375 (create_std_terminate_master_breakpoint)
7376 (create_exception_master_breakpoint): Use all_objfiles.
7377 * linux-thread-db.c (try_thread_db_load_from_pdir)
7378 (has_libpthread): Use all_objfiles.
7379 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
7380 * linespec.c (iterate_over_all_matching_symtabs)
7381 (search_minsyms_for_name): Use all_objfiles.
7382 * maint.c (maintenance_info_sections): Use all_objfiles.
7383 * main.c (captured_main_1): Use all_objfiles.
7384 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
7385 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
7386 * guile/scm-pretty-print.c
7387 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
7388 * solib-spu.c (append_ocl_sos): Use all_objfiles.
7389 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
7390 (maintenance_print_msymbols): Use all_objfiles.
7391 * source.c (select_source_symtab): Use all_objfiles.
7392 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
7393 * symfile.c (remove_symbol_file_command)
7394 (expand_symtabs_matching, map_symbol_filenames): Use
7396 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
7398 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
7399 * objc-lang.c (find_methods): Use all_objfiles.
7400 * objfiles.c (have_partial_symbols, have_full_symbols)
7401 (have_minimal_symbols, qsort_cmp)
7402 (default_iterate_over_objfiles_in_search_order): Use
7404 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
7405 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
7406 (maintenance_check_psymtabs): Use all_objfiles.
7407 (ALL_PSYMTABS): Remove.
7408 * compile/compile-object-run.c (do_module_cleanup): Use
7410 * blockframe.c (find_pc_partial_function): Use all_objfiles.
7411 * cp-support.c (add_symbol_overload_list_qualified): Use
7413 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
7415 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
7416 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
7418 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
7419 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
7420 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7422 * solib.c (solib_read_symbols): Use all_objfiles
7424 2019-01-09 Tom Tromey <tom@tromey.com>
7426 * probe.c (parse_probes_in_pspace): Use all_objfiles.
7427 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
7429 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
7430 * symmisc.c (print_symbol_bcache_statistics)
7431 (print_objfile_statistics, maintenance_print_objfiles)
7432 (maintenance_info_symtabs, maintenance_check_symtabs)
7433 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
7435 * source.c (forget_cached_source_info): Use all_objfiles.
7436 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
7437 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
7438 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
7439 * objfiles.c (update_section_map): Use all_objfiles.
7440 (shared_objfile_contains_address_p): Likewise.
7441 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
7442 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
7444 2019-01-09 Tom Tromey <tom@tromey.com>
7446 * common/next-iterator.h: New file.
7447 * objfiles.h (class all_objfiles): New.
7448 (struct objfile_iterator): New.
7450 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7452 * NEWS: Move the description of the changed "frame", "select-frame",
7453 and "info frame" commands to the Changed commands section.
7455 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
7457 * gdbtypes.c (check_stub_method_group): Remove handling of old
7459 * linespec.c (find_methods): Likewise.
7460 * stabsread.c (read_member_functions): Likewise.
7461 * valops.c (search_struct_method): Likewise.
7462 (value_struct_elt_for_reference): Likewise.
7463 * NEWS: Mention this change.
7465 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7467 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
7469 * source.c (print_source_lines_base): Update line number check.
7470 (print_source_lines): New function.
7471 (source_lines_range::source_lines_range): New function.
7472 * source.h (class source_lines_range): New class.
7473 (print_source_lines): New declaration.
7475 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7477 * linespec.c (linespec_state_destructor): Free self->canonical_names.
7479 2019-01-08 Tom Tromey <tom@tromey.com>
7480 Simon Marchi <simon.marchi@ericsson.com>
7483 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
7484 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
7485 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7486 * f-exp.y (DOLLAR_VARIABLE): Likewise.
7487 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
7488 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7490 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7492 * source.c (select_source_symtab): Move header comment to
7493 declaration in source.h.
7494 (forget_cached_source_info_for_objfile): Likewise.
7495 (forget_cached_source_info): Likewise.
7496 (identify_source_line): Likewise.
7497 * source.h (identify_source_line): Move declaration from symtab.h
7498 and add comment from source.c
7499 (print_source_lines): Likewise.
7500 (forget_cached_source_info_for_objfile): Likewise.
7501 (forget_cached_source_info): Likewise.
7502 (select_source_symtab): Likewise.
7503 (enum print_source_lines_flag): Move definition from symtab.h.
7504 * symtab.h (identify_source_line): Move declaration to source.h.
7505 (print_source_lines): Likewise.
7506 (forget_cached_source_info_for_objfile): Likewise.
7507 (forget_cached_source_info): Likewise.
7508 (select_source_symtab): Likewise.
7509 (enum print_source_lines_flag): Move definition to source.h.
7510 * tui/tui-hooks.c: Add 'source.h' include.
7512 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7514 * source.c (print_source_lines_base): Handle requests to print
7515 reverse line number sequences, and guard against empty lines
7518 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7520 * source.c (print_source_lines_base): Fix skip of '\r' if next
7523 2019-01-06 Tom Tromey <tom@tromey.com>
7525 * c-exp.y (struct c_parse_state) <macro_original_text,
7526 expansion_obstack>: New member.
7527 (macro_original_text, expansion_obstack): Remove globals.
7528 (scan_macro_expansion, scanning_macro_expansion)
7529 (finished_macro_expansion): Update.
7530 (scan_macro_cleanup): Remove.
7531 (yylex, c_parse): Update.
7533 2019-01-06 Tom Tromey <tom@tromey.com>
7535 * c-exp.y (struct c_parse_state) <strings>: New member.
7536 (operator_stoken): Update.
7538 2019-01-06 Tom Tromey <tom@tromey.com>
7540 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7541 (union type_stack_elt) <typelist_val>: Now a pointer to
7543 (type_stack_cleanup): Don't declare.
7544 (push_typelist): Update.
7545 * parse.c (pop_typelist): Return a std::vector.
7546 (push_typelist): Take a std::vector.
7547 (follow_types): Update. Do not free args.
7548 (type_stack_cleanup): Remove.
7549 * c-exp.y (struct c_parse_state): New.
7550 (cpstate): New global.
7551 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7552 (nonempty_typelist): Update.
7553 (func_mod): Create a new vector.
7554 (c_parse): Create a c_parse_state.
7555 (check_parameter_typelist): Do not delete params.
7556 (function_method): Update. Do not delete type_list.
7558 2019-01-06 Tom Tromey <tom@tromey.com>
7561 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7563 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7564 (print_return_value): Likewise.
7566 2019-01-05 Tom Tromey <tom@tromey.com>
7568 * contrib/cleanup_check.py: Remove.
7569 * contrib/gcc-with-excheck: Remove.
7570 * contrib/exsummary.py: Remove.
7571 * contrib/excheck.py: Remove.
7573 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7575 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7576 NULL. Initialize tpprev to NULL instead of assigning it
7577 to NULL on the next statement.
7578 * windows-nat.c (windows_delete_thread): Remove check for
7579 main_thread_id before printing thread exit notifications.
7580 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7581 Remove thread ID check against main_thread_id.
7582 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7583 windows_delete_thread.
7584 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7586 2019-01-04 Tom Tromey <tom@tromey.com>
7588 * compile/compile.c (_initialize_compile): Use upper case for
7589 metasyntactic variables.
7590 * symmisc.c (_initialize_symmisc): Use upper case for
7591 metasyntactic variables.
7592 * psymtab.c (_initialize_psymtab): Use upper case for
7593 metasyntactic variables.
7594 * demangle.c (demangle_command): Use upper case for metasyntactic
7596 (_initialize_demangler): Likewise.
7597 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7600 2019-01-03 Tom Tromey <tom@tromey.com>
7602 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7604 2019-01-03 Tom Tromey <tom@tromey.com>
7606 * python/py-symtab.c (salpy_str): Update.
7607 (struct salpy_sal_object) <symtab>: Now a PyObject.
7608 (salpy_dealloc): Update.
7609 (del_objfile_sal): Use gdbpy_ref.
7611 2019-01-03 Tom Tromey <tom@tromey.com>
7613 * python/py-type.c (convert_field): Use new_reference. Return
7615 (make_fielditem): Return gdbpy_ref.
7616 (typy_fields): Update.
7617 (typy_getitem): Update.
7618 (field_name): Return gdbpy_ref. Use new_reference.
7619 (typy_iterator_iternext): Update.
7621 2019-01-03 Tom Tromey <tom@tromey.com>
7623 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7625 2019-01-03 Tom Tromey <tom@tromey.com>
7627 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7628 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7629 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7630 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7631 (pspy_set_type_printers): Likewise.
7632 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7633 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7634 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7635 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7636 (objfpy_set_type_printers): Likewise.
7638 2019-01-03 Tom Tromey <tom@tromey.com>
7640 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7641 (gdbpy_print_stack): Use gdbpy_err_fetch.
7642 * python/python-internal.h (class gdbpy_err_fetch): New class.
7643 (class gdbpy_enter) <m_error_type, m_error_value,
7644 m_error_traceback>: Remove.
7645 <m_error>: New member.
7646 (gdbpy_exception_to_string): Don't declare.
7647 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7648 * python/py-value.c (convert_value_from_python): Use
7650 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7651 gdbpy_exception_to_string.
7652 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7653 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7656 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7658 * linux-nat.c (delete_lwp_cleanup): Delete.
7659 (struct lwp_deleter): New struct.
7660 (lwp_info_up): New typedef.
7661 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7664 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7666 * linux-fork.c (class scoped_switch_fork_info): New class.
7667 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7669 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7671 * valops.c (find_overload_match): Remove use of null_cleanup, and
7672 calls to do_cleanups.
7674 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7676 * compile/compile-cplus-types.c
7677 (compile_cplus_instance::decl_name): Handle changes to
7679 * cp-support.c (cp_func_name): Update header comment, update
7681 * cp-support.h (cp_func_name): Update return type in declaration.
7682 * valops.c (find_overload_match): Move temp_func local to top
7683 level of function and change its type. Use temp_func to hold and
7684 delete temporary string obtained from cp_func_name.
7686 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7688 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7689 gdb::char_vector, remove cleanup, and update uses of `msg`.
7691 2019-01-03 Jim Wilson <jimw@sifive.com>
7693 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7695 2019-01-02 Tom Tromey <tom@tromey.com>
7697 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7698 (tdesc_parse_xml): Remove cleanups.
7699 * target-descriptions.h (make_cleanup_free_target_description):
7701 (target_desc_deleter): New struct.
7702 (target_desc_up): New typedef.
7703 * target-descriptions.c (target_desc_deleter::operator()): Rename
7704 from free_target_description.
7705 (make_cleanup_free_target_description): Remove.
7707 2019-01-02 Tom Tromey <tom@tromey.com>
7709 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7710 constructor, destructor.
7711 (linespec_parser): Remove typedef.
7712 (~linespec_parser): Rename from linespec_parser_delete.
7713 (linespec_lex_to_end, linespec_complete_label)
7714 (linespec_complete): Update.
7715 (decode_line_full): Remove cleanups.
7716 (decode_line_1): Update.
7718 2019-01-02 Tom Tromey <tom@tromey.com>
7720 * python/python-internal.h (inferior_to_inferior_object): Change
7722 * python/py-exitedevent.c (create_exited_event_object): Update.
7723 * python/py-inferior.c (inferior_to_inferior_object): Return
7725 (python_new_inferior, python_inferior_deleted)
7726 (thread_to_thread_object, delete_thread_object)
7727 (build_inferior_list, gdbpy_selected_inferior): Update.
7728 * python/py-infthread.c (create_thread_object): Update. Also fail
7729 if inferior_to_inferior_object fails.
7731 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7733 * inferior.h (class inferior) <displaced_step_state>: New field.
7734 * infrun.h (struct displaced_step_state): Move here from
7735 infrun.c. Initialize fields, add constructor.
7736 <inf>: Remove field.
7737 <reset>: New method.
7738 * infrun.c (struct displaced_step_inferior_state): Move to
7740 (displaced_step_inferior_states): Remove.
7741 (get_displaced_stepping_state): Adust.
7742 (displaced_step_in_progress_any_inferior): Adjust.
7743 (displaced_step_in_progress_thread): Adjust.
7744 (displaced_step_in_progress): Adjust.
7745 (add_displaced_stepping_state): Remove.
7746 (get_displaced_step_closure_by_addr): Adjust.
7747 (remove_displaced_stepping_state): Remove.
7748 (infrun_inferior_exit): Call displaced_step_state.reset.
7749 (use_displaced_stepping): Don't check for NULL.
7750 (displaced_step_prepare_throw): Call
7751 get_displaced_stepping_state.
7752 (displaced_step_fixup): Don't check for NULL.
7753 (prepare_for_detach): Don't check for NULL.
7755 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7757 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7758 in case of call that did not complete.
7760 2019-01-02 Andrey Utkin <autkin@undo.io>
7762 * symfile.c (find_separate_debug_file): Fix search of debug files for
7765 2019-01-02 Tom Tromey <tom@tromey.com>
7767 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7769 * python/py-frame.c (frapy_older): Remove cast.
7770 (frapy_newer): Likewise.
7771 * python/py-breakpoint.c (local_setattro): Remove cast.
7772 * python/py-arch.c (archpy_name): Remove local variable.
7773 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7775 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7777 * unittests/basic_string_view/element_access/char/empty.cc:
7778 Fix year range in copyright header.
7780 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7782 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7784 <operator==>: Update with for removed field.
7786 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7787 <isa_features>: ...this.
7788 <abi_features>: New field.
7789 (riscv_isa_flen): Update comment.
7790 (riscv_abi_xlen): New declaration.
7791 (riscv_abi_flen): New declaration.
7792 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7794 (riscv_abi_xlen): New function.
7795 (riscv_isa_flen): Update to get answer from isa_features.
7796 (riscv_abi_flen): New function.
7797 (riscv_has_fp_abi): Update to get answer from abi_features.
7798 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7800 (riscv_call_info) <xlen, flen>: Update comment.
7801 (riscv_call_arg_struct): Remove invalid assertions
7802 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7804 (riscv_gdbarch_init): Gather isa features and abi features
7805 separately, ensure both match on the gdbarch when reusing an old
7806 gdbarch. Relax an error check to allow 32-bit abi float to run on
7807 a target with 64-bit float hardware.
7809 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7811 * source.c (search_command_helper): Stop reverse search
7812 when line 1 has been searched.
7814 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7816 * record-full.c (record_full_base_target::close): Rewrite
7817 record_full_core_buf_list free logic.
7819 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7821 * break-catch-syscall.c (print_one_catch_syscall): xfree
7824 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7826 * top.c (print_gdb_version): Update Copyright year in version
7829 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7831 Update copyright year range in all GDB files.
7833 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7835 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7837 For older changes see ChangeLog-2018.
7843 version-control: never