1 2019-06-13 Pedro Alves <palves@redhat.com>
3 * thread.c: Include "cli/cli-option.h".
4 (tp_array_compar_ascending): Global.
5 (tp_array_compar): Delete function.
6 (tp_array_compar_ascending, tp_array_compar_descending): New
8 (ascending_option_def, qcs_flag_option_def)
9 (thr_qcs_flags_option_defs)
10 (make_thread_apply_all_options_def_group)
11 (make_thread_apply_options_def_group): New.
12 (thread_apply_all_command): Use gdb::option::process_options.
13 (thread_apply_command_completer)
14 (thread_apply_all_command_completer): New.
15 (thread_apply_command): Use gdb::option::process_options.
16 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
17 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
18 to generate help text of "thread apply". Adjust "taas"'s help.
19 * tid-parse.c (tid_range_parser::in_thread_range): New method.
20 * tid-parse.h (tid_range_parser::in_thread_range): New method.
22 2019-06-13 Pedro Alves <palves@redhat.com>
24 * thread.c (thread_apply_command): Check for invalid TID with
25 isdigit instead of !isalpha.
27 2019-06-13 Pedro Alves <palves@redhat.com>
29 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
30 (validate_flags_qcs): New.
31 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
32 (validate_flags_qcs): Declare.
33 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
34 (make_frame_apply_options_def_group): New.
35 (frame_apply_command_count): Process options with
36 gdb::option::process_options.
37 (frame_apply_completer): New.
38 (frame_apply_level_completer, frame_apply_all_completer)
39 (frame_apply_completer): New.
40 (_initialize_stack): Update help of "frame apply", "frame apply
41 level", "frame apply all" and "faas" to mention supported options
42 and install command completers.
43 * stack.h (frame_apply_all_completer): Declare.
44 * thread.c: Include "stack.h".
45 (tfaas_command): Add "--".
46 (_initialize_thread): Update help "tfaas" to mention supported
47 options and install command completer.
49 2019-06-13 Pedro Alves <palves@redhat.com>
51 * completer.c (complete_nested_command_line): New.
52 (gdb_completion_word_break_characters_throw): Add assertion.
53 * completer.h (complete_nested_command_line): Declare.
55 2019-06-13 Pedro Alves <palves@redhat.com>
57 * stack.c (parse_backtrace_qualifiers): New.
58 (backtrace_command): Use it.
59 (backtrace_command_completer): Complete on qualifiers.
61 2019-06-13 Pedro Alves <palves@redhat.com>
63 * frame.c: Include "cli/cli-option.h.
64 (user_set_backtrace_options): New.
65 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
67 (get_prev_frame): Adjust.
68 (boolean_option_def, uinteger_option_def)
69 (set_backtrace_option_defs): New.
70 (_initialize_frame): Adjust and use
71 gdb::option::add_setshow_cmds_for_options to install "set
72 backtrace past-main" and "set backtrace past-entry".
73 * frame.h: Include "cli/cli-option.h".
74 (struct frame_print_options): Forward declare.
75 (print_frame_arguments_all, print_frame_arguments_scalars)
76 (print_frame_arguments_none): Declare.
77 (print_entry_values): Delete declaration.
78 (struct frame_print_options, user_frame_print_options): New.
79 (struct set_backtrace_options): New.
80 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
81 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
82 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
83 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
84 (list_args_or_locals): Add frame_print_options parameter.
85 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
86 * python/py-framefilter.c (enumerate_args): Pass down
87 USER_FRAME_PRINT_OPTIONS.
88 * stack.c: Include "cli/cli-option.h".
89 (print_frame_arguments_all, print_frame_arguments_scalars)
90 (print_frame_arguments_none): Declare.
91 (print_raw_frame_arguments, print_entry_values): Delete.
92 (user_frame_print_options): New.
93 (boolean_option_def, enum_option_def, frame_print_option_defs):
95 (struct backtrace_cmd_options): New.
96 (bt_flag_option_def): New.
97 (backtrace_command_option_defs): New.
98 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
99 (print_frame_arg, read_frame_arg, print_frame_args)
100 (print_frame_info, print_frame): Add frame_print_options parameter
102 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
103 (backtrace_command_1): Add frame_print_options and
104 backtrace_cmd_options parameters and use them.
105 (make_backtrace_options_def_group): New.
106 (backtrace_command): Process command options with
107 gdb::option::process_options.
108 (backtrace_command_completer): New.
109 (_initialize_stack): Extend "backtrace"'s help to mention
110 supported options. Install completer for "backtrace".
111 Install some settings commands with add_setshow_cmds_for_options.
113 2019-06-13 Pedro Alves <palves@redhat.com>
115 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
116 and that "set/show print raw frame-arguments" are now deprecated.
118 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
120 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
121 * stack.c (_initialize_stack): Install "set/show print
122 raw-frame-arguments", and deprecate "set/show print raw
124 * valprint.c (_initialize_valprint): Deprecate "set/show print
127 2019-06-13 Pedro Alves <palves@redhat.com>
129 * compile/compile.c (struct compile_options): New.
130 (compile_flag_option_def, compile_command_option_defs)
131 (make_compile_options_def_group): New.
132 (compile_file_command): Handle options with
133 gdb::option::process_options.
134 (compile_file_command_completer): New function.
135 (compile_code_command): Handle options with
136 gdb::option::process_options.
137 (compile_code_command_completer): New function.
138 (_initialize_compiler): Install completers for "compile code" and
139 "compile file". Mention available options in "compile code" and
140 "compile code"'s help.
141 * completer.c (advance_to_completion_word): New, factored out from
143 (advance_to_expression_complete_word_point): ... this.
144 (advance_to_filename_complete_word_point): New.
145 * completer.h (advance_to_filename_complete_word_point): New
148 2019-06-13 Pedro Alves <palves@redhat.com>
150 * compile/compile.c: Include "cli/cli-option.h".
151 (compile_print_value): Scope data pointer is now a
152 value_print_options pointer; adjust.
153 (compile_print_command): Process options. Scope data pointer is
154 now a value_print_options pointer; adjust.
155 (_initialize_compile): Update "compile print"'s help to include
156 supported options. Install a completer for "compile print".
157 * cp-valprint.c (show_vtblprint, show_objectprint)
158 (show_static_field_print): Delete.
159 (_initialize_cp_valprint): Don't install "set print
160 static-members", "set print vtbl", "set print object" here.
161 * printcmd.c: Include "cli/cli-option.h" and
162 "common/gdb_optional.h".
163 (print_command_parse_format): Rework to fill in a
164 value_print_options instead of a format_data.
165 (print_value): Change parameter type from format_data pointer to
166 value_print_options reference. Adjust.
167 (print_command_1): Process options. Adjust to pass down a
169 (print_command_completer): New.
170 (_initialize_printcmd): Install print_command_completer as
171 handle_brkchars completer for the "print" command. Update
172 "print"'s help to include supported options.
173 * valprint.c: Include "cli/cli-option.h".
174 (show_vtblprint, show_objectprint, show_static_field_print): Moved
175 here from cp-valprint.c.
176 (boolean_option_def, uinteger_option_def)
177 (value_print_option_defs, make_value_print_options_def_group):
178 New. Use gdb::option::add_setshow_cmds_for_options to install
179 "set print elements", "set print null-stop", "set print repeats",
180 "set print pretty", "set print union", "set print array", "set
181 print address", "set print symbol", "set print array-indexes".
182 * valprint.h: Include <string> and "cli/cli-option.h".
183 (make_value_print_options_def_group): Declare.
184 (print_value): Change parameter type from format_data pointer to
185 value_print_options reference.
186 (print_command_completer): Declare.
188 2019-06-13 Pedro Alves <palves@redhat.com>
190 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
191 (COMMON_SFILES): Add maint-test-settings.c.
192 * cli/cli-decode.c (boolean_enums): New global, factored out from
194 (add_setshow_boolean_cmd): ... here.
195 * cli/cli-decode.h (boolean_enums): Declare.
196 * cli/cli-option.c: New file.
197 * cli/cli-option.h: New file.
198 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
199 factored out from ...
200 (parse_cli_boolean_value(const char *)): ... this.
201 (is_unlimited_literal): Change parameter type to pointer to
202 pointer. Adjust and advance ARG pointer.
203 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
204 (parse_cli_var_enum): New, factored out from ...
205 (do_set_command): ... this. Adjust.
206 * cli/cli-setshow.h (parse_cli_boolean_value)
207 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
208 (parse_cli_var_enum): Declare.
209 * cli/cli-utils.c: Include "cli/cli-option.h".
211 * cli/cli-utils.h (get_ulongest): Declare.
212 (check_for_argument): New overloads.
213 * maint-test-options.c: New file.
215 2019-06-13 Pedro Alves <palves@redhat.com>
217 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
218 parse a range if "-" is at the end of the string.
220 2019-06-13 Pedro Alves <palves@redhat.com>
222 * cli/cli-setshow.c (parse_auto_binary_operation)
223 (parse_cli_boolean_value): Don't allow "o".
225 2019-06-13 Pedro Alves <palves@redhat.com>
227 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
228 * NEWS: Mention maint test-settings KIND.
229 * maint-test-settings.c: New file.
231 2019-06-13 Pedro Alves <palves@redhat.com>
233 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
235 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
238 2019-06-13 Pedro Alves <palves@redhat.com>
240 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
243 2019-06-13 Pedro Alves <palves@redhat.com>
245 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
247 2019-06-13 Pedro Alves <palves@redhat.com>
249 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
250 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
252 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
253 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
255 (check_for_argument): Skip spaces after argument.
257 2019-06-13 Pedro Alves <palves@redhat.com>
259 * thread.c (thread_apply_command): Adjust TID parsing.
260 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
261 detected before end of string.
262 (tid_is_in_list): Error out if LIST is invalid.
264 2019-06-13 Pedro Alves <palves@redhat.com>
266 * completer.c (complete_line_internal_1): Rewind completion word
268 (completion_tracker::advance_custom_word_point_by): Change
269 parameter type to int.
270 * completer.h (completion_tracker::advance_custom_word_point_by):
273 2019-06-13 Pedro Alves <palves@redhat.com>
275 * completer.c (advance_to_completion_word): Handle delimiters.
277 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
279 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
281 2019-06-11 Tom Tromey <tom@tromey.com>
283 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
284 (xmalloc_failed): Move to alloc.c.
286 * Makefile.in (COMMON_SFILES): Add alloc.c.
288 2019-06-11 Tom Tromey <tom@tromey.com>
290 * nat/linux-waitpid.c: Don't include server.h.
291 (linux_debug): Remove.
292 (my_waitpid): Update.
294 2019-06-11 Tom Tromey <tromey@adacore.com>
296 * infcall.c (_initialize_infcall): Remove trailing newline from
298 * user-regs.c (_initialize_user_regs): Remove trailing newline
300 * typeprint.c (_initialize_typeprint): Remove trailing newline
302 * reverse.c (_initialize_reverse): Remove trailing newlines from
304 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
306 * language.c (add_set_language_command): Remove trailing newline
308 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
310 * disasm.c (_initialize_disasm): Remove trailing newline from
312 * top.c (init_main): Remove trailing newline from help.
313 * interps.c (_initialize_interpreter): Remove trailing newline
315 * btrace.c (_initialize_btrace): Remove trailing newlines from
317 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
319 * python/python.c (_initialize_python): Remove trailing newline
321 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
323 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
324 from help. Reformat some text.
325 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
327 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
330 2019-06-11 Tom Tromey <tromey@adacore.com>
332 * darwin-nat.c (darwin_decode_exception_message)
333 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
335 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
337 * valops.c (value_slice): Check for not allocated or not
340 2019-06-10 Tom de Vries <tdevries@suse.de>
343 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
344 sure an empty slot (defined by a 32-bit zero pair) is recognized as
347 2019-06-10 Tom de Vries <tdevries@suse.de>
350 * linespec.c (linespec_lexer_lex_string): Remove incorrect
351 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
353 2019-06-10 Tom de Vries <tdevries@suse.de>
356 * symtab.c (struct demangled_name_entry): Add language field.
357 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
358 static minimal symbol". Set and use language field.
360 2019-06-10 Tom Tromey <tromey@adacore.com>
362 * ada-lang.c (_initialize_ada_language): Update help text.
364 2019-06-10 Tom Tromey <tromey@adacore.com>
366 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
368 * guile/guile.c (handle_boot_error): Don't end warning with a
370 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
371 warning with a newline.
372 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
374 (s12z_frame_cache): Likewise.
375 * dwarf-index-cache.c (index_cache::store): Don't end warning with
377 * solib-svr4.c (disable_probes_interface): Don't end warning with
379 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
381 * python/python.c (do_finish_initialization): Don't end warning
384 2019-06-10 Tom Tromey <tom@tromey.com>
386 * python/py-breakpoint.c (gdbpy_breakpoint_created)
387 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
390 2019-06-10 Tom Tromey <tromey@adacore.com>
392 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
394 (elf_new_init): Don't call stabsread_new_init.
395 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
396 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
397 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
399 2019-06-10 Tom de Vries <tdevries@suse.de>
403 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
405 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
407 * source.c (find_and_open_source): Also rewrite relative file
410 2019-04-26 Amos Bird <amosbird@gmail.com>
412 * annotate.c (annotate_thread_exited): Add "thread-exited"
415 2019-06-06 Tom Tromey <tromey@adacore.com>
417 * maint.h (class scoped_command_stats): Use
418 DISABLE_COPY_AND_ASSIGN.
419 <print_time>: New method.
420 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
422 (scoped_command_stats::print_time): New method.
424 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
426 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
427 instructions of lengths 6 or 8 bytes.
429 2019-06-04 Pedro Alves <palves@redhat.com>
431 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
433 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
434 * breakpoint.c (condition_completer): Likewise.
435 * cli/cli-dump.c (scan_expression): Likewise.
436 * common/filestuff.c (mkdir_recursive): Likewise.
437 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
438 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
439 (gdb_abspath): Likewise.
440 * compile/compile-cplus-types.c
441 (compile_cplus_instance::decl_name): Likewise.
442 * completer.c (complete_explicit_location):
443 (signal_completer, reg_or_group_completer_1): Likewise.
444 * cp-support.c (cp_remove_params_if_any): Likewise.
445 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
446 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
447 * infcmd.c (strip_bg_char): Likewise.
448 * linespec.c (copy_token_string): Likewise.
449 * mi/mi-main.c (output_cores): Likewise.
450 * psymtab.c (psymtab_search_name):
451 * symfile.c (test_set_ext_lang_command): Likewise.
452 * target.c (target_fileio_read_stralloc): Likewise.
453 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
454 * value.c (complete_internalvar): Likewise.
456 2019-06-04 Christian Biesinger <cbiesinger@google.com>
458 Add objfile property to gdb.Type.
459 * NEWS: Mention Python API addition.
460 * python/py-type.c (typy_get_objfile): New method.
462 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
464 * NEWS: Mention the new set|show style [title|highlight].
465 Mention changes to "show style", "help" and "apropos".
467 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
469 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
470 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
471 instead of print_help_for_command.
472 (print_doc_of_command): New function.
473 (help_list): Add 'apropos -v word' suggestion.
474 (print_help_for_command): Style the command name using title style.
475 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
476 (_initialize_cli_cmds): Describe -v in apropos_command help.
478 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
480 * cli/cli-style.h (cli_style_option): Add name in constructor,
481 add m_name class member, add constructor with intensity,
482 add name class function.
483 (cli_style_option::add_setshow_commands): Remove name argument.
484 (highlight_style, title_style): New styles.
485 * cli/cli-style.c (do_show): New function that shows a style
486 characteristic styling the style name with itself.
487 (set_style_name): New function.
488 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
489 Update all callers according to the changes in cli/cli-style.h.
490 * utils.h (fputs_highlighted): New function.
491 * utils.c (fputs_highlighted): Likewise.
493 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
495 * NEWS: Mention new pipe command and new convenience variables.
497 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
499 * cli/cli-cmds.c (pipe_command): New function.
500 (_initialize_cli_cmds): Call add_com for pipe_command.
501 Define | as an alias for pipe.
502 (exit_status_set_internal_vars): New function.
503 (shell_escape): Call exit_status_set_internal_vars.
504 cli/cli-decode.c (find_command_name_length): Recognize | as
505 a single character command.
507 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
509 * gdbcmd.h (execute_command_to_ui_file): New declaration.
510 top.c (execute_command_to_ui_file): New function, mostly a copy
511 of execute_command_to_string.
512 (execute_command_to_string): Implement by calling
513 execute_command_to_ui_file.
515 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
517 * top.h (saved_command_line): Remove declaration.
518 * top.c (previous_saved_command_line, previous_repeat_arguments):
520 (saved_command_line): Make static, define together with other
522 (dont_repeat): Clear repeat_arguments.
523 (repeat_previous, get_saved_command_line, save_command_line):
525 (gdb_init): Initialize saved_command_line
526 and previous_saved_command_line.
527 * main.c (captured_main_1): Remove saved_command_line initialization.
528 * event-top.c (handle_line_of_input): Update to use
529 the new 'repeat' related functions instead of direct access to
531 * command.h (repeat_previous, get_saved_command_line,
532 save_command_line): New declarations.
533 (dont_repeat): Add comment.
535 2019-05-30 Tom Tromey <tromey@adacore.com>
537 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
539 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
541 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
544 * completer.c (complete): Initialize variable word.
546 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
548 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
549 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
550 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
551 'body' is NULL to the outter 'if', protecting the '!is_define'
554 2019-05-29 Tom Tromey <tromey@adacore.com>
556 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
557 (dwarf_unknown): New function.
558 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
559 (dwarf_type_encoding_name): Use dwarf_unknown.
561 2019-05-29 Tom Tromey <tromey@adacore.com>
564 * cp-valprint.c (cp_print_value_fields): Call
565 cp_print_static_field inside "try".
567 2019-05-29 Tom Tromey <tromey@adacore.com>
569 * inflow.c (struct terminal_info): Add default operator=.
570 * configure: Rebuild.
571 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
572 -Wdeprecated-copy-dtor, -Wredundant-move.
574 2019-05-29 Tom Tromey <tromey@adacore.com>
577 * infcmd.c (print_return_value_1): Handle finish_print
579 (show_print_finish): New function.
580 (_initialize_infcmd): Add "set/show print finish" commands.
581 * valprint.c (user_print_options): Initialize new member.
582 * valprint.h (struct value_print_options) <finish_print>: New
585 2019-05-28 Tom Tromey <tromey@adacore.com>
587 * ada-lang.c (ada_remove_Xbn_suffix)
588 (find_old_style_renaming_symbol)
589 (parse_old_style_renaming): Remove.
590 (ada_find_renaming_symbol): Don't call
591 find_old_style_renaming_symbol.
592 (ada_is_renaming_symbol): Rename from
593 ada_find_renaming_symbol. Remove "block" parameter. Return
595 (ada_read_var_value): Update and simplify.
596 * ada-exp.y (write_var_or_type): Remove old code.
598 2019-05-28 Alan Hayward <alan.hayward@arm.com>
600 * event-top.c: Remove include comment.
601 * inflow.c (class scoped_ignore_sigttou): Move from here...
602 * inflow.h (class scoped_ignore_sigttou): ...to here.
603 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
604 * top.c: Remove include comment.
606 2019-05-27 Tom Tromey <tom@tromey.com>
610 2019-05-22 Tom Tromey <tromey@adacore.com>
612 * target.c (target_follow_exec): Constify parameter.
613 * target-delegates.c: Rebuild.
614 * remote.c (remote_target::follow_exec): Constify parameter.
615 * infrun.c (follow_exec): Constify parameter.
616 * target.h (struct target_ops) <follow_exec>: Constify parameter.
617 (target_follow_exec): Likewise.
619 2019-05-22 Alan Hayward <alan.hayward@arm.com>
621 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
622 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
624 2019-05-22 Alan Hayward <alan.hayward@arm.com>
626 * NEWS: Add debugredirect and testsuite sections.
628 2019-05-22 Simon Cook <simon.cook@embecosm.com>
630 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
631 target descriptions using exclusively floating point register name
634 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
637 * f-lang.c (build_fortran_types): Handle the case where
638 gdbarch_floatformat_for_type returns a nullptr.
640 2019-05-21 Tom de Vries <tdevries@suse.de>
643 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
645 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
648 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
650 * i386-tdep.c (i386_floatformat_for_type): Use
651 floatformats_ia64_quad for the 16-byte floating point component
652 within a fortran 32-byte complex number.
654 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
656 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
657 delete default constructor.
658 (find_partial_die): Update to return const struct.
659 (partial_die_parent_scope): Move variable declaration into scope
660 of its use and change its type to auto.
661 (guess_partial_die_structure_name): Likewise.
662 (partial_die_info::fixup): Likewise.
664 2019-05-17 Tom Tromey <tromey@adacore.com>
666 * source.c (find_and_open_source): Remove cast.
668 2019-05-17 Tom Tromey <tromey@adacore.com>
670 * annotate.c (annotate_source): Make "filename" const.
671 * annotate.h (annotate_source): Use const.
673 2019-05-17 Alan Hayward <alan.hayward@arm.com>
675 * disasm.c (set_disassembler_options): Send errors to stderr.
677 2019-05-17 Alan Hayward <alan.hayward@arm.com>
679 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
680 (cli_interp_base::set_logging): Check debug_redirect.
681 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
682 * cli/cli-logging.c (debug_redirect): Add static variable.
683 (pop_output_files): Add default param.
684 (handle_redirections): Print debug setting.
685 (show_logging_command): Likewise.
686 (_initialize_cli_logging): Add debugredirect command.
687 * interps.c (current_interp_set_logging): Add debug_redirect
689 * interps.h (set_logging): Add debug_redirect parameter.
690 (current_interp_set_logging): Likewise.
691 * mi/mi-common.h: Likewise.
692 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
694 2019-05-17 Alan Hayward <alan.hayward@arm.com>
695 Tom Tromey <tromey@adacore.com>
697 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
699 * cli/cli-interp.h (make_logging_output): Remove declaration.
700 * cli/cli-logging.c (make_logging_output): Remove function.
701 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
703 * ui-file.c (tee_file::tee_file): Remove bools.
704 (tee_file::~tee_file): Remove deletes.
705 * ui-file.h (tee_file): Remove bools.
707 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
709 * mi/mi-cmds.h (mi_cmd_complete): New function.
710 * mi/mi-main.c (mi_cmd_complete): Likewise.
711 * mi/mi-cmds.c: Define new MI command -complete.
712 * NEWS: Mention new -complete command.
714 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
716 * completer.h (complete): New function.
717 * completer.c (complete): Likewise.
718 * cli/cli-cmds.c: (complete_command): Update to use new complete()
719 function defined in completer.h.
721 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
723 * MAINTAINERS (Write After Approval): Add myself.
725 2019-05-17 Tom de Vries <tdevries@suse.de>
728 * dwarf2read.c (struct cu_partial_die_info): New struct.
729 (find_partial_die): Return cu_partial_die_info.
730 (partial_die_parent_scope, guess_partial_die_structure_name)
731 (partial_die_info::fixup): Handle new return type of find_partial_die.
733 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
735 * stap-probe.c (stap_parse_register_operand): Make "regname" an
736 "std::string", simplifying the algorithm.
738 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
740 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
741 (stap_static_probe_ops::get_probes): Likewise.
743 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
745 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
747 (stap_parse_single_operand): Join checks for
748 "gdbarch_stap_parse_special_token_p" and
749 "gdbarch_stap_parse_special_token" in the same "if" statement.
750 Invert check when verifying for operation on register
753 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
755 * stap-probe.c (stap_get_opcode): Update comment.
756 (stap_get_expected_argument_type): Likewise.
757 (handle_stap_probe): Likewise.
759 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
761 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
762 return type to 'bool'. Adjust comment. Use 'bool' when
764 (i386_stap_parse_special_token_three_arg_disp): Likewise.
765 * stap-probe.c (stap_parse_argument_1): Likewise.
766 (stap_is_operator): Likewise.
767 (stap_is_generic_prefix): Likewise.
768 (stap_is_register_prefix): Likewise.
769 (stap_is_register_indirection_prefix): Likewise.
770 (stap_is_integer_prefix): Likewise.
771 (stap_generic_check_suffix): Likewise.
772 (stap_check_integer_suffix): Likewise.
773 (stap_check_register_suffix): Likewise.
774 (stap_check_register_indirection_suffix): Likewise.
775 (stap_parse_register_operand): Likewise.
776 (stap_parse_single_operand): Likewise.
777 (stap_parse_argument_1): Likewise.
778 (stap_probe::get_argument_count): Likewise.
779 (stap_is_operator): Likewise.
781 2019-05-16 Tom Tromey <tromey@adacore.com>
783 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
786 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
788 * linux-thread-db.c (try_thread_db_load_1): Change return type
790 (try_thread_db_load): Likewise.
791 (try_thread_db_load_from_pdir_1): Likewise.
792 (try_thread_db_load_from_pdir): Likewise.
793 (try_thread_db_load_from_sdir): Likewise.
794 (try_thread_db_load_from_dir): Likewise.
795 (thread_db_load_search): Likewise.
796 (has_libpthread): Likewise.
797 (thread_db_load): Likewise.
799 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
801 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
802 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
803 NULL, and complain/return if that's the case.
805 2019-05-15 John Darrington <john@darrington.wattle.id.au>
807 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
808 (advance, posn, abstract_read_memory): New functions.
809 [struct mem_read_abstraction]: New struct.
810 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
812 2019-05-14 Tom Tromey <tromey@adacore.com>
814 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
815 value is not lval_memory.
817 2019-05-14 Tom Tromey <tromey@adacore.com>
819 * solib.c (info_sharedlibrary_command): Style the file name.
821 2019-05-14 Alan Hayward <alan.hayward@arm.com>
823 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
824 (aarch64_vnv_type): Likewise.
825 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
826 * common/tdesc.c: Likewise.
827 * common/tdesc.h (enum tdesc_type_kind): Likewise.
828 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
829 * features/aarch64-fpu.xml: Add ieee half view.
830 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
831 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
832 * gdbtypes.h (struct builtin_type): Likewise.
833 (struct objfile_type): Likewise.
835 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
837 * language.c (language_sniff_from_mangled_name): Fix "langauge"
839 * location.h (string_to_event_location): Likewise.
841 2019-05-11 Joel Brobecker <brobecker@adacore.com>
845 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
847 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
848 New variable declaration.
849 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
851 (print_one_breakpoint): Use ui_out::test_flags and new global
852 variable to compute use_fixed_output.
853 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
855 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
856 (mi_multi_location_breakpoint_output_fixed): Remove.
857 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
859 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
860 fix_multi_location_breakpoint_output flag if version >= 3.
861 * ui-out.h (enum ui_out_flag)
862 <fix_multi_location_breakpoint_output>: New enumerator.
864 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
866 * contrib/cc-with-tweaks.sh: Validate dwz's work.
868 2019-05-10 Tom Tromey <tromey@adacore.com>
870 * ada-lang.c (catch_ada_completer): New function.
871 (_initialize_ada_language): Use it.
873 2019-05-10 Tom Tromey <tromey@adacore.com>
875 * thread.c (print_thread_info): Make "requested_threads" const.
876 * gdbthread.h (print_thread_info): Make "requested_threads"
878 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
879 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
881 2019-05-08 Tom Tromey <tom@tromey.com>
883 * gdbtypes.c (objfile_type_data): Change type.
884 (objfile_type, _initialize_gdbtypes): Update.
886 2019-05-08 Tom Tromey <tom@tromey.com>
888 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
889 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
890 (_initialize_dwarf2_frame): Update.
892 2019-05-08 Tom Tromey <tom@tromey.com>
894 * objc-lang.c (objc_objfile_data): Change type.
895 (find_methods): Update.
896 (_initialize_objc_lang): Remove.
898 2019-05-08 Tom Tromey <tom@tromey.com>
900 * stabsread.c (rs6000_builtin_type_data): Change type.
901 (rs6000_builtin_type, _initialize_stabsread): Update.
903 2019-05-08 Tom Tromey <tom@tromey.com>
905 * mips-tdep.c (mips_pdr_data): Remove.
906 (_initialize_mips_tdep): Update.
908 2019-05-08 Tom Tromey <tom@tromey.com>
910 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
911 (hppa_init_objfile_priv_data, read_unwind_info)
912 (find_unwind_entry, _initialize_hppa_tdep): Update.
914 2019-05-08 Tom Tromey <tom@tromey.com>
916 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
917 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
919 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
921 2019-05-08 Tom Tromey <tom@tromey.com>
923 * mdebugread.c (basic_type_data): Change type.
924 (basic_type, _initialize_mdebugread): Update.
926 2019-05-08 Tom Tromey <tom@tromey.com>
928 * common/gdb_unique_ptr.h (struct noop_deleter): New.
930 2019-05-08 Tom Tromey <tom@tromey.com>
932 * nto-tdep.c (nto_inferior_data_reg): Change type.
933 (nto_inferior_data): Update.
934 (nto_inferior_data_cleanup, nto_new_inferior_data)
935 (_initialize_nto_tdep): Remove.
936 * nto-tdep.h (struct nto_inferior_data): Add initializers.
938 2019-05-08 Tom Tromey <tom@tromey.com>
940 * ada-lang.c (struct ada_inferior_data): Add initializers.
941 (ada_inferior_data): Change type.
942 (ada_inferior_data_cleanup): Remove.
943 (get_ada_inferior_data, ada_inferior_exit)
944 (struct ada_pspace_data): Add initializers, destructor.
945 (ada_pspace_data_handle): Change type.
946 (get_ada_pspace_data): Update.
947 (ada_pspace_data_cleanup): Remove.
949 2019-05-08 Tom Tromey <tom@tromey.com>
951 * coffread.c (struct coff_symfile_info): Add initializers.
952 (coff_objfile_data_key): Move lower. Change type.
953 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
955 (coff_free_info): Remove.
957 2019-05-08 Tom Tromey <tom@tromey.com>
959 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
960 (fbsd_pspace_data_handle): Move lower. Change type.
961 (get_fbsd_pspace_data): Update.
962 (fbsd_pspace_data_cleanup): Remove.
963 (_initialize_fbsd_tdep): Update.
965 2019-05-08 Tom Tromey <tom@tromey.com>
967 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
968 (get_ada_tasks_pspace_data): Update.
969 (ada_tasks_pspace_data_cleanup): Remove.
970 (_initialize_tasks): Update.
971 (ada_tasks_inferior_data_handle): Change type.
972 (get_ada_tasks_inferior_data): Update.
973 (ada_tasks_inferior_data_cleanup): Remove.
974 (struct ada_tasks_pspace_data): Add initializers.
976 2019-05-08 Tom Tromey <tom@tromey.com>
978 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
979 * symfile-debug.c (debug_sym_get_probes): Change type.
980 * stap-probe.c (handle_stap_probe):
981 (stap_static_probe_ops::get_probes): Change type.
982 * probe.h (class static_probe_ops) <get_probes>: Change type.
983 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
984 (parse_probes_in_pspace): Update.
985 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
987 (any_static_probe_ops::get_probes): Change type.
988 * elfread.c (elfread_data): New typedef.
989 (probe_key): Change type.
990 (elf_get_probes): Likewise. Update.
991 (probe_key_free): Remove.
992 (_initialize_elfread): Update.
993 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
995 (dtrace_process_dof_probe, dtrace_process_dof)
996 (dtrace_static_probe_ops::get_probe): Change type.
998 2019-05-08 Tom Tromey <tom@tromey.com>
1000 * xcoffread.c (struct xcoff_symfile_info): Rename from
1001 coff_symfile_info. Add initializers.
1002 (xcoff_objfile_data_key): Move lower. Change type.
1003 (XCOFF_DATA): Rewrite.
1004 (xcoff_free_info): Remove.
1005 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
1006 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
1007 (xcoff_initial_scan): Update.
1009 2019-05-08 Tom Tromey <tom@tromey.com>
1011 * solib-svr4.c (struct svr4_info): Add initializers and
1013 <probes_table>: Now an htab_up.
1014 (solib_svr4_pspace_data): Change type.
1015 (free_probes_table): Simplify.
1016 (~svr4_info): Rename from svr4_pspace_data_cleanup.
1017 (get_svr4_info, probes_table_htab_remove_objfile_probes)
1018 (probes_table_remove_objfile_probes, register_solib_event_probe)
1019 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
1020 (_initialize_svr4_solib): Update.
1022 2019-05-08 Tom Tromey <tom@tromey.com>
1024 * remote.c (remote_pspace_data): Change type.
1025 (remote_pspace_data_cleanup): Remove.
1026 (get_remote_exec_file, set_pspace_remote_exec_file)
1027 (_initialize_remote): Update.
1029 2019-05-08 Tom Tromey <tom@tromey.com>
1031 * breakpoint.c (breakpoint_objfile_key): Change type.
1032 (get_breakpoint_objfile_data): Update.
1033 (free_breakpoint_objfile_data): Remove.
1034 (_initialize_breakpoint): Update.
1036 2019-05-08 Tom Tromey <tom@tromey.com>
1038 * linux-tdep.c (struct linux_info): Add initializers.
1039 (linux_inferior_data): Move. Change type.
1040 (invalidate_linux_cache_inf): Update.
1041 (linux_inferior_data_cleanup): Remove.
1042 (get_linux_inferior_data, _initialize_linux_tdep): Update.
1044 2019-05-08 Tom Tromey <tom@tromey.com>
1046 * auxv.c (auxv_inferior_data): Move. Change type.
1047 (auxv_inferior_data_cleanup): Remove.
1048 (invalidate_auxv_cache_inf): Rewrite.
1049 (get_auxv_inferior_data, _initialize_auxv): Update.
1051 2019-05-08 Tom Tromey <tom@tromey.com>
1053 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
1054 (symfile_debug_objfile_data_key): Change type.
1055 (symfile_debug_installed, debug_qf_has_symbols)
1056 (debug_qf_find_last_source_symtab)
1057 (debug_qf_forget_cached_source_info)
1058 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
1059 (debug_qf_print_stats, debug_qf_dump)
1060 (debug_qf_expand_symtabs_for_function)
1061 (debug_qf_expand_all_symtabs)
1062 (debug_qf_expand_symtabs_with_fullname)
1063 (debug_qf_map_matching_symbols)
1064 (debug_qf_expand_symtabs_matching)
1065 (debug_qf_find_pc_sect_compunit_symtab)
1066 (debug_qf_map_symbol_filenames)
1067 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
1068 (debug_sym_new_init, debug_sym_init, debug_sym_read)
1069 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
1070 (debug_sym_read_linetable, debug_sym_relocate): Update.
1071 (symfile_debug_free_objfile): Remove.
1072 (install_symfile_debug_logging, _initialize_symfile_debug):
1075 2019-05-08 Tom Tromey <tom@tromey.com>
1077 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
1078 allocate_on_obstack.
1079 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
1080 (get_dwarf2_per_objfile): Update.
1081 (set_dwarf2_per_objfile): Remove.
1082 (dwarf2_has_info, dwarf2_get_section_info): Update.
1083 (dwarf2_free_objfile): Remove.
1084 (_initialize_dwarf2_read): Update.
1086 2019-05-08 Tom Tromey <tom@tromey.com>
1088 * auto-load.c (struct auto_load_pspace_info): Add destructor and
1090 <unsupported_script_warning_printed,
1091 script_not_found_warning_printed>: Now bool.
1092 (auto_load_pspace_data): Change type.
1093 (~auto_load_pspace_info): Rename from
1094 auto_load_pspace_data_cleanup.
1095 (get_auto_load_pspace_data, init_loaded_scripts_info)
1096 (clear_section_scripts, maybe_print_unsupported_script_warning)
1097 (maybe_print_script_not_found_warning, _initialize_auto_load):
1100 2019-05-08 Tom Tromey <tom@tromey.com>
1102 * objfiles.c (objfile_pspace_info): Add destructor and
1104 (objfiles_pspace_data): Change type.
1105 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
1106 (get_objfile_pspace_data): Update.
1107 (objfiles_bfd_data): Change type.
1108 (get_objfile_bfd_data): Update.
1109 (objfile_bfd_data_free, _initialize_objfiles): Remove.
1111 2019-05-08 Tom Tromey <tom@tromey.com>
1113 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
1115 (get_catch_syscall_inferior_data): Update.
1116 (catch_syscall_inferior_data_cleanup): Remove.
1117 (_initialize_break_catch_syscall): Update.
1119 2019-05-08 Tom Tromey <tom@tromey.com>
1121 * inflow.c (struct terminal_info): Add destructor and
1123 (inflow_inferior_data): Change type.
1124 (~terminal_info): Rename from inflow_inferior_data_cleanup.
1125 (get_inflow_inferior_data, inflow_inferior_exit)
1126 (swap_terminal_info, _initialize_inflow): Update.
1128 2019-05-08 Tom Tromey <tom@tromey.com>
1130 * target-dcache.c (target_dcache_cleanup): Remove.
1131 (target_dcache_aspace_key): Change type.
1132 (target_dcache_init_p, target_dcache_invalidate)
1133 (target_dcache_get, target_dcache_get_or_init)
1134 (_initialize_target_dcache): Update.
1135 * dcache.h (struct dcache_deleter): New.
1137 2019-05-08 Tom Tromey <tom@tromey.com>
1139 * symtab.c (struct symbol_cache): Add destructor and
1141 (symbol_cache_key): Move. Change type.
1142 (make_symbol_cache, free_symbol_cache): Remove.
1143 (get_symbol_cache): Update.
1144 (symbol_cache_cleanup): Remove.
1145 (ALL_PSPACES, symbol_cache_flush)
1146 (maintenance_print_symbol_cache)
1147 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
1150 2019-05-08 Tom Tromey <tom@tromey.com>
1152 * symtab.c (struct main_info): Add destructor and initializers.
1153 (main_progspace_key): Move. Change type.
1154 (get_main_info): Update.
1155 (main_info_cleanup): Remove.
1156 (_initialize_symtab): Update.
1158 2019-05-08 Tom Tromey <tom@tromey.com>
1160 * registry.h (DECLARE_REGISTRY): Define the _key class.
1162 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1164 * NEWS: Merge two 'New commands' sections.
1166 2019-05-08 Joel Brobecker <brobecker@adacore.com>
1168 * ada-valprint.c (ada_val_print_gnat_array): Remove language
1169 parameter and use Ada language definition instead.
1170 (ada_val_print_ptr): Remove unused language parameter.
1171 (ada_val_print_num): Remove language parameter and use Ada language
1173 (ada_val_print_enum, ada_val_print_flt): Remove unused language
1175 (ada_val_print_struct_union, ada_val_print_ref): Remove language
1176 parameter and use Ada language definition instead.
1177 (ada_val_print_1): Update all ada_val_print_xxx calls.
1178 Remove language parameter.
1179 (ada_val_print): Update ada_val_print_1 call.
1181 2019-05-08 Tom Tromey <tromey@adacore.com>
1183 * remote.c (remote_hw_watchpoint_limit)
1184 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
1187 2019-05-08 Tom Tromey <tromey@adacore.com>
1189 * maint.c (_initialize_maint_cmds): Move initialization code to
1191 (watchdog, show_watchdog): Move to remote.c.
1192 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
1194 (_initialize_remote): Move initialization code from maint.c.
1195 * defs.h (watchdog): Don't declare.
1197 2019-05-08 Tom Tromey <tromey@adacore.com>
1199 * tui/tui-interp.c: Include main.h.
1200 * interps.c: Include main.h.
1201 * main.h (interpreter_p): Declare.
1202 * defs.h (interpreter_p): Don't declare.
1204 2019-05-08 Tom Tromey <tromey@adacore.com>
1206 * dwarf2loc.c: Include dwarf2read.h.
1207 * defs.h (read_unsigned_leb128): Don't declare.
1208 * dwarf2read.h (read_unsigned_leb128): Declare.
1210 2019-05-08 Tom Tromey <tromey@adacore.com>
1212 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
1215 2019-05-08 Tom Tromey <tromey@adacore.com>
1217 * utils.c (fputs_maybe_filtered): Reset style after paging, even
1218 when no wrap column is set.
1220 2019-05-08 Tom Tromey <tromey@adacore.com>
1222 * c-lang.c (c_get_string): Handle non-C-style arrays.
1224 2019-05-08 Tom Tromey <tromey@adacore.com>
1226 * typeprint.c (print_offset_data::update): Print the bit offset,
1227 not the number of bits remaining.
1229 2019-05-08 Tom Tromey <tromey@adacore.com>
1231 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
1232 padding at end of comment.
1234 2019-05-08 Tom Tromey <tromey@adacore.com>
1236 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
1239 2019-05-06 Tom Tromey <tom@tromey.com>
1241 * common/scoped_mmap.c: Include common-defs.h.
1242 * common/scoped_mmap.h: Don't include config.h.
1244 2019-05-04 Tom Tromey <tom@tromey.com>
1246 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
1247 (struct aarch64_call_info): Add initializers.
1248 <si>: Now a std::vector.
1249 (pass_on_stack, aarch64_push_dummy_call): Update.
1251 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
1252 Tom Tromey <tom@tromey.com>
1254 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
1255 (ppc_threads): Now a std::vector. Now static.
1256 (hwdebug_find_thread_points_by_tid)
1257 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
1260 2019-05-04 Tom Tromey <tom@tromey.com>
1262 * arc-tdep.c (arc_tdesc_init): Return bool.
1264 2019-05-04 Tom Tromey <tom@tromey.com>
1266 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1267 Use gdb_assert_not_reached.
1269 2019-05-04 Tom Tromey <tom@tromey.com>
1271 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1274 2019-05-04 Tom Tromey <tom@tromey.com>
1276 * arc-tdep.c (arc_tdesc_init): Use bool.
1278 2019-05-04 Tom Tromey <tom@tromey.com>
1280 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1282 2019-05-04 Tom Tromey <tom@tromey.com>
1284 * cli/cli-cmds.c (valid_command_p): Return bool.
1286 2019-05-04 Tom Tromey <tom@tromey.com>
1288 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1289 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1291 2019-05-04 Raul Tambre <raul@tambre.ee>
1293 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1294 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1295 operator for comparison.
1297 2019-05-04 Tom Tromey <tom@tromey.com>
1299 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1300 (lookup_partial_symbol, print_partial_symbols)
1301 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1302 (psymbol_compare): Update.
1303 (add_psymbol_to_bcache): Clear the entire psymbol.
1304 (maintenance_check_psymtabs): Update.
1305 * psympriv.h (struct partial_symbol): Don't derive from
1306 general_symbol_info.
1307 <obj_section, unrelocated_address, address,
1308 set_unrelocated_address>: Update.
1309 <ginfo>: New member.
1310 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1311 (debug_names::write_psymbols): Update.
1313 2019-05-04 Tom de Vries <tdevries@suse.de>
1315 * contrib/cc-with-tweaks.sh: Support -n arg.
1317 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1319 * corelow.c (core_target::detach): Ensure frame cache and
1320 register caches are cleared.
1321 inferior.c (exit_inferior_1): Likewise.
1323 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1324 Tom Tromey <tom@tromey.com>
1326 * dictionary.c (collate_pending_symbols_by_language): Remove
1327 "struct" from foreach.
1328 * symtab.c (lookup_global_symbol_from_objfile)
1329 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1331 * ser-tcp.c (net_open): Remove "struct" from foreach.
1332 * objfiles.c (objfile_relocate, objfile_rebase)
1333 (objfile_has_symbols): Remove "struct" from foreach.
1334 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1336 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1338 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1339 "struct" from foreach.
1340 * ada-lang.c (create_excep_cond_exprs)
1341 (ada_exception_catchpoint_cond_string): Remove "struct" from
1344 2019-05-03 Tom Tromey <tromey@adacore.com>
1346 * ada-exp.y (convert_char_literal): Check suffix of each
1349 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1352 * ada-exp.y (yywrap): Don't define.
1353 * ada-lex.l (%option): Add noyywrap
1356 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1358 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1359 _WIN32_WINNT to the XP level, unless already defined to a higher
1362 * unittests/parse-connection-spec-selftests.c:
1364 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1367 * symfile.c (find_separate_debug_file): Remove colon from the
1368 drive spec of DOS/Windows file names of the target, so that the
1369 file name produced from DEBUGDIR and the target's directory will
1370 be valid on DOS/Windows systems.
1372 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1374 * rust-lang.c (val_print_struct): Handle printing structures
1377 2019-05-02 Tom Tromey <tromey@adacore.com>
1379 * valarith.c (_initialize_valarith): Remove.
1381 2019-05-01 Tom Tromey <tromey@adacore.com>
1383 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1386 2019-05-01 Tom Tromey <tromey@adacore.com>
1388 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1389 for big-endian copies.
1391 2019-04-30 Ali Tamur <tamur@google.com>
1392 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1393 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1394 (read_3_bytes): New function.
1396 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1398 * windows-nat.c (main_thread_id): Delete.
1399 (handle_output_debug_string): Replace main_thread_id by
1400 current_event.dwThreadId.
1401 (fake_create_process): Likewise.
1402 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1403 Do not set main_thread_id.
1404 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1405 current_event.dwThreadId.
1406 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1408 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1410 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1411 Use current_event.dwThreadId instead of main_thread_id.
1413 2019-04-30 Tom Tromey <tromey@adacore.com>
1415 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1416 (create_excep_cond_exprs): Iterate over program spaces.
1417 (ada_exception_catchpoint_cond_string): Examine all minimal
1418 symbols for exception types.
1420 2019-04-30 Tom Tromey <tromey@adacore.com>
1423 * dwarf2read.c (process_structure_scope): Handle case where type
1424 has template parameters but no symbol was created.
1426 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1427 Chris January <chris.january@arm.com>
1429 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1431 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1433 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1435 * f-typeprint.c (f_print_type): Update rules for printing
1437 (f_type_print_varspec_suffix): Likewise.
1439 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1440 Chris January <chris.january@arm.com>
1442 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1445 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1447 * f-lang.c (build_fortran_types): Change name of void type to
1449 * f-typeprint.c (f_type_print_base): Print the name of the void
1450 type, rather than a fixed string.
1451 * f-valprint.c (f_decorations): Use lower case void string.
1453 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1454 Chris January <chris.january@arm.com>
1456 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1459 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1460 Chris January <chris.january@arm.com>
1461 David Lecomber <david.lecomber@arm.com>
1463 * f-exp.y (BINOP_INTRINSIC): New token.
1464 (exp): New parser rule handling BINOP_INTRINSIC.
1465 (f77_keywords): Add new builtin procedures.
1466 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1467 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1468 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1469 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1470 (print_unop_subexp_f): New function.
1471 (print_binop_subexp_f): New function.
1472 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1473 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1474 (dump_subexp_body_f): Likewise.
1475 (operator_check_f): Likewise.
1476 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1477 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1479 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1481 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1483 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1484 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1485 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1486 (operator_length_f): New fuction.
1487 (print_subexp_f): New function.
1488 (op_name_f): New function.
1489 (dump_subexp_body_f): New function.
1490 (operator_check_f): New function.
1491 (exp_descriptor_f): Replace standard expression handling functions
1493 * gdb/fortran-operator.def: New file.
1494 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1495 * gdb/std-operator.def: Remove UNOP_KIND.
1497 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1499 * std-operator.def: Remove unbalanced, stray double quote
1502 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1503 Chris January <chris.january@arm.com>
1504 Daniel Everett <daniel.everett@arm.com>
1505 Nick Forrington <nick.forrington@arm.com>
1506 Richard Bunt <richard.bunt@arm.com>
1508 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1509 of depth when printing anonymous structs or unions.
1510 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1511 Don't print either the top-level value, or the children if the
1512 max-depth is exceeded.
1513 (ppscm_print_children): When printing the key of a map, allow one
1514 extra level of depth.
1515 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1516 print either the top-level value, or the children if the max-depth
1518 (print_children): When printing the key of a map, allow one extra
1520 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1521 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1522 (user_print_options): Initialise max_depth field.
1523 (val_print_scalar_or_string_type_p): New function.
1524 (val_print): Check to see if the max depth has been reached.
1525 (val_print_check_max_depth): Define new function.
1526 (show_print_max_depth): New function.
1527 (_initialize_valprint): Add 'print max-depth' option.
1528 * valprint.h (struct value_print_options) <max_depth>: New field.
1529 (val_print_check_max_depth): Declare new function.
1530 * NEWS: Document new feature.
1532 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1534 * ada-lang.c (ada_language_defn): Initialise new field.
1535 * c-lang.c (c_is_string_type_p): New function.
1536 (c_language_defn): Initialise new field.
1537 (cplus_language_defn): Initialise new field.
1538 (asm_language_defn): Initialise new field.
1539 (minimal_language_defn): Initialise new field.
1540 * c-lang.h (c_is_string_type_p): Declare new function.
1541 * d-lang.c (d_language_defn): Initialise new field.
1542 * f-lang.c (f_is_string_type_p): New function.
1543 (f_language_defn): Initialise new field.
1544 * go-lang.c (go_is_string_type_p): New function.
1545 (go_language_defn): Initialise new field.
1546 * language.c (default_is_string_type_p): New function.
1547 (unknown_language_defn): Initialise new field.
1548 (auto_language_defn): Initialise new field.
1549 * language.h (struct language_defn) <la_is_string_type_p>: New
1551 (default_is_string_type_p): Declare new function.
1552 * m2-lang.c (m2_language_defn): Initialise new field.
1553 * objc-lang.c (objc_language_defn): Initialise new field.
1554 * opencl-lang.c (opencl_language_defn): Initialise new field.
1555 * p-lang.c (pascal_is_string_type_p): New function.
1556 (pascal_language_defn): Initialise new field.
1557 * rust-lang.c (rust_is_string_type_p): New function.
1558 (rust_language_defn): Initialise new field.
1560 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1562 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1564 * ada-lang.c (ada_language_defn): Initialise new field.
1565 * c-lang.c (c_language_defn): Likewise.
1566 (cplus_language_defn): Likewise.
1567 (asm_language_defn): Likewise.
1568 (minimal_language_defn): Likewise.
1569 * d-lang.c (d_language_defn): Likewise.
1570 * f-lang.c (f_language_defn): Likewise.
1571 * go-lang.c (go_language_defn): Likewise.
1572 * language.c (unknown_language_defn): Likewise.
1573 (auto_language_defn): Likewise.
1574 * m2-lang.c (m2_language_defn): Likewise.
1575 * objc-lang.c (objc_language_defn): Likewise.
1576 * opencl-lang.c (opencl_language_defn): Likewise.
1577 * p-lang.c (pascal_language_defn): Likewise.
1578 * rust-lang.c (rust_language_defn): Likewise.
1580 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1582 * ada-lang.c (ada_is_character_type): Change return type to bool.
1583 (ada_is_string_type): Likewise.
1584 * ada-lang.h (ada_is_character_type): Update declaration
1585 (ada_is_string_type): Likewise.
1587 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1589 Support style in 'frame|thread apply'
1591 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1592 * record.c (record_start, record_stop): Update callers of
1593 execute_command_to_string with false.
1594 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1595 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1597 (class string_file): New constructor with term_out parameter.
1598 Override methods term_out and can_emit_style_escape. New member
1600 (class stdio_file): Override can_emit_style_escape.
1601 (class tee_file): Override term_out and can_emit_style_escape.
1602 * utils.h (can_emit_style_escape): Remove.
1603 * utils.c (can_emit_style_escape): Likewise.
1604 Update all callers of can_emit_style_escape (SOMESTREAM) to
1605 SOMESTREAM->can_emit_style_escape.
1606 * source-cache.c (source_cache::get_source_lines): Likewise.
1607 * stack.c (frame_apply_command_count): Call execute_command_to_string
1608 passing the term_out characteristic of the current gdb_stdout.
1609 * thread.c (thr_try_catch_cmd): Likewise.
1610 * top.c (execute_command_to_string): pass term_out parameter
1611 to construct the string_file for the command output.
1612 * ui-file.c (term_cli_styling): New function (most code moved
1613 from utils.c can_emit_style_escape).
1614 (string_file::string_file, string_file::can_emit_style_escape,
1615 stdio_file::can_emit_style_escape, tee_file::term_out,
1616 tee_file::can_emit_style_escape): New functions.
1618 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1620 * NEWS: Mention the new set|show may-call-functions.
1621 * infcall.c (may_call_functions_p): New variable.
1622 (show_may_call_functions_p): New function.
1623 (call_function_by_hand_dummy): Throws an error if not
1625 (_initialize_infcall): Call add_setshow_boolean_cmd for
1628 2019-04-25 Keith Seitz <keiths@redhat.com>
1631 * cp-support.c (inspect_type): Don't attempt substitutions
1632 of symbol with the same name.
1634 2019-04-25 Tom Tromey <tromey@adacore.com>
1637 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1640 2019-04-25 Tom Tromey <tromey@adacore.com>
1642 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1644 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1645 (gdb_xml_parser::parse): Use std::move.
1646 * python/python-internal.h (gdbpy_convert_exception): Take a const
1648 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1650 * python/py-utils.c (gdbpy_convert_exception): Take a const
1652 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1654 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1656 * mi/mi-main.c (mi_print_exception): Take a const reference.
1657 * main.c (handle_command_errors): Take a const reference.
1658 * linespec.c (parse_linespec): Use std::move.
1659 * infcall.c (run_inferior_call): Use std::move.
1660 (call_function_by_hand_dummy): Use std::move.
1661 * exec.c (try_open_exec_file): Use std::move.
1662 * exceptions.h (exception_print, exception_fprintf)
1663 (exception_print_same): Update.
1664 * exceptions.c (print_exception, exception_print)
1665 (exception_fprintf, exception_print_same): Change parameters to
1667 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1668 * common/new-op.c: Use std::move.
1669 * common/common-exceptions.h (struct gdb_exception): Add move
1671 (struct gdb_exception_error, struct gdb_exception_quit, struct
1672 gdb_quit_bad_alloc): Change constructor to move constructor.
1673 (throw_exception): Change parameter to rvalue reference.
1674 * common/common-exceptions.c (throw_exception): Take rvalue
1676 * cli/cli-interp.c (safe_execute_command): Use std::move.
1677 * breakpoint.c (insert_bp_location, location_to_sals): Use
1680 2019-04-25 Tom Tromey <tromey@adacore.com>
1682 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1683 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1684 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1685 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1686 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1687 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1688 guile/scm-value.c: Use unpack.
1689 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1690 gdbscm_gdb_exception.
1691 (gdbscm_throw_gdb_exception): Likewise.
1692 (struct gdbscm_gdb_exception): New.
1693 (unpack): New function.
1694 (gdbscm_wrap): Use unpack.
1696 2019-04-25 Tom Tromey <tromey@adacore.com>
1698 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1699 (gdb_rl_callback_handler): Use std::move.
1700 * common/common-exceptions.h (struct gdb_exception): Add move
1701 assignment operator.
1702 (throw_exception_sjlj): Change "exception" to const reference.
1703 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1704 (throw_exception_sjlj): Change "exception" to const reference.
1706 2019-04-25 Tom Tromey <tromey@adacore.com>
1708 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1709 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1710 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1712 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1714 * mi/mi-interp.c (mi_interp::exec): Update.
1715 * linespec.c (parse_linespec): Update.
1716 * infcall.c (run_inferior_call): Update.
1717 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1718 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1719 (gdbscm_lookup_global_symbol): Update.
1720 * guile/scm-param.c (gdbscm_parameter_value): Update.
1721 * guile/scm-frame.c (gdbscm_frame_read_register)
1722 (gdbscm_frame_read_var): Update.
1723 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1724 * exec.c (try_open_exec_file): Update.
1725 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1726 (gdb_rl_callback_handler): Update.
1727 * common/common-exceptions.h (exception_none): Don't declare.
1728 * common/common-exceptions.c (exception_none): Don't define.
1729 (struct catcher) <exception>: Update.
1730 * cli/cli-interp.c (safe_execute_command): Update.
1731 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1733 2019-04-25 Ali Tamur <tamur@google.com>
1735 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1736 (read_attribute_value): Likewise.
1737 (dwarf2_read_addr_index): Update comment.
1738 (read_str_index): Add DW_FORM_strx.
1739 (dwarf2_string_attr): Likewise.
1740 (dwarf2_const_value_attr): Likewise.
1741 (dump_die_shallow): Likewise.
1742 (dwarf2_fetch_constant_bytes): Likewise.
1743 (skip_form_bytes): Likewise.
1744 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1746 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1750 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1751 OFFSET. Verify if current mapping contains an ELF header.
1752 (linux_find_memory_regions_full): Adjust call to
1755 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1756 Kang Li <kanglictf@gmail.com>
1760 * dwarf2-frame.c (read_initial_length): Be consistent about using
1761 unsigned representation of length.
1762 (decode_frame_entry_1): Likewise. Check for wraparound of
1763 end pointer as well as buffer overflow.
1765 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1767 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1770 2019-04-24 Tom Tromey <tromey@adacore.com>
1772 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1774 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1776 * s12z-tdep.c (s12z_unwind_pc): Delete.
1777 (s12z_unwind_sp): Delete.
1778 (s12z_gdbarch_init): Don't register deleted functions with
1781 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1783 * rl78-tdep.c (rl78_unwind_sp): Delete.
1784 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1786 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1788 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1789 (xstormy16_unwind_pc): Delete.
1790 (xstormy16_dummy_id): Delete.
1791 (xstormy16_gdbarch_init): Don't register deleted functions with
1794 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1796 * vax-tdep.c (vax_unwind_pc): Delete.
1797 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1799 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1801 * v850-tdep.c (v850_unwind_sp): Delete.
1802 (v850_unwind_pc): Delete.
1803 (v850_dummy_id): Delete.
1804 (v850_gdbarch_init): Don't register deleted functions with
1807 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1809 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1810 (tilegx_unwind_pc): Delete.
1811 (tilegx_unwind_dummy_id): Delete.
1812 (tilegx_gdbarch_init): Don't register deleted functions with
1815 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1817 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1818 (tic6x_dummy_id): Delete.
1819 (tic6x_gdbarch_init): Don't register deleted functions with
1822 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1824 * sparc-tdep.c (sparc_unwind_pc): Delete.
1825 (sparc32_gdbarch_init): Don't register deleted function with
1828 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1830 * sh-tdep.c (sh_unwind_sp): Delete.
1831 (sh_unwind_pc): Delete.
1832 (sh_dummy_id): Delete.
1833 (sh_gdbarch_init): Don't register deleted functions with
1836 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1838 * score-tdep.c (score_unwind_sp): Delete.
1839 (score_unwind_pc): Delete.
1840 (score_dummy_id): Delete.
1841 (score_gdbarch_init): Don't register deleted functions with
1844 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1846 * rx-tdep.c (rx_unwind_pc): Delete.
1847 (rx_unwind_sp): Delete.
1848 (rx_dummy_id): Delete.
1849 (rx_gdbarch_init): Don't register deleted functions with
1850 gdbarch. Update comment.
1852 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1854 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1855 (rs6000_dummy_id): Delete.
1856 (rs6000_gdbarch_init): Don't register deleted functions with
1859 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1861 * or1k-tdep.c (or1k_dummy_id): Delete.
1862 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1864 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1866 * nios2-tdep.c (nios2_dummy_id): Delete.
1867 (nios2_unwind_sp): Delete.
1868 (nios2_gdbarch_init): Don't register deleted functions with
1871 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1873 * nds32-tdep.c (nds32_dummy_id): Delete.
1874 (nds32_unwind_pc): Delete.
1875 (nds32_unwind_sp): Delete.
1876 (nds32_gdbarch_init): Don't register deleted functions with
1879 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1881 * msp430-tdep.c (msp430_unwind_pc): Delete.
1882 (msp430_unwind_sp): Delete.
1883 (msp430_dummy_id): Delete.
1884 (msp430_gdbarch_init): Don't register deleted functions with
1887 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1889 * moxie-tdep.c (moxie_unwind_sp): Delete.
1890 (moxie_unwind_pc): Delete.
1891 (moxie_dummy_id): Delete.
1892 (moxie_gdbarch_init): Don't register deleted functions with
1895 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1897 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1898 (mn10300_unwind_pc): Delete.
1899 (mn10300_unwind_sp): Delete.
1900 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1902 (mn10300_frame_unwind_init): Don't register deleted functions with
1905 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1907 * mep-tdep.c (mep_unwind_pc): Delete.
1908 (mep_unwind_sp): Delete.
1909 (mep_dummy_id): Delete.
1910 (mep_gdbarch_init): Don't register deleted functions with
1913 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1915 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1916 (m68hc11_unwind_sp): Delete.
1917 (m68hc11_gdbarch_init): Don't register deleted functions with
1920 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1922 * m32r-tdep.c (m32r_unwind_sp): Delete.
1923 (m32r_unwind_pc): Delete.
1924 (m32r_dummy_id): Delete.
1925 (m32r_gdbarch_init): Don't register deleted functions with
1928 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1930 * m32c-tdep.c (m32c_unwind_pc): Delete.
1931 (m32c_unwind_sp): Delete.
1932 (m32c_dummy_id): Delete.
1933 (m32c_gdbarch_init): Don't register deleted functions with
1936 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1938 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1939 (lm32_unwind_pc): Delete.
1940 (lm32_dummy_id): Delete.
1941 (lm32_gdbarch_init): Don't register deleted functions with
1944 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1946 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1947 (iq2000_unwind_pc): Delete.
1948 (iq2000_dummy_id): Delete.
1949 (iq2000_gdbarch_init): Don't register deleted functions with
1952 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1954 * nds32-tdep.c (nds32_type_align): Delete.
1955 (nds32_push_dummy_call): Use type_align instead.
1957 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1959 * arm-tdep.c (arm_type_align): Only handle vector override case.
1960 (arm_push_dummy_call): Use type_align.
1961 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1965 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1967 (pass_on_stack): Use type_align.
1968 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1971 2019-04-23 Tom Tromey <tromey@adacore.com>
1973 * dwarf2read.c (line_header::file_name_at): Remove unused
1976 2019-04-23 Tom de Vries <tdevries@suse.de>
1979 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1983 2019-03-27 Ali Tamur <tamur@google.com>
1985 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1986 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1987 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1988 (dwarf_expr_context::get_addr_index): Likewise
1989 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1990 (symbol_needs_eval_context::get_addr_index): Likewise
1991 (disassemble_dwarf_expression): Add DW_OP_addrx
1992 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1993 (read_cutu_die_from_dwo): Update comment
1994 (skip_one_die): Add DW_FORM_addrx
1995 (read_attribute_value): Likewise
1996 (var_decode_location): Add DW_OP_addrx
1997 (dwarf2_const_value_attr): Add DW_FORM_addrx
1998 (dump_die_shallow): Likewise
1999 (dwarf2_fetch_constant_bytes): Likewise
2000 (decode_locdesc): Add DW_OP_addrx
2001 (skip_form_bytes): Add DW_FORM_addrx
2003 2019-04-22 Ali Tamur <tamur@google.com>
2005 * MAINTAINERS (Write After Approval): Add self.
2007 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
2009 * solib-svr4.c (get_svr4_info): Add pspace parameter.
2010 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
2011 (open_symbol_file_object): Likewise.
2012 (svr4_default_sos): Add info parameter.
2013 (svr4_read_so_list): Likewise.
2014 (svr4_current_sos_direct): Adjust functions calls to pass down
2016 (svr4_current_sos_1): Add info parameter.
2017 (svr4_current_sos): Call get_svr4_info, pass info down to
2019 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
2021 (svr4_in_dynsym_resolve_code): Pass current_program_space to
2023 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
2025 (probes_table_remove_objfile_probes): Likewise.
2026 (register_solib_event_probe): Add info parameter.
2027 (solist_update_incremental): Pass info parameter down to
2029 (disable_probes_interface): Add info parameter.
2030 (svr4_handle_solib_event): Pass current_program_space to
2031 get_svr4_info. Adjust disable_probes_interface cleanup.
2032 (svr4_create_probe_breakpoints): Add info parameter, pass it
2033 down to register_solib_event_probe.
2034 (svr4_create_solib_event_breakpoints): Add info parameter,
2035 pass it down to svr4_create_probe_breakpoints.
2036 (enable_break): Pass info down to
2037 svr4_create_solib_event_breakpoints.
2038 (svr4_solib_create_inferior_hook): Pass current_program_space to
2040 (svr4_clear_solib): Likewise.
2042 2019-04-22 Pedro Alves <palves@redhat.com>
2044 * solib-svr4.c (svr4_free_objfile_observer): New.
2045 (probe_and_action::objfile): New field.
2046 (probes_table_htab_remove_objfile_probes)
2047 (probes_table_remove_objfile_probes): New functions.
2048 (register_solib_event_probe): Add 'objfile' parameter. Store it
2049 in the new probe_and_action. Don't store the probe in 'lookup'.
2050 (svr4_create_probe_breakpoints): Pass objfile to
2051 register_solib_event_probe.
2052 (_initialize_svr4_solib): Register a free_objfile observer.
2054 2019-04-19 Tom Tromey <tom@tromey.com>
2056 * common/queue.h: Remove.
2058 2019-04-19 Tom Tromey <tom@tromey.com>
2060 * event-loop.c: Don't include "common/queue.h".
2062 2019-04-19 Tom Tromey <tom@tromey.com>
2064 * remote.c (remote_target): Use delete.
2065 * remote-notif.h: Include <list>, not "common/queue.h".
2066 (notif_client_p): Remove typedef.
2067 (remote_notif_state): Add constructor, destructor, initializer.
2068 <notif_queue>: Now a std::list.
2069 (remote_notif_state_xfree): Don't declare.
2070 * remote-notif.c (remote_notif_process, handle_notification)
2071 (remote_notif_state_allocate): Update.
2072 (~remote_notif_state): Rename from remote_notif_state_xfree.
2074 2019-04-19 Tom Tromey <tom@tromey.com>
2076 * symfile.c (reread_symbols): Update.
2077 * objfiles.c (objfile_register_static_link)
2078 (objfile_lookup_static_link): Update
2079 (~objfile) Don't delete static_links.
2080 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
2082 2019-04-19 Tom Tromey <tom@tromey.com>
2084 * type-stack.h (struct type_stack) <insert>: Constify string.
2085 * type-stack.c (type_stack::insert): Constify string.
2086 * gdbtypes.h (lookup_template_type): Update.
2087 (address_space_name_to_int): Update.
2088 * gdbtypes.c (address_space_name_to_int): Make space_identifier
2090 (lookup_template_type): Make name const.
2091 * c-exp.y: Update rules.
2092 (lex_one_token, classify_name, classify_inner_name)
2093 (c_print_token): Update.
2094 * p-exp.y: Update rules.
2096 * f-exp.y: Update rules.
2098 * d-exp.y: Update rules.
2099 (lex_one_token, classify_name, classify_inner_name): Update.
2100 * parse.c (write_dollar_variable, copy_name): Return std::string.
2101 * parser-defs.h (copy_name): Change return type.
2102 * m2-exp.y: Update rules.
2104 * go-exp.y (lex_one_token): Update.
2106 (classify_unsafe_function, classify_packaged_name)
2107 (classify_name, yylex): Update.
2109 2019-04-19 Sergei Trofimovich <siarheit@google.com>
2111 * configure.ac: add --enable-source-highlight switch.
2112 * configure: Regenerate.
2113 * top.c (print_gdb_version): plumb --enable-source-highlight
2114 status to "show configuration".
2116 2019-04-19 Tom Tromey <tromey@adacore.com>
2118 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
2120 (empty_record, ada_template_to_fixed_record_type_1)
2121 (template_to_static_fixed_type)
2122 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
2123 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
2124 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
2127 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2130 * source.c (print_source_lines_base): Advance "iter" when a
2131 control character is seen.
2133 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2135 * inferior.h (struct infcall_suspend_state_deleter):
2136 Catch exception in destructor to avoid crash.
2138 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2140 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
2141 close to the add_com "shell".
2143 2019-04-18 Tom Tromey <tromey@adacore.com>
2145 * process-stratum-target.h (class process_stratum_target)
2146 <stratum>: Add "final".
2148 2019-04-17 Tom Tromey <tromey@adacore.com>
2150 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
2151 against nullptr before use.
2153 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2155 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
2157 2019-04-17 Jim Wilson <jimw@sifive.com>
2158 Andrew Burgess <andrew.burgess@embecosm.com>
2160 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
2161 code read might fail, assume 4-byte breakpoint in that case.
2163 2019-04-15 Leszek Swirski <leszeks@google.com>
2165 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
2166 rather than a hand-rolled POD check when checking for forced MEMORY
2169 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2171 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
2172 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
2174 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
2175 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
2176 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
2179 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2181 * aarch64-linux-nat.c
2182 (aarch64_linux_nat_target::thread_architecture): Add override.
2183 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
2186 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2188 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
2190 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
2192 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
2193 target types of size 96-bits, add some additional comments, and
2194 check that the builtin type we found was the correct size.
2196 2019-04-12 Eli Zaretskii <eliz@gnu.org>
2198 * utils.c (prompt_for_continue): Don't restore the styling at the
2199 end, as applied_style has the wrong value. This fixes styling in
2200 long lists of file names that are interrupted by the "Continue?"
2203 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
2205 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
2206 * c-lang.c (c_language_defn): Likewise.
2207 (cplus_language_defn): Likewise.
2208 (asm_language_defn): Likewise.
2209 (minimal_language_defn): Likewise.
2210 * d-lang.c (d_language_defn): Likewise.
2211 * f-lang.c (f_language_defn): Likewise.
2212 * go-lang.c (go_language_defn): Likewise.
2213 * language.c (unknown_language_defn): Likewise.
2214 (auto_language_defn): Likewise.
2215 * language.h (struct language_defn): Remove la_magic field.
2216 (LANG_MAGIC): Delete.
2217 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
2218 * objc-lang.c (objc_language_defn): Likewise.
2219 * opencl-lang.c (opencl_language_defn): Likewise.
2220 * p-lang.c (pascal_language_defn): Likewise.
2221 * rust-lang.c (rust_language_defn): Likewise.
2223 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2225 * riscv-tdep.c (riscv_type_align): New function.
2226 (riscv_type_alignment): Delete.
2227 (riscv_arg_location): Use 'type_align'.
2228 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
2230 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2232 * gdbtypes.c (type_align): A struct with no non-static fields also
2235 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2237 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
2239 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
2241 (riscv_struct_info::analyse): New implementation using new
2242 analyse_inner member function.
2243 (riscv_struct_info::field_offset): New member function.
2244 (riscv_struct_info::m_offsets): New member variable.
2245 (riscv_struct_info::analyse_inner): New private member function,
2246 takes the old implementation of riscv_struct_info::analyse but
2247 extended to track field offsets.
2248 (riscv_call_arg_struct): Update the struct folding special cases
2249 to handle cases where empty C++ structs, which are non-zero
2251 (riscv_arg_location): Initialise the length of each location, a
2252 non-zero length now indicates the location is in use.
2253 (riscv_push_dummy_call): Allow for the first location having a
2254 non-zero offset when setting up arguments.
2255 (riscv_return_value): Likewise, but for return values.
2257 2019-04-11 Tom Tromey <tromey@adacore.com>
2259 * utils.c (internal_vproblem): Make "msg" const.
2261 2019-04-11 Alan Hayward <alan.hayward@arm.com>
2263 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2264 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2265 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2266 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2268 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2270 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2272 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2273 of amd64_collect_native_gregset.
2274 (amd64_linux_nat_target::store_registers): Likewise.
2276 2019-04-10 Tom Tromey <tom@tromey.com>
2278 * symtab.c (lookup_global_symbol_from_objfile)
2279 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2280 * objfiles.h (class separate_debug_iterator): New.
2281 (class separate_debug_range): New.
2282 (struct objfile) <separate_debug_objfiles>: New method.
2283 (objfile_separate_debug_iterate): Don't declare.
2284 * objfiles.c (separate_debug_iterator::operator++): Rename from
2285 objfile_separate_debug_iterate.
2286 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2288 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2291 2019-04-10 Tom Tromey <tom@tromey.com>
2293 * symfile.c (reread_symbols): Remove old comment.
2294 * objfiles.c (free_all_objfiles): Fix a typo.
2296 2019-04-10 Tom Tromey <tom@tromey.com>
2298 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2299 * minsyms.c (lookup_minimal_symbol): Use foreach.
2300 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2301 (lookup_minimal_symbol_solib_trampoline): Likewise.
2302 * symfile.c (reread_symbols): Use foreach.
2304 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2305 Tom Tromey <tromey@adacore.com>
2308 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2309 (rust_lex_int_test): Change "value" to be LONGEST.
2310 (rust_lex_tests): Add test for long integer literal.
2312 2019-04-09 Tom Tromey <tromey@adacore.com>
2314 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2316 (extended_remote_target::attach): Update.
2317 (remote_target::remote_notice_new_inferior): Update.
2318 (remote_target::add_current_inferior_and_thread): Update.
2319 * inferior.c (exit_inferior_1): Use "false".
2320 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2322 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2324 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2325 the "start" command.
2327 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2329 * python/py-inferior.c (infpy_thread_from_thread_handle):
2330 Adjust comments to reflect renaming of thread_from_thread_handle
2331 to thread_from_handle. Adjust keywords. Fix type error message.
2332 (inferior_object_methods): Add thread_from_handle. Retain
2333 thread_from_thread_handle, but mark it as deprecated.
2335 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2337 * gdbthread.h (find_thread_by_handle): Revise declaration.
2338 * thread.c (find_thread_by_handle): Likewise. Adjust
2340 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2341 support for buffer objects as handles.
2343 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2345 * python/py-infthread.c (thpy_thread_handle): New function.
2346 (thread_object_methods): Register thpy_thread_handle.
2348 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2350 * gdbthread.h (thread_to_thread_handle): Declare.
2351 * thread.c (gdbtypes.h): Include.
2352 (thread_to_thread_handle): New function.
2354 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2355 (target_thread_info_to_thread_handle): Declare.
2356 * target.c (target_thread_info_to_thread_handle): New function.
2357 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2358 * target-delegates.c: Regenerate.
2360 * linux-thread-db.c (class thread_db_target): Add method
2361 thread_info_to_thread_handle.
2362 (thread_db_target::thread_info_to_thread_handle): Define.
2363 * remote.c (class remote_target): Add new method
2364 thread_info_to_thread_handle.
2365 (remote_target::thread_info_to_thread_handle): Define.
2367 2019-04-08 Pedro Alves <palves@redhat.com>
2369 * common/common-exceptions.c (throw_exception): Don't create
2370 named object to throw; throw directly.
2371 (throw_it): Likewise. Don't initialize gdb_exception::message
2372 here, with new; pass FMT and AP to the ctor instead.
2373 * common/common-exceptions.h: Include <string>.
2374 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2375 const char *, va_list)): New ctor. Use std::make_shared.
2376 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2378 (gdb_exception_error::gdb_exception_error(enum errors, const char
2380 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2382 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2384 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2385 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2388 2019-04-08 Tom Tromey <tom@tromey.com>
2390 * valops.c (value_rtti_indirect_type): Replace throw_exception
2392 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2394 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2396 * target.c (target_translate_tls_address): Replace throw_exception
2398 * stack.c (frame_apply_command_count): Replace throw_exception
2400 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2402 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2404 * rs6000-tdep.c (rs6000_frame_cache)
2405 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2406 * remote.c: Replace throw_exception with throw.
2407 * record-full.c (record_full_message, record_full_wait_1)
2408 (record_full_restore): Replace throw_exception with throw.
2410 (get_thread_current_frame_id, record_btrace_start_replaying)
2411 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2412 (cmd_record_btrace_start): Replace throw_exception with throw.
2413 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2415 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2416 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2418 (find_linespec_symbols): Replace throw_exception with throw.
2419 * infrun.c (displaced_step_prepare, resume): Replace
2420 throw_exception with throw.
2421 * infcmd.c (post_create_inferior): Replace throw_exception with
2423 * inf-loop.c (inferior_event_handler): Replace throw_exception
2425 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2426 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2427 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2428 (get_prev_frame_always, get_frame_pc_if_available)
2429 (get_frame_address_in_block_if_available, get_frame_language):
2430 Replace throw_exception with throw.
2431 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2432 throw_exception with throw.
2433 * eval.c (fetch_subexp_value, evaluate_var_value)
2434 (evaluate_funcall, evaluate_subexp_standard): Replace
2435 throw_exception with throw.
2436 * dwarf2loc.c (call_site_find_chain)
2437 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2438 Replace throw_exception with throw.
2439 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2441 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2443 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2444 * completer.c (complete_line_internal): Replace throw_exception
2446 * compile/compile-object-run.c (compile_object_run): Replace
2447 throw_exception with throw.
2448 * cli/cli-script.c (process_next_line): Replace throw_exception
2450 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2451 (btrace_enable, btrace_maint_update_pt_packets): Replace
2452 throw_exception with throw.
2453 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2454 throw_exception with throw.
2455 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2456 throw_exception with throw.
2457 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2458 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2459 * aarch64-tdep.c (aarch64_make_prologue_cache)
2460 (aarch64_make_stub_cache): Replace throw_exception with throw.
2462 2019-04-08 Tom Tromey <tom@tromey.com>
2464 * common/common-exceptions.c (throw_exception): Rename from
2465 throw_exception_cxx. Remove old copy. Make argument const.
2466 (throw_it): Create and throw exception objects directly.
2467 * common/common-exceptions.h (throw_exception): Make argument
2469 (struct gdb_exception_error): Add constructor.
2470 (struct gdb_exception_quit): Add constructor.
2472 2019-04-08 Tom Tromey <tom@tromey.com>
2474 * common/common-exceptions.h (exception_rethrow): Don't declare.
2475 (TRY_SJLJ): Update comment.
2476 (TRY, CATCH, END_CATCH): Remove.
2477 * common/common-exceptions.c (exception_rethrow): Remove.
2479 2019-04-08 Tom Tromey <tom@tromey.com>
2481 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2483 (gdb_exception_error): Rename from
2484 gdb_exception_RETURN_MASK_ERROR.
2485 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2486 (gdb_quit_bad_alloc): Update.
2487 * aarch64-tdep.c: Update.
2488 * ada-lang.c: Update.
2489 * ada-typeprint.c: Update.
2490 * ada-valprint.c: Update.
2491 * amd64-tdep.c: Update.
2492 * arch-utils.c: Update.
2493 * break-catch-throw.c: Update.
2494 * breakpoint.c: Update.
2496 * c-varobj.c: Update.
2497 * cli/cli-cmds.c: Update.
2498 * cli/cli-interp.c: Update.
2499 * cli/cli-script.c: Update.
2500 * common/common-exceptions.c: Update.
2501 * common/new-op.c: Update.
2502 * common/selftest.c: Update.
2503 * compile/compile-c-symbols.c: Update.
2504 * compile/compile-cplus-symbols.c: Update.
2505 * compile/compile-object-load.c: Update.
2506 * compile/compile-object-run.c: Update.
2507 * completer.c: Update.
2508 * corelow.c: Update.
2510 * cp-support.c: Update.
2511 * cp-valprint.c: Update.
2512 * darwin-nat.c: Update.
2513 * disasm-selftests.c: Update.
2514 * dtrace-probe.c: Update.
2515 * dwarf-index-cache.c: Update.
2516 * dwarf-index-write.c: Update.
2517 * dwarf2-frame-tailcall.c: Update.
2518 * dwarf2-frame.c: Update.
2519 * dwarf2loc.c: Update.
2520 * dwarf2read.c: Update.
2522 * event-loop.c: Update.
2523 * event-top.c: Update.
2525 * f-valprint.c: Update.
2526 * fbsd-tdep.c: Update.
2527 * frame-unwind.c: Update.
2529 * gdbtypes.c: Update.
2530 * gnu-v3-abi.c: Update.
2531 * guile/guile-internal.h: Update.
2532 * guile/scm-block.c: Update.
2533 * guile/scm-breakpoint.c: Update.
2534 * guile/scm-cmd.c: Update.
2535 * guile/scm-disasm.c: Update.
2536 * guile/scm-frame.c: Update.
2537 * guile/scm-lazy-string.c: Update.
2538 * guile/scm-math.c: Update.
2539 * guile/scm-param.c: Update.
2540 * guile/scm-ports.c: Update.
2541 * guile/scm-pretty-print.c: Update.
2542 * guile/scm-symbol.c: Update.
2543 * guile/scm-symtab.c: Update.
2544 * guile/scm-type.c: Update.
2545 * guile/scm-value.c: Update.
2546 * i386-linux-tdep.c: Update.
2547 * i386-tdep.c: Update.
2548 * inf-loop.c: Update.
2549 * infcall.c: Update.
2553 * language.c: Update.
2554 * linespec.c: Update.
2555 * linux-fork.c: Update.
2556 * linux-nat.c: Update.
2557 * linux-tdep.c: Update.
2558 * linux-thread-db.c: Update.
2560 * mi/mi-cmd-break.c: Update.
2561 * mi/mi-cmd-stack.c: Update.
2562 * mi/mi-interp.c: Update.
2563 * mi/mi-main.c: Update.
2564 * objc-lang.c: Update.
2565 * p-valprint.c: Update.
2567 * ppc-linux-tdep.c: Update.
2568 * printcmd.c: Update.
2569 * python/py-arch.c: Update.
2570 * python/py-breakpoint.c: Update.
2571 * python/py-cmd.c: Update.
2572 * python/py-finishbreakpoint.c: Update.
2573 * python/py-frame.c: Update.
2574 * python/py-framefilter.c: Update.
2575 * python/py-gdb-readline.c: Update.
2576 * python/py-inferior.c: Update.
2577 * python/py-infthread.c: Update.
2578 * python/py-lazy-string.c: Update.
2579 * python/py-linetable.c: Update.
2580 * python/py-objfile.c: Update.
2581 * python/py-param.c: Update.
2582 * python/py-prettyprint.c: Update.
2583 * python/py-progspace.c: Update.
2584 * python/py-record-btrace.c: Update.
2585 * python/py-record.c: Update.
2586 * python/py-symbol.c: Update.
2587 * python/py-type.c: Update.
2588 * python/py-unwind.c: Update.
2589 * python/py-utils.c: Update.
2590 * python/py-value.c: Update.
2591 * python/python.c: Update.
2592 * record-btrace.c: Update.
2593 * record-full.c: Update.
2594 * remote-fileio.c: Update.
2596 * riscv-tdep.c: Update.
2597 * rs6000-aix-tdep.c: Update.
2598 * rs6000-tdep.c: Update.
2599 * rust-exp.y: Update.
2600 * rust-lang.c: Update.
2601 * s390-tdep.c: Update.
2602 * selftest-arch.c: Update.
2603 * solib-dsbt.c: Update.
2604 * solib-frv.c: Update.
2605 * solib-spu.c: Update.
2606 * solib-svr4.c: Update.
2608 * sparc64-linux-tdep.c: Update.
2610 * symfile-mem.c: Update.
2611 * symmisc.c: Update.
2615 * tracefile-tfile.c: Update.
2616 * tui/tui.c: Update.
2617 * typeprint.c: Update.
2618 * unittests/cli-utils-selftests.c: Update.
2619 * unittests/parse-connection-spec-selftests.c: Update.
2621 * valprint.c: Update.
2624 * windows-nat.c: Update.
2625 * x86-linux-nat.c: Update.
2626 * xml-support.c: Update.
2628 2019-04-08 Tom Tromey <tom@tromey.com>
2630 * xml-support.c: Use C++ exception handling.
2631 * x86-linux-nat.c: Use C++ exception handling.
2632 * windows-nat.c: Use C++ exception handling.
2633 * varobj.c: Use C++ exception handling.
2634 * value.c: Use C++ exception handling.
2635 * valprint.c: Use C++ exception handling.
2636 * valops.c: Use C++ exception handling.
2637 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2639 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2640 * typeprint.c: Use C++ exception handling.
2641 * tui/tui.c: Use C++ exception handling.
2642 * tracefile-tfile.c: Use C++ exception handling.
2643 * top.c: Use C++ exception handling.
2644 * thread.c: Use C++ exception handling.
2645 * target.c: Use C++ exception handling.
2646 * symmisc.c: Use C++ exception handling.
2647 * symfile-mem.c: Use C++ exception handling.
2648 * stack.c: Use C++ exception handling.
2649 * sparc64-linux-tdep.c: Use C++ exception handling.
2650 * solib.c: Use C++ exception handling.
2651 * solib-svr4.c: Use C++ exception handling.
2652 * solib-spu.c: Use C++ exception handling.
2653 * solib-frv.c: Use C++ exception handling.
2654 * solib-dsbt.c: Use C++ exception handling.
2655 * selftest-arch.c: Use C++ exception handling.
2656 * s390-tdep.c: Use C++ exception handling.
2657 * rust-lang.c: Use C++ exception handling.
2658 * rust-exp.y: Use C++ exception handling.
2659 * rs6000-tdep.c: Use C++ exception handling.
2660 * rs6000-aix-tdep.c: Use C++ exception handling.
2661 * riscv-tdep.c: Use C++ exception handling.
2662 * remote.c: Use C++ exception handling.
2663 * remote-fileio.c: Use C++ exception handling.
2664 * record-full.c: Use C++ exception handling.
2665 * record-btrace.c: Use C++ exception handling.
2666 * python/python.c: Use C++ exception handling.
2667 * python/py-value.c: Use C++ exception handling.
2668 * python/py-utils.c: Use C++ exception handling.
2669 * python/py-unwind.c: Use C++ exception handling.
2670 * python/py-type.c: Use C++ exception handling.
2671 * python/py-symbol.c: Use C++ exception handling.
2672 * python/py-record.c: Use C++ exception handling.
2673 * python/py-record-btrace.c: Use C++ exception handling.
2674 * python/py-progspace.c: Use C++ exception handling.
2675 * python/py-prettyprint.c: Use C++ exception handling.
2676 * python/py-param.c: Use C++ exception handling.
2677 * python/py-objfile.c: Use C++ exception handling.
2678 * python/py-linetable.c: Use C++ exception handling.
2679 * python/py-lazy-string.c: Use C++ exception handling.
2680 * python/py-infthread.c: Use C++ exception handling.
2681 * python/py-inferior.c: Use C++ exception handling.
2682 * python/py-gdb-readline.c: Use C++ exception handling.
2683 * python/py-framefilter.c: Use C++ exception handling.
2684 * python/py-frame.c: Use C++ exception handling.
2685 * python/py-finishbreakpoint.c: Use C++ exception handling.
2686 * python/py-cmd.c: Use C++ exception handling.
2687 * python/py-breakpoint.c: Use C++ exception handling.
2688 * python/py-arch.c: Use C++ exception handling.
2689 * printcmd.c: Use C++ exception handling.
2690 * ppc-linux-tdep.c: Use C++ exception handling.
2691 * parse.c: Use C++ exception handling.
2692 * p-valprint.c: Use C++ exception handling.
2693 * objc-lang.c: Use C++ exception handling.
2694 * mi/mi-main.c: Use C++ exception handling.
2695 * mi/mi-interp.c: Use C++ exception handling.
2696 * mi/mi-cmd-stack.c: Use C++ exception handling.
2697 * mi/mi-cmd-break.c: Use C++ exception handling.
2698 * main.c: Use C++ exception handling.
2699 * linux-thread-db.c: Use C++ exception handling.
2700 * linux-tdep.c: Use C++ exception handling.
2701 * linux-nat.c: Use C++ exception handling.
2702 * linux-fork.c: Use C++ exception handling.
2703 * linespec.c: Use C++ exception handling.
2704 * language.c: Use C++ exception handling.
2705 * jit.c: Use C++ exception handling.
2706 * infrun.c: Use C++ exception handling.
2707 * infcmd.c: Use C++ exception handling.
2708 * infcall.c: Use C++ exception handling.
2709 * inf-loop.c: Use C++ exception handling.
2710 * i386-tdep.c: Use C++ exception handling.
2711 * i386-linux-tdep.c: Use C++ exception handling.
2712 * guile/scm-value.c: Use C++ exception handling.
2713 * guile/scm-type.c: Use C++ exception handling.
2714 * guile/scm-symtab.c: Use C++ exception handling.
2715 * guile/scm-symbol.c: Use C++ exception handling.
2716 * guile/scm-pretty-print.c: Use C++ exception handling.
2717 * guile/scm-ports.c: Use C++ exception handling.
2718 * guile/scm-param.c: Use C++ exception handling.
2719 * guile/scm-math.c: Use C++ exception handling.
2720 * guile/scm-lazy-string.c: Use C++ exception handling.
2721 * guile/scm-frame.c: Use C++ exception handling.
2722 * guile/scm-disasm.c: Use C++ exception handling.
2723 * guile/scm-cmd.c: Use C++ exception handling.
2724 * guile/scm-breakpoint.c: Use C++ exception handling.
2725 * guile/scm-block.c: Use C++ exception handling.
2726 * guile/guile-internal.h: Use C++ exception handling.
2727 * gnu-v3-abi.c: Use C++ exception handling.
2728 * gdbtypes.c: Use C++ exception handling.
2729 * frame.c: Use C++ exception handling.
2730 * frame-unwind.c: Use C++ exception handling.
2731 * fbsd-tdep.c: Use C++ exception handling.
2732 * f-valprint.c: Use C++ exception handling.
2733 * exec.c: Use C++ exception handling.
2734 * event-top.c: Use C++ exception handling.
2735 * event-loop.c: Use C++ exception handling.
2736 * eval.c: Use C++ exception handling.
2737 * dwarf2read.c: Use C++ exception handling.
2738 * dwarf2loc.c: Use C++ exception handling.
2739 * dwarf2-frame.c: Use C++ exception handling.
2740 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2741 * dwarf-index-write.c: Use C++ exception handling.
2742 * dwarf-index-cache.c: Use C++ exception handling.
2743 * dtrace-probe.c: Use C++ exception handling.
2744 * disasm-selftests.c: Use C++ exception handling.
2745 * darwin-nat.c: Use C++ exception handling.
2746 * cp-valprint.c: Use C++ exception handling.
2747 * cp-support.c: Use C++ exception handling.
2748 * cp-abi.c: Use C++ exception handling.
2749 * corelow.c: Use C++ exception handling.
2750 * completer.c: Use C++ exception handling.
2751 * compile/compile-object-run.c: Use C++ exception handling.
2752 * compile/compile-object-load.c: Use C++ exception handling.
2753 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2754 * compile/compile-c-symbols.c: Use C++ exception handling.
2755 * common/selftest.c: Use C++ exception handling.
2756 * common/new-op.c: Use C++ exception handling.
2757 * cli/cli-script.c: Use C++ exception handling.
2758 * cli/cli-interp.c: Use C++ exception handling.
2759 * cli/cli-cmds.c: Use C++ exception handling.
2760 * c-varobj.c: Use C++ exception handling.
2761 * btrace.c: Use C++ exception handling.
2762 * breakpoint.c: Use C++ exception handling.
2763 * break-catch-throw.c: Use C++ exception handling.
2764 * arch-utils.c: Use C++ exception handling.
2765 * amd64-tdep.c: Use C++ exception handling.
2766 * ada-valprint.c: Use C++ exception handling.
2767 * ada-typeprint.c: Use C++ exception handling.
2768 * ada-lang.c: Use C++ exception handling.
2769 * aarch64-tdep.c: Use C++ exception handling.
2771 2019-04-08 Tom Tromey <tom@tromey.com>
2773 * xml-support.c (gdb_xml_parser::parse): Update.
2774 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2775 * value.c (show_convenience): Update.
2776 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2777 (test_parse_flags_qcs): Update.
2778 * thread.c (thr_try_catch_cmd): Update.
2779 * target.c (target_translate_tls_address): Update.
2780 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2781 (info_frame_command_core, frame_apply_command_count): Update.
2782 * rust-exp.y (rust_lex_exception_test): Update.
2783 * riscv-tdep.c (riscv_print_one_register_info): Update.
2784 * remote.c (remote_target::enable_btrace): Update.
2785 * record-btrace.c (record_btrace_enable_warn): Update.
2786 * python/py-utils.c (gdbpy_convert_exception): Update.
2787 * printcmd.c (do_one_display, print_variable_and_value): Update.
2788 * mi/mi-main.c (mi_print_exception): Update.
2789 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2790 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2791 * linux-nat.c (linux_nat_target::attach): Update.
2792 * linux-fork.c (class scoped_switch_fork_info): Update.
2793 * infrun.c (displaced_step_prepare): Update.
2794 * infcall.c (call_function_by_hand_dummy): Update.
2795 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2796 * gnu-v3-abi.c (print_one_vtable): Update.
2797 * frame.c (get_prev_frame_always): Update.
2798 * f-valprint.c (info_common_command_for_block): Update.
2799 * exec.c (try_open_exec_file): Update.
2800 * exceptions.c (print_exception, exception_print)
2801 (exception_fprintf, exception_print_same): Update.
2802 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2803 * dwarf-index-cache.c (index_cache::store)
2804 (index_cache::lookup_gdb_index): Update.
2805 * darwin-nat.c (maybe_cache_shell): Update.
2806 * cp-valprint.c (cp_print_value_fields): Update.
2807 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2808 (gcc_cplus_symbol_address): Update.
2809 * compile/compile-c-symbols.c (gcc_convert_symbol)
2810 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2811 * common/selftest.c: Update.
2812 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2814 (exception_try_scope_entry, exception_try_scope_exit): Don't
2816 (struct exception_try_scope): Remove.
2817 (TRY): Don't use exception_try_scope.
2818 (struct gdb_exception): Add constructor, operator=.
2820 (struct gdb_exception_RETURN_MASK_ALL)
2821 (struct gdb_exception_RETURN_MASK_ERROR)
2822 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2823 (struct gdb_quit_bad_alloc): Update.
2824 * common/common-exceptions.c (exception_none): Change
2826 (struct catcher) <state, exception>: Initialize inline.
2827 <prev>: Remove member.
2828 (current_catcher): Remove.
2829 (catchers): New global.
2830 (exceptions_state_mc_init): Simplify.
2831 (catcher_pop): Remove.
2832 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2833 (try_scope_depth, exception_try_scope_entry)
2834 (exception_try_scope_exit): Remove.
2835 (throw_exception_sjlj): Update.
2836 (exception_messages, exception_messages_size): Remove.
2837 (throw_it): Simplify.
2838 (gdb_exception_sliced_copy): Remove.
2839 (throw_exception_cxx): Update.
2840 * cli/cli-script.c (script_from_file): Update.
2841 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2843 * ada-valprint.c (ada_val_print): Update.
2844 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2845 (create_excep_cond_exprs): Update.
2847 2019-04-08 Tom Tromey <tom@tromey.com>
2849 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2850 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2851 (TRY, CATCH, END_CATCH): Remove some definitions.
2852 * common/common-exceptions.c: Don't use GDB_XCPT.
2853 (catcher_list_size): Remove.
2854 (throw_exception, throw_it): Simplify.
2856 2019-04-05 Tom Tromey <tom@tromey.com>
2858 Revert the header-sorting patch.
2859 * ft32-tdep.c: Revert.
2860 * frv-tdep.c: Revert.
2861 * frv-linux-tdep.c: Revert.
2863 * frame-unwind.c: Revert.
2864 * frame-base.c: Revert.
2865 * fork-child.c: Revert.
2866 * findvar.c: Revert.
2867 * findcmd.c: Revert.
2868 * filesystem.c: Revert.
2869 * filename-seen-cache.h: Revert.
2870 * filename-seen-cache.c: Revert.
2871 * fbsd-tdep.c: Revert.
2872 * fbsd-nat.h: Revert.
2873 * fbsd-nat.c: Revert.
2874 * f-valprint.c: Revert.
2875 * f-typeprint.c: Revert.
2877 * extension.h: Revert.
2878 * extension.c: Revert.
2879 * extension-priv.h: Revert.
2880 * expprint.c: Revert.
2883 * exceptions.c: Revert.
2884 * event-top.c: Revert.
2885 * event-loop.c: Revert.
2887 * elfread.c: Revert.
2888 * dwarf2read.h: Revert.
2889 * dwarf2read.c: Revert.
2890 * dwarf2loc.c: Revert.
2891 * dwarf2expr.h: Revert.
2892 * dwarf2expr.c: Revert.
2893 * dwarf2-frame.c: Revert.
2894 * dwarf2-frame-tailcall.c: Revert.
2895 * dwarf-index-write.h: Revert.
2896 * dwarf-index-write.c: Revert.
2897 * dwarf-index-common.c: Revert.
2898 * dwarf-index-cache.h: Revert.
2899 * dwarf-index-cache.c: Revert.
2900 * dummy-frame.c: Revert.
2901 * dtrace-probe.c: Revert.
2904 * disasm-selftests.c: Revert.
2905 * dictionary.c: Revert.
2906 * dicos-tdep.c: Revert.
2907 * demangle.c: Revert.
2910 * darwin-nat.h: Revert.
2911 * darwin-nat.c: Revert.
2912 * darwin-nat-info.c: Revert.
2913 * d-valprint.c: Revert.
2914 * d-namespace.c: Revert.
2917 * csky-tdep.c: Revert.
2918 * csky-linux-tdep.c: Revert.
2919 * cris-tdep.c: Revert.
2920 * cris-linux-tdep.c: Revert.
2921 * cp-valprint.c: Revert.
2922 * cp-support.c: Revert.
2923 * cp-namespace.c: Revert.
2925 * corelow.c: Revert.
2926 * corefile.c: Revert.
2927 * continuations.c: Revert.
2928 * completer.h: Revert.
2929 * completer.c: Revert.
2930 * complaints.c: Revert.
2931 * coffread.c: Revert.
2932 * coff-pe-read.c: Revert.
2933 * cli-out.h: Revert.
2934 * cli-out.c: Revert.
2935 * charset.c: Revert.
2936 * c-varobj.c: Revert.
2937 * c-valprint.c: Revert.
2938 * c-typeprint.c: Revert.
2940 * buildsym.c: Revert.
2941 * buildsym-legacy.c: Revert.
2942 * build-id.h: Revert.
2943 * build-id.c: Revert.
2945 * bsd-uthread.c: Revert.
2946 * breakpoint.h: Revert.
2947 * breakpoint.c: Revert.
2948 * break-catch-throw.c: Revert.
2949 * break-catch-syscall.c: Revert.
2950 * break-catch-sig.c: Revert.
2951 * blockframe.c: Revert.
2953 * bfin-tdep.c: Revert.
2954 * bfin-linux-tdep.c: Revert.
2955 * bfd-target.c: Revert.
2957 * ax-general.c: Revert.
2960 * avr-tdep.c: Revert.
2962 * auto-load.c: Revert.
2963 * arm-wince-tdep.c: Revert.
2964 * arm-tdep.c: Revert.
2965 * arm-symbian-tdep.c: Revert.
2966 * arm-pikeos-tdep.c: Revert.
2967 * arm-obsd-tdep.c: Revert.
2968 * arm-nbsd-tdep.c: Revert.
2969 * arm-nbsd-nat.c: Revert.
2970 * arm-linux-tdep.c: Revert.
2971 * arm-linux-nat.c: Revert.
2972 * arm-fbsd-tdep.c: Revert.
2973 * arm-fbsd-nat.c: Revert.
2974 * arm-bsd-tdep.c: Revert.
2975 * arch-utils.c: Revert.
2976 * arc-tdep.c: Revert.
2977 * arc-newlib-tdep.c: Revert.
2978 * annotate.h: Revert.
2979 * annotate.c: Revert.
2980 * amd64-windows-tdep.c: Revert.
2981 * amd64-windows-nat.c: Revert.
2982 * amd64-tdep.c: Revert.
2983 * amd64-sol2-tdep.c: Revert.
2984 * amd64-obsd-tdep.c: Revert.
2985 * amd64-obsd-nat.c: Revert.
2986 * amd64-nbsd-tdep.c: Revert.
2987 * amd64-nbsd-nat.c: Revert.
2988 * amd64-nat.c: Revert.
2989 * amd64-linux-tdep.c: Revert.
2990 * amd64-linux-nat.c: Revert.
2991 * amd64-fbsd-tdep.c: Revert.
2992 * amd64-fbsd-nat.c: Revert.
2993 * amd64-dicos-tdep.c: Revert.
2994 * amd64-darwin-tdep.c: Revert.
2995 * amd64-bsd-nat.c: Revert.
2996 * alpha-tdep.c: Revert.
2997 * alpha-obsd-tdep.c: Revert.
2998 * alpha-nbsd-tdep.c: Revert.
2999 * alpha-mdebug-tdep.c: Revert.
3000 * alpha-linux-tdep.c: Revert.
3001 * alpha-linux-nat.c: Revert.
3002 * alpha-bsd-tdep.c: Revert.
3003 * alpha-bsd-nat.c: Revert.
3004 * aix-thread.c: Revert.
3006 * addrmap.c: Revert.
3007 * ada-varobj.c: Revert.
3008 * ada-valprint.c: Revert.
3009 * ada-typeprint.c: Revert.
3010 * ada-tasks.c: Revert.
3011 * ada-lang.c: Revert.
3012 * aarch64-tdep.c: Revert.
3013 * aarch64-ravenscar-thread.c: Revert.
3014 * aarch64-newlib-tdep.c: Revert.
3015 * aarch64-linux-tdep.c: Revert.
3016 * aarch64-linux-nat.c: Revert.
3017 * aarch64-fbsd-tdep.c: Revert.
3018 * aarch64-fbsd-nat.c: Revert.
3019 * aarch32-linux-nat.c: Revert.
3021 2019-04-05 Tom Tromey <tom@tromey.com>
3023 * ft32-tdep.c: Sort headers.
3024 * frv-tdep.c: Sort headers.
3025 * frv-linux-tdep.c: Sort headers.
3026 * frame.c: Sort headers.
3027 * frame-unwind.c: Sort headers.
3028 * frame-base.c: Sort headers.
3029 * fork-child.c: Sort headers.
3030 * findvar.c: Sort headers.
3031 * findcmd.c: Sort headers.
3032 * filesystem.c: Sort headers.
3033 * filename-seen-cache.h: Sort headers.
3034 * filename-seen-cache.c: Sort headers.
3035 * fbsd-tdep.c: Sort headers.
3036 * fbsd-nat.h: Sort headers.
3037 * fbsd-nat.c: Sort headers.
3038 * f-valprint.c: Sort headers.
3039 * f-typeprint.c: Sort headers.
3040 * f-lang.c: Sort headers.
3041 * extension.h: Sort headers.
3042 * extension.c: Sort headers.
3043 * extension-priv.h: Sort headers.
3044 * expprint.c: Sort headers.
3045 * exec.h: Sort headers.
3046 * exec.c: Sort headers.
3047 * exceptions.c: Sort headers.
3048 * event-top.c: Sort headers.
3049 * event-loop.c: Sort headers.
3050 * eval.c: Sort headers.
3051 * elfread.c: Sort headers.
3052 * dwarf2read.h: Sort headers.
3053 * dwarf2read.c: Sort headers.
3054 * dwarf2loc.c: Sort headers.
3055 * dwarf2expr.h: Sort headers.
3056 * dwarf2expr.c: Sort headers.
3057 * dwarf2-frame.c: Sort headers.
3058 * dwarf2-frame-tailcall.c: Sort headers.
3059 * dwarf-index-write.h: Sort headers.
3060 * dwarf-index-write.c: Sort headers.
3061 * dwarf-index-common.c: Sort headers.
3062 * dwarf-index-cache.h: Sort headers.
3063 * dwarf-index-cache.c: Sort headers.
3064 * dummy-frame.c: Sort headers.
3065 * dtrace-probe.c: Sort headers.
3066 * disasm.h: Sort headers.
3067 * disasm.c: Sort headers.
3068 * disasm-selftests.c: Sort headers.
3069 * dictionary.c: Sort headers.
3070 * dicos-tdep.c: Sort headers.
3071 * demangle.c: Sort headers.
3072 * dcache.h: Sort headers.
3073 * dcache.c: Sort headers.
3074 * darwin-nat.h: Sort headers.
3075 * darwin-nat.c: Sort headers.
3076 * darwin-nat-info.c: Sort headers.
3077 * d-valprint.c: Sort headers.
3078 * d-namespace.c: Sort headers.
3079 * d-lang.c: Sort headers.
3080 * ctf.c: Sort headers.
3081 * csky-tdep.c: Sort headers.
3082 * csky-linux-tdep.c: Sort headers.
3083 * cris-tdep.c: Sort headers.
3084 * cris-linux-tdep.c: Sort headers.
3085 * cp-valprint.c: Sort headers.
3086 * cp-support.c: Sort headers.
3087 * cp-namespace.c: Sort headers.
3088 * cp-abi.c: Sort headers.
3089 * corelow.c: Sort headers.
3090 * corefile.c: Sort headers.
3091 * continuations.c: Sort headers.
3092 * completer.h: Sort headers.
3093 * completer.c: Sort headers.
3094 * complaints.c: Sort headers.
3095 * coffread.c: Sort headers.
3096 * coff-pe-read.c: Sort headers.
3097 * cli-out.h: Sort headers.
3098 * cli-out.c: Sort headers.
3099 * charset.c: Sort headers.
3100 * c-varobj.c: Sort headers.
3101 * c-valprint.c: Sort headers.
3102 * c-typeprint.c: Sort headers.
3103 * c-lang.c: Sort headers.
3104 * buildsym.c: Sort headers.
3105 * buildsym-legacy.c: Sort headers.
3106 * build-id.h: Sort headers.
3107 * build-id.c: Sort headers.
3108 * btrace.c: Sort headers.
3109 * bsd-uthread.c: Sort headers.
3110 * breakpoint.h: Sort headers.
3111 * breakpoint.c: Sort headers.
3112 * break-catch-throw.c: Sort headers.
3113 * break-catch-syscall.c: Sort headers.
3114 * break-catch-sig.c: Sort headers.
3115 * blockframe.c: Sort headers.
3116 * block.c: Sort headers.
3117 * bfin-tdep.c: Sort headers.
3118 * bfin-linux-tdep.c: Sort headers.
3119 * bfd-target.c: Sort headers.
3120 * bcache.c: Sort headers.
3121 * ax-general.c: Sort headers.
3122 * ax-gdb.h: Sort headers.
3123 * ax-gdb.c: Sort headers.
3124 * avr-tdep.c: Sort headers.
3125 * auxv.c: Sort headers.
3126 * auto-load.c: Sort headers.
3127 * arm-wince-tdep.c: Sort headers.
3128 * arm-tdep.c: Sort headers.
3129 * arm-symbian-tdep.c: Sort headers.
3130 * arm-pikeos-tdep.c: Sort headers.
3131 * arm-obsd-tdep.c: Sort headers.
3132 * arm-nbsd-tdep.c: Sort headers.
3133 * arm-nbsd-nat.c: Sort headers.
3134 * arm-linux-tdep.c: Sort headers.
3135 * arm-linux-nat.c: Sort headers.
3136 * arm-fbsd-tdep.c: Sort headers.
3137 * arm-fbsd-nat.c: Sort headers.
3138 * arm-bsd-tdep.c: Sort headers.
3139 * arch-utils.c: Sort headers.
3140 * arc-tdep.c: Sort headers.
3141 * arc-newlib-tdep.c: Sort headers.
3142 * annotate.h: Sort headers.
3143 * annotate.c: Sort headers.
3144 * amd64-windows-tdep.c: Sort headers.
3145 * amd64-windows-nat.c: Sort headers.
3146 * amd64-tdep.c: Sort headers.
3147 * amd64-sol2-tdep.c: Sort headers.
3148 * amd64-obsd-tdep.c: Sort headers.
3149 * amd64-obsd-nat.c: Sort headers.
3150 * amd64-nbsd-tdep.c: Sort headers.
3151 * amd64-nbsd-nat.c: Sort headers.
3152 * amd64-nat.c: Sort headers.
3153 * amd64-linux-tdep.c: Sort headers.
3154 * amd64-linux-nat.c: Sort headers.
3155 * amd64-fbsd-tdep.c: Sort headers.
3156 * amd64-fbsd-nat.c: Sort headers.
3157 * amd64-dicos-tdep.c: Sort headers.
3158 * amd64-darwin-tdep.c: Sort headers.
3159 * amd64-bsd-nat.c: Sort headers.
3160 * alpha-tdep.c: Sort headers.
3161 * alpha-obsd-tdep.c: Sort headers.
3162 * alpha-nbsd-tdep.c: Sort headers.
3163 * alpha-mdebug-tdep.c: Sort headers.
3164 * alpha-linux-tdep.c: Sort headers.
3165 * alpha-linux-nat.c: Sort headers.
3166 * alpha-bsd-tdep.c: Sort headers.
3167 * alpha-bsd-nat.c: Sort headers.
3168 * aix-thread.c: Sort headers.
3169 * agent.c: Sort headers.
3170 * addrmap.c: Sort headers.
3171 * ada-varobj.c: Sort headers.
3172 * ada-valprint.c: Sort headers.
3173 * ada-typeprint.c: Sort headers.
3174 * ada-tasks.c: Sort headers.
3175 * ada-lang.c: Sort headers.
3176 * aarch64-tdep.c: Sort headers.
3177 * aarch64-ravenscar-thread.c: Sort headers.
3178 * aarch64-newlib-tdep.c: Sort headers.
3179 * aarch64-linux-tdep.c: Sort headers.
3180 * aarch64-linux-nat.c: Sort headers.
3181 * aarch64-fbsd-tdep.c: Sort headers.
3182 * aarch64-fbsd-nat.c: Sort headers.
3183 * aarch32-linux-nat.c: Sort headers.
3185 2019-04-04 Tom Tromey <tom@tromey.com>
3187 * varobj.c (varobj_create): Update.
3188 * rust-exp.y (struct rust_parser) <update_innermost_block,
3189 lookup_symbol>: New methods.
3190 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
3192 (rust_parser::rust_lookup_type)
3193 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3194 * printcmd.c (display_command, do_one_display): Update.
3195 * parser-defs.h (struct parser_state) <parser_state>: Add
3196 "tracker" parameter.
3197 (block_tracker): New member.
3198 (class innermost_block_tracker) <innermost_block_tracker>: Add
3200 <reset>: Remove method.
3201 (innermost_block): Don't declare.
3202 (null_post_parser): Update.
3203 * parse.c (innermost_block): Remove global.
3204 (write_dollar_variable): Update.
3205 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
3206 Remove "tracker_types" parameter.
3207 (parse_expression): Add "tracker" parameter.
3208 (parse_expression_for_completion): Update.
3209 (null_post_parser): Add "tracker" parameter.
3210 * p-exp.y: Update rules.
3211 * m2-exp.y: Update rules.
3212 * language.h (struct language_defn) <la_post_parser>: Add
3213 "tracker" parameter.
3214 * go-exp.y: Update rules.
3215 * f-exp.y: Update rules.
3216 * expression.h (parse_expression, parse_exp_1): Add "tracker"
3218 * d-exp.y: Update rules.
3219 * c-exp.y: Update rules.
3220 * breakpoint.c (set_breakpoint_condition): Create an
3221 innermost_block_tracker.
3222 (watch_command_1): Likewise.
3223 * ada-lang.c (resolve): Add "tracker" parameter.
3224 (resolve_subexp): Likewise.
3225 * ada-exp.y (write_var_from_sym): Update.
3227 2019-04-04 Tom Tromey <tom@tromey.com>
3229 * type-stack.h: New file.
3230 * type-stack.c: New file.
3231 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
3233 (insert_into_type_stack, insert_type, push_type, push_type_int)
3234 (insert_type_address_space, pop_type, pop_type_int)
3235 (pop_typelist, pop_type_stack, append_type_stack)
3236 (push_type_stack, get_type_stack, push_typelist)
3237 (follow_type_instance_flags, follow_types): Don't declare.
3238 * parse.c (type_stack): Remove global.
3239 (parse_exp_in_context): Update.
3240 (insert_into_type_stack, insert_type, push_type, push_type_int)
3241 (insert_type_address_space, pop_type, pop_type_int)
3242 (pop_typelist, pop_type_stack, append_type_stack)
3243 (push_type_stack, get_type_stack, push_typelist)
3244 (follow_type_instance_flags, follow_types): Remove (moved to
3246 * f-exp.y (type_stack): New global.
3248 (push_kind_type, f_parse): Update.
3249 * d-exp.y (type_stack): New global.
3252 * c-exp.y (struct c_parse_state) <type_stack>: New member.
3254 * Makefile.in (COMMON_SFILES): Add type-stack.c.
3255 (HFILES_NO_SRCDIR): Add type-stack.h.
3257 2019-04-04 Tom Tromey <tom@tromey.com>
3259 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
3260 (rust_parser::convert_ast_to_expression, rust_parse)
3261 (rust_lex_test_completion, rust_lex_tests): Update.
3262 * parser-defs.h (struct expr_completion_state): New.
3263 (struct parser_state) <parser_state>: Add completion parameter.
3264 <mark_struct_expression, mark_completion_tag>: New methods.
3265 <parse_completion, m_completion_state>: New members.
3266 (prefixify_expression, null_post_parser): Update.
3267 (mark_struct_expression, mark_completion_tag): Don't declare.
3268 * parse.c (parse_completion, expout_last_struct)
3269 (expout_tag_completion_type, expout_completion_name): Remove
3271 (parser_state::mark_struct_expression)
3272 (parser_state::mark_completion_tag): Now methods.
3273 (prefixify_expression): Add last_struct parameter.
3274 (prefixify_subexp): Likewise.
3275 (parse_exp_1): Update.
3276 (parse_exp_in_context): Add cstate parameter. Update.
3277 (parse_expression_for_completion): Create an
3278 expr_completion_state.
3279 (null_post_parser): Add "completion" parameter.
3280 * p-exp.y: Update rules.
3282 * language.h (struct language_defn) <la_post_parser>: Add
3283 "completing" parameter.
3284 * go-exp.y: Update rules.
3285 (lex_one_token): Update.
3286 * expression.h (parse_completion): Don't declare.
3287 * d-exp.y: Update rules.
3288 (lex_one_token): Update rules.
3289 * c-exp.y: Update rules.
3290 (lex_one_token): Update.
3291 * ada-lang.c (resolve): Add "parse_completion" parameter.
3292 (resolve_subexp): Likewise.
3293 (ada_resolve_function): Likewise.
3295 2019-04-04 Tom Tromey <tom@tromey.com>
3297 * parser-defs.h (struct parser_state) <start_arglist,
3298 end_arglist>: New methods.
3299 <arglist_len, m_funcall_chain>: New members.
3300 (arglist_len, start_arglist, end_arglist): Don't declare.
3301 * parse.c (arglist_len, funcall_chain): Remove global.
3302 (start_arglist, end_arglist): Remove functions.
3303 (parse_exp_in_context): Update.
3304 * p-exp.y: Update rules.
3305 * m2-exp.y: Update rules.
3306 * go-exp.y: Update rules.
3307 * f-exp.y: Update rules.
3308 * d-exp.y: Update rules.
3309 * c-exp.y: Update rules.
3311 2019-04-04 Tom Tromey <tom@tromey.com>
3313 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3314 lex_operator, push_back>: New methods.
3316 (rust_parser::lex_hex, lex_escape): Rename and update.
3317 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3318 (rust_parser::lex_operator): Rename and update.
3319 (rust_parser::lex_number, rustyylex, rustyyerror)
3320 (rust_lex_test_init, rust_lex_test_sequence)
3321 (rust_lex_test_push_back, rust_lex_tests): Update.
3322 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3324 <lexptr, prev_lexptr>: New members.
3325 (lexptr, prev_lexptr): Don't declare.
3326 * parse.c (lexptr, prev_lexptr): Remove globals.
3327 (parse_exp_in_context): Update.
3328 * p-exp.y (yylex, yyerror): Update.
3329 * m2-exp.y (parse_number, yylex, yyerror): Update.
3330 * go-exp.y (lex_one_token, yyerror): Update.
3331 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3332 * d-exp.y (lex_one_token, yyerror): Update.
3333 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3334 (lex_one_token, yyerror): Update.
3335 * ada-lex.l (YY_INPUT): Update.
3336 (rewind_to_char): Update.
3337 * ada-exp.y (yyerror): Update.
3339 2019-04-04 Tom Tromey <tom@tromey.com>
3341 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3342 * parser-defs.h (struct parser_state) <parser_state>: Add new
3344 <comma_terminates>: New member.
3345 (comma_terminates): Don't declare global.
3346 * parse.c (comma_terminates): Remove global.
3347 (parse_exp_in_context): Update.
3348 * p-exp.y (yylex): Update.
3349 * m2-exp.y (yylex): Update.
3350 * go-exp.y (lex_one_token): Update.
3351 * f-exp.y (yylex): Update.
3352 * d-exp.y (lex_one_token): Update.
3353 * c-exp.y (lex_one_token): Update.
3354 * ada-lex.l: Update.
3356 2019-04-04 Tom Tromey <tom@tromey.com>
3358 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3359 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3360 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3361 * parser-defs.h (paren_depth): Don't declare.
3362 * parse.c (paren_depth): Remove global.
3363 (parse_exp_in_context): Update.
3364 * p-exp.y (paren_depth): New global.
3365 (pascal_parse): Initialize it.
3366 * m2-exp.y (paren_depth): New global.
3367 (m2_parse): Initialize it.
3368 * go-exp.y (paren_depth): New global.
3369 (go_parse): Initialize it.
3370 * f-exp.y (paren_depth): New global.
3371 (f_parse): Initialize it.
3372 * d-exp.y (paren_depth): New global.
3373 (d_parse): Initialize it.
3374 * c-exp.y (paren_depth): New global.
3375 (c_parse): Initialize it.
3376 * ada-lex.l (paren_depth): New global.
3377 (lexer_init): Initialize it.
3379 2019-04-04 Tom Tromey <tom@tromey.com>
3381 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3382 (rust_parser::convert_ast_to_type)
3383 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3384 * parser-defs.h (struct parser_state) <parser_state>: Add
3385 parameters. Initialize new members.
3386 <expression_context_block, expression_context_pc>: New members.
3387 * parse.c (expression_context_block, expression_context_pc):
3389 (parse_exp_in_context): Update.
3390 * p-exp.y: Update all rules.
3392 * m2-exp.y: Update all rules.
3394 * go-exp.y (yylex): Update.
3395 * f-exp.y (yylex): Update.
3396 * d-exp.y: Update all rules.
3398 * c-exp.y: Update all rules.
3399 (lex_one_token, classify_name, yylex, c_parse): Update.
3400 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3402 2019-04-04 Tom Tromey <tom@tromey.com>
3404 * gdbarch.h, gdbarch.c: Rebuild.
3405 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3407 (struct stap_parse_info): Replace "parser_state" with
3409 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3410 (parser_state): New class.
3411 * parse.c (expr_builder): Rename.
3412 (expr_builder::release): Rename.
3413 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3414 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3415 (write_exp_elt_longcst, write_exp_elt_floatcst)
3416 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3417 (write_exp_string_vector, write_exp_bitstring)
3418 (write_exp_msymbol, mark_struct_expression)
3419 (write_dollar_variable)
3420 (insert_type_address_space, increase_expout_size): Replace
3421 "parser_state" with "expr_builder".
3422 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3423 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3424 "parser_state" with "expr_builder".
3426 2019-04-04 Tom Tromey <tom@tromey.com>
3428 * rust-exp.y: Replace "parse_language" with method call.
3430 (yylex): Replace "parse_language" with method call.
3432 (yylex): Replace "parse_language" with method call.
3433 * go-exp.y (classify_name): Replace "parse_language" with method
3435 * f-exp.y (yylex): Replace "parse_language" with method call.
3436 * d-exp.y (lex_one_token): Replace "parse_language" with method
3439 (lex_one_token, classify_name, yylex): Replace "parse_language"
3441 * ada-exp.y (find_primitive_type, type_char)
3442 (type_system_address): Replace "parse_language" with method call.
3444 2019-04-04 Tom Tromey <tom@tromey.com>
3446 * rust-exp.y: Replace "parse_gdbarch" with method call.
3447 * parse.c (write_dollar_variable, insert_type_address_space):
3448 Replace "parse_gdbarch" with method call.
3449 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3451 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3453 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3454 "parse_gdbarch" with method call.
3455 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3457 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3458 "parse_gdbarch" with method call.
3459 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3460 "parse_gdbarch" with method call.
3461 * c-exp.y (parse_type, parse_number, classify_name): Replace
3462 "parse_gdbarch" with method call.
3463 * ada-lex.l: Replace "parse_gdbarch" with method call.
3464 * ada-exp.y (parse_type, find_primitive_type, type_char)
3465 (type_system_address): Replace "parse_gdbarch" with method call.
3467 2019-04-04 Tom Tromey <tom@tromey.com>
3469 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3470 * stap-probe.c (stap_parse_argument): Update.
3471 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3472 initial_size parameter.
3473 * rust-exp.y (rust_lex_tests): Update.
3474 * parse.c (parser_state): Update.
3475 (parse_exp_in_context): Update.
3476 * parser-defs.h (struct parser_state) <parser_state>: Remove
3477 "initial_size" parameter.
3479 2019-04-04 Tom Tromey <tom@tromey.com>
3481 * parser-defs.h (increase_expout_size): Don't declare.
3482 * parse.c (increase_expout_size): Now static.
3484 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3486 * gnu-nat.c (gnu_nat_target::wait): Fix
3487 target_waitstatus_to_string call.
3489 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3491 * eval.c (evaluate_subexp_standard): Handle internal functions
3492 during Fortran function call handling.
3494 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3496 * NEWS: Mention new internal functions.
3497 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3498 (read_base_type): Use dwarf2_init_complex_target_type.
3499 * value.c (creal_internal_fn): New function.
3500 (cimag_internal_fn): New function.
3501 (_initialize_values): Register new internal functions.
3503 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3505 * infrun.c (stop_all_threads): If debug_infrun, always
3506 trace the wait status after wait_one, using
3507 target_waitstatus_to_string and target_pid_to_str.
3508 (handle_inferior_event): Replace various trace of
3509 wait status kind by a single trace.
3510 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3511 wait status kind image by target_waitstatus_to_string.
3512 * target/waitstatus.c (target_waitstatus_to_string): Fix
3515 2019-04-01 Tom Tromey <tromey@adacore.com>
3518 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3520 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3521 Pedro Alves <palves@redhat.com>
3523 * top.c (quit_force): Call 'finalize_values'.
3524 * value.c (finalize_values): New function.
3525 * value.h (finalize_values): Declare.
3527 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3529 * NEWS: Announce $_gdb_major and $_gdb_minor.
3531 * top.c (init_gdb_version_vars): New function.
3532 (gdb_init): Call init_gdb_version_vars.
3534 2019-03-29 Tom Tromey <tromey@adacore.com>
3536 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3537 help text. Remove dead code.
3539 2019-03-29 Keith Seitz <keiths@redhat.com>
3541 From Siddhesh Poyarekar:
3542 * f-lang.h (f77_get_upperbound): Return LONGEST.
3543 (f77_get_lowerbound): Likewise.
3544 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3545 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3547 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3548 plongest to format print it.
3549 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3550 (f77_get_upperbound): Likewise.
3551 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3552 LOWER_BOUND to LONGEST.
3553 (f77_create_arrayprint_offset_tbl): Likewise.
3555 2019-03-29 Keith Seitz <keiths@redhat.com>
3557 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3558 %s/pulongest for TYPE_LENGTH instead of %d in format
3560 * ada-typerint.c (ada_print_type): Likewise.
3561 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3562 * compile/compile-c-support.c (generate_register_struct): Likewise.
3563 * gdbtypes.c (recursive_dump_type): Likewise.
3564 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3565 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3566 instead of %d in format strings.
3567 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3568 to std::min to ULONGEST.
3569 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3570 instead of %d in format strings.
3571 * tracepoint.c (info_scope_command): Likewise.
3572 * typeprint.c (print_offset_data::update)
3573 (print_offset_data::finish): Likewise.
3574 * xtensa-tdep.c (xtensa_store_return_value)
3575 (xtensa_push_dummy_call): Likewise.
3577 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3579 * windows-nat.c (display_selector): Fixed format specifications
3582 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3584 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3586 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3588 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3589 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3590 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3591 (nios2_linux_init_abi): Install it.
3593 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3595 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3597 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3599 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3601 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3602 Tom Tromey <tromey@adacore.com>
3604 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3606 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3608 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3609 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3610 method to compute the bounds of range types. Also print "[evaluated]"
3611 if the bounds' values come from a dynamic evaluation.
3613 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3615 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3616 whitespace when pretty printing is on.
3618 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3620 * ppc-linux-nat.c: Add include.
3622 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3624 * NEWS: Mention AArch64 Pointer Authentication.
3626 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3628 * arm-linux-nat.c: Add include.
3630 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3632 * source-cache.c (source_cache::get_source_lines): Re-read
3633 fullname after calling open_source_file.
3635 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3637 * NEWS: Mention TLS support for FreeBSD.
3639 2019-03-25 Tom Tromey <tromey@adacore.com>
3641 * minsyms.c (BUNCH_SIZE): Update comment.
3642 (~minimal_symbol_reader): Remove old comment.
3643 (compact_minimal_symbols): Update comment.
3644 (minimal_symbol_reader::install): Remove old comment. Update
3647 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3649 * s390-linux-nat.c: Add include.
3651 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3653 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3654 Call linux_get_hwcap.
3655 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3657 (aarch64_linux_get_hwcap): Remove function.
3658 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3660 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3662 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3663 * linux-tdep.c (linux_get_hwcap): Add function.
3664 (linux_get_hwcap2): Likewise.
3665 * linux-tdep.h (linux_get_hwcap): Add declaration.
3666 (linux_get_hwcap2): Likewise.
3667 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3668 (ppc_linux_get_hwcap2): Likewise.
3669 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3671 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3672 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3673 (ppc_linux_nat_target::read_description): Likewise.
3674 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3675 * s390-linux-nat.c: Likewise.
3676 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3678 2019-03-24 Tom Tromey <tom@tromey.com>
3680 * ada-lang.c (standard_lookup): Simplify initialization.
3681 (ada_lookup_symbol_nonlocal): Simplify return.
3682 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3683 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3684 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3685 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3687 * solib.c (solib_global_lookup): Simplify.
3688 * symtab.c (null_block_symbol): Remove.
3689 (symbol_cache_lookup): Simplify returns.
3690 (lookup_language_this): Simplify returns.
3691 (lookup_symbol_aux): Simplify return.
3692 (lookup_local_symbol): Simplify returns.
3693 (lookup_global_symbol_from_objfile): Simplify return.
3694 (lookup_symbol_in_objfile_symtabs)
3695 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3696 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3697 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3698 * cp-namespace.c (cp_lookup_bare_symbol)
3699 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3700 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3701 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3702 (cp_lookup_symbol_via_imports): Simplify initialization.
3703 (find_symbol_in_baseclass): Likewise.
3704 * symtab.h (null_block_symbol): Remove.
3705 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3706 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3707 (d_lookup_symbol_module): Likewise.
3708 (find_symbol_in_baseclass): Simplify initialization.
3710 2019-03-24 Tom Tromey <tom@tromey.com>
3712 * expression.h: Don't include symtab.h.
3713 (struct block): Forward declare.
3715 2019-03-24 Tom Tromey <tom@tromey.com>
3717 * c-exp.y (typebase): Remove casts.
3718 * gdbtypes.c (lookup_unsigned_typename, )
3719 (lookup_signed_typename): Remove cast.
3720 * eval.c (parse_to_comma_and_eval): Remove cast.
3721 * parse.c (write_dollar_variable): Remove cast.
3722 * block.h (struct block) <superblock>: Now const.
3723 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3724 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3725 (map_block): Make "block" const.
3726 * symfile.h (struct quick_symbol_functions)
3727 <map_matching_symbols>: Constify block argument to "callback".
3728 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3730 (find_pc_sect_compunit_symtab): Make "b" const.
3731 (find_symbol_at_address): Likewise.
3732 (search_symbols): Likewise.
3733 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3734 (dw2_debug_names_lookup_symbol): Likewise.
3735 (dw2_map_matching_symbols): Update.
3736 * p-valprint.c (pascal_val_print): Remove "block".
3737 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3738 (aux_add_nonlocal_symbols): Make "block" const.
3739 (resolve_subexp): Remove cast.
3740 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3742 (iterate_over_file_blocks): Likewise.
3743 * f-exp.y (%union) <bval>: Remove.
3744 * coffread.c (patch_opaque_types): Make "b" const.
3745 * spu-tdep.c (spu_catch_start): Make "block" const.
3746 * c-valprint.c (print_unpacked_pointer): Remove "block".
3747 * symmisc.c (dump_symtab_1): Make "b" const.
3748 (block_depth): Make "block" const.
3749 * d-exp.y (%union) <bval>: Remove.
3750 * cp-support.h (cp_lookup_rtti_type): Update.
3751 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3752 * psymtab.c (psym_lookup_symbol): Make "block" const.
3753 (maintenance_check_psymtabs): Make "b" const.
3754 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3755 (enumerate_locals, enumerate_args): Update.
3756 * python/py-symtab.c (stpy_global_block): Make "block" const.
3757 (stpy_static_block): Likewise.
3758 * inline-frame.c (block_starting_point_at): Make "new_block"
3760 * block.c (find_block_in_blockvector): Make return type const.
3761 (blockvector_for_pc_sect): Make "b" const.
3762 (find_block_in_blockvector): Make "b" const.
3764 2019-03-23 Tom Tromey <tom@tromey.com>
3766 * varobj.c (varobj_create): Update.
3767 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3768 * printcmd.c (display_command, do_one_display): Don't reset
3770 * parser-defs.h (enum innermost_block_tracker_type): Move to
3772 (innermost_block): Update comment.
3773 * parse.c (parse_exp_1): Add tracker_types parameter.
3774 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3775 tracker_types parameter. Reset innermost_block.
3776 (parse_exp_in_context): Remove.
3777 (parse_expression_for_completion): Update.
3778 * objfiles.c (~objfile): Don't reset expression_context_block or
3780 * expression.h (enum innermost_block_tracker_type): Move from
3782 (parse_exp_1): Add tracker_types parameter.
3783 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3784 reset innermost_block.
3786 2019-03-23 Tom Tromey <tom@tromey.com>
3788 * objfiles.h: Include bcache.h.
3790 2019-03-23 Tom Tromey <tom@tromey.com>
3792 * linespec.c (get_current_search_block): Use
3793 scoped_restore_current_language.
3794 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3796 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3797 Jiong Wang <jiong.wang@arm.com>
3799 * aarch64-linux-tdep.c
3800 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3802 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3804 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3805 Jiong Wang <jiong.wang@arm.com>
3807 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3809 (aarch64_analyze_prologue_test): Add PACIASP test.
3810 (aarch64_prologue_prev_register): Unmask PC value.
3812 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3813 Jiong Wang <jiong.wang@arm.com>
3815 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3816 (aarch64_dwarf2_prev_register): Unmask PC value.
3817 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3818 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3819 DW_CFA_AARCH64_negate_ra_state.
3820 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3822 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3823 Jiong Wang <jiong.wang@arm.com>
3825 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3827 (aarch64_pseudo_register_name): Likewise.
3828 (aarch64_pseudo_register_type): Likewise.
3829 (aarch64_pseudo_register_reggroup_p): Likewise.
3830 (aarch64_gdbarch_init): Add pauth registers.
3831 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3832 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3833 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3834 (struct gdbarch_tdep): Add regnum for ra_state.
3836 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3837 Jiong Wang <jiong.wang@arm.com>
3839 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3841 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3842 Jiong Wang <jiong.wang@arm.com>
3844 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3846 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3847 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3848 (aarch64_gdbarch_init): Add puth registers.
3849 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3850 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3851 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3853 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3854 Jiong Wang <jiong.wang@arm.com>
3856 * aarch64-linux-nat.c
3857 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3858 * aarch64-linux-tdep.c
3859 (aarch64_linux_core_read_description): Likewise.
3860 (aarch64_linux_get_hwcap): New function.
3861 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3862 (aarch64_linux_get_hwcap): New declaration.
3864 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3865 Jiong Wang <jiong.wang@arm.com>
3867 * aarch64-linux-nat.c
3868 (aarch64_linux_nat_target::read_description): Add pauth param.
3869 * aarch64-linux-tdep.c
3870 (aarch64_linux_core_read_description): Likewise.
3871 * aarch64-tdep.c (struct target_desc): Add in pauth.
3872 (aarch64_read_description): Add pauth param.
3873 (aarch64_gdbarch_init): Likewise.
3874 * aarch64-tdep.h (aarch64_read_description): Likewise.
3875 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3876 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3877 * features/Makefile: Add new files.
3878 * features/aarch64-pauth.c: New file.
3879 * features/aarch64-pauth.xml: New file.
3881 2019-03-20 Tom Tromey <tromey@adacore.com>
3883 * infrun.c (handle_inferior_event): Rename from
3884 handle_inferior_event_1. Create a scoped_value_mark.
3885 (handle_inferior_event): Remove.
3887 2019-03-19 Tom Tromey <tromey@adacore.com>
3889 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3890 * infrun.h (print_stop_event): Add "displays" parameter.
3891 * infrun.c (print_stop_event): Add "displays" parameter.
3893 2019-03-19 Pedro Alves <palves@redhat.com>
3895 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3896 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3897 to -1. Fix TABs vs spaces.
3898 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3899 * tui/tui-out.h (tui_ui_out) Add intro comments.
3900 <m_line, m_start_of_line>: In-class initialize, and add describing
3903 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3905 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3907 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3909 2019-03-18 Pedro Alves <palves@redhat.com>
3910 Eli Zaretskii <eliz@gnu.org>
3912 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3913 m_line and m_start_of_line.
3915 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3917 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3918 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3919 it returns a newline. This fixes a regression in TU mode, whereby
3920 the next line is output on the same screen line as the user input.
3922 2019-03-18 Tom Tromey <tromey@adacore.com>
3924 * minsyms.c (minimal_symbol_reader::install): Remove call to
3927 2019-03-18 Pedro Alves <palves@redhat.com>
3929 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3931 (apply_style): New, factored out from ...
3932 (apply_ansi_escape): ... this. Handle reverse video mode.
3933 (tui_set_reverse_mode): New function.
3934 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3935 * tui/tui-winsource.c (tui_show_source_line): Use
3936 tui_set_reverse_mode instead of setting A_STANDOUT.
3937 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3940 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3942 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3945 2019-03-18 Tom Tromey <tromey@adacore.com>
3947 * ada-lang.c (empty_array): Add "high" parameter.
3948 (ada_evaluate_subexp): Update.
3950 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3952 * unittests/string_view-selftests.c: Define
3953 _initialize_string_view_selftests unconditionally.
3955 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3958 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3960 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3963 * windows-nat.c (display_selector): Fix format specifiers.
3965 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3967 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3968 tui_refill_source_window instead of tui_refresh_win, to update the
3969 current execution line. This fixes redisplay of the current line
3970 when stepping through the code with "next" or "step".
3972 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3974 * source-cache.c (source_cache::get_source_lines): Call
3975 find_source_lines to initialize s->nlines. This fixes vertical
3976 scrolling of TUI source window when the DOWN arrow is pressed.
3978 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3980 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3981 linux-thread-db.c (_initialize_thread_db): Likewise.
3983 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3985 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3986 wclrtoeol in tui_show_source_line". This reverts changes made in
3987 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3989 2019-03-15 Tom Tromey <tom@tromey.com>
3991 * symtab.h (struct minimal_symbol): Derive from
3992 general_symbol_info.
3993 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3994 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3995 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3996 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3997 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3998 (MSYMBOL_SEARCH_NAME): Update.
3999 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
4000 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
4001 * minsyms.c (minimal_symbol_reader::record_full): Update.
4003 2019-03-15 Tom Tromey <tom@tromey.com>
4005 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
4007 2019-03-15 Tom Tromey <tom@tromey.com>
4009 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
4011 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
4013 * minsyms.c (lookup_minimal_symbol_by_pc_section)
4014 (build_minimal_symbol_hash_tables)
4015 (minimal_symbol_reader::install): Update.
4017 2019-03-15 Tom Tromey <tom@tromey.com>
4019 * symtab.c (create_demangled_names_hash): Update.
4020 (symbol_set_names): Update.
4021 * objfiles.h (struct objfile_per_bfd_storage)
4022 <demangled_names_hash>: Now an htab_up.
4023 * objfiles.c (objfile_per_bfd_storage): Simplify.
4025 2019-03-15 Tom Tromey <tom@tromey.com>
4027 * objfiles.h (struct objfile_per_bfd_storage): Declare
4029 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
4031 (get_objfile_bfd_data): Use new. Don't initialize
4033 (free_objfile_per_bfd_storage): Remove.
4034 (objfile_bfd_data_free, objfile::~objfile): Use delete.
4036 2019-03-15 Tom Tromey <tom@tromey.com>
4038 * symfile.c (reread_symbols): Update.
4039 * objfiles.c (objfile::objfile): Update.
4040 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
4041 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
4043 (minimal_symbol_reader::install): Update.
4044 (terminate_minimal_symbol_table): Remove.
4045 * jit.c (jit_object_close_impl): Update.
4047 2019-03-15 Tom Tromey <tom@tromey.com>
4049 * minsyms.c (minimal_symbol_reader::record_full): Remove some
4052 2019-03-15 Tom Tromey <tom@tromey.com>
4054 * objfiles.h (struct objfile_per_bfd_storage)
4055 <demangled_hash_languages>: Now a bitset.
4056 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
4057 (lookup_minimal_symbol): Update.
4059 2019-03-15 Tom Tromey <tom@tromey.com>
4061 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
4062 Don't return the symbol.
4063 * coffread.c (record_minimal_symbol): Use record_full.
4065 2019-03-14 Eli Zaretskii <eliz@gnu.org>
4067 The MS-Windows port of ncurses fails to switch to a color pair if
4068 one or both of the colors are the implicit default colors. This
4069 change records the default colors when TUI is initialized, and
4070 then specifies them explicitly when a color pair uses the default
4071 colors. This allows color styling in TUI mode on MS-Windows.
4073 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
4075 (tui_initialize_io) [__MINGW32__]: Record the default terminal
4076 colors in ncurses_norm_attr.
4077 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
4078 "none", replace it with the default color recorded in
4081 2019-03-14 Tom Tromey <tromey@adacore.com>
4083 * source-cache.h (class source_cache) <get_source_lines>: Return
4085 * source-cache.c (source_cache::extract_lines): Handle case where
4086 first_pos==npos. Return std::string.
4087 (source_cache::get_source_lines): Update.
4089 2019-03-14 Tom Tromey <tromey@adacore.com>
4091 * NEWS: Add item for "style sources" commands.
4092 * source-cache.c (source_cache::get_source_lines): Check
4094 * cli/cli-style.c (source_styling): New global.
4095 (_initialize_cli_style): Add "style sources" commands.
4096 (show_style_sources): New function.
4097 * cli/cli-style.h (source_styling): Declare.
4099 2019-03-14 Pedro Alves <palves@redhat.com>
4100 Tom Tromey <tromey@adacore.com>
4102 * tui/tui-winsource.h (tui_refill_source_window): Declare.
4103 * tui/tui-winsource.c (tui_refill_source_window): New function,
4105 (tui_horizontal_source_scroll): ... here. Move some logic.
4106 * cli/cli-style.c (set_style_enabled): Notify new observable.
4107 * tui/tui-hooks.c (tui_redisplay_source): New function.
4108 (tui_attach_detach_observers): Attach or detach
4109 tui_redisplay_source.
4110 * observable.h (source_styling_changed): New observable.
4111 * observable.c: Define source_styling_changed observable.
4113 2019-03-13 Tom Tromey <tromey@adacore.com>
4115 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
4116 (i386_gnu_nat_target::store_registers): Update.
4117 * target-debug.h (target_debug_print_std_string): New macro.
4118 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4119 * windows-tdep.c (display_one_tib): Update.
4120 * tui/tui-stack.c (tui_make_status_line): Update.
4121 * top.c (print_inferior_quit_action): Update.
4122 * thread.c (thr_try_catch_cmd): Update.
4123 (add_thread_with_info): Update.
4124 (thread_target_id_str): Update.
4125 (thr_try_catch_cmd): Update.
4126 (thread_command): Update.
4127 (thread_find_command): Update.
4128 * record-btrace.c (record_btrace_target::info_record)
4129 (record_btrace_resume_thread, record_btrace_target::resume)
4130 (record_btrace_cancel_resume, record_btrace_step_thread)
4131 (record_btrace_target::wait, record_btrace_target::wait)
4132 (record_btrace_target::wait, record_btrace_target::stop): Update.
4133 * progspace.c (print_program_space): Update.
4134 * process-stratum-target.c
4135 (process_stratum_target::thread_address_space): Update.
4136 * linux-fork.c (linux_fork_mourn_inferior)
4137 (detach_checkpoint_command, info_checkpoints_command)
4138 (linux_fork_context): Update.
4139 (linux_fork_detach): Update.
4140 (class scoped_switch_fork_info): Update.
4141 (delete_checkpoint_command): Update.
4142 * infrun.c (follow_fork_inferior): Update.
4143 (follow_fork_inferior): Update.
4144 (proceed_after_vfork_done): Update.
4145 (handle_vfork_child_exec_or_exit): Update.
4146 (follow_exec): Update.
4147 (displaced_step_prepare_throw): Update.
4148 (displaced_step_restore): Update.
4149 (start_step_over): Update.
4151 (clear_proceed_status_thread): Update.
4153 (print_target_wait_results): Update.
4154 (do_target_wait): Update.
4155 (context_switch): Update.
4156 (stop_all_threads): Update.
4157 (restart_threads): Update.
4158 (finish_step_over): Update.
4159 (handle_signal_stop): Update.
4160 (switch_back_to_stepped_thread): Update.
4161 (keep_going_pass_signal): Update.
4162 (print_exited_reason): Update.
4163 (normal_stop): Update.
4164 * inferior.c (inferior_pid_to_str): Change return type.
4165 (print_selected_inferior): Update.
4166 (add_inferior): Update.
4167 (detach_inferior): Update.
4168 * dummy-frame.c (fprint_dummy_frames): Update.
4169 * dcache.c (dcache_info_1): Update.
4170 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4171 (btrace_fetch, btrace_clear): Update.
4172 * linux-tdep.c (linux_core_pid_to_str): Change return type.
4173 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
4175 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
4176 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
4177 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
4178 * gdbarch.c, gdbarch.h: Rebuild.
4179 * gdbarch.sh (core_pid_to_str): Change return type.
4180 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
4182 (windows_nat_target::pid_to_str): Change return type.
4183 (windows_delete_thread): Update.
4184 (windows_nat_target::attach): Update.
4185 (windows_nat_target::files_info): Update.
4186 * target-delegates.c: Rebuild.
4187 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
4189 (sol_thread_target::pid_to_str): Change return type.
4190 * remote.c (class remote_target) <pid_to_str>: Change return
4192 (remote_target::pid_to_str): Change return type.
4193 (extended_remote_target::attach, remote_target::remote_stop_ns)
4194 (remote_target::remote_notif_remove_queued_reply)
4195 (remote_target::push_stop_reply, remote_target::disable_btrace):
4197 (extended_remote_target::attach): Update.
4198 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
4200 (gdbsim_target::pid_to_str): Change return type.
4201 * ravenscar-thread.c (struct ravenscar_thread_target)
4202 <pid_to_str>: Change return type.
4203 (ravenscar_thread_target::pid_to_str): Change return type.
4204 * procfs.c (class procfs_target) <pid_to_str>: Change return
4206 (procfs_target::pid_to_str): Change return type.
4207 (procfs_target::attach): Update.
4208 (procfs_target::detach): Update.
4209 (procfs_target::fetch_registers): Update.
4210 (procfs_target::store_registers): Update.
4211 (procfs_target::wait): Update.
4212 (procfs_target::files_info): Update.
4213 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
4214 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
4216 (nto_procfs_target::pid_to_str): Change return type.
4217 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
4218 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
4220 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
4222 (attach_proc_task_lwp_callback, get_detach_signal)
4223 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
4224 (linux_nat_target::resume, wait_lwp, stop_callback)
4225 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
4226 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
4227 (linux_nat_wait_1, resume_stopped_resumed_lwps)
4228 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
4229 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
4231 (inf_ptrace_target::attach): Update.
4232 (inf_ptrace_target::files_info): Update.
4233 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
4235 (go32_nat_target::pid_to_str): Change return type.
4236 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
4237 (gnu_nat_target::wait): Update.
4238 (gnu_nat_target::wait): Update.
4239 (gnu_nat_target::resume): Update.
4240 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
4241 (fbsd_nat_target::wait): Update.
4242 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
4244 (darwin_nat_target::attach): Update.
4245 * corelow.c (class core_target) <pid_to_str>: Change return type.
4246 (core_target::pid_to_str): Change return type.
4247 * target.c (normal_pid_to_str): Change return type.
4248 (default_pid_to_str): Likewise.
4249 (target_pid_to_str): Change return type.
4250 (target_translate_tls_address): Update.
4251 (target_announce_detach): Update.
4252 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
4254 (bsd_uthread_target::pid_to_str): Change return type.
4255 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
4257 (bsd_kvm_target::pid_to_str): Change return type.
4258 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
4260 (aix_thread_target::pid_to_str): Change return type.
4261 * target.h (struct target_ops) <pid_to_str>: Change return type.
4262 (target_pid_to_str, normal_pid_to_str): Likewise.
4263 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4265 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4267 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4269 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4271 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4273 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4276 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4278 * NEWS: Mention that the new default MI version is 3. Mention
4279 changes to the output of commands and events that deal with
4280 multi-location breakpoints.
4281 * breakpoint.c: Include "mi/mi-out.h".
4282 (print_one_breakpoint): Change output syntax if using MI version
4284 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4286 (mi_multi_location_breakpoint_output_fixed): New.
4287 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4288 (mi_cmd_fix_multi_location_breakpoint_output): New.
4289 (mi_multi_location_breakpoint_output_fixed): New.
4290 * mi/mi-cmds.c (mi_cmds): Register command
4291 -fix-multi-location-breakpoint-output.
4292 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4295 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4297 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4298 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4299 instantiate mi_ui_out based on interpreter name.
4300 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4301 * mi/mi-main.c (mi_load_progress): Likewise.
4303 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4305 * NEWS: Combine separate "New targets" sections for 8.3.
4307 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4309 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4310 (ppcfbsd_init_abi): Install gdbarch
4311 "fetch_tls_load_module_address" and "get_thread_local_address"
4314 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4316 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4317 (riscv_fbsd_init_abi): Install gdbarch
4318 "fetch_tls_load_module_address" and "get_thread_local_address"
4321 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4323 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4324 (i386fbsd_init_abi): Install gdbarch
4325 "fetch_tls_load_module_address" and "get_thread_local_address"
4328 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4330 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4331 (amd64fbsd_init_abi): Install gdbarch
4332 "fetch_tls_load_module_address" and "get_thread_local_address"
4335 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4337 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4338 (struct fbsd_pspace_data): New type.
4339 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4340 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4341 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4342 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4343 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4345 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4347 * gdbtypes.c (lookup_struct_elt): New function.
4348 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4349 * gdbtypes.h (struct struct_elt): New type.
4350 (lookup_struct_elt): New prototype.
4352 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4354 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4355 remove disabled code block.
4357 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4359 * gdbarch.sh (get_thread_local_address): New method.
4360 * gdbarch.h, gdbarch.c: Regenerate.
4361 * target.c (target_translate_tls_address): Use
4362 gdbarch_get_thread_local_address if present instead of
4363 target::get_thread_local_address.
4365 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4367 * target.h (target::get_thread_local_address): Update comment.
4369 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4371 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4372 objfile->separate_debug_objfile_backlink if not NULL.
4374 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4376 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4377 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4378 (amd64bsd_store_inferior_registers): Likewise.
4379 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4380 Enable segment base registers.
4381 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4382 PT_GETFSBASE and PT_GETGSBASE.
4383 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4385 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4386 segment base registers.
4387 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4389 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4391 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4392 Update calls to i386_target_description to add 'segments'
4394 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4395 add segment base registers.
4396 * arch/i386.c (i386_create_target_description): Add 'segments'
4397 parameter to enable segment base registers.
4398 * arch/i386.h (i386_create_target_description): Likewise.
4399 * features/i386/32bit-segments.xml: New file.
4400 * features/i386/32bit-segments.c: Generate.
4401 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4402 call to i386_target_description to add 'segments' parameter.
4403 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4404 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4405 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4406 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4407 if feature is present.
4408 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4409 Add 'segments' parameter to call to i386_target_description.
4410 (i386_target_description): Add 'segments' parameter to enable
4411 segment base registers.
4412 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4413 to call to i386_target_description.
4414 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4415 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4416 Define I386_NUM_REGS.
4417 (i386_target_description): Add 'segments' parameter to enable
4418 segment base registers.
4420 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4423 * source-cache.c: #undef open and close, to avoid unresolved
4424 externals during linking.
4426 2019-03-12 Tom Tromey <tromey@adacore.com>
4428 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4429 const. Add initializers.
4430 (_initialize_remote): Don't initialize ptid globals.
4432 2019-03-12 Pedro Alves <palves@redhat.com>
4434 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4436 2019-03-12 Pedro Alves <palves@redhat.com>
4438 * cp-name-parser.y (main): Remove unused 'len' variable.
4440 2019-03-12 Tom Tromey <tromey@adacore.com>
4442 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4443 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4445 2019-03-12 Tom Tromey <tromey@adacore.com>
4447 * linux-nat.c (iterate_over_lwps): Update.
4448 (stop_callback): Remove parameter.
4449 (stop_wait_callback, detach_callback, resume_set_callback)
4450 (select_singlestep_lwp_callback, set_ignore_sigint)
4451 (status_callback, resumed_callback, resume_clear_callback)
4452 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4454 (linux_nat_target::detach, linux_nat_target::resume)
4455 (linux_stop_and_wait_all_lwps, select_event_lwp)
4456 (linux_nat_filter_event, linux_nat_wait_1)
4457 (linux_nat_target::kill, linux_nat_target::stop)
4458 (linux_nat_target::stop): Update.
4459 (linux_nat_resume_callback): Change type.
4460 (resume_stopped_resumed_lwps, count_events_callback)
4461 (select_event_lwp_callback): Likewise.
4462 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4463 * arm-linux-nat.c (struct update_registers_data): Remove.
4464 (update_registers_callback): Change type.
4465 (arm_linux_insert_hw_breakpoint1): Update.
4466 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4468 (x86_linux_dr_set_addr): Update.
4469 (x86_linux_dr_set_control): Update.
4470 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4471 (iterate_over_lwps): Use gdb::function_view.
4472 * nat/aarch64-linux-hw-point.c (struct
4473 aarch64_dr_update_callback_param): Remove.
4474 (debug_reg_change_callback): Change type.
4475 (aarch64_notify_debug_reg_change): Update.
4476 * s390-linux-nat.c (s390_refresh_per_info): Update.
4478 2019-03-11 Tom Tromey <tromey@adacore.com>
4480 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4481 redundant assignment to "this_cu".
4483 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4485 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4487 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4489 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4491 (rank_one_type): ... this.
4493 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4495 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4497 (rank_one_type): ... this.
4499 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4501 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4503 (rank_one_type): ... this.
4505 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4507 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4509 (rank_one_type): ... this.
4511 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4513 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4515 (rank_one_type): ... this.
4517 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4519 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4521 (rank_one_type): ... this.
4523 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4525 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4527 (rank_one_type): ... this.
4529 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4531 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4533 (rank_one_type): ... this.
4535 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4537 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4539 (rank_one_type): ... this.
4541 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4543 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4545 (rank_one_type): ... this.
4547 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4549 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4551 (rank_one_type): ... this.
4553 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4555 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4557 (rank_one_type): ... this.
4559 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4561 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4562 inferior-events' shows the example events.
4564 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4566 Support styling on native MS-Windows console
4569 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4570 on MS-Windows if $TERM is not defined.
4572 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4574 * posix-hdep.c (gdb_console_fputs):
4575 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4577 * ui-file.h (gdb_console_fputs): Add prototype.
4579 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4580 back to fputs only if the former returns zero.
4582 2019-03-07 Tom Tromey <tom@tromey.com>
4584 * symmisc.c (print_symbol_bcache_statistics): Update.
4585 (print_objfile_statistics): Update.
4586 * symfile.c (allocate_symtab): Update.
4587 * stabsread.c: Don't include bcache.h.
4588 * psymtab.h (struct psymbol_bcache): Don't declare.
4589 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4590 (psymbol_bcache_init, psymbol_bcache_free)
4591 (psymbol_bcache_get_bcache): Don't declare.
4592 * psymtab.c (struct psymbol_bcache): Remove.
4593 (psymtab_storage::psymtab_storage): Update.
4594 (psymtab_storage::~psymtab_storage): Update.
4595 (psymbol_bcache_init, psymbol_bcache_free)
4596 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4597 (add_psymbol_to_bcache): Update.
4598 (allocate_psymtab): Update.
4599 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4600 macro_cache>: No longer pointers.
4601 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4602 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4603 * macrotab.c (macro_bcache): Update.
4604 * macroexp.c: Don't include bcache.h.
4605 * gdbtypes.c (check_types_worklist): Update.
4606 (types_deeply_equal): Remove TRY/CATCH. Update.
4607 * elfread.c (elf_symtab_read): Update.
4608 * dwarf2read.c: Don't include bcache.h.
4609 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4610 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4611 (print_bcache_statistics, bcache_memory_used): Don't declare.
4612 (struct bcache): Move from bcache.c. Add constructor, destructor,
4613 methods. Rename all data members.
4614 * bcache.c (struct bcache): Move to bcache.h.
4615 (bcache::expand_hash_table): Rename from expand_hash_table.
4617 (bcache::insert): Rename from bcache_full.
4618 (bcache::compare): Rename from bcache_compare.
4619 (bcache_xmalloc): Remove.
4620 (bcache::~bcache): Rename from bcache_xfree.
4621 (bcache::print_statistics): Rename from print_bcache_statistics.
4622 (bcache::memory_used): Rename from bcache_memory_used.
4624 2019-03-07 Pedro Alves <palves@redhat.com>
4626 * infrun.c (normal_stop): Also check for
4627 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4629 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4631 * f-lang.c (value_from_host_double): Moved to...
4632 * value.c (value_from_host_double): ...here.
4633 * value.h (value_from_host_double): Declare.
4634 * guile/scm-math.c (vlscm_convert_typed_number): Use
4635 value_from_host_double.
4636 (vlscm_convert_number): Likewise.
4637 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4638 * python/py-value.c (convert_value_from_python): Likewise.
4640 2019-03-06 Tom Tromey <tom@tromey.com>
4642 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4644 2019-03-06 Tom Tromey <tom@tromey.com>
4646 * utils.h (free_current_contents): Don't declare.
4647 * utils.c (free_current_contents): Remove.
4649 2019-03-06 Tom Tromey <tom@tromey.com>
4651 * top.c (quit_force): Update.
4652 * main.c (captured_command_loop): Update.
4653 * common/new-op.c (operator new): Update.
4654 * common/common-exceptions.c (struct catcher)
4655 <save_cleanup_chain>: Remove member.
4656 (exceptions_state_mc_init): Update.
4657 (exception_try_scope_entry): Return nullptr.
4658 (exception_try_scope_exit, exception_rethrow)
4659 (throw_exception_sjlj, throw_exception_cxx): Update.
4660 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4661 (all_cleanups, do_cleanups, discard_cleanups)
4662 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4663 (restore_cleanups, restore_final_cleanups): Don't declare.
4664 (do_final_cleanups): Remove parameter.
4665 * common/cleanups.c (cleanup_chain, make_cleanup)
4666 (make_cleanup_dtor, all_cleanups, do_cleanups)
4667 (discard_my_cleanups, discard_cleanups)
4668 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4669 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4670 (null_cleanup): Remove.
4671 (do_final_cleanups): Remove parameter.
4673 2019-03-06 Tom Tromey <tom@tromey.com>
4675 * remote.c (remote_target::remote_parse_stop_reply): Use
4678 2019-03-06 Tom Tromey <tom@tromey.com>
4680 * stabsread.c (struct stabs_field_info): Rename from field_info.
4681 <list, fnlist>: Add initializers.
4682 <obstack>: New member.
4683 (read_member_functions, read_struct_fields, read_baseclasses):
4684 Allocate on obstack. Don't use cleanups.
4685 (read_one_struct_field, read_member_functions, read_struct_fields)
4686 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4687 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4688 (read_struct_type): Update.
4690 2019-03-06 Tom Tromey <tom@tromey.com>
4692 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4693 * common/filestuff.h (make_cleanup_close): Don't declare.
4694 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4697 2019-03-06 Tom Tromey <tom@tromey.com>
4699 * solib-aix.c: Use make_scope_exit.
4701 2019-03-06 Tom Tromey <tom@tromey.com>
4703 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4704 Use make_scope_exit.
4706 2019-03-06 Tom Tromey <tom@tromey.com>
4708 * solib-svr4.c (disable_probes_interface): Remove parameter.
4709 (svr4_handle_solib_event): Use make_scope_exit.
4711 2019-03-06 Tom Tromey <tom@tromey.com>
4713 * remote.c (struct stop_reply_deleter): Remove.
4714 (stop_reply_up): Update.
4715 (struct stop_reply): Derive from notif_event. Don't typedef.
4716 <regcache>: Now a std::vector.
4717 (stop_reply_xfree): Remove.
4718 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4719 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4720 (remote_target::discard_pending_stop_replies): Use delete.
4721 (remote_target::remote_parse_stop_reply): Update.
4722 (remote_target::process_stop_reply): Update.
4723 * remote-notif.h (struct notif_event): Add virtual destructor.
4724 Remove "dtr" member.
4725 (struct notif_client) <alloc_event>: Return a unique_ptr.
4726 (notif_event_xfree): Don't declare.
4727 (notif_event_up): New typedef.
4728 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4729 (notif_event_xfree, do_notif_event_xfree): Remove.
4730 (remote_notif_state_xfree): Update.
4732 2019-03-06 Tom Tromey <tom@tromey.com>
4734 * infrun.c (displaced_step_clear_cleanup): Now a
4735 forward_scope_exit type.
4736 (displaced_step_prepare_throw): Update.
4737 (displaced_step_fixup): Update.
4739 2019-03-06 Tom Tromey <tom@tromey.com>
4741 * inferior.h (class inferior): Update comment.
4742 * gdbthread.h (class thread_info): Update comment.
4744 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4745 Tom Tromey <tom@tromey.com>
4747 * stabsread.h (struct stab_section_list): Remove.
4748 (coffstab_build_psymtabs): Update.
4749 * dbxread.c (symbuf_sections): Now a std::vector.
4750 (sect_idx): New global.
4751 (fill_symbuf): Update.
4752 (coffstab_build_psymtabs): Change type of stabsects parameter.
4754 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4756 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4757 (coff_locate_sections): Update.
4758 (coff_symfile_read): Remove cleanups. Update.
4759 (init_stringtab): Add storage parameter.
4760 (free_stringtab, free_stringtab_cleanup): Remove.
4761 (init_lineno): Add storage parameter.
4762 (free_linetab, free_linetab_cleanup): Remove.
4764 2019-03-06 Pedro Alves <palves@redhat.com>
4766 * linux-fork.c (fork_info::clobber_regs): Delete.
4767 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4768 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4770 (scoped_switch_fork_info::scoped_switch_fork_info)
4771 (checkpoint_command, linux_fork_context): Adjust
4772 fork_save_infrun_state calls.
4774 2019-03-06 Pedro Alves <palves@redhat.com>
4776 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4777 (inf_has_multiple_threads): Return 'bool' and rewrite using
4778 inferior_info::threads().
4780 2019-03-06 Pedro Alves <palves@redhat.com>
4782 * linux-fork.c: Include <list>.
4783 (fork_list): Now a std::list instance.
4784 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4785 (forks_exist_p, find_last_fork): Adjust.
4789 (free_fork): Delete, folded into fork_info::~fork_info().
4790 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4792 (init_fork_list): Delete.
4793 (linux_fork_killall, linux_fork_mourn_inferior)
4794 (linux_fork_detach, info_checkpoints_command): Adjust.
4795 (_initialize_linux_fork): No longer call init_fork_list.
4797 2019-03-06 Pedro Alves <palves@redhat.com>
4799 * linux-fork.c (new_fork): New, split out of ...
4800 (add_fork): ... this. Return void. Move "first fork" special
4801 case from here, to ...
4802 (checkpoint_command): ... here.
4803 * linux-linux.h (add_fork): Return void.
4805 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4807 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4809 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4810 Chris January <chris.january@arm.com>
4811 David Lecomber <david.lecomber@arm.com>
4813 * f-exp.y: New token, UNOP_INTRINSIC.
4814 (exp): New pattern using UNOP_INTRINSIC token.
4815 (f77_keywords): Add 'abs' keyword.
4816 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4817 (value_from_host_double): New function.
4818 (evaluate_subexp_f): Support UNOP_ABS.
4820 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4822 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4825 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4827 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4828 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4829 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4831 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4833 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4835 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4836 Chris January <chris.january@arm.com>
4838 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4839 * f-exp.y: Define 'KIND' token.
4840 (exp): New pattern for KIND expressions.
4841 (ptype): Handle types with a kind extension.
4842 (direct_abs_decl): Extend to spot kind extensions.
4843 (f77_keywords): Add 'kind' to the list.
4844 (push_kind_type): New function.
4845 (convert_to_kind_type): New function.
4846 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4847 * parse.c (operator_length_standard): Likewise.
4848 * parser-defs.h (enum type_pieces): Add tp_kind.
4849 * std-operator.def: Add UNOP_KIND.
4851 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4853 * f-exp.y (f_parse): Set yydebug.
4855 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4857 * f-lang.c (evaluate_subexp_f): New function.
4858 (exp_descriptor_f): New global.
4859 (f_language_defn): Use exp_descriptor_f instead of
4860 exp_descriptor_standard.
4862 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4864 * f-exp.y (struct token): Add comments.
4865 (dot_ops): Remove uppercase versions and the end marker.
4866 (f77_keywords): Likewise.
4867 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4868 entries in the dot_ops array are case insensitive, and use
4869 strncasecmp to compare strings. Also some whitespace cleanup in
4870 this area. Similar for the f77_keywords array, except entries in
4871 this list might be case sensitive.
4873 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4875 * f-exp.y (struct f77_boolean_val): Add comments.
4876 (boolean_values): Remove uppercase versions, and end marker.
4877 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4878 and use strncasecmp to achieve case insensitivity. Additionally,
4879 perform whitespace cleanup around this code.
4881 2019-03-06 Tom Tromey <tromey@adacore.com>
4883 * remote-sim.c (gdbsim_target_open): Use result of
4886 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4887 Dirk Schubert <dirk.schubert@arm.com>
4888 Chris January <chris.january@arm.com>
4890 * eval.c (evaluate_subexp_standard): Call Fortran argument
4892 * f-lang.c (struct value): A value which can be passed into a
4893 Fortran function call.
4894 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4896 (struct type): Value ready for a Fortran function call.
4897 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4899 * f-lang.h (fortran_argument_convert): Declaration.
4900 (fortran_preserve_arg_pointer): Declaration.
4901 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4903 2019-03-05 Tom Tromey <tromey@adacore.com>
4905 * python/py-prettyprint.c (print_string_repr): Remove #if.
4906 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4908 2019-03-05 Tom Tromey <tromey@adacore.com>
4910 * target.c (the_dummy_target): Move later. Change type to
4912 (initialize_targets): Don't initialize the_dummy_target.
4914 2019-03-05 Tom Tromey <tromey@adacore.com>
4916 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4917 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4919 2019-03-05 Tom Tromey <tromey@adacore.com>
4921 * windows-nat.c (windows_nat_target::attach)
4922 (windows_nat_target::detach): Don't call gdb_flush.
4923 * valprint.c (generic_val_print, val_print, val_print_string):
4924 Don't call gdb_flush.
4925 * utils.c (defaulted_query): Don't call gdb_flush.
4926 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4927 * target.c (target_announce_detach): Don't call gdb_flush.
4928 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4929 * remote.c (extended_remote_target::attach): Don't call
4931 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4932 * printcmd.c (do_examine): Don't call gdb_flush.
4933 (info_display_command): Don't call gdb_flush.
4934 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4935 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4936 * memattr.c (info_mem_command): Don't call gdb_flush.
4937 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4938 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4939 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4940 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4941 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4942 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4943 (gnu_nat_target::detach): Don't call gdb_flush.
4944 * f-valprint.c (f_val_print): Don't call gdb_flush.
4945 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4946 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4947 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4949 * c-valprint.c (c_val_print): Don't call gdb_flush.
4950 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4952 2019-03-05 Tom Tromey <tromey@adacore.com>
4954 * varobj.c (update_dynamic_varobj_children): Update.
4955 (install_default_visualizer): Use reset, not release.
4956 * value.c (set_internalvar): Update.
4957 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4958 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4959 ATTRIBUTE_UNUSED_RESULT.
4961 2019-03-05 Tom Tromey <tromey@adacore.com>
4963 * remote.c (class scoped_remote_fd) <release>: Add
4964 ATTRIBUTE_UNUSED_RESULT.
4966 2019-03-05 Tom Tromey <tromey@adacore.com>
4968 * macroexp.c (struct macro_buffer) <release>: Add
4969 ATTRIBUTE_UNUSED_RESULT.
4971 2019-03-05 Tom Tromey <tromey@adacore.com>
4973 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4974 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4975 ATTRIBUTE_UNUSED_RESULT.
4977 2019-03-05 Tom Tromey <tromey@adacore.com>
4979 * common/scoped_fd.h (class scoped_fd) <release>: Add
4980 ATTRIBUTE_UNUSED_RESULT.
4982 2019-03-05 Tom Tromey <tromey@adacore.com>
4984 * parser-defs.h (struct parser_state) <release>: Add
4985 ATTRIBUTE_UNUSED_RESULT.
4987 2019-03-05 Tom Tromey <tromey@adacore.com>
4989 * utils.h (class gdb_argv) <release>: Add
4990 ATTRIBUTE_UNUSED_RESULT.
4991 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4993 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4995 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4996 for-loop range, to avoid compiler warnings.
4998 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4999 avoid compiler warnings about unused variables.
5001 * NEWS: Mention end of support for native debugging on MS-Windows
5005 * common/netstuff.c:
5006 * gdbserver/gdbreplay.c
5007 * gdbserver/remote-utils.c:
5009 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
5010 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
5011 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
5012 'getaddrinfo' and 'freeaddrinfo' were not available before
5013 Windows XP, and mingw.org's MinGW headers by default define
5014 _WIN32_WINNT to 0x500.
5016 2019-03-01 Gary Benson <gbenson@redhat.com>
5018 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
5020 2019-02-28 Brian Vandenberg <phantall@gmail.com>
5021 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5024 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
5025 set_sigint_trap, clear_sigint_trap.
5027 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5029 * target.c (target_detach): Clear the regcache and the
5032 2019-02-27 Pedro Alves <palves@redhat.com>
5034 * utils.c (set_screen_size): When we cap the height/width sizes,
5035 tweak the corresponding command variable to show "unlimited":
5037 2019-02-27 Saagar Jha <saagar@saagarjha.com>
5038 Pedro Alves <palves@redhat.com>
5040 * utils.c (set_screen_size): Reduce "infinite" rows and columns
5041 before calling rl_set_screen_size.
5043 2019-02-27 Tom Tromey <tromey@adacore.com>
5045 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
5047 * python/py-value.c: Remove Python 2.4 workaround.
5048 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
5050 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
5051 Python 2.4 workaround.
5052 * python/python-internal.h: Remove Python 2.4 comment.
5053 (Py_ssize_t): Don't define.
5054 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
5055 (gdb_Py_DECREF): Remove Python 2.4 workaround.
5056 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
5057 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
5058 * python/python.c (do_start_initialization): Remove Python 2.4
5060 * python/py-prettyprint.c (class dummy_python_frame): Remove.
5061 (print_children): Remove Python 2.4 workaround.
5062 * python/py-inferior.c (buffer_procs): Remove Python 2.4
5064 (CHARBUFFERPROC_NAME): Remove.
5065 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
5066 Python 2.4 workaround.
5068 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5070 * NEWS: Note minimum Python version.
5072 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5074 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
5075 code from these functions. Remove corresponding ifdefs. Use
5076 Py_buffer_up instead of explicit calls to PyBuffer_Release.
5077 Remove gotos and target of gotos.
5078 (infpy_search_memory): Likewise.
5080 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5082 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
5083 (hppa_gdbarch_init): Don't register deleted functions with
5086 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5088 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
5089 (h8300_unwind_sp): Delete.
5090 (h8300_dummy_id): Delete.
5091 (h8300_gdbarch_init): Don't register deleted functions with
5094 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5096 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
5097 (ft32_unwind_pc): Delete.
5098 (ft32_unwind_sp): Delete.
5099 (ft32_gdbarch_init): Don't register deleted functions with
5102 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5104 * gdb/frv-tdep.c (frv_dummy_id): Delete.
5105 (frv_unwind_pc): Delete.
5106 (frv_unwind_sp): Delete.
5107 (frv_gdbarch_init): Don't register deleted functions with
5110 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5112 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
5113 (riscv_unwind_pc): Delete.
5114 (riscv_unwind_sp): Delete.
5115 (riscv_gdbarch_init): Don't register deleted functions with
5118 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5120 * gdb/csky-tdep.c (csky_dummy_id): Delete.
5121 (csky_unwind_pc): Delete.
5122 (csky_unwind_sp): Delete.
5123 (csky_gdbarch_init): Don't register deleted functions with
5126 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5128 * gdb/cris-tdep.c (cris_dummy_id): Delete.
5129 (cris_unwind_pc): Delete.
5130 (cris_unwind_sp): Delete.
5131 (cris_gdbarch_init): Don't register deleted functions with
5134 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5136 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
5137 (bfin_unwind_pc): Delete.
5138 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
5140 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5142 * gdb/arm-tdep.c (arm_dummy_id): Delete.
5143 (arm_unwind_pc): Delete.
5144 (arm_unwind_sp): Delete.
5145 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
5147 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5149 * gdb/arc-tdep.c (arc_dummy_id): Delete.
5150 (arc_unwind_pc): Delete.
5151 (arc_unwind_sp): Delete.
5152 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
5154 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5156 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
5157 (alpha_unwind_pc): Delete.
5158 (alpha_gdbarch_init): Don't register deleted functions with
5161 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5163 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
5164 (aarch64_unwind_pc): Delete.
5165 (aarch64_unwind_sp): Delete.
5166 (aarch64_gdbarch_init): Don't register deleted functions with
5169 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5171 * gdbtypes.c (type_align): Don't consider static members when
5172 computing structure alignment.
5174 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5176 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
5177 return 0 for other types.
5178 * arch-utils.c (default_type_align): Always return 0.
5179 * gdbarch.h: Regenerate.
5180 * gdbarch.sh (type_align): Extend comment.
5181 * gdbtypes.c (type_align): Add additional comments, always call
5182 gdbarch_type_align before applying the default rules.
5183 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
5184 generic code will then apply a suitable default.
5185 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
5186 types, return 0 for other types.
5188 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5190 * NEWS: Create a new section for the next release branch.
5191 Rename the section of the current branch, now that it has
5194 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5196 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
5197 * version.in: Bump version to 8.3.50.DATE-git.
5199 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
5201 * aix-thread.c (ptid_cmp): Remove unused variable.
5202 (get_signaled_thread): Likewise.
5203 (store_regs_user_thread): Likewise.
5204 (store_regs_kernel_thread): Likewise.
5205 (fetch_regs_kernel_thread): Remove shadowed variable.
5207 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
5209 * features/riscv/32bit-cpu.xml: Add register numbers.
5210 * features/riscv/32bit-fpu.c: Regenerate.
5211 * features/riscv/32bit-fpu.xml: Add register numbers.
5212 * features/riscv/64bit-cpu.xml: Add register numbers.
5213 * features/riscv/64bit-fpu.c: Regenerate.
5214 * features/riscv/64bit-fpu.xml: Add register numbers.
5216 2019-02-26 Kevin Buettner <kevinb@redhat.com>
5218 * NEWS: Mention two argument form of gdb.Value constructor.
5219 * python/py-value.c (convert_buffer_and_type_to_value): New
5221 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
5222 Add support for handling an optional second argument. Call
5223 convert_buffer_and_type_to_value as appropriate.
5224 * python/python-internal.h (Py_buffer_deleter): New struct.
5225 (Py_buffer_up): New typedef.
5227 2019-02-25 John Baldwin <jhb@FreeBSD.org>
5229 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
5230 instead of releasing ownership.
5232 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
5234 * dwarf2read.c (open_and_init_dwp_file): Call
5235 elf_numsections instead of bfd_count_sections to initialize
5236 dwp_file->num_sections.
5238 2019-02-25 Tom Tromey <tromey@adacore.com>
5240 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
5242 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
5244 * gcore.in: Add '--readnever' option when invoking GDB.
5246 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5248 * MAINTAINERS: Update my email address.
5250 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5252 * build-id.c (build_id_to_debug_bfd_1): New function.
5253 (build_id_to_debug_bfd): Look for separate debug file in
5256 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
5258 * gdbarch.sh: Update the copyright year range that is placed into
5261 2019-02-22 Keith Seitz <keiths@redhat.com>
5264 * linespec.c (create_sals_line_offset): Search for the default
5265 symtab's filename instead of its fullname.
5267 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5269 * NEWS: Update style defaults.
5271 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5273 * main.c (captured_main_1): Disable styling in batch mode.
5275 2019-02-20 Tom Tromey <tom@tromey.com>
5277 * symtab.c (symtab_symbol_info): Fix typos.
5279 2019-02-20 Tom Tromey <tromey@adacore.com>
5281 * findcmd.c (_initialize_mem_search): Use upper case for
5282 metasyntactic variables.
5284 2019-02-20 Alan Hayward <alan.hayward@arm.com>
5286 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5287 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5289 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5291 * top.h (source_file_name): Change to std::string.
5292 * top.c (source_file_name): Likewise.
5293 (command_line_input): Adjust.
5294 * cli/cli-script.c (script_from_file): Adjust.
5296 2019-02-19 Tom Tromey <tromey@adacore.com>
5298 * ravenscar-thread.c
5299 (ravenscar_thread_target::update_thread_list): Don't call
5300 ada_build_task_list.
5301 * ada-lang.h (ada_build_task_list): Don't declare.
5302 * ada-tasks.c (struct ada_tasks_inferior_data)
5303 <task_list_valid_p>: Now bool.
5304 (read_known_tasks, ada_task_list_changed)
5305 (ada_tasks_invalidate_inferior_data): Update.
5306 (read_known_tasks_array): Return bool.
5307 (read_known_tasks_list): Likewise.
5308 (read_known_tasks): Return void.
5309 (ada_build_task_list): Now static.
5311 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5313 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5314 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5316 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5318 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5319 variant for ada_tasks_pspace_data_handle and
5320 ada_tasks_inferior_data_handle.
5321 (ada_tasks_pspace_data_cleanup): New function.
5322 (ada_tasks_inferior_data_cleanup): New function.
5324 2019-02-17 Tom Tromey <tom@tromey.com>
5326 * macrotab.h (macro_source_fullname): Return a std::string.
5327 * macrotab.c (macro_include, check_for_redefinition)
5328 (macro_undef, macro_lookup_definition, foreach_macro)
5329 (foreach_macro_in_scope): Update.
5330 (macro_source_fullname): Return a std::string.
5331 * macrocmd.c (show_pp_source_pos): Update.
5333 2019-02-17 Tom Tromey <tom@tromey.com>
5335 * macrocmd.c (show_pp_source_pos): Style the file names.
5337 2019-02-17 Tom Tromey <tom@tromey.com>
5340 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5342 2019-02-17 Tom Tromey <tom@tromey.com>
5344 * ada-lang.c (user_select_syms): Use filtered printing.
5345 * utils.c (wrap_style): New global.
5346 (desired_style): Remove.
5347 (emit_style_escape): Add stream parameter.
5348 (set_output_style, reset_terminal_style, prompt_for_continue):
5350 (flush_wrap_buffer): Only flush gdb_stdout.
5351 (wrap_here): Set wrap_style.
5352 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5353 treat escape sequences as a character. Change when wrap buffer is
5355 (fputs_styled): Do not set the output style when the default is
5357 * ui-style.h (struct ui_file_style) <is_default>: New method.
5358 * source.c (print_source_lines_base): Emit escape sequences in one
5361 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5363 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5364 integers and enumeration types.
5366 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5368 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5369 instead of lookup_symbol_in_language
5370 (do_exact_match): New function.
5371 (ada_get_symbol_name_matcher): Return do_exact_match when
5372 doing a verbatim match.
5374 2019-02-15 Tom Tromey <tromey@adacore.com>
5376 * ravenscar-thread.c (ravenscar_thread_target::resume)
5377 (ravenscar_thread_target::wait): Special case wildcard requests.
5379 2019-02-15 Tom Tromey <tromey@adacore.com>
5381 * ravenscar-thread.c (base_ptid): Remove.
5382 (struct ravenscar_thread_target) <close>: New method.
5383 <m_base_ptid>: New member.
5384 <update_inferior_ptid, active_task, task_is_currently_active,
5385 runtime_initialized>: Declare methods.
5386 <ravenscar_thread_target>: Add constructor.
5387 (ravenscar_thread_target::task_is_currently_active)
5388 (ravenscar_thread_target::update_inferior_ptid)
5389 (ravenscar_runtime_initialized): Rename. Now methods.
5390 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5391 (ravenscar_thread_target::update_thread_list): Update.
5392 (ravenscar_thread_target::active_task): Now method.
5393 (ravenscar_thread_target::store_registers)
5394 (ravenscar_thread_target::prepare_to_store)
5395 (ravenscar_thread_target::prepare_to_store)
5396 (ravenscar_thread_target::mourn_inferior): Update.
5397 (ravenscar_inferior_created): Use "new" to create target.
5398 (ravenscar_thread_target::get_ada_task_ptid): Update.
5399 (_initialize_ravenscar): Don't initialize base_ptid.
5400 (ravenscar_ops): Remove global.
5402 2019-02-15 Tom Tromey <tromey@adacore.com>
5404 * target.h (push_target): Declare new overload.
5405 * target.c (push_target): New overload, taking an rvalue reference.
5406 * remote.c (remote_target::open_1): Use push_target overload.
5407 * corelow.c (core_target_open): Use push_target overload.
5409 2019-02-15 Tom Tromey <tromey@adacore.com>
5411 * ravenscar-thread.c (is_ravenscar_task)
5412 (ravenscar_task_is_currently_active): Return bool.
5413 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5414 (_initialize_ravenscar): Remove "(void)".
5415 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5418 2019-02-15 Tom Tromey <tromey@adacore.com>
5420 * ravenscar-thread.c (ravenscar_runtime_initializer)
5421 (has_ravenscar_runtime, get_running_thread_id)
5422 (ravenscar_thread_target::resume): Fix indentation.
5424 2019-02-15 Tom Tromey <tromey@adacore.com>
5426 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5427 from ravenscar_arch_ops.
5428 (sparc_ravenscar_ops::fetch_registers)
5429 (sparc_ravenscar_ops::store_registers): Now methods.
5430 (sparc_ravenscar_prepare_to_store): Remove.
5431 (sparc_ravenscar_ops): Redefine.
5432 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5433 methods and destructor. Remove members.
5434 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5435 (ravenscar_thread_target::store_registers)
5436 (ravenscar_thread_target::prepare_to_store): Update.
5437 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5439 (struct ppc_ravenscar_powerpc_ops): Derive from
5441 (ppc_ravenscar_powerpc_ops::fetch_registers)
5442 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5443 (ppc_ravenscar_powerpc_ops): Redefine.
5444 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5445 (ppc_ravenscar_e500_ops::fetch_registers)
5446 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5447 (ppc_ravenscar_e500_ops): Redefine.
5448 * aarch64-ravenscar-thread.c
5449 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5450 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5451 (aarch64_ravenscar_fetch_registers)
5452 (aarch64_ravenscar_store_registers): Now methods.
5453 (aarch64_ravenscar_ops): Redefine.
5455 2019-02-15 Tom Tromey <tromey@adacore.com>
5457 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5458 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5459 (ravenscar_thread_target::stopped_by_watchpoint)
5460 (ravenscar_thread_target::stopped_data_address)
5461 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5463 2019-02-15 Tom Tromey <tromey@adacore.com>
5465 * ravenscar-thread.c: Fix some typos.
5467 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5468 Tom Tromey <tromey@adacore.com>
5470 * ada-lang.c (ada_exception_sal): Change addr_string to a
5472 (create_ada_exception_catchpoint): Update.
5474 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5475 Tom Tromey <tromey@adacore.com>
5477 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5478 (bp_location_ops): Remove.
5479 (base_breakpoint_allocate_location): Update.
5480 (free_bp_location): Update.
5481 * ada-lang.c (class ada_catchpoint_location)
5482 <ada_catchpoint_location>: Remove ops parameter.
5483 (ada_catchpoint_location_dtor): Remove.
5484 (ada_catchpoint_location_ops): Remove.
5485 (allocate_location_exception): Update.
5486 * breakpoint.h (struct bp_location_ops): Remove.
5487 (class bp_location) <bp_location>: Remove bp_location_ops
5489 <~bp_location>: Add destructor.
5492 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5493 Pedro Alves <palves@redhat.com>
5495 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5498 2019-02-14 David Michael <fedora.dm0@gmail.com>
5499 Samuel Thibault <samuel.thibault@gnu.org>
5500 Thomas Schwinge <thomas@codesourcery.com>
5502 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5503 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5505 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5507 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5508 (check_empty): Use "const char *".
5510 * gnu-nat.c (gnu_nat_target::detach): Instead of
5511 'detach_inferior (pid)' call
5512 'detach_inferior (find_inferior_pid (pid))'.
5514 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5515 'nat/fork-inferior.o'.
5516 * gnu-nat.c: #include "nat/fork-inferior.h".
5518 * gnu-nat.c (gnu_nat_target::detach): Instead of
5519 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5520 * gnu-nat.h: #include "inf-child.h".
5521 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5522 'i386_gnu_nat_target::fetch_registers'.
5523 (gnu_store_registers): Rename/move to
5524 'i386_gnu_nat_target::store_registers'.
5526 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5527 * gnu-nat.h (mach_thread_info): New function.
5528 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5530 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5532 2019-02-14 Frederic Konrad <konrad@adacore.com>
5534 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5536 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5538 * windows-nat.c (windows_add_thread): Add new parameter
5539 "main_thread_p" with default value set to false. Update
5540 function documentation as well as all callers.
5541 (windows_delete_thread): Likewise.
5542 (fake_create_process): Update call to windows_add_thread.
5543 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5544 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5545 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5546 call to windows_delete_thread.
5548 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5550 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5552 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5554 * symfile.c (find_separate_debug_file): Use canonical path of
5555 sysroot with child_path instead of gdb_sysroot if it is valid.
5557 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5559 * symfile.c (find_separate_debug_file): Use child_path to
5560 determine if an object file is under a sysroot.
5562 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5564 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5565 unittests/child-path-selftests.c.
5566 * common/pathstuff.c (child_path): New function.
5567 * common/pathstuff.h (child_path): New prototype.
5568 * unittests/child-path-selftests.c: New file.
5570 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5572 * symfile.c (find_separate_debug_file): Look for separate debug
5573 files in debug directories under the sysroot.
5575 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5577 * symtab.h (struct minimal_symbol data_p): New const method.
5578 (struct minimal_symbol text_p): Likewise.
5579 * symtab.c (output_source_filename): Use file name style
5581 (print_symbol_info): Likewise.
5582 (print_msymbol_info): Use address style to print addresses.
5583 Use function name style to print executable text symbols.
5584 (expand_symtab_containing_pc): Use data_p.
5585 (find_pc_sect_compunit_symtab): Likewise.
5587 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5589 * breakpoint.c (describe_other_breakpoints): Use address style
5591 (say_where): Likewise.
5593 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5595 * ada-typeprint.c (print_func_type): Print function name
5596 style to print function name.
5597 * c-typeprint.c (c_print_type_1): Likewise.
5599 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5601 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5604 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5606 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5609 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5611 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5612 TYPE_CODE_REF types.
5614 2019-02-08 Jim Wilson <jimw@sifive.com>
5616 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5617 (riscv_linux_fregset): New.
5618 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5620 2019-02-07 Tom Tromey <tom@tromey.com>
5622 * thread.c (thread_cancel_execution_command): Update.
5623 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5625 (struct thread_fsm_ops): Remove.
5626 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5627 (thread_fsm_should_stop, thread_fsm_return_value)
5628 (thread_fsm_set_finished, thread_fsm_finished_p)
5629 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5631 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5632 * infrun.c (clear_proceed_status_thread)
5633 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5634 (print_stop_event): Update.
5635 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5637 (step_command_fsm_ops): Remove.
5638 (new_step_command_fsm): Remove.
5640 (step_command_fsm::should_stop): Rename from
5641 step_command_fsm_should_stop.
5642 (step_command_fsm::clean_up): Rename from
5643 step_command_fsm_clean_up.
5644 (step_command_fsm::do_async_reply_reason): Rename from
5645 step_command_fsm_async_reply_reason.
5646 (struct until_next_fsm): Inherit from thread_fsm. Add
5648 (until_next_fsm_ops): Remove.
5649 (new_until_next_fsm): Remove.
5650 (until_next_fsm::should_stop): Rename from
5651 until_next_fsm_should_stop.
5652 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5653 (until_next_fsm::do_async_reply_reason): Rename from
5654 until_next_fsm_async_reply_reason.
5655 (struct finish_command_fsm): Inherit from thread_fsm. Add
5656 constructor. Change type of breakpoint.
5657 (finish_command_fsm_ops): Remove.
5658 (new_finish_command_fsm): Remove.
5659 (finish_command_fsm::should_stop): Rename from
5660 finish_command_fsm_should_stop.
5661 (finish_command_fsm::clean_up): Rename from
5662 finish_command_fsm_clean_up.
5663 (finish_command_fsm::return_value): Rename from
5664 finish_command_fsm_return_value.
5665 (finish_command_fsm::do_async_reply_reason): Rename from
5666 finish_command_fsm_async_reply_reason.
5667 (finish_command): Update.
5668 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5670 (call_thread_fsm_ops): Remove.
5671 (call_thread_fsm::call_thread_fsm): Rename from
5672 new_call_thread_fsm.
5673 (call_thread_fsm::should_stop): Rename from
5674 call_thread_fsm_should_stop.
5675 (call_thread_fsm::should_notify_stop): Rename from
5676 call_thread_fsm_should_notify_stop.
5677 (run_inferior_call, call_function_by_hand_dummy): Update.
5678 * cli/cli-interp.c (should_print_stop_to_console): Update.
5679 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5680 Add constructor. Change type of location_breakpoint,
5682 (until_break_fsm_ops): Remove.
5683 (new_until_break_fsm): Remove.
5684 (until_break_fsm::should_stop): Rename from
5685 until_break_fsm_should_stop.
5686 (until_break_fsm::clean_up): Rename from
5687 until_break_fsm_clean_up.
5688 (until_break_fsm::do_async_reply_reason): Rename from
5689 until_break_fsm_async_reply_reason.
5690 (until_break_command): Update.
5691 * thread-fsm.c: Remove.
5692 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5694 2019-02-07 Tom Tromey <tom@tromey.com>
5696 * yy-remap.h: Add include guard.
5697 * xtensa-tdep.h: Add include guard.
5698 * xcoffread.h: Rename include guard.
5699 * varobj-iter.h: Add include guard.
5700 * tui/tui.h: Rename include guard.
5701 * tui/tui-winsource.h: Rename include guard.
5702 * tui/tui-wingeneral.h: Rename include guard.
5703 * tui/tui-windata.h: Rename include guard.
5704 * tui/tui-win.h: Rename include guard.
5705 * tui/tui-stack.h: Rename include guard.
5706 * tui/tui-source.h: Rename include guard.
5707 * tui/tui-regs.h: Rename include guard.
5708 * tui/tui-out.h: Rename include guard.
5709 * tui/tui-layout.h: Rename include guard.
5710 * tui/tui-io.h: Rename include guard.
5711 * tui/tui-hooks.h: Rename include guard.
5712 * tui/tui-file.h: Rename include guard.
5713 * tui/tui-disasm.h: Rename include guard.
5714 * tui/tui-data.h: Rename include guard.
5715 * tui/tui-command.h: Rename include guard.
5716 * tic6x-tdep.h: Add include guard.
5717 * target/waitstatus.h: Rename include guard.
5718 * target/wait.h: Rename include guard.
5719 * target/target.h: Rename include guard.
5720 * target/resume.h: Rename include guard.
5721 * target-float.h: Rename include guard.
5722 * stabsread.h: Add include guard.
5723 * rs6000-tdep.h: Add include guard.
5724 * riscv-fbsd-tdep.h: Add include guard.
5725 * regformats/regdef.h: Rename include guard.
5726 * record.h: Rename include guard.
5727 * python/python.h: Rename include guard.
5728 * python/python-internal.h: Rename include guard.
5729 * python/py-stopevent.h: Rename include guard.
5730 * python/py-ref.h: Rename include guard.
5731 * python/py-record.h: Rename include guard.
5732 * python/py-record-full.h: Rename include guard.
5733 * python/py-record-btrace.h: Rename include guard.
5734 * python/py-instruction.h: Rename include guard.
5735 * python/py-events.h: Rename include guard.
5736 * python/py-event.h: Rename include guard.
5737 * procfs.h: Add include guard.
5738 * proc-utils.h: Add include guard.
5739 * p-lang.h: Add include guard.
5740 * or1k-tdep.h: Rename include guard.
5741 * observable.h: Rename include guard.
5742 * nto-tdep.h: Rename include guard.
5743 * nat/x86-linux.h: Rename include guard.
5744 * nat/x86-linux-dregs.h: Rename include guard.
5745 * nat/x86-gcc-cpuid.h: Add include guard.
5746 * nat/x86-dregs.h: Rename include guard.
5747 * nat/x86-cpuid.h: Rename include guard.
5748 * nat/ppc-linux.h: Rename include guard.
5749 * nat/mips-linux-watch.h: Rename include guard.
5750 * nat/linux-waitpid.h: Rename include guard.
5751 * nat/linux-ptrace.h: Rename include guard.
5752 * nat/linux-procfs.h: Rename include guard.
5753 * nat/linux-osdata.h: Rename include guard.
5754 * nat/linux-nat.h: Rename include guard.
5755 * nat/linux-namespaces.h: Rename include guard.
5756 * nat/linux-btrace.h: Rename include guard.
5757 * nat/glibc_thread_db.h: Rename include guard.
5758 * nat/gdb_thread_db.h: Rename include guard.
5759 * nat/gdb_ptrace.h: Rename include guard.
5760 * nat/fork-inferior.h: Rename include guard.
5761 * nat/amd64-linux-siginfo.h: Rename include guard.
5762 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5763 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5764 * nat/aarch64-linux.h: Rename include guard.
5765 * nat/aarch64-linux-hw-point.h: Rename include guard.
5766 * mn10300-tdep.h: Add include guard.
5767 * mips-linux-tdep.h: Add include guard.
5768 * mi/mi-parse.h: Rename include guard.
5769 * mi/mi-out.h: Rename include guard.
5770 * mi/mi-main.h: Rename include guard.
5771 * mi/mi-interp.h: Rename include guard.
5772 * mi/mi-getopt.h: Rename include guard.
5773 * mi/mi-console.h: Rename include guard.
5774 * mi/mi-common.h: Rename include guard.
5775 * mi/mi-cmds.h: Rename include guard.
5776 * mi/mi-cmd-break.h: Rename include guard.
5777 * m2-lang.h: Add include guard.
5778 * location.h: Rename include guard.
5779 * linux-record.h: Rename include guard.
5780 * linux-nat.h: Add include guard.
5781 * linux-fork.h: Add include guard.
5782 * i386-darwin-tdep.h: Rename include guard.
5783 * hppa-linux-offsets.h: Add include guard.
5784 * guile/guile.h: Rename include guard.
5785 * guile/guile-internal.h: Rename include guard.
5786 * gnu-nat.h: Rename include guard.
5787 * gdb-stabs.h: Rename include guard.
5788 * frv-tdep.h: Add include guard.
5789 * f-lang.h: Add include guard.
5790 * event-loop.h: Add include guard.
5791 * darwin-nat.h: Rename include guard.
5792 * cp-abi.h: Rename include guard.
5793 * config/sparc/nm-sol2.h: Rename include guard.
5794 * config/nm-nto.h: Rename include guard.
5795 * config/nm-linux.h: Add include guard.
5796 * config/i386/nm-i386gnu.h: Rename include guard.
5797 * config/djgpp/nl_types.h: Rename include guard.
5798 * config/djgpp/langinfo.h: Rename include guard.
5799 * compile/gcc-cp-plugin.h: Add include guard.
5800 * compile/gcc-c-plugin.h: Add include guard.
5801 * compile/compile.h: Rename include guard.
5802 * compile/compile-object-run.h: Rename include guard.
5803 * compile/compile-object-load.h: Rename include guard.
5804 * compile/compile-internal.h: Rename include guard.
5805 * compile/compile-cplus.h: Rename include guard.
5806 * compile/compile-c.h: Rename include guard.
5807 * common/xml-utils.h: Rename include guard.
5808 * common/x86-xstate.h: Rename include guard.
5809 * common/version.h: Rename include guard.
5810 * common/vec.h: Rename include guard.
5811 * common/tdesc.h: Rename include guard.
5812 * common/selftest.h: Rename include guard.
5813 * common/scoped_restore.h: Rename include guard.
5814 * common/scoped_mmap.h: Rename include guard.
5815 * common/scoped_fd.h: Rename include guard.
5816 * common/safe-iterator.h: Rename include guard.
5817 * common/run-time-clock.h: Rename include guard.
5818 * common/refcounted-object.h: Rename include guard.
5819 * common/queue.h: Rename include guard.
5820 * common/ptid.h: Rename include guard.
5821 * common/print-utils.h: Rename include guard.
5822 * common/preprocessor.h: Rename include guard.
5823 * common/pathstuff.h: Rename include guard.
5824 * common/observable.h: Rename include guard.
5825 * common/netstuff.h: Rename include guard.
5826 * common/job-control.h: Rename include guard.
5827 * common/host-defs.h: Rename include guard.
5828 * common/gdb_wait.h: Rename include guard.
5829 * common/gdb_vecs.h: Rename include guard.
5830 * common/gdb_unlinker.h: Rename include guard.
5831 * common/gdb_unique_ptr.h: Rename include guard.
5832 * common/gdb_tilde_expand.h: Rename include guard.
5833 * common/gdb_sys_time.h: Rename include guard.
5834 * common/gdb_string_view.h: Rename include guard.
5835 * common/gdb_splay_tree.h: Rename include guard.
5836 * common/gdb_setjmp.h: Rename include guard.
5837 * common/gdb_ref_ptr.h: Rename include guard.
5838 * common/gdb_optional.h: Rename include guard.
5839 * common/gdb_locale.h: Rename include guard.
5840 * common/gdb_assert.h: Rename include guard.
5841 * common/filtered-iterator.h: Rename include guard.
5842 * common/filestuff.h: Rename include guard.
5843 * common/fileio.h: Rename include guard.
5844 * common/environ.h: Rename include guard.
5845 * common/common-utils.h: Rename include guard.
5846 * common/common-types.h: Rename include guard.
5847 * common/common-regcache.h: Rename include guard.
5848 * common/common-inferior.h: Rename include guard.
5849 * common/common-gdbthread.h: Rename include guard.
5850 * common/common-exceptions.h: Rename include guard.
5851 * common/common-defs.h: Rename include guard.
5852 * common/common-debug.h: Rename include guard.
5853 * common/cleanups.h: Rename include guard.
5854 * common/buffer.h: Rename include guard.
5855 * common/btrace-common.h: Rename include guard.
5856 * common/break-common.h: Rename include guard.
5857 * cli/cli-utils.h: Rename include guard.
5858 * cli/cli-style.h: Rename include guard.
5859 * cli/cli-setshow.h: Rename include guard.
5860 * cli/cli-script.h: Rename include guard.
5861 * cli/cli-interp.h: Rename include guard.
5862 * cli/cli-decode.h: Rename include guard.
5863 * cli/cli-cmds.h: Rename include guard.
5864 * charset-list.h: Add include guard.
5865 * buildsym-legacy.h: Rename include guard.
5866 * bfin-tdep.h: Add include guard.
5867 * ax.h: Rename include guard.
5868 * arm-linux-tdep.h: Add include guard.
5869 * arm-fbsd-tdep.h: Add include guard.
5870 * arch/xtensa.h: Rename include guard.
5871 * arch/tic6x.h: Add include guard.
5872 * arch/i386.h: Add include guard.
5873 * arch/arm.h: Rename include guard.
5874 * arch/arm-linux.h: Rename include guard.
5875 * arch/arm-get-next-pcs.h: Rename include guard.
5876 * arch/amd64.h: Add include guard.
5877 * arch/aarch64-insn.h: Rename include guard.
5878 * arch-utils.h: Rename include guard.
5879 * annotate.h: Add include guard.
5880 * amd64-darwin-tdep.h: Rename include guard.
5881 * aarch64-linux-tdep.h: Add include guard.
5882 * aarch64-fbsd-tdep.h: Add include guard.
5883 * aarch32-linux-nat.h: Add include guard.
5885 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5887 * macrotab.c (macro_define_internal): New function that
5888 factorizes macro_define_object_internal and macro_define_function
5890 (macro_define_object_internal): Use macro_define_internal.
5891 (macro_define_function): Likewise.
5893 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5895 * macrocmd.c (extract_identifier): Return
5896 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5899 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5901 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5903 2019-02-05 Tom Tromey <tom@tromey.com>
5905 * target.c (target_stack::unpush): Move assertion earlier.
5907 2019-01-30 Tom Tromey <tom@tromey.com>
5910 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5911 (gdbpy_parse_and_eval): Likewise.
5912 * python/python-internal.h (gdbpy_allow_threads): New class.
5914 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5916 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5917 (aarch64_fbsd_fpregmap): Move earlier.
5918 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5919 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5920 instead of individual calls to trad_frame_set_reg_addr.
5921 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5923 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5924 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5925 instead of individual calls to trad_frame_set_reg_addr.
5927 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5929 * CONTRIBUTE: Replace contribution list with wiki link.
5931 2019-01-25 Tom Tromey <tom@tromey.com>
5933 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5935 2019-01-25 Tom Tromey <tom@tromey.com>
5937 * xtensa-linux-nat.c: Fix common/ includes.
5938 * xml-support.h: Fix common/ includes.
5939 * xml-support.c: Fix common/ includes.
5940 * x86-linux-nat.c: Fix common/ includes.
5941 * windows-nat.c: Fix common/ includes.
5942 * varobj.h: Fix common/ includes.
5943 * varobj.c: Fix common/ includes.
5944 * value.c: Fix common/ includes.
5945 * valops.c: Fix common/ includes.
5946 * utils.c: Fix common/ includes.
5947 * unittests/xml-utils-selftests.c: Fix common/ includes.
5948 * unittests/utils-selftests.c: Fix common/ includes.
5949 * unittests/unpack-selftests.c: Fix common/ includes.
5950 * unittests/tracepoint-selftests.c: Fix common/ includes.
5951 * unittests/style-selftests.c: Fix common/ includes.
5952 * unittests/string_view-selftests.c: Fix common/ includes.
5953 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5954 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5955 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5956 * unittests/rsp-low-selftests.c: Fix common/ includes.
5957 * unittests/parse-connection-spec-selftests.c: Fix common/
5959 * unittests/optional-selftests.c: Fix common/ includes.
5960 * unittests/offset-type-selftests.c: Fix common/ includes.
5961 * unittests/observable-selftests.c: Fix common/ includes.
5962 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5963 * unittests/memrange-selftests.c: Fix common/ includes.
5964 * unittests/memory-map-selftests.c: Fix common/ includes.
5965 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5966 * unittests/function-view-selftests.c: Fix common/ includes.
5967 * unittests/environ-selftests.c: Fix common/ includes.
5968 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5969 * unittests/common-utils-selftests.c: Fix common/ includes.
5970 * unittests/cli-utils-selftests.c: Fix common/ includes.
5971 * unittests/array-view-selftests.c: Fix common/ includes.
5972 * ui-file.c: Fix common/ includes.
5973 * tui/tui-io.c: Fix common/ includes.
5974 * tracepoint.h: Fix common/ includes.
5975 * tracepoint.c: Fix common/ includes.
5976 * tracefile-tfile.c: Fix common/ includes.
5977 * top.h: Fix common/ includes.
5978 * top.c: Fix common/ includes.
5979 * thread.c: Fix common/ includes.
5980 * target/waitstatus.h: Fix common/ includes.
5981 * target/waitstatus.c: Fix common/ includes.
5982 * target.h: Fix common/ includes.
5983 * target.c: Fix common/ includes.
5984 * target-memory.c: Fix common/ includes.
5985 * target-descriptions.c: Fix common/ includes.
5986 * symtab.h: Fix common/ includes.
5987 * symfile.c: Fix common/ includes.
5988 * stap-probe.c: Fix common/ includes.
5989 * spu-linux-nat.c: Fix common/ includes.
5990 * sparc-nat.c: Fix common/ includes.
5991 * source.c: Fix common/ includes.
5992 * solib.c: Fix common/ includes.
5993 * solib-target.c: Fix common/ includes.
5994 * ser-unix.c: Fix common/ includes.
5995 * ser-tcp.c: Fix common/ includes.
5996 * ser-pipe.c: Fix common/ includes.
5997 * ser-base.c: Fix common/ includes.
5998 * selftest-arch.c: Fix common/ includes.
5999 * s12z-tdep.c: Fix common/ includes.
6000 * rust-exp.y: Fix common/ includes.
6001 * rs6000-aix-tdep.c: Fix common/ includes.
6002 * riscv-tdep.c: Fix common/ includes.
6003 * remote.c: Fix common/ includes.
6004 * remote-notif.h: Fix common/ includes.
6005 * remote-fileio.h: Fix common/ includes.
6006 * remote-fileio.c: Fix common/ includes.
6007 * regcache.h: Fix common/ includes.
6008 * regcache.c: Fix common/ includes.
6009 * record-btrace.c: Fix common/ includes.
6010 * python/python.c: Fix common/ includes.
6011 * python/py-type.c: Fix common/ includes.
6012 * python/py-inferior.c: Fix common/ includes.
6013 * progspace.h: Fix common/ includes.
6014 * producer.c: Fix common/ includes.
6015 * procfs.c: Fix common/ includes.
6016 * proc-api.c: Fix common/ includes.
6017 * printcmd.c: Fix common/ includes.
6018 * ppc-linux-nat.c: Fix common/ includes.
6019 * parser-defs.h: Fix common/ includes.
6020 * osdata.c: Fix common/ includes.
6021 * obsd-nat.c: Fix common/ includes.
6022 * nat/x86-linux.c: Fix common/ includes.
6023 * nat/x86-linux-dregs.c: Fix common/ includes.
6024 * nat/x86-dregs.h: Fix common/ includes.
6025 * nat/x86-dregs.c: Fix common/ includes.
6026 * nat/ppc-linux.c: Fix common/ includes.
6027 * nat/mips-linux-watch.h: Fix common/ includes.
6028 * nat/mips-linux-watch.c: Fix common/ includes.
6029 * nat/linux-waitpid.c: Fix common/ includes.
6030 * nat/linux-ptrace.h: Fix common/ includes.
6031 * nat/linux-ptrace.c: Fix common/ includes.
6032 * nat/linux-procfs.c: Fix common/ includes.
6033 * nat/linux-personality.c: Fix common/ includes.
6034 * nat/linux-osdata.c: Fix common/ includes.
6035 * nat/linux-namespaces.c: Fix common/ includes.
6036 * nat/linux-btrace.h: Fix common/ includes.
6037 * nat/linux-btrace.c: Fix common/ includes.
6038 * nat/fork-inferior.c: Fix common/ includes.
6039 * nat/amd64-linux-siginfo.c: Fix common/ includes.
6040 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
6041 * nat/aarch64-linux.c: Fix common/ includes.
6042 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
6043 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
6044 * namespace.h: Fix common/ includes.
6045 * mips-linux-tdep.c: Fix common/ includes.
6046 * minsyms.c: Fix common/ includes.
6047 * mi/mi-parse.h: Fix common/ includes.
6048 * mi/mi-main.c: Fix common/ includes.
6049 * mi/mi-cmd-env.c: Fix common/ includes.
6050 * memrange.h: Fix common/ includes.
6051 * memattr.c: Fix common/ includes.
6052 * maint.h: Fix common/ includes.
6053 * maint.c: Fix common/ includes.
6054 * main.c: Fix common/ includes.
6055 * machoread.c: Fix common/ includes.
6056 * location.c: Fix common/ includes.
6057 * linux-thread-db.c: Fix common/ includes.
6058 * linux-nat.c: Fix common/ includes.
6059 * linux-fork.c: Fix common/ includes.
6060 * inline-frame.c: Fix common/ includes.
6061 * infrun.c: Fix common/ includes.
6062 * inflow.c: Fix common/ includes.
6063 * inferior.h: Fix common/ includes.
6064 * inferior.c: Fix common/ includes.
6065 * infcmd.c: Fix common/ includes.
6066 * inf-ptrace.c: Fix common/ includes.
6067 * inf-child.c: Fix common/ includes.
6068 * ia64-linux-nat.c: Fix common/ includes.
6069 * i387-tdep.c: Fix common/ includes.
6070 * i386-tdep.c: Fix common/ includes.
6071 * i386-linux-tdep.c: Fix common/ includes.
6072 * i386-linux-nat.c: Fix common/ includes.
6073 * i386-go32-tdep.c: Fix common/ includes.
6074 * i386-fbsd-tdep.c: Fix common/ includes.
6075 * i386-fbsd-nat.c: Fix common/ includes.
6076 * guile/scm-type.c: Fix common/ includes.
6077 * guile/guile.c: Fix common/ includes.
6078 * go32-nat.c: Fix common/ includes.
6079 * gnu-nat.c: Fix common/ includes.
6080 * gdbthread.h: Fix common/ includes.
6081 * gdbarch-selftests.c: Fix common/ includes.
6082 * gdb_usleep.c: Fix common/ includes.
6083 * gdb_select.h: Fix common/ includes.
6084 * gdb_bfd.c: Fix common/ includes.
6085 * gcore.c: Fix common/ includes.
6086 * fork-child.c: Fix common/ includes.
6087 * findvar.c: Fix common/ includes.
6088 * fbsd-nat.c: Fix common/ includes.
6089 * event-top.c: Fix common/ includes.
6090 * event-loop.c: Fix common/ includes.
6091 * dwarf2read.c: Fix common/ includes.
6092 * dwarf2loc.c: Fix common/ includes.
6093 * dwarf2-frame.c: Fix common/ includes.
6094 * dwarf-index-cache.c: Fix common/ includes.
6095 * dtrace-probe.c: Fix common/ includes.
6096 * disasm-selftests.c: Fix common/ includes.
6097 * defs.h: Fix common/ includes.
6098 * csky-tdep.c: Fix common/ includes.
6099 * cp-valprint.c: Fix common/ includes.
6100 * cp-support.h: Fix common/ includes.
6101 * cp-support.c: Fix common/ includes.
6102 * corelow.c: Fix common/ includes.
6103 * completer.h: Fix common/ includes.
6104 * completer.c: Fix common/ includes.
6105 * compile/compile.c: Fix common/ includes.
6106 * compile/compile-loc2c.c: Fix common/ includes.
6107 * compile/compile-cplus-types.c: Fix common/ includes.
6108 * compile/compile-cplus-symbols.c: Fix common/ includes.
6109 * command.h: Fix common/ includes.
6110 * cli/cli-dump.c: Fix common/ includes.
6111 * cli/cli-cmds.c: Fix common/ includes.
6112 * charset.c: Fix common/ includes.
6113 * build-id.c: Fix common/ includes.
6114 * btrace.h: Fix common/ includes.
6115 * btrace.c: Fix common/ includes.
6116 * breakpoint.h: Fix common/ includes.
6117 * breakpoint.c: Fix common/ includes.
6119 (enum agent_op): Fix common/ includes.
6120 * ax-general.c (struct aop_map): Fix common/ includes.
6121 * ax-gdb.c: Fix common/ includes.
6122 * auxv.c: Fix common/ includes.
6123 * auto-load.c: Fix common/ includes.
6124 * arm-tdep.c: Fix common/ includes.
6125 * arch/riscv.c: Fix common/ includes.
6126 * arch/ppc-linux-common.c: Fix common/ includes.
6127 * arch/i386.c: Fix common/ includes.
6128 * arch/arm.c: Fix common/ includes.
6129 * arch/arm-linux.c: Fix common/ includes.
6130 * arch/arm-get-next-pcs.c: Fix common/ includes.
6131 * arch/amd64.c: Fix common/ includes.
6132 * arch/aarch64.c: Fix common/ includes.
6133 * arch/aarch64-insn.c: Fix common/ includes.
6134 * arch-utils.c: Fix common/ includes.
6135 * amd64-windows-tdep.c: Fix common/ includes.
6136 * amd64-tdep.c: Fix common/ includes.
6137 * amd64-sol2-tdep.c: Fix common/ includes.
6138 * amd64-obsd-tdep.c: Fix common/ includes.
6139 * amd64-nbsd-tdep.c: Fix common/ includes.
6140 * amd64-linux-tdep.c: Fix common/ includes.
6141 * amd64-linux-nat.c: Fix common/ includes.
6142 * amd64-fbsd-tdep.c: Fix common/ includes.
6143 * amd64-fbsd-nat.c: Fix common/ includes.
6144 * amd64-dicos-tdep.c: Fix common/ includes.
6145 * amd64-darwin-tdep.c: Fix common/ includes.
6146 * agent.c: Fix common/ includes.
6147 * ada-lang.h: Fix common/ includes.
6148 * ada-lang.c: Fix common/ includes.
6149 * aarch64-tdep.c: Fix common/ includes.
6151 2019-01-25 Tom Tromey <tom@tromey.com>
6153 * common/create-version.sh: Use common/version.h.
6155 2019-01-24 Pedro Alves <palves@redhat.com>
6157 * infrun.c (signal_stop, signal_print, signal_program)
6158 (signal_catch, signal_pass): Now arrays instead of pointers.
6159 (update_signals_program_target, do_target_resume)
6160 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
6161 * linux-nat.c (linux_nat_target::pass_signals)
6162 (linux_nat_target::create_inferior, linux_nat_target::attach):
6164 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
6165 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
6166 * procfs.c (procfs_target::pass_signals): Adjust.
6167 * record-full.c (record_full_target::resume): Adjust.
6168 * remote.c (remote_target::pass_signals)
6169 (remote_target::program_signals): Adjust.
6170 * target-debug.h (target_debug_print_signals): Now takes a
6171 gdb::array_view as parameter. Adjust.
6172 * target.h (target_ops) <pass_signals, program_signals>: Replace
6173 pointer and length parameters with gdb::array_view.
6174 (target_pass_signals, target_program_signals): Likewise.
6175 * target-delegates.c: Regenerate.
6177 2019-01-24 Pedro Alves <palves@redhat.com>
6179 * common/forward-scope-exit.h
6180 (forward_scope_exit::forward_scope_exit): Pass arguments to
6181 m_bind_function directly, instead of creating a std::bind and
6184 2019-01-24 Alan Hayward <alan.hayward@arm.com>
6186 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6188 (pass_in_v_vfp_candidate): Likewise.
6190 2019-01-23 Tom Tromey <tom@tromey.com>
6191 Pedro Alves <palves@redhat.com>
6193 * regcache.c (class regcache_invalidator): Remove.
6194 (regcache::raw_write): Use make_scope_exit.
6196 2019-01-23 Tom Tromey <tom@tromey.com>
6198 * ui-out.h (class ui_out_emit_type): Update comment.
6200 2019-01-23 Tom Tromey <tom@tromey.com>
6202 * infrun.c (fetch_inferior_event): Update comment.
6204 2019-01-23 Tom Tromey <tom@tromey.com>
6205 Pedro Alves <palves@redhat.com>
6207 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
6209 (fetch_inferior_event): Use SCOPE_EXIT.
6212 2019-01-23 Tom Tromey <tom@tromey.com>
6213 Pedro Alves <palves@redhat.com>
6215 * infrun.c (disable_thread_events): Delete.
6216 (stop_all_threads): Use SCOPE_EXIT.
6218 2019-01-23 Tom Tromey <tom@tromey.com>
6219 Pedro Alves <palves@redhat.com>
6221 * symfile.c: Include forward-scope-exit.h.
6222 (clear_symtab_users_cleanup): Replace forward declaration with
6223 a FORWARD_SCOPE_EXIT.
6224 (syms_from_objfile_1): Use the forward_scope_exit and
6225 gdb::optional instead of cleanup_function.
6226 (reread_symbols): Use the forward_scope_exit instead of
6228 (clear_symtab_users_cleanup): Remove function.
6230 2019-01-23 Tom Tromey <tom@tromey.com>
6231 Pedro Alves <palves@redhat.com>
6233 * linux-nat.c: Include scope-exit.h.
6234 (cleanup_target_stop): Remove.
6235 (linux_nat_target::static_tracepoint_markers_by_strid): Use
6238 2019-01-23 Tom Tromey <tom@tromey.com>
6239 Pedro Alves <palves@redhat.com>
6241 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
6242 (call_function_by_hand_dummy): Use SCOPE_EXIT.
6244 2019-01-23 Tom Tromey <tom@tromey.com>
6245 Andrew Burgess <andrew.burgess@embecosm.com>
6246 Pedro Alves <palves@redhat.com>
6248 * infrun.c (fetch_inferior_event): Use scope_exit.
6249 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
6250 * top.c (execute_command): Use scope_exit.
6251 * breakpoint.c (bpstat_do_actions): Use scope_exit.
6252 * utils.c (do_bpstat_clear_actions_cleanup)
6253 (make_bpstat_clear_actions_cleanup): Remove.
6255 2019-01-23 Tom Tromey <tom@tromey.com>
6256 Pedro Alves <palves@redhat.com>
6258 * infrun.c: Include "common/scope-exit.h"
6259 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
6260 (wait_for_inferior): Use SCOPE_EXIT.
6261 (fetch_inferior_event): Use scope_exit.
6263 2019-01-23 Tom Tromey <tom@tromey.com>
6264 Pedro Alves <palves@redhat.com>
6266 * breakpoint.c (create_breakpoint): Remove cleanup.
6268 2019-01-23 Tom Tromey <tom@tromey.com>
6269 Andrew Burgess <andrew.burgess@embecosm.com>
6270 Pedro Alves <palves@redhat.com>
6272 2019-01-23 Pedro Alves <palves@redhat.com>
6274 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6276 2019-01-23 Pedro Alves <palves@redhat.com>
6277 Andrew Burgess <andrew.burgess@embecosm.com>
6279 * gdbthread.h: Include "common/forward-scope-exit.h".
6280 (scoped_finish_thread_state): Redefine custom class in terms of
6283 2019-01-23 Pedro Alves <palves@redhat.com>
6284 Andrew Burgess <andrew.burgess@embecosm.com>
6286 * common/forward-scope-exit.h: New file.
6288 2019-01-23 Pedro Alves <palves@redhat.com>
6289 Andrew Burgess <andrew.burgess@embecosm.com>
6290 Tom Tromey <tom@tromey.com>
6292 * common/scope-exit.h: New file.
6294 2019-01-23 Pedro Alves <palves@redhat.com>
6296 * common/preprocessor.h (ESC): Rename to ...
6297 (ESC_PARENS): ... this.
6298 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6299 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6301 2019-01-23 Tom Tromey <tom@tromey.com>
6303 * language.h (class scoped_switch_to_sym_language_if_auto):
6304 Initialize m_lang in both cases.
6306 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6308 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6311 2019-01-22 Tom Tromey <tom@tromey.com>
6313 * corelow.c: Do not include sys/file.h.
6315 2019-01-22 Tom Tromey <tom@tromey.com>
6317 * tui/tui-wingeneral.h: Include gdb_curses.h.
6319 2019-01-22 Tom Tromey <tom@tromey.com>
6321 * source-cache.h (class source_cache) <get_source_lines,
6322 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6324 2019-01-22 Tom Tromey <tom@tromey.com>
6326 * remote-fileio.h (struct remote_target): Declare.
6328 2019-01-22 Tom Tromey <tom@tromey.com>
6330 * python/py-arch.c: Do not include py-ref.h.
6331 * python/py-bpevent.c: Do not include py-ref.h.
6332 * python/py-cmd.c: Do not include py-ref.h.
6333 * python/py-continueevent.c: Do not include py-ref.h.
6334 * python/py-event.h: Do not include py-ref.h.
6335 * python/py-evtregistry.c: Do not include py-ref.h.
6336 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6337 * python/py-frame.c: Do not include py-ref.h.
6338 * python/py-framefilter.c: Do not include py-ref.h.
6339 * python/py-function.c: Do not include py-ref.h.
6340 * python/py-infevents.c: Do not include py-ref.h.
6341 * python/py-linetable.c: Do not include py-ref.h.
6342 * python/py-objfile.c: Do not include py-ref.h.
6343 * python/py-param.c: Do not include py-ref.h.
6344 * python/py-prettyprint.c: Do not include py-ref.h.
6345 * python/py-progspace.c: Do not include py-ref.h.
6346 * python/py-symbol.c: Do not include py-ref.h.
6347 * python/py-symtab.c: Do not include py-ref.h.
6348 * python/py-type.c: Do not include py-ref.h.
6349 * python/py-unwind.c: Do not include py-ref.h.
6350 * python/py-utils.c: Do not include py-ref.h.
6351 * python/py-value.c: Do not include py-ref.h.
6352 * python/py-varobj.c: Do not include py-ref.h.
6353 * python/py-xmethods.c: Do not include py-ref.h.
6354 * python/python.c: Do not include py-ref.h.
6355 * varobj.c: Do not include py-ref.h.
6357 2019-01-22 Tom Tromey <tom@tromey.com>
6359 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6362 2019-01-22 Tom Tromey <tom@tromey.com>
6364 * compile/compile-cplus-types.c: Remove a comment by #include.
6366 2019-01-22 Tom Tromey <tom@tromey.com>
6368 * compile/gcc-c-plugin.h: Include compile-internal.h.
6370 2019-01-22 Tom Tromey <tom@tromey.com>
6372 * stabsread.c (EXTERN): Do not define.
6373 (symnum, next_symbol_text_func, processing_gcc_compilation)
6374 (within_function, global_sym_chain, global_stabs)
6375 (previous_stab_code, this_object_header_files)
6376 (n_this_object_header_files)
6377 (n_allocated_this_object_header_files): Define.
6378 * stabsread.h (EXTERN): Never define. Use "extern".
6380 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6382 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6385 2019-01-21 Tom Tromey <tom@tromey.com>
6387 * ui-out.c: Fix includes.
6388 * tui/tui-source.c: Fix includes.
6389 * target.c: Fix includes.
6390 * remote.c: Fix includes.
6391 * regcache.c: Fix includes.
6392 * python/py-block.c: Fix includes.
6393 * printcmd.c: Fix includes.
6394 * or1k-tdep.c: Fix includes.
6395 * mi/mi-main.c: Fix includes.
6396 * m32r-tdep.c: Fix includes.
6397 * csky-tdep.c: Fix includes.
6398 * compile/compile-cplus-types.c: Fix includes.
6399 * cli/cli-interp.c: Fix includes.
6401 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6403 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6406 2019-01-16 Tom Tromey <tom@tromey.com>
6408 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6410 (struct objfile) <msymbols_range>: Move from top level.
6411 <msymbols>: New method.
6412 (class objfile_msymbols): Remove.
6413 * symtab.c (default_collect_symbol_completion_matches_break_on):
6415 * symmisc.c (dump_msymbols): Update.
6416 * stabsread.c (scan_file_globals): Update.
6417 * objc-lang.c (info_selectors_command, info_classes_command)
6418 (find_methods): Update.
6419 * minsyms.c (find_solib_trampoline_target): Update.
6420 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6421 * coffread.c (coff_symfile_read): Update.
6422 * ada-lang.c (ada_lookup_simple_minsym)
6423 (ada_collect_symbol_completion_matches): Update.
6425 2019-01-16 Tom Tromey <tom@tromey.com>
6427 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6428 type. Remove no-argument constructor.
6429 <iterator::operator++>: Simplify.
6431 <end>: Use minimal_symbol_count.
6433 2019-01-16 Tom Tromey <tom@tromey.com>
6435 * objfiles.h (struct objfile) <psymtabs>: New method.
6436 (class objfile_psymtabs): Remove.
6437 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6439 <range>: New method.
6440 (require_partial_symbols): Change return type.
6441 * psymtab.c (require_partial_symbols)
6442 (psym_expand_symtabs_matching): Update.
6443 * mdebugread.c (parse_partial_symbols): Update.
6444 * dbxread.c (dbx_end_psymtab): Update.
6446 2019-01-15 Tom Tromey <tom@tromey.com>
6448 * symtab.c (lookup_objfile_from_block)
6449 (lookup_symbol_in_objfile_symtabs)
6450 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6451 (find_line_symtab, info_sources_command)
6452 (default_collect_symbol_completion_matches_break_on)
6453 (make_source_files_completion_list): Update.
6454 * symmisc.c (print_objfile_statistics, dump_objfile)
6455 (maintenance_print_symbols, maintenance_info_symtabs)
6456 (maintenance_check_symtabs, maintenance_info_line_tables):
6458 * source.c (select_source_symtab)
6459 (forget_cached_source_info_for_objfile): Update.
6460 * objfiles.h (class objfile_compunits): Remove.
6461 (struct objfile) <compunits_range>: New typedef.
6462 (compunits): New method.
6463 * objfiles.c (objfile_relocate1): Update.
6464 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6465 * maint.c (count_symtabs_and_blocks): Update.
6466 * linespec.c (iterate_over_all_matching_symtabs): Update.
6467 * cp-support.c (add_symbol_overload_list_qualified): Update.
6468 * coffread.c (coff_symtab_read): Update.
6469 * ada-lang.c (add_nonlocal_symbols)
6470 (ada_collect_symbol_completion_matches)
6471 (ada_add_global_exceptions): Update.
6473 2019-01-15 Tom Tromey <tom@tromey.com>
6475 * progspace.h (program_space) <objfiles_safe_range>: New
6477 <objfiles_safe>: New method.
6478 * objfiles.h (class all_objfiles_safe): Remove.
6479 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6480 * jit.c (jit_inferior_exit_hook): Update.
6482 2019-01-17 Tom Tromey <tom@tromey.com>
6484 * progspace.h (program_space) <objfiles_range>: New typedef.
6485 <objfiles>: New method.
6486 <objfiles_head>: Rename from objfiles.
6487 (object_files): Update.
6488 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6489 * guile/scm-pretty-print.c
6490 (ppscm_find_pretty_printer_from_objfiles): Update.
6491 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6492 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6494 * python/py-progspace.c (pspy_get_objfiles): Update.
6495 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6497 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6498 (objfpy_lookup_objfile_by_build_id): Update.
6499 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6500 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6502 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6503 (expand_symtab_containing_pc, lookup_objfile_from_block)
6504 (lookup_static_symbol, basic_lookup_transparent_type)
6505 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6506 (find_line_symtab, info_sources_command)
6507 (default_collect_symbol_completion_matches_break_on)
6508 (make_source_files_completion_list, find_main_name): Update.
6509 * symmisc.c (print_symbol_bcache_statistics)
6510 (print_objfile_statistics, maintenance_print_symbols)
6511 (maintenance_print_msymbols, maintenance_print_objfiles)
6512 (maintenance_info_symtabs, maintenance_check_symtabs)
6513 (maintenance_expand_symtabs, maintenance_info_line_tables):
6515 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6516 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6517 (map_overlay_command, unmap_overlay_command)
6518 (simple_overlay_update, expand_symtabs_matching)
6519 (map_symbol_filenames): Update.
6520 * symfile-debug.c (set_debug_symfile): Update.
6521 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6523 * source.c (select_source_symtab, forget_cached_source_info):
6525 * solib.c (solib_read_symbols): Update.
6526 * solib-spu.c (append_ocl_sos): Update.
6527 * psymtab.c (maintenance_print_psymbols)
6528 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6529 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6530 * printcmd.c (info_symbol_command): Update.
6531 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6533 * objfiles.h (class all_objfiles): Remove.
6534 * objfiles.c (have_partial_symbols, have_full_symbols)
6535 (have_minimal_symbols, qsort_cmp, update_section_map)
6536 (shared_objfile_contains_address_p)
6537 (default_iterate_over_objfiles_in_search_order): Update.
6538 * objc-lang.c (info_selectors_command, info_classes_command)
6539 (find_methods): Update.
6540 * minsyms.c (find_solib_trampoline_target): Update.
6541 * maint.c (maintenance_info_sections)
6542 (maintenance_translate_address, count_symtabs_and_blocks):
6544 * main.c (captured_main_1): Update.
6545 * linux-thread-db.c (try_thread_db_load_from_pdir)
6546 (has_libpthread): Update.
6547 * linespec.c (iterate_over_all_matching_symtabs)
6548 (search_minsyms_for_name): Update.
6549 * jit.c (jit_find_objf_with_entry_addr): Update.
6550 * hppa-tdep.c (find_unwind_entry)
6551 (hppa_lookup_stub_minimal_symbol): Update.
6552 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6554 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6555 (elf_gnu_ifunc_resolve_by_got): Update.
6556 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6557 * dwarf-index-write.c (save_gdb_index_command): Update.
6558 * cp-support.c (add_symbol_overload_list_qualified): Update.
6559 * breakpoint.c (create_overlay_event_breakpoint)
6560 (create_longjmp_master_breakpoint)
6561 (create_std_terminate_master_breakpoint)
6562 (create_exception_master_breakpoint): Update.
6563 * blockframe.c (find_pc_partial_function): Update.
6564 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6565 (ada_collect_symbol_completion_matches)
6566 (ada_add_global_exceptions): Update.
6568 2019-01-17 Tom Tromey <tom@tromey.com>
6570 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6572 (solib_target_parse_libraries): Change return type.
6573 (library_list_start_segment, library_list_start_section)
6574 (library_list_end_library, library_list_start_library); Update.
6575 (solib_target_free_library_list): Remove.
6576 (solib_target_parse_libraries): Remove cleanup. Change return
6578 (solib_target_current_sos): Update.
6580 2019-01-17 Tom Tromey <tromey@bapiya>
6582 * valprint.c: Replace "the the" with "the".
6583 * symtab.c: Replace "the the" with "the".
6584 * solib.c: Replace "the the" with "the".
6585 * solib-dsbt.c: Replace "the the" with "the".
6586 * linespec.c: Replace "the the" with "the".
6587 * dwarf2loc.h: Replace "the the" with "the".
6588 * amd64-windows-tdep.c: Replace "the the" with "the".
6589 * aarch64-tdep.c: Replace "the the" with "the".
6591 2019-01-16 Keith Seitz <keiths@redhat.com>
6594 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6595 <builder>: Rename to ..
6596 <m_builder>: ... this and make private.
6597 (dwarf2_cu::get_builder): New method. Change all users of
6598 `builder' to use this method.
6599 (dwarf2_start_symtab): Move to ...
6600 (dwarf2_cu::start_symtab): ... here. Update all callers
6601 (setup_type_unit_groups): Move to ...
6602 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6604 (dwarf2_cu::reset_builder): New method.
6605 (process_full_compunit, process_full_type_unit): Use
6606 dwarf2_cu::reset_builder.
6607 (follow_die_offset): Record the ancestor CU if it is different
6608 from the followed DIE's CU.
6609 (follow_die_sig_1): Likewise.
6611 2019-01-15 Tom Tromey <tom@tromey.com>
6613 * remote.c (class remote_state) <buf>: Now a char_vector.
6615 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6617 (remote_target::getpkt_or_notif_sane_1)
6618 (remote_target::getpkt_sane)
6619 (remote_target::getpkt_or_notif_sane): Likewise.
6620 (class remote_target) <putpkt>: New overload.
6621 (remote_target::read_frame): Change type of "buf_p". Remove
6623 (packet_ok): New overload.
6624 (packet_check_result): New overload.
6627 2019-01-14 Tom Tromey <tom@tromey.com>
6629 * remote-notif.c (handle_notification, remote_notif_ack)
6630 (remote_notif_parse): Make "buf" const.
6631 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6633 (remote_notif_parse, remote_notif_ack, handle_notification):
6635 * remote.c (remote_notif_stop_parse): Make "buf" const.
6636 (remote_target::remote_parse_stop_reply): Make "buf" const.
6637 (remote_notif_stop_ack): Make "buf" const.
6639 2019-01-14 Tom Tromey <tom@tromey.com>
6641 * remote.c (remote_console_output): Make parameter const.
6643 2019-01-14 Tom Tromey <tom@tromey.com>
6645 * target-debug.h (target_debug_print_signals): Constify.
6646 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6647 * procfs.c (procfs_target::pass_signals): Update.
6648 * linux-nat.c (linux_nat_target::pass_signals): Update.
6649 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6650 * target-delegates.c: Rebuild.
6651 * remote.c (remote_target::program_signals): Update.
6652 (remote_target::pass_signals): Update.
6653 * target.c (target_pass_signals): Constify argument.
6654 (target_program_signals): Likewise.
6655 * target.h (struct target_ops) <pass_signals, program_signals>:
6657 (target_pass_signals, target_program_signals): Constify argument.
6659 2019-01-14 Tom Tromey <tom@tromey.com>
6662 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6664 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6666 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6668 * rs6000-tdep.c: Include reggroups.h.
6669 (IS_V_ALIAS_PSEUDOREG): Define.
6670 (rs6000_register_name): Return names for the "vX" aliases.
6671 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6672 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6673 aliases. Call default_register_reggroup_p for all other
6675 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6677 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6678 Handle "vX" aliases.
6679 (v_alias_pseudo_register_collect): New function.
6680 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6681 (rs6000_gdbarch_init): Initialize "vX" aliases as
6682 pseudo-registers. Restore registration of
6683 rs6000_pseudo_register_reggroup_p with
6684 set_tdesc_pseudo_register_reggroup_p.
6686 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6688 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6689 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6690 set_gdbarch_num_pseudo_regs.
6692 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6694 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6695 Remove arg prefixname, add do_set and do_show.
6696 Add member functions set_list and show_list.
6697 * cli/cli-style.c (class cli_style_option): Update accordingly.
6698 (style_set_list): Move to file scope.
6699 (style_show_list): Likewise.
6700 (set_style): Call help_list.
6701 (show_style): Call cmd_show_list.
6702 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6703 Update to use the new macro.
6705 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6707 * ada-lang.c (_initialize_ada_language): Expand the help text
6708 for the "catch exception" command.
6710 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6712 * symtab.c (matching_obj_sections): Initialize obj,
6713 declare it closer to its usage.
6715 2019-01-10 Tom Tromey <tom@tromey.com>
6717 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6718 (basic_inf_threads_range): Remove.
6719 (inf_threads_range, inf_non_exited_threads_range)
6720 (safe_inf_threads_range): Use next_adapter.
6722 2019-01-10 Keith Seitz <keiths@redhat.com>
6726 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6727 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6729 2019-01-10 Keith Seitz <keiths@redhat.com>
6733 * dictionary.c (pending_to_vector): Remove.
6734 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6735 Remove _1 suffix, replacing functions of the same name. Update
6737 (dict_create_hashed, dict_create_hashed_expandable)
6738 (dict_create_linear, dict_create_linear_expandable, dict_free)
6739 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6740 Make functions static.
6742 2019-01-10 Keith Seitz <keiths@redhat.com>
6746 * dictionary.h (struct dictionary): Replace declaration with
6748 (dict_create_hashed, dict_create_hashed_expandable)
6749 (dict_create_linear, dict_create_linear_expandable)
6750 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6751 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6752 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6753 taking multidictionary argument.
6754 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6755 * block.h (struct block) <dict>: Change to multidictionary
6756 and rename `multidict'.
6757 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6758 symmisc.c: Update all dictionary references to multidictionary.
6760 2019-01-10 Keith Seitz <keiths@redhat.com>
6764 * dictionary.c: Include unordered_map.
6765 (pending_to_vector): New function.
6766 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6767 Rewrite the non-"_1" functions to take vector instead
6769 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6770 "new" _1 versions of the same name.
6771 (multidictionary): Define.
6772 (std::hash<enum language): New definition.
6773 (collate_pending_symbols_by_language, mdict_create_hashed)
6774 (mdict_create_hashed_expandable, mdict_create_linear)
6775 (mdict_create_linear_expandable, mdict_free)
6776 (find_language_dictionary, create_new_language_dictionary)
6777 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6778 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6779 (mdict_size, mdict_empty): New functions.
6780 * dictionary.h (mdict_iterator): Define.
6782 2019-01-10 Pedro Alves <palves@redhat.com>
6784 * breakpoint.c (read_uploaded_action)
6785 (create_tracepoint_from_upload): Adjust to use
6786 gdb::unique_xmalloc_ptr.
6787 * ctf.c (ctf_write_uploaded_tp):
6788 (SET_ARRAY_FIELD): Use emplace_back.
6789 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6790 * tracefile-tfile.c (tfile_write_uploaded_tp):
6791 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6792 gdb::unique_xmalloc_ptr.
6793 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6794 at_string, cond_string, cmd_strings>: Replace char pointers
6795 with gdb::unique_xmalloc_ptr.
6797 2019-01-10 Pedro Alves <palves@redhat.com>
6799 * solib-target.c (library_list_start_library): Don't xstrdup name.
6801 2019-01-10 Pedro Alves <palves@redhat.com>
6803 * mdebugread.c (parse_partial_symbols): Use
6804 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6806 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6808 * linux-fork.c (scoped_switch_fork_info)
6809 <~scoped_switch_fork_info>: Fix incorrect variable name.
6811 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6813 * linux-fork.c (scoped_switch_fork_info)
6814 <scoped_switch_fork_info>: Make explicit.
6815 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6817 2019-01-10 Tom Tromey <tom@tromey.com>
6819 * objfiles.h (objfile::reset_psymtabs): Update.
6820 * objfiles.c (objfile::objfile): Update.
6821 * psymtab.h (psymtab_storage::obstack): Update.
6822 (psymtab_storage::m_obstack): Use gdb::optional.
6823 (class psymtab_storage): Update comment. Remove objfile
6825 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6827 2019-01-10 Tom Tromey <tom@tromey.com>
6829 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6830 <free_psymtabs>: Now private.
6831 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6832 (allocate_psymtab): Use new method.
6834 2019-01-10 Tom Tromey <tom@tromey.com>
6836 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6837 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6838 * mdebugread.c (parse_partial_symbols): Use
6839 allocate_dependencies.
6840 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6841 allocate_dependencies.
6842 (process_psymtab_comp_unit_reader)
6843 (build_type_psymtab_dependencies): Likewise.
6844 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6846 2019-01-10 Tom Tromey <tom@tromey.com>
6848 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6849 PSYMBOL_SET_LANGUAGE.
6850 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6852 2019-01-10 Tom Tromey <tom@tromey.com>
6854 * psymtab.h (psymtab_storage::obstack): New method.
6855 <m_obstack>: Rename from obstack; now private.
6856 * psymtab.c (psymtab_storage): Update.
6857 * dwarf2read.c (create_addrmap_from_index)
6858 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6861 2019-01-10 Tom Tromey <tom@tromey.com>
6863 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6864 * objfiles.h (objfile::reset_psymtabs): New method.
6866 2019-01-10 Tom Tromey <tom@tromey.com>
6868 * symmisc.c (print_symbol_bcache_statistics): Update.
6869 (print_objfile_statistics): Update.
6870 * symfile.c (reread_symbols): Update.
6871 * psymtab.h (class psymtab_storage): New.
6872 * psymtab.c (psymtab_storage): New constructor.
6873 (~psymtab_storage): New destructor.
6874 (require_partial_symbols): Update.
6875 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6876 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6877 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6878 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6879 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6880 (start_psymtab_common, end_psymtab_common)
6881 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6882 (allocate_psymtab): Update.
6883 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6885 (dump_psymtab_addrmap, maintenance_print_psymbols)
6886 (maintenance_check_psymtabs): Update.
6887 (class objfile_psymtabs): Move to objfiles.h.
6888 * psympriv.h (discard_psymtab): Now inline.
6889 (psymtab_discarder::psymtab_discarder): Update.
6890 (psymtab_discarder::~psymtab_discarder): Update.
6891 (ALL_OBJFILE_PSYMTABS): Rewrite.
6892 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6893 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6895 <partial_symtabs>: New field.
6896 (class objfile_psymtabs): Move from psymtab.h. Update.
6897 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6899 (objfile::~objfile): Don't destroy psymbol_cache.
6900 * mdebugread.c (parse_partial_symbols): Update.
6901 * dwarf2read.c (create_addrmap_from_index)
6902 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6903 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6904 (add_partial_subprogram, dwarf2_ranges_read): Update.
6905 * dwarf-index-write.c (write_address_map)
6906 (write_one_signatured_type, recursively_write_psymbols)
6907 (class debug_names, class debug_names, write_psymtabs_to_index):
6910 2019-01-10 Tom Tromey <tom@tromey.com>
6912 * symtab.h (SYMBOL_SET_NAMES): Update.
6913 (symbol_set_names): Update.
6914 (MSYMBOL_SET_NAMES): Update.
6915 * symtab.c (symbol_set_names): Change argument to be an
6916 objfile_per_bfd_storage.
6917 * psymtab.c (add_psymbol_to_bcache): Update.
6918 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6920 2019-01-10 Tom Tromey <tom@tromey.com>
6922 * symtab.c (create_demangled_names_hash): Change argument to be an
6923 objfile_per_bfd_storage.
6924 (symbol_set_names): Update.
6926 2019-01-10 Tom Tromey <tom@tromey.com>
6928 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6930 * psymtab.c (init_psymbol_list): Do nothing if already called.
6931 * psympriv.h (init_psymbol_list): Add comment.
6932 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6934 * dbxread.c (dbx_symfile_read): Unconditionally call
6937 2019-01-10 Tom Tromey <tom@tromey.com>
6939 * xcoffread.c (scan_xcoff_symtab): Update.
6940 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6942 * mdebugread.c (parse_partial_symbols)
6943 (handle_psymbol_enumerators): Update.
6944 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6945 * dbxread.c (read_dbx_symtab): Update.
6946 * psympriv.h (psymbol_placement): New enum.
6947 (add_psymbol_to_list): Update.
6949 2019-01-10 Tom Tromey <tom@tromey.com>
6951 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6952 static_psymbols parameters.
6953 (scan_xcoff_symtab): Update.
6954 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6955 static_psymbols parameters.
6956 * psympriv.h (start_psymtab_common): Update.
6957 * mdebugread.c (parse_partial_symbols): Update.
6958 * dwarf2read.c (create_partial_symtab): Update.
6959 * dbxread.c (read_dbx_symtab): Update.
6960 (start_psymtab): Remove global_psymbols and static_psymbols
6963 2019-01-10 Tom Tromey <tom@tromey.com>
6965 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6966 * psymtab.c (allocate_psymtab): Add comment.
6967 * psympriv.h (allocate_psymtab): Add comment.
6968 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6970 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6972 2019-01-10 Tom Tromey <tom@tromey.com>
6974 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6976 * mipsread.c: Include mdebugread.h.
6977 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6979 * elfread.c: Include mdebugread.h.
6981 2019-01-09 Tom Tromey <tom@tromey.com>
6983 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6984 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6985 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6986 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6987 (psym_lookup_symbol, psym_find_last_source_symtab)
6988 (psym_forget_cached_source_info, psym_print_stats)
6989 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6990 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6991 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6992 (psym_find_compunit_symtab_by_address)
6993 (maintenance_print_psymbols, maintenance_info_psymtabs)
6994 (maintenance_check_psymtabs): Use ranged for.
6995 * psymtab.h (class objfile_psymtabs): New.
6996 (require_partial_symbols): Return objfile_psymtabs.
6997 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6999 2019-01-09 Tom Tromey <tom@tromey.com>
7001 * symfile.c (overlay_invalidate_all, find_pc_overlay)
7002 (find_pc_mapped_section, list_overlays_command)
7003 (map_overlay_command, unmap_overlay_command)
7004 (simple_overlay_update): Use all_objfiles.
7005 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
7006 * printcmd.c (info_symbol_command): Use all_objfiles.
7007 * objfiles.h (ALL_OBJSECTIONS): Remove.
7008 * maint.c (maintenance_translate_address): Use all_objfiles.
7009 * gcore.c (gcore_create_callback): Use all_objfiles.
7010 (objfile_find_memory_regions): Likewise.
7012 2019-01-09 Tom Tromey <tom@tromey.com>
7014 * symtab.c (find_line_symtab, info_sources_command)
7015 (make_source_files_completion_list): Use objfile_compunits.
7016 * source.c (select_source_symtab): Use objfile_compunits.
7017 * objfiles.h (struct objfile): Update comment.
7018 (ALL_OBJFILES): Remove.
7019 (ALL_FILETABS): Remove.
7020 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
7023 2019-01-09 Tom Tromey <tom@tromey.com>
7025 * symmisc.c (print_objfile_statistics, dump_objfile)
7026 (maintenance_print_symbols): Use compunit_filetabs.
7027 * source.c (forget_cached_source_info_for_objfile): Use
7029 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
7030 (ALL_FILETABS): Use compunit_filetabs.
7031 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
7032 * coffread.c (coff_symtab_read): Use compunit_filetabs.
7034 2019-01-09 Tom Tromey <tom@tromey.com>
7036 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
7037 (compunit_filetabs): New.
7038 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
7040 (info_sources_command, make_source_files_completion_list): Remove
7042 * symmisc.c (print_objfile_statistics, dump_objfile)
7043 (maintenance_print_symbols): Remove declaration.
7044 (maintenance_info_symtabs): Use compunit_filetabs.
7045 (maintenance_info_line_tables): Likewise.
7046 * source.c (select_source_symtab): Change local variable name.
7047 (forget_cached_source_info_for_objfile): Remove declaration.
7048 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
7049 * objfiles.c (objfile_relocate1): Remove declaration.
7050 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7052 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
7053 * coffread.c (coff_symtab_read): Remove declaration.
7054 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
7057 2019-01-09 Tom Tromey <tom@tromey.com>
7059 * symtab.c (lookup_objfile_from_block)
7060 (find_pc_sect_compunit_symtab, search_symbols)
7061 (default_collect_symbol_completion_matches_break_on): Use
7063 * objfiles.h (ALL_COMPUNITS): Remove.
7064 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
7065 * cp-support.c (add_symbol_overload_list_qualified): Use
7067 * ada-lang.c (ada_collect_symbol_completion_matches)
7068 (ada_add_global_exceptions): Use objfile_compunits.
7070 2019-01-09 Tom Tromey <tom@tromey.com>
7072 * source.c (select_source_symtab)
7073 (forget_cached_source_info_for_objfile): Remove declaration.
7074 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7076 * maint.c (count_symtabs_and_blocks): Remove declaration.
7077 * cp-support.c (add_symbol_overload_list_qualified): Remove
7079 * coffread.c (coff_symtab_read): Remove declaration.
7080 * symtab.c (lookup_symbol_in_objfile_symtabs)
7081 (basic_lookup_transparent_type_1): Use objfile_compunits.
7082 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
7083 (info_sources_command, search_symbols)
7084 (default_collect_symbol_completion_matches_break_on)
7085 (make_source_files_completion_list): Remove declaration.
7086 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
7087 (ada_collect_symbol_completion_matches)
7088 (ada_add_global_exceptions): Remove declaration.
7089 * linespec.c (iterate_over_all_matching_symtabs): Use
7091 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
7092 (class objfile_compunits): New.
7093 (ALL_COMPUNITS): Use objfile_compunits.
7094 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
7095 (maintenance_check_symtabs, maintenance_info_line_tables): Use
7097 * objfiles.c (objfile_relocate1): Use objfile_compunits.
7099 2019-01-09 Tom Tromey <tom@tromey.com>
7101 * symtab.c (search_symbols)
7102 (default_collect_symbol_completion_matches_break_on): Use
7104 * ada-lang.c (ada_lookup_simple_minsym)
7105 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
7106 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
7107 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
7109 * coffread.c (coff_symfile_read): Use objfile_msymbols.
7110 * symmisc.c (dump_msymbols): Use objfile_msymbols.
7111 * objc-lang.c (find_methods): Use objfile_msymbols.
7112 (info_selectors_command, info_classes_command): Likewise.
7113 * stabsread.c (scan_file_globals): Use objfile_msymbols.
7114 * objfiles.h (class objfile_msymbols): New.
7115 (ALL_OBJFILE_MSYMBOLS): Remove.
7116 (ALL_MSYMBOLS): Remove.
7118 2019-01-09 Tom Tromey <tom@tromey.com>
7120 * common/next-iterator.h (next_adapter): Add Iterator template
7122 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
7123 (class all_objfiles_safe): New.
7124 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
7125 * objfiles.c (put_objfile_before): Update comment.
7126 (add_separate_debug_objfile): Likewise.
7127 (free_all_objfiles): Use all_objfiles_safe.
7128 (objfile_purge_solibs): Likewise.
7130 2019-01-09 Tom Tromey <tom@tromey.com>
7132 * symtab.c (iterate_over_symtabs, matching_obj_sections)
7133 (expand_symtab_containing_pc, lookup_static_symbol)
7134 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
7135 (find_symbol_at_address, find_line_symtab, find_main_name): Use
7137 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
7138 * breakpoint.c (create_overlay_event_breakpoint)
7139 (create_longjmp_master_breakpoint)
7140 (create_std_terminate_master_breakpoint)
7141 (create_exception_master_breakpoint): Use all_objfiles.
7142 * linux-thread-db.c (try_thread_db_load_from_pdir)
7143 (has_libpthread): Use all_objfiles.
7144 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
7145 * linespec.c (iterate_over_all_matching_symtabs)
7146 (search_minsyms_for_name): Use all_objfiles.
7147 * maint.c (maintenance_info_sections): Use all_objfiles.
7148 * main.c (captured_main_1): Use all_objfiles.
7149 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
7150 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
7151 * guile/scm-pretty-print.c
7152 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
7153 * solib-spu.c (append_ocl_sos): Use all_objfiles.
7154 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
7155 (maintenance_print_msymbols): Use all_objfiles.
7156 * source.c (select_source_symtab): Use all_objfiles.
7157 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
7158 * symfile.c (remove_symbol_file_command)
7159 (expand_symtabs_matching, map_symbol_filenames): Use
7161 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
7163 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
7164 * objc-lang.c (find_methods): Use all_objfiles.
7165 * objfiles.c (have_partial_symbols, have_full_symbols)
7166 (have_minimal_symbols, qsort_cmp)
7167 (default_iterate_over_objfiles_in_search_order): Use
7169 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
7170 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
7171 (maintenance_check_psymtabs): Use all_objfiles.
7172 (ALL_PSYMTABS): Remove.
7173 * compile/compile-object-run.c (do_module_cleanup): Use
7175 * blockframe.c (find_pc_partial_function): Use all_objfiles.
7176 * cp-support.c (add_symbol_overload_list_qualified): Use
7178 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
7180 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
7181 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
7183 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
7184 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
7185 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7187 * solib.c (solib_read_symbols): Use all_objfiles
7189 2019-01-09 Tom Tromey <tom@tromey.com>
7191 * probe.c (parse_probes_in_pspace): Use all_objfiles.
7192 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
7194 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
7195 * symmisc.c (print_symbol_bcache_statistics)
7196 (print_objfile_statistics, maintenance_print_objfiles)
7197 (maintenance_info_symtabs, maintenance_check_symtabs)
7198 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
7200 * source.c (forget_cached_source_info): Use all_objfiles.
7201 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
7202 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
7203 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
7204 * objfiles.c (update_section_map): Use all_objfiles.
7205 (shared_objfile_contains_address_p): Likewise.
7206 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
7207 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
7209 2019-01-09 Tom Tromey <tom@tromey.com>
7211 * common/next-iterator.h: New file.
7212 * objfiles.h (class all_objfiles): New.
7213 (struct objfile_iterator): New.
7215 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7217 * NEWS: Move the description of the changed "frame", "select-frame",
7218 and "info frame" commands to the Changed commands section.
7220 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
7222 * gdbtypes.c (check_stub_method_group): Remove handling of old
7224 * linespec.c (find_methods): Likewise.
7225 * stabsread.c (read_member_functions): Likewise.
7226 * valops.c (search_struct_method): Likewise.
7227 (value_struct_elt_for_reference): Likewise.
7228 * NEWS: Mention this change.
7230 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7232 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
7234 * source.c (print_source_lines_base): Update line number check.
7235 (print_source_lines): New function.
7236 (source_lines_range::source_lines_range): New function.
7237 * source.h (class source_lines_range): New class.
7238 (print_source_lines): New declaration.
7240 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7242 * linespec.c (linespec_state_destructor): Free self->canonical_names.
7244 2019-01-08 Tom Tromey <tom@tromey.com>
7245 Simon Marchi <simon.marchi@ericsson.com>
7248 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
7249 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
7250 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7251 * f-exp.y (DOLLAR_VARIABLE): Likewise.
7252 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
7253 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7255 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7257 * source.c (select_source_symtab): Move header comment to
7258 declaration in source.h.
7259 (forget_cached_source_info_for_objfile): Likewise.
7260 (forget_cached_source_info): Likewise.
7261 (identify_source_line): Likewise.
7262 * source.h (identify_source_line): Move declaration from symtab.h
7263 and add comment from source.c
7264 (print_source_lines): Likewise.
7265 (forget_cached_source_info_for_objfile): Likewise.
7266 (forget_cached_source_info): Likewise.
7267 (select_source_symtab): Likewise.
7268 (enum print_source_lines_flag): Move definition from symtab.h.
7269 * symtab.h (identify_source_line): Move declaration to source.h.
7270 (print_source_lines): Likewise.
7271 (forget_cached_source_info_for_objfile): Likewise.
7272 (forget_cached_source_info): Likewise.
7273 (select_source_symtab): Likewise.
7274 (enum print_source_lines_flag): Move definition to source.h.
7275 * tui/tui-hooks.c: Add 'source.h' include.
7277 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7279 * source.c (print_source_lines_base): Handle requests to print
7280 reverse line number sequences, and guard against empty lines
7283 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7285 * source.c (print_source_lines_base): Fix skip of '\r' if next
7288 2019-01-06 Tom Tromey <tom@tromey.com>
7290 * c-exp.y (struct c_parse_state) <macro_original_text,
7291 expansion_obstack>: New member.
7292 (macro_original_text, expansion_obstack): Remove globals.
7293 (scan_macro_expansion, scanning_macro_expansion)
7294 (finished_macro_expansion): Update.
7295 (scan_macro_cleanup): Remove.
7296 (yylex, c_parse): Update.
7298 2019-01-06 Tom Tromey <tom@tromey.com>
7300 * c-exp.y (struct c_parse_state) <strings>: New member.
7301 (operator_stoken): Update.
7303 2019-01-06 Tom Tromey <tom@tromey.com>
7305 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7306 (union type_stack_elt) <typelist_val>: Now a pointer to
7308 (type_stack_cleanup): Don't declare.
7309 (push_typelist): Update.
7310 * parse.c (pop_typelist): Return a std::vector.
7311 (push_typelist): Take a std::vector.
7312 (follow_types): Update. Do not free args.
7313 (type_stack_cleanup): Remove.
7314 * c-exp.y (struct c_parse_state): New.
7315 (cpstate): New global.
7316 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7317 (nonempty_typelist): Update.
7318 (func_mod): Create a new vector.
7319 (c_parse): Create a c_parse_state.
7320 (check_parameter_typelist): Do not delete params.
7321 (function_method): Update. Do not delete type_list.
7323 2019-01-06 Tom Tromey <tom@tromey.com>
7326 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7328 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7329 (print_return_value): Likewise.
7331 2019-01-05 Tom Tromey <tom@tromey.com>
7333 * contrib/cleanup_check.py: Remove.
7334 * contrib/gcc-with-excheck: Remove.
7335 * contrib/exsummary.py: Remove.
7336 * contrib/excheck.py: Remove.
7338 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7340 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7341 NULL. Initialize tpprev to NULL instead of assigning it
7342 to NULL on the next statement.
7343 * windows-nat.c (windows_delete_thread): Remove check for
7344 main_thread_id before printing thread exit notifications.
7345 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7346 Remove thread ID check against main_thread_id.
7347 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7348 windows_delete_thread.
7349 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7351 2019-01-04 Tom Tromey <tom@tromey.com>
7353 * compile/compile.c (_initialize_compile): Use upper case for
7354 metasyntactic variables.
7355 * symmisc.c (_initialize_symmisc): Use upper case for
7356 metasyntactic variables.
7357 * psymtab.c (_initialize_psymtab): Use upper case for
7358 metasyntactic variables.
7359 * demangle.c (demangle_command): Use upper case for metasyntactic
7361 (_initialize_demangler): Likewise.
7362 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7365 2019-01-03 Tom Tromey <tom@tromey.com>
7367 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7369 2019-01-03 Tom Tromey <tom@tromey.com>
7371 * python/py-symtab.c (salpy_str): Update.
7372 (struct salpy_sal_object) <symtab>: Now a PyObject.
7373 (salpy_dealloc): Update.
7374 (del_objfile_sal): Use gdbpy_ref.
7376 2019-01-03 Tom Tromey <tom@tromey.com>
7378 * python/py-type.c (convert_field): Use new_reference. Return
7380 (make_fielditem): Return gdbpy_ref.
7381 (typy_fields): Update.
7382 (typy_getitem): Update.
7383 (field_name): Return gdbpy_ref. Use new_reference.
7384 (typy_iterator_iternext): Update.
7386 2019-01-03 Tom Tromey <tom@tromey.com>
7388 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7390 2019-01-03 Tom Tromey <tom@tromey.com>
7392 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7393 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7394 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7395 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7396 (pspy_set_type_printers): Likewise.
7397 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7398 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7399 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7400 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7401 (objfpy_set_type_printers): Likewise.
7403 2019-01-03 Tom Tromey <tom@tromey.com>
7405 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7406 (gdbpy_print_stack): Use gdbpy_err_fetch.
7407 * python/python-internal.h (class gdbpy_err_fetch): New class.
7408 (class gdbpy_enter) <m_error_type, m_error_value,
7409 m_error_traceback>: Remove.
7410 <m_error>: New member.
7411 (gdbpy_exception_to_string): Don't declare.
7412 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7413 * python/py-value.c (convert_value_from_python): Use
7415 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7416 gdbpy_exception_to_string.
7417 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7418 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7421 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7423 * linux-nat.c (delete_lwp_cleanup): Delete.
7424 (struct lwp_deleter): New struct.
7425 (lwp_info_up): New typedef.
7426 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7429 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7431 * linux-fork.c (class scoped_switch_fork_info): New class.
7432 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7434 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7436 * valops.c (find_overload_match): Remove use of null_cleanup, and
7437 calls to do_cleanups.
7439 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7441 * compile/compile-cplus-types.c
7442 (compile_cplus_instance::decl_name): Handle changes to
7444 * cp-support.c (cp_func_name): Update header comment, update
7446 * cp-support.h (cp_func_name): Update return type in declaration.
7447 * valops.c (find_overload_match): Move temp_func local to top
7448 level of function and change its type. Use temp_func to hold and
7449 delete temporary string obtained from cp_func_name.
7451 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7453 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7454 gdb::char_vector, remove cleanup, and update uses of `msg`.
7456 2019-01-03 Jim Wilson <jimw@sifive.com>
7458 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7460 2019-01-02 Tom Tromey <tom@tromey.com>
7462 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7463 (tdesc_parse_xml): Remove cleanups.
7464 * target-descriptions.h (make_cleanup_free_target_description):
7466 (target_desc_deleter): New struct.
7467 (target_desc_up): New typedef.
7468 * target-descriptions.c (target_desc_deleter::operator()): Rename
7469 from free_target_description.
7470 (make_cleanup_free_target_description): Remove.
7472 2019-01-02 Tom Tromey <tom@tromey.com>
7474 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7475 constructor, destructor.
7476 (linespec_parser): Remove typedef.
7477 (~linespec_parser): Rename from linespec_parser_delete.
7478 (linespec_lex_to_end, linespec_complete_label)
7479 (linespec_complete): Update.
7480 (decode_line_full): Remove cleanups.
7481 (decode_line_1): Update.
7483 2019-01-02 Tom Tromey <tom@tromey.com>
7485 * python/python-internal.h (inferior_to_inferior_object): Change
7487 * python/py-exitedevent.c (create_exited_event_object): Update.
7488 * python/py-inferior.c (inferior_to_inferior_object): Return
7490 (python_new_inferior, python_inferior_deleted)
7491 (thread_to_thread_object, delete_thread_object)
7492 (build_inferior_list, gdbpy_selected_inferior): Update.
7493 * python/py-infthread.c (create_thread_object): Update. Also fail
7494 if inferior_to_inferior_object fails.
7496 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7498 * inferior.h (class inferior) <displaced_step_state>: New field.
7499 * infrun.h (struct displaced_step_state): Move here from
7500 infrun.c. Initialize fields, add constructor.
7501 <inf>: Remove field.
7502 <reset>: New method.
7503 * infrun.c (struct displaced_step_inferior_state): Move to
7505 (displaced_step_inferior_states): Remove.
7506 (get_displaced_stepping_state): Adust.
7507 (displaced_step_in_progress_any_inferior): Adjust.
7508 (displaced_step_in_progress_thread): Adjust.
7509 (displaced_step_in_progress): Adjust.
7510 (add_displaced_stepping_state): Remove.
7511 (get_displaced_step_closure_by_addr): Adjust.
7512 (remove_displaced_stepping_state): Remove.
7513 (infrun_inferior_exit): Call displaced_step_state.reset.
7514 (use_displaced_stepping): Don't check for NULL.
7515 (displaced_step_prepare_throw): Call
7516 get_displaced_stepping_state.
7517 (displaced_step_fixup): Don't check for NULL.
7518 (prepare_for_detach): Don't check for NULL.
7520 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7522 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7523 in case of call that did not complete.
7525 2019-01-02 Andrey Utkin <autkin@undo.io>
7527 * symfile.c (find_separate_debug_file): Fix search of debug files for
7530 2019-01-02 Tom Tromey <tom@tromey.com>
7532 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7534 * python/py-frame.c (frapy_older): Remove cast.
7535 (frapy_newer): Likewise.
7536 * python/py-breakpoint.c (local_setattro): Remove cast.
7537 * python/py-arch.c (archpy_name): Remove local variable.
7538 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7540 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7542 * unittests/basic_string_view/element_access/char/empty.cc:
7543 Fix year range in copyright header.
7545 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7547 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7549 <operator==>: Update with for removed field.
7551 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7552 <isa_features>: ...this.
7553 <abi_features>: New field.
7554 (riscv_isa_flen): Update comment.
7555 (riscv_abi_xlen): New declaration.
7556 (riscv_abi_flen): New declaration.
7557 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7559 (riscv_abi_xlen): New function.
7560 (riscv_isa_flen): Update to get answer from isa_features.
7561 (riscv_abi_flen): New function.
7562 (riscv_has_fp_abi): Update to get answer from abi_features.
7563 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7565 (riscv_call_info) <xlen, flen>: Update comment.
7566 (riscv_call_arg_struct): Remove invalid assertions
7567 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7569 (riscv_gdbarch_init): Gather isa features and abi features
7570 separately, ensure both match on the gdbarch when reusing an old
7571 gdbarch. Relax an error check to allow 32-bit abi float to run on
7572 a target with 64-bit float hardware.
7574 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7576 * source.c (search_command_helper): Stop reverse search
7577 when line 1 has been searched.
7579 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7581 * record-full.c (record_full_base_target::close): Rewrite
7582 record_full_core_buf_list free logic.
7584 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7586 * break-catch-syscall.c (print_one_catch_syscall): xfree
7589 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7591 * top.c (print_gdb_version): Update Copyright year in version
7594 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7596 Update copyright year range in all GDB files.
7598 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7600 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7602 For older changes see ChangeLog-2018.
7608 version-control: never