1 2019-06-14 Tom Tromey <tromey@adacore.com>
3 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4 allow assignment to an internalvar.
6 2019-06-14 Tom Tromey <tromey@adacore.com>
8 * ada-lex.l: Allow "_" in attribute names.
10 2019-06-14 Tom Tromey <tromey@adacore.com>
13 * regcache.c (registers_changed): Don't call alloca.
14 * top.c (execute_command): Don't call alloca.
16 2019-06-13 Pedro Alves <palves@redhat.com>
18 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
19 'expression'. When parsing an expression, error out if there's
20 junk after "unlimited".
21 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
22 (do_set_command): Adjust calls to is_unlimited_literal.
24 2019-06-13 Pedro Alves <palves@redhat.com>
26 * compile/compile.c (make_compile_options_def_group): Add braces
27 around array_view initializer.
28 * thread.c (make_thread_apply_all_options_def_group)
29 (make_thread_apply_all_options_def_group): Likewise.
31 2019-06-13 Pedro Alves <palves@redhat.com>
33 * NEWS (New commands): Mention "maint test-options
34 require-delimiter", "maint test-options unknown-is-error", "maint
35 test-options unknown-is-operand" and "maint show
36 test-options-completion-result".
37 (New command options, command completion): New section.
38 (Completion improvements): New section.
39 Mention that you can abbreviate "unlimited".
41 2019-06-13 Pedro Alves <palves@redhat.com>
43 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
44 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
45 * unittests/cli-utils-selftests.c (test_parse_flags)
46 (test_parse_flags_qcs): Delete.
47 (test_cli_utils): Don't call deleted functions.
49 2019-06-13 Pedro Alves <palves@redhat.com>
51 * thread.c: Include "cli/cli-option.h".
52 (tp_array_compar_ascending): Global.
53 (tp_array_compar): Delete function.
54 (tp_array_compar_ascending, tp_array_compar_descending): New
56 (ascending_option_def, qcs_flag_option_def)
57 (thr_qcs_flags_option_defs)
58 (make_thread_apply_all_options_def_group)
59 (make_thread_apply_options_def_group): New.
60 (thread_apply_all_command): Use gdb::option::process_options.
61 (thread_apply_command_completer)
62 (thread_apply_all_command_completer): New.
63 (thread_apply_command): Use gdb::option::process_options.
64 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
65 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
66 to generate help text of "thread apply". Adjust "taas"'s help.
67 * tid-parse.c (tid_range_parser::in_thread_range): New method.
68 * tid-parse.h (tid_range_parser::in_thread_range): New method.
70 2019-06-13 Pedro Alves <palves@redhat.com>
72 * thread.c (thread_apply_command): Check for invalid TID with
73 isdigit instead of !isalpha.
75 2019-06-13 Pedro Alves <palves@redhat.com>
77 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
78 (validate_flags_qcs): New.
79 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
80 (validate_flags_qcs): Declare.
81 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
82 (make_frame_apply_options_def_group): New.
83 (frame_apply_command_count): Process options with
84 gdb::option::process_options.
85 (frame_apply_completer): New.
86 (frame_apply_level_completer, frame_apply_all_completer)
87 (frame_apply_completer): New.
88 (_initialize_stack): Update help of "frame apply", "frame apply
89 level", "frame apply all" and "faas" to mention supported options
90 and install command completers.
91 * stack.h (frame_apply_all_completer): Declare.
92 * thread.c: Include "stack.h".
93 (tfaas_command): Add "--".
94 (_initialize_thread): Update help "tfaas" to mention supported
95 options and install command completer.
97 2019-06-13 Pedro Alves <palves@redhat.com>
99 * completer.c (complete_nested_command_line): New.
100 (gdb_completion_word_break_characters_throw): Add assertion.
101 * completer.h (complete_nested_command_line): Declare.
103 2019-06-13 Pedro Alves <palves@redhat.com>
105 * stack.c (parse_backtrace_qualifiers): New.
106 (backtrace_command): Use it.
107 (backtrace_command_completer): Complete on qualifiers.
109 2019-06-13 Pedro Alves <palves@redhat.com>
111 * frame.c: Include "cli/cli-option.h.
112 (user_set_backtrace_options): New.
113 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
115 (get_prev_frame): Adjust.
116 (boolean_option_def, uinteger_option_def)
117 (set_backtrace_option_defs): New.
118 (_initialize_frame): Adjust and use
119 gdb::option::add_setshow_cmds_for_options to install "set
120 backtrace past-main" and "set backtrace past-entry".
121 * frame.h: Include "cli/cli-option.h".
122 (struct frame_print_options): Forward declare.
123 (print_frame_arguments_all, print_frame_arguments_scalars)
124 (print_frame_arguments_none): Declare.
125 (print_entry_values): Delete declaration.
126 (struct frame_print_options, user_frame_print_options): New.
127 (struct set_backtrace_options): New.
128 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
129 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
130 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
131 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
132 (list_args_or_locals): Add frame_print_options parameter.
133 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
134 * python/py-framefilter.c (enumerate_args): Pass down
135 USER_FRAME_PRINT_OPTIONS.
136 * stack.c: Include "cli/cli-option.h".
137 (print_frame_arguments_all, print_frame_arguments_scalars)
138 (print_frame_arguments_none): Declare.
139 (print_raw_frame_arguments, print_entry_values): Delete.
140 (user_frame_print_options): New.
141 (boolean_option_def, enum_option_def, frame_print_option_defs):
143 (struct backtrace_cmd_options): New.
144 (bt_flag_option_def): New.
145 (backtrace_command_option_defs): New.
146 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
147 (print_frame_arg, read_frame_arg, print_frame_args)
148 (print_frame_info, print_frame): Add frame_print_options parameter
150 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
151 (backtrace_command_1): Add frame_print_options and
152 backtrace_cmd_options parameters and use them.
153 (make_backtrace_options_def_group): New.
154 (backtrace_command): Process command options with
155 gdb::option::process_options.
156 (backtrace_command_completer): New.
157 (_initialize_stack): Extend "backtrace"'s help to mention
158 supported options. Install completer for "backtrace".
159 Install some settings commands with add_setshow_cmds_for_options.
161 2019-06-13 Pedro Alves <palves@redhat.com>
163 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
164 and that "set/show print raw frame-arguments" are now deprecated.
166 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
168 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
169 * stack.c (_initialize_stack): Install "set/show print
170 raw-frame-arguments", and deprecate "set/show print raw
172 * valprint.c (_initialize_valprint): Deprecate "set/show print
175 2019-06-13 Pedro Alves <palves@redhat.com>
177 * compile/compile.c (struct compile_options): New.
178 (compile_flag_option_def, compile_command_option_defs)
179 (make_compile_options_def_group): New.
180 (compile_file_command): Handle options with
181 gdb::option::process_options.
182 (compile_file_command_completer): New function.
183 (compile_code_command): Handle options with
184 gdb::option::process_options.
185 (compile_code_command_completer): New function.
186 (_initialize_compiler): Install completers for "compile code" and
187 "compile file". Mention available options in "compile code" and
188 "compile code"'s help.
189 * completer.c (advance_to_completion_word): New, factored out from
191 (advance_to_expression_complete_word_point): ... this.
192 (advance_to_filename_complete_word_point): New.
193 * completer.h (advance_to_filename_complete_word_point): New
196 2019-06-13 Pedro Alves <palves@redhat.com>
198 * compile/compile.c: Include "cli/cli-option.h".
199 (compile_print_value): Scope data pointer is now a
200 value_print_options pointer; adjust.
201 (compile_print_command): Process options. Scope data pointer is
202 now a value_print_options pointer; adjust.
203 (_initialize_compile): Update "compile print"'s help to include
204 supported options. Install a completer for "compile print".
205 * cp-valprint.c (show_vtblprint, show_objectprint)
206 (show_static_field_print): Delete.
207 (_initialize_cp_valprint): Don't install "set print
208 static-members", "set print vtbl", "set print object" here.
209 * printcmd.c: Include "cli/cli-option.h" and
210 "common/gdb_optional.h".
211 (print_command_parse_format): Rework to fill in a
212 value_print_options instead of a format_data.
213 (print_value): Change parameter type from format_data pointer to
214 value_print_options reference. Adjust.
215 (print_command_1): Process options. Adjust to pass down a
217 (print_command_completer): New.
218 (_initialize_printcmd): Install print_command_completer as
219 handle_brkchars completer for the "print" command. Update
220 "print"'s help to include supported options.
221 * valprint.c: Include "cli/cli-option.h".
222 (show_vtblprint, show_objectprint, show_static_field_print): Moved
223 here from cp-valprint.c.
224 (boolean_option_def, uinteger_option_def)
225 (value_print_option_defs, make_value_print_options_def_group):
226 New. Use gdb::option::add_setshow_cmds_for_options to install
227 "set print elements", "set print null-stop", "set print repeats",
228 "set print pretty", "set print union", "set print array", "set
229 print address", "set print symbol", "set print array-indexes".
230 * valprint.h: Include <string> and "cli/cli-option.h".
231 (make_value_print_options_def_group): Declare.
232 (print_value): Change parameter type from format_data pointer to
233 value_print_options reference.
234 (print_command_completer): Declare.
236 2019-06-13 Pedro Alves <palves@redhat.com>
238 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
239 (COMMON_SFILES): Add maint-test-settings.c.
240 * cli/cli-decode.c (boolean_enums): New global, factored out from
242 (add_setshow_boolean_cmd): ... here.
243 * cli/cli-decode.h (boolean_enums): Declare.
244 * cli/cli-option.c: New file.
245 * cli/cli-option.h: New file.
246 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
247 factored out from ...
248 (parse_cli_boolean_value(const char *)): ... this.
249 (is_unlimited_literal): Change parameter type to pointer to
250 pointer. Adjust and advance ARG pointer.
251 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
252 (parse_cli_var_enum): New, factored out from ...
253 (do_set_command): ... this. Adjust.
254 * cli/cli-setshow.h (parse_cli_boolean_value)
255 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
256 (parse_cli_var_enum): Declare.
257 * cli/cli-utils.c: Include "cli/cli-option.h".
259 * cli/cli-utils.h (get_ulongest): Declare.
260 (check_for_argument): New overloads.
261 * maint-test-options.c: New file.
263 2019-06-13 Pedro Alves <palves@redhat.com>
265 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
266 parse a range if "-" is at the end of the string.
268 2019-06-13 Pedro Alves <palves@redhat.com>
270 * cli/cli-setshow.c (parse_auto_binary_operation)
271 (parse_cli_boolean_value): Don't allow "o".
273 2019-06-13 Pedro Alves <palves@redhat.com>
275 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
276 * NEWS: Mention maint test-settings KIND.
277 * maint-test-settings.c: New file.
279 2019-06-13 Pedro Alves <palves@redhat.com>
281 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
283 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
286 2019-06-13 Pedro Alves <palves@redhat.com>
288 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
291 2019-06-13 Pedro Alves <palves@redhat.com>
293 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
295 2019-06-13 Pedro Alves <palves@redhat.com>
297 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
298 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
300 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
301 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
303 (check_for_argument): Skip spaces after argument.
305 2019-06-13 Pedro Alves <palves@redhat.com>
307 * thread.c (thread_apply_command): Adjust TID parsing.
308 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
309 detected before end of string.
310 (tid_is_in_list): Error out if LIST is invalid.
312 2019-06-13 Pedro Alves <palves@redhat.com>
314 * completer.c (complete_line_internal_1): Rewind completion word
316 (completion_tracker::advance_custom_word_point_by): Change
317 parameter type to int.
318 * completer.h (completion_tracker::advance_custom_word_point_by):
321 2019-06-13 Pedro Alves <palves@redhat.com>
323 * completer.c (advance_to_completion_word): Handle delimiters.
325 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
327 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
329 2019-06-11 Tom Tromey <tom@tromey.com>
331 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
332 (xmalloc_failed): Move to alloc.c.
334 * Makefile.in (COMMON_SFILES): Add alloc.c.
336 2019-06-11 Tom Tromey <tom@tromey.com>
338 * nat/linux-waitpid.c: Don't include server.h.
339 (linux_debug): Remove.
340 (my_waitpid): Update.
342 2019-06-11 Tom Tromey <tromey@adacore.com>
344 * infcall.c (_initialize_infcall): Remove trailing newline from
346 * user-regs.c (_initialize_user_regs): Remove trailing newline
348 * typeprint.c (_initialize_typeprint): Remove trailing newline
350 * reverse.c (_initialize_reverse): Remove trailing newlines from
352 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
354 * language.c (add_set_language_command): Remove trailing newline
356 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
358 * disasm.c (_initialize_disasm): Remove trailing newline from
360 * top.c (init_main): Remove trailing newline from help.
361 * interps.c (_initialize_interpreter): Remove trailing newline
363 * btrace.c (_initialize_btrace): Remove trailing newlines from
365 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
367 * python/python.c (_initialize_python): Remove trailing newline
369 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
371 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
372 from help. Reformat some text.
373 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
375 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
378 2019-06-11 Tom Tromey <tromey@adacore.com>
380 * darwin-nat.c (darwin_decode_exception_message)
381 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
383 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
385 * valops.c (value_slice): Check for not allocated or not
388 2019-06-10 Tom de Vries <tdevries@suse.de>
391 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
392 sure an empty slot (defined by a 32-bit zero pair) is recognized as
395 2019-06-10 Tom de Vries <tdevries@suse.de>
398 * linespec.c (linespec_lexer_lex_string): Remove incorrect
399 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
401 2019-06-10 Tom de Vries <tdevries@suse.de>
404 * symtab.c (struct demangled_name_entry): Add language field.
405 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
406 static minimal symbol". Set and use language field.
408 2019-06-10 Tom Tromey <tromey@adacore.com>
410 * ada-lang.c (_initialize_ada_language): Update help text.
412 2019-06-10 Tom Tromey <tromey@adacore.com>
414 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
416 * guile/guile.c (handle_boot_error): Don't end warning with a
418 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
419 warning with a newline.
420 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
422 (s12z_frame_cache): Likewise.
423 * dwarf-index-cache.c (index_cache::store): Don't end warning with
425 * solib-svr4.c (disable_probes_interface): Don't end warning with
427 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
429 * python/python.c (do_finish_initialization): Don't end warning
432 2019-06-10 Tom Tromey <tom@tromey.com>
434 * python/py-breakpoint.c (gdbpy_breakpoint_created)
435 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
438 2019-06-10 Tom Tromey <tromey@adacore.com>
440 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
442 (elf_new_init): Don't call stabsread_new_init.
443 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
444 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
445 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
447 2019-06-10 Tom de Vries <tdevries@suse.de>
451 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
453 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
455 * source.c (find_and_open_source): Also rewrite relative file
458 2019-04-26 Amos Bird <amosbird@gmail.com>
460 * annotate.c (annotate_thread_exited): Add "thread-exited"
463 2019-06-06 Tom Tromey <tromey@adacore.com>
465 * maint.h (class scoped_command_stats): Use
466 DISABLE_COPY_AND_ASSIGN.
467 <print_time>: New method.
468 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
470 (scoped_command_stats::print_time): New method.
472 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
474 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
475 instructions of lengths 6 or 8 bytes.
477 2019-06-04 Pedro Alves <palves@redhat.com>
479 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
481 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
482 * breakpoint.c (condition_completer): Likewise.
483 * cli/cli-dump.c (scan_expression): Likewise.
484 * common/filestuff.c (mkdir_recursive): Likewise.
485 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
486 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
487 (gdb_abspath): Likewise.
488 * compile/compile-cplus-types.c
489 (compile_cplus_instance::decl_name): Likewise.
490 * completer.c (complete_explicit_location):
491 (signal_completer, reg_or_group_completer_1): Likewise.
492 * cp-support.c (cp_remove_params_if_any): Likewise.
493 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
494 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
495 * infcmd.c (strip_bg_char): Likewise.
496 * linespec.c (copy_token_string): Likewise.
497 * mi/mi-main.c (output_cores): Likewise.
498 * psymtab.c (psymtab_search_name):
499 * symfile.c (test_set_ext_lang_command): Likewise.
500 * target.c (target_fileio_read_stralloc): Likewise.
501 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
502 * value.c (complete_internalvar): Likewise.
504 2019-06-04 Christian Biesinger <cbiesinger@google.com>
506 Add objfile property to gdb.Type.
507 * NEWS: Mention Python API addition.
508 * python/py-type.c (typy_get_objfile): New method.
510 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
512 * NEWS: Mention the new set|show style [title|highlight].
513 Mention changes to "show style", "help" and "apropos".
515 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
517 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
518 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
519 instead of print_help_for_command.
520 (print_doc_of_command): New function.
521 (help_list): Add 'apropos -v word' suggestion.
522 (print_help_for_command): Style the command name using title style.
523 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
524 (_initialize_cli_cmds): Describe -v in apropos_command help.
526 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
528 * cli/cli-style.h (cli_style_option): Add name in constructor,
529 add m_name class member, add constructor with intensity,
530 add name class function.
531 (cli_style_option::add_setshow_commands): Remove name argument.
532 (highlight_style, title_style): New styles.
533 * cli/cli-style.c (do_show): New function that shows a style
534 characteristic styling the style name with itself.
535 (set_style_name): New function.
536 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
537 Update all callers according to the changes in cli/cli-style.h.
538 * utils.h (fputs_highlighted): New function.
539 * utils.c (fputs_highlighted): Likewise.
541 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
543 * NEWS: Mention new pipe command and new convenience variables.
545 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
547 * cli/cli-cmds.c (pipe_command): New function.
548 (_initialize_cli_cmds): Call add_com for pipe_command.
549 Define | as an alias for pipe.
550 (exit_status_set_internal_vars): New function.
551 (shell_escape): Call exit_status_set_internal_vars.
552 cli/cli-decode.c (find_command_name_length): Recognize | as
553 a single character command.
555 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
557 * gdbcmd.h (execute_command_to_ui_file): New declaration.
558 top.c (execute_command_to_ui_file): New function, mostly a copy
559 of execute_command_to_string.
560 (execute_command_to_string): Implement by calling
561 execute_command_to_ui_file.
563 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
565 * top.h (saved_command_line): Remove declaration.
566 * top.c (previous_saved_command_line, previous_repeat_arguments):
568 (saved_command_line): Make static, define together with other
570 (dont_repeat): Clear repeat_arguments.
571 (repeat_previous, get_saved_command_line, save_command_line):
573 (gdb_init): Initialize saved_command_line
574 and previous_saved_command_line.
575 * main.c (captured_main_1): Remove saved_command_line initialization.
576 * event-top.c (handle_line_of_input): Update to use
577 the new 'repeat' related functions instead of direct access to
579 * command.h (repeat_previous, get_saved_command_line,
580 save_command_line): New declarations.
581 (dont_repeat): Add comment.
583 2019-05-30 Tom Tromey <tromey@adacore.com>
585 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
587 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
589 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
592 * completer.c (complete): Initialize variable word.
594 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
596 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
597 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
598 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
599 'body' is NULL to the outter 'if', protecting the '!is_define'
602 2019-05-29 Tom Tromey <tromey@adacore.com>
604 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
605 (dwarf_unknown): New function.
606 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
607 (dwarf_type_encoding_name): Use dwarf_unknown.
609 2019-05-29 Tom Tromey <tromey@adacore.com>
612 * cp-valprint.c (cp_print_value_fields): Call
613 cp_print_static_field inside "try".
615 2019-05-29 Tom Tromey <tromey@adacore.com>
617 * inflow.c (struct terminal_info): Add default operator=.
618 * configure: Rebuild.
619 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
620 -Wdeprecated-copy-dtor, -Wredundant-move.
622 2019-05-29 Tom Tromey <tromey@adacore.com>
625 * infcmd.c (print_return_value_1): Handle finish_print
627 (show_print_finish): New function.
628 (_initialize_infcmd): Add "set/show print finish" commands.
629 * valprint.c (user_print_options): Initialize new member.
630 * valprint.h (struct value_print_options) <finish_print>: New
633 2019-05-28 Tom Tromey <tromey@adacore.com>
635 * ada-lang.c (ada_remove_Xbn_suffix)
636 (find_old_style_renaming_symbol)
637 (parse_old_style_renaming): Remove.
638 (ada_find_renaming_symbol): Don't call
639 find_old_style_renaming_symbol.
640 (ada_is_renaming_symbol): Rename from
641 ada_find_renaming_symbol. Remove "block" parameter. Return
643 (ada_read_var_value): Update and simplify.
644 * ada-exp.y (write_var_or_type): Remove old code.
646 2019-05-28 Alan Hayward <alan.hayward@arm.com>
648 * event-top.c: Remove include comment.
649 * inflow.c (class scoped_ignore_sigttou): Move from here...
650 * inflow.h (class scoped_ignore_sigttou): ...to here.
651 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
652 * top.c: Remove include comment.
654 2019-05-27 Tom Tromey <tom@tromey.com>
658 2019-05-22 Tom Tromey <tromey@adacore.com>
660 * target.c (target_follow_exec): Constify parameter.
661 * target-delegates.c: Rebuild.
662 * remote.c (remote_target::follow_exec): Constify parameter.
663 * infrun.c (follow_exec): Constify parameter.
664 * target.h (struct target_ops) <follow_exec>: Constify parameter.
665 (target_follow_exec): Likewise.
667 2019-05-22 Alan Hayward <alan.hayward@arm.com>
669 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
670 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
672 2019-05-22 Alan Hayward <alan.hayward@arm.com>
674 * NEWS: Add debugredirect and testsuite sections.
676 2019-05-22 Simon Cook <simon.cook@embecosm.com>
678 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
679 target descriptions using exclusively floating point register name
682 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
685 * f-lang.c (build_fortran_types): Handle the case where
686 gdbarch_floatformat_for_type returns a nullptr.
688 2019-05-21 Tom de Vries <tdevries@suse.de>
691 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
693 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
696 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
698 * i386-tdep.c (i386_floatformat_for_type): Use
699 floatformats_ia64_quad for the 16-byte floating point component
700 within a fortran 32-byte complex number.
702 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
704 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
705 delete default constructor.
706 (find_partial_die): Update to return const struct.
707 (partial_die_parent_scope): Move variable declaration into scope
708 of its use and change its type to auto.
709 (guess_partial_die_structure_name): Likewise.
710 (partial_die_info::fixup): Likewise.
712 2019-05-17 Tom Tromey <tromey@adacore.com>
714 * source.c (find_and_open_source): Remove cast.
716 2019-05-17 Tom Tromey <tromey@adacore.com>
718 * annotate.c (annotate_source): Make "filename" const.
719 * annotate.h (annotate_source): Use const.
721 2019-05-17 Alan Hayward <alan.hayward@arm.com>
723 * disasm.c (set_disassembler_options): Send errors to stderr.
725 2019-05-17 Alan Hayward <alan.hayward@arm.com>
727 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
728 (cli_interp_base::set_logging): Check debug_redirect.
729 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
730 * cli/cli-logging.c (debug_redirect): Add static variable.
731 (pop_output_files): Add default param.
732 (handle_redirections): Print debug setting.
733 (show_logging_command): Likewise.
734 (_initialize_cli_logging): Add debugredirect command.
735 * interps.c (current_interp_set_logging): Add debug_redirect
737 * interps.h (set_logging): Add debug_redirect parameter.
738 (current_interp_set_logging): Likewise.
739 * mi/mi-common.h: Likewise.
740 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
742 2019-05-17 Alan Hayward <alan.hayward@arm.com>
743 Tom Tromey <tromey@adacore.com>
745 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
747 * cli/cli-interp.h (make_logging_output): Remove declaration.
748 * cli/cli-logging.c (make_logging_output): Remove function.
749 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
751 * ui-file.c (tee_file::tee_file): Remove bools.
752 (tee_file::~tee_file): Remove deletes.
753 * ui-file.h (tee_file): Remove bools.
755 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
757 * mi/mi-cmds.h (mi_cmd_complete): New function.
758 * mi/mi-main.c (mi_cmd_complete): Likewise.
759 * mi/mi-cmds.c: Define new MI command -complete.
760 * NEWS: Mention new -complete command.
762 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
764 * completer.h (complete): New function.
765 * completer.c (complete): Likewise.
766 * cli/cli-cmds.c: (complete_command): Update to use new complete()
767 function defined in completer.h.
769 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
771 * MAINTAINERS (Write After Approval): Add myself.
773 2019-05-17 Tom de Vries <tdevries@suse.de>
776 * dwarf2read.c (struct cu_partial_die_info): New struct.
777 (find_partial_die): Return cu_partial_die_info.
778 (partial_die_parent_scope, guess_partial_die_structure_name)
779 (partial_die_info::fixup): Handle new return type of find_partial_die.
781 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
783 * stap-probe.c (stap_parse_register_operand): Make "regname" an
784 "std::string", simplifying the algorithm.
786 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
788 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
789 (stap_static_probe_ops::get_probes): Likewise.
791 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
793 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
795 (stap_parse_single_operand): Join checks for
796 "gdbarch_stap_parse_special_token_p" and
797 "gdbarch_stap_parse_special_token" in the same "if" statement.
798 Invert check when verifying for operation on register
801 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
803 * stap-probe.c (stap_get_opcode): Update comment.
804 (stap_get_expected_argument_type): Likewise.
805 (handle_stap_probe): Likewise.
807 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
809 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
810 return type to 'bool'. Adjust comment. Use 'bool' when
812 (i386_stap_parse_special_token_three_arg_disp): Likewise.
813 * stap-probe.c (stap_parse_argument_1): Likewise.
814 (stap_is_operator): Likewise.
815 (stap_is_generic_prefix): Likewise.
816 (stap_is_register_prefix): Likewise.
817 (stap_is_register_indirection_prefix): Likewise.
818 (stap_is_integer_prefix): Likewise.
819 (stap_generic_check_suffix): Likewise.
820 (stap_check_integer_suffix): Likewise.
821 (stap_check_register_suffix): Likewise.
822 (stap_check_register_indirection_suffix): Likewise.
823 (stap_parse_register_operand): Likewise.
824 (stap_parse_single_operand): Likewise.
825 (stap_parse_argument_1): Likewise.
826 (stap_probe::get_argument_count): Likewise.
827 (stap_is_operator): Likewise.
829 2019-05-16 Tom Tromey <tromey@adacore.com>
831 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
834 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
836 * linux-thread-db.c (try_thread_db_load_1): Change return type
838 (try_thread_db_load): Likewise.
839 (try_thread_db_load_from_pdir_1): Likewise.
840 (try_thread_db_load_from_pdir): Likewise.
841 (try_thread_db_load_from_sdir): Likewise.
842 (try_thread_db_load_from_dir): Likewise.
843 (thread_db_load_search): Likewise.
844 (has_libpthread): Likewise.
845 (thread_db_load): Likewise.
847 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
849 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
850 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
851 NULL, and complain/return if that's the case.
853 2019-05-15 John Darrington <john@darrington.wattle.id.au>
855 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
856 (advance, posn, abstract_read_memory): New functions.
857 [struct mem_read_abstraction]: New struct.
858 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
860 2019-05-14 Tom Tromey <tromey@adacore.com>
862 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
863 value is not lval_memory.
865 2019-05-14 Tom Tromey <tromey@adacore.com>
867 * solib.c (info_sharedlibrary_command): Style the file name.
869 2019-05-14 Alan Hayward <alan.hayward@arm.com>
871 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
872 (aarch64_vnv_type): Likewise.
873 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
874 * common/tdesc.c: Likewise.
875 * common/tdesc.h (enum tdesc_type_kind): Likewise.
876 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
877 * features/aarch64-fpu.xml: Add ieee half view.
878 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
879 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
880 * gdbtypes.h (struct builtin_type): Likewise.
881 (struct objfile_type): Likewise.
883 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
885 * language.c (language_sniff_from_mangled_name): Fix "langauge"
887 * location.h (string_to_event_location): Likewise.
889 2019-05-11 Joel Brobecker <brobecker@adacore.com>
893 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
895 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
896 New variable declaration.
897 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
899 (print_one_breakpoint): Use ui_out::test_flags and new global
900 variable to compute use_fixed_output.
901 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
903 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
904 (mi_multi_location_breakpoint_output_fixed): Remove.
905 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
907 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
908 fix_multi_location_breakpoint_output flag if version >= 3.
909 * ui-out.h (enum ui_out_flag)
910 <fix_multi_location_breakpoint_output>: New enumerator.
912 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
914 * contrib/cc-with-tweaks.sh: Validate dwz's work.
916 2019-05-10 Tom Tromey <tromey@adacore.com>
918 * ada-lang.c (catch_ada_completer): New function.
919 (_initialize_ada_language): Use it.
921 2019-05-10 Tom Tromey <tromey@adacore.com>
923 * thread.c (print_thread_info): Make "requested_threads" const.
924 * gdbthread.h (print_thread_info): Make "requested_threads"
926 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
927 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
929 2019-05-08 Tom Tromey <tom@tromey.com>
931 * gdbtypes.c (objfile_type_data): Change type.
932 (objfile_type, _initialize_gdbtypes): Update.
934 2019-05-08 Tom Tromey <tom@tromey.com>
936 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
937 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
938 (_initialize_dwarf2_frame): Update.
940 2019-05-08 Tom Tromey <tom@tromey.com>
942 * objc-lang.c (objc_objfile_data): Change type.
943 (find_methods): Update.
944 (_initialize_objc_lang): Remove.
946 2019-05-08 Tom Tromey <tom@tromey.com>
948 * stabsread.c (rs6000_builtin_type_data): Change type.
949 (rs6000_builtin_type, _initialize_stabsread): Update.
951 2019-05-08 Tom Tromey <tom@tromey.com>
953 * mips-tdep.c (mips_pdr_data): Remove.
954 (_initialize_mips_tdep): Update.
956 2019-05-08 Tom Tromey <tom@tromey.com>
958 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
959 (hppa_init_objfile_priv_data, read_unwind_info)
960 (find_unwind_entry, _initialize_hppa_tdep): Update.
962 2019-05-08 Tom Tromey <tom@tromey.com>
964 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
965 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
967 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
969 2019-05-08 Tom Tromey <tom@tromey.com>
971 * mdebugread.c (basic_type_data): Change type.
972 (basic_type, _initialize_mdebugread): Update.
974 2019-05-08 Tom Tromey <tom@tromey.com>
976 * common/gdb_unique_ptr.h (struct noop_deleter): New.
978 2019-05-08 Tom Tromey <tom@tromey.com>
980 * nto-tdep.c (nto_inferior_data_reg): Change type.
981 (nto_inferior_data): Update.
982 (nto_inferior_data_cleanup, nto_new_inferior_data)
983 (_initialize_nto_tdep): Remove.
984 * nto-tdep.h (struct nto_inferior_data): Add initializers.
986 2019-05-08 Tom Tromey <tom@tromey.com>
988 * ada-lang.c (struct ada_inferior_data): Add initializers.
989 (ada_inferior_data): Change type.
990 (ada_inferior_data_cleanup): Remove.
991 (get_ada_inferior_data, ada_inferior_exit)
992 (struct ada_pspace_data): Add initializers, destructor.
993 (ada_pspace_data_handle): Change type.
994 (get_ada_pspace_data): Update.
995 (ada_pspace_data_cleanup): Remove.
997 2019-05-08 Tom Tromey <tom@tromey.com>
999 * coffread.c (struct coff_symfile_info): Add initializers.
1000 (coff_objfile_data_key): Move lower. Change type.
1001 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
1003 (coff_free_info): Remove.
1005 2019-05-08 Tom Tromey <tom@tromey.com>
1007 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
1008 (fbsd_pspace_data_handle): Move lower. Change type.
1009 (get_fbsd_pspace_data): Update.
1010 (fbsd_pspace_data_cleanup): Remove.
1011 (_initialize_fbsd_tdep): Update.
1013 2019-05-08 Tom Tromey <tom@tromey.com>
1015 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
1016 (get_ada_tasks_pspace_data): Update.
1017 (ada_tasks_pspace_data_cleanup): Remove.
1018 (_initialize_tasks): Update.
1019 (ada_tasks_inferior_data_handle): Change type.
1020 (get_ada_tasks_inferior_data): Update.
1021 (ada_tasks_inferior_data_cleanup): Remove.
1022 (struct ada_tasks_pspace_data): Add initializers.
1024 2019-05-08 Tom Tromey <tom@tromey.com>
1026 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
1027 * symfile-debug.c (debug_sym_get_probes): Change type.
1028 * stap-probe.c (handle_stap_probe):
1029 (stap_static_probe_ops::get_probes): Change type.
1030 * probe.h (class static_probe_ops) <get_probes>: Change type.
1031 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
1032 (parse_probes_in_pspace): Update.
1033 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
1035 (any_static_probe_ops::get_probes): Change type.
1036 * elfread.c (elfread_data): New typedef.
1037 (probe_key): Change type.
1038 (elf_get_probes): Likewise. Update.
1039 (probe_key_free): Remove.
1040 (_initialize_elfread): Update.
1041 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
1043 (dtrace_process_dof_probe, dtrace_process_dof)
1044 (dtrace_static_probe_ops::get_probe): Change type.
1046 2019-05-08 Tom Tromey <tom@tromey.com>
1048 * xcoffread.c (struct xcoff_symfile_info): Rename from
1049 coff_symfile_info. Add initializers.
1050 (xcoff_objfile_data_key): Move lower. Change type.
1051 (XCOFF_DATA): Rewrite.
1052 (xcoff_free_info): Remove.
1053 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
1054 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
1055 (xcoff_initial_scan): Update.
1057 2019-05-08 Tom Tromey <tom@tromey.com>
1059 * solib-svr4.c (struct svr4_info): Add initializers and
1061 <probes_table>: Now an htab_up.
1062 (solib_svr4_pspace_data): Change type.
1063 (free_probes_table): Simplify.
1064 (~svr4_info): Rename from svr4_pspace_data_cleanup.
1065 (get_svr4_info, probes_table_htab_remove_objfile_probes)
1066 (probes_table_remove_objfile_probes, register_solib_event_probe)
1067 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
1068 (_initialize_svr4_solib): Update.
1070 2019-05-08 Tom Tromey <tom@tromey.com>
1072 * remote.c (remote_pspace_data): Change type.
1073 (remote_pspace_data_cleanup): Remove.
1074 (get_remote_exec_file, set_pspace_remote_exec_file)
1075 (_initialize_remote): Update.
1077 2019-05-08 Tom Tromey <tom@tromey.com>
1079 * breakpoint.c (breakpoint_objfile_key): Change type.
1080 (get_breakpoint_objfile_data): Update.
1081 (free_breakpoint_objfile_data): Remove.
1082 (_initialize_breakpoint): Update.
1084 2019-05-08 Tom Tromey <tom@tromey.com>
1086 * linux-tdep.c (struct linux_info): Add initializers.
1087 (linux_inferior_data): Move. Change type.
1088 (invalidate_linux_cache_inf): Update.
1089 (linux_inferior_data_cleanup): Remove.
1090 (get_linux_inferior_data, _initialize_linux_tdep): Update.
1092 2019-05-08 Tom Tromey <tom@tromey.com>
1094 * auxv.c (auxv_inferior_data): Move. Change type.
1095 (auxv_inferior_data_cleanup): Remove.
1096 (invalidate_auxv_cache_inf): Rewrite.
1097 (get_auxv_inferior_data, _initialize_auxv): Update.
1099 2019-05-08 Tom Tromey <tom@tromey.com>
1101 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
1102 (symfile_debug_objfile_data_key): Change type.
1103 (symfile_debug_installed, debug_qf_has_symbols)
1104 (debug_qf_find_last_source_symtab)
1105 (debug_qf_forget_cached_source_info)
1106 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
1107 (debug_qf_print_stats, debug_qf_dump)
1108 (debug_qf_expand_symtabs_for_function)
1109 (debug_qf_expand_all_symtabs)
1110 (debug_qf_expand_symtabs_with_fullname)
1111 (debug_qf_map_matching_symbols)
1112 (debug_qf_expand_symtabs_matching)
1113 (debug_qf_find_pc_sect_compunit_symtab)
1114 (debug_qf_map_symbol_filenames)
1115 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
1116 (debug_sym_new_init, debug_sym_init, debug_sym_read)
1117 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
1118 (debug_sym_read_linetable, debug_sym_relocate): Update.
1119 (symfile_debug_free_objfile): Remove.
1120 (install_symfile_debug_logging, _initialize_symfile_debug):
1123 2019-05-08 Tom Tromey <tom@tromey.com>
1125 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
1126 allocate_on_obstack.
1127 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
1128 (get_dwarf2_per_objfile): Update.
1129 (set_dwarf2_per_objfile): Remove.
1130 (dwarf2_has_info, dwarf2_get_section_info): Update.
1131 (dwarf2_free_objfile): Remove.
1132 (_initialize_dwarf2_read): Update.
1134 2019-05-08 Tom Tromey <tom@tromey.com>
1136 * auto-load.c (struct auto_load_pspace_info): Add destructor and
1138 <unsupported_script_warning_printed,
1139 script_not_found_warning_printed>: Now bool.
1140 (auto_load_pspace_data): Change type.
1141 (~auto_load_pspace_info): Rename from
1142 auto_load_pspace_data_cleanup.
1143 (get_auto_load_pspace_data, init_loaded_scripts_info)
1144 (clear_section_scripts, maybe_print_unsupported_script_warning)
1145 (maybe_print_script_not_found_warning, _initialize_auto_load):
1148 2019-05-08 Tom Tromey <tom@tromey.com>
1150 * objfiles.c (objfile_pspace_info): Add destructor and
1152 (objfiles_pspace_data): Change type.
1153 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
1154 (get_objfile_pspace_data): Update.
1155 (objfiles_bfd_data): Change type.
1156 (get_objfile_bfd_data): Update.
1157 (objfile_bfd_data_free, _initialize_objfiles): Remove.
1159 2019-05-08 Tom Tromey <tom@tromey.com>
1161 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
1163 (get_catch_syscall_inferior_data): Update.
1164 (catch_syscall_inferior_data_cleanup): Remove.
1165 (_initialize_break_catch_syscall): Update.
1167 2019-05-08 Tom Tromey <tom@tromey.com>
1169 * inflow.c (struct terminal_info): Add destructor and
1171 (inflow_inferior_data): Change type.
1172 (~terminal_info): Rename from inflow_inferior_data_cleanup.
1173 (get_inflow_inferior_data, inflow_inferior_exit)
1174 (swap_terminal_info, _initialize_inflow): Update.
1176 2019-05-08 Tom Tromey <tom@tromey.com>
1178 * target-dcache.c (target_dcache_cleanup): Remove.
1179 (target_dcache_aspace_key): Change type.
1180 (target_dcache_init_p, target_dcache_invalidate)
1181 (target_dcache_get, target_dcache_get_or_init)
1182 (_initialize_target_dcache): Update.
1183 * dcache.h (struct dcache_deleter): New.
1185 2019-05-08 Tom Tromey <tom@tromey.com>
1187 * symtab.c (struct symbol_cache): Add destructor and
1189 (symbol_cache_key): Move. Change type.
1190 (make_symbol_cache, free_symbol_cache): Remove.
1191 (get_symbol_cache): Update.
1192 (symbol_cache_cleanup): Remove.
1193 (ALL_PSPACES, symbol_cache_flush)
1194 (maintenance_print_symbol_cache)
1195 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
1198 2019-05-08 Tom Tromey <tom@tromey.com>
1200 * symtab.c (struct main_info): Add destructor and initializers.
1201 (main_progspace_key): Move. Change type.
1202 (get_main_info): Update.
1203 (main_info_cleanup): Remove.
1204 (_initialize_symtab): Update.
1206 2019-05-08 Tom Tromey <tom@tromey.com>
1208 * registry.h (DECLARE_REGISTRY): Define the _key class.
1210 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1212 * NEWS: Merge two 'New commands' sections.
1214 2019-05-08 Joel Brobecker <brobecker@adacore.com>
1216 * ada-valprint.c (ada_val_print_gnat_array): Remove language
1217 parameter and use Ada language definition instead.
1218 (ada_val_print_ptr): Remove unused language parameter.
1219 (ada_val_print_num): Remove language parameter and use Ada language
1221 (ada_val_print_enum, ada_val_print_flt): Remove unused language
1223 (ada_val_print_struct_union, ada_val_print_ref): Remove language
1224 parameter and use Ada language definition instead.
1225 (ada_val_print_1): Update all ada_val_print_xxx calls.
1226 Remove language parameter.
1227 (ada_val_print): Update ada_val_print_1 call.
1229 2019-05-08 Tom Tromey <tromey@adacore.com>
1231 * remote.c (remote_hw_watchpoint_limit)
1232 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
1235 2019-05-08 Tom Tromey <tromey@adacore.com>
1237 * maint.c (_initialize_maint_cmds): Move initialization code to
1239 (watchdog, show_watchdog): Move to remote.c.
1240 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
1242 (_initialize_remote): Move initialization code from maint.c.
1243 * defs.h (watchdog): Don't declare.
1245 2019-05-08 Tom Tromey <tromey@adacore.com>
1247 * tui/tui-interp.c: Include main.h.
1248 * interps.c: Include main.h.
1249 * main.h (interpreter_p): Declare.
1250 * defs.h (interpreter_p): Don't declare.
1252 2019-05-08 Tom Tromey <tromey@adacore.com>
1254 * dwarf2loc.c: Include dwarf2read.h.
1255 * defs.h (read_unsigned_leb128): Don't declare.
1256 * dwarf2read.h (read_unsigned_leb128): Declare.
1258 2019-05-08 Tom Tromey <tromey@adacore.com>
1260 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
1263 2019-05-08 Tom Tromey <tromey@adacore.com>
1265 * utils.c (fputs_maybe_filtered): Reset style after paging, even
1266 when no wrap column is set.
1268 2019-05-08 Tom Tromey <tromey@adacore.com>
1270 * c-lang.c (c_get_string): Handle non-C-style arrays.
1272 2019-05-08 Tom Tromey <tromey@adacore.com>
1274 * typeprint.c (print_offset_data::update): Print the bit offset,
1275 not the number of bits remaining.
1277 2019-05-08 Tom Tromey <tromey@adacore.com>
1279 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
1280 padding at end of comment.
1282 2019-05-08 Tom Tromey <tromey@adacore.com>
1284 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
1287 2019-05-06 Tom Tromey <tom@tromey.com>
1289 * common/scoped_mmap.c: Include common-defs.h.
1290 * common/scoped_mmap.h: Don't include config.h.
1292 2019-05-04 Tom Tromey <tom@tromey.com>
1294 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
1295 (struct aarch64_call_info): Add initializers.
1296 <si>: Now a std::vector.
1297 (pass_on_stack, aarch64_push_dummy_call): Update.
1299 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
1300 Tom Tromey <tom@tromey.com>
1302 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
1303 (ppc_threads): Now a std::vector. Now static.
1304 (hwdebug_find_thread_points_by_tid)
1305 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
1308 2019-05-04 Tom Tromey <tom@tromey.com>
1310 * arc-tdep.c (arc_tdesc_init): Return bool.
1312 2019-05-04 Tom Tromey <tom@tromey.com>
1314 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1315 Use gdb_assert_not_reached.
1317 2019-05-04 Tom Tromey <tom@tromey.com>
1319 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1322 2019-05-04 Tom Tromey <tom@tromey.com>
1324 * arc-tdep.c (arc_tdesc_init): Use bool.
1326 2019-05-04 Tom Tromey <tom@tromey.com>
1328 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1330 2019-05-04 Tom Tromey <tom@tromey.com>
1332 * cli/cli-cmds.c (valid_command_p): Return bool.
1334 2019-05-04 Tom Tromey <tom@tromey.com>
1336 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1337 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1339 2019-05-04 Raul Tambre <raul@tambre.ee>
1341 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1342 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1343 operator for comparison.
1345 2019-05-04 Tom Tromey <tom@tromey.com>
1347 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1348 (lookup_partial_symbol, print_partial_symbols)
1349 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1350 (psymbol_compare): Update.
1351 (add_psymbol_to_bcache): Clear the entire psymbol.
1352 (maintenance_check_psymtabs): Update.
1353 * psympriv.h (struct partial_symbol): Don't derive from
1354 general_symbol_info.
1355 <obj_section, unrelocated_address, address,
1356 set_unrelocated_address>: Update.
1357 <ginfo>: New member.
1358 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1359 (debug_names::write_psymbols): Update.
1361 2019-05-04 Tom de Vries <tdevries@suse.de>
1363 * contrib/cc-with-tweaks.sh: Support -n arg.
1365 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1367 * corelow.c (core_target::detach): Ensure frame cache and
1368 register caches are cleared.
1369 inferior.c (exit_inferior_1): Likewise.
1371 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1372 Tom Tromey <tom@tromey.com>
1374 * dictionary.c (collate_pending_symbols_by_language): Remove
1375 "struct" from foreach.
1376 * symtab.c (lookup_global_symbol_from_objfile)
1377 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1379 * ser-tcp.c (net_open): Remove "struct" from foreach.
1380 * objfiles.c (objfile_relocate, objfile_rebase)
1381 (objfile_has_symbols): Remove "struct" from foreach.
1382 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1384 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1386 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1387 "struct" from foreach.
1388 * ada-lang.c (create_excep_cond_exprs)
1389 (ada_exception_catchpoint_cond_string): Remove "struct" from
1392 2019-05-03 Tom Tromey <tromey@adacore.com>
1394 * ada-exp.y (convert_char_literal): Check suffix of each
1397 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1400 * ada-exp.y (yywrap): Don't define.
1401 * ada-lex.l (%option): Add noyywrap
1404 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1406 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1407 _WIN32_WINNT to the XP level, unless already defined to a higher
1410 * unittests/parse-connection-spec-selftests.c:
1412 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1415 * symfile.c (find_separate_debug_file): Remove colon from the
1416 drive spec of DOS/Windows file names of the target, so that the
1417 file name produced from DEBUGDIR and the target's directory will
1418 be valid on DOS/Windows systems.
1420 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1422 * rust-lang.c (val_print_struct): Handle printing structures
1425 2019-05-02 Tom Tromey <tromey@adacore.com>
1427 * valarith.c (_initialize_valarith): Remove.
1429 2019-05-01 Tom Tromey <tromey@adacore.com>
1431 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1434 2019-05-01 Tom Tromey <tromey@adacore.com>
1436 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1437 for big-endian copies.
1439 2019-04-30 Ali Tamur <tamur@google.com>
1440 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1441 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1442 (read_3_bytes): New function.
1444 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1446 * windows-nat.c (main_thread_id): Delete.
1447 (handle_output_debug_string): Replace main_thread_id by
1448 current_event.dwThreadId.
1449 (fake_create_process): Likewise.
1450 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1451 Do not set main_thread_id.
1452 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1453 current_event.dwThreadId.
1454 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1456 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1458 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1459 Use current_event.dwThreadId instead of main_thread_id.
1461 2019-04-30 Tom Tromey <tromey@adacore.com>
1463 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1464 (create_excep_cond_exprs): Iterate over program spaces.
1465 (ada_exception_catchpoint_cond_string): Examine all minimal
1466 symbols for exception types.
1468 2019-04-30 Tom Tromey <tromey@adacore.com>
1471 * dwarf2read.c (process_structure_scope): Handle case where type
1472 has template parameters but no symbol was created.
1474 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1475 Chris January <chris.january@arm.com>
1477 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1479 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1481 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1483 * f-typeprint.c (f_print_type): Update rules for printing
1485 (f_type_print_varspec_suffix): Likewise.
1487 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1488 Chris January <chris.january@arm.com>
1490 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1493 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1495 * f-lang.c (build_fortran_types): Change name of void type to
1497 * f-typeprint.c (f_type_print_base): Print the name of the void
1498 type, rather than a fixed string.
1499 * f-valprint.c (f_decorations): Use lower case void string.
1501 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1502 Chris January <chris.january@arm.com>
1504 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1507 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1508 Chris January <chris.january@arm.com>
1509 David Lecomber <david.lecomber@arm.com>
1511 * f-exp.y (BINOP_INTRINSIC): New token.
1512 (exp): New parser rule handling BINOP_INTRINSIC.
1513 (f77_keywords): Add new builtin procedures.
1514 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1515 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1516 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1517 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1518 (print_unop_subexp_f): New function.
1519 (print_binop_subexp_f): New function.
1520 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1521 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1522 (dump_subexp_body_f): Likewise.
1523 (operator_check_f): Likewise.
1524 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1525 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1527 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1529 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1531 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1532 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1533 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1534 (operator_length_f): New fuction.
1535 (print_subexp_f): New function.
1536 (op_name_f): New function.
1537 (dump_subexp_body_f): New function.
1538 (operator_check_f): New function.
1539 (exp_descriptor_f): Replace standard expression handling functions
1541 * gdb/fortran-operator.def: New file.
1542 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1543 * gdb/std-operator.def: Remove UNOP_KIND.
1545 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1547 * std-operator.def: Remove unbalanced, stray double quote
1550 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1551 Chris January <chris.january@arm.com>
1552 Daniel Everett <daniel.everett@arm.com>
1553 Nick Forrington <nick.forrington@arm.com>
1554 Richard Bunt <richard.bunt@arm.com>
1556 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1557 of depth when printing anonymous structs or unions.
1558 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1559 Don't print either the top-level value, or the children if the
1560 max-depth is exceeded.
1561 (ppscm_print_children): When printing the key of a map, allow one
1562 extra level of depth.
1563 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1564 print either the top-level value, or the children if the max-depth
1566 (print_children): When printing the key of a map, allow one extra
1568 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1569 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1570 (user_print_options): Initialise max_depth field.
1571 (val_print_scalar_or_string_type_p): New function.
1572 (val_print): Check to see if the max depth has been reached.
1573 (val_print_check_max_depth): Define new function.
1574 (show_print_max_depth): New function.
1575 (_initialize_valprint): Add 'print max-depth' option.
1576 * valprint.h (struct value_print_options) <max_depth>: New field.
1577 (val_print_check_max_depth): Declare new function.
1578 * NEWS: Document new feature.
1580 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1582 * ada-lang.c (ada_language_defn): Initialise new field.
1583 * c-lang.c (c_is_string_type_p): New function.
1584 (c_language_defn): Initialise new field.
1585 (cplus_language_defn): Initialise new field.
1586 (asm_language_defn): Initialise new field.
1587 (minimal_language_defn): Initialise new field.
1588 * c-lang.h (c_is_string_type_p): Declare new function.
1589 * d-lang.c (d_language_defn): Initialise new field.
1590 * f-lang.c (f_is_string_type_p): New function.
1591 (f_language_defn): Initialise new field.
1592 * go-lang.c (go_is_string_type_p): New function.
1593 (go_language_defn): Initialise new field.
1594 * language.c (default_is_string_type_p): New function.
1595 (unknown_language_defn): Initialise new field.
1596 (auto_language_defn): Initialise new field.
1597 * language.h (struct language_defn) <la_is_string_type_p>: New
1599 (default_is_string_type_p): Declare new function.
1600 * m2-lang.c (m2_language_defn): Initialise new field.
1601 * objc-lang.c (objc_language_defn): Initialise new field.
1602 * opencl-lang.c (opencl_language_defn): Initialise new field.
1603 * p-lang.c (pascal_is_string_type_p): New function.
1604 (pascal_language_defn): Initialise new field.
1605 * rust-lang.c (rust_is_string_type_p): New function.
1606 (rust_language_defn): Initialise new field.
1608 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1610 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1612 * ada-lang.c (ada_language_defn): Initialise new field.
1613 * c-lang.c (c_language_defn): Likewise.
1614 (cplus_language_defn): Likewise.
1615 (asm_language_defn): Likewise.
1616 (minimal_language_defn): Likewise.
1617 * d-lang.c (d_language_defn): Likewise.
1618 * f-lang.c (f_language_defn): Likewise.
1619 * go-lang.c (go_language_defn): Likewise.
1620 * language.c (unknown_language_defn): Likewise.
1621 (auto_language_defn): Likewise.
1622 * m2-lang.c (m2_language_defn): Likewise.
1623 * objc-lang.c (objc_language_defn): Likewise.
1624 * opencl-lang.c (opencl_language_defn): Likewise.
1625 * p-lang.c (pascal_language_defn): Likewise.
1626 * rust-lang.c (rust_language_defn): Likewise.
1628 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1630 * ada-lang.c (ada_is_character_type): Change return type to bool.
1631 (ada_is_string_type): Likewise.
1632 * ada-lang.h (ada_is_character_type): Update declaration
1633 (ada_is_string_type): Likewise.
1635 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1637 Support style in 'frame|thread apply'
1639 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1640 * record.c (record_start, record_stop): Update callers of
1641 execute_command_to_string with false.
1642 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1643 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1645 (class string_file): New constructor with term_out parameter.
1646 Override methods term_out and can_emit_style_escape. New member
1648 (class stdio_file): Override can_emit_style_escape.
1649 (class tee_file): Override term_out and can_emit_style_escape.
1650 * utils.h (can_emit_style_escape): Remove.
1651 * utils.c (can_emit_style_escape): Likewise.
1652 Update all callers of can_emit_style_escape (SOMESTREAM) to
1653 SOMESTREAM->can_emit_style_escape.
1654 * source-cache.c (source_cache::get_source_lines): Likewise.
1655 * stack.c (frame_apply_command_count): Call execute_command_to_string
1656 passing the term_out characteristic of the current gdb_stdout.
1657 * thread.c (thr_try_catch_cmd): Likewise.
1658 * top.c (execute_command_to_string): pass term_out parameter
1659 to construct the string_file for the command output.
1660 * ui-file.c (term_cli_styling): New function (most code moved
1661 from utils.c can_emit_style_escape).
1662 (string_file::string_file, string_file::can_emit_style_escape,
1663 stdio_file::can_emit_style_escape, tee_file::term_out,
1664 tee_file::can_emit_style_escape): New functions.
1666 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1668 * NEWS: Mention the new set|show may-call-functions.
1669 * infcall.c (may_call_functions_p): New variable.
1670 (show_may_call_functions_p): New function.
1671 (call_function_by_hand_dummy): Throws an error if not
1673 (_initialize_infcall): Call add_setshow_boolean_cmd for
1676 2019-04-25 Keith Seitz <keiths@redhat.com>
1679 * cp-support.c (inspect_type): Don't attempt substitutions
1680 of symbol with the same name.
1682 2019-04-25 Tom Tromey <tromey@adacore.com>
1685 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1688 2019-04-25 Tom Tromey <tromey@adacore.com>
1690 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1692 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1693 (gdb_xml_parser::parse): Use std::move.
1694 * python/python-internal.h (gdbpy_convert_exception): Take a const
1696 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1698 * python/py-utils.c (gdbpy_convert_exception): Take a const
1700 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1702 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1704 * mi/mi-main.c (mi_print_exception): Take a const reference.
1705 * main.c (handle_command_errors): Take a const reference.
1706 * linespec.c (parse_linespec): Use std::move.
1707 * infcall.c (run_inferior_call): Use std::move.
1708 (call_function_by_hand_dummy): Use std::move.
1709 * exec.c (try_open_exec_file): Use std::move.
1710 * exceptions.h (exception_print, exception_fprintf)
1711 (exception_print_same): Update.
1712 * exceptions.c (print_exception, exception_print)
1713 (exception_fprintf, exception_print_same): Change parameters to
1715 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1716 * common/new-op.c: Use std::move.
1717 * common/common-exceptions.h (struct gdb_exception): Add move
1719 (struct gdb_exception_error, struct gdb_exception_quit, struct
1720 gdb_quit_bad_alloc): Change constructor to move constructor.
1721 (throw_exception): Change parameter to rvalue reference.
1722 * common/common-exceptions.c (throw_exception): Take rvalue
1724 * cli/cli-interp.c (safe_execute_command): Use std::move.
1725 * breakpoint.c (insert_bp_location, location_to_sals): Use
1728 2019-04-25 Tom Tromey <tromey@adacore.com>
1730 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1731 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1732 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1733 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1734 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1735 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1736 guile/scm-value.c: Use unpack.
1737 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1738 gdbscm_gdb_exception.
1739 (gdbscm_throw_gdb_exception): Likewise.
1740 (struct gdbscm_gdb_exception): New.
1741 (unpack): New function.
1742 (gdbscm_wrap): Use unpack.
1744 2019-04-25 Tom Tromey <tromey@adacore.com>
1746 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1747 (gdb_rl_callback_handler): Use std::move.
1748 * common/common-exceptions.h (struct gdb_exception): Add move
1749 assignment operator.
1750 (throw_exception_sjlj): Change "exception" to const reference.
1751 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1752 (throw_exception_sjlj): Change "exception" to const reference.
1754 2019-04-25 Tom Tromey <tromey@adacore.com>
1756 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1757 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1758 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1760 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1762 * mi/mi-interp.c (mi_interp::exec): Update.
1763 * linespec.c (parse_linespec): Update.
1764 * infcall.c (run_inferior_call): Update.
1765 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1766 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1767 (gdbscm_lookup_global_symbol): Update.
1768 * guile/scm-param.c (gdbscm_parameter_value): Update.
1769 * guile/scm-frame.c (gdbscm_frame_read_register)
1770 (gdbscm_frame_read_var): Update.
1771 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1772 * exec.c (try_open_exec_file): Update.
1773 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1774 (gdb_rl_callback_handler): Update.
1775 * common/common-exceptions.h (exception_none): Don't declare.
1776 * common/common-exceptions.c (exception_none): Don't define.
1777 (struct catcher) <exception>: Update.
1778 * cli/cli-interp.c (safe_execute_command): Update.
1779 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1781 2019-04-25 Ali Tamur <tamur@google.com>
1783 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1784 (read_attribute_value): Likewise.
1785 (dwarf2_read_addr_index): Update comment.
1786 (read_str_index): Add DW_FORM_strx.
1787 (dwarf2_string_attr): Likewise.
1788 (dwarf2_const_value_attr): Likewise.
1789 (dump_die_shallow): Likewise.
1790 (dwarf2_fetch_constant_bytes): Likewise.
1791 (skip_form_bytes): Likewise.
1792 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1794 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1798 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1799 OFFSET. Verify if current mapping contains an ELF header.
1800 (linux_find_memory_regions_full): Adjust call to
1803 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1804 Kang Li <kanglictf@gmail.com>
1808 * dwarf2-frame.c (read_initial_length): Be consistent about using
1809 unsigned representation of length.
1810 (decode_frame_entry_1): Likewise. Check for wraparound of
1811 end pointer as well as buffer overflow.
1813 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1815 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1818 2019-04-24 Tom Tromey <tromey@adacore.com>
1820 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1822 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1824 * s12z-tdep.c (s12z_unwind_pc): Delete.
1825 (s12z_unwind_sp): Delete.
1826 (s12z_gdbarch_init): Don't register deleted functions with
1829 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1831 * rl78-tdep.c (rl78_unwind_sp): Delete.
1832 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1834 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1836 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1837 (xstormy16_unwind_pc): Delete.
1838 (xstormy16_dummy_id): Delete.
1839 (xstormy16_gdbarch_init): Don't register deleted functions with
1842 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1844 * vax-tdep.c (vax_unwind_pc): Delete.
1845 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1847 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1849 * v850-tdep.c (v850_unwind_sp): Delete.
1850 (v850_unwind_pc): Delete.
1851 (v850_dummy_id): Delete.
1852 (v850_gdbarch_init): Don't register deleted functions with
1855 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1857 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1858 (tilegx_unwind_pc): Delete.
1859 (tilegx_unwind_dummy_id): Delete.
1860 (tilegx_gdbarch_init): Don't register deleted functions with
1863 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1865 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1866 (tic6x_dummy_id): Delete.
1867 (tic6x_gdbarch_init): Don't register deleted functions with
1870 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1872 * sparc-tdep.c (sparc_unwind_pc): Delete.
1873 (sparc32_gdbarch_init): Don't register deleted function with
1876 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1878 * sh-tdep.c (sh_unwind_sp): Delete.
1879 (sh_unwind_pc): Delete.
1880 (sh_dummy_id): Delete.
1881 (sh_gdbarch_init): Don't register deleted functions with
1884 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1886 * score-tdep.c (score_unwind_sp): Delete.
1887 (score_unwind_pc): Delete.
1888 (score_dummy_id): Delete.
1889 (score_gdbarch_init): Don't register deleted functions with
1892 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1894 * rx-tdep.c (rx_unwind_pc): Delete.
1895 (rx_unwind_sp): Delete.
1896 (rx_dummy_id): Delete.
1897 (rx_gdbarch_init): Don't register deleted functions with
1898 gdbarch. Update comment.
1900 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1902 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1903 (rs6000_dummy_id): Delete.
1904 (rs6000_gdbarch_init): Don't register deleted functions with
1907 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1909 * or1k-tdep.c (or1k_dummy_id): Delete.
1910 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1912 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1914 * nios2-tdep.c (nios2_dummy_id): Delete.
1915 (nios2_unwind_sp): Delete.
1916 (nios2_gdbarch_init): Don't register deleted functions with
1919 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1921 * nds32-tdep.c (nds32_dummy_id): Delete.
1922 (nds32_unwind_pc): Delete.
1923 (nds32_unwind_sp): Delete.
1924 (nds32_gdbarch_init): Don't register deleted functions with
1927 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1929 * msp430-tdep.c (msp430_unwind_pc): Delete.
1930 (msp430_unwind_sp): Delete.
1931 (msp430_dummy_id): Delete.
1932 (msp430_gdbarch_init): Don't register deleted functions with
1935 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1937 * moxie-tdep.c (moxie_unwind_sp): Delete.
1938 (moxie_unwind_pc): Delete.
1939 (moxie_dummy_id): Delete.
1940 (moxie_gdbarch_init): Don't register deleted functions with
1943 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1945 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1946 (mn10300_unwind_pc): Delete.
1947 (mn10300_unwind_sp): Delete.
1948 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1950 (mn10300_frame_unwind_init): Don't register deleted functions with
1953 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1955 * mep-tdep.c (mep_unwind_pc): Delete.
1956 (mep_unwind_sp): Delete.
1957 (mep_dummy_id): Delete.
1958 (mep_gdbarch_init): Don't register deleted functions with
1961 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1963 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1964 (m68hc11_unwind_sp): Delete.
1965 (m68hc11_gdbarch_init): Don't register deleted functions with
1968 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1970 * m32r-tdep.c (m32r_unwind_sp): Delete.
1971 (m32r_unwind_pc): Delete.
1972 (m32r_dummy_id): Delete.
1973 (m32r_gdbarch_init): Don't register deleted functions with
1976 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1978 * m32c-tdep.c (m32c_unwind_pc): Delete.
1979 (m32c_unwind_sp): Delete.
1980 (m32c_dummy_id): Delete.
1981 (m32c_gdbarch_init): Don't register deleted functions with
1984 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1986 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1987 (lm32_unwind_pc): Delete.
1988 (lm32_dummy_id): Delete.
1989 (lm32_gdbarch_init): Don't register deleted functions with
1992 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1994 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1995 (iq2000_unwind_pc): Delete.
1996 (iq2000_dummy_id): Delete.
1997 (iq2000_gdbarch_init): Don't register deleted functions with
2000 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2002 * nds32-tdep.c (nds32_type_align): Delete.
2003 (nds32_push_dummy_call): Use type_align instead.
2005 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2007 * arm-tdep.c (arm_type_align): Only handle vector override case.
2008 (arm_push_dummy_call): Use type_align.
2009 (arm_gdbarch_init): Register arm_type_align gdbarch function.
2011 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2013 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
2015 (pass_on_stack): Use type_align.
2016 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
2019 2019-04-23 Tom Tromey <tromey@adacore.com>
2021 * dwarf2read.c (line_header::file_name_at): Remove unused
2024 2019-04-23 Tom de Vries <tdevries@suse.de>
2027 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
2031 2019-03-27 Ali Tamur <tamur@google.com>
2033 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
2034 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
2035 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
2036 (dwarf_expr_context::get_addr_index): Likewise
2037 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
2038 (symbol_needs_eval_context::get_addr_index): Likewise
2039 (disassemble_dwarf_expression): Add DW_OP_addrx
2040 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
2041 (read_cutu_die_from_dwo): Update comment
2042 (skip_one_die): Add DW_FORM_addrx
2043 (read_attribute_value): Likewise
2044 (var_decode_location): Add DW_OP_addrx
2045 (dwarf2_const_value_attr): Add DW_FORM_addrx
2046 (dump_die_shallow): Likewise
2047 (dwarf2_fetch_constant_bytes): Likewise
2048 (decode_locdesc): Add DW_OP_addrx
2049 (skip_form_bytes): Add DW_FORM_addrx
2051 2019-04-22 Ali Tamur <tamur@google.com>
2053 * MAINTAINERS (Write After Approval): Add self.
2055 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
2057 * solib-svr4.c (get_svr4_info): Add pspace parameter.
2058 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
2059 (open_symbol_file_object): Likewise.
2060 (svr4_default_sos): Add info parameter.
2061 (svr4_read_so_list): Likewise.
2062 (svr4_current_sos_direct): Adjust functions calls to pass down
2064 (svr4_current_sos_1): Add info parameter.
2065 (svr4_current_sos): Call get_svr4_info, pass info down to
2067 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
2069 (svr4_in_dynsym_resolve_code): Pass current_program_space to
2071 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
2073 (probes_table_remove_objfile_probes): Likewise.
2074 (register_solib_event_probe): Add info parameter.
2075 (solist_update_incremental): Pass info parameter down to
2077 (disable_probes_interface): Add info parameter.
2078 (svr4_handle_solib_event): Pass current_program_space to
2079 get_svr4_info. Adjust disable_probes_interface cleanup.
2080 (svr4_create_probe_breakpoints): Add info parameter, pass it
2081 down to register_solib_event_probe.
2082 (svr4_create_solib_event_breakpoints): Add info parameter,
2083 pass it down to svr4_create_probe_breakpoints.
2084 (enable_break): Pass info down to
2085 svr4_create_solib_event_breakpoints.
2086 (svr4_solib_create_inferior_hook): Pass current_program_space to
2088 (svr4_clear_solib): Likewise.
2090 2019-04-22 Pedro Alves <palves@redhat.com>
2092 * solib-svr4.c (svr4_free_objfile_observer): New.
2093 (probe_and_action::objfile): New field.
2094 (probes_table_htab_remove_objfile_probes)
2095 (probes_table_remove_objfile_probes): New functions.
2096 (register_solib_event_probe): Add 'objfile' parameter. Store it
2097 in the new probe_and_action. Don't store the probe in 'lookup'.
2098 (svr4_create_probe_breakpoints): Pass objfile to
2099 register_solib_event_probe.
2100 (_initialize_svr4_solib): Register a free_objfile observer.
2102 2019-04-19 Tom Tromey <tom@tromey.com>
2104 * common/queue.h: Remove.
2106 2019-04-19 Tom Tromey <tom@tromey.com>
2108 * event-loop.c: Don't include "common/queue.h".
2110 2019-04-19 Tom Tromey <tom@tromey.com>
2112 * remote.c (remote_target): Use delete.
2113 * remote-notif.h: Include <list>, not "common/queue.h".
2114 (notif_client_p): Remove typedef.
2115 (remote_notif_state): Add constructor, destructor, initializer.
2116 <notif_queue>: Now a std::list.
2117 (remote_notif_state_xfree): Don't declare.
2118 * remote-notif.c (remote_notif_process, handle_notification)
2119 (remote_notif_state_allocate): Update.
2120 (~remote_notif_state): Rename from remote_notif_state_xfree.
2122 2019-04-19 Tom Tromey <tom@tromey.com>
2124 * symfile.c (reread_symbols): Update.
2125 * objfiles.c (objfile_register_static_link)
2126 (objfile_lookup_static_link): Update
2127 (~objfile) Don't delete static_links.
2128 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
2130 2019-04-19 Tom Tromey <tom@tromey.com>
2132 * type-stack.h (struct type_stack) <insert>: Constify string.
2133 * type-stack.c (type_stack::insert): Constify string.
2134 * gdbtypes.h (lookup_template_type): Update.
2135 (address_space_name_to_int): Update.
2136 * gdbtypes.c (address_space_name_to_int): Make space_identifier
2138 (lookup_template_type): Make name const.
2139 * c-exp.y: Update rules.
2140 (lex_one_token, classify_name, classify_inner_name)
2141 (c_print_token): Update.
2142 * p-exp.y: Update rules.
2144 * f-exp.y: Update rules.
2146 * d-exp.y: Update rules.
2147 (lex_one_token, classify_name, classify_inner_name): Update.
2148 * parse.c (write_dollar_variable, copy_name): Return std::string.
2149 * parser-defs.h (copy_name): Change return type.
2150 * m2-exp.y: Update rules.
2152 * go-exp.y (lex_one_token): Update.
2154 (classify_unsafe_function, classify_packaged_name)
2155 (classify_name, yylex): Update.
2157 2019-04-19 Sergei Trofimovich <siarheit@google.com>
2159 * configure.ac: add --enable-source-highlight switch.
2160 * configure: Regenerate.
2161 * top.c (print_gdb_version): plumb --enable-source-highlight
2162 status to "show configuration".
2164 2019-04-19 Tom Tromey <tromey@adacore.com>
2166 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
2168 (empty_record, ada_template_to_fixed_record_type_1)
2169 (template_to_static_fixed_type)
2170 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
2171 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
2172 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
2175 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2178 * source.c (print_source_lines_base): Advance "iter" when a
2179 control character is seen.
2181 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2183 * inferior.h (struct infcall_suspend_state_deleter):
2184 Catch exception in destructor to avoid crash.
2186 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2188 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
2189 close to the add_com "shell".
2191 2019-04-18 Tom Tromey <tromey@adacore.com>
2193 * process-stratum-target.h (class process_stratum_target)
2194 <stratum>: Add "final".
2196 2019-04-17 Tom Tromey <tromey@adacore.com>
2198 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
2199 against nullptr before use.
2201 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2203 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
2205 2019-04-17 Jim Wilson <jimw@sifive.com>
2206 Andrew Burgess <andrew.burgess@embecosm.com>
2208 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
2209 code read might fail, assume 4-byte breakpoint in that case.
2211 2019-04-15 Leszek Swirski <leszeks@google.com>
2213 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
2214 rather than a hand-rolled POD check when checking for forced MEMORY
2217 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2219 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
2220 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
2222 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
2223 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
2224 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
2227 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2229 * aarch64-linux-nat.c
2230 (aarch64_linux_nat_target::thread_architecture): Add override.
2231 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
2234 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2236 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
2238 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
2240 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
2241 target types of size 96-bits, add some additional comments, and
2242 check that the builtin type we found was the correct size.
2244 2019-04-12 Eli Zaretskii <eliz@gnu.org>
2246 * utils.c (prompt_for_continue): Don't restore the styling at the
2247 end, as applied_style has the wrong value. This fixes styling in
2248 long lists of file names that are interrupted by the "Continue?"
2251 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
2253 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
2254 * c-lang.c (c_language_defn): Likewise.
2255 (cplus_language_defn): Likewise.
2256 (asm_language_defn): Likewise.
2257 (minimal_language_defn): Likewise.
2258 * d-lang.c (d_language_defn): Likewise.
2259 * f-lang.c (f_language_defn): Likewise.
2260 * go-lang.c (go_language_defn): Likewise.
2261 * language.c (unknown_language_defn): Likewise.
2262 (auto_language_defn): Likewise.
2263 * language.h (struct language_defn): Remove la_magic field.
2264 (LANG_MAGIC): Delete.
2265 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
2266 * objc-lang.c (objc_language_defn): Likewise.
2267 * opencl-lang.c (opencl_language_defn): Likewise.
2268 * p-lang.c (pascal_language_defn): Likewise.
2269 * rust-lang.c (rust_language_defn): Likewise.
2271 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2273 * riscv-tdep.c (riscv_type_align): New function.
2274 (riscv_type_alignment): Delete.
2275 (riscv_arg_location): Use 'type_align'.
2276 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
2278 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2280 * gdbtypes.c (type_align): A struct with no non-static fields also
2283 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2285 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
2287 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
2289 (riscv_struct_info::analyse): New implementation using new
2290 analyse_inner member function.
2291 (riscv_struct_info::field_offset): New member function.
2292 (riscv_struct_info::m_offsets): New member variable.
2293 (riscv_struct_info::analyse_inner): New private member function,
2294 takes the old implementation of riscv_struct_info::analyse but
2295 extended to track field offsets.
2296 (riscv_call_arg_struct): Update the struct folding special cases
2297 to handle cases where empty C++ structs, which are non-zero
2299 (riscv_arg_location): Initialise the length of each location, a
2300 non-zero length now indicates the location is in use.
2301 (riscv_push_dummy_call): Allow for the first location having a
2302 non-zero offset when setting up arguments.
2303 (riscv_return_value): Likewise, but for return values.
2305 2019-04-11 Tom Tromey <tromey@adacore.com>
2307 * utils.c (internal_vproblem): Make "msg" const.
2309 2019-04-11 Alan Hayward <alan.hayward@arm.com>
2311 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2312 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2313 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2314 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2316 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2318 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2320 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2321 of amd64_collect_native_gregset.
2322 (amd64_linux_nat_target::store_registers): Likewise.
2324 2019-04-10 Tom Tromey <tom@tromey.com>
2326 * symtab.c (lookup_global_symbol_from_objfile)
2327 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2328 * objfiles.h (class separate_debug_iterator): New.
2329 (class separate_debug_range): New.
2330 (struct objfile) <separate_debug_objfiles>: New method.
2331 (objfile_separate_debug_iterate): Don't declare.
2332 * objfiles.c (separate_debug_iterator::operator++): Rename from
2333 objfile_separate_debug_iterate.
2334 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2336 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2339 2019-04-10 Tom Tromey <tom@tromey.com>
2341 * symfile.c (reread_symbols): Remove old comment.
2342 * objfiles.c (free_all_objfiles): Fix a typo.
2344 2019-04-10 Tom Tromey <tom@tromey.com>
2346 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2347 * minsyms.c (lookup_minimal_symbol): Use foreach.
2348 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2349 (lookup_minimal_symbol_solib_trampoline): Likewise.
2350 * symfile.c (reread_symbols): Use foreach.
2352 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2353 Tom Tromey <tromey@adacore.com>
2356 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2357 (rust_lex_int_test): Change "value" to be LONGEST.
2358 (rust_lex_tests): Add test for long integer literal.
2360 2019-04-09 Tom Tromey <tromey@adacore.com>
2362 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2364 (extended_remote_target::attach): Update.
2365 (remote_target::remote_notice_new_inferior): Update.
2366 (remote_target::add_current_inferior_and_thread): Update.
2367 * inferior.c (exit_inferior_1): Use "false".
2368 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2370 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2372 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2373 the "start" command.
2375 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2377 * python/py-inferior.c (infpy_thread_from_thread_handle):
2378 Adjust comments to reflect renaming of thread_from_thread_handle
2379 to thread_from_handle. Adjust keywords. Fix type error message.
2380 (inferior_object_methods): Add thread_from_handle. Retain
2381 thread_from_thread_handle, but mark it as deprecated.
2383 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2385 * gdbthread.h (find_thread_by_handle): Revise declaration.
2386 * thread.c (find_thread_by_handle): Likewise. Adjust
2388 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2389 support for buffer objects as handles.
2391 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2393 * python/py-infthread.c (thpy_thread_handle): New function.
2394 (thread_object_methods): Register thpy_thread_handle.
2396 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2398 * gdbthread.h (thread_to_thread_handle): Declare.
2399 * thread.c (gdbtypes.h): Include.
2400 (thread_to_thread_handle): New function.
2402 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2403 (target_thread_info_to_thread_handle): Declare.
2404 * target.c (target_thread_info_to_thread_handle): New function.
2405 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2406 * target-delegates.c: Regenerate.
2408 * linux-thread-db.c (class thread_db_target): Add method
2409 thread_info_to_thread_handle.
2410 (thread_db_target::thread_info_to_thread_handle): Define.
2411 * remote.c (class remote_target): Add new method
2412 thread_info_to_thread_handle.
2413 (remote_target::thread_info_to_thread_handle): Define.
2415 2019-04-08 Pedro Alves <palves@redhat.com>
2417 * common/common-exceptions.c (throw_exception): Don't create
2418 named object to throw; throw directly.
2419 (throw_it): Likewise. Don't initialize gdb_exception::message
2420 here, with new; pass FMT and AP to the ctor instead.
2421 * common/common-exceptions.h: Include <string>.
2422 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2423 const char *, va_list)): New ctor. Use std::make_shared.
2424 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2426 (gdb_exception_error::gdb_exception_error(enum errors, const char
2428 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2430 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2432 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2433 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2436 2019-04-08 Tom Tromey <tom@tromey.com>
2438 * valops.c (value_rtti_indirect_type): Replace throw_exception
2440 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2442 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2444 * target.c (target_translate_tls_address): Replace throw_exception
2446 * stack.c (frame_apply_command_count): Replace throw_exception
2448 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2450 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2452 * rs6000-tdep.c (rs6000_frame_cache)
2453 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2454 * remote.c: Replace throw_exception with throw.
2455 * record-full.c (record_full_message, record_full_wait_1)
2456 (record_full_restore): Replace throw_exception with throw.
2458 (get_thread_current_frame_id, record_btrace_start_replaying)
2459 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2460 (cmd_record_btrace_start): Replace throw_exception with throw.
2461 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2463 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2464 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2466 (find_linespec_symbols): Replace throw_exception with throw.
2467 * infrun.c (displaced_step_prepare, resume): Replace
2468 throw_exception with throw.
2469 * infcmd.c (post_create_inferior): Replace throw_exception with
2471 * inf-loop.c (inferior_event_handler): Replace throw_exception
2473 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2474 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2475 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2476 (get_prev_frame_always, get_frame_pc_if_available)
2477 (get_frame_address_in_block_if_available, get_frame_language):
2478 Replace throw_exception with throw.
2479 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2480 throw_exception with throw.
2481 * eval.c (fetch_subexp_value, evaluate_var_value)
2482 (evaluate_funcall, evaluate_subexp_standard): Replace
2483 throw_exception with throw.
2484 * dwarf2loc.c (call_site_find_chain)
2485 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2486 Replace throw_exception with throw.
2487 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2489 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2491 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2492 * completer.c (complete_line_internal): Replace throw_exception
2494 * compile/compile-object-run.c (compile_object_run): Replace
2495 throw_exception with throw.
2496 * cli/cli-script.c (process_next_line): Replace throw_exception
2498 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2499 (btrace_enable, btrace_maint_update_pt_packets): Replace
2500 throw_exception with throw.
2501 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2502 throw_exception with throw.
2503 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2504 throw_exception with throw.
2505 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2506 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2507 * aarch64-tdep.c (aarch64_make_prologue_cache)
2508 (aarch64_make_stub_cache): Replace throw_exception with throw.
2510 2019-04-08 Tom Tromey <tom@tromey.com>
2512 * common/common-exceptions.c (throw_exception): Rename from
2513 throw_exception_cxx. Remove old copy. Make argument const.
2514 (throw_it): Create and throw exception objects directly.
2515 * common/common-exceptions.h (throw_exception): Make argument
2517 (struct gdb_exception_error): Add constructor.
2518 (struct gdb_exception_quit): Add constructor.
2520 2019-04-08 Tom Tromey <tom@tromey.com>
2522 * common/common-exceptions.h (exception_rethrow): Don't declare.
2523 (TRY_SJLJ): Update comment.
2524 (TRY, CATCH, END_CATCH): Remove.
2525 * common/common-exceptions.c (exception_rethrow): Remove.
2527 2019-04-08 Tom Tromey <tom@tromey.com>
2529 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2531 (gdb_exception_error): Rename from
2532 gdb_exception_RETURN_MASK_ERROR.
2533 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2534 (gdb_quit_bad_alloc): Update.
2535 * aarch64-tdep.c: Update.
2536 * ada-lang.c: Update.
2537 * ada-typeprint.c: Update.
2538 * ada-valprint.c: Update.
2539 * amd64-tdep.c: Update.
2540 * arch-utils.c: Update.
2541 * break-catch-throw.c: Update.
2542 * breakpoint.c: Update.
2544 * c-varobj.c: Update.
2545 * cli/cli-cmds.c: Update.
2546 * cli/cli-interp.c: Update.
2547 * cli/cli-script.c: Update.
2548 * common/common-exceptions.c: Update.
2549 * common/new-op.c: Update.
2550 * common/selftest.c: Update.
2551 * compile/compile-c-symbols.c: Update.
2552 * compile/compile-cplus-symbols.c: Update.
2553 * compile/compile-object-load.c: Update.
2554 * compile/compile-object-run.c: Update.
2555 * completer.c: Update.
2556 * corelow.c: Update.
2558 * cp-support.c: Update.
2559 * cp-valprint.c: Update.
2560 * darwin-nat.c: Update.
2561 * disasm-selftests.c: Update.
2562 * dtrace-probe.c: Update.
2563 * dwarf-index-cache.c: Update.
2564 * dwarf-index-write.c: Update.
2565 * dwarf2-frame-tailcall.c: Update.
2566 * dwarf2-frame.c: Update.
2567 * dwarf2loc.c: Update.
2568 * dwarf2read.c: Update.
2570 * event-loop.c: Update.
2571 * event-top.c: Update.
2573 * f-valprint.c: Update.
2574 * fbsd-tdep.c: Update.
2575 * frame-unwind.c: Update.
2577 * gdbtypes.c: Update.
2578 * gnu-v3-abi.c: Update.
2579 * guile/guile-internal.h: Update.
2580 * guile/scm-block.c: Update.
2581 * guile/scm-breakpoint.c: Update.
2582 * guile/scm-cmd.c: Update.
2583 * guile/scm-disasm.c: Update.
2584 * guile/scm-frame.c: Update.
2585 * guile/scm-lazy-string.c: Update.
2586 * guile/scm-math.c: Update.
2587 * guile/scm-param.c: Update.
2588 * guile/scm-ports.c: Update.
2589 * guile/scm-pretty-print.c: Update.
2590 * guile/scm-symbol.c: Update.
2591 * guile/scm-symtab.c: Update.
2592 * guile/scm-type.c: Update.
2593 * guile/scm-value.c: Update.
2594 * i386-linux-tdep.c: Update.
2595 * i386-tdep.c: Update.
2596 * inf-loop.c: Update.
2597 * infcall.c: Update.
2601 * language.c: Update.
2602 * linespec.c: Update.
2603 * linux-fork.c: Update.
2604 * linux-nat.c: Update.
2605 * linux-tdep.c: Update.
2606 * linux-thread-db.c: Update.
2608 * mi/mi-cmd-break.c: Update.
2609 * mi/mi-cmd-stack.c: Update.
2610 * mi/mi-interp.c: Update.
2611 * mi/mi-main.c: Update.
2612 * objc-lang.c: Update.
2613 * p-valprint.c: Update.
2615 * ppc-linux-tdep.c: Update.
2616 * printcmd.c: Update.
2617 * python/py-arch.c: Update.
2618 * python/py-breakpoint.c: Update.
2619 * python/py-cmd.c: Update.
2620 * python/py-finishbreakpoint.c: Update.
2621 * python/py-frame.c: Update.
2622 * python/py-framefilter.c: Update.
2623 * python/py-gdb-readline.c: Update.
2624 * python/py-inferior.c: Update.
2625 * python/py-infthread.c: Update.
2626 * python/py-lazy-string.c: Update.
2627 * python/py-linetable.c: Update.
2628 * python/py-objfile.c: Update.
2629 * python/py-param.c: Update.
2630 * python/py-prettyprint.c: Update.
2631 * python/py-progspace.c: Update.
2632 * python/py-record-btrace.c: Update.
2633 * python/py-record.c: Update.
2634 * python/py-symbol.c: Update.
2635 * python/py-type.c: Update.
2636 * python/py-unwind.c: Update.
2637 * python/py-utils.c: Update.
2638 * python/py-value.c: Update.
2639 * python/python.c: Update.
2640 * record-btrace.c: Update.
2641 * record-full.c: Update.
2642 * remote-fileio.c: Update.
2644 * riscv-tdep.c: Update.
2645 * rs6000-aix-tdep.c: Update.
2646 * rs6000-tdep.c: Update.
2647 * rust-exp.y: Update.
2648 * rust-lang.c: Update.
2649 * s390-tdep.c: Update.
2650 * selftest-arch.c: Update.
2651 * solib-dsbt.c: Update.
2652 * solib-frv.c: Update.
2653 * solib-spu.c: Update.
2654 * solib-svr4.c: Update.
2656 * sparc64-linux-tdep.c: Update.
2658 * symfile-mem.c: Update.
2659 * symmisc.c: Update.
2663 * tracefile-tfile.c: Update.
2664 * tui/tui.c: Update.
2665 * typeprint.c: Update.
2666 * unittests/cli-utils-selftests.c: Update.
2667 * unittests/parse-connection-spec-selftests.c: Update.
2669 * valprint.c: Update.
2672 * windows-nat.c: Update.
2673 * x86-linux-nat.c: Update.
2674 * xml-support.c: Update.
2676 2019-04-08 Tom Tromey <tom@tromey.com>
2678 * xml-support.c: Use C++ exception handling.
2679 * x86-linux-nat.c: Use C++ exception handling.
2680 * windows-nat.c: Use C++ exception handling.
2681 * varobj.c: Use C++ exception handling.
2682 * value.c: Use C++ exception handling.
2683 * valprint.c: Use C++ exception handling.
2684 * valops.c: Use C++ exception handling.
2685 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2687 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2688 * typeprint.c: Use C++ exception handling.
2689 * tui/tui.c: Use C++ exception handling.
2690 * tracefile-tfile.c: Use C++ exception handling.
2691 * top.c: Use C++ exception handling.
2692 * thread.c: Use C++ exception handling.
2693 * target.c: Use C++ exception handling.
2694 * symmisc.c: Use C++ exception handling.
2695 * symfile-mem.c: Use C++ exception handling.
2696 * stack.c: Use C++ exception handling.
2697 * sparc64-linux-tdep.c: Use C++ exception handling.
2698 * solib.c: Use C++ exception handling.
2699 * solib-svr4.c: Use C++ exception handling.
2700 * solib-spu.c: Use C++ exception handling.
2701 * solib-frv.c: Use C++ exception handling.
2702 * solib-dsbt.c: Use C++ exception handling.
2703 * selftest-arch.c: Use C++ exception handling.
2704 * s390-tdep.c: Use C++ exception handling.
2705 * rust-lang.c: Use C++ exception handling.
2706 * rust-exp.y: Use C++ exception handling.
2707 * rs6000-tdep.c: Use C++ exception handling.
2708 * rs6000-aix-tdep.c: Use C++ exception handling.
2709 * riscv-tdep.c: Use C++ exception handling.
2710 * remote.c: Use C++ exception handling.
2711 * remote-fileio.c: Use C++ exception handling.
2712 * record-full.c: Use C++ exception handling.
2713 * record-btrace.c: Use C++ exception handling.
2714 * python/python.c: Use C++ exception handling.
2715 * python/py-value.c: Use C++ exception handling.
2716 * python/py-utils.c: Use C++ exception handling.
2717 * python/py-unwind.c: Use C++ exception handling.
2718 * python/py-type.c: Use C++ exception handling.
2719 * python/py-symbol.c: Use C++ exception handling.
2720 * python/py-record.c: Use C++ exception handling.
2721 * python/py-record-btrace.c: Use C++ exception handling.
2722 * python/py-progspace.c: Use C++ exception handling.
2723 * python/py-prettyprint.c: Use C++ exception handling.
2724 * python/py-param.c: Use C++ exception handling.
2725 * python/py-objfile.c: Use C++ exception handling.
2726 * python/py-linetable.c: Use C++ exception handling.
2727 * python/py-lazy-string.c: Use C++ exception handling.
2728 * python/py-infthread.c: Use C++ exception handling.
2729 * python/py-inferior.c: Use C++ exception handling.
2730 * python/py-gdb-readline.c: Use C++ exception handling.
2731 * python/py-framefilter.c: Use C++ exception handling.
2732 * python/py-frame.c: Use C++ exception handling.
2733 * python/py-finishbreakpoint.c: Use C++ exception handling.
2734 * python/py-cmd.c: Use C++ exception handling.
2735 * python/py-breakpoint.c: Use C++ exception handling.
2736 * python/py-arch.c: Use C++ exception handling.
2737 * printcmd.c: Use C++ exception handling.
2738 * ppc-linux-tdep.c: Use C++ exception handling.
2739 * parse.c: Use C++ exception handling.
2740 * p-valprint.c: Use C++ exception handling.
2741 * objc-lang.c: Use C++ exception handling.
2742 * mi/mi-main.c: Use C++ exception handling.
2743 * mi/mi-interp.c: Use C++ exception handling.
2744 * mi/mi-cmd-stack.c: Use C++ exception handling.
2745 * mi/mi-cmd-break.c: Use C++ exception handling.
2746 * main.c: Use C++ exception handling.
2747 * linux-thread-db.c: Use C++ exception handling.
2748 * linux-tdep.c: Use C++ exception handling.
2749 * linux-nat.c: Use C++ exception handling.
2750 * linux-fork.c: Use C++ exception handling.
2751 * linespec.c: Use C++ exception handling.
2752 * language.c: Use C++ exception handling.
2753 * jit.c: Use C++ exception handling.
2754 * infrun.c: Use C++ exception handling.
2755 * infcmd.c: Use C++ exception handling.
2756 * infcall.c: Use C++ exception handling.
2757 * inf-loop.c: Use C++ exception handling.
2758 * i386-tdep.c: Use C++ exception handling.
2759 * i386-linux-tdep.c: Use C++ exception handling.
2760 * guile/scm-value.c: Use C++ exception handling.
2761 * guile/scm-type.c: Use C++ exception handling.
2762 * guile/scm-symtab.c: Use C++ exception handling.
2763 * guile/scm-symbol.c: Use C++ exception handling.
2764 * guile/scm-pretty-print.c: Use C++ exception handling.
2765 * guile/scm-ports.c: Use C++ exception handling.
2766 * guile/scm-param.c: Use C++ exception handling.
2767 * guile/scm-math.c: Use C++ exception handling.
2768 * guile/scm-lazy-string.c: Use C++ exception handling.
2769 * guile/scm-frame.c: Use C++ exception handling.
2770 * guile/scm-disasm.c: Use C++ exception handling.
2771 * guile/scm-cmd.c: Use C++ exception handling.
2772 * guile/scm-breakpoint.c: Use C++ exception handling.
2773 * guile/scm-block.c: Use C++ exception handling.
2774 * guile/guile-internal.h: Use C++ exception handling.
2775 * gnu-v3-abi.c: Use C++ exception handling.
2776 * gdbtypes.c: Use C++ exception handling.
2777 * frame.c: Use C++ exception handling.
2778 * frame-unwind.c: Use C++ exception handling.
2779 * fbsd-tdep.c: Use C++ exception handling.
2780 * f-valprint.c: Use C++ exception handling.
2781 * exec.c: Use C++ exception handling.
2782 * event-top.c: Use C++ exception handling.
2783 * event-loop.c: Use C++ exception handling.
2784 * eval.c: Use C++ exception handling.
2785 * dwarf2read.c: Use C++ exception handling.
2786 * dwarf2loc.c: Use C++ exception handling.
2787 * dwarf2-frame.c: Use C++ exception handling.
2788 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2789 * dwarf-index-write.c: Use C++ exception handling.
2790 * dwarf-index-cache.c: Use C++ exception handling.
2791 * dtrace-probe.c: Use C++ exception handling.
2792 * disasm-selftests.c: Use C++ exception handling.
2793 * darwin-nat.c: Use C++ exception handling.
2794 * cp-valprint.c: Use C++ exception handling.
2795 * cp-support.c: Use C++ exception handling.
2796 * cp-abi.c: Use C++ exception handling.
2797 * corelow.c: Use C++ exception handling.
2798 * completer.c: Use C++ exception handling.
2799 * compile/compile-object-run.c: Use C++ exception handling.
2800 * compile/compile-object-load.c: Use C++ exception handling.
2801 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2802 * compile/compile-c-symbols.c: Use C++ exception handling.
2803 * common/selftest.c: Use C++ exception handling.
2804 * common/new-op.c: Use C++ exception handling.
2805 * cli/cli-script.c: Use C++ exception handling.
2806 * cli/cli-interp.c: Use C++ exception handling.
2807 * cli/cli-cmds.c: Use C++ exception handling.
2808 * c-varobj.c: Use C++ exception handling.
2809 * btrace.c: Use C++ exception handling.
2810 * breakpoint.c: Use C++ exception handling.
2811 * break-catch-throw.c: Use C++ exception handling.
2812 * arch-utils.c: Use C++ exception handling.
2813 * amd64-tdep.c: Use C++ exception handling.
2814 * ada-valprint.c: Use C++ exception handling.
2815 * ada-typeprint.c: Use C++ exception handling.
2816 * ada-lang.c: Use C++ exception handling.
2817 * aarch64-tdep.c: Use C++ exception handling.
2819 2019-04-08 Tom Tromey <tom@tromey.com>
2821 * xml-support.c (gdb_xml_parser::parse): Update.
2822 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2823 * value.c (show_convenience): Update.
2824 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2825 (test_parse_flags_qcs): Update.
2826 * thread.c (thr_try_catch_cmd): Update.
2827 * target.c (target_translate_tls_address): Update.
2828 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2829 (info_frame_command_core, frame_apply_command_count): Update.
2830 * rust-exp.y (rust_lex_exception_test): Update.
2831 * riscv-tdep.c (riscv_print_one_register_info): Update.
2832 * remote.c (remote_target::enable_btrace): Update.
2833 * record-btrace.c (record_btrace_enable_warn): Update.
2834 * python/py-utils.c (gdbpy_convert_exception): Update.
2835 * printcmd.c (do_one_display, print_variable_and_value): Update.
2836 * mi/mi-main.c (mi_print_exception): Update.
2837 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2838 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2839 * linux-nat.c (linux_nat_target::attach): Update.
2840 * linux-fork.c (class scoped_switch_fork_info): Update.
2841 * infrun.c (displaced_step_prepare): Update.
2842 * infcall.c (call_function_by_hand_dummy): Update.
2843 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2844 * gnu-v3-abi.c (print_one_vtable): Update.
2845 * frame.c (get_prev_frame_always): Update.
2846 * f-valprint.c (info_common_command_for_block): Update.
2847 * exec.c (try_open_exec_file): Update.
2848 * exceptions.c (print_exception, exception_print)
2849 (exception_fprintf, exception_print_same): Update.
2850 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2851 * dwarf-index-cache.c (index_cache::store)
2852 (index_cache::lookup_gdb_index): Update.
2853 * darwin-nat.c (maybe_cache_shell): Update.
2854 * cp-valprint.c (cp_print_value_fields): Update.
2855 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2856 (gcc_cplus_symbol_address): Update.
2857 * compile/compile-c-symbols.c (gcc_convert_symbol)
2858 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2859 * common/selftest.c: Update.
2860 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2862 (exception_try_scope_entry, exception_try_scope_exit): Don't
2864 (struct exception_try_scope): Remove.
2865 (TRY): Don't use exception_try_scope.
2866 (struct gdb_exception): Add constructor, operator=.
2868 (struct gdb_exception_RETURN_MASK_ALL)
2869 (struct gdb_exception_RETURN_MASK_ERROR)
2870 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2871 (struct gdb_quit_bad_alloc): Update.
2872 * common/common-exceptions.c (exception_none): Change
2874 (struct catcher) <state, exception>: Initialize inline.
2875 <prev>: Remove member.
2876 (current_catcher): Remove.
2877 (catchers): New global.
2878 (exceptions_state_mc_init): Simplify.
2879 (catcher_pop): Remove.
2880 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2881 (try_scope_depth, exception_try_scope_entry)
2882 (exception_try_scope_exit): Remove.
2883 (throw_exception_sjlj): Update.
2884 (exception_messages, exception_messages_size): Remove.
2885 (throw_it): Simplify.
2886 (gdb_exception_sliced_copy): Remove.
2887 (throw_exception_cxx): Update.
2888 * cli/cli-script.c (script_from_file): Update.
2889 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2891 * ada-valprint.c (ada_val_print): Update.
2892 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2893 (create_excep_cond_exprs): Update.
2895 2019-04-08 Tom Tromey <tom@tromey.com>
2897 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2898 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2899 (TRY, CATCH, END_CATCH): Remove some definitions.
2900 * common/common-exceptions.c: Don't use GDB_XCPT.
2901 (catcher_list_size): Remove.
2902 (throw_exception, throw_it): Simplify.
2904 2019-04-05 Tom Tromey <tom@tromey.com>
2906 Revert the header-sorting patch.
2907 * ft32-tdep.c: Revert.
2908 * frv-tdep.c: Revert.
2909 * frv-linux-tdep.c: Revert.
2911 * frame-unwind.c: Revert.
2912 * frame-base.c: Revert.
2913 * fork-child.c: Revert.
2914 * findvar.c: Revert.
2915 * findcmd.c: Revert.
2916 * filesystem.c: Revert.
2917 * filename-seen-cache.h: Revert.
2918 * filename-seen-cache.c: Revert.
2919 * fbsd-tdep.c: Revert.
2920 * fbsd-nat.h: Revert.
2921 * fbsd-nat.c: Revert.
2922 * f-valprint.c: Revert.
2923 * f-typeprint.c: Revert.
2925 * extension.h: Revert.
2926 * extension.c: Revert.
2927 * extension-priv.h: Revert.
2928 * expprint.c: Revert.
2931 * exceptions.c: Revert.
2932 * event-top.c: Revert.
2933 * event-loop.c: Revert.
2935 * elfread.c: Revert.
2936 * dwarf2read.h: Revert.
2937 * dwarf2read.c: Revert.
2938 * dwarf2loc.c: Revert.
2939 * dwarf2expr.h: Revert.
2940 * dwarf2expr.c: Revert.
2941 * dwarf2-frame.c: Revert.
2942 * dwarf2-frame-tailcall.c: Revert.
2943 * dwarf-index-write.h: Revert.
2944 * dwarf-index-write.c: Revert.
2945 * dwarf-index-common.c: Revert.
2946 * dwarf-index-cache.h: Revert.
2947 * dwarf-index-cache.c: Revert.
2948 * dummy-frame.c: Revert.
2949 * dtrace-probe.c: Revert.
2952 * disasm-selftests.c: Revert.
2953 * dictionary.c: Revert.
2954 * dicos-tdep.c: Revert.
2955 * demangle.c: Revert.
2958 * darwin-nat.h: Revert.
2959 * darwin-nat.c: Revert.
2960 * darwin-nat-info.c: Revert.
2961 * d-valprint.c: Revert.
2962 * d-namespace.c: Revert.
2965 * csky-tdep.c: Revert.
2966 * csky-linux-tdep.c: Revert.
2967 * cris-tdep.c: Revert.
2968 * cris-linux-tdep.c: Revert.
2969 * cp-valprint.c: Revert.
2970 * cp-support.c: Revert.
2971 * cp-namespace.c: Revert.
2973 * corelow.c: Revert.
2974 * corefile.c: Revert.
2975 * continuations.c: Revert.
2976 * completer.h: Revert.
2977 * completer.c: Revert.
2978 * complaints.c: Revert.
2979 * coffread.c: Revert.
2980 * coff-pe-read.c: Revert.
2981 * cli-out.h: Revert.
2982 * cli-out.c: Revert.
2983 * charset.c: Revert.
2984 * c-varobj.c: Revert.
2985 * c-valprint.c: Revert.
2986 * c-typeprint.c: Revert.
2988 * buildsym.c: Revert.
2989 * buildsym-legacy.c: Revert.
2990 * build-id.h: Revert.
2991 * build-id.c: Revert.
2993 * bsd-uthread.c: Revert.
2994 * breakpoint.h: Revert.
2995 * breakpoint.c: Revert.
2996 * break-catch-throw.c: Revert.
2997 * break-catch-syscall.c: Revert.
2998 * break-catch-sig.c: Revert.
2999 * blockframe.c: Revert.
3001 * bfin-tdep.c: Revert.
3002 * bfin-linux-tdep.c: Revert.
3003 * bfd-target.c: Revert.
3005 * ax-general.c: Revert.
3008 * avr-tdep.c: Revert.
3010 * auto-load.c: Revert.
3011 * arm-wince-tdep.c: Revert.
3012 * arm-tdep.c: Revert.
3013 * arm-symbian-tdep.c: Revert.
3014 * arm-pikeos-tdep.c: Revert.
3015 * arm-obsd-tdep.c: Revert.
3016 * arm-nbsd-tdep.c: Revert.
3017 * arm-nbsd-nat.c: Revert.
3018 * arm-linux-tdep.c: Revert.
3019 * arm-linux-nat.c: Revert.
3020 * arm-fbsd-tdep.c: Revert.
3021 * arm-fbsd-nat.c: Revert.
3022 * arm-bsd-tdep.c: Revert.
3023 * arch-utils.c: Revert.
3024 * arc-tdep.c: Revert.
3025 * arc-newlib-tdep.c: Revert.
3026 * annotate.h: Revert.
3027 * annotate.c: Revert.
3028 * amd64-windows-tdep.c: Revert.
3029 * amd64-windows-nat.c: Revert.
3030 * amd64-tdep.c: Revert.
3031 * amd64-sol2-tdep.c: Revert.
3032 * amd64-obsd-tdep.c: Revert.
3033 * amd64-obsd-nat.c: Revert.
3034 * amd64-nbsd-tdep.c: Revert.
3035 * amd64-nbsd-nat.c: Revert.
3036 * amd64-nat.c: Revert.
3037 * amd64-linux-tdep.c: Revert.
3038 * amd64-linux-nat.c: Revert.
3039 * amd64-fbsd-tdep.c: Revert.
3040 * amd64-fbsd-nat.c: Revert.
3041 * amd64-dicos-tdep.c: Revert.
3042 * amd64-darwin-tdep.c: Revert.
3043 * amd64-bsd-nat.c: Revert.
3044 * alpha-tdep.c: Revert.
3045 * alpha-obsd-tdep.c: Revert.
3046 * alpha-nbsd-tdep.c: Revert.
3047 * alpha-mdebug-tdep.c: Revert.
3048 * alpha-linux-tdep.c: Revert.
3049 * alpha-linux-nat.c: Revert.
3050 * alpha-bsd-tdep.c: Revert.
3051 * alpha-bsd-nat.c: Revert.
3052 * aix-thread.c: Revert.
3054 * addrmap.c: Revert.
3055 * ada-varobj.c: Revert.
3056 * ada-valprint.c: Revert.
3057 * ada-typeprint.c: Revert.
3058 * ada-tasks.c: Revert.
3059 * ada-lang.c: Revert.
3060 * aarch64-tdep.c: Revert.
3061 * aarch64-ravenscar-thread.c: Revert.
3062 * aarch64-newlib-tdep.c: Revert.
3063 * aarch64-linux-tdep.c: Revert.
3064 * aarch64-linux-nat.c: Revert.
3065 * aarch64-fbsd-tdep.c: Revert.
3066 * aarch64-fbsd-nat.c: Revert.
3067 * aarch32-linux-nat.c: Revert.
3069 2019-04-05 Tom Tromey <tom@tromey.com>
3071 * ft32-tdep.c: Sort headers.
3072 * frv-tdep.c: Sort headers.
3073 * frv-linux-tdep.c: Sort headers.
3074 * frame.c: Sort headers.
3075 * frame-unwind.c: Sort headers.
3076 * frame-base.c: Sort headers.
3077 * fork-child.c: Sort headers.
3078 * findvar.c: Sort headers.
3079 * findcmd.c: Sort headers.
3080 * filesystem.c: Sort headers.
3081 * filename-seen-cache.h: Sort headers.
3082 * filename-seen-cache.c: Sort headers.
3083 * fbsd-tdep.c: Sort headers.
3084 * fbsd-nat.h: Sort headers.
3085 * fbsd-nat.c: Sort headers.
3086 * f-valprint.c: Sort headers.
3087 * f-typeprint.c: Sort headers.
3088 * f-lang.c: Sort headers.
3089 * extension.h: Sort headers.
3090 * extension.c: Sort headers.
3091 * extension-priv.h: Sort headers.
3092 * expprint.c: Sort headers.
3093 * exec.h: Sort headers.
3094 * exec.c: Sort headers.
3095 * exceptions.c: Sort headers.
3096 * event-top.c: Sort headers.
3097 * event-loop.c: Sort headers.
3098 * eval.c: Sort headers.
3099 * elfread.c: Sort headers.
3100 * dwarf2read.h: Sort headers.
3101 * dwarf2read.c: Sort headers.
3102 * dwarf2loc.c: Sort headers.
3103 * dwarf2expr.h: Sort headers.
3104 * dwarf2expr.c: Sort headers.
3105 * dwarf2-frame.c: Sort headers.
3106 * dwarf2-frame-tailcall.c: Sort headers.
3107 * dwarf-index-write.h: Sort headers.
3108 * dwarf-index-write.c: Sort headers.
3109 * dwarf-index-common.c: Sort headers.
3110 * dwarf-index-cache.h: Sort headers.
3111 * dwarf-index-cache.c: Sort headers.
3112 * dummy-frame.c: Sort headers.
3113 * dtrace-probe.c: Sort headers.
3114 * disasm.h: Sort headers.
3115 * disasm.c: Sort headers.
3116 * disasm-selftests.c: Sort headers.
3117 * dictionary.c: Sort headers.
3118 * dicos-tdep.c: Sort headers.
3119 * demangle.c: Sort headers.
3120 * dcache.h: Sort headers.
3121 * dcache.c: Sort headers.
3122 * darwin-nat.h: Sort headers.
3123 * darwin-nat.c: Sort headers.
3124 * darwin-nat-info.c: Sort headers.
3125 * d-valprint.c: Sort headers.
3126 * d-namespace.c: Sort headers.
3127 * d-lang.c: Sort headers.
3128 * ctf.c: Sort headers.
3129 * csky-tdep.c: Sort headers.
3130 * csky-linux-tdep.c: Sort headers.
3131 * cris-tdep.c: Sort headers.
3132 * cris-linux-tdep.c: Sort headers.
3133 * cp-valprint.c: Sort headers.
3134 * cp-support.c: Sort headers.
3135 * cp-namespace.c: Sort headers.
3136 * cp-abi.c: Sort headers.
3137 * corelow.c: Sort headers.
3138 * corefile.c: Sort headers.
3139 * continuations.c: Sort headers.
3140 * completer.h: Sort headers.
3141 * completer.c: Sort headers.
3142 * complaints.c: Sort headers.
3143 * coffread.c: Sort headers.
3144 * coff-pe-read.c: Sort headers.
3145 * cli-out.h: Sort headers.
3146 * cli-out.c: Sort headers.
3147 * charset.c: Sort headers.
3148 * c-varobj.c: Sort headers.
3149 * c-valprint.c: Sort headers.
3150 * c-typeprint.c: Sort headers.
3151 * c-lang.c: Sort headers.
3152 * buildsym.c: Sort headers.
3153 * buildsym-legacy.c: Sort headers.
3154 * build-id.h: Sort headers.
3155 * build-id.c: Sort headers.
3156 * btrace.c: Sort headers.
3157 * bsd-uthread.c: Sort headers.
3158 * breakpoint.h: Sort headers.
3159 * breakpoint.c: Sort headers.
3160 * break-catch-throw.c: Sort headers.
3161 * break-catch-syscall.c: Sort headers.
3162 * break-catch-sig.c: Sort headers.
3163 * blockframe.c: Sort headers.
3164 * block.c: Sort headers.
3165 * bfin-tdep.c: Sort headers.
3166 * bfin-linux-tdep.c: Sort headers.
3167 * bfd-target.c: Sort headers.
3168 * bcache.c: Sort headers.
3169 * ax-general.c: Sort headers.
3170 * ax-gdb.h: Sort headers.
3171 * ax-gdb.c: Sort headers.
3172 * avr-tdep.c: Sort headers.
3173 * auxv.c: Sort headers.
3174 * auto-load.c: Sort headers.
3175 * arm-wince-tdep.c: Sort headers.
3176 * arm-tdep.c: Sort headers.
3177 * arm-symbian-tdep.c: Sort headers.
3178 * arm-pikeos-tdep.c: Sort headers.
3179 * arm-obsd-tdep.c: Sort headers.
3180 * arm-nbsd-tdep.c: Sort headers.
3181 * arm-nbsd-nat.c: Sort headers.
3182 * arm-linux-tdep.c: Sort headers.
3183 * arm-linux-nat.c: Sort headers.
3184 * arm-fbsd-tdep.c: Sort headers.
3185 * arm-fbsd-nat.c: Sort headers.
3186 * arm-bsd-tdep.c: Sort headers.
3187 * arch-utils.c: Sort headers.
3188 * arc-tdep.c: Sort headers.
3189 * arc-newlib-tdep.c: Sort headers.
3190 * annotate.h: Sort headers.
3191 * annotate.c: Sort headers.
3192 * amd64-windows-tdep.c: Sort headers.
3193 * amd64-windows-nat.c: Sort headers.
3194 * amd64-tdep.c: Sort headers.
3195 * amd64-sol2-tdep.c: Sort headers.
3196 * amd64-obsd-tdep.c: Sort headers.
3197 * amd64-obsd-nat.c: Sort headers.
3198 * amd64-nbsd-tdep.c: Sort headers.
3199 * amd64-nbsd-nat.c: Sort headers.
3200 * amd64-nat.c: Sort headers.
3201 * amd64-linux-tdep.c: Sort headers.
3202 * amd64-linux-nat.c: Sort headers.
3203 * amd64-fbsd-tdep.c: Sort headers.
3204 * amd64-fbsd-nat.c: Sort headers.
3205 * amd64-dicos-tdep.c: Sort headers.
3206 * amd64-darwin-tdep.c: Sort headers.
3207 * amd64-bsd-nat.c: Sort headers.
3208 * alpha-tdep.c: Sort headers.
3209 * alpha-obsd-tdep.c: Sort headers.
3210 * alpha-nbsd-tdep.c: Sort headers.
3211 * alpha-mdebug-tdep.c: Sort headers.
3212 * alpha-linux-tdep.c: Sort headers.
3213 * alpha-linux-nat.c: Sort headers.
3214 * alpha-bsd-tdep.c: Sort headers.
3215 * alpha-bsd-nat.c: Sort headers.
3216 * aix-thread.c: Sort headers.
3217 * agent.c: Sort headers.
3218 * addrmap.c: Sort headers.
3219 * ada-varobj.c: Sort headers.
3220 * ada-valprint.c: Sort headers.
3221 * ada-typeprint.c: Sort headers.
3222 * ada-tasks.c: Sort headers.
3223 * ada-lang.c: Sort headers.
3224 * aarch64-tdep.c: Sort headers.
3225 * aarch64-ravenscar-thread.c: Sort headers.
3226 * aarch64-newlib-tdep.c: Sort headers.
3227 * aarch64-linux-tdep.c: Sort headers.
3228 * aarch64-linux-nat.c: Sort headers.
3229 * aarch64-fbsd-tdep.c: Sort headers.
3230 * aarch64-fbsd-nat.c: Sort headers.
3231 * aarch32-linux-nat.c: Sort headers.
3233 2019-04-04 Tom Tromey <tom@tromey.com>
3235 * varobj.c (varobj_create): Update.
3236 * rust-exp.y (struct rust_parser) <update_innermost_block,
3237 lookup_symbol>: New methods.
3238 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
3240 (rust_parser::rust_lookup_type)
3241 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3242 * printcmd.c (display_command, do_one_display): Update.
3243 * parser-defs.h (struct parser_state) <parser_state>: Add
3244 "tracker" parameter.
3245 (block_tracker): New member.
3246 (class innermost_block_tracker) <innermost_block_tracker>: Add
3248 <reset>: Remove method.
3249 (innermost_block): Don't declare.
3250 (null_post_parser): Update.
3251 * parse.c (innermost_block): Remove global.
3252 (write_dollar_variable): Update.
3253 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
3254 Remove "tracker_types" parameter.
3255 (parse_expression): Add "tracker" parameter.
3256 (parse_expression_for_completion): Update.
3257 (null_post_parser): Add "tracker" parameter.
3258 * p-exp.y: Update rules.
3259 * m2-exp.y: Update rules.
3260 * language.h (struct language_defn) <la_post_parser>: Add
3261 "tracker" parameter.
3262 * go-exp.y: Update rules.
3263 * f-exp.y: Update rules.
3264 * expression.h (parse_expression, parse_exp_1): Add "tracker"
3266 * d-exp.y: Update rules.
3267 * c-exp.y: Update rules.
3268 * breakpoint.c (set_breakpoint_condition): Create an
3269 innermost_block_tracker.
3270 (watch_command_1): Likewise.
3271 * ada-lang.c (resolve): Add "tracker" parameter.
3272 (resolve_subexp): Likewise.
3273 * ada-exp.y (write_var_from_sym): Update.
3275 2019-04-04 Tom Tromey <tom@tromey.com>
3277 * type-stack.h: New file.
3278 * type-stack.c: New file.
3279 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
3281 (insert_into_type_stack, insert_type, push_type, push_type_int)
3282 (insert_type_address_space, pop_type, pop_type_int)
3283 (pop_typelist, pop_type_stack, append_type_stack)
3284 (push_type_stack, get_type_stack, push_typelist)
3285 (follow_type_instance_flags, follow_types): Don't declare.
3286 * parse.c (type_stack): Remove global.
3287 (parse_exp_in_context): Update.
3288 (insert_into_type_stack, insert_type, push_type, push_type_int)
3289 (insert_type_address_space, pop_type, pop_type_int)
3290 (pop_typelist, pop_type_stack, append_type_stack)
3291 (push_type_stack, get_type_stack, push_typelist)
3292 (follow_type_instance_flags, follow_types): Remove (moved to
3294 * f-exp.y (type_stack): New global.
3296 (push_kind_type, f_parse): Update.
3297 * d-exp.y (type_stack): New global.
3300 * c-exp.y (struct c_parse_state) <type_stack>: New member.
3302 * Makefile.in (COMMON_SFILES): Add type-stack.c.
3303 (HFILES_NO_SRCDIR): Add type-stack.h.
3305 2019-04-04 Tom Tromey <tom@tromey.com>
3307 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
3308 (rust_parser::convert_ast_to_expression, rust_parse)
3309 (rust_lex_test_completion, rust_lex_tests): Update.
3310 * parser-defs.h (struct expr_completion_state): New.
3311 (struct parser_state) <parser_state>: Add completion parameter.
3312 <mark_struct_expression, mark_completion_tag>: New methods.
3313 <parse_completion, m_completion_state>: New members.
3314 (prefixify_expression, null_post_parser): Update.
3315 (mark_struct_expression, mark_completion_tag): Don't declare.
3316 * parse.c (parse_completion, expout_last_struct)
3317 (expout_tag_completion_type, expout_completion_name): Remove
3319 (parser_state::mark_struct_expression)
3320 (parser_state::mark_completion_tag): Now methods.
3321 (prefixify_expression): Add last_struct parameter.
3322 (prefixify_subexp): Likewise.
3323 (parse_exp_1): Update.
3324 (parse_exp_in_context): Add cstate parameter. Update.
3325 (parse_expression_for_completion): Create an
3326 expr_completion_state.
3327 (null_post_parser): Add "completion" parameter.
3328 * p-exp.y: Update rules.
3330 * language.h (struct language_defn) <la_post_parser>: Add
3331 "completing" parameter.
3332 * go-exp.y: Update rules.
3333 (lex_one_token): Update.
3334 * expression.h (parse_completion): Don't declare.
3335 * d-exp.y: Update rules.
3336 (lex_one_token): Update rules.
3337 * c-exp.y: Update rules.
3338 (lex_one_token): Update.
3339 * ada-lang.c (resolve): Add "parse_completion" parameter.
3340 (resolve_subexp): Likewise.
3341 (ada_resolve_function): Likewise.
3343 2019-04-04 Tom Tromey <tom@tromey.com>
3345 * parser-defs.h (struct parser_state) <start_arglist,
3346 end_arglist>: New methods.
3347 <arglist_len, m_funcall_chain>: New members.
3348 (arglist_len, start_arglist, end_arglist): Don't declare.
3349 * parse.c (arglist_len, funcall_chain): Remove global.
3350 (start_arglist, end_arglist): Remove functions.
3351 (parse_exp_in_context): Update.
3352 * p-exp.y: Update rules.
3353 * m2-exp.y: Update rules.
3354 * go-exp.y: Update rules.
3355 * f-exp.y: Update rules.
3356 * d-exp.y: Update rules.
3357 * c-exp.y: Update rules.
3359 2019-04-04 Tom Tromey <tom@tromey.com>
3361 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3362 lex_operator, push_back>: New methods.
3364 (rust_parser::lex_hex, lex_escape): Rename and update.
3365 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3366 (rust_parser::lex_operator): Rename and update.
3367 (rust_parser::lex_number, rustyylex, rustyyerror)
3368 (rust_lex_test_init, rust_lex_test_sequence)
3369 (rust_lex_test_push_back, rust_lex_tests): Update.
3370 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3372 <lexptr, prev_lexptr>: New members.
3373 (lexptr, prev_lexptr): Don't declare.
3374 * parse.c (lexptr, prev_lexptr): Remove globals.
3375 (parse_exp_in_context): Update.
3376 * p-exp.y (yylex, yyerror): Update.
3377 * m2-exp.y (parse_number, yylex, yyerror): Update.
3378 * go-exp.y (lex_one_token, yyerror): Update.
3379 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3380 * d-exp.y (lex_one_token, yyerror): Update.
3381 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3382 (lex_one_token, yyerror): Update.
3383 * ada-lex.l (YY_INPUT): Update.
3384 (rewind_to_char): Update.
3385 * ada-exp.y (yyerror): Update.
3387 2019-04-04 Tom Tromey <tom@tromey.com>
3389 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3390 * parser-defs.h (struct parser_state) <parser_state>: Add new
3392 <comma_terminates>: New member.
3393 (comma_terminates): Don't declare global.
3394 * parse.c (comma_terminates): Remove global.
3395 (parse_exp_in_context): Update.
3396 * p-exp.y (yylex): Update.
3397 * m2-exp.y (yylex): Update.
3398 * go-exp.y (lex_one_token): Update.
3399 * f-exp.y (yylex): Update.
3400 * d-exp.y (lex_one_token): Update.
3401 * c-exp.y (lex_one_token): Update.
3402 * ada-lex.l: Update.
3404 2019-04-04 Tom Tromey <tom@tromey.com>
3406 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3407 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3408 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3409 * parser-defs.h (paren_depth): Don't declare.
3410 * parse.c (paren_depth): Remove global.
3411 (parse_exp_in_context): Update.
3412 * p-exp.y (paren_depth): New global.
3413 (pascal_parse): Initialize it.
3414 * m2-exp.y (paren_depth): New global.
3415 (m2_parse): Initialize it.
3416 * go-exp.y (paren_depth): New global.
3417 (go_parse): Initialize it.
3418 * f-exp.y (paren_depth): New global.
3419 (f_parse): Initialize it.
3420 * d-exp.y (paren_depth): New global.
3421 (d_parse): Initialize it.
3422 * c-exp.y (paren_depth): New global.
3423 (c_parse): Initialize it.
3424 * ada-lex.l (paren_depth): New global.
3425 (lexer_init): Initialize it.
3427 2019-04-04 Tom Tromey <tom@tromey.com>
3429 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3430 (rust_parser::convert_ast_to_type)
3431 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3432 * parser-defs.h (struct parser_state) <parser_state>: Add
3433 parameters. Initialize new members.
3434 <expression_context_block, expression_context_pc>: New members.
3435 * parse.c (expression_context_block, expression_context_pc):
3437 (parse_exp_in_context): Update.
3438 * p-exp.y: Update all rules.
3440 * m2-exp.y: Update all rules.
3442 * go-exp.y (yylex): Update.
3443 * f-exp.y (yylex): Update.
3444 * d-exp.y: Update all rules.
3446 * c-exp.y: Update all rules.
3447 (lex_one_token, classify_name, yylex, c_parse): Update.
3448 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3450 2019-04-04 Tom Tromey <tom@tromey.com>
3452 * gdbarch.h, gdbarch.c: Rebuild.
3453 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3455 (struct stap_parse_info): Replace "parser_state" with
3457 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3458 (parser_state): New class.
3459 * parse.c (expr_builder): Rename.
3460 (expr_builder::release): Rename.
3461 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3462 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3463 (write_exp_elt_longcst, write_exp_elt_floatcst)
3464 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3465 (write_exp_string_vector, write_exp_bitstring)
3466 (write_exp_msymbol, mark_struct_expression)
3467 (write_dollar_variable)
3468 (insert_type_address_space, increase_expout_size): Replace
3469 "parser_state" with "expr_builder".
3470 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3471 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3472 "parser_state" with "expr_builder".
3474 2019-04-04 Tom Tromey <tom@tromey.com>
3476 * rust-exp.y: Replace "parse_language" with method call.
3478 (yylex): Replace "parse_language" with method call.
3480 (yylex): Replace "parse_language" with method call.
3481 * go-exp.y (classify_name): Replace "parse_language" with method
3483 * f-exp.y (yylex): Replace "parse_language" with method call.
3484 * d-exp.y (lex_one_token): Replace "parse_language" with method
3487 (lex_one_token, classify_name, yylex): Replace "parse_language"
3489 * ada-exp.y (find_primitive_type, type_char)
3490 (type_system_address): Replace "parse_language" with method call.
3492 2019-04-04 Tom Tromey <tom@tromey.com>
3494 * rust-exp.y: Replace "parse_gdbarch" with method call.
3495 * parse.c (write_dollar_variable, insert_type_address_space):
3496 Replace "parse_gdbarch" with method call.
3497 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3499 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3501 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3502 "parse_gdbarch" with method call.
3503 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3505 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3506 "parse_gdbarch" with method call.
3507 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3508 "parse_gdbarch" with method call.
3509 * c-exp.y (parse_type, parse_number, classify_name): Replace
3510 "parse_gdbarch" with method call.
3511 * ada-lex.l: Replace "parse_gdbarch" with method call.
3512 * ada-exp.y (parse_type, find_primitive_type, type_char)
3513 (type_system_address): Replace "parse_gdbarch" with method call.
3515 2019-04-04 Tom Tromey <tom@tromey.com>
3517 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3518 * stap-probe.c (stap_parse_argument): Update.
3519 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3520 initial_size parameter.
3521 * rust-exp.y (rust_lex_tests): Update.
3522 * parse.c (parser_state): Update.
3523 (parse_exp_in_context): Update.
3524 * parser-defs.h (struct parser_state) <parser_state>: Remove
3525 "initial_size" parameter.
3527 2019-04-04 Tom Tromey <tom@tromey.com>
3529 * parser-defs.h (increase_expout_size): Don't declare.
3530 * parse.c (increase_expout_size): Now static.
3532 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3534 * gnu-nat.c (gnu_nat_target::wait): Fix
3535 target_waitstatus_to_string call.
3537 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3539 * eval.c (evaluate_subexp_standard): Handle internal functions
3540 during Fortran function call handling.
3542 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3544 * NEWS: Mention new internal functions.
3545 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3546 (read_base_type): Use dwarf2_init_complex_target_type.
3547 * value.c (creal_internal_fn): New function.
3548 (cimag_internal_fn): New function.
3549 (_initialize_values): Register new internal functions.
3551 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3553 * infrun.c (stop_all_threads): If debug_infrun, always
3554 trace the wait status after wait_one, using
3555 target_waitstatus_to_string and target_pid_to_str.
3556 (handle_inferior_event): Replace various trace of
3557 wait status kind by a single trace.
3558 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3559 wait status kind image by target_waitstatus_to_string.
3560 * target/waitstatus.c (target_waitstatus_to_string): Fix
3563 2019-04-01 Tom Tromey <tromey@adacore.com>
3566 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3568 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3569 Pedro Alves <palves@redhat.com>
3571 * top.c (quit_force): Call 'finalize_values'.
3572 * value.c (finalize_values): New function.
3573 * value.h (finalize_values): Declare.
3575 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3577 * NEWS: Announce $_gdb_major and $_gdb_minor.
3579 * top.c (init_gdb_version_vars): New function.
3580 (gdb_init): Call init_gdb_version_vars.
3582 2019-03-29 Tom Tromey <tromey@adacore.com>
3584 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3585 help text. Remove dead code.
3587 2019-03-29 Keith Seitz <keiths@redhat.com>
3589 From Siddhesh Poyarekar:
3590 * f-lang.h (f77_get_upperbound): Return LONGEST.
3591 (f77_get_lowerbound): Likewise.
3592 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3593 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3595 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3596 plongest to format print it.
3597 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3598 (f77_get_upperbound): Likewise.
3599 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3600 LOWER_BOUND to LONGEST.
3601 (f77_create_arrayprint_offset_tbl): Likewise.
3603 2019-03-29 Keith Seitz <keiths@redhat.com>
3605 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3606 %s/pulongest for TYPE_LENGTH instead of %d in format
3608 * ada-typerint.c (ada_print_type): Likewise.
3609 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3610 * compile/compile-c-support.c (generate_register_struct): Likewise.
3611 * gdbtypes.c (recursive_dump_type): Likewise.
3612 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3613 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3614 instead of %d in format strings.
3615 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3616 to std::min to ULONGEST.
3617 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3618 instead of %d in format strings.
3619 * tracepoint.c (info_scope_command): Likewise.
3620 * typeprint.c (print_offset_data::update)
3621 (print_offset_data::finish): Likewise.
3622 * xtensa-tdep.c (xtensa_store_return_value)
3623 (xtensa_push_dummy_call): Likewise.
3625 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3627 * windows-nat.c (display_selector): Fixed format specifications
3630 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3632 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3634 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3636 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3637 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3638 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3639 (nios2_linux_init_abi): Install it.
3641 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3643 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3645 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3647 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3649 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3650 Tom Tromey <tromey@adacore.com>
3652 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3654 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3656 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3657 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3658 method to compute the bounds of range types. Also print "[evaluated]"
3659 if the bounds' values come from a dynamic evaluation.
3661 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3663 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3664 whitespace when pretty printing is on.
3666 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3668 * ppc-linux-nat.c: Add include.
3670 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3672 * NEWS: Mention AArch64 Pointer Authentication.
3674 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3676 * arm-linux-nat.c: Add include.
3678 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3680 * source-cache.c (source_cache::get_source_lines): Re-read
3681 fullname after calling open_source_file.
3683 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3685 * NEWS: Mention TLS support for FreeBSD.
3687 2019-03-25 Tom Tromey <tromey@adacore.com>
3689 * minsyms.c (BUNCH_SIZE): Update comment.
3690 (~minimal_symbol_reader): Remove old comment.
3691 (compact_minimal_symbols): Update comment.
3692 (minimal_symbol_reader::install): Remove old comment. Update
3695 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3697 * s390-linux-nat.c: Add include.
3699 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3701 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3702 Call linux_get_hwcap.
3703 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3705 (aarch64_linux_get_hwcap): Remove function.
3706 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3708 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3710 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3711 * linux-tdep.c (linux_get_hwcap): Add function.
3712 (linux_get_hwcap2): Likewise.
3713 * linux-tdep.h (linux_get_hwcap): Add declaration.
3714 (linux_get_hwcap2): Likewise.
3715 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3716 (ppc_linux_get_hwcap2): Likewise.
3717 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3719 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3720 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3721 (ppc_linux_nat_target::read_description): Likewise.
3722 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3723 * s390-linux-nat.c: Likewise.
3724 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3726 2019-03-24 Tom Tromey <tom@tromey.com>
3728 * ada-lang.c (standard_lookup): Simplify initialization.
3729 (ada_lookup_symbol_nonlocal): Simplify return.
3730 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3731 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3732 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3733 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3735 * solib.c (solib_global_lookup): Simplify.
3736 * symtab.c (null_block_symbol): Remove.
3737 (symbol_cache_lookup): Simplify returns.
3738 (lookup_language_this): Simplify returns.
3739 (lookup_symbol_aux): Simplify return.
3740 (lookup_local_symbol): Simplify returns.
3741 (lookup_global_symbol_from_objfile): Simplify return.
3742 (lookup_symbol_in_objfile_symtabs)
3743 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3744 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3745 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3746 * cp-namespace.c (cp_lookup_bare_symbol)
3747 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3748 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3749 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3750 (cp_lookup_symbol_via_imports): Simplify initialization.
3751 (find_symbol_in_baseclass): Likewise.
3752 * symtab.h (null_block_symbol): Remove.
3753 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3754 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3755 (d_lookup_symbol_module): Likewise.
3756 (find_symbol_in_baseclass): Simplify initialization.
3758 2019-03-24 Tom Tromey <tom@tromey.com>
3760 * expression.h: Don't include symtab.h.
3761 (struct block): Forward declare.
3763 2019-03-24 Tom Tromey <tom@tromey.com>
3765 * c-exp.y (typebase): Remove casts.
3766 * gdbtypes.c (lookup_unsigned_typename, )
3767 (lookup_signed_typename): Remove cast.
3768 * eval.c (parse_to_comma_and_eval): Remove cast.
3769 * parse.c (write_dollar_variable): Remove cast.
3770 * block.h (struct block) <superblock>: Now const.
3771 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3772 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3773 (map_block): Make "block" const.
3774 * symfile.h (struct quick_symbol_functions)
3775 <map_matching_symbols>: Constify block argument to "callback".
3776 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3778 (find_pc_sect_compunit_symtab): Make "b" const.
3779 (find_symbol_at_address): Likewise.
3780 (search_symbols): Likewise.
3781 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3782 (dw2_debug_names_lookup_symbol): Likewise.
3783 (dw2_map_matching_symbols): Update.
3784 * p-valprint.c (pascal_val_print): Remove "block".
3785 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3786 (aux_add_nonlocal_symbols): Make "block" const.
3787 (resolve_subexp): Remove cast.
3788 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3790 (iterate_over_file_blocks): Likewise.
3791 * f-exp.y (%union) <bval>: Remove.
3792 * coffread.c (patch_opaque_types): Make "b" const.
3793 * spu-tdep.c (spu_catch_start): Make "block" const.
3794 * c-valprint.c (print_unpacked_pointer): Remove "block".
3795 * symmisc.c (dump_symtab_1): Make "b" const.
3796 (block_depth): Make "block" const.
3797 * d-exp.y (%union) <bval>: Remove.
3798 * cp-support.h (cp_lookup_rtti_type): Update.
3799 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3800 * psymtab.c (psym_lookup_symbol): Make "block" const.
3801 (maintenance_check_psymtabs): Make "b" const.
3802 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3803 (enumerate_locals, enumerate_args): Update.
3804 * python/py-symtab.c (stpy_global_block): Make "block" const.
3805 (stpy_static_block): Likewise.
3806 * inline-frame.c (block_starting_point_at): Make "new_block"
3808 * block.c (find_block_in_blockvector): Make return type const.
3809 (blockvector_for_pc_sect): Make "b" const.
3810 (find_block_in_blockvector): Make "b" const.
3812 2019-03-23 Tom Tromey <tom@tromey.com>
3814 * varobj.c (varobj_create): Update.
3815 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3816 * printcmd.c (display_command, do_one_display): Don't reset
3818 * parser-defs.h (enum innermost_block_tracker_type): Move to
3820 (innermost_block): Update comment.
3821 * parse.c (parse_exp_1): Add tracker_types parameter.
3822 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3823 tracker_types parameter. Reset innermost_block.
3824 (parse_exp_in_context): Remove.
3825 (parse_expression_for_completion): Update.
3826 * objfiles.c (~objfile): Don't reset expression_context_block or
3828 * expression.h (enum innermost_block_tracker_type): Move from
3830 (parse_exp_1): Add tracker_types parameter.
3831 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3832 reset innermost_block.
3834 2019-03-23 Tom Tromey <tom@tromey.com>
3836 * objfiles.h: Include bcache.h.
3838 2019-03-23 Tom Tromey <tom@tromey.com>
3840 * linespec.c (get_current_search_block): Use
3841 scoped_restore_current_language.
3842 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3844 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3845 Jiong Wang <jiong.wang@arm.com>
3847 * aarch64-linux-tdep.c
3848 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3850 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3852 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3853 Jiong Wang <jiong.wang@arm.com>
3855 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3857 (aarch64_analyze_prologue_test): Add PACIASP test.
3858 (aarch64_prologue_prev_register): Unmask PC value.
3860 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3861 Jiong Wang <jiong.wang@arm.com>
3863 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3864 (aarch64_dwarf2_prev_register): Unmask PC value.
3865 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3866 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3867 DW_CFA_AARCH64_negate_ra_state.
3868 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3870 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3871 Jiong Wang <jiong.wang@arm.com>
3873 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3875 (aarch64_pseudo_register_name): Likewise.
3876 (aarch64_pseudo_register_type): Likewise.
3877 (aarch64_pseudo_register_reggroup_p): Likewise.
3878 (aarch64_gdbarch_init): Add pauth registers.
3879 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3880 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3881 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3882 (struct gdbarch_tdep): Add regnum for ra_state.
3884 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3885 Jiong Wang <jiong.wang@arm.com>
3887 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3889 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3890 Jiong Wang <jiong.wang@arm.com>
3892 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3894 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3895 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3896 (aarch64_gdbarch_init): Add puth registers.
3897 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3898 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3899 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3901 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3902 Jiong Wang <jiong.wang@arm.com>
3904 * aarch64-linux-nat.c
3905 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3906 * aarch64-linux-tdep.c
3907 (aarch64_linux_core_read_description): Likewise.
3908 (aarch64_linux_get_hwcap): New function.
3909 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3910 (aarch64_linux_get_hwcap): New declaration.
3912 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3913 Jiong Wang <jiong.wang@arm.com>
3915 * aarch64-linux-nat.c
3916 (aarch64_linux_nat_target::read_description): Add pauth param.
3917 * aarch64-linux-tdep.c
3918 (aarch64_linux_core_read_description): Likewise.
3919 * aarch64-tdep.c (struct target_desc): Add in pauth.
3920 (aarch64_read_description): Add pauth param.
3921 (aarch64_gdbarch_init): Likewise.
3922 * aarch64-tdep.h (aarch64_read_description): Likewise.
3923 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3924 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3925 * features/Makefile: Add new files.
3926 * features/aarch64-pauth.c: New file.
3927 * features/aarch64-pauth.xml: New file.
3929 2019-03-20 Tom Tromey <tromey@adacore.com>
3931 * infrun.c (handle_inferior_event): Rename from
3932 handle_inferior_event_1. Create a scoped_value_mark.
3933 (handle_inferior_event): Remove.
3935 2019-03-19 Tom Tromey <tromey@adacore.com>
3937 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3938 * infrun.h (print_stop_event): Add "displays" parameter.
3939 * infrun.c (print_stop_event): Add "displays" parameter.
3941 2019-03-19 Pedro Alves <palves@redhat.com>
3943 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3944 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3945 to -1. Fix TABs vs spaces.
3946 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3947 * tui/tui-out.h (tui_ui_out) Add intro comments.
3948 <m_line, m_start_of_line>: In-class initialize, and add describing
3951 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3953 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3955 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3957 2019-03-18 Pedro Alves <palves@redhat.com>
3958 Eli Zaretskii <eliz@gnu.org>
3960 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3961 m_line and m_start_of_line.
3963 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3965 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3966 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3967 it returns a newline. This fixes a regression in TU mode, whereby
3968 the next line is output on the same screen line as the user input.
3970 2019-03-18 Tom Tromey <tromey@adacore.com>
3972 * minsyms.c (minimal_symbol_reader::install): Remove call to
3975 2019-03-18 Pedro Alves <palves@redhat.com>
3977 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3979 (apply_style): New, factored out from ...
3980 (apply_ansi_escape): ... this. Handle reverse video mode.
3981 (tui_set_reverse_mode): New function.
3982 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3983 * tui/tui-winsource.c (tui_show_source_line): Use
3984 tui_set_reverse_mode instead of setting A_STANDOUT.
3985 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3988 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3990 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3993 2019-03-18 Tom Tromey <tromey@adacore.com>
3995 * ada-lang.c (empty_array): Add "high" parameter.
3996 (ada_evaluate_subexp): Update.
3998 2019-03-17 Sergei Trofimovich <siarheit@google.com>
4000 * unittests/string_view-selftests.c: Define
4001 _initialize_string_view_selftests unconditionally.
4003 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4006 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
4008 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4011 * windows-nat.c (display_selector): Fix format specifiers.
4013 2019-03-17 Eli Zaretskii <eliz@gnu.org>
4015 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
4016 tui_refill_source_window instead of tui_refresh_win, to update the
4017 current execution line. This fixes redisplay of the current line
4018 when stepping through the code with "next" or "step".
4020 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4022 * source-cache.c (source_cache::get_source_lines): Call
4023 find_source_lines to initialize s->nlines. This fixes vertical
4024 scrolling of TUI source window when the DOWN arrow is pressed.
4026 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4028 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
4029 linux-thread-db.c (_initialize_thread_db): Likewise.
4031 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4033 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
4034 wclrtoeol in tui_show_source_line". This reverts changes made in
4035 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
4037 2019-03-15 Tom Tromey <tom@tromey.com>
4039 * symtab.h (struct minimal_symbol): Derive from
4040 general_symbol_info.
4041 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
4042 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4043 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4044 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4045 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
4046 (MSYMBOL_SEARCH_NAME): Update.
4047 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
4048 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
4049 * minsyms.c (minimal_symbol_reader::record_full): Update.
4051 2019-03-15 Tom Tromey <tom@tromey.com>
4053 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
4055 2019-03-15 Tom Tromey <tom@tromey.com>
4057 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
4059 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
4061 * minsyms.c (lookup_minimal_symbol_by_pc_section)
4062 (build_minimal_symbol_hash_tables)
4063 (minimal_symbol_reader::install): Update.
4065 2019-03-15 Tom Tromey <tom@tromey.com>
4067 * symtab.c (create_demangled_names_hash): Update.
4068 (symbol_set_names): Update.
4069 * objfiles.h (struct objfile_per_bfd_storage)
4070 <demangled_names_hash>: Now an htab_up.
4071 * objfiles.c (objfile_per_bfd_storage): Simplify.
4073 2019-03-15 Tom Tromey <tom@tromey.com>
4075 * objfiles.h (struct objfile_per_bfd_storage): Declare
4077 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
4079 (get_objfile_bfd_data): Use new. Don't initialize
4081 (free_objfile_per_bfd_storage): Remove.
4082 (objfile_bfd_data_free, objfile::~objfile): Use delete.
4084 2019-03-15 Tom Tromey <tom@tromey.com>
4086 * symfile.c (reread_symbols): Update.
4087 * objfiles.c (objfile::objfile): Update.
4088 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
4089 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
4091 (minimal_symbol_reader::install): Update.
4092 (terminate_minimal_symbol_table): Remove.
4093 * jit.c (jit_object_close_impl): Update.
4095 2019-03-15 Tom Tromey <tom@tromey.com>
4097 * minsyms.c (minimal_symbol_reader::record_full): Remove some
4100 2019-03-15 Tom Tromey <tom@tromey.com>
4102 * objfiles.h (struct objfile_per_bfd_storage)
4103 <demangled_hash_languages>: Now a bitset.
4104 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
4105 (lookup_minimal_symbol): Update.
4107 2019-03-15 Tom Tromey <tom@tromey.com>
4109 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
4110 Don't return the symbol.
4111 * coffread.c (record_minimal_symbol): Use record_full.
4113 2019-03-14 Eli Zaretskii <eliz@gnu.org>
4115 The MS-Windows port of ncurses fails to switch to a color pair if
4116 one or both of the colors are the implicit default colors. This
4117 change records the default colors when TUI is initialized, and
4118 then specifies them explicitly when a color pair uses the default
4119 colors. This allows color styling in TUI mode on MS-Windows.
4121 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
4123 (tui_initialize_io) [__MINGW32__]: Record the default terminal
4124 colors in ncurses_norm_attr.
4125 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
4126 "none", replace it with the default color recorded in
4129 2019-03-14 Tom Tromey <tromey@adacore.com>
4131 * source-cache.h (class source_cache) <get_source_lines>: Return
4133 * source-cache.c (source_cache::extract_lines): Handle case where
4134 first_pos==npos. Return std::string.
4135 (source_cache::get_source_lines): Update.
4137 2019-03-14 Tom Tromey <tromey@adacore.com>
4139 * NEWS: Add item for "style sources" commands.
4140 * source-cache.c (source_cache::get_source_lines): Check
4142 * cli/cli-style.c (source_styling): New global.
4143 (_initialize_cli_style): Add "style sources" commands.
4144 (show_style_sources): New function.
4145 * cli/cli-style.h (source_styling): Declare.
4147 2019-03-14 Pedro Alves <palves@redhat.com>
4148 Tom Tromey <tromey@adacore.com>
4150 * tui/tui-winsource.h (tui_refill_source_window): Declare.
4151 * tui/tui-winsource.c (tui_refill_source_window): New function,
4153 (tui_horizontal_source_scroll): ... here. Move some logic.
4154 * cli/cli-style.c (set_style_enabled): Notify new observable.
4155 * tui/tui-hooks.c (tui_redisplay_source): New function.
4156 (tui_attach_detach_observers): Attach or detach
4157 tui_redisplay_source.
4158 * observable.h (source_styling_changed): New observable.
4159 * observable.c: Define source_styling_changed observable.
4161 2019-03-13 Tom Tromey <tromey@adacore.com>
4163 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
4164 (i386_gnu_nat_target::store_registers): Update.
4165 * target-debug.h (target_debug_print_std_string): New macro.
4166 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4167 * windows-tdep.c (display_one_tib): Update.
4168 * tui/tui-stack.c (tui_make_status_line): Update.
4169 * top.c (print_inferior_quit_action): Update.
4170 * thread.c (thr_try_catch_cmd): Update.
4171 (add_thread_with_info): Update.
4172 (thread_target_id_str): Update.
4173 (thr_try_catch_cmd): Update.
4174 (thread_command): Update.
4175 (thread_find_command): Update.
4176 * record-btrace.c (record_btrace_target::info_record)
4177 (record_btrace_resume_thread, record_btrace_target::resume)
4178 (record_btrace_cancel_resume, record_btrace_step_thread)
4179 (record_btrace_target::wait, record_btrace_target::wait)
4180 (record_btrace_target::wait, record_btrace_target::stop): Update.
4181 * progspace.c (print_program_space): Update.
4182 * process-stratum-target.c
4183 (process_stratum_target::thread_address_space): Update.
4184 * linux-fork.c (linux_fork_mourn_inferior)
4185 (detach_checkpoint_command, info_checkpoints_command)
4186 (linux_fork_context): Update.
4187 (linux_fork_detach): Update.
4188 (class scoped_switch_fork_info): Update.
4189 (delete_checkpoint_command): Update.
4190 * infrun.c (follow_fork_inferior): Update.
4191 (follow_fork_inferior): Update.
4192 (proceed_after_vfork_done): Update.
4193 (handle_vfork_child_exec_or_exit): Update.
4194 (follow_exec): Update.
4195 (displaced_step_prepare_throw): Update.
4196 (displaced_step_restore): Update.
4197 (start_step_over): Update.
4199 (clear_proceed_status_thread): Update.
4201 (print_target_wait_results): Update.
4202 (do_target_wait): Update.
4203 (context_switch): Update.
4204 (stop_all_threads): Update.
4205 (restart_threads): Update.
4206 (finish_step_over): Update.
4207 (handle_signal_stop): Update.
4208 (switch_back_to_stepped_thread): Update.
4209 (keep_going_pass_signal): Update.
4210 (print_exited_reason): Update.
4211 (normal_stop): Update.
4212 * inferior.c (inferior_pid_to_str): Change return type.
4213 (print_selected_inferior): Update.
4214 (add_inferior): Update.
4215 (detach_inferior): Update.
4216 * dummy-frame.c (fprint_dummy_frames): Update.
4217 * dcache.c (dcache_info_1): Update.
4218 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4219 (btrace_fetch, btrace_clear): Update.
4220 * linux-tdep.c (linux_core_pid_to_str): Change return type.
4221 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
4223 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
4224 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
4225 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
4226 * gdbarch.c, gdbarch.h: Rebuild.
4227 * gdbarch.sh (core_pid_to_str): Change return type.
4228 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
4230 (windows_nat_target::pid_to_str): Change return type.
4231 (windows_delete_thread): Update.
4232 (windows_nat_target::attach): Update.
4233 (windows_nat_target::files_info): Update.
4234 * target-delegates.c: Rebuild.
4235 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
4237 (sol_thread_target::pid_to_str): Change return type.
4238 * remote.c (class remote_target) <pid_to_str>: Change return
4240 (remote_target::pid_to_str): Change return type.
4241 (extended_remote_target::attach, remote_target::remote_stop_ns)
4242 (remote_target::remote_notif_remove_queued_reply)
4243 (remote_target::push_stop_reply, remote_target::disable_btrace):
4245 (extended_remote_target::attach): Update.
4246 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
4248 (gdbsim_target::pid_to_str): Change return type.
4249 * ravenscar-thread.c (struct ravenscar_thread_target)
4250 <pid_to_str>: Change return type.
4251 (ravenscar_thread_target::pid_to_str): Change return type.
4252 * procfs.c (class procfs_target) <pid_to_str>: Change return
4254 (procfs_target::pid_to_str): Change return type.
4255 (procfs_target::attach): Update.
4256 (procfs_target::detach): Update.
4257 (procfs_target::fetch_registers): Update.
4258 (procfs_target::store_registers): Update.
4259 (procfs_target::wait): Update.
4260 (procfs_target::files_info): Update.
4261 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
4262 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
4264 (nto_procfs_target::pid_to_str): Change return type.
4265 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
4266 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
4268 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
4270 (attach_proc_task_lwp_callback, get_detach_signal)
4271 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
4272 (linux_nat_target::resume, wait_lwp, stop_callback)
4273 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
4274 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
4275 (linux_nat_wait_1, resume_stopped_resumed_lwps)
4276 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
4277 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
4279 (inf_ptrace_target::attach): Update.
4280 (inf_ptrace_target::files_info): Update.
4281 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
4283 (go32_nat_target::pid_to_str): Change return type.
4284 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
4285 (gnu_nat_target::wait): Update.
4286 (gnu_nat_target::wait): Update.
4287 (gnu_nat_target::resume): Update.
4288 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
4289 (fbsd_nat_target::wait): Update.
4290 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
4292 (darwin_nat_target::attach): Update.
4293 * corelow.c (class core_target) <pid_to_str>: Change return type.
4294 (core_target::pid_to_str): Change return type.
4295 * target.c (normal_pid_to_str): Change return type.
4296 (default_pid_to_str): Likewise.
4297 (target_pid_to_str): Change return type.
4298 (target_translate_tls_address): Update.
4299 (target_announce_detach): Update.
4300 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
4302 (bsd_uthread_target::pid_to_str): Change return type.
4303 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
4305 (bsd_kvm_target::pid_to_str): Change return type.
4306 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
4308 (aix_thread_target::pid_to_str): Change return type.
4309 * target.h (struct target_ops) <pid_to_str>: Change return type.
4310 (target_pid_to_str, normal_pid_to_str): Likewise.
4311 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4313 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4315 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4317 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4319 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4321 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4324 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4326 * NEWS: Mention that the new default MI version is 3. Mention
4327 changes to the output of commands and events that deal with
4328 multi-location breakpoints.
4329 * breakpoint.c: Include "mi/mi-out.h".
4330 (print_one_breakpoint): Change output syntax if using MI version
4332 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4334 (mi_multi_location_breakpoint_output_fixed): New.
4335 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4336 (mi_cmd_fix_multi_location_breakpoint_output): New.
4337 (mi_multi_location_breakpoint_output_fixed): New.
4338 * mi/mi-cmds.c (mi_cmds): Register command
4339 -fix-multi-location-breakpoint-output.
4340 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4343 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4345 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4346 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4347 instantiate mi_ui_out based on interpreter name.
4348 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4349 * mi/mi-main.c (mi_load_progress): Likewise.
4351 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4353 * NEWS: Combine separate "New targets" sections for 8.3.
4355 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4357 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4358 (ppcfbsd_init_abi): Install gdbarch
4359 "fetch_tls_load_module_address" and "get_thread_local_address"
4362 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4364 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4365 (riscv_fbsd_init_abi): Install gdbarch
4366 "fetch_tls_load_module_address" and "get_thread_local_address"
4369 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4371 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4372 (i386fbsd_init_abi): Install gdbarch
4373 "fetch_tls_load_module_address" and "get_thread_local_address"
4376 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4378 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4379 (amd64fbsd_init_abi): Install gdbarch
4380 "fetch_tls_load_module_address" and "get_thread_local_address"
4383 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4385 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4386 (struct fbsd_pspace_data): New type.
4387 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4388 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4389 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4390 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4391 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4393 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4395 * gdbtypes.c (lookup_struct_elt): New function.
4396 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4397 * gdbtypes.h (struct struct_elt): New type.
4398 (lookup_struct_elt): New prototype.
4400 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4402 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4403 remove disabled code block.
4405 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4407 * gdbarch.sh (get_thread_local_address): New method.
4408 * gdbarch.h, gdbarch.c: Regenerate.
4409 * target.c (target_translate_tls_address): Use
4410 gdbarch_get_thread_local_address if present instead of
4411 target::get_thread_local_address.
4413 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4415 * target.h (target::get_thread_local_address): Update comment.
4417 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4419 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4420 objfile->separate_debug_objfile_backlink if not NULL.
4422 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4424 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4425 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4426 (amd64bsd_store_inferior_registers): Likewise.
4427 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4428 Enable segment base registers.
4429 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4430 PT_GETFSBASE and PT_GETGSBASE.
4431 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4433 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4434 segment base registers.
4435 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4437 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4439 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4440 Update calls to i386_target_description to add 'segments'
4442 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4443 add segment base registers.
4444 * arch/i386.c (i386_create_target_description): Add 'segments'
4445 parameter to enable segment base registers.
4446 * arch/i386.h (i386_create_target_description): Likewise.
4447 * features/i386/32bit-segments.xml: New file.
4448 * features/i386/32bit-segments.c: Generate.
4449 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4450 call to i386_target_description to add 'segments' parameter.
4451 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4452 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4453 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4454 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4455 if feature is present.
4456 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4457 Add 'segments' parameter to call to i386_target_description.
4458 (i386_target_description): Add 'segments' parameter to enable
4459 segment base registers.
4460 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4461 to call to i386_target_description.
4462 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4463 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4464 Define I386_NUM_REGS.
4465 (i386_target_description): Add 'segments' parameter to enable
4466 segment base registers.
4468 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4471 * source-cache.c: #undef open and close, to avoid unresolved
4472 externals during linking.
4474 2019-03-12 Tom Tromey <tromey@adacore.com>
4476 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4477 const. Add initializers.
4478 (_initialize_remote): Don't initialize ptid globals.
4480 2019-03-12 Pedro Alves <palves@redhat.com>
4482 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4484 2019-03-12 Pedro Alves <palves@redhat.com>
4486 * cp-name-parser.y (main): Remove unused 'len' variable.
4488 2019-03-12 Tom Tromey <tromey@adacore.com>
4490 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4491 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4493 2019-03-12 Tom Tromey <tromey@adacore.com>
4495 * linux-nat.c (iterate_over_lwps): Update.
4496 (stop_callback): Remove parameter.
4497 (stop_wait_callback, detach_callback, resume_set_callback)
4498 (select_singlestep_lwp_callback, set_ignore_sigint)
4499 (status_callback, resumed_callback, resume_clear_callback)
4500 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4502 (linux_nat_target::detach, linux_nat_target::resume)
4503 (linux_stop_and_wait_all_lwps, select_event_lwp)
4504 (linux_nat_filter_event, linux_nat_wait_1)
4505 (linux_nat_target::kill, linux_nat_target::stop)
4506 (linux_nat_target::stop): Update.
4507 (linux_nat_resume_callback): Change type.
4508 (resume_stopped_resumed_lwps, count_events_callback)
4509 (select_event_lwp_callback): Likewise.
4510 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4511 * arm-linux-nat.c (struct update_registers_data): Remove.
4512 (update_registers_callback): Change type.
4513 (arm_linux_insert_hw_breakpoint1): Update.
4514 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4516 (x86_linux_dr_set_addr): Update.
4517 (x86_linux_dr_set_control): Update.
4518 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4519 (iterate_over_lwps): Use gdb::function_view.
4520 * nat/aarch64-linux-hw-point.c (struct
4521 aarch64_dr_update_callback_param): Remove.
4522 (debug_reg_change_callback): Change type.
4523 (aarch64_notify_debug_reg_change): Update.
4524 * s390-linux-nat.c (s390_refresh_per_info): Update.
4526 2019-03-11 Tom Tromey <tromey@adacore.com>
4528 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4529 redundant assignment to "this_cu".
4531 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4533 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4535 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4537 * gdbtypes.c (rank_one_type_parm_set): 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_struct): 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_complex): 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_float): New function extracted
4557 (rank_one_type): ... this.
4559 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4561 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4563 (rank_one_type): ... this.
4565 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4567 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4569 (rank_one_type): ... this.
4571 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4573 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4575 (rank_one_type): ... this.
4577 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4579 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4581 (rank_one_type): ... this.
4583 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4585 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4587 (rank_one_type): ... this.
4589 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4591 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4593 (rank_one_type): ... this.
4595 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4597 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4599 (rank_one_type): ... this.
4601 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4603 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4605 (rank_one_type): ... this.
4607 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4609 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4610 inferior-events' shows the example events.
4612 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4614 Support styling on native MS-Windows console
4617 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4618 on MS-Windows if $TERM is not defined.
4620 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4622 * posix-hdep.c (gdb_console_fputs):
4623 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4625 * ui-file.h (gdb_console_fputs): Add prototype.
4627 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4628 back to fputs only if the former returns zero.
4630 2019-03-07 Tom Tromey <tom@tromey.com>
4632 * symmisc.c (print_symbol_bcache_statistics): Update.
4633 (print_objfile_statistics): Update.
4634 * symfile.c (allocate_symtab): Update.
4635 * stabsread.c: Don't include bcache.h.
4636 * psymtab.h (struct psymbol_bcache): Don't declare.
4637 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4638 (psymbol_bcache_init, psymbol_bcache_free)
4639 (psymbol_bcache_get_bcache): Don't declare.
4640 * psymtab.c (struct psymbol_bcache): Remove.
4641 (psymtab_storage::psymtab_storage): Update.
4642 (psymtab_storage::~psymtab_storage): Update.
4643 (psymbol_bcache_init, psymbol_bcache_free)
4644 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4645 (add_psymbol_to_bcache): Update.
4646 (allocate_psymtab): Update.
4647 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4648 macro_cache>: No longer pointers.
4649 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4650 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4651 * macrotab.c (macro_bcache): Update.
4652 * macroexp.c: Don't include bcache.h.
4653 * gdbtypes.c (check_types_worklist): Update.
4654 (types_deeply_equal): Remove TRY/CATCH. Update.
4655 * elfread.c (elf_symtab_read): Update.
4656 * dwarf2read.c: Don't include bcache.h.
4657 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4658 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4659 (print_bcache_statistics, bcache_memory_used): Don't declare.
4660 (struct bcache): Move from bcache.c. Add constructor, destructor,
4661 methods. Rename all data members.
4662 * bcache.c (struct bcache): Move to bcache.h.
4663 (bcache::expand_hash_table): Rename from expand_hash_table.
4665 (bcache::insert): Rename from bcache_full.
4666 (bcache::compare): Rename from bcache_compare.
4667 (bcache_xmalloc): Remove.
4668 (bcache::~bcache): Rename from bcache_xfree.
4669 (bcache::print_statistics): Rename from print_bcache_statistics.
4670 (bcache::memory_used): Rename from bcache_memory_used.
4672 2019-03-07 Pedro Alves <palves@redhat.com>
4674 * infrun.c (normal_stop): Also check for
4675 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4677 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4679 * f-lang.c (value_from_host_double): Moved to...
4680 * value.c (value_from_host_double): ...here.
4681 * value.h (value_from_host_double): Declare.
4682 * guile/scm-math.c (vlscm_convert_typed_number): Use
4683 value_from_host_double.
4684 (vlscm_convert_number): Likewise.
4685 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4686 * python/py-value.c (convert_value_from_python): Likewise.
4688 2019-03-06 Tom Tromey <tom@tromey.com>
4690 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4692 2019-03-06 Tom Tromey <tom@tromey.com>
4694 * utils.h (free_current_contents): Don't declare.
4695 * utils.c (free_current_contents): Remove.
4697 2019-03-06 Tom Tromey <tom@tromey.com>
4699 * top.c (quit_force): Update.
4700 * main.c (captured_command_loop): Update.
4701 * common/new-op.c (operator new): Update.
4702 * common/common-exceptions.c (struct catcher)
4703 <save_cleanup_chain>: Remove member.
4704 (exceptions_state_mc_init): Update.
4705 (exception_try_scope_entry): Return nullptr.
4706 (exception_try_scope_exit, exception_rethrow)
4707 (throw_exception_sjlj, throw_exception_cxx): Update.
4708 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4709 (all_cleanups, do_cleanups, discard_cleanups)
4710 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4711 (restore_cleanups, restore_final_cleanups): Don't declare.
4712 (do_final_cleanups): Remove parameter.
4713 * common/cleanups.c (cleanup_chain, make_cleanup)
4714 (make_cleanup_dtor, all_cleanups, do_cleanups)
4715 (discard_my_cleanups, discard_cleanups)
4716 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4717 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4718 (null_cleanup): Remove.
4719 (do_final_cleanups): Remove parameter.
4721 2019-03-06 Tom Tromey <tom@tromey.com>
4723 * remote.c (remote_target::remote_parse_stop_reply): Use
4726 2019-03-06 Tom Tromey <tom@tromey.com>
4728 * stabsread.c (struct stabs_field_info): Rename from field_info.
4729 <list, fnlist>: Add initializers.
4730 <obstack>: New member.
4731 (read_member_functions, read_struct_fields, read_baseclasses):
4732 Allocate on obstack. Don't use cleanups.
4733 (read_one_struct_field, read_member_functions, read_struct_fields)
4734 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4735 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4736 (read_struct_type): Update.
4738 2019-03-06 Tom Tromey <tom@tromey.com>
4740 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4741 * common/filestuff.h (make_cleanup_close): Don't declare.
4742 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4745 2019-03-06 Tom Tromey <tom@tromey.com>
4747 * solib-aix.c: Use make_scope_exit.
4749 2019-03-06 Tom Tromey <tom@tromey.com>
4751 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4752 Use make_scope_exit.
4754 2019-03-06 Tom Tromey <tom@tromey.com>
4756 * solib-svr4.c (disable_probes_interface): Remove parameter.
4757 (svr4_handle_solib_event): Use make_scope_exit.
4759 2019-03-06 Tom Tromey <tom@tromey.com>
4761 * remote.c (struct stop_reply_deleter): Remove.
4762 (stop_reply_up): Update.
4763 (struct stop_reply): Derive from notif_event. Don't typedef.
4764 <regcache>: Now a std::vector.
4765 (stop_reply_xfree): Remove.
4766 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4767 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4768 (remote_target::discard_pending_stop_replies): Use delete.
4769 (remote_target::remote_parse_stop_reply): Update.
4770 (remote_target::process_stop_reply): Update.
4771 * remote-notif.h (struct notif_event): Add virtual destructor.
4772 Remove "dtr" member.
4773 (struct notif_client) <alloc_event>: Return a unique_ptr.
4774 (notif_event_xfree): Don't declare.
4775 (notif_event_up): New typedef.
4776 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4777 (notif_event_xfree, do_notif_event_xfree): Remove.
4778 (remote_notif_state_xfree): Update.
4780 2019-03-06 Tom Tromey <tom@tromey.com>
4782 * infrun.c (displaced_step_clear_cleanup): Now a
4783 forward_scope_exit type.
4784 (displaced_step_prepare_throw): Update.
4785 (displaced_step_fixup): Update.
4787 2019-03-06 Tom Tromey <tom@tromey.com>
4789 * inferior.h (class inferior): Update comment.
4790 * gdbthread.h (class thread_info): Update comment.
4792 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4793 Tom Tromey <tom@tromey.com>
4795 * stabsread.h (struct stab_section_list): Remove.
4796 (coffstab_build_psymtabs): Update.
4797 * dbxread.c (symbuf_sections): Now a std::vector.
4798 (sect_idx): New global.
4799 (fill_symbuf): Update.
4800 (coffstab_build_psymtabs): Change type of stabsects parameter.
4802 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4804 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4805 (coff_locate_sections): Update.
4806 (coff_symfile_read): Remove cleanups. Update.
4807 (init_stringtab): Add storage parameter.
4808 (free_stringtab, free_stringtab_cleanup): Remove.
4809 (init_lineno): Add storage parameter.
4810 (free_linetab, free_linetab_cleanup): Remove.
4812 2019-03-06 Pedro Alves <palves@redhat.com>
4814 * linux-fork.c (fork_info::clobber_regs): Delete.
4815 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4816 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4818 (scoped_switch_fork_info::scoped_switch_fork_info)
4819 (checkpoint_command, linux_fork_context): Adjust
4820 fork_save_infrun_state calls.
4822 2019-03-06 Pedro Alves <palves@redhat.com>
4824 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4825 (inf_has_multiple_threads): Return 'bool' and rewrite using
4826 inferior_info::threads().
4828 2019-03-06 Pedro Alves <palves@redhat.com>
4830 * linux-fork.c: Include <list>.
4831 (fork_list): Now a std::list instance.
4832 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4833 (forks_exist_p, find_last_fork): Adjust.
4837 (free_fork): Delete, folded into fork_info::~fork_info().
4838 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4840 (init_fork_list): Delete.
4841 (linux_fork_killall, linux_fork_mourn_inferior)
4842 (linux_fork_detach, info_checkpoints_command): Adjust.
4843 (_initialize_linux_fork): No longer call init_fork_list.
4845 2019-03-06 Pedro Alves <palves@redhat.com>
4847 * linux-fork.c (new_fork): New, split out of ...
4848 (add_fork): ... this. Return void. Move "first fork" special
4849 case from here, to ...
4850 (checkpoint_command): ... here.
4851 * linux-linux.h (add_fork): Return void.
4853 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4855 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4857 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4858 Chris January <chris.january@arm.com>
4859 David Lecomber <david.lecomber@arm.com>
4861 * f-exp.y: New token, UNOP_INTRINSIC.
4862 (exp): New pattern using UNOP_INTRINSIC token.
4863 (f77_keywords): Add 'abs' keyword.
4864 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4865 (value_from_host_double): New function.
4866 (evaluate_subexp_f): Support UNOP_ABS.
4868 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4870 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4873 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4875 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4876 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4877 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4879 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4881 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4883 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4884 Chris January <chris.january@arm.com>
4886 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4887 * f-exp.y: Define 'KIND' token.
4888 (exp): New pattern for KIND expressions.
4889 (ptype): Handle types with a kind extension.
4890 (direct_abs_decl): Extend to spot kind extensions.
4891 (f77_keywords): Add 'kind' to the list.
4892 (push_kind_type): New function.
4893 (convert_to_kind_type): New function.
4894 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4895 * parse.c (operator_length_standard): Likewise.
4896 * parser-defs.h (enum type_pieces): Add tp_kind.
4897 * std-operator.def: Add UNOP_KIND.
4899 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4901 * f-exp.y (f_parse): Set yydebug.
4903 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4905 * f-lang.c (evaluate_subexp_f): New function.
4906 (exp_descriptor_f): New global.
4907 (f_language_defn): Use exp_descriptor_f instead of
4908 exp_descriptor_standard.
4910 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4912 * f-exp.y (struct token): Add comments.
4913 (dot_ops): Remove uppercase versions and the end marker.
4914 (f77_keywords): Likewise.
4915 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4916 entries in the dot_ops array are case insensitive, and use
4917 strncasecmp to compare strings. Also some whitespace cleanup in
4918 this area. Similar for the f77_keywords array, except entries in
4919 this list might be case sensitive.
4921 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4923 * f-exp.y (struct f77_boolean_val): Add comments.
4924 (boolean_values): Remove uppercase versions, and end marker.
4925 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4926 and use strncasecmp to achieve case insensitivity. Additionally,
4927 perform whitespace cleanup around this code.
4929 2019-03-06 Tom Tromey <tromey@adacore.com>
4931 * remote-sim.c (gdbsim_target_open): Use result of
4934 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4935 Dirk Schubert <dirk.schubert@arm.com>
4936 Chris January <chris.january@arm.com>
4938 * eval.c (evaluate_subexp_standard): Call Fortran argument
4940 * f-lang.c (struct value): A value which can be passed into a
4941 Fortran function call.
4942 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4944 (struct type): Value ready for a Fortran function call.
4945 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4947 * f-lang.h (fortran_argument_convert): Declaration.
4948 (fortran_preserve_arg_pointer): Declaration.
4949 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4951 2019-03-05 Tom Tromey <tromey@adacore.com>
4953 * python/py-prettyprint.c (print_string_repr): Remove #if.
4954 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4956 2019-03-05 Tom Tromey <tromey@adacore.com>
4958 * target.c (the_dummy_target): Move later. Change type to
4960 (initialize_targets): Don't initialize the_dummy_target.
4962 2019-03-05 Tom Tromey <tromey@adacore.com>
4964 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4965 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4967 2019-03-05 Tom Tromey <tromey@adacore.com>
4969 * windows-nat.c (windows_nat_target::attach)
4970 (windows_nat_target::detach): Don't call gdb_flush.
4971 * valprint.c (generic_val_print, val_print, val_print_string):
4972 Don't call gdb_flush.
4973 * utils.c (defaulted_query): Don't call gdb_flush.
4974 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4975 * target.c (target_announce_detach): Don't call gdb_flush.
4976 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4977 * remote.c (extended_remote_target::attach): Don't call
4979 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4980 * printcmd.c (do_examine): Don't call gdb_flush.
4981 (info_display_command): Don't call gdb_flush.
4982 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4983 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4984 * memattr.c (info_mem_command): Don't call gdb_flush.
4985 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4986 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4987 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4988 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4989 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4990 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4991 (gnu_nat_target::detach): Don't call gdb_flush.
4992 * f-valprint.c (f_val_print): Don't call gdb_flush.
4993 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4994 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4995 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4997 * c-valprint.c (c_val_print): Don't call gdb_flush.
4998 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
5000 2019-03-05 Tom Tromey <tromey@adacore.com>
5002 * varobj.c (update_dynamic_varobj_children): Update.
5003 (install_default_visualizer): Use reset, not release.
5004 * value.c (set_internalvar): Update.
5005 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
5006 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
5007 ATTRIBUTE_UNUSED_RESULT.
5009 2019-03-05 Tom Tromey <tromey@adacore.com>
5011 * remote.c (class scoped_remote_fd) <release>: Add
5012 ATTRIBUTE_UNUSED_RESULT.
5014 2019-03-05 Tom Tromey <tromey@adacore.com>
5016 * macroexp.c (struct macro_buffer) <release>: Add
5017 ATTRIBUTE_UNUSED_RESULT.
5019 2019-03-05 Tom Tromey <tromey@adacore.com>
5021 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
5022 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
5023 ATTRIBUTE_UNUSED_RESULT.
5025 2019-03-05 Tom Tromey <tromey@adacore.com>
5027 * common/scoped_fd.h (class scoped_fd) <release>: Add
5028 ATTRIBUTE_UNUSED_RESULT.
5030 2019-03-05 Tom Tromey <tromey@adacore.com>
5032 * parser-defs.h (struct parser_state) <release>: Add
5033 ATTRIBUTE_UNUSED_RESULT.
5035 2019-03-05 Tom Tromey <tromey@adacore.com>
5037 * utils.h (class gdb_argv) <release>: Add
5038 ATTRIBUTE_UNUSED_RESULT.
5039 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
5041 2019-03-02 Eli Zaretskii <eliz@gnu.org>
5043 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
5044 for-loop range, to avoid compiler warnings.
5046 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
5047 avoid compiler warnings about unused variables.
5049 * NEWS: Mention end of support for native debugging on MS-Windows
5053 * common/netstuff.c:
5054 * gdbserver/gdbreplay.c
5055 * gdbserver/remote-utils.c:
5057 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
5058 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
5059 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
5060 'getaddrinfo' and 'freeaddrinfo' were not available before
5061 Windows XP, and mingw.org's MinGW headers by default define
5062 _WIN32_WINNT to 0x500.
5064 2019-03-01 Gary Benson <gbenson@redhat.com>
5066 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
5068 2019-02-28 Brian Vandenberg <phantall@gmail.com>
5069 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5072 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
5073 set_sigint_trap, clear_sigint_trap.
5075 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5077 * target.c (target_detach): Clear the regcache and the
5080 2019-02-27 Pedro Alves <palves@redhat.com>
5082 * utils.c (set_screen_size): When we cap the height/width sizes,
5083 tweak the corresponding command variable to show "unlimited":
5085 2019-02-27 Saagar Jha <saagar@saagarjha.com>
5086 Pedro Alves <palves@redhat.com>
5088 * utils.c (set_screen_size): Reduce "infinite" rows and columns
5089 before calling rl_set_screen_size.
5091 2019-02-27 Tom Tromey <tromey@adacore.com>
5093 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
5095 * python/py-value.c: Remove Python 2.4 workaround.
5096 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
5098 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
5099 Python 2.4 workaround.
5100 * python/python-internal.h: Remove Python 2.4 comment.
5101 (Py_ssize_t): Don't define.
5102 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
5103 (gdb_Py_DECREF): Remove Python 2.4 workaround.
5104 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
5105 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
5106 * python/python.c (do_start_initialization): Remove Python 2.4
5108 * python/py-prettyprint.c (class dummy_python_frame): Remove.
5109 (print_children): Remove Python 2.4 workaround.
5110 * python/py-inferior.c (buffer_procs): Remove Python 2.4
5112 (CHARBUFFERPROC_NAME): Remove.
5113 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
5114 Python 2.4 workaround.
5116 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5118 * NEWS: Note minimum Python version.
5120 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5122 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
5123 code from these functions. Remove corresponding ifdefs. Use
5124 Py_buffer_up instead of explicit calls to PyBuffer_Release.
5125 Remove gotos and target of gotos.
5126 (infpy_search_memory): Likewise.
5128 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5130 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
5131 (hppa_gdbarch_init): Don't register deleted functions with
5134 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5136 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
5137 (h8300_unwind_sp): Delete.
5138 (h8300_dummy_id): Delete.
5139 (h8300_gdbarch_init): Don't register deleted functions with
5142 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5144 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
5145 (ft32_unwind_pc): Delete.
5146 (ft32_unwind_sp): Delete.
5147 (ft32_gdbarch_init): Don't register deleted functions with
5150 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5152 * gdb/frv-tdep.c (frv_dummy_id): Delete.
5153 (frv_unwind_pc): Delete.
5154 (frv_unwind_sp): Delete.
5155 (frv_gdbarch_init): Don't register deleted functions with
5158 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5160 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
5161 (riscv_unwind_pc): Delete.
5162 (riscv_unwind_sp): Delete.
5163 (riscv_gdbarch_init): Don't register deleted functions with
5166 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5168 * gdb/csky-tdep.c (csky_dummy_id): Delete.
5169 (csky_unwind_pc): Delete.
5170 (csky_unwind_sp): Delete.
5171 (csky_gdbarch_init): Don't register deleted functions with
5174 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5176 * gdb/cris-tdep.c (cris_dummy_id): Delete.
5177 (cris_unwind_pc): Delete.
5178 (cris_unwind_sp): Delete.
5179 (cris_gdbarch_init): Don't register deleted functions with
5182 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5184 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
5185 (bfin_unwind_pc): Delete.
5186 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
5188 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5190 * gdb/arm-tdep.c (arm_dummy_id): Delete.
5191 (arm_unwind_pc): Delete.
5192 (arm_unwind_sp): Delete.
5193 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
5195 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5197 * gdb/arc-tdep.c (arc_dummy_id): Delete.
5198 (arc_unwind_pc): Delete.
5199 (arc_unwind_sp): Delete.
5200 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
5202 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5204 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
5205 (alpha_unwind_pc): Delete.
5206 (alpha_gdbarch_init): Don't register deleted functions with
5209 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5211 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
5212 (aarch64_unwind_pc): Delete.
5213 (aarch64_unwind_sp): Delete.
5214 (aarch64_gdbarch_init): Don't register deleted functions with
5217 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5219 * gdbtypes.c (type_align): Don't consider static members when
5220 computing structure alignment.
5222 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5224 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
5225 return 0 for other types.
5226 * arch-utils.c (default_type_align): Always return 0.
5227 * gdbarch.h: Regenerate.
5228 * gdbarch.sh (type_align): Extend comment.
5229 * gdbtypes.c (type_align): Add additional comments, always call
5230 gdbarch_type_align before applying the default rules.
5231 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
5232 generic code will then apply a suitable default.
5233 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
5234 types, return 0 for other types.
5236 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5238 * NEWS: Create a new section for the next release branch.
5239 Rename the section of the current branch, now that it has
5242 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5244 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
5245 * version.in: Bump version to 8.3.50.DATE-git.
5247 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
5249 * aix-thread.c (ptid_cmp): Remove unused variable.
5250 (get_signaled_thread): Likewise.
5251 (store_regs_user_thread): Likewise.
5252 (store_regs_kernel_thread): Likewise.
5253 (fetch_regs_kernel_thread): Remove shadowed variable.
5255 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
5257 * features/riscv/32bit-cpu.xml: Add register numbers.
5258 * features/riscv/32bit-fpu.c: Regenerate.
5259 * features/riscv/32bit-fpu.xml: Add register numbers.
5260 * features/riscv/64bit-cpu.xml: Add register numbers.
5261 * features/riscv/64bit-fpu.c: Regenerate.
5262 * features/riscv/64bit-fpu.xml: Add register numbers.
5264 2019-02-26 Kevin Buettner <kevinb@redhat.com>
5266 * NEWS: Mention two argument form of gdb.Value constructor.
5267 * python/py-value.c (convert_buffer_and_type_to_value): New
5269 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
5270 Add support for handling an optional second argument. Call
5271 convert_buffer_and_type_to_value as appropriate.
5272 * python/python-internal.h (Py_buffer_deleter): New struct.
5273 (Py_buffer_up): New typedef.
5275 2019-02-25 John Baldwin <jhb@FreeBSD.org>
5277 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
5278 instead of releasing ownership.
5280 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
5282 * dwarf2read.c (open_and_init_dwp_file): Call
5283 elf_numsections instead of bfd_count_sections to initialize
5284 dwp_file->num_sections.
5286 2019-02-25 Tom Tromey <tromey@adacore.com>
5288 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
5290 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
5292 * gcore.in: Add '--readnever' option when invoking GDB.
5294 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5296 * MAINTAINERS: Update my email address.
5298 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5300 * build-id.c (build_id_to_debug_bfd_1): New function.
5301 (build_id_to_debug_bfd): Look for separate debug file in
5304 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
5306 * gdbarch.sh: Update the copyright year range that is placed into
5309 2019-02-22 Keith Seitz <keiths@redhat.com>
5312 * linespec.c (create_sals_line_offset): Search for the default
5313 symtab's filename instead of its fullname.
5315 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5317 * NEWS: Update style defaults.
5319 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5321 * main.c (captured_main_1): Disable styling in batch mode.
5323 2019-02-20 Tom Tromey <tom@tromey.com>
5325 * symtab.c (symtab_symbol_info): Fix typos.
5327 2019-02-20 Tom Tromey <tromey@adacore.com>
5329 * findcmd.c (_initialize_mem_search): Use upper case for
5330 metasyntactic variables.
5332 2019-02-20 Alan Hayward <alan.hayward@arm.com>
5334 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5335 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5337 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5339 * top.h (source_file_name): Change to std::string.
5340 * top.c (source_file_name): Likewise.
5341 (command_line_input): Adjust.
5342 * cli/cli-script.c (script_from_file): Adjust.
5344 2019-02-19 Tom Tromey <tromey@adacore.com>
5346 * ravenscar-thread.c
5347 (ravenscar_thread_target::update_thread_list): Don't call
5348 ada_build_task_list.
5349 * ada-lang.h (ada_build_task_list): Don't declare.
5350 * ada-tasks.c (struct ada_tasks_inferior_data)
5351 <task_list_valid_p>: Now bool.
5352 (read_known_tasks, ada_task_list_changed)
5353 (ada_tasks_invalidate_inferior_data): Update.
5354 (read_known_tasks_array): Return bool.
5355 (read_known_tasks_list): Likewise.
5356 (read_known_tasks): Return void.
5357 (ada_build_task_list): Now static.
5359 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5361 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5362 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5364 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5366 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5367 variant for ada_tasks_pspace_data_handle and
5368 ada_tasks_inferior_data_handle.
5369 (ada_tasks_pspace_data_cleanup): New function.
5370 (ada_tasks_inferior_data_cleanup): New function.
5372 2019-02-17 Tom Tromey <tom@tromey.com>
5374 * macrotab.h (macro_source_fullname): Return a std::string.
5375 * macrotab.c (macro_include, check_for_redefinition)
5376 (macro_undef, macro_lookup_definition, foreach_macro)
5377 (foreach_macro_in_scope): Update.
5378 (macro_source_fullname): Return a std::string.
5379 * macrocmd.c (show_pp_source_pos): Update.
5381 2019-02-17 Tom Tromey <tom@tromey.com>
5383 * macrocmd.c (show_pp_source_pos): Style the file names.
5385 2019-02-17 Tom Tromey <tom@tromey.com>
5388 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5390 2019-02-17 Tom Tromey <tom@tromey.com>
5392 * ada-lang.c (user_select_syms): Use filtered printing.
5393 * utils.c (wrap_style): New global.
5394 (desired_style): Remove.
5395 (emit_style_escape): Add stream parameter.
5396 (set_output_style, reset_terminal_style, prompt_for_continue):
5398 (flush_wrap_buffer): Only flush gdb_stdout.
5399 (wrap_here): Set wrap_style.
5400 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5401 treat escape sequences as a character. Change when wrap buffer is
5403 (fputs_styled): Do not set the output style when the default is
5405 * ui-style.h (struct ui_file_style) <is_default>: New method.
5406 * source.c (print_source_lines_base): Emit escape sequences in one
5409 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5411 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5412 integers and enumeration types.
5414 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5416 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5417 instead of lookup_symbol_in_language
5418 (do_exact_match): New function.
5419 (ada_get_symbol_name_matcher): Return do_exact_match when
5420 doing a verbatim match.
5422 2019-02-15 Tom Tromey <tromey@adacore.com>
5424 * ravenscar-thread.c (ravenscar_thread_target::resume)
5425 (ravenscar_thread_target::wait): Special case wildcard requests.
5427 2019-02-15 Tom Tromey <tromey@adacore.com>
5429 * ravenscar-thread.c (base_ptid): Remove.
5430 (struct ravenscar_thread_target) <close>: New method.
5431 <m_base_ptid>: New member.
5432 <update_inferior_ptid, active_task, task_is_currently_active,
5433 runtime_initialized>: Declare methods.
5434 <ravenscar_thread_target>: Add constructor.
5435 (ravenscar_thread_target::task_is_currently_active)
5436 (ravenscar_thread_target::update_inferior_ptid)
5437 (ravenscar_runtime_initialized): Rename. Now methods.
5438 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5439 (ravenscar_thread_target::update_thread_list): Update.
5440 (ravenscar_thread_target::active_task): Now method.
5441 (ravenscar_thread_target::store_registers)
5442 (ravenscar_thread_target::prepare_to_store)
5443 (ravenscar_thread_target::prepare_to_store)
5444 (ravenscar_thread_target::mourn_inferior): Update.
5445 (ravenscar_inferior_created): Use "new" to create target.
5446 (ravenscar_thread_target::get_ada_task_ptid): Update.
5447 (_initialize_ravenscar): Don't initialize base_ptid.
5448 (ravenscar_ops): Remove global.
5450 2019-02-15 Tom Tromey <tromey@adacore.com>
5452 * target.h (push_target): Declare new overload.
5453 * target.c (push_target): New overload, taking an rvalue reference.
5454 * remote.c (remote_target::open_1): Use push_target overload.
5455 * corelow.c (core_target_open): Use push_target overload.
5457 2019-02-15 Tom Tromey <tromey@adacore.com>
5459 * ravenscar-thread.c (is_ravenscar_task)
5460 (ravenscar_task_is_currently_active): Return bool.
5461 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5462 (_initialize_ravenscar): Remove "(void)".
5463 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5466 2019-02-15 Tom Tromey <tromey@adacore.com>
5468 * ravenscar-thread.c (ravenscar_runtime_initializer)
5469 (has_ravenscar_runtime, get_running_thread_id)
5470 (ravenscar_thread_target::resume): Fix indentation.
5472 2019-02-15 Tom Tromey <tromey@adacore.com>
5474 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5475 from ravenscar_arch_ops.
5476 (sparc_ravenscar_ops::fetch_registers)
5477 (sparc_ravenscar_ops::store_registers): Now methods.
5478 (sparc_ravenscar_prepare_to_store): Remove.
5479 (sparc_ravenscar_ops): Redefine.
5480 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5481 methods and destructor. Remove members.
5482 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5483 (ravenscar_thread_target::store_registers)
5484 (ravenscar_thread_target::prepare_to_store): Update.
5485 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5487 (struct ppc_ravenscar_powerpc_ops): Derive from
5489 (ppc_ravenscar_powerpc_ops::fetch_registers)
5490 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5491 (ppc_ravenscar_powerpc_ops): Redefine.
5492 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5493 (ppc_ravenscar_e500_ops::fetch_registers)
5494 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5495 (ppc_ravenscar_e500_ops): Redefine.
5496 * aarch64-ravenscar-thread.c
5497 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5498 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5499 (aarch64_ravenscar_fetch_registers)
5500 (aarch64_ravenscar_store_registers): Now methods.
5501 (aarch64_ravenscar_ops): Redefine.
5503 2019-02-15 Tom Tromey <tromey@adacore.com>
5505 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5506 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5507 (ravenscar_thread_target::stopped_by_watchpoint)
5508 (ravenscar_thread_target::stopped_data_address)
5509 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5511 2019-02-15 Tom Tromey <tromey@adacore.com>
5513 * ravenscar-thread.c: Fix some typos.
5515 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5516 Tom Tromey <tromey@adacore.com>
5518 * ada-lang.c (ada_exception_sal): Change addr_string to a
5520 (create_ada_exception_catchpoint): Update.
5522 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5523 Tom Tromey <tromey@adacore.com>
5525 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5526 (bp_location_ops): Remove.
5527 (base_breakpoint_allocate_location): Update.
5528 (free_bp_location): Update.
5529 * ada-lang.c (class ada_catchpoint_location)
5530 <ada_catchpoint_location>: Remove ops parameter.
5531 (ada_catchpoint_location_dtor): Remove.
5532 (ada_catchpoint_location_ops): Remove.
5533 (allocate_location_exception): Update.
5534 * breakpoint.h (struct bp_location_ops): Remove.
5535 (class bp_location) <bp_location>: Remove bp_location_ops
5537 <~bp_location>: Add destructor.
5540 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5541 Pedro Alves <palves@redhat.com>
5543 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5546 2019-02-14 David Michael <fedora.dm0@gmail.com>
5547 Samuel Thibault <samuel.thibault@gnu.org>
5548 Thomas Schwinge <thomas@codesourcery.com>
5550 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5551 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5553 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5555 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5556 (check_empty): Use "const char *".
5558 * gnu-nat.c (gnu_nat_target::detach): Instead of
5559 'detach_inferior (pid)' call
5560 'detach_inferior (find_inferior_pid (pid))'.
5562 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5563 'nat/fork-inferior.o'.
5564 * gnu-nat.c: #include "nat/fork-inferior.h".
5566 * gnu-nat.c (gnu_nat_target::detach): Instead of
5567 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5568 * gnu-nat.h: #include "inf-child.h".
5569 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5570 'i386_gnu_nat_target::fetch_registers'.
5571 (gnu_store_registers): Rename/move to
5572 'i386_gnu_nat_target::store_registers'.
5574 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5575 * gnu-nat.h (mach_thread_info): New function.
5576 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5578 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5580 2019-02-14 Frederic Konrad <konrad@adacore.com>
5582 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5584 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5586 * windows-nat.c (windows_add_thread): Add new parameter
5587 "main_thread_p" with default value set to false. Update
5588 function documentation as well as all callers.
5589 (windows_delete_thread): Likewise.
5590 (fake_create_process): Update call to windows_add_thread.
5591 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5592 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5593 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5594 call to windows_delete_thread.
5596 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5598 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5600 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5602 * symfile.c (find_separate_debug_file): Use canonical path of
5603 sysroot with child_path instead of gdb_sysroot if it is valid.
5605 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5607 * symfile.c (find_separate_debug_file): Use child_path to
5608 determine if an object file is under a sysroot.
5610 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5612 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5613 unittests/child-path-selftests.c.
5614 * common/pathstuff.c (child_path): New function.
5615 * common/pathstuff.h (child_path): New prototype.
5616 * unittests/child-path-selftests.c: New file.
5618 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5620 * symfile.c (find_separate_debug_file): Look for separate debug
5621 files in debug directories under the sysroot.
5623 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5625 * symtab.h (struct minimal_symbol data_p): New const method.
5626 (struct minimal_symbol text_p): Likewise.
5627 * symtab.c (output_source_filename): Use file name style
5629 (print_symbol_info): Likewise.
5630 (print_msymbol_info): Use address style to print addresses.
5631 Use function name style to print executable text symbols.
5632 (expand_symtab_containing_pc): Use data_p.
5633 (find_pc_sect_compunit_symtab): Likewise.
5635 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5637 * breakpoint.c (describe_other_breakpoints): Use address style
5639 (say_where): Likewise.
5641 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5643 * ada-typeprint.c (print_func_type): Print function name
5644 style to print function name.
5645 * c-typeprint.c (c_print_type_1): Likewise.
5647 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5649 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5652 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5654 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5657 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5659 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5660 TYPE_CODE_REF types.
5662 2019-02-08 Jim Wilson <jimw@sifive.com>
5664 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5665 (riscv_linux_fregset): New.
5666 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5668 2019-02-07 Tom Tromey <tom@tromey.com>
5670 * thread.c (thread_cancel_execution_command): Update.
5671 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5673 (struct thread_fsm_ops): Remove.
5674 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5675 (thread_fsm_should_stop, thread_fsm_return_value)
5676 (thread_fsm_set_finished, thread_fsm_finished_p)
5677 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5679 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5680 * infrun.c (clear_proceed_status_thread)
5681 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5682 (print_stop_event): Update.
5683 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5685 (step_command_fsm_ops): Remove.
5686 (new_step_command_fsm): Remove.
5688 (step_command_fsm::should_stop): Rename from
5689 step_command_fsm_should_stop.
5690 (step_command_fsm::clean_up): Rename from
5691 step_command_fsm_clean_up.
5692 (step_command_fsm::do_async_reply_reason): Rename from
5693 step_command_fsm_async_reply_reason.
5694 (struct until_next_fsm): Inherit from thread_fsm. Add
5696 (until_next_fsm_ops): Remove.
5697 (new_until_next_fsm): Remove.
5698 (until_next_fsm::should_stop): Rename from
5699 until_next_fsm_should_stop.
5700 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5701 (until_next_fsm::do_async_reply_reason): Rename from
5702 until_next_fsm_async_reply_reason.
5703 (struct finish_command_fsm): Inherit from thread_fsm. Add
5704 constructor. Change type of breakpoint.
5705 (finish_command_fsm_ops): Remove.
5706 (new_finish_command_fsm): Remove.
5707 (finish_command_fsm::should_stop): Rename from
5708 finish_command_fsm_should_stop.
5709 (finish_command_fsm::clean_up): Rename from
5710 finish_command_fsm_clean_up.
5711 (finish_command_fsm::return_value): Rename from
5712 finish_command_fsm_return_value.
5713 (finish_command_fsm::do_async_reply_reason): Rename from
5714 finish_command_fsm_async_reply_reason.
5715 (finish_command): Update.
5716 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5718 (call_thread_fsm_ops): Remove.
5719 (call_thread_fsm::call_thread_fsm): Rename from
5720 new_call_thread_fsm.
5721 (call_thread_fsm::should_stop): Rename from
5722 call_thread_fsm_should_stop.
5723 (call_thread_fsm::should_notify_stop): Rename from
5724 call_thread_fsm_should_notify_stop.
5725 (run_inferior_call, call_function_by_hand_dummy): Update.
5726 * cli/cli-interp.c (should_print_stop_to_console): Update.
5727 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5728 Add constructor. Change type of location_breakpoint,
5730 (until_break_fsm_ops): Remove.
5731 (new_until_break_fsm): Remove.
5732 (until_break_fsm::should_stop): Rename from
5733 until_break_fsm_should_stop.
5734 (until_break_fsm::clean_up): Rename from
5735 until_break_fsm_clean_up.
5736 (until_break_fsm::do_async_reply_reason): Rename from
5737 until_break_fsm_async_reply_reason.
5738 (until_break_command): Update.
5739 * thread-fsm.c: Remove.
5740 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5742 2019-02-07 Tom Tromey <tom@tromey.com>
5744 * yy-remap.h: Add include guard.
5745 * xtensa-tdep.h: Add include guard.
5746 * xcoffread.h: Rename include guard.
5747 * varobj-iter.h: Add include guard.
5748 * tui/tui.h: Rename include guard.
5749 * tui/tui-winsource.h: Rename include guard.
5750 * tui/tui-wingeneral.h: Rename include guard.
5751 * tui/tui-windata.h: Rename include guard.
5752 * tui/tui-win.h: Rename include guard.
5753 * tui/tui-stack.h: Rename include guard.
5754 * tui/tui-source.h: Rename include guard.
5755 * tui/tui-regs.h: Rename include guard.
5756 * tui/tui-out.h: Rename include guard.
5757 * tui/tui-layout.h: Rename include guard.
5758 * tui/tui-io.h: Rename include guard.
5759 * tui/tui-hooks.h: Rename include guard.
5760 * tui/tui-file.h: Rename include guard.
5761 * tui/tui-disasm.h: Rename include guard.
5762 * tui/tui-data.h: Rename include guard.
5763 * tui/tui-command.h: Rename include guard.
5764 * tic6x-tdep.h: Add include guard.
5765 * target/waitstatus.h: Rename include guard.
5766 * target/wait.h: Rename include guard.
5767 * target/target.h: Rename include guard.
5768 * target/resume.h: Rename include guard.
5769 * target-float.h: Rename include guard.
5770 * stabsread.h: Add include guard.
5771 * rs6000-tdep.h: Add include guard.
5772 * riscv-fbsd-tdep.h: Add include guard.
5773 * regformats/regdef.h: Rename include guard.
5774 * record.h: Rename include guard.
5775 * python/python.h: Rename include guard.
5776 * python/python-internal.h: Rename include guard.
5777 * python/py-stopevent.h: Rename include guard.
5778 * python/py-ref.h: Rename include guard.
5779 * python/py-record.h: Rename include guard.
5780 * python/py-record-full.h: Rename include guard.
5781 * python/py-record-btrace.h: Rename include guard.
5782 * python/py-instruction.h: Rename include guard.
5783 * python/py-events.h: Rename include guard.
5784 * python/py-event.h: Rename include guard.
5785 * procfs.h: Add include guard.
5786 * proc-utils.h: Add include guard.
5787 * p-lang.h: Add include guard.
5788 * or1k-tdep.h: Rename include guard.
5789 * observable.h: Rename include guard.
5790 * nto-tdep.h: Rename include guard.
5791 * nat/x86-linux.h: Rename include guard.
5792 * nat/x86-linux-dregs.h: Rename include guard.
5793 * nat/x86-gcc-cpuid.h: Add include guard.
5794 * nat/x86-dregs.h: Rename include guard.
5795 * nat/x86-cpuid.h: Rename include guard.
5796 * nat/ppc-linux.h: Rename include guard.
5797 * nat/mips-linux-watch.h: Rename include guard.
5798 * nat/linux-waitpid.h: Rename include guard.
5799 * nat/linux-ptrace.h: Rename include guard.
5800 * nat/linux-procfs.h: Rename include guard.
5801 * nat/linux-osdata.h: Rename include guard.
5802 * nat/linux-nat.h: Rename include guard.
5803 * nat/linux-namespaces.h: Rename include guard.
5804 * nat/linux-btrace.h: Rename include guard.
5805 * nat/glibc_thread_db.h: Rename include guard.
5806 * nat/gdb_thread_db.h: Rename include guard.
5807 * nat/gdb_ptrace.h: Rename include guard.
5808 * nat/fork-inferior.h: Rename include guard.
5809 * nat/amd64-linux-siginfo.h: Rename include guard.
5810 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5811 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5812 * nat/aarch64-linux.h: Rename include guard.
5813 * nat/aarch64-linux-hw-point.h: Rename include guard.
5814 * mn10300-tdep.h: Add include guard.
5815 * mips-linux-tdep.h: Add include guard.
5816 * mi/mi-parse.h: Rename include guard.
5817 * mi/mi-out.h: Rename include guard.
5818 * mi/mi-main.h: Rename include guard.
5819 * mi/mi-interp.h: Rename include guard.
5820 * mi/mi-getopt.h: Rename include guard.
5821 * mi/mi-console.h: Rename include guard.
5822 * mi/mi-common.h: Rename include guard.
5823 * mi/mi-cmds.h: Rename include guard.
5824 * mi/mi-cmd-break.h: Rename include guard.
5825 * m2-lang.h: Add include guard.
5826 * location.h: Rename include guard.
5827 * linux-record.h: Rename include guard.
5828 * linux-nat.h: Add include guard.
5829 * linux-fork.h: Add include guard.
5830 * i386-darwin-tdep.h: Rename include guard.
5831 * hppa-linux-offsets.h: Add include guard.
5832 * guile/guile.h: Rename include guard.
5833 * guile/guile-internal.h: Rename include guard.
5834 * gnu-nat.h: Rename include guard.
5835 * gdb-stabs.h: Rename include guard.
5836 * frv-tdep.h: Add include guard.
5837 * f-lang.h: Add include guard.
5838 * event-loop.h: Add include guard.
5839 * darwin-nat.h: Rename include guard.
5840 * cp-abi.h: Rename include guard.
5841 * config/sparc/nm-sol2.h: Rename include guard.
5842 * config/nm-nto.h: Rename include guard.
5843 * config/nm-linux.h: Add include guard.
5844 * config/i386/nm-i386gnu.h: Rename include guard.
5845 * config/djgpp/nl_types.h: Rename include guard.
5846 * config/djgpp/langinfo.h: Rename include guard.
5847 * compile/gcc-cp-plugin.h: Add include guard.
5848 * compile/gcc-c-plugin.h: Add include guard.
5849 * compile/compile.h: Rename include guard.
5850 * compile/compile-object-run.h: Rename include guard.
5851 * compile/compile-object-load.h: Rename include guard.
5852 * compile/compile-internal.h: Rename include guard.
5853 * compile/compile-cplus.h: Rename include guard.
5854 * compile/compile-c.h: Rename include guard.
5855 * common/xml-utils.h: Rename include guard.
5856 * common/x86-xstate.h: Rename include guard.
5857 * common/version.h: Rename include guard.
5858 * common/vec.h: Rename include guard.
5859 * common/tdesc.h: Rename include guard.
5860 * common/selftest.h: Rename include guard.
5861 * common/scoped_restore.h: Rename include guard.
5862 * common/scoped_mmap.h: Rename include guard.
5863 * common/scoped_fd.h: Rename include guard.
5864 * common/safe-iterator.h: Rename include guard.
5865 * common/run-time-clock.h: Rename include guard.
5866 * common/refcounted-object.h: Rename include guard.
5867 * common/queue.h: Rename include guard.
5868 * common/ptid.h: Rename include guard.
5869 * common/print-utils.h: Rename include guard.
5870 * common/preprocessor.h: Rename include guard.
5871 * common/pathstuff.h: Rename include guard.
5872 * common/observable.h: Rename include guard.
5873 * common/netstuff.h: Rename include guard.
5874 * common/job-control.h: Rename include guard.
5875 * common/host-defs.h: Rename include guard.
5876 * common/gdb_wait.h: Rename include guard.
5877 * common/gdb_vecs.h: Rename include guard.
5878 * common/gdb_unlinker.h: Rename include guard.
5879 * common/gdb_unique_ptr.h: Rename include guard.
5880 * common/gdb_tilde_expand.h: Rename include guard.
5881 * common/gdb_sys_time.h: Rename include guard.
5882 * common/gdb_string_view.h: Rename include guard.
5883 * common/gdb_splay_tree.h: Rename include guard.
5884 * common/gdb_setjmp.h: Rename include guard.
5885 * common/gdb_ref_ptr.h: Rename include guard.
5886 * common/gdb_optional.h: Rename include guard.
5887 * common/gdb_locale.h: Rename include guard.
5888 * common/gdb_assert.h: Rename include guard.
5889 * common/filtered-iterator.h: Rename include guard.
5890 * common/filestuff.h: Rename include guard.
5891 * common/fileio.h: Rename include guard.
5892 * common/environ.h: Rename include guard.
5893 * common/common-utils.h: Rename include guard.
5894 * common/common-types.h: Rename include guard.
5895 * common/common-regcache.h: Rename include guard.
5896 * common/common-inferior.h: Rename include guard.
5897 * common/common-gdbthread.h: Rename include guard.
5898 * common/common-exceptions.h: Rename include guard.
5899 * common/common-defs.h: Rename include guard.
5900 * common/common-debug.h: Rename include guard.
5901 * common/cleanups.h: Rename include guard.
5902 * common/buffer.h: Rename include guard.
5903 * common/btrace-common.h: Rename include guard.
5904 * common/break-common.h: Rename include guard.
5905 * cli/cli-utils.h: Rename include guard.
5906 * cli/cli-style.h: Rename include guard.
5907 * cli/cli-setshow.h: Rename include guard.
5908 * cli/cli-script.h: Rename include guard.
5909 * cli/cli-interp.h: Rename include guard.
5910 * cli/cli-decode.h: Rename include guard.
5911 * cli/cli-cmds.h: Rename include guard.
5912 * charset-list.h: Add include guard.
5913 * buildsym-legacy.h: Rename include guard.
5914 * bfin-tdep.h: Add include guard.
5915 * ax.h: Rename include guard.
5916 * arm-linux-tdep.h: Add include guard.
5917 * arm-fbsd-tdep.h: Add include guard.
5918 * arch/xtensa.h: Rename include guard.
5919 * arch/tic6x.h: Add include guard.
5920 * arch/i386.h: Add include guard.
5921 * arch/arm.h: Rename include guard.
5922 * arch/arm-linux.h: Rename include guard.
5923 * arch/arm-get-next-pcs.h: Rename include guard.
5924 * arch/amd64.h: Add include guard.
5925 * arch/aarch64-insn.h: Rename include guard.
5926 * arch-utils.h: Rename include guard.
5927 * annotate.h: Add include guard.
5928 * amd64-darwin-tdep.h: Rename include guard.
5929 * aarch64-linux-tdep.h: Add include guard.
5930 * aarch64-fbsd-tdep.h: Add include guard.
5931 * aarch32-linux-nat.h: Add include guard.
5933 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5935 * macrotab.c (macro_define_internal): New function that
5936 factorizes macro_define_object_internal and macro_define_function
5938 (macro_define_object_internal): Use macro_define_internal.
5939 (macro_define_function): Likewise.
5941 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5943 * macrocmd.c (extract_identifier): Return
5944 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5947 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5949 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5951 2019-02-05 Tom Tromey <tom@tromey.com>
5953 * target.c (target_stack::unpush): Move assertion earlier.
5955 2019-01-30 Tom Tromey <tom@tromey.com>
5958 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5959 (gdbpy_parse_and_eval): Likewise.
5960 * python/python-internal.h (gdbpy_allow_threads): New class.
5962 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5964 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5965 (aarch64_fbsd_fpregmap): Move earlier.
5966 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5967 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5968 instead of individual calls to trad_frame_set_reg_addr.
5969 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5971 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5972 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5973 instead of individual calls to trad_frame_set_reg_addr.
5975 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5977 * CONTRIBUTE: Replace contribution list with wiki link.
5979 2019-01-25 Tom Tromey <tom@tromey.com>
5981 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5983 2019-01-25 Tom Tromey <tom@tromey.com>
5985 * xtensa-linux-nat.c: Fix common/ includes.
5986 * xml-support.h: Fix common/ includes.
5987 * xml-support.c: Fix common/ includes.
5988 * x86-linux-nat.c: Fix common/ includes.
5989 * windows-nat.c: Fix common/ includes.
5990 * varobj.h: Fix common/ includes.
5991 * varobj.c: Fix common/ includes.
5992 * value.c: Fix common/ includes.
5993 * valops.c: Fix common/ includes.
5994 * utils.c: Fix common/ includes.
5995 * unittests/xml-utils-selftests.c: Fix common/ includes.
5996 * unittests/utils-selftests.c: Fix common/ includes.
5997 * unittests/unpack-selftests.c: Fix common/ includes.
5998 * unittests/tracepoint-selftests.c: Fix common/ includes.
5999 * unittests/style-selftests.c: Fix common/ includes.
6000 * unittests/string_view-selftests.c: Fix common/ includes.
6001 * unittests/scoped_restore-selftests.c: Fix common/ includes.
6002 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
6003 * unittests/scoped_fd-selftests.c: Fix common/ includes.
6004 * unittests/rsp-low-selftests.c: Fix common/ includes.
6005 * unittests/parse-connection-spec-selftests.c: Fix common/
6007 * unittests/optional-selftests.c: Fix common/ includes.
6008 * unittests/offset-type-selftests.c: Fix common/ includes.
6009 * unittests/observable-selftests.c: Fix common/ includes.
6010 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
6011 * unittests/memrange-selftests.c: Fix common/ includes.
6012 * unittests/memory-map-selftests.c: Fix common/ includes.
6013 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
6014 * unittests/function-view-selftests.c: Fix common/ includes.
6015 * unittests/environ-selftests.c: Fix common/ includes.
6016 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
6017 * unittests/common-utils-selftests.c: Fix common/ includes.
6018 * unittests/cli-utils-selftests.c: Fix common/ includes.
6019 * unittests/array-view-selftests.c: Fix common/ includes.
6020 * ui-file.c: Fix common/ includes.
6021 * tui/tui-io.c: Fix common/ includes.
6022 * tracepoint.h: Fix common/ includes.
6023 * tracepoint.c: Fix common/ includes.
6024 * tracefile-tfile.c: Fix common/ includes.
6025 * top.h: Fix common/ includes.
6026 * top.c: Fix common/ includes.
6027 * thread.c: Fix common/ includes.
6028 * target/waitstatus.h: Fix common/ includes.
6029 * target/waitstatus.c: Fix common/ includes.
6030 * target.h: Fix common/ includes.
6031 * target.c: Fix common/ includes.
6032 * target-memory.c: Fix common/ includes.
6033 * target-descriptions.c: Fix common/ includes.
6034 * symtab.h: Fix common/ includes.
6035 * symfile.c: Fix common/ includes.
6036 * stap-probe.c: Fix common/ includes.
6037 * spu-linux-nat.c: Fix common/ includes.
6038 * sparc-nat.c: Fix common/ includes.
6039 * source.c: Fix common/ includes.
6040 * solib.c: Fix common/ includes.
6041 * solib-target.c: Fix common/ includes.
6042 * ser-unix.c: Fix common/ includes.
6043 * ser-tcp.c: Fix common/ includes.
6044 * ser-pipe.c: Fix common/ includes.
6045 * ser-base.c: Fix common/ includes.
6046 * selftest-arch.c: Fix common/ includes.
6047 * s12z-tdep.c: Fix common/ includes.
6048 * rust-exp.y: Fix common/ includes.
6049 * rs6000-aix-tdep.c: Fix common/ includes.
6050 * riscv-tdep.c: Fix common/ includes.
6051 * remote.c: Fix common/ includes.
6052 * remote-notif.h: Fix common/ includes.
6053 * remote-fileio.h: Fix common/ includes.
6054 * remote-fileio.c: Fix common/ includes.
6055 * regcache.h: Fix common/ includes.
6056 * regcache.c: Fix common/ includes.
6057 * record-btrace.c: Fix common/ includes.
6058 * python/python.c: Fix common/ includes.
6059 * python/py-type.c: Fix common/ includes.
6060 * python/py-inferior.c: Fix common/ includes.
6061 * progspace.h: Fix common/ includes.
6062 * producer.c: Fix common/ includes.
6063 * procfs.c: Fix common/ includes.
6064 * proc-api.c: Fix common/ includes.
6065 * printcmd.c: Fix common/ includes.
6066 * ppc-linux-nat.c: Fix common/ includes.
6067 * parser-defs.h: Fix common/ includes.
6068 * osdata.c: Fix common/ includes.
6069 * obsd-nat.c: Fix common/ includes.
6070 * nat/x86-linux.c: Fix common/ includes.
6071 * nat/x86-linux-dregs.c: Fix common/ includes.
6072 * nat/x86-dregs.h: Fix common/ includes.
6073 * nat/x86-dregs.c: Fix common/ includes.
6074 * nat/ppc-linux.c: Fix common/ includes.
6075 * nat/mips-linux-watch.h: Fix common/ includes.
6076 * nat/mips-linux-watch.c: Fix common/ includes.
6077 * nat/linux-waitpid.c: Fix common/ includes.
6078 * nat/linux-ptrace.h: Fix common/ includes.
6079 * nat/linux-ptrace.c: Fix common/ includes.
6080 * nat/linux-procfs.c: Fix common/ includes.
6081 * nat/linux-personality.c: Fix common/ includes.
6082 * nat/linux-osdata.c: Fix common/ includes.
6083 * nat/linux-namespaces.c: Fix common/ includes.
6084 * nat/linux-btrace.h: Fix common/ includes.
6085 * nat/linux-btrace.c: Fix common/ includes.
6086 * nat/fork-inferior.c: Fix common/ includes.
6087 * nat/amd64-linux-siginfo.c: Fix common/ includes.
6088 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
6089 * nat/aarch64-linux.c: Fix common/ includes.
6090 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
6091 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
6092 * namespace.h: Fix common/ includes.
6093 * mips-linux-tdep.c: Fix common/ includes.
6094 * minsyms.c: Fix common/ includes.
6095 * mi/mi-parse.h: Fix common/ includes.
6096 * mi/mi-main.c: Fix common/ includes.
6097 * mi/mi-cmd-env.c: Fix common/ includes.
6098 * memrange.h: Fix common/ includes.
6099 * memattr.c: Fix common/ includes.
6100 * maint.h: Fix common/ includes.
6101 * maint.c: Fix common/ includes.
6102 * main.c: Fix common/ includes.
6103 * machoread.c: Fix common/ includes.
6104 * location.c: Fix common/ includes.
6105 * linux-thread-db.c: Fix common/ includes.
6106 * linux-nat.c: Fix common/ includes.
6107 * linux-fork.c: Fix common/ includes.
6108 * inline-frame.c: Fix common/ includes.
6109 * infrun.c: Fix common/ includes.
6110 * inflow.c: Fix common/ includes.
6111 * inferior.h: Fix common/ includes.
6112 * inferior.c: Fix common/ includes.
6113 * infcmd.c: Fix common/ includes.
6114 * inf-ptrace.c: Fix common/ includes.
6115 * inf-child.c: Fix common/ includes.
6116 * ia64-linux-nat.c: Fix common/ includes.
6117 * i387-tdep.c: Fix common/ includes.
6118 * i386-tdep.c: Fix common/ includes.
6119 * i386-linux-tdep.c: Fix common/ includes.
6120 * i386-linux-nat.c: Fix common/ includes.
6121 * i386-go32-tdep.c: Fix common/ includes.
6122 * i386-fbsd-tdep.c: Fix common/ includes.
6123 * i386-fbsd-nat.c: Fix common/ includes.
6124 * guile/scm-type.c: Fix common/ includes.
6125 * guile/guile.c: Fix common/ includes.
6126 * go32-nat.c: Fix common/ includes.
6127 * gnu-nat.c: Fix common/ includes.
6128 * gdbthread.h: Fix common/ includes.
6129 * gdbarch-selftests.c: Fix common/ includes.
6130 * gdb_usleep.c: Fix common/ includes.
6131 * gdb_select.h: Fix common/ includes.
6132 * gdb_bfd.c: Fix common/ includes.
6133 * gcore.c: Fix common/ includes.
6134 * fork-child.c: Fix common/ includes.
6135 * findvar.c: Fix common/ includes.
6136 * fbsd-nat.c: Fix common/ includes.
6137 * event-top.c: Fix common/ includes.
6138 * event-loop.c: Fix common/ includes.
6139 * dwarf2read.c: Fix common/ includes.
6140 * dwarf2loc.c: Fix common/ includes.
6141 * dwarf2-frame.c: Fix common/ includes.
6142 * dwarf-index-cache.c: Fix common/ includes.
6143 * dtrace-probe.c: Fix common/ includes.
6144 * disasm-selftests.c: Fix common/ includes.
6145 * defs.h: Fix common/ includes.
6146 * csky-tdep.c: Fix common/ includes.
6147 * cp-valprint.c: Fix common/ includes.
6148 * cp-support.h: Fix common/ includes.
6149 * cp-support.c: Fix common/ includes.
6150 * corelow.c: Fix common/ includes.
6151 * completer.h: Fix common/ includes.
6152 * completer.c: Fix common/ includes.
6153 * compile/compile.c: Fix common/ includes.
6154 * compile/compile-loc2c.c: Fix common/ includes.
6155 * compile/compile-cplus-types.c: Fix common/ includes.
6156 * compile/compile-cplus-symbols.c: Fix common/ includes.
6157 * command.h: Fix common/ includes.
6158 * cli/cli-dump.c: Fix common/ includes.
6159 * cli/cli-cmds.c: Fix common/ includes.
6160 * charset.c: Fix common/ includes.
6161 * build-id.c: Fix common/ includes.
6162 * btrace.h: Fix common/ includes.
6163 * btrace.c: Fix common/ includes.
6164 * breakpoint.h: Fix common/ includes.
6165 * breakpoint.c: Fix common/ includes.
6167 (enum agent_op): Fix common/ includes.
6168 * ax-general.c (struct aop_map): Fix common/ includes.
6169 * ax-gdb.c: Fix common/ includes.
6170 * auxv.c: Fix common/ includes.
6171 * auto-load.c: Fix common/ includes.
6172 * arm-tdep.c: Fix common/ includes.
6173 * arch/riscv.c: Fix common/ includes.
6174 * arch/ppc-linux-common.c: Fix common/ includes.
6175 * arch/i386.c: Fix common/ includes.
6176 * arch/arm.c: Fix common/ includes.
6177 * arch/arm-linux.c: Fix common/ includes.
6178 * arch/arm-get-next-pcs.c: Fix common/ includes.
6179 * arch/amd64.c: Fix common/ includes.
6180 * arch/aarch64.c: Fix common/ includes.
6181 * arch/aarch64-insn.c: Fix common/ includes.
6182 * arch-utils.c: Fix common/ includes.
6183 * amd64-windows-tdep.c: Fix common/ includes.
6184 * amd64-tdep.c: Fix common/ includes.
6185 * amd64-sol2-tdep.c: Fix common/ includes.
6186 * amd64-obsd-tdep.c: Fix common/ includes.
6187 * amd64-nbsd-tdep.c: Fix common/ includes.
6188 * amd64-linux-tdep.c: Fix common/ includes.
6189 * amd64-linux-nat.c: Fix common/ includes.
6190 * amd64-fbsd-tdep.c: Fix common/ includes.
6191 * amd64-fbsd-nat.c: Fix common/ includes.
6192 * amd64-dicos-tdep.c: Fix common/ includes.
6193 * amd64-darwin-tdep.c: Fix common/ includes.
6194 * agent.c: Fix common/ includes.
6195 * ada-lang.h: Fix common/ includes.
6196 * ada-lang.c: Fix common/ includes.
6197 * aarch64-tdep.c: Fix common/ includes.
6199 2019-01-25 Tom Tromey <tom@tromey.com>
6201 * common/create-version.sh: Use common/version.h.
6203 2019-01-24 Pedro Alves <palves@redhat.com>
6205 * infrun.c (signal_stop, signal_print, signal_program)
6206 (signal_catch, signal_pass): Now arrays instead of pointers.
6207 (update_signals_program_target, do_target_resume)
6208 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
6209 * linux-nat.c (linux_nat_target::pass_signals)
6210 (linux_nat_target::create_inferior, linux_nat_target::attach):
6212 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
6213 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
6214 * procfs.c (procfs_target::pass_signals): Adjust.
6215 * record-full.c (record_full_target::resume): Adjust.
6216 * remote.c (remote_target::pass_signals)
6217 (remote_target::program_signals): Adjust.
6218 * target-debug.h (target_debug_print_signals): Now takes a
6219 gdb::array_view as parameter. Adjust.
6220 * target.h (target_ops) <pass_signals, program_signals>: Replace
6221 pointer and length parameters with gdb::array_view.
6222 (target_pass_signals, target_program_signals): Likewise.
6223 * target-delegates.c: Regenerate.
6225 2019-01-24 Pedro Alves <palves@redhat.com>
6227 * common/forward-scope-exit.h
6228 (forward_scope_exit::forward_scope_exit): Pass arguments to
6229 m_bind_function directly, instead of creating a std::bind and
6232 2019-01-24 Alan Hayward <alan.hayward@arm.com>
6234 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6236 (pass_in_v_vfp_candidate): Likewise.
6238 2019-01-23 Tom Tromey <tom@tromey.com>
6239 Pedro Alves <palves@redhat.com>
6241 * regcache.c (class regcache_invalidator): Remove.
6242 (regcache::raw_write): Use make_scope_exit.
6244 2019-01-23 Tom Tromey <tom@tromey.com>
6246 * ui-out.h (class ui_out_emit_type): Update comment.
6248 2019-01-23 Tom Tromey <tom@tromey.com>
6250 * infrun.c (fetch_inferior_event): Update comment.
6252 2019-01-23 Tom Tromey <tom@tromey.com>
6253 Pedro Alves <palves@redhat.com>
6255 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
6257 (fetch_inferior_event): Use SCOPE_EXIT.
6260 2019-01-23 Tom Tromey <tom@tromey.com>
6261 Pedro Alves <palves@redhat.com>
6263 * infrun.c (disable_thread_events): Delete.
6264 (stop_all_threads): Use SCOPE_EXIT.
6266 2019-01-23 Tom Tromey <tom@tromey.com>
6267 Pedro Alves <palves@redhat.com>
6269 * symfile.c: Include forward-scope-exit.h.
6270 (clear_symtab_users_cleanup): Replace forward declaration with
6271 a FORWARD_SCOPE_EXIT.
6272 (syms_from_objfile_1): Use the forward_scope_exit and
6273 gdb::optional instead of cleanup_function.
6274 (reread_symbols): Use the forward_scope_exit instead of
6276 (clear_symtab_users_cleanup): Remove function.
6278 2019-01-23 Tom Tromey <tom@tromey.com>
6279 Pedro Alves <palves@redhat.com>
6281 * linux-nat.c: Include scope-exit.h.
6282 (cleanup_target_stop): Remove.
6283 (linux_nat_target::static_tracepoint_markers_by_strid): Use
6286 2019-01-23 Tom Tromey <tom@tromey.com>
6287 Pedro Alves <palves@redhat.com>
6289 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
6290 (call_function_by_hand_dummy): Use SCOPE_EXIT.
6292 2019-01-23 Tom Tromey <tom@tromey.com>
6293 Andrew Burgess <andrew.burgess@embecosm.com>
6294 Pedro Alves <palves@redhat.com>
6296 * infrun.c (fetch_inferior_event): Use scope_exit.
6297 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
6298 * top.c (execute_command): Use scope_exit.
6299 * breakpoint.c (bpstat_do_actions): Use scope_exit.
6300 * utils.c (do_bpstat_clear_actions_cleanup)
6301 (make_bpstat_clear_actions_cleanup): Remove.
6303 2019-01-23 Tom Tromey <tom@tromey.com>
6304 Pedro Alves <palves@redhat.com>
6306 * infrun.c: Include "common/scope-exit.h"
6307 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
6308 (wait_for_inferior): Use SCOPE_EXIT.
6309 (fetch_inferior_event): Use scope_exit.
6311 2019-01-23 Tom Tromey <tom@tromey.com>
6312 Pedro Alves <palves@redhat.com>
6314 * breakpoint.c (create_breakpoint): Remove cleanup.
6316 2019-01-23 Tom Tromey <tom@tromey.com>
6317 Andrew Burgess <andrew.burgess@embecosm.com>
6318 Pedro Alves <palves@redhat.com>
6320 2019-01-23 Pedro Alves <palves@redhat.com>
6322 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6324 2019-01-23 Pedro Alves <palves@redhat.com>
6325 Andrew Burgess <andrew.burgess@embecosm.com>
6327 * gdbthread.h: Include "common/forward-scope-exit.h".
6328 (scoped_finish_thread_state): Redefine custom class in terms of
6331 2019-01-23 Pedro Alves <palves@redhat.com>
6332 Andrew Burgess <andrew.burgess@embecosm.com>
6334 * common/forward-scope-exit.h: New file.
6336 2019-01-23 Pedro Alves <palves@redhat.com>
6337 Andrew Burgess <andrew.burgess@embecosm.com>
6338 Tom Tromey <tom@tromey.com>
6340 * common/scope-exit.h: New file.
6342 2019-01-23 Pedro Alves <palves@redhat.com>
6344 * common/preprocessor.h (ESC): Rename to ...
6345 (ESC_PARENS): ... this.
6346 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6347 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6349 2019-01-23 Tom Tromey <tom@tromey.com>
6351 * language.h (class scoped_switch_to_sym_language_if_auto):
6352 Initialize m_lang in both cases.
6354 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6356 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6359 2019-01-22 Tom Tromey <tom@tromey.com>
6361 * corelow.c: Do not include sys/file.h.
6363 2019-01-22 Tom Tromey <tom@tromey.com>
6365 * tui/tui-wingeneral.h: Include gdb_curses.h.
6367 2019-01-22 Tom Tromey <tom@tromey.com>
6369 * source-cache.h (class source_cache) <get_source_lines,
6370 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6372 2019-01-22 Tom Tromey <tom@tromey.com>
6374 * remote-fileio.h (struct remote_target): Declare.
6376 2019-01-22 Tom Tromey <tom@tromey.com>
6378 * python/py-arch.c: Do not include py-ref.h.
6379 * python/py-bpevent.c: Do not include py-ref.h.
6380 * python/py-cmd.c: Do not include py-ref.h.
6381 * python/py-continueevent.c: Do not include py-ref.h.
6382 * python/py-event.h: Do not include py-ref.h.
6383 * python/py-evtregistry.c: Do not include py-ref.h.
6384 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6385 * python/py-frame.c: Do not include py-ref.h.
6386 * python/py-framefilter.c: Do not include py-ref.h.
6387 * python/py-function.c: Do not include py-ref.h.
6388 * python/py-infevents.c: Do not include py-ref.h.
6389 * python/py-linetable.c: Do not include py-ref.h.
6390 * python/py-objfile.c: Do not include py-ref.h.
6391 * python/py-param.c: Do not include py-ref.h.
6392 * python/py-prettyprint.c: Do not include py-ref.h.
6393 * python/py-progspace.c: Do not include py-ref.h.
6394 * python/py-symbol.c: Do not include py-ref.h.
6395 * python/py-symtab.c: Do not include py-ref.h.
6396 * python/py-type.c: Do not include py-ref.h.
6397 * python/py-unwind.c: Do not include py-ref.h.
6398 * python/py-utils.c: Do not include py-ref.h.
6399 * python/py-value.c: Do not include py-ref.h.
6400 * python/py-varobj.c: Do not include py-ref.h.
6401 * python/py-xmethods.c: Do not include py-ref.h.
6402 * python/python.c: Do not include py-ref.h.
6403 * varobj.c: Do not include py-ref.h.
6405 2019-01-22 Tom Tromey <tom@tromey.com>
6407 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6410 2019-01-22 Tom Tromey <tom@tromey.com>
6412 * compile/compile-cplus-types.c: Remove a comment by #include.
6414 2019-01-22 Tom Tromey <tom@tromey.com>
6416 * compile/gcc-c-plugin.h: Include compile-internal.h.
6418 2019-01-22 Tom Tromey <tom@tromey.com>
6420 * stabsread.c (EXTERN): Do not define.
6421 (symnum, next_symbol_text_func, processing_gcc_compilation)
6422 (within_function, global_sym_chain, global_stabs)
6423 (previous_stab_code, this_object_header_files)
6424 (n_this_object_header_files)
6425 (n_allocated_this_object_header_files): Define.
6426 * stabsread.h (EXTERN): Never define. Use "extern".
6428 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6430 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6433 2019-01-21 Tom Tromey <tom@tromey.com>
6435 * ui-out.c: Fix includes.
6436 * tui/tui-source.c: Fix includes.
6437 * target.c: Fix includes.
6438 * remote.c: Fix includes.
6439 * regcache.c: Fix includes.
6440 * python/py-block.c: Fix includes.
6441 * printcmd.c: Fix includes.
6442 * or1k-tdep.c: Fix includes.
6443 * mi/mi-main.c: Fix includes.
6444 * m32r-tdep.c: Fix includes.
6445 * csky-tdep.c: Fix includes.
6446 * compile/compile-cplus-types.c: Fix includes.
6447 * cli/cli-interp.c: Fix includes.
6449 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6451 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6454 2019-01-16 Tom Tromey <tom@tromey.com>
6456 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6458 (struct objfile) <msymbols_range>: Move from top level.
6459 <msymbols>: New method.
6460 (class objfile_msymbols): Remove.
6461 * symtab.c (default_collect_symbol_completion_matches_break_on):
6463 * symmisc.c (dump_msymbols): Update.
6464 * stabsread.c (scan_file_globals): Update.
6465 * objc-lang.c (info_selectors_command, info_classes_command)
6466 (find_methods): Update.
6467 * minsyms.c (find_solib_trampoline_target): Update.
6468 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6469 * coffread.c (coff_symfile_read): Update.
6470 * ada-lang.c (ada_lookup_simple_minsym)
6471 (ada_collect_symbol_completion_matches): Update.
6473 2019-01-16 Tom Tromey <tom@tromey.com>
6475 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6476 type. Remove no-argument constructor.
6477 <iterator::operator++>: Simplify.
6479 <end>: Use minimal_symbol_count.
6481 2019-01-16 Tom Tromey <tom@tromey.com>
6483 * objfiles.h (struct objfile) <psymtabs>: New method.
6484 (class objfile_psymtabs): Remove.
6485 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6487 <range>: New method.
6488 (require_partial_symbols): Change return type.
6489 * psymtab.c (require_partial_symbols)
6490 (psym_expand_symtabs_matching): Update.
6491 * mdebugread.c (parse_partial_symbols): Update.
6492 * dbxread.c (dbx_end_psymtab): Update.
6494 2019-01-15 Tom Tromey <tom@tromey.com>
6496 * symtab.c (lookup_objfile_from_block)
6497 (lookup_symbol_in_objfile_symtabs)
6498 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6499 (find_line_symtab, info_sources_command)
6500 (default_collect_symbol_completion_matches_break_on)
6501 (make_source_files_completion_list): Update.
6502 * symmisc.c (print_objfile_statistics, dump_objfile)
6503 (maintenance_print_symbols, maintenance_info_symtabs)
6504 (maintenance_check_symtabs, maintenance_info_line_tables):
6506 * source.c (select_source_symtab)
6507 (forget_cached_source_info_for_objfile): Update.
6508 * objfiles.h (class objfile_compunits): Remove.
6509 (struct objfile) <compunits_range>: New typedef.
6510 (compunits): New method.
6511 * objfiles.c (objfile_relocate1): Update.
6512 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6513 * maint.c (count_symtabs_and_blocks): Update.
6514 * linespec.c (iterate_over_all_matching_symtabs): Update.
6515 * cp-support.c (add_symbol_overload_list_qualified): Update.
6516 * coffread.c (coff_symtab_read): Update.
6517 * ada-lang.c (add_nonlocal_symbols)
6518 (ada_collect_symbol_completion_matches)
6519 (ada_add_global_exceptions): Update.
6521 2019-01-15 Tom Tromey <tom@tromey.com>
6523 * progspace.h (program_space) <objfiles_safe_range>: New
6525 <objfiles_safe>: New method.
6526 * objfiles.h (class all_objfiles_safe): Remove.
6527 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6528 * jit.c (jit_inferior_exit_hook): Update.
6530 2019-01-17 Tom Tromey <tom@tromey.com>
6532 * progspace.h (program_space) <objfiles_range>: New typedef.
6533 <objfiles>: New method.
6534 <objfiles_head>: Rename from objfiles.
6535 (object_files): Update.
6536 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6537 * guile/scm-pretty-print.c
6538 (ppscm_find_pretty_printer_from_objfiles): Update.
6539 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6540 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6542 * python/py-progspace.c (pspy_get_objfiles): Update.
6543 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6545 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6546 (objfpy_lookup_objfile_by_build_id): Update.
6547 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6548 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6550 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6551 (expand_symtab_containing_pc, lookup_objfile_from_block)
6552 (lookup_static_symbol, basic_lookup_transparent_type)
6553 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6554 (find_line_symtab, info_sources_command)
6555 (default_collect_symbol_completion_matches_break_on)
6556 (make_source_files_completion_list, find_main_name): Update.
6557 * symmisc.c (print_symbol_bcache_statistics)
6558 (print_objfile_statistics, maintenance_print_symbols)
6559 (maintenance_print_msymbols, maintenance_print_objfiles)
6560 (maintenance_info_symtabs, maintenance_check_symtabs)
6561 (maintenance_expand_symtabs, maintenance_info_line_tables):
6563 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6564 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6565 (map_overlay_command, unmap_overlay_command)
6566 (simple_overlay_update, expand_symtabs_matching)
6567 (map_symbol_filenames): Update.
6568 * symfile-debug.c (set_debug_symfile): Update.
6569 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6571 * source.c (select_source_symtab, forget_cached_source_info):
6573 * solib.c (solib_read_symbols): Update.
6574 * solib-spu.c (append_ocl_sos): Update.
6575 * psymtab.c (maintenance_print_psymbols)
6576 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6577 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6578 * printcmd.c (info_symbol_command): Update.
6579 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6581 * objfiles.h (class all_objfiles): Remove.
6582 * objfiles.c (have_partial_symbols, have_full_symbols)
6583 (have_minimal_symbols, qsort_cmp, update_section_map)
6584 (shared_objfile_contains_address_p)
6585 (default_iterate_over_objfiles_in_search_order): Update.
6586 * objc-lang.c (info_selectors_command, info_classes_command)
6587 (find_methods): Update.
6588 * minsyms.c (find_solib_trampoline_target): Update.
6589 * maint.c (maintenance_info_sections)
6590 (maintenance_translate_address, count_symtabs_and_blocks):
6592 * main.c (captured_main_1): Update.
6593 * linux-thread-db.c (try_thread_db_load_from_pdir)
6594 (has_libpthread): Update.
6595 * linespec.c (iterate_over_all_matching_symtabs)
6596 (search_minsyms_for_name): Update.
6597 * jit.c (jit_find_objf_with_entry_addr): Update.
6598 * hppa-tdep.c (find_unwind_entry)
6599 (hppa_lookup_stub_minimal_symbol): Update.
6600 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6602 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6603 (elf_gnu_ifunc_resolve_by_got): Update.
6604 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6605 * dwarf-index-write.c (save_gdb_index_command): Update.
6606 * cp-support.c (add_symbol_overload_list_qualified): Update.
6607 * breakpoint.c (create_overlay_event_breakpoint)
6608 (create_longjmp_master_breakpoint)
6609 (create_std_terminate_master_breakpoint)
6610 (create_exception_master_breakpoint): Update.
6611 * blockframe.c (find_pc_partial_function): Update.
6612 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6613 (ada_collect_symbol_completion_matches)
6614 (ada_add_global_exceptions): Update.
6616 2019-01-17 Tom Tromey <tom@tromey.com>
6618 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6620 (solib_target_parse_libraries): Change return type.
6621 (library_list_start_segment, library_list_start_section)
6622 (library_list_end_library, library_list_start_library); Update.
6623 (solib_target_free_library_list): Remove.
6624 (solib_target_parse_libraries): Remove cleanup. Change return
6626 (solib_target_current_sos): Update.
6628 2019-01-17 Tom Tromey <tromey@bapiya>
6630 * valprint.c: Replace "the the" with "the".
6631 * symtab.c: Replace "the the" with "the".
6632 * solib.c: Replace "the the" with "the".
6633 * solib-dsbt.c: Replace "the the" with "the".
6634 * linespec.c: Replace "the the" with "the".
6635 * dwarf2loc.h: Replace "the the" with "the".
6636 * amd64-windows-tdep.c: Replace "the the" with "the".
6637 * aarch64-tdep.c: Replace "the the" with "the".
6639 2019-01-16 Keith Seitz <keiths@redhat.com>
6642 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6643 <builder>: Rename to ..
6644 <m_builder>: ... this and make private.
6645 (dwarf2_cu::get_builder): New method. Change all users of
6646 `builder' to use this method.
6647 (dwarf2_start_symtab): Move to ...
6648 (dwarf2_cu::start_symtab): ... here. Update all callers
6649 (setup_type_unit_groups): Move to ...
6650 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6652 (dwarf2_cu::reset_builder): New method.
6653 (process_full_compunit, process_full_type_unit): Use
6654 dwarf2_cu::reset_builder.
6655 (follow_die_offset): Record the ancestor CU if it is different
6656 from the followed DIE's CU.
6657 (follow_die_sig_1): Likewise.
6659 2019-01-15 Tom Tromey <tom@tromey.com>
6661 * remote.c (class remote_state) <buf>: Now a char_vector.
6663 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6665 (remote_target::getpkt_or_notif_sane_1)
6666 (remote_target::getpkt_sane)
6667 (remote_target::getpkt_or_notif_sane): Likewise.
6668 (class remote_target) <putpkt>: New overload.
6669 (remote_target::read_frame): Change type of "buf_p". Remove
6671 (packet_ok): New overload.
6672 (packet_check_result): New overload.
6675 2019-01-14 Tom Tromey <tom@tromey.com>
6677 * remote-notif.c (handle_notification, remote_notif_ack)
6678 (remote_notif_parse): Make "buf" const.
6679 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6681 (remote_notif_parse, remote_notif_ack, handle_notification):
6683 * remote.c (remote_notif_stop_parse): Make "buf" const.
6684 (remote_target::remote_parse_stop_reply): Make "buf" const.
6685 (remote_notif_stop_ack): Make "buf" const.
6687 2019-01-14 Tom Tromey <tom@tromey.com>
6689 * remote.c (remote_console_output): Make parameter const.
6691 2019-01-14 Tom Tromey <tom@tromey.com>
6693 * target-debug.h (target_debug_print_signals): Constify.
6694 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6695 * procfs.c (procfs_target::pass_signals): Update.
6696 * linux-nat.c (linux_nat_target::pass_signals): Update.
6697 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6698 * target-delegates.c: Rebuild.
6699 * remote.c (remote_target::program_signals): Update.
6700 (remote_target::pass_signals): Update.
6701 * target.c (target_pass_signals): Constify argument.
6702 (target_program_signals): Likewise.
6703 * target.h (struct target_ops) <pass_signals, program_signals>:
6705 (target_pass_signals, target_program_signals): Constify argument.
6707 2019-01-14 Tom Tromey <tom@tromey.com>
6710 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6712 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6714 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6716 * rs6000-tdep.c: Include reggroups.h.
6717 (IS_V_ALIAS_PSEUDOREG): Define.
6718 (rs6000_register_name): Return names for the "vX" aliases.
6719 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6720 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6721 aliases. Call default_register_reggroup_p for all other
6723 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6725 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6726 Handle "vX" aliases.
6727 (v_alias_pseudo_register_collect): New function.
6728 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6729 (rs6000_gdbarch_init): Initialize "vX" aliases as
6730 pseudo-registers. Restore registration of
6731 rs6000_pseudo_register_reggroup_p with
6732 set_tdesc_pseudo_register_reggroup_p.
6734 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6736 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6737 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6738 set_gdbarch_num_pseudo_regs.
6740 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6742 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6743 Remove arg prefixname, add do_set and do_show.
6744 Add member functions set_list and show_list.
6745 * cli/cli-style.c (class cli_style_option): Update accordingly.
6746 (style_set_list): Move to file scope.
6747 (style_show_list): Likewise.
6748 (set_style): Call help_list.
6749 (show_style): Call cmd_show_list.
6750 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6751 Update to use the new macro.
6753 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6755 * ada-lang.c (_initialize_ada_language): Expand the help text
6756 for the "catch exception" command.
6758 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6760 * symtab.c (matching_obj_sections): Initialize obj,
6761 declare it closer to its usage.
6763 2019-01-10 Tom Tromey <tom@tromey.com>
6765 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6766 (basic_inf_threads_range): Remove.
6767 (inf_threads_range, inf_non_exited_threads_range)
6768 (safe_inf_threads_range): Use next_adapter.
6770 2019-01-10 Keith Seitz <keiths@redhat.com>
6774 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6775 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6777 2019-01-10 Keith Seitz <keiths@redhat.com>
6781 * dictionary.c (pending_to_vector): Remove.
6782 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6783 Remove _1 suffix, replacing functions of the same name. Update
6785 (dict_create_hashed, dict_create_hashed_expandable)
6786 (dict_create_linear, dict_create_linear_expandable, dict_free)
6787 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6788 Make functions static.
6790 2019-01-10 Keith Seitz <keiths@redhat.com>
6794 * dictionary.h (struct dictionary): Replace declaration with
6796 (dict_create_hashed, dict_create_hashed_expandable)
6797 (dict_create_linear, dict_create_linear_expandable)
6798 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6799 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6800 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6801 taking multidictionary argument.
6802 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6803 * block.h (struct block) <dict>: Change to multidictionary
6804 and rename `multidict'.
6805 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6806 symmisc.c: Update all dictionary references to multidictionary.
6808 2019-01-10 Keith Seitz <keiths@redhat.com>
6812 * dictionary.c: Include unordered_map.
6813 (pending_to_vector): New function.
6814 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6815 Rewrite the non-"_1" functions to take vector instead
6817 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6818 "new" _1 versions of the same name.
6819 (multidictionary): Define.
6820 (std::hash<enum language): New definition.
6821 (collate_pending_symbols_by_language, mdict_create_hashed)
6822 (mdict_create_hashed_expandable, mdict_create_linear)
6823 (mdict_create_linear_expandable, mdict_free)
6824 (find_language_dictionary, create_new_language_dictionary)
6825 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6826 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6827 (mdict_size, mdict_empty): New functions.
6828 * dictionary.h (mdict_iterator): Define.
6830 2019-01-10 Pedro Alves <palves@redhat.com>
6832 * breakpoint.c (read_uploaded_action)
6833 (create_tracepoint_from_upload): Adjust to use
6834 gdb::unique_xmalloc_ptr.
6835 * ctf.c (ctf_write_uploaded_tp):
6836 (SET_ARRAY_FIELD): Use emplace_back.
6837 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6838 * tracefile-tfile.c (tfile_write_uploaded_tp):
6839 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6840 gdb::unique_xmalloc_ptr.
6841 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6842 at_string, cond_string, cmd_strings>: Replace char pointers
6843 with gdb::unique_xmalloc_ptr.
6845 2019-01-10 Pedro Alves <palves@redhat.com>
6847 * solib-target.c (library_list_start_library): Don't xstrdup name.
6849 2019-01-10 Pedro Alves <palves@redhat.com>
6851 * mdebugread.c (parse_partial_symbols): Use
6852 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6854 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6856 * linux-fork.c (scoped_switch_fork_info)
6857 <~scoped_switch_fork_info>: Fix incorrect variable name.
6859 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6861 * linux-fork.c (scoped_switch_fork_info)
6862 <scoped_switch_fork_info>: Make explicit.
6863 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6865 2019-01-10 Tom Tromey <tom@tromey.com>
6867 * objfiles.h (objfile::reset_psymtabs): Update.
6868 * objfiles.c (objfile::objfile): Update.
6869 * psymtab.h (psymtab_storage::obstack): Update.
6870 (psymtab_storage::m_obstack): Use gdb::optional.
6871 (class psymtab_storage): Update comment. Remove objfile
6873 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6875 2019-01-10 Tom Tromey <tom@tromey.com>
6877 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6878 <free_psymtabs>: Now private.
6879 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6880 (allocate_psymtab): Use new method.
6882 2019-01-10 Tom Tromey <tom@tromey.com>
6884 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6885 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6886 * mdebugread.c (parse_partial_symbols): Use
6887 allocate_dependencies.
6888 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6889 allocate_dependencies.
6890 (process_psymtab_comp_unit_reader)
6891 (build_type_psymtab_dependencies): Likewise.
6892 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6894 2019-01-10 Tom Tromey <tom@tromey.com>
6896 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6897 PSYMBOL_SET_LANGUAGE.
6898 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6900 2019-01-10 Tom Tromey <tom@tromey.com>
6902 * psymtab.h (psymtab_storage::obstack): New method.
6903 <m_obstack>: Rename from obstack; now private.
6904 * psymtab.c (psymtab_storage): Update.
6905 * dwarf2read.c (create_addrmap_from_index)
6906 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6909 2019-01-10 Tom Tromey <tom@tromey.com>
6911 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6912 * objfiles.h (objfile::reset_psymtabs): New method.
6914 2019-01-10 Tom Tromey <tom@tromey.com>
6916 * symmisc.c (print_symbol_bcache_statistics): Update.
6917 (print_objfile_statistics): Update.
6918 * symfile.c (reread_symbols): Update.
6919 * psymtab.h (class psymtab_storage): New.
6920 * psymtab.c (psymtab_storage): New constructor.
6921 (~psymtab_storage): New destructor.
6922 (require_partial_symbols): Update.
6923 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6924 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6925 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6926 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6927 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6928 (start_psymtab_common, end_psymtab_common)
6929 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6930 (allocate_psymtab): Update.
6931 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6933 (dump_psymtab_addrmap, maintenance_print_psymbols)
6934 (maintenance_check_psymtabs): Update.
6935 (class objfile_psymtabs): Move to objfiles.h.
6936 * psympriv.h (discard_psymtab): Now inline.
6937 (psymtab_discarder::psymtab_discarder): Update.
6938 (psymtab_discarder::~psymtab_discarder): Update.
6939 (ALL_OBJFILE_PSYMTABS): Rewrite.
6940 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6941 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6943 <partial_symtabs>: New field.
6944 (class objfile_psymtabs): Move from psymtab.h. Update.
6945 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6947 (objfile::~objfile): Don't destroy psymbol_cache.
6948 * mdebugread.c (parse_partial_symbols): Update.
6949 * dwarf2read.c (create_addrmap_from_index)
6950 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6951 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6952 (add_partial_subprogram, dwarf2_ranges_read): Update.
6953 * dwarf-index-write.c (write_address_map)
6954 (write_one_signatured_type, recursively_write_psymbols)
6955 (class debug_names, class debug_names, write_psymtabs_to_index):
6958 2019-01-10 Tom Tromey <tom@tromey.com>
6960 * symtab.h (SYMBOL_SET_NAMES): Update.
6961 (symbol_set_names): Update.
6962 (MSYMBOL_SET_NAMES): Update.
6963 * symtab.c (symbol_set_names): Change argument to be an
6964 objfile_per_bfd_storage.
6965 * psymtab.c (add_psymbol_to_bcache): Update.
6966 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6968 2019-01-10 Tom Tromey <tom@tromey.com>
6970 * symtab.c (create_demangled_names_hash): Change argument to be an
6971 objfile_per_bfd_storage.
6972 (symbol_set_names): Update.
6974 2019-01-10 Tom Tromey <tom@tromey.com>
6976 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6978 * psymtab.c (init_psymbol_list): Do nothing if already called.
6979 * psympriv.h (init_psymbol_list): Add comment.
6980 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6982 * dbxread.c (dbx_symfile_read): Unconditionally call
6985 2019-01-10 Tom Tromey <tom@tromey.com>
6987 * xcoffread.c (scan_xcoff_symtab): Update.
6988 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6990 * mdebugread.c (parse_partial_symbols)
6991 (handle_psymbol_enumerators): Update.
6992 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6993 * dbxread.c (read_dbx_symtab): Update.
6994 * psympriv.h (psymbol_placement): New enum.
6995 (add_psymbol_to_list): Update.
6997 2019-01-10 Tom Tromey <tom@tromey.com>
6999 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
7000 static_psymbols parameters.
7001 (scan_xcoff_symtab): Update.
7002 * psymtab.c (start_psymtab_common): Remove global_psymbols and
7003 static_psymbols parameters.
7004 * psympriv.h (start_psymtab_common): Update.
7005 * mdebugread.c (parse_partial_symbols): Update.
7006 * dwarf2read.c (create_partial_symtab): Update.
7007 * dbxread.c (read_dbx_symtab): Update.
7008 (start_psymtab): Remove global_psymbols and static_psymbols
7011 2019-01-10 Tom Tromey <tom@tromey.com>
7013 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
7014 * psymtab.c (allocate_psymtab): Add comment.
7015 * psympriv.h (allocate_psymtab): Add comment.
7016 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
7018 * dbxread.c (dbx_end_psymtab): Remove some initializations.
7020 2019-01-10 Tom Tromey <tom@tromey.com>
7022 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7024 * mipsread.c: Include mdebugread.h.
7025 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7027 * elfread.c: Include mdebugread.h.
7029 2019-01-09 Tom Tromey <tom@tromey.com>
7031 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
7032 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
7033 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
7034 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
7035 (psym_lookup_symbol, psym_find_last_source_symtab)
7036 (psym_forget_cached_source_info, psym_print_stats)
7037 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
7038 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
7039 (psym_map_matching_symbols, psym_expand_symtabs_matching)
7040 (psym_find_compunit_symtab_by_address)
7041 (maintenance_print_psymbols, maintenance_info_psymtabs)
7042 (maintenance_check_psymtabs): Use ranged for.
7043 * psymtab.h (class objfile_psymtabs): New.
7044 (require_partial_symbols): Return objfile_psymtabs.
7045 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
7047 2019-01-09 Tom Tromey <tom@tromey.com>
7049 * symfile.c (overlay_invalidate_all, find_pc_overlay)
7050 (find_pc_mapped_section, list_overlays_command)
7051 (map_overlay_command, unmap_overlay_command)
7052 (simple_overlay_update): Use all_objfiles.
7053 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
7054 * printcmd.c (info_symbol_command): Use all_objfiles.
7055 * objfiles.h (ALL_OBJSECTIONS): Remove.
7056 * maint.c (maintenance_translate_address): Use all_objfiles.
7057 * gcore.c (gcore_create_callback): Use all_objfiles.
7058 (objfile_find_memory_regions): Likewise.
7060 2019-01-09 Tom Tromey <tom@tromey.com>
7062 * symtab.c (find_line_symtab, info_sources_command)
7063 (make_source_files_completion_list): Use objfile_compunits.
7064 * source.c (select_source_symtab): Use objfile_compunits.
7065 * objfiles.h (struct objfile): Update comment.
7066 (ALL_OBJFILES): Remove.
7067 (ALL_FILETABS): Remove.
7068 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
7071 2019-01-09 Tom Tromey <tom@tromey.com>
7073 * symmisc.c (print_objfile_statistics, dump_objfile)
7074 (maintenance_print_symbols): Use compunit_filetabs.
7075 * source.c (forget_cached_source_info_for_objfile): Use
7077 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
7078 (ALL_FILETABS): Use compunit_filetabs.
7079 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
7080 * coffread.c (coff_symtab_read): Use compunit_filetabs.
7082 2019-01-09 Tom Tromey <tom@tromey.com>
7084 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
7085 (compunit_filetabs): New.
7086 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
7088 (info_sources_command, make_source_files_completion_list): Remove
7090 * symmisc.c (print_objfile_statistics, dump_objfile)
7091 (maintenance_print_symbols): Remove declaration.
7092 (maintenance_info_symtabs): Use compunit_filetabs.
7093 (maintenance_info_line_tables): Likewise.
7094 * source.c (select_source_symtab): Change local variable name.
7095 (forget_cached_source_info_for_objfile): Remove declaration.
7096 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
7097 * objfiles.c (objfile_relocate1): Remove declaration.
7098 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7100 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
7101 * coffread.c (coff_symtab_read): Remove declaration.
7102 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
7105 2019-01-09 Tom Tromey <tom@tromey.com>
7107 * symtab.c (lookup_objfile_from_block)
7108 (find_pc_sect_compunit_symtab, search_symbols)
7109 (default_collect_symbol_completion_matches_break_on): Use
7111 * objfiles.h (ALL_COMPUNITS): Remove.
7112 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
7113 * cp-support.c (add_symbol_overload_list_qualified): Use
7115 * ada-lang.c (ada_collect_symbol_completion_matches)
7116 (ada_add_global_exceptions): Use objfile_compunits.
7118 2019-01-09 Tom Tromey <tom@tromey.com>
7120 * source.c (select_source_symtab)
7121 (forget_cached_source_info_for_objfile): Remove declaration.
7122 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7124 * maint.c (count_symtabs_and_blocks): Remove declaration.
7125 * cp-support.c (add_symbol_overload_list_qualified): Remove
7127 * coffread.c (coff_symtab_read): Remove declaration.
7128 * symtab.c (lookup_symbol_in_objfile_symtabs)
7129 (basic_lookup_transparent_type_1): Use objfile_compunits.
7130 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
7131 (info_sources_command, search_symbols)
7132 (default_collect_symbol_completion_matches_break_on)
7133 (make_source_files_completion_list): Remove declaration.
7134 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
7135 (ada_collect_symbol_completion_matches)
7136 (ada_add_global_exceptions): Remove declaration.
7137 * linespec.c (iterate_over_all_matching_symtabs): Use
7139 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
7140 (class objfile_compunits): New.
7141 (ALL_COMPUNITS): Use objfile_compunits.
7142 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
7143 (maintenance_check_symtabs, maintenance_info_line_tables): Use
7145 * objfiles.c (objfile_relocate1): Use objfile_compunits.
7147 2019-01-09 Tom Tromey <tom@tromey.com>
7149 * symtab.c (search_symbols)
7150 (default_collect_symbol_completion_matches_break_on): Use
7152 * ada-lang.c (ada_lookup_simple_minsym)
7153 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
7154 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
7155 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
7157 * coffread.c (coff_symfile_read): Use objfile_msymbols.
7158 * symmisc.c (dump_msymbols): Use objfile_msymbols.
7159 * objc-lang.c (find_methods): Use objfile_msymbols.
7160 (info_selectors_command, info_classes_command): Likewise.
7161 * stabsread.c (scan_file_globals): Use objfile_msymbols.
7162 * objfiles.h (class objfile_msymbols): New.
7163 (ALL_OBJFILE_MSYMBOLS): Remove.
7164 (ALL_MSYMBOLS): Remove.
7166 2019-01-09 Tom Tromey <tom@tromey.com>
7168 * common/next-iterator.h (next_adapter): Add Iterator template
7170 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
7171 (class all_objfiles_safe): New.
7172 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
7173 * objfiles.c (put_objfile_before): Update comment.
7174 (add_separate_debug_objfile): Likewise.
7175 (free_all_objfiles): Use all_objfiles_safe.
7176 (objfile_purge_solibs): Likewise.
7178 2019-01-09 Tom Tromey <tom@tromey.com>
7180 * symtab.c (iterate_over_symtabs, matching_obj_sections)
7181 (expand_symtab_containing_pc, lookup_static_symbol)
7182 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
7183 (find_symbol_at_address, find_line_symtab, find_main_name): Use
7185 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
7186 * breakpoint.c (create_overlay_event_breakpoint)
7187 (create_longjmp_master_breakpoint)
7188 (create_std_terminate_master_breakpoint)
7189 (create_exception_master_breakpoint): Use all_objfiles.
7190 * linux-thread-db.c (try_thread_db_load_from_pdir)
7191 (has_libpthread): Use all_objfiles.
7192 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
7193 * linespec.c (iterate_over_all_matching_symtabs)
7194 (search_minsyms_for_name): Use all_objfiles.
7195 * maint.c (maintenance_info_sections): Use all_objfiles.
7196 * main.c (captured_main_1): Use all_objfiles.
7197 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
7198 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
7199 * guile/scm-pretty-print.c
7200 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
7201 * solib-spu.c (append_ocl_sos): Use all_objfiles.
7202 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
7203 (maintenance_print_msymbols): Use all_objfiles.
7204 * source.c (select_source_symtab): Use all_objfiles.
7205 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
7206 * symfile.c (remove_symbol_file_command)
7207 (expand_symtabs_matching, map_symbol_filenames): Use
7209 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
7211 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
7212 * objc-lang.c (find_methods): Use all_objfiles.
7213 * objfiles.c (have_partial_symbols, have_full_symbols)
7214 (have_minimal_symbols, qsort_cmp)
7215 (default_iterate_over_objfiles_in_search_order): Use
7217 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
7218 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
7219 (maintenance_check_psymtabs): Use all_objfiles.
7220 (ALL_PSYMTABS): Remove.
7221 * compile/compile-object-run.c (do_module_cleanup): Use
7223 * blockframe.c (find_pc_partial_function): Use all_objfiles.
7224 * cp-support.c (add_symbol_overload_list_qualified): Use
7226 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
7228 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
7229 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
7231 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
7232 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
7233 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7235 * solib.c (solib_read_symbols): Use all_objfiles
7237 2019-01-09 Tom Tromey <tom@tromey.com>
7239 * probe.c (parse_probes_in_pspace): Use all_objfiles.
7240 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
7242 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
7243 * symmisc.c (print_symbol_bcache_statistics)
7244 (print_objfile_statistics, maintenance_print_objfiles)
7245 (maintenance_info_symtabs, maintenance_check_symtabs)
7246 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
7248 * source.c (forget_cached_source_info): Use all_objfiles.
7249 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
7250 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
7251 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
7252 * objfiles.c (update_section_map): Use all_objfiles.
7253 (shared_objfile_contains_address_p): Likewise.
7254 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
7255 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
7257 2019-01-09 Tom Tromey <tom@tromey.com>
7259 * common/next-iterator.h: New file.
7260 * objfiles.h (class all_objfiles): New.
7261 (struct objfile_iterator): New.
7263 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7265 * NEWS: Move the description of the changed "frame", "select-frame",
7266 and "info frame" commands to the Changed commands section.
7268 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
7270 * gdbtypes.c (check_stub_method_group): Remove handling of old
7272 * linespec.c (find_methods): Likewise.
7273 * stabsread.c (read_member_functions): Likewise.
7274 * valops.c (search_struct_method): Likewise.
7275 (value_struct_elt_for_reference): Likewise.
7276 * NEWS: Mention this change.
7278 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7280 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
7282 * source.c (print_source_lines_base): Update line number check.
7283 (print_source_lines): New function.
7284 (source_lines_range::source_lines_range): New function.
7285 * source.h (class source_lines_range): New class.
7286 (print_source_lines): New declaration.
7288 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7290 * linespec.c (linespec_state_destructor): Free self->canonical_names.
7292 2019-01-08 Tom Tromey <tom@tromey.com>
7293 Simon Marchi <simon.marchi@ericsson.com>
7296 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
7297 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
7298 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7299 * f-exp.y (DOLLAR_VARIABLE): Likewise.
7300 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
7301 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7303 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7305 * source.c (select_source_symtab): Move header comment to
7306 declaration in source.h.
7307 (forget_cached_source_info_for_objfile): Likewise.
7308 (forget_cached_source_info): Likewise.
7309 (identify_source_line): Likewise.
7310 * source.h (identify_source_line): Move declaration from symtab.h
7311 and add comment from source.c
7312 (print_source_lines): Likewise.
7313 (forget_cached_source_info_for_objfile): Likewise.
7314 (forget_cached_source_info): Likewise.
7315 (select_source_symtab): Likewise.
7316 (enum print_source_lines_flag): Move definition from symtab.h.
7317 * symtab.h (identify_source_line): Move declaration to source.h.
7318 (print_source_lines): Likewise.
7319 (forget_cached_source_info_for_objfile): Likewise.
7320 (forget_cached_source_info): Likewise.
7321 (select_source_symtab): Likewise.
7322 (enum print_source_lines_flag): Move definition to source.h.
7323 * tui/tui-hooks.c: Add 'source.h' include.
7325 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7327 * source.c (print_source_lines_base): Handle requests to print
7328 reverse line number sequences, and guard against empty lines
7331 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7333 * source.c (print_source_lines_base): Fix skip of '\r' if next
7336 2019-01-06 Tom Tromey <tom@tromey.com>
7338 * c-exp.y (struct c_parse_state) <macro_original_text,
7339 expansion_obstack>: New member.
7340 (macro_original_text, expansion_obstack): Remove globals.
7341 (scan_macro_expansion, scanning_macro_expansion)
7342 (finished_macro_expansion): Update.
7343 (scan_macro_cleanup): Remove.
7344 (yylex, c_parse): Update.
7346 2019-01-06 Tom Tromey <tom@tromey.com>
7348 * c-exp.y (struct c_parse_state) <strings>: New member.
7349 (operator_stoken): Update.
7351 2019-01-06 Tom Tromey <tom@tromey.com>
7353 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7354 (union type_stack_elt) <typelist_val>: Now a pointer to
7356 (type_stack_cleanup): Don't declare.
7357 (push_typelist): Update.
7358 * parse.c (pop_typelist): Return a std::vector.
7359 (push_typelist): Take a std::vector.
7360 (follow_types): Update. Do not free args.
7361 (type_stack_cleanup): Remove.
7362 * c-exp.y (struct c_parse_state): New.
7363 (cpstate): New global.
7364 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7365 (nonempty_typelist): Update.
7366 (func_mod): Create a new vector.
7367 (c_parse): Create a c_parse_state.
7368 (check_parameter_typelist): Do not delete params.
7369 (function_method): Update. Do not delete type_list.
7371 2019-01-06 Tom Tromey <tom@tromey.com>
7374 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7376 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7377 (print_return_value): Likewise.
7379 2019-01-05 Tom Tromey <tom@tromey.com>
7381 * contrib/cleanup_check.py: Remove.
7382 * contrib/gcc-with-excheck: Remove.
7383 * contrib/exsummary.py: Remove.
7384 * contrib/excheck.py: Remove.
7386 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7388 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7389 NULL. Initialize tpprev to NULL instead of assigning it
7390 to NULL on the next statement.
7391 * windows-nat.c (windows_delete_thread): Remove check for
7392 main_thread_id before printing thread exit notifications.
7393 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7394 Remove thread ID check against main_thread_id.
7395 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7396 windows_delete_thread.
7397 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7399 2019-01-04 Tom Tromey <tom@tromey.com>
7401 * compile/compile.c (_initialize_compile): Use upper case for
7402 metasyntactic variables.
7403 * symmisc.c (_initialize_symmisc): Use upper case for
7404 metasyntactic variables.
7405 * psymtab.c (_initialize_psymtab): Use upper case for
7406 metasyntactic variables.
7407 * demangle.c (demangle_command): Use upper case for metasyntactic
7409 (_initialize_demangler): Likewise.
7410 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7413 2019-01-03 Tom Tromey <tom@tromey.com>
7415 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7417 2019-01-03 Tom Tromey <tom@tromey.com>
7419 * python/py-symtab.c (salpy_str): Update.
7420 (struct salpy_sal_object) <symtab>: Now a PyObject.
7421 (salpy_dealloc): Update.
7422 (del_objfile_sal): Use gdbpy_ref.
7424 2019-01-03 Tom Tromey <tom@tromey.com>
7426 * python/py-type.c (convert_field): Use new_reference. Return
7428 (make_fielditem): Return gdbpy_ref.
7429 (typy_fields): Update.
7430 (typy_getitem): Update.
7431 (field_name): Return gdbpy_ref. Use new_reference.
7432 (typy_iterator_iternext): Update.
7434 2019-01-03 Tom Tromey <tom@tromey.com>
7436 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7438 2019-01-03 Tom Tromey <tom@tromey.com>
7440 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7441 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7442 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7443 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7444 (pspy_set_type_printers): Likewise.
7445 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7446 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7447 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7448 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7449 (objfpy_set_type_printers): Likewise.
7451 2019-01-03 Tom Tromey <tom@tromey.com>
7453 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7454 (gdbpy_print_stack): Use gdbpy_err_fetch.
7455 * python/python-internal.h (class gdbpy_err_fetch): New class.
7456 (class gdbpy_enter) <m_error_type, m_error_value,
7457 m_error_traceback>: Remove.
7458 <m_error>: New member.
7459 (gdbpy_exception_to_string): Don't declare.
7460 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7461 * python/py-value.c (convert_value_from_python): Use
7463 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7464 gdbpy_exception_to_string.
7465 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7466 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7469 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7471 * linux-nat.c (delete_lwp_cleanup): Delete.
7472 (struct lwp_deleter): New struct.
7473 (lwp_info_up): New typedef.
7474 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7477 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7479 * linux-fork.c (class scoped_switch_fork_info): New class.
7480 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7482 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7484 * valops.c (find_overload_match): Remove use of null_cleanup, and
7485 calls to do_cleanups.
7487 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7489 * compile/compile-cplus-types.c
7490 (compile_cplus_instance::decl_name): Handle changes to
7492 * cp-support.c (cp_func_name): Update header comment, update
7494 * cp-support.h (cp_func_name): Update return type in declaration.
7495 * valops.c (find_overload_match): Move temp_func local to top
7496 level of function and change its type. Use temp_func to hold and
7497 delete temporary string obtained from cp_func_name.
7499 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7501 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7502 gdb::char_vector, remove cleanup, and update uses of `msg`.
7504 2019-01-03 Jim Wilson <jimw@sifive.com>
7506 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7508 2019-01-02 Tom Tromey <tom@tromey.com>
7510 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7511 (tdesc_parse_xml): Remove cleanups.
7512 * target-descriptions.h (make_cleanup_free_target_description):
7514 (target_desc_deleter): New struct.
7515 (target_desc_up): New typedef.
7516 * target-descriptions.c (target_desc_deleter::operator()): Rename
7517 from free_target_description.
7518 (make_cleanup_free_target_description): Remove.
7520 2019-01-02 Tom Tromey <tom@tromey.com>
7522 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7523 constructor, destructor.
7524 (linespec_parser): Remove typedef.
7525 (~linespec_parser): Rename from linespec_parser_delete.
7526 (linespec_lex_to_end, linespec_complete_label)
7527 (linespec_complete): Update.
7528 (decode_line_full): Remove cleanups.
7529 (decode_line_1): Update.
7531 2019-01-02 Tom Tromey <tom@tromey.com>
7533 * python/python-internal.h (inferior_to_inferior_object): Change
7535 * python/py-exitedevent.c (create_exited_event_object): Update.
7536 * python/py-inferior.c (inferior_to_inferior_object): Return
7538 (python_new_inferior, python_inferior_deleted)
7539 (thread_to_thread_object, delete_thread_object)
7540 (build_inferior_list, gdbpy_selected_inferior): Update.
7541 * python/py-infthread.c (create_thread_object): Update. Also fail
7542 if inferior_to_inferior_object fails.
7544 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7546 * inferior.h (class inferior) <displaced_step_state>: New field.
7547 * infrun.h (struct displaced_step_state): Move here from
7548 infrun.c. Initialize fields, add constructor.
7549 <inf>: Remove field.
7550 <reset>: New method.
7551 * infrun.c (struct displaced_step_inferior_state): Move to
7553 (displaced_step_inferior_states): Remove.
7554 (get_displaced_stepping_state): Adust.
7555 (displaced_step_in_progress_any_inferior): Adjust.
7556 (displaced_step_in_progress_thread): Adjust.
7557 (displaced_step_in_progress): Adjust.
7558 (add_displaced_stepping_state): Remove.
7559 (get_displaced_step_closure_by_addr): Adjust.
7560 (remove_displaced_stepping_state): Remove.
7561 (infrun_inferior_exit): Call displaced_step_state.reset.
7562 (use_displaced_stepping): Don't check for NULL.
7563 (displaced_step_prepare_throw): Call
7564 get_displaced_stepping_state.
7565 (displaced_step_fixup): Don't check for NULL.
7566 (prepare_for_detach): Don't check for NULL.
7568 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7570 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7571 in case of call that did not complete.
7573 2019-01-02 Andrey Utkin <autkin@undo.io>
7575 * symfile.c (find_separate_debug_file): Fix search of debug files for
7578 2019-01-02 Tom Tromey <tom@tromey.com>
7580 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7582 * python/py-frame.c (frapy_older): Remove cast.
7583 (frapy_newer): Likewise.
7584 * python/py-breakpoint.c (local_setattro): Remove cast.
7585 * python/py-arch.c (archpy_name): Remove local variable.
7586 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7588 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7590 * unittests/basic_string_view/element_access/char/empty.cc:
7591 Fix year range in copyright header.
7593 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7595 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7597 <operator==>: Update with for removed field.
7599 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7600 <isa_features>: ...this.
7601 <abi_features>: New field.
7602 (riscv_isa_flen): Update comment.
7603 (riscv_abi_xlen): New declaration.
7604 (riscv_abi_flen): New declaration.
7605 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7607 (riscv_abi_xlen): New function.
7608 (riscv_isa_flen): Update to get answer from isa_features.
7609 (riscv_abi_flen): New function.
7610 (riscv_has_fp_abi): Update to get answer from abi_features.
7611 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7613 (riscv_call_info) <xlen, flen>: Update comment.
7614 (riscv_call_arg_struct): Remove invalid assertions
7615 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7617 (riscv_gdbarch_init): Gather isa features and abi features
7618 separately, ensure both match on the gdbarch when reusing an old
7619 gdbarch. Relax an error check to allow 32-bit abi float to run on
7620 a target with 64-bit float hardware.
7622 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7624 * source.c (search_command_helper): Stop reverse search
7625 when line 1 has been searched.
7627 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7629 * record-full.c (record_full_base_target::close): Rewrite
7630 record_full_core_buf_list free logic.
7632 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7634 * break-catch-syscall.c (print_one_catch_syscall): xfree
7637 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7639 * top.c (print_gdb_version): Update Copyright year in version
7642 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7644 Update copyright year range in all GDB files.
7646 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7648 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7650 For older changes see ChangeLog-2018.
7656 version-control: never