1 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3 * source-cache.c (source_cache::get_plain_source_lines): Use
4 open_source_file_with_line_charpos instead of just
5 open_source_file, remove call to find_source_lines.
6 (source_cache::get_source_lines): Likewise.
7 * source.c (find_source_lines): Make static.
8 (get_filename_and_charpos): Renamed into...
9 (open_source_file_with_line_charpos): ..this along with changes to
10 return a scoped_fd, and some other minor clean ups.
11 (identify_source_line): Use open_source_file_with_line_charpos.
12 (search_command_helper): Use open_source_file_with_line_charpos
13 instead of just open_source_file, remove call to
15 * source.h (open_source_file_with_line_charpos): Declare new
17 (find_source_lines): Delete declaration.
19 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
21 * source.c (get_filename_and_charpos): Remove fullname
23 (identify_source_line): Update call to get_filename_and_charpos.
25 2019-06-14 Tom Tromey <tromey@adacore.com>
28 * ui-style.h (skip_ansi_escape): Update comment.
29 * ui-file.h (class no_terminal_escape_file): New class.
30 * ui-file.c (no_terminal_escape_file::write)
31 (no_terminal_escape_file::puts): New methods.
32 * cli/cli-logging.c (handle_redirections): Use
33 no_terminal_escape_file.
35 2019-06-14 Tom Tromey <tromey@adacore.com>
37 * NEWS: Move convenience variable news above Python news.
39 2019-06-14 Tom Tromey <tom@tromey.com>
41 * gnulib: Move directory to top-level.
42 * configure.ac: Don't configure gnulib.
44 * common/common-defs.h: Use new path to gnulib.
45 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
47 (INCGNU): Look in new gnulib location.
48 (HFILES_NO_SRCDIR): Remove gnulib files.
49 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
50 (generated_files): Remove GNULIB_H.
51 ($(LIBGNU), all-lib): Remove targets.
52 (distclean): Don't mention GNULIB_BUILDDIR.
53 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
55 2019-06-14 Tom Tromey <tromey@adacore.com>
57 * symfile.c (add_symbol_file_command): Remove obsolete comment.
58 Warn if symbol file does not provide any symbols.
60 2019-06-14 Tom Tromey <tromey@adacore.com>
62 * source.c (find_and_open_source): Respect basenames_may_differ.
64 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
66 * annotate.c (annotate_breakpoints_invalid): Make use of
67 scoped_restore_terminal_state.
68 (annotate_frames_invalid): Likewise.
70 2019-06-14 Tom Tromey <tromey@adacore.com>
72 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
73 allow assignment to an internalvar.
75 2019-06-14 Tom Tromey <tromey@adacore.com>
77 * ada-lex.l: Allow "_" in attribute names.
79 2019-06-14 Tom Tromey <tromey@adacore.com>
82 * regcache.c (registers_changed): Don't call alloca.
83 * top.c (execute_command): Don't call alloca.
85 2019-06-13 Pedro Alves <palves@redhat.com>
87 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
88 'expression'. When parsing an expression, error out if there's
89 junk after "unlimited".
90 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
91 (do_set_command): Adjust calls to is_unlimited_literal.
93 2019-06-13 Pedro Alves <palves@redhat.com>
95 * compile/compile.c (make_compile_options_def_group): Add braces
96 around array_view initializer.
97 * thread.c (make_thread_apply_all_options_def_group)
98 (make_thread_apply_all_options_def_group): Likewise.
100 2019-06-13 Pedro Alves <palves@redhat.com>
102 * NEWS (New commands): Mention "maint test-options
103 require-delimiter", "maint test-options unknown-is-error", "maint
104 test-options unknown-is-operand" and "maint show
105 test-options-completion-result".
106 (New command options, command completion): New section.
107 (Completion improvements): New section.
108 Mention that you can abbreviate "unlimited".
110 2019-06-13 Pedro Alves <palves@redhat.com>
112 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
113 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
114 * unittests/cli-utils-selftests.c (test_parse_flags)
115 (test_parse_flags_qcs): Delete.
116 (test_cli_utils): Don't call deleted functions.
118 2019-06-13 Pedro Alves <palves@redhat.com>
120 * thread.c: Include "cli/cli-option.h".
121 (tp_array_compar_ascending): Global.
122 (tp_array_compar): Delete function.
123 (tp_array_compar_ascending, tp_array_compar_descending): New
125 (ascending_option_def, qcs_flag_option_def)
126 (thr_qcs_flags_option_defs)
127 (make_thread_apply_all_options_def_group)
128 (make_thread_apply_options_def_group): New.
129 (thread_apply_all_command): Use gdb::option::process_options.
130 (thread_apply_command_completer)
131 (thread_apply_all_command_completer): New.
132 (thread_apply_command): Use gdb::option::process_options.
133 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
134 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
135 to generate help text of "thread apply". Adjust "taas"'s help.
136 * tid-parse.c (tid_range_parser::in_thread_range): New method.
137 * tid-parse.h (tid_range_parser::in_thread_range): New method.
139 2019-06-13 Pedro Alves <palves@redhat.com>
141 * thread.c (thread_apply_command): Check for invalid TID with
142 isdigit instead of !isalpha.
144 2019-06-13 Pedro Alves <palves@redhat.com>
146 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
147 (validate_flags_qcs): New.
148 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
149 (validate_flags_qcs): Declare.
150 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
151 (make_frame_apply_options_def_group): New.
152 (frame_apply_command_count): Process options with
153 gdb::option::process_options.
154 (frame_apply_completer): New.
155 (frame_apply_level_completer, frame_apply_all_completer)
156 (frame_apply_completer): New.
157 (_initialize_stack): Update help of "frame apply", "frame apply
158 level", "frame apply all" and "faas" to mention supported options
159 and install command completers.
160 * stack.h (frame_apply_all_completer): Declare.
161 * thread.c: Include "stack.h".
162 (tfaas_command): Add "--".
163 (_initialize_thread): Update help "tfaas" to mention supported
164 options and install command completer.
166 2019-06-13 Pedro Alves <palves@redhat.com>
168 * completer.c (complete_nested_command_line): New.
169 (gdb_completion_word_break_characters_throw): Add assertion.
170 * completer.h (complete_nested_command_line): Declare.
172 2019-06-13 Pedro Alves <palves@redhat.com>
174 * stack.c (parse_backtrace_qualifiers): New.
175 (backtrace_command): Use it.
176 (backtrace_command_completer): Complete on qualifiers.
178 2019-06-13 Pedro Alves <palves@redhat.com>
180 * frame.c: Include "cli/cli-option.h.
181 (user_set_backtrace_options): New.
182 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
184 (get_prev_frame): Adjust.
185 (boolean_option_def, uinteger_option_def)
186 (set_backtrace_option_defs): New.
187 (_initialize_frame): Adjust and use
188 gdb::option::add_setshow_cmds_for_options to install "set
189 backtrace past-main" and "set backtrace past-entry".
190 * frame.h: Include "cli/cli-option.h".
191 (struct frame_print_options): Forward declare.
192 (print_frame_arguments_all, print_frame_arguments_scalars)
193 (print_frame_arguments_none): Declare.
194 (print_entry_values): Delete declaration.
195 (struct frame_print_options, user_frame_print_options): New.
196 (struct set_backtrace_options): New.
197 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
198 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
199 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
200 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
201 (list_args_or_locals): Add frame_print_options parameter.
202 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
203 * python/py-framefilter.c (enumerate_args): Pass down
204 USER_FRAME_PRINT_OPTIONS.
205 * stack.c: Include "cli/cli-option.h".
206 (print_frame_arguments_all, print_frame_arguments_scalars)
207 (print_frame_arguments_none): Declare.
208 (print_raw_frame_arguments, print_entry_values): Delete.
209 (user_frame_print_options): New.
210 (boolean_option_def, enum_option_def, frame_print_option_defs):
212 (struct backtrace_cmd_options): New.
213 (bt_flag_option_def): New.
214 (backtrace_command_option_defs): New.
215 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
216 (print_frame_arg, read_frame_arg, print_frame_args)
217 (print_frame_info, print_frame): Add frame_print_options parameter
219 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
220 (backtrace_command_1): Add frame_print_options and
221 backtrace_cmd_options parameters and use them.
222 (make_backtrace_options_def_group): New.
223 (backtrace_command): Process command options with
224 gdb::option::process_options.
225 (backtrace_command_completer): New.
226 (_initialize_stack): Extend "backtrace"'s help to mention
227 supported options. Install completer for "backtrace".
228 Install some settings commands with add_setshow_cmds_for_options.
230 2019-06-13 Pedro Alves <palves@redhat.com>
232 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
233 and that "set/show print raw frame-arguments" are now deprecated.
235 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
237 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
238 * stack.c (_initialize_stack): Install "set/show print
239 raw-frame-arguments", and deprecate "set/show print raw
241 * valprint.c (_initialize_valprint): Deprecate "set/show print
244 2019-06-13 Pedro Alves <palves@redhat.com>
246 * compile/compile.c (struct compile_options): New.
247 (compile_flag_option_def, compile_command_option_defs)
248 (make_compile_options_def_group): New.
249 (compile_file_command): Handle options with
250 gdb::option::process_options.
251 (compile_file_command_completer): New function.
252 (compile_code_command): Handle options with
253 gdb::option::process_options.
254 (compile_code_command_completer): New function.
255 (_initialize_compiler): Install completers for "compile code" and
256 "compile file". Mention available options in "compile code" and
257 "compile code"'s help.
258 * completer.c (advance_to_completion_word): New, factored out from
260 (advance_to_expression_complete_word_point): ... this.
261 (advance_to_filename_complete_word_point): New.
262 * completer.h (advance_to_filename_complete_word_point): New
265 2019-06-13 Pedro Alves <palves@redhat.com>
267 * compile/compile.c: Include "cli/cli-option.h".
268 (compile_print_value): Scope data pointer is now a
269 value_print_options pointer; adjust.
270 (compile_print_command): Process options. Scope data pointer is
271 now a value_print_options pointer; adjust.
272 (_initialize_compile): Update "compile print"'s help to include
273 supported options. Install a completer for "compile print".
274 * cp-valprint.c (show_vtblprint, show_objectprint)
275 (show_static_field_print): Delete.
276 (_initialize_cp_valprint): Don't install "set print
277 static-members", "set print vtbl", "set print object" here.
278 * printcmd.c: Include "cli/cli-option.h" and
279 "common/gdb_optional.h".
280 (print_command_parse_format): Rework to fill in a
281 value_print_options instead of a format_data.
282 (print_value): Change parameter type from format_data pointer to
283 value_print_options reference. Adjust.
284 (print_command_1): Process options. Adjust to pass down a
286 (print_command_completer): New.
287 (_initialize_printcmd): Install print_command_completer as
288 handle_brkchars completer for the "print" command. Update
289 "print"'s help to include supported options.
290 * valprint.c: Include "cli/cli-option.h".
291 (show_vtblprint, show_objectprint, show_static_field_print): Moved
292 here from cp-valprint.c.
293 (boolean_option_def, uinteger_option_def)
294 (value_print_option_defs, make_value_print_options_def_group):
295 New. Use gdb::option::add_setshow_cmds_for_options to install
296 "set print elements", "set print null-stop", "set print repeats",
297 "set print pretty", "set print union", "set print array", "set
298 print address", "set print symbol", "set print array-indexes".
299 * valprint.h: Include <string> and "cli/cli-option.h".
300 (make_value_print_options_def_group): Declare.
301 (print_value): Change parameter type from format_data pointer to
302 value_print_options reference.
303 (print_command_completer): Declare.
305 2019-06-13 Pedro Alves <palves@redhat.com>
307 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
308 (COMMON_SFILES): Add maint-test-settings.c.
309 * cli/cli-decode.c (boolean_enums): New global, factored out from
311 (add_setshow_boolean_cmd): ... here.
312 * cli/cli-decode.h (boolean_enums): Declare.
313 * cli/cli-option.c: New file.
314 * cli/cli-option.h: New file.
315 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
316 factored out from ...
317 (parse_cli_boolean_value(const char *)): ... this.
318 (is_unlimited_literal): Change parameter type to pointer to
319 pointer. Adjust and advance ARG pointer.
320 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
321 (parse_cli_var_enum): New, factored out from ...
322 (do_set_command): ... this. Adjust.
323 * cli/cli-setshow.h (parse_cli_boolean_value)
324 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
325 (parse_cli_var_enum): Declare.
326 * cli/cli-utils.c: Include "cli/cli-option.h".
328 * cli/cli-utils.h (get_ulongest): Declare.
329 (check_for_argument): New overloads.
330 * maint-test-options.c: New file.
332 2019-06-13 Pedro Alves <palves@redhat.com>
334 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
335 parse a range if "-" is at the end of the string.
337 2019-06-13 Pedro Alves <palves@redhat.com>
339 * cli/cli-setshow.c (parse_auto_binary_operation)
340 (parse_cli_boolean_value): Don't allow "o".
342 2019-06-13 Pedro Alves <palves@redhat.com>
344 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
345 * NEWS: Mention maint test-settings KIND.
346 * maint-test-settings.c: New file.
348 2019-06-13 Pedro Alves <palves@redhat.com>
350 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
352 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
355 2019-06-13 Pedro Alves <palves@redhat.com>
357 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
360 2019-06-13 Pedro Alves <palves@redhat.com>
362 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
364 2019-06-13 Pedro Alves <palves@redhat.com>
366 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
367 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
369 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
370 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
372 (check_for_argument): Skip spaces after argument.
374 2019-06-13 Pedro Alves <palves@redhat.com>
376 * thread.c (thread_apply_command): Adjust TID parsing.
377 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
378 detected before end of string.
379 (tid_is_in_list): Error out if LIST is invalid.
381 2019-06-13 Pedro Alves <palves@redhat.com>
383 * completer.c (complete_line_internal_1): Rewind completion word
385 (completion_tracker::advance_custom_word_point_by): Change
386 parameter type to int.
387 * completer.h (completion_tracker::advance_custom_word_point_by):
390 2019-06-13 Pedro Alves <palves@redhat.com>
392 * completer.c (advance_to_completion_word): Handle delimiters.
394 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
396 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
398 2019-06-11 Tom Tromey <tom@tromey.com>
400 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
401 (xmalloc_failed): Move to alloc.c.
403 * Makefile.in (COMMON_SFILES): Add alloc.c.
405 2019-06-11 Tom Tromey <tom@tromey.com>
407 * nat/linux-waitpid.c: Don't include server.h.
408 (linux_debug): Remove.
409 (my_waitpid): Update.
411 2019-06-11 Tom Tromey <tromey@adacore.com>
413 * infcall.c (_initialize_infcall): Remove trailing newline from
415 * user-regs.c (_initialize_user_regs): Remove trailing newline
417 * typeprint.c (_initialize_typeprint): Remove trailing newline
419 * reverse.c (_initialize_reverse): Remove trailing newlines from
421 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
423 * language.c (add_set_language_command): Remove trailing newline
425 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
427 * disasm.c (_initialize_disasm): Remove trailing newline from
429 * top.c (init_main): Remove trailing newline from help.
430 * interps.c (_initialize_interpreter): Remove trailing newline
432 * btrace.c (_initialize_btrace): Remove trailing newlines from
434 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
436 * python/python.c (_initialize_python): Remove trailing newline
438 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
440 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
441 from help. Reformat some text.
442 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
444 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
447 2019-06-11 Tom Tromey <tromey@adacore.com>
449 * darwin-nat.c (darwin_decode_exception_message)
450 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
452 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
454 * valops.c (value_slice): Check for not allocated or not
457 2019-06-10 Tom de Vries <tdevries@suse.de>
460 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
461 sure an empty slot (defined by a 32-bit zero pair) is recognized as
464 2019-06-10 Tom de Vries <tdevries@suse.de>
467 * linespec.c (linespec_lexer_lex_string): Remove incorrect
468 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
470 2019-06-10 Tom de Vries <tdevries@suse.de>
473 * symtab.c (struct demangled_name_entry): Add language field.
474 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
475 static minimal symbol". Set and use language field.
477 2019-06-10 Tom Tromey <tromey@adacore.com>
479 * ada-lang.c (_initialize_ada_language): Update help text.
481 2019-06-10 Tom Tromey <tromey@adacore.com>
483 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
485 * guile/guile.c (handle_boot_error): Don't end warning with a
487 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
488 warning with a newline.
489 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
491 (s12z_frame_cache): Likewise.
492 * dwarf-index-cache.c (index_cache::store): Don't end warning with
494 * solib-svr4.c (disable_probes_interface): Don't end warning with
496 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
498 * python/python.c (do_finish_initialization): Don't end warning
501 2019-06-10 Tom Tromey <tom@tromey.com>
503 * python/py-breakpoint.c (gdbpy_breakpoint_created)
504 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
507 2019-06-10 Tom Tromey <tromey@adacore.com>
509 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
511 (elf_new_init): Don't call stabsread_new_init.
512 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
513 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
514 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
516 2019-06-10 Tom de Vries <tdevries@suse.de>
520 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
522 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
524 * source.c (find_and_open_source): Also rewrite relative file
527 2019-04-26 Amos Bird <amosbird@gmail.com>
529 * annotate.c (annotate_thread_exited): Add "thread-exited"
532 2019-06-06 Tom Tromey <tromey@adacore.com>
534 * maint.h (class scoped_command_stats): Use
535 DISABLE_COPY_AND_ASSIGN.
536 <print_time>: New method.
537 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
539 (scoped_command_stats::print_time): New method.
541 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
543 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
544 instructions of lengths 6 or 8 bytes.
546 2019-06-04 Pedro Alves <palves@redhat.com>
548 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
550 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
551 * breakpoint.c (condition_completer): Likewise.
552 * cli/cli-dump.c (scan_expression): Likewise.
553 * common/filestuff.c (mkdir_recursive): Likewise.
554 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
555 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
556 (gdb_abspath): Likewise.
557 * compile/compile-cplus-types.c
558 (compile_cplus_instance::decl_name): Likewise.
559 * completer.c (complete_explicit_location):
560 (signal_completer, reg_or_group_completer_1): Likewise.
561 * cp-support.c (cp_remove_params_if_any): Likewise.
562 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
563 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
564 * infcmd.c (strip_bg_char): Likewise.
565 * linespec.c (copy_token_string): Likewise.
566 * mi/mi-main.c (output_cores): Likewise.
567 * psymtab.c (psymtab_search_name):
568 * symfile.c (test_set_ext_lang_command): Likewise.
569 * target.c (target_fileio_read_stralloc): Likewise.
570 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
571 * value.c (complete_internalvar): Likewise.
573 2019-06-04 Christian Biesinger <cbiesinger@google.com>
575 Add objfile property to gdb.Type.
576 * NEWS: Mention Python API addition.
577 * python/py-type.c (typy_get_objfile): New method.
579 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
581 * NEWS: Mention the new set|show style [title|highlight].
582 Mention changes to "show style", "help" and "apropos".
584 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
586 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
587 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
588 instead of print_help_for_command.
589 (print_doc_of_command): New function.
590 (help_list): Add 'apropos -v word' suggestion.
591 (print_help_for_command): Style the command name using title style.
592 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
593 (_initialize_cli_cmds): Describe -v in apropos_command help.
595 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
597 * cli/cli-style.h (cli_style_option): Add name in constructor,
598 add m_name class member, add constructor with intensity,
599 add name class function.
600 (cli_style_option::add_setshow_commands): Remove name argument.
601 (highlight_style, title_style): New styles.
602 * cli/cli-style.c (do_show): New function that shows a style
603 characteristic styling the style name with itself.
604 (set_style_name): New function.
605 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
606 Update all callers according to the changes in cli/cli-style.h.
607 * utils.h (fputs_highlighted): New function.
608 * utils.c (fputs_highlighted): Likewise.
610 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
612 * NEWS: Mention new pipe command and new convenience variables.
614 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
616 * cli/cli-cmds.c (pipe_command): New function.
617 (_initialize_cli_cmds): Call add_com for pipe_command.
618 Define | as an alias for pipe.
619 (exit_status_set_internal_vars): New function.
620 (shell_escape): Call exit_status_set_internal_vars.
621 cli/cli-decode.c (find_command_name_length): Recognize | as
622 a single character command.
624 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
626 * gdbcmd.h (execute_command_to_ui_file): New declaration.
627 top.c (execute_command_to_ui_file): New function, mostly a copy
628 of execute_command_to_string.
629 (execute_command_to_string): Implement by calling
630 execute_command_to_ui_file.
632 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
634 * top.h (saved_command_line): Remove declaration.
635 * top.c (previous_saved_command_line, previous_repeat_arguments):
637 (saved_command_line): Make static, define together with other
639 (dont_repeat): Clear repeat_arguments.
640 (repeat_previous, get_saved_command_line, save_command_line):
642 (gdb_init): Initialize saved_command_line
643 and previous_saved_command_line.
644 * main.c (captured_main_1): Remove saved_command_line initialization.
645 * event-top.c (handle_line_of_input): Update to use
646 the new 'repeat' related functions instead of direct access to
648 * command.h (repeat_previous, get_saved_command_line,
649 save_command_line): New declarations.
650 (dont_repeat): Add comment.
652 2019-05-30 Tom Tromey <tromey@adacore.com>
654 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
656 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
658 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
661 * completer.c (complete): Initialize variable word.
663 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
665 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
666 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
667 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
668 'body' is NULL to the outter 'if', protecting the '!is_define'
671 2019-05-29 Tom Tromey <tromey@adacore.com>
673 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
674 (dwarf_unknown): New function.
675 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
676 (dwarf_type_encoding_name): Use dwarf_unknown.
678 2019-05-29 Tom Tromey <tromey@adacore.com>
681 * cp-valprint.c (cp_print_value_fields): Call
682 cp_print_static_field inside "try".
684 2019-05-29 Tom Tromey <tromey@adacore.com>
686 * inflow.c (struct terminal_info): Add default operator=.
687 * configure: Rebuild.
688 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
689 -Wdeprecated-copy-dtor, -Wredundant-move.
691 2019-05-29 Tom Tromey <tromey@adacore.com>
694 * infcmd.c (print_return_value_1): Handle finish_print
696 (show_print_finish): New function.
697 (_initialize_infcmd): Add "set/show print finish" commands.
698 * valprint.c (user_print_options): Initialize new member.
699 * valprint.h (struct value_print_options) <finish_print>: New
702 2019-05-28 Tom Tromey <tromey@adacore.com>
704 * ada-lang.c (ada_remove_Xbn_suffix)
705 (find_old_style_renaming_symbol)
706 (parse_old_style_renaming): Remove.
707 (ada_find_renaming_symbol): Don't call
708 find_old_style_renaming_symbol.
709 (ada_is_renaming_symbol): Rename from
710 ada_find_renaming_symbol. Remove "block" parameter. Return
712 (ada_read_var_value): Update and simplify.
713 * ada-exp.y (write_var_or_type): Remove old code.
715 2019-05-28 Alan Hayward <alan.hayward@arm.com>
717 * event-top.c: Remove include comment.
718 * inflow.c (class scoped_ignore_sigttou): Move from here...
719 * inflow.h (class scoped_ignore_sigttou): ...to here.
720 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
721 * top.c: Remove include comment.
723 2019-05-27 Tom Tromey <tom@tromey.com>
727 2019-05-22 Tom Tromey <tromey@adacore.com>
729 * target.c (target_follow_exec): Constify parameter.
730 * target-delegates.c: Rebuild.
731 * remote.c (remote_target::follow_exec): Constify parameter.
732 * infrun.c (follow_exec): Constify parameter.
733 * target.h (struct target_ops) <follow_exec>: Constify parameter.
734 (target_follow_exec): Likewise.
736 2019-05-22 Alan Hayward <alan.hayward@arm.com>
738 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
739 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
741 2019-05-22 Alan Hayward <alan.hayward@arm.com>
743 * NEWS: Add debugredirect and testsuite sections.
745 2019-05-22 Simon Cook <simon.cook@embecosm.com>
747 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
748 target descriptions using exclusively floating point register name
751 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
754 * f-lang.c (build_fortran_types): Handle the case where
755 gdbarch_floatformat_for_type returns a nullptr.
757 2019-05-21 Tom de Vries <tdevries@suse.de>
760 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
762 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
765 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
767 * i386-tdep.c (i386_floatformat_for_type): Use
768 floatformats_ia64_quad for the 16-byte floating point component
769 within a fortran 32-byte complex number.
771 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
773 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
774 delete default constructor.
775 (find_partial_die): Update to return const struct.
776 (partial_die_parent_scope): Move variable declaration into scope
777 of its use and change its type to auto.
778 (guess_partial_die_structure_name): Likewise.
779 (partial_die_info::fixup): Likewise.
781 2019-05-17 Tom Tromey <tromey@adacore.com>
783 * source.c (find_and_open_source): Remove cast.
785 2019-05-17 Tom Tromey <tromey@adacore.com>
787 * annotate.c (annotate_source): Make "filename" const.
788 * annotate.h (annotate_source): Use const.
790 2019-05-17 Alan Hayward <alan.hayward@arm.com>
792 * disasm.c (set_disassembler_options): Send errors to stderr.
794 2019-05-17 Alan Hayward <alan.hayward@arm.com>
796 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
797 (cli_interp_base::set_logging): Check debug_redirect.
798 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
799 * cli/cli-logging.c (debug_redirect): Add static variable.
800 (pop_output_files): Add default param.
801 (handle_redirections): Print debug setting.
802 (show_logging_command): Likewise.
803 (_initialize_cli_logging): Add debugredirect command.
804 * interps.c (current_interp_set_logging): Add debug_redirect
806 * interps.h (set_logging): Add debug_redirect parameter.
807 (current_interp_set_logging): Likewise.
808 * mi/mi-common.h: Likewise.
809 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
811 2019-05-17 Alan Hayward <alan.hayward@arm.com>
812 Tom Tromey <tromey@adacore.com>
814 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
816 * cli/cli-interp.h (make_logging_output): Remove declaration.
817 * cli/cli-logging.c (make_logging_output): Remove function.
818 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
820 * ui-file.c (tee_file::tee_file): Remove bools.
821 (tee_file::~tee_file): Remove deletes.
822 * ui-file.h (tee_file): Remove bools.
824 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
826 * mi/mi-cmds.h (mi_cmd_complete): New function.
827 * mi/mi-main.c (mi_cmd_complete): Likewise.
828 * mi/mi-cmds.c: Define new MI command -complete.
829 * NEWS: Mention new -complete command.
831 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
833 * completer.h (complete): New function.
834 * completer.c (complete): Likewise.
835 * cli/cli-cmds.c: (complete_command): Update to use new complete()
836 function defined in completer.h.
838 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
840 * MAINTAINERS (Write After Approval): Add myself.
842 2019-05-17 Tom de Vries <tdevries@suse.de>
845 * dwarf2read.c (struct cu_partial_die_info): New struct.
846 (find_partial_die): Return cu_partial_die_info.
847 (partial_die_parent_scope, guess_partial_die_structure_name)
848 (partial_die_info::fixup): Handle new return type of find_partial_die.
850 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
852 * stap-probe.c (stap_parse_register_operand): Make "regname" an
853 "std::string", simplifying the algorithm.
855 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
857 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
858 (stap_static_probe_ops::get_probes): Likewise.
860 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
862 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
864 (stap_parse_single_operand): Join checks for
865 "gdbarch_stap_parse_special_token_p" and
866 "gdbarch_stap_parse_special_token" in the same "if" statement.
867 Invert check when verifying for operation on register
870 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
872 * stap-probe.c (stap_get_opcode): Update comment.
873 (stap_get_expected_argument_type): Likewise.
874 (handle_stap_probe): Likewise.
876 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
878 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
879 return type to 'bool'. Adjust comment. Use 'bool' when
881 (i386_stap_parse_special_token_three_arg_disp): Likewise.
882 * stap-probe.c (stap_parse_argument_1): Likewise.
883 (stap_is_operator): Likewise.
884 (stap_is_generic_prefix): Likewise.
885 (stap_is_register_prefix): Likewise.
886 (stap_is_register_indirection_prefix): Likewise.
887 (stap_is_integer_prefix): Likewise.
888 (stap_generic_check_suffix): Likewise.
889 (stap_check_integer_suffix): Likewise.
890 (stap_check_register_suffix): Likewise.
891 (stap_check_register_indirection_suffix): Likewise.
892 (stap_parse_register_operand): Likewise.
893 (stap_parse_single_operand): Likewise.
894 (stap_parse_argument_1): Likewise.
895 (stap_probe::get_argument_count): Likewise.
896 (stap_is_operator): Likewise.
898 2019-05-16 Tom Tromey <tromey@adacore.com>
900 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
903 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
905 * linux-thread-db.c (try_thread_db_load_1): Change return type
907 (try_thread_db_load): Likewise.
908 (try_thread_db_load_from_pdir_1): Likewise.
909 (try_thread_db_load_from_pdir): Likewise.
910 (try_thread_db_load_from_sdir): Likewise.
911 (try_thread_db_load_from_dir): Likewise.
912 (thread_db_load_search): Likewise.
913 (has_libpthread): Likewise.
914 (thread_db_load): Likewise.
916 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
918 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
919 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
920 NULL, and complain/return if that's the case.
922 2019-05-15 John Darrington <john@darrington.wattle.id.au>
924 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
925 (advance, posn, abstract_read_memory): New functions.
926 [struct mem_read_abstraction]: New struct.
927 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
929 2019-05-14 Tom Tromey <tromey@adacore.com>
931 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
932 value is not lval_memory.
934 2019-05-14 Tom Tromey <tromey@adacore.com>
936 * solib.c (info_sharedlibrary_command): Style the file name.
938 2019-05-14 Alan Hayward <alan.hayward@arm.com>
940 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
941 (aarch64_vnv_type): Likewise.
942 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
943 * common/tdesc.c: Likewise.
944 * common/tdesc.h (enum tdesc_type_kind): Likewise.
945 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
946 * features/aarch64-fpu.xml: Add ieee half view.
947 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
948 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
949 * gdbtypes.h (struct builtin_type): Likewise.
950 (struct objfile_type): Likewise.
952 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
954 * language.c (language_sniff_from_mangled_name): Fix "langauge"
956 * location.h (string_to_event_location): Likewise.
958 2019-05-11 Joel Brobecker <brobecker@adacore.com>
962 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
964 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
965 New variable declaration.
966 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
968 (print_one_breakpoint): Use ui_out::test_flags and new global
969 variable to compute use_fixed_output.
970 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
972 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
973 (mi_multi_location_breakpoint_output_fixed): Remove.
974 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
976 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
977 fix_multi_location_breakpoint_output flag if version >= 3.
978 * ui-out.h (enum ui_out_flag)
979 <fix_multi_location_breakpoint_output>: New enumerator.
981 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
983 * contrib/cc-with-tweaks.sh: Validate dwz's work.
985 2019-05-10 Tom Tromey <tromey@adacore.com>
987 * ada-lang.c (catch_ada_completer): New function.
988 (_initialize_ada_language): Use it.
990 2019-05-10 Tom Tromey <tromey@adacore.com>
992 * thread.c (print_thread_info): Make "requested_threads" const.
993 * gdbthread.h (print_thread_info): Make "requested_threads"
995 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
996 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
998 2019-05-08 Tom Tromey <tom@tromey.com>
1000 * gdbtypes.c (objfile_type_data): Change type.
1001 (objfile_type, _initialize_gdbtypes): Update.
1003 2019-05-08 Tom Tromey <tom@tromey.com>
1005 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
1006 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
1007 (_initialize_dwarf2_frame): Update.
1009 2019-05-08 Tom Tromey <tom@tromey.com>
1011 * objc-lang.c (objc_objfile_data): Change type.
1012 (find_methods): Update.
1013 (_initialize_objc_lang): Remove.
1015 2019-05-08 Tom Tromey <tom@tromey.com>
1017 * stabsread.c (rs6000_builtin_type_data): Change type.
1018 (rs6000_builtin_type, _initialize_stabsread): Update.
1020 2019-05-08 Tom Tromey <tom@tromey.com>
1022 * mips-tdep.c (mips_pdr_data): Remove.
1023 (_initialize_mips_tdep): Update.
1025 2019-05-08 Tom Tromey <tom@tromey.com>
1027 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
1028 (hppa_init_objfile_priv_data, read_unwind_info)
1029 (find_unwind_entry, _initialize_hppa_tdep): Update.
1031 2019-05-08 Tom Tromey <tom@tromey.com>
1033 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
1034 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
1036 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
1038 2019-05-08 Tom Tromey <tom@tromey.com>
1040 * mdebugread.c (basic_type_data): Change type.
1041 (basic_type, _initialize_mdebugread): Update.
1043 2019-05-08 Tom Tromey <tom@tromey.com>
1045 * common/gdb_unique_ptr.h (struct noop_deleter): New.
1047 2019-05-08 Tom Tromey <tom@tromey.com>
1049 * nto-tdep.c (nto_inferior_data_reg): Change type.
1050 (nto_inferior_data): Update.
1051 (nto_inferior_data_cleanup, nto_new_inferior_data)
1052 (_initialize_nto_tdep): Remove.
1053 * nto-tdep.h (struct nto_inferior_data): Add initializers.
1055 2019-05-08 Tom Tromey <tom@tromey.com>
1057 * ada-lang.c (struct ada_inferior_data): Add initializers.
1058 (ada_inferior_data): Change type.
1059 (ada_inferior_data_cleanup): Remove.
1060 (get_ada_inferior_data, ada_inferior_exit)
1061 (struct ada_pspace_data): Add initializers, destructor.
1062 (ada_pspace_data_handle): Change type.
1063 (get_ada_pspace_data): Update.
1064 (ada_pspace_data_cleanup): Remove.
1066 2019-05-08 Tom Tromey <tom@tromey.com>
1068 * coffread.c (struct coff_symfile_info): Add initializers.
1069 (coff_objfile_data_key): Move lower. Change type.
1070 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
1072 (coff_free_info): Remove.
1074 2019-05-08 Tom Tromey <tom@tromey.com>
1076 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
1077 (fbsd_pspace_data_handle): Move lower. Change type.
1078 (get_fbsd_pspace_data): Update.
1079 (fbsd_pspace_data_cleanup): Remove.
1080 (_initialize_fbsd_tdep): Update.
1082 2019-05-08 Tom Tromey <tom@tromey.com>
1084 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
1085 (get_ada_tasks_pspace_data): Update.
1086 (ada_tasks_pspace_data_cleanup): Remove.
1087 (_initialize_tasks): Update.
1088 (ada_tasks_inferior_data_handle): Change type.
1089 (get_ada_tasks_inferior_data): Update.
1090 (ada_tasks_inferior_data_cleanup): Remove.
1091 (struct ada_tasks_pspace_data): Add initializers.
1093 2019-05-08 Tom Tromey <tom@tromey.com>
1095 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
1096 * symfile-debug.c (debug_sym_get_probes): Change type.
1097 * stap-probe.c (handle_stap_probe):
1098 (stap_static_probe_ops::get_probes): Change type.
1099 * probe.h (class static_probe_ops) <get_probes>: Change type.
1100 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
1101 (parse_probes_in_pspace): Update.
1102 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
1104 (any_static_probe_ops::get_probes): Change type.
1105 * elfread.c (elfread_data): New typedef.
1106 (probe_key): Change type.
1107 (elf_get_probes): Likewise. Update.
1108 (probe_key_free): Remove.
1109 (_initialize_elfread): Update.
1110 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
1112 (dtrace_process_dof_probe, dtrace_process_dof)
1113 (dtrace_static_probe_ops::get_probe): Change type.
1115 2019-05-08 Tom Tromey <tom@tromey.com>
1117 * xcoffread.c (struct xcoff_symfile_info): Rename from
1118 coff_symfile_info. Add initializers.
1119 (xcoff_objfile_data_key): Move lower. Change type.
1120 (XCOFF_DATA): Rewrite.
1121 (xcoff_free_info): Remove.
1122 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
1123 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
1124 (xcoff_initial_scan): Update.
1126 2019-05-08 Tom Tromey <tom@tromey.com>
1128 * solib-svr4.c (struct svr4_info): Add initializers and
1130 <probes_table>: Now an htab_up.
1131 (solib_svr4_pspace_data): Change type.
1132 (free_probes_table): Simplify.
1133 (~svr4_info): Rename from svr4_pspace_data_cleanup.
1134 (get_svr4_info, probes_table_htab_remove_objfile_probes)
1135 (probes_table_remove_objfile_probes, register_solib_event_probe)
1136 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
1137 (_initialize_svr4_solib): Update.
1139 2019-05-08 Tom Tromey <tom@tromey.com>
1141 * remote.c (remote_pspace_data): Change type.
1142 (remote_pspace_data_cleanup): Remove.
1143 (get_remote_exec_file, set_pspace_remote_exec_file)
1144 (_initialize_remote): Update.
1146 2019-05-08 Tom Tromey <tom@tromey.com>
1148 * breakpoint.c (breakpoint_objfile_key): Change type.
1149 (get_breakpoint_objfile_data): Update.
1150 (free_breakpoint_objfile_data): Remove.
1151 (_initialize_breakpoint): Update.
1153 2019-05-08 Tom Tromey <tom@tromey.com>
1155 * linux-tdep.c (struct linux_info): Add initializers.
1156 (linux_inferior_data): Move. Change type.
1157 (invalidate_linux_cache_inf): Update.
1158 (linux_inferior_data_cleanup): Remove.
1159 (get_linux_inferior_data, _initialize_linux_tdep): Update.
1161 2019-05-08 Tom Tromey <tom@tromey.com>
1163 * auxv.c (auxv_inferior_data): Move. Change type.
1164 (auxv_inferior_data_cleanup): Remove.
1165 (invalidate_auxv_cache_inf): Rewrite.
1166 (get_auxv_inferior_data, _initialize_auxv): Update.
1168 2019-05-08 Tom Tromey <tom@tromey.com>
1170 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
1171 (symfile_debug_objfile_data_key): Change type.
1172 (symfile_debug_installed, debug_qf_has_symbols)
1173 (debug_qf_find_last_source_symtab)
1174 (debug_qf_forget_cached_source_info)
1175 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
1176 (debug_qf_print_stats, debug_qf_dump)
1177 (debug_qf_expand_symtabs_for_function)
1178 (debug_qf_expand_all_symtabs)
1179 (debug_qf_expand_symtabs_with_fullname)
1180 (debug_qf_map_matching_symbols)
1181 (debug_qf_expand_symtabs_matching)
1182 (debug_qf_find_pc_sect_compunit_symtab)
1183 (debug_qf_map_symbol_filenames)
1184 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
1185 (debug_sym_new_init, debug_sym_init, debug_sym_read)
1186 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
1187 (debug_sym_read_linetable, debug_sym_relocate): Update.
1188 (symfile_debug_free_objfile): Remove.
1189 (install_symfile_debug_logging, _initialize_symfile_debug):
1192 2019-05-08 Tom Tromey <tom@tromey.com>
1194 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
1195 allocate_on_obstack.
1196 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
1197 (get_dwarf2_per_objfile): Update.
1198 (set_dwarf2_per_objfile): Remove.
1199 (dwarf2_has_info, dwarf2_get_section_info): Update.
1200 (dwarf2_free_objfile): Remove.
1201 (_initialize_dwarf2_read): Update.
1203 2019-05-08 Tom Tromey <tom@tromey.com>
1205 * auto-load.c (struct auto_load_pspace_info): Add destructor and
1207 <unsupported_script_warning_printed,
1208 script_not_found_warning_printed>: Now bool.
1209 (auto_load_pspace_data): Change type.
1210 (~auto_load_pspace_info): Rename from
1211 auto_load_pspace_data_cleanup.
1212 (get_auto_load_pspace_data, init_loaded_scripts_info)
1213 (clear_section_scripts, maybe_print_unsupported_script_warning)
1214 (maybe_print_script_not_found_warning, _initialize_auto_load):
1217 2019-05-08 Tom Tromey <tom@tromey.com>
1219 * objfiles.c (objfile_pspace_info): Add destructor and
1221 (objfiles_pspace_data): Change type.
1222 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
1223 (get_objfile_pspace_data): Update.
1224 (objfiles_bfd_data): Change type.
1225 (get_objfile_bfd_data): Update.
1226 (objfile_bfd_data_free, _initialize_objfiles): Remove.
1228 2019-05-08 Tom Tromey <tom@tromey.com>
1230 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
1232 (get_catch_syscall_inferior_data): Update.
1233 (catch_syscall_inferior_data_cleanup): Remove.
1234 (_initialize_break_catch_syscall): Update.
1236 2019-05-08 Tom Tromey <tom@tromey.com>
1238 * inflow.c (struct terminal_info): Add destructor and
1240 (inflow_inferior_data): Change type.
1241 (~terminal_info): Rename from inflow_inferior_data_cleanup.
1242 (get_inflow_inferior_data, inflow_inferior_exit)
1243 (swap_terminal_info, _initialize_inflow): Update.
1245 2019-05-08 Tom Tromey <tom@tromey.com>
1247 * target-dcache.c (target_dcache_cleanup): Remove.
1248 (target_dcache_aspace_key): Change type.
1249 (target_dcache_init_p, target_dcache_invalidate)
1250 (target_dcache_get, target_dcache_get_or_init)
1251 (_initialize_target_dcache): Update.
1252 * dcache.h (struct dcache_deleter): New.
1254 2019-05-08 Tom Tromey <tom@tromey.com>
1256 * symtab.c (struct symbol_cache): Add destructor and
1258 (symbol_cache_key): Move. Change type.
1259 (make_symbol_cache, free_symbol_cache): Remove.
1260 (get_symbol_cache): Update.
1261 (symbol_cache_cleanup): Remove.
1262 (ALL_PSPACES, symbol_cache_flush)
1263 (maintenance_print_symbol_cache)
1264 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
1267 2019-05-08 Tom Tromey <tom@tromey.com>
1269 * symtab.c (struct main_info): Add destructor and initializers.
1270 (main_progspace_key): Move. Change type.
1271 (get_main_info): Update.
1272 (main_info_cleanup): Remove.
1273 (_initialize_symtab): Update.
1275 2019-05-08 Tom Tromey <tom@tromey.com>
1277 * registry.h (DECLARE_REGISTRY): Define the _key class.
1279 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1281 * NEWS: Merge two 'New commands' sections.
1283 2019-05-08 Joel Brobecker <brobecker@adacore.com>
1285 * ada-valprint.c (ada_val_print_gnat_array): Remove language
1286 parameter and use Ada language definition instead.
1287 (ada_val_print_ptr): Remove unused language parameter.
1288 (ada_val_print_num): Remove language parameter and use Ada language
1290 (ada_val_print_enum, ada_val_print_flt): Remove unused language
1292 (ada_val_print_struct_union, ada_val_print_ref): Remove language
1293 parameter and use Ada language definition instead.
1294 (ada_val_print_1): Update all ada_val_print_xxx calls.
1295 Remove language parameter.
1296 (ada_val_print): Update ada_val_print_1 call.
1298 2019-05-08 Tom Tromey <tromey@adacore.com>
1300 * remote.c (remote_hw_watchpoint_limit)
1301 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
1304 2019-05-08 Tom Tromey <tromey@adacore.com>
1306 * maint.c (_initialize_maint_cmds): Move initialization code to
1308 (watchdog, show_watchdog): Move to remote.c.
1309 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
1311 (_initialize_remote): Move initialization code from maint.c.
1312 * defs.h (watchdog): Don't declare.
1314 2019-05-08 Tom Tromey <tromey@adacore.com>
1316 * tui/tui-interp.c: Include main.h.
1317 * interps.c: Include main.h.
1318 * main.h (interpreter_p): Declare.
1319 * defs.h (interpreter_p): Don't declare.
1321 2019-05-08 Tom Tromey <tromey@adacore.com>
1323 * dwarf2loc.c: Include dwarf2read.h.
1324 * defs.h (read_unsigned_leb128): Don't declare.
1325 * dwarf2read.h (read_unsigned_leb128): Declare.
1327 2019-05-08 Tom Tromey <tromey@adacore.com>
1329 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
1332 2019-05-08 Tom Tromey <tromey@adacore.com>
1334 * utils.c (fputs_maybe_filtered): Reset style after paging, even
1335 when no wrap column is set.
1337 2019-05-08 Tom Tromey <tromey@adacore.com>
1339 * c-lang.c (c_get_string): Handle non-C-style arrays.
1341 2019-05-08 Tom Tromey <tromey@adacore.com>
1343 * typeprint.c (print_offset_data::update): Print the bit offset,
1344 not the number of bits remaining.
1346 2019-05-08 Tom Tromey <tromey@adacore.com>
1348 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
1349 padding at end of comment.
1351 2019-05-08 Tom Tromey <tromey@adacore.com>
1353 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
1356 2019-05-06 Tom Tromey <tom@tromey.com>
1358 * common/scoped_mmap.c: Include common-defs.h.
1359 * common/scoped_mmap.h: Don't include config.h.
1361 2019-05-04 Tom Tromey <tom@tromey.com>
1363 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
1364 (struct aarch64_call_info): Add initializers.
1365 <si>: Now a std::vector.
1366 (pass_on_stack, aarch64_push_dummy_call): Update.
1368 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
1369 Tom Tromey <tom@tromey.com>
1371 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
1372 (ppc_threads): Now a std::vector. Now static.
1373 (hwdebug_find_thread_points_by_tid)
1374 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
1377 2019-05-04 Tom Tromey <tom@tromey.com>
1379 * arc-tdep.c (arc_tdesc_init): Return bool.
1381 2019-05-04 Tom Tromey <tom@tromey.com>
1383 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1384 Use gdb_assert_not_reached.
1386 2019-05-04 Tom Tromey <tom@tromey.com>
1388 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1391 2019-05-04 Tom Tromey <tom@tromey.com>
1393 * arc-tdep.c (arc_tdesc_init): Use bool.
1395 2019-05-04 Tom Tromey <tom@tromey.com>
1397 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1399 2019-05-04 Tom Tromey <tom@tromey.com>
1401 * cli/cli-cmds.c (valid_command_p): Return bool.
1403 2019-05-04 Tom Tromey <tom@tromey.com>
1405 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1406 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1408 2019-05-04 Raul Tambre <raul@tambre.ee>
1410 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1411 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1412 operator for comparison.
1414 2019-05-04 Tom Tromey <tom@tromey.com>
1416 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1417 (lookup_partial_symbol, print_partial_symbols)
1418 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1419 (psymbol_compare): Update.
1420 (add_psymbol_to_bcache): Clear the entire psymbol.
1421 (maintenance_check_psymtabs): Update.
1422 * psympriv.h (struct partial_symbol): Don't derive from
1423 general_symbol_info.
1424 <obj_section, unrelocated_address, address,
1425 set_unrelocated_address>: Update.
1426 <ginfo>: New member.
1427 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1428 (debug_names::write_psymbols): Update.
1430 2019-05-04 Tom de Vries <tdevries@suse.de>
1432 * contrib/cc-with-tweaks.sh: Support -n arg.
1434 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1436 * corelow.c (core_target::detach): Ensure frame cache and
1437 register caches are cleared.
1438 inferior.c (exit_inferior_1): Likewise.
1440 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1441 Tom Tromey <tom@tromey.com>
1443 * dictionary.c (collate_pending_symbols_by_language): Remove
1444 "struct" from foreach.
1445 * symtab.c (lookup_global_symbol_from_objfile)
1446 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1448 * ser-tcp.c (net_open): Remove "struct" from foreach.
1449 * objfiles.c (objfile_relocate, objfile_rebase)
1450 (objfile_has_symbols): Remove "struct" from foreach.
1451 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1453 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1455 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1456 "struct" from foreach.
1457 * ada-lang.c (create_excep_cond_exprs)
1458 (ada_exception_catchpoint_cond_string): Remove "struct" from
1461 2019-05-03 Tom Tromey <tromey@adacore.com>
1463 * ada-exp.y (convert_char_literal): Check suffix of each
1466 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1469 * ada-exp.y (yywrap): Don't define.
1470 * ada-lex.l (%option): Add noyywrap
1473 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1475 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1476 _WIN32_WINNT to the XP level, unless already defined to a higher
1479 * unittests/parse-connection-spec-selftests.c:
1481 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1484 * symfile.c (find_separate_debug_file): Remove colon from the
1485 drive spec of DOS/Windows file names of the target, so that the
1486 file name produced from DEBUGDIR and the target's directory will
1487 be valid on DOS/Windows systems.
1489 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1491 * rust-lang.c (val_print_struct): Handle printing structures
1494 2019-05-02 Tom Tromey <tromey@adacore.com>
1496 * valarith.c (_initialize_valarith): Remove.
1498 2019-05-01 Tom Tromey <tromey@adacore.com>
1500 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1503 2019-05-01 Tom Tromey <tromey@adacore.com>
1505 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1506 for big-endian copies.
1508 2019-04-30 Ali Tamur <tamur@google.com>
1509 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1510 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1511 (read_3_bytes): New function.
1513 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1515 * windows-nat.c (main_thread_id): Delete.
1516 (handle_output_debug_string): Replace main_thread_id by
1517 current_event.dwThreadId.
1518 (fake_create_process): Likewise.
1519 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1520 Do not set main_thread_id.
1521 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1522 current_event.dwThreadId.
1523 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1525 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1527 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1528 Use current_event.dwThreadId instead of main_thread_id.
1530 2019-04-30 Tom Tromey <tromey@adacore.com>
1532 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1533 (create_excep_cond_exprs): Iterate over program spaces.
1534 (ada_exception_catchpoint_cond_string): Examine all minimal
1535 symbols for exception types.
1537 2019-04-30 Tom Tromey <tromey@adacore.com>
1540 * dwarf2read.c (process_structure_scope): Handle case where type
1541 has template parameters but no symbol was created.
1543 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1544 Chris January <chris.january@arm.com>
1546 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1548 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1550 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1552 * f-typeprint.c (f_print_type): Update rules for printing
1554 (f_type_print_varspec_suffix): Likewise.
1556 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1557 Chris January <chris.january@arm.com>
1559 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1562 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1564 * f-lang.c (build_fortran_types): Change name of void type to
1566 * f-typeprint.c (f_type_print_base): Print the name of the void
1567 type, rather than a fixed string.
1568 * f-valprint.c (f_decorations): Use lower case void string.
1570 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1571 Chris January <chris.january@arm.com>
1573 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1576 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1577 Chris January <chris.january@arm.com>
1578 David Lecomber <david.lecomber@arm.com>
1580 * f-exp.y (BINOP_INTRINSIC): New token.
1581 (exp): New parser rule handling BINOP_INTRINSIC.
1582 (f77_keywords): Add new builtin procedures.
1583 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1584 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1585 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1586 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1587 (print_unop_subexp_f): New function.
1588 (print_binop_subexp_f): New function.
1589 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1590 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1591 (dump_subexp_body_f): Likewise.
1592 (operator_check_f): Likewise.
1593 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1594 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1596 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1598 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1600 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1601 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1602 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1603 (operator_length_f): New fuction.
1604 (print_subexp_f): New function.
1605 (op_name_f): New function.
1606 (dump_subexp_body_f): New function.
1607 (operator_check_f): New function.
1608 (exp_descriptor_f): Replace standard expression handling functions
1610 * gdb/fortran-operator.def: New file.
1611 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1612 * gdb/std-operator.def: Remove UNOP_KIND.
1614 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1616 * std-operator.def: Remove unbalanced, stray double quote
1619 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1620 Chris January <chris.january@arm.com>
1621 Daniel Everett <daniel.everett@arm.com>
1622 Nick Forrington <nick.forrington@arm.com>
1623 Richard Bunt <richard.bunt@arm.com>
1625 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1626 of depth when printing anonymous structs or unions.
1627 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1628 Don't print either the top-level value, or the children if the
1629 max-depth is exceeded.
1630 (ppscm_print_children): When printing the key of a map, allow one
1631 extra level of depth.
1632 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1633 print either the top-level value, or the children if the max-depth
1635 (print_children): When printing the key of a map, allow one extra
1637 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1638 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1639 (user_print_options): Initialise max_depth field.
1640 (val_print_scalar_or_string_type_p): New function.
1641 (val_print): Check to see if the max depth has been reached.
1642 (val_print_check_max_depth): Define new function.
1643 (show_print_max_depth): New function.
1644 (_initialize_valprint): Add 'print max-depth' option.
1645 * valprint.h (struct value_print_options) <max_depth>: New field.
1646 (val_print_check_max_depth): Declare new function.
1647 * NEWS: Document new feature.
1649 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1651 * ada-lang.c (ada_language_defn): Initialise new field.
1652 * c-lang.c (c_is_string_type_p): New function.
1653 (c_language_defn): Initialise new field.
1654 (cplus_language_defn): Initialise new field.
1655 (asm_language_defn): Initialise new field.
1656 (minimal_language_defn): Initialise new field.
1657 * c-lang.h (c_is_string_type_p): Declare new function.
1658 * d-lang.c (d_language_defn): Initialise new field.
1659 * f-lang.c (f_is_string_type_p): New function.
1660 (f_language_defn): Initialise new field.
1661 * go-lang.c (go_is_string_type_p): New function.
1662 (go_language_defn): Initialise new field.
1663 * language.c (default_is_string_type_p): New function.
1664 (unknown_language_defn): Initialise new field.
1665 (auto_language_defn): Initialise new field.
1666 * language.h (struct language_defn) <la_is_string_type_p>: New
1668 (default_is_string_type_p): Declare new function.
1669 * m2-lang.c (m2_language_defn): Initialise new field.
1670 * objc-lang.c (objc_language_defn): Initialise new field.
1671 * opencl-lang.c (opencl_language_defn): Initialise new field.
1672 * p-lang.c (pascal_is_string_type_p): New function.
1673 (pascal_language_defn): Initialise new field.
1674 * rust-lang.c (rust_is_string_type_p): New function.
1675 (rust_language_defn): Initialise new field.
1677 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1679 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1681 * ada-lang.c (ada_language_defn): Initialise new field.
1682 * c-lang.c (c_language_defn): Likewise.
1683 (cplus_language_defn): Likewise.
1684 (asm_language_defn): Likewise.
1685 (minimal_language_defn): Likewise.
1686 * d-lang.c (d_language_defn): Likewise.
1687 * f-lang.c (f_language_defn): Likewise.
1688 * go-lang.c (go_language_defn): Likewise.
1689 * language.c (unknown_language_defn): Likewise.
1690 (auto_language_defn): Likewise.
1691 * m2-lang.c (m2_language_defn): Likewise.
1692 * objc-lang.c (objc_language_defn): Likewise.
1693 * opencl-lang.c (opencl_language_defn): Likewise.
1694 * p-lang.c (pascal_language_defn): Likewise.
1695 * rust-lang.c (rust_language_defn): Likewise.
1697 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1699 * ada-lang.c (ada_is_character_type): Change return type to bool.
1700 (ada_is_string_type): Likewise.
1701 * ada-lang.h (ada_is_character_type): Update declaration
1702 (ada_is_string_type): Likewise.
1704 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1706 Support style in 'frame|thread apply'
1708 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1709 * record.c (record_start, record_stop): Update callers of
1710 execute_command_to_string with false.
1711 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1712 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1714 (class string_file): New constructor with term_out parameter.
1715 Override methods term_out and can_emit_style_escape. New member
1717 (class stdio_file): Override can_emit_style_escape.
1718 (class tee_file): Override term_out and can_emit_style_escape.
1719 * utils.h (can_emit_style_escape): Remove.
1720 * utils.c (can_emit_style_escape): Likewise.
1721 Update all callers of can_emit_style_escape (SOMESTREAM) to
1722 SOMESTREAM->can_emit_style_escape.
1723 * source-cache.c (source_cache::get_source_lines): Likewise.
1724 * stack.c (frame_apply_command_count): Call execute_command_to_string
1725 passing the term_out characteristic of the current gdb_stdout.
1726 * thread.c (thr_try_catch_cmd): Likewise.
1727 * top.c (execute_command_to_string): pass term_out parameter
1728 to construct the string_file for the command output.
1729 * ui-file.c (term_cli_styling): New function (most code moved
1730 from utils.c can_emit_style_escape).
1731 (string_file::string_file, string_file::can_emit_style_escape,
1732 stdio_file::can_emit_style_escape, tee_file::term_out,
1733 tee_file::can_emit_style_escape): New functions.
1735 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1737 * NEWS: Mention the new set|show may-call-functions.
1738 * infcall.c (may_call_functions_p): New variable.
1739 (show_may_call_functions_p): New function.
1740 (call_function_by_hand_dummy): Throws an error if not
1742 (_initialize_infcall): Call add_setshow_boolean_cmd for
1745 2019-04-25 Keith Seitz <keiths@redhat.com>
1748 * cp-support.c (inspect_type): Don't attempt substitutions
1749 of symbol with the same name.
1751 2019-04-25 Tom Tromey <tromey@adacore.com>
1754 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1757 2019-04-25 Tom Tromey <tromey@adacore.com>
1759 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1761 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1762 (gdb_xml_parser::parse): Use std::move.
1763 * python/python-internal.h (gdbpy_convert_exception): Take a const
1765 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1767 * python/py-utils.c (gdbpy_convert_exception): Take a const
1769 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1771 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1773 * mi/mi-main.c (mi_print_exception): Take a const reference.
1774 * main.c (handle_command_errors): Take a const reference.
1775 * linespec.c (parse_linespec): Use std::move.
1776 * infcall.c (run_inferior_call): Use std::move.
1777 (call_function_by_hand_dummy): Use std::move.
1778 * exec.c (try_open_exec_file): Use std::move.
1779 * exceptions.h (exception_print, exception_fprintf)
1780 (exception_print_same): Update.
1781 * exceptions.c (print_exception, exception_print)
1782 (exception_fprintf, exception_print_same): Change parameters to
1784 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1785 * common/new-op.c: Use std::move.
1786 * common/common-exceptions.h (struct gdb_exception): Add move
1788 (struct gdb_exception_error, struct gdb_exception_quit, struct
1789 gdb_quit_bad_alloc): Change constructor to move constructor.
1790 (throw_exception): Change parameter to rvalue reference.
1791 * common/common-exceptions.c (throw_exception): Take rvalue
1793 * cli/cli-interp.c (safe_execute_command): Use std::move.
1794 * breakpoint.c (insert_bp_location, location_to_sals): Use
1797 2019-04-25 Tom Tromey <tromey@adacore.com>
1799 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1800 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1801 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1802 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1803 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1804 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1805 guile/scm-value.c: Use unpack.
1806 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1807 gdbscm_gdb_exception.
1808 (gdbscm_throw_gdb_exception): Likewise.
1809 (struct gdbscm_gdb_exception): New.
1810 (unpack): New function.
1811 (gdbscm_wrap): Use unpack.
1813 2019-04-25 Tom Tromey <tromey@adacore.com>
1815 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1816 (gdb_rl_callback_handler): Use std::move.
1817 * common/common-exceptions.h (struct gdb_exception): Add move
1818 assignment operator.
1819 (throw_exception_sjlj): Change "exception" to const reference.
1820 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1821 (throw_exception_sjlj): Change "exception" to const reference.
1823 2019-04-25 Tom Tromey <tromey@adacore.com>
1825 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1826 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1827 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1829 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1831 * mi/mi-interp.c (mi_interp::exec): Update.
1832 * linespec.c (parse_linespec): Update.
1833 * infcall.c (run_inferior_call): Update.
1834 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1835 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1836 (gdbscm_lookup_global_symbol): Update.
1837 * guile/scm-param.c (gdbscm_parameter_value): Update.
1838 * guile/scm-frame.c (gdbscm_frame_read_register)
1839 (gdbscm_frame_read_var): Update.
1840 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1841 * exec.c (try_open_exec_file): Update.
1842 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1843 (gdb_rl_callback_handler): Update.
1844 * common/common-exceptions.h (exception_none): Don't declare.
1845 * common/common-exceptions.c (exception_none): Don't define.
1846 (struct catcher) <exception>: Update.
1847 * cli/cli-interp.c (safe_execute_command): Update.
1848 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1850 2019-04-25 Ali Tamur <tamur@google.com>
1852 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1853 (read_attribute_value): Likewise.
1854 (dwarf2_read_addr_index): Update comment.
1855 (read_str_index): Add DW_FORM_strx.
1856 (dwarf2_string_attr): Likewise.
1857 (dwarf2_const_value_attr): Likewise.
1858 (dump_die_shallow): Likewise.
1859 (dwarf2_fetch_constant_bytes): Likewise.
1860 (skip_form_bytes): Likewise.
1861 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1863 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1867 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1868 OFFSET. Verify if current mapping contains an ELF header.
1869 (linux_find_memory_regions_full): Adjust call to
1872 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1873 Kang Li <kanglictf@gmail.com>
1877 * dwarf2-frame.c (read_initial_length): Be consistent about using
1878 unsigned representation of length.
1879 (decode_frame_entry_1): Likewise. Check for wraparound of
1880 end pointer as well as buffer overflow.
1882 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1884 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1887 2019-04-24 Tom Tromey <tromey@adacore.com>
1889 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1891 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1893 * s12z-tdep.c (s12z_unwind_pc): Delete.
1894 (s12z_unwind_sp): Delete.
1895 (s12z_gdbarch_init): Don't register deleted functions with
1898 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1900 * rl78-tdep.c (rl78_unwind_sp): Delete.
1901 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1903 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1905 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1906 (xstormy16_unwind_pc): Delete.
1907 (xstormy16_dummy_id): Delete.
1908 (xstormy16_gdbarch_init): Don't register deleted functions with
1911 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1913 * vax-tdep.c (vax_unwind_pc): Delete.
1914 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1916 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1918 * v850-tdep.c (v850_unwind_sp): Delete.
1919 (v850_unwind_pc): Delete.
1920 (v850_dummy_id): Delete.
1921 (v850_gdbarch_init): Don't register deleted functions with
1924 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1926 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1927 (tilegx_unwind_pc): Delete.
1928 (tilegx_unwind_dummy_id): Delete.
1929 (tilegx_gdbarch_init): Don't register deleted functions with
1932 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1934 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1935 (tic6x_dummy_id): Delete.
1936 (tic6x_gdbarch_init): Don't register deleted functions with
1939 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1941 * sparc-tdep.c (sparc_unwind_pc): Delete.
1942 (sparc32_gdbarch_init): Don't register deleted function with
1945 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1947 * sh-tdep.c (sh_unwind_sp): Delete.
1948 (sh_unwind_pc): Delete.
1949 (sh_dummy_id): Delete.
1950 (sh_gdbarch_init): Don't register deleted functions with
1953 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1955 * score-tdep.c (score_unwind_sp): Delete.
1956 (score_unwind_pc): Delete.
1957 (score_dummy_id): Delete.
1958 (score_gdbarch_init): Don't register deleted functions with
1961 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1963 * rx-tdep.c (rx_unwind_pc): Delete.
1964 (rx_unwind_sp): Delete.
1965 (rx_dummy_id): Delete.
1966 (rx_gdbarch_init): Don't register deleted functions with
1967 gdbarch. Update comment.
1969 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1971 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1972 (rs6000_dummy_id): Delete.
1973 (rs6000_gdbarch_init): Don't register deleted functions with
1976 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1978 * or1k-tdep.c (or1k_dummy_id): Delete.
1979 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1981 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1983 * nios2-tdep.c (nios2_dummy_id): Delete.
1984 (nios2_unwind_sp): Delete.
1985 (nios2_gdbarch_init): Don't register deleted functions with
1988 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1990 * nds32-tdep.c (nds32_dummy_id): Delete.
1991 (nds32_unwind_pc): Delete.
1992 (nds32_unwind_sp): Delete.
1993 (nds32_gdbarch_init): Don't register deleted functions with
1996 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1998 * msp430-tdep.c (msp430_unwind_pc): Delete.
1999 (msp430_unwind_sp): Delete.
2000 (msp430_dummy_id): Delete.
2001 (msp430_gdbarch_init): Don't register deleted functions with
2004 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2006 * moxie-tdep.c (moxie_unwind_sp): Delete.
2007 (moxie_unwind_pc): Delete.
2008 (moxie_dummy_id): Delete.
2009 (moxie_gdbarch_init): Don't register deleted functions with
2012 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2014 * mn10300-tdep.c (mn10300_dummy_id): Delete.
2015 (mn10300_unwind_pc): Delete.
2016 (mn10300_unwind_sp): Delete.
2017 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
2019 (mn10300_frame_unwind_init): Don't register deleted functions with
2022 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2024 * mep-tdep.c (mep_unwind_pc): Delete.
2025 (mep_unwind_sp): Delete.
2026 (mep_dummy_id): Delete.
2027 (mep_gdbarch_init): Don't register deleted functions with
2030 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2032 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
2033 (m68hc11_unwind_sp): Delete.
2034 (m68hc11_gdbarch_init): Don't register deleted functions with
2037 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2039 * m32r-tdep.c (m32r_unwind_sp): Delete.
2040 (m32r_unwind_pc): Delete.
2041 (m32r_dummy_id): Delete.
2042 (m32r_gdbarch_init): Don't register deleted functions with
2045 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2047 * m32c-tdep.c (m32c_unwind_pc): Delete.
2048 (m32c_unwind_sp): Delete.
2049 (m32c_dummy_id): Delete.
2050 (m32c_gdbarch_init): Don't register deleted functions with
2053 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2055 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
2056 (lm32_unwind_pc): Delete.
2057 (lm32_dummy_id): Delete.
2058 (lm32_gdbarch_init): Don't register deleted functions with
2061 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2063 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
2064 (iq2000_unwind_pc): Delete.
2065 (iq2000_dummy_id): Delete.
2066 (iq2000_gdbarch_init): Don't register deleted functions with
2069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2071 * nds32-tdep.c (nds32_type_align): Delete.
2072 (nds32_push_dummy_call): Use type_align instead.
2074 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2076 * arm-tdep.c (arm_type_align): Only handle vector override case.
2077 (arm_push_dummy_call): Use type_align.
2078 (arm_gdbarch_init): Register arm_type_align gdbarch function.
2080 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2082 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
2084 (pass_on_stack): Use type_align.
2085 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
2088 2019-04-23 Tom Tromey <tromey@adacore.com>
2090 * dwarf2read.c (line_header::file_name_at): Remove unused
2093 2019-04-23 Tom de Vries <tdevries@suse.de>
2096 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
2100 2019-03-27 Ali Tamur <tamur@google.com>
2102 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
2103 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
2104 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
2105 (dwarf_expr_context::get_addr_index): Likewise
2106 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
2107 (symbol_needs_eval_context::get_addr_index): Likewise
2108 (disassemble_dwarf_expression): Add DW_OP_addrx
2109 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
2110 (read_cutu_die_from_dwo): Update comment
2111 (skip_one_die): Add DW_FORM_addrx
2112 (read_attribute_value): Likewise
2113 (var_decode_location): Add DW_OP_addrx
2114 (dwarf2_const_value_attr): Add DW_FORM_addrx
2115 (dump_die_shallow): Likewise
2116 (dwarf2_fetch_constant_bytes): Likewise
2117 (decode_locdesc): Add DW_OP_addrx
2118 (skip_form_bytes): Add DW_FORM_addrx
2120 2019-04-22 Ali Tamur <tamur@google.com>
2122 * MAINTAINERS (Write After Approval): Add self.
2124 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
2126 * solib-svr4.c (get_svr4_info): Add pspace parameter.
2127 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
2128 (open_symbol_file_object): Likewise.
2129 (svr4_default_sos): Add info parameter.
2130 (svr4_read_so_list): Likewise.
2131 (svr4_current_sos_direct): Adjust functions calls to pass down
2133 (svr4_current_sos_1): Add info parameter.
2134 (svr4_current_sos): Call get_svr4_info, pass info down to
2136 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
2138 (svr4_in_dynsym_resolve_code): Pass current_program_space to
2140 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
2142 (probes_table_remove_objfile_probes): Likewise.
2143 (register_solib_event_probe): Add info parameter.
2144 (solist_update_incremental): Pass info parameter down to
2146 (disable_probes_interface): Add info parameter.
2147 (svr4_handle_solib_event): Pass current_program_space to
2148 get_svr4_info. Adjust disable_probes_interface cleanup.
2149 (svr4_create_probe_breakpoints): Add info parameter, pass it
2150 down to register_solib_event_probe.
2151 (svr4_create_solib_event_breakpoints): Add info parameter,
2152 pass it down to svr4_create_probe_breakpoints.
2153 (enable_break): Pass info down to
2154 svr4_create_solib_event_breakpoints.
2155 (svr4_solib_create_inferior_hook): Pass current_program_space to
2157 (svr4_clear_solib): Likewise.
2159 2019-04-22 Pedro Alves <palves@redhat.com>
2161 * solib-svr4.c (svr4_free_objfile_observer): New.
2162 (probe_and_action::objfile): New field.
2163 (probes_table_htab_remove_objfile_probes)
2164 (probes_table_remove_objfile_probes): New functions.
2165 (register_solib_event_probe): Add 'objfile' parameter. Store it
2166 in the new probe_and_action. Don't store the probe in 'lookup'.
2167 (svr4_create_probe_breakpoints): Pass objfile to
2168 register_solib_event_probe.
2169 (_initialize_svr4_solib): Register a free_objfile observer.
2171 2019-04-19 Tom Tromey <tom@tromey.com>
2173 * common/queue.h: Remove.
2175 2019-04-19 Tom Tromey <tom@tromey.com>
2177 * event-loop.c: Don't include "common/queue.h".
2179 2019-04-19 Tom Tromey <tom@tromey.com>
2181 * remote.c (remote_target): Use delete.
2182 * remote-notif.h: Include <list>, not "common/queue.h".
2183 (notif_client_p): Remove typedef.
2184 (remote_notif_state): Add constructor, destructor, initializer.
2185 <notif_queue>: Now a std::list.
2186 (remote_notif_state_xfree): Don't declare.
2187 * remote-notif.c (remote_notif_process, handle_notification)
2188 (remote_notif_state_allocate): Update.
2189 (~remote_notif_state): Rename from remote_notif_state_xfree.
2191 2019-04-19 Tom Tromey <tom@tromey.com>
2193 * symfile.c (reread_symbols): Update.
2194 * objfiles.c (objfile_register_static_link)
2195 (objfile_lookup_static_link): Update
2196 (~objfile) Don't delete static_links.
2197 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
2199 2019-04-19 Tom Tromey <tom@tromey.com>
2201 * type-stack.h (struct type_stack) <insert>: Constify string.
2202 * type-stack.c (type_stack::insert): Constify string.
2203 * gdbtypes.h (lookup_template_type): Update.
2204 (address_space_name_to_int): Update.
2205 * gdbtypes.c (address_space_name_to_int): Make space_identifier
2207 (lookup_template_type): Make name const.
2208 * c-exp.y: Update rules.
2209 (lex_one_token, classify_name, classify_inner_name)
2210 (c_print_token): Update.
2211 * p-exp.y: Update rules.
2213 * f-exp.y: Update rules.
2215 * d-exp.y: Update rules.
2216 (lex_one_token, classify_name, classify_inner_name): Update.
2217 * parse.c (write_dollar_variable, copy_name): Return std::string.
2218 * parser-defs.h (copy_name): Change return type.
2219 * m2-exp.y: Update rules.
2221 * go-exp.y (lex_one_token): Update.
2223 (classify_unsafe_function, classify_packaged_name)
2224 (classify_name, yylex): Update.
2226 2019-04-19 Sergei Trofimovich <siarheit@google.com>
2228 * configure.ac: add --enable-source-highlight switch.
2229 * configure: Regenerate.
2230 * top.c (print_gdb_version): plumb --enable-source-highlight
2231 status to "show configuration".
2233 2019-04-19 Tom Tromey <tromey@adacore.com>
2235 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
2237 (empty_record, ada_template_to_fixed_record_type_1)
2238 (template_to_static_fixed_type)
2239 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
2240 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
2241 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
2244 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2247 * source.c (print_source_lines_base): Advance "iter" when a
2248 control character is seen.
2250 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2252 * inferior.h (struct infcall_suspend_state_deleter):
2253 Catch exception in destructor to avoid crash.
2255 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2257 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
2258 close to the add_com "shell".
2260 2019-04-18 Tom Tromey <tromey@adacore.com>
2262 * process-stratum-target.h (class process_stratum_target)
2263 <stratum>: Add "final".
2265 2019-04-17 Tom Tromey <tromey@adacore.com>
2267 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
2268 against nullptr before use.
2270 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2272 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
2274 2019-04-17 Jim Wilson <jimw@sifive.com>
2275 Andrew Burgess <andrew.burgess@embecosm.com>
2277 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
2278 code read might fail, assume 4-byte breakpoint in that case.
2280 2019-04-15 Leszek Swirski <leszeks@google.com>
2282 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
2283 rather than a hand-rolled POD check when checking for forced MEMORY
2286 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2288 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
2289 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
2291 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
2292 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
2293 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
2296 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2298 * aarch64-linux-nat.c
2299 (aarch64_linux_nat_target::thread_architecture): Add override.
2300 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
2303 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2305 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
2307 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
2309 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
2310 target types of size 96-bits, add some additional comments, and
2311 check that the builtin type we found was the correct size.
2313 2019-04-12 Eli Zaretskii <eliz@gnu.org>
2315 * utils.c (prompt_for_continue): Don't restore the styling at the
2316 end, as applied_style has the wrong value. This fixes styling in
2317 long lists of file names that are interrupted by the "Continue?"
2320 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
2322 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
2323 * c-lang.c (c_language_defn): Likewise.
2324 (cplus_language_defn): Likewise.
2325 (asm_language_defn): Likewise.
2326 (minimal_language_defn): Likewise.
2327 * d-lang.c (d_language_defn): Likewise.
2328 * f-lang.c (f_language_defn): Likewise.
2329 * go-lang.c (go_language_defn): Likewise.
2330 * language.c (unknown_language_defn): Likewise.
2331 (auto_language_defn): Likewise.
2332 * language.h (struct language_defn): Remove la_magic field.
2333 (LANG_MAGIC): Delete.
2334 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
2335 * objc-lang.c (objc_language_defn): Likewise.
2336 * opencl-lang.c (opencl_language_defn): Likewise.
2337 * p-lang.c (pascal_language_defn): Likewise.
2338 * rust-lang.c (rust_language_defn): Likewise.
2340 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2342 * riscv-tdep.c (riscv_type_align): New function.
2343 (riscv_type_alignment): Delete.
2344 (riscv_arg_location): Use 'type_align'.
2345 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
2347 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2349 * gdbtypes.c (type_align): A struct with no non-static fields also
2352 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2354 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
2356 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
2358 (riscv_struct_info::analyse): New implementation using new
2359 analyse_inner member function.
2360 (riscv_struct_info::field_offset): New member function.
2361 (riscv_struct_info::m_offsets): New member variable.
2362 (riscv_struct_info::analyse_inner): New private member function,
2363 takes the old implementation of riscv_struct_info::analyse but
2364 extended to track field offsets.
2365 (riscv_call_arg_struct): Update the struct folding special cases
2366 to handle cases where empty C++ structs, which are non-zero
2368 (riscv_arg_location): Initialise the length of each location, a
2369 non-zero length now indicates the location is in use.
2370 (riscv_push_dummy_call): Allow for the first location having a
2371 non-zero offset when setting up arguments.
2372 (riscv_return_value): Likewise, but for return values.
2374 2019-04-11 Tom Tromey <tromey@adacore.com>
2376 * utils.c (internal_vproblem): Make "msg" const.
2378 2019-04-11 Alan Hayward <alan.hayward@arm.com>
2380 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2381 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2382 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2383 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2385 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2387 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2389 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2390 of amd64_collect_native_gregset.
2391 (amd64_linux_nat_target::store_registers): Likewise.
2393 2019-04-10 Tom Tromey <tom@tromey.com>
2395 * symtab.c (lookup_global_symbol_from_objfile)
2396 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2397 * objfiles.h (class separate_debug_iterator): New.
2398 (class separate_debug_range): New.
2399 (struct objfile) <separate_debug_objfiles>: New method.
2400 (objfile_separate_debug_iterate): Don't declare.
2401 * objfiles.c (separate_debug_iterator::operator++): Rename from
2402 objfile_separate_debug_iterate.
2403 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2405 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2408 2019-04-10 Tom Tromey <tom@tromey.com>
2410 * symfile.c (reread_symbols): Remove old comment.
2411 * objfiles.c (free_all_objfiles): Fix a typo.
2413 2019-04-10 Tom Tromey <tom@tromey.com>
2415 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2416 * minsyms.c (lookup_minimal_symbol): Use foreach.
2417 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2418 (lookup_minimal_symbol_solib_trampoline): Likewise.
2419 * symfile.c (reread_symbols): Use foreach.
2421 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2422 Tom Tromey <tromey@adacore.com>
2425 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2426 (rust_lex_int_test): Change "value" to be LONGEST.
2427 (rust_lex_tests): Add test for long integer literal.
2429 2019-04-09 Tom Tromey <tromey@adacore.com>
2431 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2433 (extended_remote_target::attach): Update.
2434 (remote_target::remote_notice_new_inferior): Update.
2435 (remote_target::add_current_inferior_and_thread): Update.
2436 * inferior.c (exit_inferior_1): Use "false".
2437 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2439 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2441 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2442 the "start" command.
2444 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2446 * python/py-inferior.c (infpy_thread_from_thread_handle):
2447 Adjust comments to reflect renaming of thread_from_thread_handle
2448 to thread_from_handle. Adjust keywords. Fix type error message.
2449 (inferior_object_methods): Add thread_from_handle. Retain
2450 thread_from_thread_handle, but mark it as deprecated.
2452 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2454 * gdbthread.h (find_thread_by_handle): Revise declaration.
2455 * thread.c (find_thread_by_handle): Likewise. Adjust
2457 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2458 support for buffer objects as handles.
2460 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2462 * python/py-infthread.c (thpy_thread_handle): New function.
2463 (thread_object_methods): Register thpy_thread_handle.
2465 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2467 * gdbthread.h (thread_to_thread_handle): Declare.
2468 * thread.c (gdbtypes.h): Include.
2469 (thread_to_thread_handle): New function.
2471 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2472 (target_thread_info_to_thread_handle): Declare.
2473 * target.c (target_thread_info_to_thread_handle): New function.
2474 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2475 * target-delegates.c: Regenerate.
2477 * linux-thread-db.c (class thread_db_target): Add method
2478 thread_info_to_thread_handle.
2479 (thread_db_target::thread_info_to_thread_handle): Define.
2480 * remote.c (class remote_target): Add new method
2481 thread_info_to_thread_handle.
2482 (remote_target::thread_info_to_thread_handle): Define.
2484 2019-04-08 Pedro Alves <palves@redhat.com>
2486 * common/common-exceptions.c (throw_exception): Don't create
2487 named object to throw; throw directly.
2488 (throw_it): Likewise. Don't initialize gdb_exception::message
2489 here, with new; pass FMT and AP to the ctor instead.
2490 * common/common-exceptions.h: Include <string>.
2491 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2492 const char *, va_list)): New ctor. Use std::make_shared.
2493 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2495 (gdb_exception_error::gdb_exception_error(enum errors, const char
2497 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2499 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2501 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2502 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2505 2019-04-08 Tom Tromey <tom@tromey.com>
2507 * valops.c (value_rtti_indirect_type): Replace throw_exception
2509 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2511 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2513 * target.c (target_translate_tls_address): Replace throw_exception
2515 * stack.c (frame_apply_command_count): Replace throw_exception
2517 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2519 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2521 * rs6000-tdep.c (rs6000_frame_cache)
2522 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2523 * remote.c: Replace throw_exception with throw.
2524 * record-full.c (record_full_message, record_full_wait_1)
2525 (record_full_restore): Replace throw_exception with throw.
2527 (get_thread_current_frame_id, record_btrace_start_replaying)
2528 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2529 (cmd_record_btrace_start): Replace throw_exception with throw.
2530 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2532 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2533 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2535 (find_linespec_symbols): Replace throw_exception with throw.
2536 * infrun.c (displaced_step_prepare, resume): Replace
2537 throw_exception with throw.
2538 * infcmd.c (post_create_inferior): Replace throw_exception with
2540 * inf-loop.c (inferior_event_handler): Replace throw_exception
2542 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2543 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2544 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2545 (get_prev_frame_always, get_frame_pc_if_available)
2546 (get_frame_address_in_block_if_available, get_frame_language):
2547 Replace throw_exception with throw.
2548 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2549 throw_exception with throw.
2550 * eval.c (fetch_subexp_value, evaluate_var_value)
2551 (evaluate_funcall, evaluate_subexp_standard): Replace
2552 throw_exception with throw.
2553 * dwarf2loc.c (call_site_find_chain)
2554 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2555 Replace throw_exception with throw.
2556 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2558 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2560 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2561 * completer.c (complete_line_internal): Replace throw_exception
2563 * compile/compile-object-run.c (compile_object_run): Replace
2564 throw_exception with throw.
2565 * cli/cli-script.c (process_next_line): Replace throw_exception
2567 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2568 (btrace_enable, btrace_maint_update_pt_packets): Replace
2569 throw_exception with throw.
2570 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2571 throw_exception with throw.
2572 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2573 throw_exception with throw.
2574 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2575 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2576 * aarch64-tdep.c (aarch64_make_prologue_cache)
2577 (aarch64_make_stub_cache): Replace throw_exception with throw.
2579 2019-04-08 Tom Tromey <tom@tromey.com>
2581 * common/common-exceptions.c (throw_exception): Rename from
2582 throw_exception_cxx. Remove old copy. Make argument const.
2583 (throw_it): Create and throw exception objects directly.
2584 * common/common-exceptions.h (throw_exception): Make argument
2586 (struct gdb_exception_error): Add constructor.
2587 (struct gdb_exception_quit): Add constructor.
2589 2019-04-08 Tom Tromey <tom@tromey.com>
2591 * common/common-exceptions.h (exception_rethrow): Don't declare.
2592 (TRY_SJLJ): Update comment.
2593 (TRY, CATCH, END_CATCH): Remove.
2594 * common/common-exceptions.c (exception_rethrow): Remove.
2596 2019-04-08 Tom Tromey <tom@tromey.com>
2598 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2600 (gdb_exception_error): Rename from
2601 gdb_exception_RETURN_MASK_ERROR.
2602 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2603 (gdb_quit_bad_alloc): Update.
2604 * aarch64-tdep.c: Update.
2605 * ada-lang.c: Update.
2606 * ada-typeprint.c: Update.
2607 * ada-valprint.c: Update.
2608 * amd64-tdep.c: Update.
2609 * arch-utils.c: Update.
2610 * break-catch-throw.c: Update.
2611 * breakpoint.c: Update.
2613 * c-varobj.c: Update.
2614 * cli/cli-cmds.c: Update.
2615 * cli/cli-interp.c: Update.
2616 * cli/cli-script.c: Update.
2617 * common/common-exceptions.c: Update.
2618 * common/new-op.c: Update.
2619 * common/selftest.c: Update.
2620 * compile/compile-c-symbols.c: Update.
2621 * compile/compile-cplus-symbols.c: Update.
2622 * compile/compile-object-load.c: Update.
2623 * compile/compile-object-run.c: Update.
2624 * completer.c: Update.
2625 * corelow.c: Update.
2627 * cp-support.c: Update.
2628 * cp-valprint.c: Update.
2629 * darwin-nat.c: Update.
2630 * disasm-selftests.c: Update.
2631 * dtrace-probe.c: Update.
2632 * dwarf-index-cache.c: Update.
2633 * dwarf-index-write.c: Update.
2634 * dwarf2-frame-tailcall.c: Update.
2635 * dwarf2-frame.c: Update.
2636 * dwarf2loc.c: Update.
2637 * dwarf2read.c: Update.
2639 * event-loop.c: Update.
2640 * event-top.c: Update.
2642 * f-valprint.c: Update.
2643 * fbsd-tdep.c: Update.
2644 * frame-unwind.c: Update.
2646 * gdbtypes.c: Update.
2647 * gnu-v3-abi.c: Update.
2648 * guile/guile-internal.h: Update.
2649 * guile/scm-block.c: Update.
2650 * guile/scm-breakpoint.c: Update.
2651 * guile/scm-cmd.c: Update.
2652 * guile/scm-disasm.c: Update.
2653 * guile/scm-frame.c: Update.
2654 * guile/scm-lazy-string.c: Update.
2655 * guile/scm-math.c: Update.
2656 * guile/scm-param.c: Update.
2657 * guile/scm-ports.c: Update.
2658 * guile/scm-pretty-print.c: Update.
2659 * guile/scm-symbol.c: Update.
2660 * guile/scm-symtab.c: Update.
2661 * guile/scm-type.c: Update.
2662 * guile/scm-value.c: Update.
2663 * i386-linux-tdep.c: Update.
2664 * i386-tdep.c: Update.
2665 * inf-loop.c: Update.
2666 * infcall.c: Update.
2670 * language.c: Update.
2671 * linespec.c: Update.
2672 * linux-fork.c: Update.
2673 * linux-nat.c: Update.
2674 * linux-tdep.c: Update.
2675 * linux-thread-db.c: Update.
2677 * mi/mi-cmd-break.c: Update.
2678 * mi/mi-cmd-stack.c: Update.
2679 * mi/mi-interp.c: Update.
2680 * mi/mi-main.c: Update.
2681 * objc-lang.c: Update.
2682 * p-valprint.c: Update.
2684 * ppc-linux-tdep.c: Update.
2685 * printcmd.c: Update.
2686 * python/py-arch.c: Update.
2687 * python/py-breakpoint.c: Update.
2688 * python/py-cmd.c: Update.
2689 * python/py-finishbreakpoint.c: Update.
2690 * python/py-frame.c: Update.
2691 * python/py-framefilter.c: Update.
2692 * python/py-gdb-readline.c: Update.
2693 * python/py-inferior.c: Update.
2694 * python/py-infthread.c: Update.
2695 * python/py-lazy-string.c: Update.
2696 * python/py-linetable.c: Update.
2697 * python/py-objfile.c: Update.
2698 * python/py-param.c: Update.
2699 * python/py-prettyprint.c: Update.
2700 * python/py-progspace.c: Update.
2701 * python/py-record-btrace.c: Update.
2702 * python/py-record.c: Update.
2703 * python/py-symbol.c: Update.
2704 * python/py-type.c: Update.
2705 * python/py-unwind.c: Update.
2706 * python/py-utils.c: Update.
2707 * python/py-value.c: Update.
2708 * python/python.c: Update.
2709 * record-btrace.c: Update.
2710 * record-full.c: Update.
2711 * remote-fileio.c: Update.
2713 * riscv-tdep.c: Update.
2714 * rs6000-aix-tdep.c: Update.
2715 * rs6000-tdep.c: Update.
2716 * rust-exp.y: Update.
2717 * rust-lang.c: Update.
2718 * s390-tdep.c: Update.
2719 * selftest-arch.c: Update.
2720 * solib-dsbt.c: Update.
2721 * solib-frv.c: Update.
2722 * solib-spu.c: Update.
2723 * solib-svr4.c: Update.
2725 * sparc64-linux-tdep.c: Update.
2727 * symfile-mem.c: Update.
2728 * symmisc.c: Update.
2732 * tracefile-tfile.c: Update.
2733 * tui/tui.c: Update.
2734 * typeprint.c: Update.
2735 * unittests/cli-utils-selftests.c: Update.
2736 * unittests/parse-connection-spec-selftests.c: Update.
2738 * valprint.c: Update.
2741 * windows-nat.c: Update.
2742 * x86-linux-nat.c: Update.
2743 * xml-support.c: Update.
2745 2019-04-08 Tom Tromey <tom@tromey.com>
2747 * xml-support.c: Use C++ exception handling.
2748 * x86-linux-nat.c: Use C++ exception handling.
2749 * windows-nat.c: Use C++ exception handling.
2750 * varobj.c: Use C++ exception handling.
2751 * value.c: Use C++ exception handling.
2752 * valprint.c: Use C++ exception handling.
2753 * valops.c: Use C++ exception handling.
2754 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2756 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2757 * typeprint.c: Use C++ exception handling.
2758 * tui/tui.c: Use C++ exception handling.
2759 * tracefile-tfile.c: Use C++ exception handling.
2760 * top.c: Use C++ exception handling.
2761 * thread.c: Use C++ exception handling.
2762 * target.c: Use C++ exception handling.
2763 * symmisc.c: Use C++ exception handling.
2764 * symfile-mem.c: Use C++ exception handling.
2765 * stack.c: Use C++ exception handling.
2766 * sparc64-linux-tdep.c: Use C++ exception handling.
2767 * solib.c: Use C++ exception handling.
2768 * solib-svr4.c: Use C++ exception handling.
2769 * solib-spu.c: Use C++ exception handling.
2770 * solib-frv.c: Use C++ exception handling.
2771 * solib-dsbt.c: Use C++ exception handling.
2772 * selftest-arch.c: Use C++ exception handling.
2773 * s390-tdep.c: Use C++ exception handling.
2774 * rust-lang.c: Use C++ exception handling.
2775 * rust-exp.y: Use C++ exception handling.
2776 * rs6000-tdep.c: Use C++ exception handling.
2777 * rs6000-aix-tdep.c: Use C++ exception handling.
2778 * riscv-tdep.c: Use C++ exception handling.
2779 * remote.c: Use C++ exception handling.
2780 * remote-fileio.c: Use C++ exception handling.
2781 * record-full.c: Use C++ exception handling.
2782 * record-btrace.c: Use C++ exception handling.
2783 * python/python.c: Use C++ exception handling.
2784 * python/py-value.c: Use C++ exception handling.
2785 * python/py-utils.c: Use C++ exception handling.
2786 * python/py-unwind.c: Use C++ exception handling.
2787 * python/py-type.c: Use C++ exception handling.
2788 * python/py-symbol.c: Use C++ exception handling.
2789 * python/py-record.c: Use C++ exception handling.
2790 * python/py-record-btrace.c: Use C++ exception handling.
2791 * python/py-progspace.c: Use C++ exception handling.
2792 * python/py-prettyprint.c: Use C++ exception handling.
2793 * python/py-param.c: Use C++ exception handling.
2794 * python/py-objfile.c: Use C++ exception handling.
2795 * python/py-linetable.c: Use C++ exception handling.
2796 * python/py-lazy-string.c: Use C++ exception handling.
2797 * python/py-infthread.c: Use C++ exception handling.
2798 * python/py-inferior.c: Use C++ exception handling.
2799 * python/py-gdb-readline.c: Use C++ exception handling.
2800 * python/py-framefilter.c: Use C++ exception handling.
2801 * python/py-frame.c: Use C++ exception handling.
2802 * python/py-finishbreakpoint.c: Use C++ exception handling.
2803 * python/py-cmd.c: Use C++ exception handling.
2804 * python/py-breakpoint.c: Use C++ exception handling.
2805 * python/py-arch.c: Use C++ exception handling.
2806 * printcmd.c: Use C++ exception handling.
2807 * ppc-linux-tdep.c: Use C++ exception handling.
2808 * parse.c: Use C++ exception handling.
2809 * p-valprint.c: Use C++ exception handling.
2810 * objc-lang.c: Use C++ exception handling.
2811 * mi/mi-main.c: Use C++ exception handling.
2812 * mi/mi-interp.c: Use C++ exception handling.
2813 * mi/mi-cmd-stack.c: Use C++ exception handling.
2814 * mi/mi-cmd-break.c: Use C++ exception handling.
2815 * main.c: Use C++ exception handling.
2816 * linux-thread-db.c: Use C++ exception handling.
2817 * linux-tdep.c: Use C++ exception handling.
2818 * linux-nat.c: Use C++ exception handling.
2819 * linux-fork.c: Use C++ exception handling.
2820 * linespec.c: Use C++ exception handling.
2821 * language.c: Use C++ exception handling.
2822 * jit.c: Use C++ exception handling.
2823 * infrun.c: Use C++ exception handling.
2824 * infcmd.c: Use C++ exception handling.
2825 * infcall.c: Use C++ exception handling.
2826 * inf-loop.c: Use C++ exception handling.
2827 * i386-tdep.c: Use C++ exception handling.
2828 * i386-linux-tdep.c: Use C++ exception handling.
2829 * guile/scm-value.c: Use C++ exception handling.
2830 * guile/scm-type.c: Use C++ exception handling.
2831 * guile/scm-symtab.c: Use C++ exception handling.
2832 * guile/scm-symbol.c: Use C++ exception handling.
2833 * guile/scm-pretty-print.c: Use C++ exception handling.
2834 * guile/scm-ports.c: Use C++ exception handling.
2835 * guile/scm-param.c: Use C++ exception handling.
2836 * guile/scm-math.c: Use C++ exception handling.
2837 * guile/scm-lazy-string.c: Use C++ exception handling.
2838 * guile/scm-frame.c: Use C++ exception handling.
2839 * guile/scm-disasm.c: Use C++ exception handling.
2840 * guile/scm-cmd.c: Use C++ exception handling.
2841 * guile/scm-breakpoint.c: Use C++ exception handling.
2842 * guile/scm-block.c: Use C++ exception handling.
2843 * guile/guile-internal.h: Use C++ exception handling.
2844 * gnu-v3-abi.c: Use C++ exception handling.
2845 * gdbtypes.c: Use C++ exception handling.
2846 * frame.c: Use C++ exception handling.
2847 * frame-unwind.c: Use C++ exception handling.
2848 * fbsd-tdep.c: Use C++ exception handling.
2849 * f-valprint.c: Use C++ exception handling.
2850 * exec.c: Use C++ exception handling.
2851 * event-top.c: Use C++ exception handling.
2852 * event-loop.c: Use C++ exception handling.
2853 * eval.c: Use C++ exception handling.
2854 * dwarf2read.c: Use C++ exception handling.
2855 * dwarf2loc.c: Use C++ exception handling.
2856 * dwarf2-frame.c: Use C++ exception handling.
2857 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2858 * dwarf-index-write.c: Use C++ exception handling.
2859 * dwarf-index-cache.c: Use C++ exception handling.
2860 * dtrace-probe.c: Use C++ exception handling.
2861 * disasm-selftests.c: Use C++ exception handling.
2862 * darwin-nat.c: Use C++ exception handling.
2863 * cp-valprint.c: Use C++ exception handling.
2864 * cp-support.c: Use C++ exception handling.
2865 * cp-abi.c: Use C++ exception handling.
2866 * corelow.c: Use C++ exception handling.
2867 * completer.c: Use C++ exception handling.
2868 * compile/compile-object-run.c: Use C++ exception handling.
2869 * compile/compile-object-load.c: Use C++ exception handling.
2870 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2871 * compile/compile-c-symbols.c: Use C++ exception handling.
2872 * common/selftest.c: Use C++ exception handling.
2873 * common/new-op.c: Use C++ exception handling.
2874 * cli/cli-script.c: Use C++ exception handling.
2875 * cli/cli-interp.c: Use C++ exception handling.
2876 * cli/cli-cmds.c: Use C++ exception handling.
2877 * c-varobj.c: Use C++ exception handling.
2878 * btrace.c: Use C++ exception handling.
2879 * breakpoint.c: Use C++ exception handling.
2880 * break-catch-throw.c: Use C++ exception handling.
2881 * arch-utils.c: Use C++ exception handling.
2882 * amd64-tdep.c: Use C++ exception handling.
2883 * ada-valprint.c: Use C++ exception handling.
2884 * ada-typeprint.c: Use C++ exception handling.
2885 * ada-lang.c: Use C++ exception handling.
2886 * aarch64-tdep.c: Use C++ exception handling.
2888 2019-04-08 Tom Tromey <tom@tromey.com>
2890 * xml-support.c (gdb_xml_parser::parse): Update.
2891 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2892 * value.c (show_convenience): Update.
2893 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2894 (test_parse_flags_qcs): Update.
2895 * thread.c (thr_try_catch_cmd): Update.
2896 * target.c (target_translate_tls_address): Update.
2897 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2898 (info_frame_command_core, frame_apply_command_count): Update.
2899 * rust-exp.y (rust_lex_exception_test): Update.
2900 * riscv-tdep.c (riscv_print_one_register_info): Update.
2901 * remote.c (remote_target::enable_btrace): Update.
2902 * record-btrace.c (record_btrace_enable_warn): Update.
2903 * python/py-utils.c (gdbpy_convert_exception): Update.
2904 * printcmd.c (do_one_display, print_variable_and_value): Update.
2905 * mi/mi-main.c (mi_print_exception): Update.
2906 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2907 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2908 * linux-nat.c (linux_nat_target::attach): Update.
2909 * linux-fork.c (class scoped_switch_fork_info): Update.
2910 * infrun.c (displaced_step_prepare): Update.
2911 * infcall.c (call_function_by_hand_dummy): Update.
2912 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2913 * gnu-v3-abi.c (print_one_vtable): Update.
2914 * frame.c (get_prev_frame_always): Update.
2915 * f-valprint.c (info_common_command_for_block): Update.
2916 * exec.c (try_open_exec_file): Update.
2917 * exceptions.c (print_exception, exception_print)
2918 (exception_fprintf, exception_print_same): Update.
2919 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2920 * dwarf-index-cache.c (index_cache::store)
2921 (index_cache::lookup_gdb_index): Update.
2922 * darwin-nat.c (maybe_cache_shell): Update.
2923 * cp-valprint.c (cp_print_value_fields): Update.
2924 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2925 (gcc_cplus_symbol_address): Update.
2926 * compile/compile-c-symbols.c (gcc_convert_symbol)
2927 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2928 * common/selftest.c: Update.
2929 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2931 (exception_try_scope_entry, exception_try_scope_exit): Don't
2933 (struct exception_try_scope): Remove.
2934 (TRY): Don't use exception_try_scope.
2935 (struct gdb_exception): Add constructor, operator=.
2937 (struct gdb_exception_RETURN_MASK_ALL)
2938 (struct gdb_exception_RETURN_MASK_ERROR)
2939 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2940 (struct gdb_quit_bad_alloc): Update.
2941 * common/common-exceptions.c (exception_none): Change
2943 (struct catcher) <state, exception>: Initialize inline.
2944 <prev>: Remove member.
2945 (current_catcher): Remove.
2946 (catchers): New global.
2947 (exceptions_state_mc_init): Simplify.
2948 (catcher_pop): Remove.
2949 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2950 (try_scope_depth, exception_try_scope_entry)
2951 (exception_try_scope_exit): Remove.
2952 (throw_exception_sjlj): Update.
2953 (exception_messages, exception_messages_size): Remove.
2954 (throw_it): Simplify.
2955 (gdb_exception_sliced_copy): Remove.
2956 (throw_exception_cxx): Update.
2957 * cli/cli-script.c (script_from_file): Update.
2958 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2960 * ada-valprint.c (ada_val_print): Update.
2961 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2962 (create_excep_cond_exprs): Update.
2964 2019-04-08 Tom Tromey <tom@tromey.com>
2966 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2967 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2968 (TRY, CATCH, END_CATCH): Remove some definitions.
2969 * common/common-exceptions.c: Don't use GDB_XCPT.
2970 (catcher_list_size): Remove.
2971 (throw_exception, throw_it): Simplify.
2973 2019-04-05 Tom Tromey <tom@tromey.com>
2975 Revert the header-sorting patch.
2976 * ft32-tdep.c: Revert.
2977 * frv-tdep.c: Revert.
2978 * frv-linux-tdep.c: Revert.
2980 * frame-unwind.c: Revert.
2981 * frame-base.c: Revert.
2982 * fork-child.c: Revert.
2983 * findvar.c: Revert.
2984 * findcmd.c: Revert.
2985 * filesystem.c: Revert.
2986 * filename-seen-cache.h: Revert.
2987 * filename-seen-cache.c: Revert.
2988 * fbsd-tdep.c: Revert.
2989 * fbsd-nat.h: Revert.
2990 * fbsd-nat.c: Revert.
2991 * f-valprint.c: Revert.
2992 * f-typeprint.c: Revert.
2994 * extension.h: Revert.
2995 * extension.c: Revert.
2996 * extension-priv.h: Revert.
2997 * expprint.c: Revert.
3000 * exceptions.c: Revert.
3001 * event-top.c: Revert.
3002 * event-loop.c: Revert.
3004 * elfread.c: Revert.
3005 * dwarf2read.h: Revert.
3006 * dwarf2read.c: Revert.
3007 * dwarf2loc.c: Revert.
3008 * dwarf2expr.h: Revert.
3009 * dwarf2expr.c: Revert.
3010 * dwarf2-frame.c: Revert.
3011 * dwarf2-frame-tailcall.c: Revert.
3012 * dwarf-index-write.h: Revert.
3013 * dwarf-index-write.c: Revert.
3014 * dwarf-index-common.c: Revert.
3015 * dwarf-index-cache.h: Revert.
3016 * dwarf-index-cache.c: Revert.
3017 * dummy-frame.c: Revert.
3018 * dtrace-probe.c: Revert.
3021 * disasm-selftests.c: Revert.
3022 * dictionary.c: Revert.
3023 * dicos-tdep.c: Revert.
3024 * demangle.c: Revert.
3027 * darwin-nat.h: Revert.
3028 * darwin-nat.c: Revert.
3029 * darwin-nat-info.c: Revert.
3030 * d-valprint.c: Revert.
3031 * d-namespace.c: Revert.
3034 * csky-tdep.c: Revert.
3035 * csky-linux-tdep.c: Revert.
3036 * cris-tdep.c: Revert.
3037 * cris-linux-tdep.c: Revert.
3038 * cp-valprint.c: Revert.
3039 * cp-support.c: Revert.
3040 * cp-namespace.c: Revert.
3042 * corelow.c: Revert.
3043 * corefile.c: Revert.
3044 * continuations.c: Revert.
3045 * completer.h: Revert.
3046 * completer.c: Revert.
3047 * complaints.c: Revert.
3048 * coffread.c: Revert.
3049 * coff-pe-read.c: Revert.
3050 * cli-out.h: Revert.
3051 * cli-out.c: Revert.
3052 * charset.c: Revert.
3053 * c-varobj.c: Revert.
3054 * c-valprint.c: Revert.
3055 * c-typeprint.c: Revert.
3057 * buildsym.c: Revert.
3058 * buildsym-legacy.c: Revert.
3059 * build-id.h: Revert.
3060 * build-id.c: Revert.
3062 * bsd-uthread.c: Revert.
3063 * breakpoint.h: Revert.
3064 * breakpoint.c: Revert.
3065 * break-catch-throw.c: Revert.
3066 * break-catch-syscall.c: Revert.
3067 * break-catch-sig.c: Revert.
3068 * blockframe.c: Revert.
3070 * bfin-tdep.c: Revert.
3071 * bfin-linux-tdep.c: Revert.
3072 * bfd-target.c: Revert.
3074 * ax-general.c: Revert.
3077 * avr-tdep.c: Revert.
3079 * auto-load.c: Revert.
3080 * arm-wince-tdep.c: Revert.
3081 * arm-tdep.c: Revert.
3082 * arm-symbian-tdep.c: Revert.
3083 * arm-pikeos-tdep.c: Revert.
3084 * arm-obsd-tdep.c: Revert.
3085 * arm-nbsd-tdep.c: Revert.
3086 * arm-nbsd-nat.c: Revert.
3087 * arm-linux-tdep.c: Revert.
3088 * arm-linux-nat.c: Revert.
3089 * arm-fbsd-tdep.c: Revert.
3090 * arm-fbsd-nat.c: Revert.
3091 * arm-bsd-tdep.c: Revert.
3092 * arch-utils.c: Revert.
3093 * arc-tdep.c: Revert.
3094 * arc-newlib-tdep.c: Revert.
3095 * annotate.h: Revert.
3096 * annotate.c: Revert.
3097 * amd64-windows-tdep.c: Revert.
3098 * amd64-windows-nat.c: Revert.
3099 * amd64-tdep.c: Revert.
3100 * amd64-sol2-tdep.c: Revert.
3101 * amd64-obsd-tdep.c: Revert.
3102 * amd64-obsd-nat.c: Revert.
3103 * amd64-nbsd-tdep.c: Revert.
3104 * amd64-nbsd-nat.c: Revert.
3105 * amd64-nat.c: Revert.
3106 * amd64-linux-tdep.c: Revert.
3107 * amd64-linux-nat.c: Revert.
3108 * amd64-fbsd-tdep.c: Revert.
3109 * amd64-fbsd-nat.c: Revert.
3110 * amd64-dicos-tdep.c: Revert.
3111 * amd64-darwin-tdep.c: Revert.
3112 * amd64-bsd-nat.c: Revert.
3113 * alpha-tdep.c: Revert.
3114 * alpha-obsd-tdep.c: Revert.
3115 * alpha-nbsd-tdep.c: Revert.
3116 * alpha-mdebug-tdep.c: Revert.
3117 * alpha-linux-tdep.c: Revert.
3118 * alpha-linux-nat.c: Revert.
3119 * alpha-bsd-tdep.c: Revert.
3120 * alpha-bsd-nat.c: Revert.
3121 * aix-thread.c: Revert.
3123 * addrmap.c: Revert.
3124 * ada-varobj.c: Revert.
3125 * ada-valprint.c: Revert.
3126 * ada-typeprint.c: Revert.
3127 * ada-tasks.c: Revert.
3128 * ada-lang.c: Revert.
3129 * aarch64-tdep.c: Revert.
3130 * aarch64-ravenscar-thread.c: Revert.
3131 * aarch64-newlib-tdep.c: Revert.
3132 * aarch64-linux-tdep.c: Revert.
3133 * aarch64-linux-nat.c: Revert.
3134 * aarch64-fbsd-tdep.c: Revert.
3135 * aarch64-fbsd-nat.c: Revert.
3136 * aarch32-linux-nat.c: Revert.
3138 2019-04-05 Tom Tromey <tom@tromey.com>
3140 * ft32-tdep.c: Sort headers.
3141 * frv-tdep.c: Sort headers.
3142 * frv-linux-tdep.c: Sort headers.
3143 * frame.c: Sort headers.
3144 * frame-unwind.c: Sort headers.
3145 * frame-base.c: Sort headers.
3146 * fork-child.c: Sort headers.
3147 * findvar.c: Sort headers.
3148 * findcmd.c: Sort headers.
3149 * filesystem.c: Sort headers.
3150 * filename-seen-cache.h: Sort headers.
3151 * filename-seen-cache.c: Sort headers.
3152 * fbsd-tdep.c: Sort headers.
3153 * fbsd-nat.h: Sort headers.
3154 * fbsd-nat.c: Sort headers.
3155 * f-valprint.c: Sort headers.
3156 * f-typeprint.c: Sort headers.
3157 * f-lang.c: Sort headers.
3158 * extension.h: Sort headers.
3159 * extension.c: Sort headers.
3160 * extension-priv.h: Sort headers.
3161 * expprint.c: Sort headers.
3162 * exec.h: Sort headers.
3163 * exec.c: Sort headers.
3164 * exceptions.c: Sort headers.
3165 * event-top.c: Sort headers.
3166 * event-loop.c: Sort headers.
3167 * eval.c: Sort headers.
3168 * elfread.c: Sort headers.
3169 * dwarf2read.h: Sort headers.
3170 * dwarf2read.c: Sort headers.
3171 * dwarf2loc.c: Sort headers.
3172 * dwarf2expr.h: Sort headers.
3173 * dwarf2expr.c: Sort headers.
3174 * dwarf2-frame.c: Sort headers.
3175 * dwarf2-frame-tailcall.c: Sort headers.
3176 * dwarf-index-write.h: Sort headers.
3177 * dwarf-index-write.c: Sort headers.
3178 * dwarf-index-common.c: Sort headers.
3179 * dwarf-index-cache.h: Sort headers.
3180 * dwarf-index-cache.c: Sort headers.
3181 * dummy-frame.c: Sort headers.
3182 * dtrace-probe.c: Sort headers.
3183 * disasm.h: Sort headers.
3184 * disasm.c: Sort headers.
3185 * disasm-selftests.c: Sort headers.
3186 * dictionary.c: Sort headers.
3187 * dicos-tdep.c: Sort headers.
3188 * demangle.c: Sort headers.
3189 * dcache.h: Sort headers.
3190 * dcache.c: Sort headers.
3191 * darwin-nat.h: Sort headers.
3192 * darwin-nat.c: Sort headers.
3193 * darwin-nat-info.c: Sort headers.
3194 * d-valprint.c: Sort headers.
3195 * d-namespace.c: Sort headers.
3196 * d-lang.c: Sort headers.
3197 * ctf.c: Sort headers.
3198 * csky-tdep.c: Sort headers.
3199 * csky-linux-tdep.c: Sort headers.
3200 * cris-tdep.c: Sort headers.
3201 * cris-linux-tdep.c: Sort headers.
3202 * cp-valprint.c: Sort headers.
3203 * cp-support.c: Sort headers.
3204 * cp-namespace.c: Sort headers.
3205 * cp-abi.c: Sort headers.
3206 * corelow.c: Sort headers.
3207 * corefile.c: Sort headers.
3208 * continuations.c: Sort headers.
3209 * completer.h: Sort headers.
3210 * completer.c: Sort headers.
3211 * complaints.c: Sort headers.
3212 * coffread.c: Sort headers.
3213 * coff-pe-read.c: Sort headers.
3214 * cli-out.h: Sort headers.
3215 * cli-out.c: Sort headers.
3216 * charset.c: Sort headers.
3217 * c-varobj.c: Sort headers.
3218 * c-valprint.c: Sort headers.
3219 * c-typeprint.c: Sort headers.
3220 * c-lang.c: Sort headers.
3221 * buildsym.c: Sort headers.
3222 * buildsym-legacy.c: Sort headers.
3223 * build-id.h: Sort headers.
3224 * build-id.c: Sort headers.
3225 * btrace.c: Sort headers.
3226 * bsd-uthread.c: Sort headers.
3227 * breakpoint.h: Sort headers.
3228 * breakpoint.c: Sort headers.
3229 * break-catch-throw.c: Sort headers.
3230 * break-catch-syscall.c: Sort headers.
3231 * break-catch-sig.c: Sort headers.
3232 * blockframe.c: Sort headers.
3233 * block.c: Sort headers.
3234 * bfin-tdep.c: Sort headers.
3235 * bfin-linux-tdep.c: Sort headers.
3236 * bfd-target.c: Sort headers.
3237 * bcache.c: Sort headers.
3238 * ax-general.c: Sort headers.
3239 * ax-gdb.h: Sort headers.
3240 * ax-gdb.c: Sort headers.
3241 * avr-tdep.c: Sort headers.
3242 * auxv.c: Sort headers.
3243 * auto-load.c: Sort headers.
3244 * arm-wince-tdep.c: Sort headers.
3245 * arm-tdep.c: Sort headers.
3246 * arm-symbian-tdep.c: Sort headers.
3247 * arm-pikeos-tdep.c: Sort headers.
3248 * arm-obsd-tdep.c: Sort headers.
3249 * arm-nbsd-tdep.c: Sort headers.
3250 * arm-nbsd-nat.c: Sort headers.
3251 * arm-linux-tdep.c: Sort headers.
3252 * arm-linux-nat.c: Sort headers.
3253 * arm-fbsd-tdep.c: Sort headers.
3254 * arm-fbsd-nat.c: Sort headers.
3255 * arm-bsd-tdep.c: Sort headers.
3256 * arch-utils.c: Sort headers.
3257 * arc-tdep.c: Sort headers.
3258 * arc-newlib-tdep.c: Sort headers.
3259 * annotate.h: Sort headers.
3260 * annotate.c: Sort headers.
3261 * amd64-windows-tdep.c: Sort headers.
3262 * amd64-windows-nat.c: Sort headers.
3263 * amd64-tdep.c: Sort headers.
3264 * amd64-sol2-tdep.c: Sort headers.
3265 * amd64-obsd-tdep.c: Sort headers.
3266 * amd64-obsd-nat.c: Sort headers.
3267 * amd64-nbsd-tdep.c: Sort headers.
3268 * amd64-nbsd-nat.c: Sort headers.
3269 * amd64-nat.c: Sort headers.
3270 * amd64-linux-tdep.c: Sort headers.
3271 * amd64-linux-nat.c: Sort headers.
3272 * amd64-fbsd-tdep.c: Sort headers.
3273 * amd64-fbsd-nat.c: Sort headers.
3274 * amd64-dicos-tdep.c: Sort headers.
3275 * amd64-darwin-tdep.c: Sort headers.
3276 * amd64-bsd-nat.c: Sort headers.
3277 * alpha-tdep.c: Sort headers.
3278 * alpha-obsd-tdep.c: Sort headers.
3279 * alpha-nbsd-tdep.c: Sort headers.
3280 * alpha-mdebug-tdep.c: Sort headers.
3281 * alpha-linux-tdep.c: Sort headers.
3282 * alpha-linux-nat.c: Sort headers.
3283 * alpha-bsd-tdep.c: Sort headers.
3284 * alpha-bsd-nat.c: Sort headers.
3285 * aix-thread.c: Sort headers.
3286 * agent.c: Sort headers.
3287 * addrmap.c: Sort headers.
3288 * ada-varobj.c: Sort headers.
3289 * ada-valprint.c: Sort headers.
3290 * ada-typeprint.c: Sort headers.
3291 * ada-tasks.c: Sort headers.
3292 * ada-lang.c: Sort headers.
3293 * aarch64-tdep.c: Sort headers.
3294 * aarch64-ravenscar-thread.c: Sort headers.
3295 * aarch64-newlib-tdep.c: Sort headers.
3296 * aarch64-linux-tdep.c: Sort headers.
3297 * aarch64-linux-nat.c: Sort headers.
3298 * aarch64-fbsd-tdep.c: Sort headers.
3299 * aarch64-fbsd-nat.c: Sort headers.
3300 * aarch32-linux-nat.c: Sort headers.
3302 2019-04-04 Tom Tromey <tom@tromey.com>
3304 * varobj.c (varobj_create): Update.
3305 * rust-exp.y (struct rust_parser) <update_innermost_block,
3306 lookup_symbol>: New methods.
3307 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
3309 (rust_parser::rust_lookup_type)
3310 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3311 * printcmd.c (display_command, do_one_display): Update.
3312 * parser-defs.h (struct parser_state) <parser_state>: Add
3313 "tracker" parameter.
3314 (block_tracker): New member.
3315 (class innermost_block_tracker) <innermost_block_tracker>: Add
3317 <reset>: Remove method.
3318 (innermost_block): Don't declare.
3319 (null_post_parser): Update.
3320 * parse.c (innermost_block): Remove global.
3321 (write_dollar_variable): Update.
3322 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
3323 Remove "tracker_types" parameter.
3324 (parse_expression): Add "tracker" parameter.
3325 (parse_expression_for_completion): Update.
3326 (null_post_parser): Add "tracker" parameter.
3327 * p-exp.y: Update rules.
3328 * m2-exp.y: Update rules.
3329 * language.h (struct language_defn) <la_post_parser>: Add
3330 "tracker" parameter.
3331 * go-exp.y: Update rules.
3332 * f-exp.y: Update rules.
3333 * expression.h (parse_expression, parse_exp_1): Add "tracker"
3335 * d-exp.y: Update rules.
3336 * c-exp.y: Update rules.
3337 * breakpoint.c (set_breakpoint_condition): Create an
3338 innermost_block_tracker.
3339 (watch_command_1): Likewise.
3340 * ada-lang.c (resolve): Add "tracker" parameter.
3341 (resolve_subexp): Likewise.
3342 * ada-exp.y (write_var_from_sym): Update.
3344 2019-04-04 Tom Tromey <tom@tromey.com>
3346 * type-stack.h: New file.
3347 * type-stack.c: New file.
3348 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
3350 (insert_into_type_stack, insert_type, push_type, push_type_int)
3351 (insert_type_address_space, pop_type, pop_type_int)
3352 (pop_typelist, pop_type_stack, append_type_stack)
3353 (push_type_stack, get_type_stack, push_typelist)
3354 (follow_type_instance_flags, follow_types): Don't declare.
3355 * parse.c (type_stack): Remove global.
3356 (parse_exp_in_context): Update.
3357 (insert_into_type_stack, insert_type, push_type, push_type_int)
3358 (insert_type_address_space, pop_type, pop_type_int)
3359 (pop_typelist, pop_type_stack, append_type_stack)
3360 (push_type_stack, get_type_stack, push_typelist)
3361 (follow_type_instance_flags, follow_types): Remove (moved to
3363 * f-exp.y (type_stack): New global.
3365 (push_kind_type, f_parse): Update.
3366 * d-exp.y (type_stack): New global.
3369 * c-exp.y (struct c_parse_state) <type_stack>: New member.
3371 * Makefile.in (COMMON_SFILES): Add type-stack.c.
3372 (HFILES_NO_SRCDIR): Add type-stack.h.
3374 2019-04-04 Tom Tromey <tom@tromey.com>
3376 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
3377 (rust_parser::convert_ast_to_expression, rust_parse)
3378 (rust_lex_test_completion, rust_lex_tests): Update.
3379 * parser-defs.h (struct expr_completion_state): New.
3380 (struct parser_state) <parser_state>: Add completion parameter.
3381 <mark_struct_expression, mark_completion_tag>: New methods.
3382 <parse_completion, m_completion_state>: New members.
3383 (prefixify_expression, null_post_parser): Update.
3384 (mark_struct_expression, mark_completion_tag): Don't declare.
3385 * parse.c (parse_completion, expout_last_struct)
3386 (expout_tag_completion_type, expout_completion_name): Remove
3388 (parser_state::mark_struct_expression)
3389 (parser_state::mark_completion_tag): Now methods.
3390 (prefixify_expression): Add last_struct parameter.
3391 (prefixify_subexp): Likewise.
3392 (parse_exp_1): Update.
3393 (parse_exp_in_context): Add cstate parameter. Update.
3394 (parse_expression_for_completion): Create an
3395 expr_completion_state.
3396 (null_post_parser): Add "completion" parameter.
3397 * p-exp.y: Update rules.
3399 * language.h (struct language_defn) <la_post_parser>: Add
3400 "completing" parameter.
3401 * go-exp.y: Update rules.
3402 (lex_one_token): Update.
3403 * expression.h (parse_completion): Don't declare.
3404 * d-exp.y: Update rules.
3405 (lex_one_token): Update rules.
3406 * c-exp.y: Update rules.
3407 (lex_one_token): Update.
3408 * ada-lang.c (resolve): Add "parse_completion" parameter.
3409 (resolve_subexp): Likewise.
3410 (ada_resolve_function): Likewise.
3412 2019-04-04 Tom Tromey <tom@tromey.com>
3414 * parser-defs.h (struct parser_state) <start_arglist,
3415 end_arglist>: New methods.
3416 <arglist_len, m_funcall_chain>: New members.
3417 (arglist_len, start_arglist, end_arglist): Don't declare.
3418 * parse.c (arglist_len, funcall_chain): Remove global.
3419 (start_arglist, end_arglist): Remove functions.
3420 (parse_exp_in_context): Update.
3421 * p-exp.y: Update rules.
3422 * m2-exp.y: Update rules.
3423 * go-exp.y: Update rules.
3424 * f-exp.y: Update rules.
3425 * d-exp.y: Update rules.
3426 * c-exp.y: Update rules.
3428 2019-04-04 Tom Tromey <tom@tromey.com>
3430 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3431 lex_operator, push_back>: New methods.
3433 (rust_parser::lex_hex, lex_escape): Rename and update.
3434 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3435 (rust_parser::lex_operator): Rename and update.
3436 (rust_parser::lex_number, rustyylex, rustyyerror)
3437 (rust_lex_test_init, rust_lex_test_sequence)
3438 (rust_lex_test_push_back, rust_lex_tests): Update.
3439 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3441 <lexptr, prev_lexptr>: New members.
3442 (lexptr, prev_lexptr): Don't declare.
3443 * parse.c (lexptr, prev_lexptr): Remove globals.
3444 (parse_exp_in_context): Update.
3445 * p-exp.y (yylex, yyerror): Update.
3446 * m2-exp.y (parse_number, yylex, yyerror): Update.
3447 * go-exp.y (lex_one_token, yyerror): Update.
3448 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3449 * d-exp.y (lex_one_token, yyerror): Update.
3450 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3451 (lex_one_token, yyerror): Update.
3452 * ada-lex.l (YY_INPUT): Update.
3453 (rewind_to_char): Update.
3454 * ada-exp.y (yyerror): Update.
3456 2019-04-04 Tom Tromey <tom@tromey.com>
3458 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3459 * parser-defs.h (struct parser_state) <parser_state>: Add new
3461 <comma_terminates>: New member.
3462 (comma_terminates): Don't declare global.
3463 * parse.c (comma_terminates): Remove global.
3464 (parse_exp_in_context): Update.
3465 * p-exp.y (yylex): Update.
3466 * m2-exp.y (yylex): Update.
3467 * go-exp.y (lex_one_token): Update.
3468 * f-exp.y (yylex): Update.
3469 * d-exp.y (lex_one_token): Update.
3470 * c-exp.y (lex_one_token): Update.
3471 * ada-lex.l: Update.
3473 2019-04-04 Tom Tromey <tom@tromey.com>
3475 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3476 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3477 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3478 * parser-defs.h (paren_depth): Don't declare.
3479 * parse.c (paren_depth): Remove global.
3480 (parse_exp_in_context): Update.
3481 * p-exp.y (paren_depth): New global.
3482 (pascal_parse): Initialize it.
3483 * m2-exp.y (paren_depth): New global.
3484 (m2_parse): Initialize it.
3485 * go-exp.y (paren_depth): New global.
3486 (go_parse): Initialize it.
3487 * f-exp.y (paren_depth): New global.
3488 (f_parse): Initialize it.
3489 * d-exp.y (paren_depth): New global.
3490 (d_parse): Initialize it.
3491 * c-exp.y (paren_depth): New global.
3492 (c_parse): Initialize it.
3493 * ada-lex.l (paren_depth): New global.
3494 (lexer_init): Initialize it.
3496 2019-04-04 Tom Tromey <tom@tromey.com>
3498 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3499 (rust_parser::convert_ast_to_type)
3500 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3501 * parser-defs.h (struct parser_state) <parser_state>: Add
3502 parameters. Initialize new members.
3503 <expression_context_block, expression_context_pc>: New members.
3504 * parse.c (expression_context_block, expression_context_pc):
3506 (parse_exp_in_context): Update.
3507 * p-exp.y: Update all rules.
3509 * m2-exp.y: Update all rules.
3511 * go-exp.y (yylex): Update.
3512 * f-exp.y (yylex): Update.
3513 * d-exp.y: Update all rules.
3515 * c-exp.y: Update all rules.
3516 (lex_one_token, classify_name, yylex, c_parse): Update.
3517 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3519 2019-04-04 Tom Tromey <tom@tromey.com>
3521 * gdbarch.h, gdbarch.c: Rebuild.
3522 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3524 (struct stap_parse_info): Replace "parser_state" with
3526 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3527 (parser_state): New class.
3528 * parse.c (expr_builder): Rename.
3529 (expr_builder::release): Rename.
3530 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3531 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3532 (write_exp_elt_longcst, write_exp_elt_floatcst)
3533 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3534 (write_exp_string_vector, write_exp_bitstring)
3535 (write_exp_msymbol, mark_struct_expression)
3536 (write_dollar_variable)
3537 (insert_type_address_space, increase_expout_size): Replace
3538 "parser_state" with "expr_builder".
3539 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3540 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3541 "parser_state" with "expr_builder".
3543 2019-04-04 Tom Tromey <tom@tromey.com>
3545 * rust-exp.y: Replace "parse_language" with method call.
3547 (yylex): Replace "parse_language" with method call.
3549 (yylex): Replace "parse_language" with method call.
3550 * go-exp.y (classify_name): Replace "parse_language" with method
3552 * f-exp.y (yylex): Replace "parse_language" with method call.
3553 * d-exp.y (lex_one_token): Replace "parse_language" with method
3556 (lex_one_token, classify_name, yylex): Replace "parse_language"
3558 * ada-exp.y (find_primitive_type, type_char)
3559 (type_system_address): Replace "parse_language" with method call.
3561 2019-04-04 Tom Tromey <tom@tromey.com>
3563 * rust-exp.y: Replace "parse_gdbarch" with method call.
3564 * parse.c (write_dollar_variable, insert_type_address_space):
3565 Replace "parse_gdbarch" with method call.
3566 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3568 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3570 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3571 "parse_gdbarch" with method call.
3572 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3574 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3575 "parse_gdbarch" with method call.
3576 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3577 "parse_gdbarch" with method call.
3578 * c-exp.y (parse_type, parse_number, classify_name): Replace
3579 "parse_gdbarch" with method call.
3580 * ada-lex.l: Replace "parse_gdbarch" with method call.
3581 * ada-exp.y (parse_type, find_primitive_type, type_char)
3582 (type_system_address): Replace "parse_gdbarch" with method call.
3584 2019-04-04 Tom Tromey <tom@tromey.com>
3586 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3587 * stap-probe.c (stap_parse_argument): Update.
3588 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3589 initial_size parameter.
3590 * rust-exp.y (rust_lex_tests): Update.
3591 * parse.c (parser_state): Update.
3592 (parse_exp_in_context): Update.
3593 * parser-defs.h (struct parser_state) <parser_state>: Remove
3594 "initial_size" parameter.
3596 2019-04-04 Tom Tromey <tom@tromey.com>
3598 * parser-defs.h (increase_expout_size): Don't declare.
3599 * parse.c (increase_expout_size): Now static.
3601 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3603 * gnu-nat.c (gnu_nat_target::wait): Fix
3604 target_waitstatus_to_string call.
3606 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3608 * eval.c (evaluate_subexp_standard): Handle internal functions
3609 during Fortran function call handling.
3611 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3613 * NEWS: Mention new internal functions.
3614 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3615 (read_base_type): Use dwarf2_init_complex_target_type.
3616 * value.c (creal_internal_fn): New function.
3617 (cimag_internal_fn): New function.
3618 (_initialize_values): Register new internal functions.
3620 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3622 * infrun.c (stop_all_threads): If debug_infrun, always
3623 trace the wait status after wait_one, using
3624 target_waitstatus_to_string and target_pid_to_str.
3625 (handle_inferior_event): Replace various trace of
3626 wait status kind by a single trace.
3627 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3628 wait status kind image by target_waitstatus_to_string.
3629 * target/waitstatus.c (target_waitstatus_to_string): Fix
3632 2019-04-01 Tom Tromey <tromey@adacore.com>
3635 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3637 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3638 Pedro Alves <palves@redhat.com>
3640 * top.c (quit_force): Call 'finalize_values'.
3641 * value.c (finalize_values): New function.
3642 * value.h (finalize_values): Declare.
3644 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3646 * NEWS: Announce $_gdb_major and $_gdb_minor.
3648 * top.c (init_gdb_version_vars): New function.
3649 (gdb_init): Call init_gdb_version_vars.
3651 2019-03-29 Tom Tromey <tromey@adacore.com>
3653 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3654 help text. Remove dead code.
3656 2019-03-29 Keith Seitz <keiths@redhat.com>
3658 From Siddhesh Poyarekar:
3659 * f-lang.h (f77_get_upperbound): Return LONGEST.
3660 (f77_get_lowerbound): Likewise.
3661 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3662 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3664 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3665 plongest to format print it.
3666 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3667 (f77_get_upperbound): Likewise.
3668 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3669 LOWER_BOUND to LONGEST.
3670 (f77_create_arrayprint_offset_tbl): Likewise.
3672 2019-03-29 Keith Seitz <keiths@redhat.com>
3674 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3675 %s/pulongest for TYPE_LENGTH instead of %d in format
3677 * ada-typerint.c (ada_print_type): Likewise.
3678 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3679 * compile/compile-c-support.c (generate_register_struct): Likewise.
3680 * gdbtypes.c (recursive_dump_type): Likewise.
3681 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3682 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3683 instead of %d in format strings.
3684 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3685 to std::min to ULONGEST.
3686 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3687 instead of %d in format strings.
3688 * tracepoint.c (info_scope_command): Likewise.
3689 * typeprint.c (print_offset_data::update)
3690 (print_offset_data::finish): Likewise.
3691 * xtensa-tdep.c (xtensa_store_return_value)
3692 (xtensa_push_dummy_call): Likewise.
3694 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3696 * windows-nat.c (display_selector): Fixed format specifications
3699 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3701 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3703 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3705 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3706 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3707 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3708 (nios2_linux_init_abi): Install it.
3710 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3712 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3714 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3716 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3718 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3719 Tom Tromey <tromey@adacore.com>
3721 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3723 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3725 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3726 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3727 method to compute the bounds of range types. Also print "[evaluated]"
3728 if the bounds' values come from a dynamic evaluation.
3730 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3732 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3733 whitespace when pretty printing is on.
3735 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3737 * ppc-linux-nat.c: Add include.
3739 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3741 * NEWS: Mention AArch64 Pointer Authentication.
3743 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3745 * arm-linux-nat.c: Add include.
3747 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3749 * source-cache.c (source_cache::get_source_lines): Re-read
3750 fullname after calling open_source_file.
3752 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3754 * NEWS: Mention TLS support for FreeBSD.
3756 2019-03-25 Tom Tromey <tromey@adacore.com>
3758 * minsyms.c (BUNCH_SIZE): Update comment.
3759 (~minimal_symbol_reader): Remove old comment.
3760 (compact_minimal_symbols): Update comment.
3761 (minimal_symbol_reader::install): Remove old comment. Update
3764 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3766 * s390-linux-nat.c: Add include.
3768 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3770 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3771 Call linux_get_hwcap.
3772 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3774 (aarch64_linux_get_hwcap): Remove function.
3775 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3777 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3779 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3780 * linux-tdep.c (linux_get_hwcap): Add function.
3781 (linux_get_hwcap2): Likewise.
3782 * linux-tdep.h (linux_get_hwcap): Add declaration.
3783 (linux_get_hwcap2): Likewise.
3784 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3785 (ppc_linux_get_hwcap2): Likewise.
3786 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3788 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3789 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3790 (ppc_linux_nat_target::read_description): Likewise.
3791 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3792 * s390-linux-nat.c: Likewise.
3793 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3795 2019-03-24 Tom Tromey <tom@tromey.com>
3797 * ada-lang.c (standard_lookup): Simplify initialization.
3798 (ada_lookup_symbol_nonlocal): Simplify return.
3799 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3800 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3801 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3802 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3804 * solib.c (solib_global_lookup): Simplify.
3805 * symtab.c (null_block_symbol): Remove.
3806 (symbol_cache_lookup): Simplify returns.
3807 (lookup_language_this): Simplify returns.
3808 (lookup_symbol_aux): Simplify return.
3809 (lookup_local_symbol): Simplify returns.
3810 (lookup_global_symbol_from_objfile): Simplify return.
3811 (lookup_symbol_in_objfile_symtabs)
3812 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3813 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3814 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3815 * cp-namespace.c (cp_lookup_bare_symbol)
3816 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3817 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3818 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3819 (cp_lookup_symbol_via_imports): Simplify initialization.
3820 (find_symbol_in_baseclass): Likewise.
3821 * symtab.h (null_block_symbol): Remove.
3822 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3823 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3824 (d_lookup_symbol_module): Likewise.
3825 (find_symbol_in_baseclass): Simplify initialization.
3827 2019-03-24 Tom Tromey <tom@tromey.com>
3829 * expression.h: Don't include symtab.h.
3830 (struct block): Forward declare.
3832 2019-03-24 Tom Tromey <tom@tromey.com>
3834 * c-exp.y (typebase): Remove casts.
3835 * gdbtypes.c (lookup_unsigned_typename, )
3836 (lookup_signed_typename): Remove cast.
3837 * eval.c (parse_to_comma_and_eval): Remove cast.
3838 * parse.c (write_dollar_variable): Remove cast.
3839 * block.h (struct block) <superblock>: Now const.
3840 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3841 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3842 (map_block): Make "block" const.
3843 * symfile.h (struct quick_symbol_functions)
3844 <map_matching_symbols>: Constify block argument to "callback".
3845 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3847 (find_pc_sect_compunit_symtab): Make "b" const.
3848 (find_symbol_at_address): Likewise.
3849 (search_symbols): Likewise.
3850 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3851 (dw2_debug_names_lookup_symbol): Likewise.
3852 (dw2_map_matching_symbols): Update.
3853 * p-valprint.c (pascal_val_print): Remove "block".
3854 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3855 (aux_add_nonlocal_symbols): Make "block" const.
3856 (resolve_subexp): Remove cast.
3857 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3859 (iterate_over_file_blocks): Likewise.
3860 * f-exp.y (%union) <bval>: Remove.
3861 * coffread.c (patch_opaque_types): Make "b" const.
3862 * spu-tdep.c (spu_catch_start): Make "block" const.
3863 * c-valprint.c (print_unpacked_pointer): Remove "block".
3864 * symmisc.c (dump_symtab_1): Make "b" const.
3865 (block_depth): Make "block" const.
3866 * d-exp.y (%union) <bval>: Remove.
3867 * cp-support.h (cp_lookup_rtti_type): Update.
3868 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3869 * psymtab.c (psym_lookup_symbol): Make "block" const.
3870 (maintenance_check_psymtabs): Make "b" const.
3871 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3872 (enumerate_locals, enumerate_args): Update.
3873 * python/py-symtab.c (stpy_global_block): Make "block" const.
3874 (stpy_static_block): Likewise.
3875 * inline-frame.c (block_starting_point_at): Make "new_block"
3877 * block.c (find_block_in_blockvector): Make return type const.
3878 (blockvector_for_pc_sect): Make "b" const.
3879 (find_block_in_blockvector): Make "b" const.
3881 2019-03-23 Tom Tromey <tom@tromey.com>
3883 * varobj.c (varobj_create): Update.
3884 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3885 * printcmd.c (display_command, do_one_display): Don't reset
3887 * parser-defs.h (enum innermost_block_tracker_type): Move to
3889 (innermost_block): Update comment.
3890 * parse.c (parse_exp_1): Add tracker_types parameter.
3891 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3892 tracker_types parameter. Reset innermost_block.
3893 (parse_exp_in_context): Remove.
3894 (parse_expression_for_completion): Update.
3895 * objfiles.c (~objfile): Don't reset expression_context_block or
3897 * expression.h (enum innermost_block_tracker_type): Move from
3899 (parse_exp_1): Add tracker_types parameter.
3900 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3901 reset innermost_block.
3903 2019-03-23 Tom Tromey <tom@tromey.com>
3905 * objfiles.h: Include bcache.h.
3907 2019-03-23 Tom Tromey <tom@tromey.com>
3909 * linespec.c (get_current_search_block): Use
3910 scoped_restore_current_language.
3911 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3913 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3914 Jiong Wang <jiong.wang@arm.com>
3916 * aarch64-linux-tdep.c
3917 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3919 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3921 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3922 Jiong Wang <jiong.wang@arm.com>
3924 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3926 (aarch64_analyze_prologue_test): Add PACIASP test.
3927 (aarch64_prologue_prev_register): Unmask PC value.
3929 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3930 Jiong Wang <jiong.wang@arm.com>
3932 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3933 (aarch64_dwarf2_prev_register): Unmask PC value.
3934 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3935 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3936 DW_CFA_AARCH64_negate_ra_state.
3937 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3939 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3940 Jiong Wang <jiong.wang@arm.com>
3942 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3944 (aarch64_pseudo_register_name): Likewise.
3945 (aarch64_pseudo_register_type): Likewise.
3946 (aarch64_pseudo_register_reggroup_p): Likewise.
3947 (aarch64_gdbarch_init): Add pauth registers.
3948 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3949 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3950 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3951 (struct gdbarch_tdep): Add regnum for ra_state.
3953 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3954 Jiong Wang <jiong.wang@arm.com>
3956 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3958 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3959 Jiong Wang <jiong.wang@arm.com>
3961 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3963 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3964 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3965 (aarch64_gdbarch_init): Add puth registers.
3966 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3967 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3968 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3970 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3971 Jiong Wang <jiong.wang@arm.com>
3973 * aarch64-linux-nat.c
3974 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3975 * aarch64-linux-tdep.c
3976 (aarch64_linux_core_read_description): Likewise.
3977 (aarch64_linux_get_hwcap): New function.
3978 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3979 (aarch64_linux_get_hwcap): New declaration.
3981 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3982 Jiong Wang <jiong.wang@arm.com>
3984 * aarch64-linux-nat.c
3985 (aarch64_linux_nat_target::read_description): Add pauth param.
3986 * aarch64-linux-tdep.c
3987 (aarch64_linux_core_read_description): Likewise.
3988 * aarch64-tdep.c (struct target_desc): Add in pauth.
3989 (aarch64_read_description): Add pauth param.
3990 (aarch64_gdbarch_init): Likewise.
3991 * aarch64-tdep.h (aarch64_read_description): Likewise.
3992 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3993 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3994 * features/Makefile: Add new files.
3995 * features/aarch64-pauth.c: New file.
3996 * features/aarch64-pauth.xml: New file.
3998 2019-03-20 Tom Tromey <tromey@adacore.com>
4000 * infrun.c (handle_inferior_event): Rename from
4001 handle_inferior_event_1. Create a scoped_value_mark.
4002 (handle_inferior_event): Remove.
4004 2019-03-19 Tom Tromey <tromey@adacore.com>
4006 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
4007 * infrun.h (print_stop_event): Add "displays" parameter.
4008 * infrun.c (print_stop_event): Add "displays" parameter.
4010 2019-03-19 Pedro Alves <palves@redhat.com>
4012 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
4013 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
4014 to -1. Fix TABs vs spaces.
4015 (tui_ui_out::tui_ui_out): Don't initialize fields here.
4016 * tui/tui-out.h (tui_ui_out) Add intro comments.
4017 <m_line, m_start_of_line>: In-class initialize, and add describing
4020 2019-03-18 Alan Hayward <alan.hayward@arm.com>
4022 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
4024 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
4026 2019-03-18 Pedro Alves <palves@redhat.com>
4027 Eli Zaretskii <eliz@gnu.org>
4029 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
4030 m_line and m_start_of_line.
4032 2019-03-18 Eli Zaretskii <eliz@gnu.org>
4034 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
4035 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
4036 it returns a newline. This fixes a regression in TU mode, whereby
4037 the next line is output on the same screen line as the user input.
4039 2019-03-18 Tom Tromey <tromey@adacore.com>
4041 * minsyms.c (minimal_symbol_reader::install): Remove call to
4044 2019-03-18 Pedro Alves <palves@redhat.com>
4046 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
4048 (apply_style): New, factored out from ...
4049 (apply_ansi_escape): ... this. Handle reverse video mode.
4050 (tui_set_reverse_mode): New function.
4051 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
4052 * tui/tui-winsource.c (tui_show_source_line): Use
4053 tui_set_reverse_mode instead of setting A_STANDOUT.
4054 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
4057 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
4059 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
4062 2019-03-18 Tom Tromey <tromey@adacore.com>
4064 * ada-lang.c (empty_array): Add "high" parameter.
4065 (ada_evaluate_subexp): Update.
4067 2019-03-17 Sergei Trofimovich <siarheit@google.com>
4069 * unittests/string_view-selftests.c: Define
4070 _initialize_string_view_selftests unconditionally.
4072 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4075 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
4077 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4080 * windows-nat.c (display_selector): Fix format specifiers.
4082 2019-03-17 Eli Zaretskii <eliz@gnu.org>
4084 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
4085 tui_refill_source_window instead of tui_refresh_win, to update the
4086 current execution line. This fixes redisplay of the current line
4087 when stepping through the code with "next" or "step".
4089 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4091 * source-cache.c (source_cache::get_source_lines): Call
4092 find_source_lines to initialize s->nlines. This fixes vertical
4093 scrolling of TUI source window when the DOWN arrow is pressed.
4095 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4097 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
4098 linux-thread-db.c (_initialize_thread_db): Likewise.
4100 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4102 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
4103 wclrtoeol in tui_show_source_line". This reverts changes made in
4104 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
4106 2019-03-15 Tom Tromey <tom@tromey.com>
4108 * symtab.h (struct minimal_symbol): Derive from
4109 general_symbol_info.
4110 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
4111 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4112 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4113 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4114 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
4115 (MSYMBOL_SEARCH_NAME): Update.
4116 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
4117 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
4118 * minsyms.c (minimal_symbol_reader::record_full): Update.
4120 2019-03-15 Tom Tromey <tom@tromey.com>
4122 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
4124 2019-03-15 Tom Tromey <tom@tromey.com>
4126 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
4128 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
4130 * minsyms.c (lookup_minimal_symbol_by_pc_section)
4131 (build_minimal_symbol_hash_tables)
4132 (minimal_symbol_reader::install): Update.
4134 2019-03-15 Tom Tromey <tom@tromey.com>
4136 * symtab.c (create_demangled_names_hash): Update.
4137 (symbol_set_names): Update.
4138 * objfiles.h (struct objfile_per_bfd_storage)
4139 <demangled_names_hash>: Now an htab_up.
4140 * objfiles.c (objfile_per_bfd_storage): Simplify.
4142 2019-03-15 Tom Tromey <tom@tromey.com>
4144 * objfiles.h (struct objfile_per_bfd_storage): Declare
4146 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
4148 (get_objfile_bfd_data): Use new. Don't initialize
4150 (free_objfile_per_bfd_storage): Remove.
4151 (objfile_bfd_data_free, objfile::~objfile): Use delete.
4153 2019-03-15 Tom Tromey <tom@tromey.com>
4155 * symfile.c (reread_symbols): Update.
4156 * objfiles.c (objfile::objfile): Update.
4157 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
4158 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
4160 (minimal_symbol_reader::install): Update.
4161 (terminate_minimal_symbol_table): Remove.
4162 * jit.c (jit_object_close_impl): Update.
4164 2019-03-15 Tom Tromey <tom@tromey.com>
4166 * minsyms.c (minimal_symbol_reader::record_full): Remove some
4169 2019-03-15 Tom Tromey <tom@tromey.com>
4171 * objfiles.h (struct objfile_per_bfd_storage)
4172 <demangled_hash_languages>: Now a bitset.
4173 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
4174 (lookup_minimal_symbol): Update.
4176 2019-03-15 Tom Tromey <tom@tromey.com>
4178 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
4179 Don't return the symbol.
4180 * coffread.c (record_minimal_symbol): Use record_full.
4182 2019-03-14 Eli Zaretskii <eliz@gnu.org>
4184 The MS-Windows port of ncurses fails to switch to a color pair if
4185 one or both of the colors are the implicit default colors. This
4186 change records the default colors when TUI is initialized, and
4187 then specifies them explicitly when a color pair uses the default
4188 colors. This allows color styling in TUI mode on MS-Windows.
4190 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
4192 (tui_initialize_io) [__MINGW32__]: Record the default terminal
4193 colors in ncurses_norm_attr.
4194 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
4195 "none", replace it with the default color recorded in
4198 2019-03-14 Tom Tromey <tromey@adacore.com>
4200 * source-cache.h (class source_cache) <get_source_lines>: Return
4202 * source-cache.c (source_cache::extract_lines): Handle case where
4203 first_pos==npos. Return std::string.
4204 (source_cache::get_source_lines): Update.
4206 2019-03-14 Tom Tromey <tromey@adacore.com>
4208 * NEWS: Add item for "style sources" commands.
4209 * source-cache.c (source_cache::get_source_lines): Check
4211 * cli/cli-style.c (source_styling): New global.
4212 (_initialize_cli_style): Add "style sources" commands.
4213 (show_style_sources): New function.
4214 * cli/cli-style.h (source_styling): Declare.
4216 2019-03-14 Pedro Alves <palves@redhat.com>
4217 Tom Tromey <tromey@adacore.com>
4219 * tui/tui-winsource.h (tui_refill_source_window): Declare.
4220 * tui/tui-winsource.c (tui_refill_source_window): New function,
4222 (tui_horizontal_source_scroll): ... here. Move some logic.
4223 * cli/cli-style.c (set_style_enabled): Notify new observable.
4224 * tui/tui-hooks.c (tui_redisplay_source): New function.
4225 (tui_attach_detach_observers): Attach or detach
4226 tui_redisplay_source.
4227 * observable.h (source_styling_changed): New observable.
4228 * observable.c: Define source_styling_changed observable.
4230 2019-03-13 Tom Tromey <tromey@adacore.com>
4232 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
4233 (i386_gnu_nat_target::store_registers): Update.
4234 * target-debug.h (target_debug_print_std_string): New macro.
4235 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4236 * windows-tdep.c (display_one_tib): Update.
4237 * tui/tui-stack.c (tui_make_status_line): Update.
4238 * top.c (print_inferior_quit_action): Update.
4239 * thread.c (thr_try_catch_cmd): Update.
4240 (add_thread_with_info): Update.
4241 (thread_target_id_str): Update.
4242 (thr_try_catch_cmd): Update.
4243 (thread_command): Update.
4244 (thread_find_command): Update.
4245 * record-btrace.c (record_btrace_target::info_record)
4246 (record_btrace_resume_thread, record_btrace_target::resume)
4247 (record_btrace_cancel_resume, record_btrace_step_thread)
4248 (record_btrace_target::wait, record_btrace_target::wait)
4249 (record_btrace_target::wait, record_btrace_target::stop): Update.
4250 * progspace.c (print_program_space): Update.
4251 * process-stratum-target.c
4252 (process_stratum_target::thread_address_space): Update.
4253 * linux-fork.c (linux_fork_mourn_inferior)
4254 (detach_checkpoint_command, info_checkpoints_command)
4255 (linux_fork_context): Update.
4256 (linux_fork_detach): Update.
4257 (class scoped_switch_fork_info): Update.
4258 (delete_checkpoint_command): Update.
4259 * infrun.c (follow_fork_inferior): Update.
4260 (follow_fork_inferior): Update.
4261 (proceed_after_vfork_done): Update.
4262 (handle_vfork_child_exec_or_exit): Update.
4263 (follow_exec): Update.
4264 (displaced_step_prepare_throw): Update.
4265 (displaced_step_restore): Update.
4266 (start_step_over): Update.
4268 (clear_proceed_status_thread): Update.
4270 (print_target_wait_results): Update.
4271 (do_target_wait): Update.
4272 (context_switch): Update.
4273 (stop_all_threads): Update.
4274 (restart_threads): Update.
4275 (finish_step_over): Update.
4276 (handle_signal_stop): Update.
4277 (switch_back_to_stepped_thread): Update.
4278 (keep_going_pass_signal): Update.
4279 (print_exited_reason): Update.
4280 (normal_stop): Update.
4281 * inferior.c (inferior_pid_to_str): Change return type.
4282 (print_selected_inferior): Update.
4283 (add_inferior): Update.
4284 (detach_inferior): Update.
4285 * dummy-frame.c (fprint_dummy_frames): Update.
4286 * dcache.c (dcache_info_1): Update.
4287 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4288 (btrace_fetch, btrace_clear): Update.
4289 * linux-tdep.c (linux_core_pid_to_str): Change return type.
4290 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
4292 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
4293 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
4294 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
4295 * gdbarch.c, gdbarch.h: Rebuild.
4296 * gdbarch.sh (core_pid_to_str): Change return type.
4297 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
4299 (windows_nat_target::pid_to_str): Change return type.
4300 (windows_delete_thread): Update.
4301 (windows_nat_target::attach): Update.
4302 (windows_nat_target::files_info): Update.
4303 * target-delegates.c: Rebuild.
4304 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
4306 (sol_thread_target::pid_to_str): Change return type.
4307 * remote.c (class remote_target) <pid_to_str>: Change return
4309 (remote_target::pid_to_str): Change return type.
4310 (extended_remote_target::attach, remote_target::remote_stop_ns)
4311 (remote_target::remote_notif_remove_queued_reply)
4312 (remote_target::push_stop_reply, remote_target::disable_btrace):
4314 (extended_remote_target::attach): Update.
4315 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
4317 (gdbsim_target::pid_to_str): Change return type.
4318 * ravenscar-thread.c (struct ravenscar_thread_target)
4319 <pid_to_str>: Change return type.
4320 (ravenscar_thread_target::pid_to_str): Change return type.
4321 * procfs.c (class procfs_target) <pid_to_str>: Change return
4323 (procfs_target::pid_to_str): Change return type.
4324 (procfs_target::attach): Update.
4325 (procfs_target::detach): Update.
4326 (procfs_target::fetch_registers): Update.
4327 (procfs_target::store_registers): Update.
4328 (procfs_target::wait): Update.
4329 (procfs_target::files_info): Update.
4330 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
4331 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
4333 (nto_procfs_target::pid_to_str): Change return type.
4334 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
4335 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
4337 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
4339 (attach_proc_task_lwp_callback, get_detach_signal)
4340 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
4341 (linux_nat_target::resume, wait_lwp, stop_callback)
4342 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
4343 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
4344 (linux_nat_wait_1, resume_stopped_resumed_lwps)
4345 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
4346 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
4348 (inf_ptrace_target::attach): Update.
4349 (inf_ptrace_target::files_info): Update.
4350 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
4352 (go32_nat_target::pid_to_str): Change return type.
4353 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
4354 (gnu_nat_target::wait): Update.
4355 (gnu_nat_target::wait): Update.
4356 (gnu_nat_target::resume): Update.
4357 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
4358 (fbsd_nat_target::wait): Update.
4359 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
4361 (darwin_nat_target::attach): Update.
4362 * corelow.c (class core_target) <pid_to_str>: Change return type.
4363 (core_target::pid_to_str): Change return type.
4364 * target.c (normal_pid_to_str): Change return type.
4365 (default_pid_to_str): Likewise.
4366 (target_pid_to_str): Change return type.
4367 (target_translate_tls_address): Update.
4368 (target_announce_detach): Update.
4369 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
4371 (bsd_uthread_target::pid_to_str): Change return type.
4372 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
4374 (bsd_kvm_target::pid_to_str): Change return type.
4375 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
4377 (aix_thread_target::pid_to_str): Change return type.
4378 * target.h (struct target_ops) <pid_to_str>: Change return type.
4379 (target_pid_to_str, normal_pid_to_str): Likewise.
4380 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4382 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4384 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4386 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4388 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4390 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4393 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4395 * NEWS: Mention that the new default MI version is 3. Mention
4396 changes to the output of commands and events that deal with
4397 multi-location breakpoints.
4398 * breakpoint.c: Include "mi/mi-out.h".
4399 (print_one_breakpoint): Change output syntax if using MI version
4401 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4403 (mi_multi_location_breakpoint_output_fixed): New.
4404 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4405 (mi_cmd_fix_multi_location_breakpoint_output): New.
4406 (mi_multi_location_breakpoint_output_fixed): New.
4407 * mi/mi-cmds.c (mi_cmds): Register command
4408 -fix-multi-location-breakpoint-output.
4409 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4412 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4414 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4415 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4416 instantiate mi_ui_out based on interpreter name.
4417 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4418 * mi/mi-main.c (mi_load_progress): Likewise.
4420 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4422 * NEWS: Combine separate "New targets" sections for 8.3.
4424 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4426 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4427 (ppcfbsd_init_abi): Install gdbarch
4428 "fetch_tls_load_module_address" and "get_thread_local_address"
4431 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4433 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4434 (riscv_fbsd_init_abi): Install gdbarch
4435 "fetch_tls_load_module_address" and "get_thread_local_address"
4438 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4440 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4441 (i386fbsd_init_abi): Install gdbarch
4442 "fetch_tls_load_module_address" and "get_thread_local_address"
4445 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4447 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4448 (amd64fbsd_init_abi): Install gdbarch
4449 "fetch_tls_load_module_address" and "get_thread_local_address"
4452 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4454 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4455 (struct fbsd_pspace_data): New type.
4456 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4457 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4458 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4459 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4460 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4462 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4464 * gdbtypes.c (lookup_struct_elt): New function.
4465 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4466 * gdbtypes.h (struct struct_elt): New type.
4467 (lookup_struct_elt): New prototype.
4469 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4471 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4472 remove disabled code block.
4474 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4476 * gdbarch.sh (get_thread_local_address): New method.
4477 * gdbarch.h, gdbarch.c: Regenerate.
4478 * target.c (target_translate_tls_address): Use
4479 gdbarch_get_thread_local_address if present instead of
4480 target::get_thread_local_address.
4482 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4484 * target.h (target::get_thread_local_address): Update comment.
4486 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4488 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4489 objfile->separate_debug_objfile_backlink if not NULL.
4491 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4493 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4494 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4495 (amd64bsd_store_inferior_registers): Likewise.
4496 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4497 Enable segment base registers.
4498 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4499 PT_GETFSBASE and PT_GETGSBASE.
4500 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4502 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4503 segment base registers.
4504 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4506 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4508 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4509 Update calls to i386_target_description to add 'segments'
4511 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4512 add segment base registers.
4513 * arch/i386.c (i386_create_target_description): Add 'segments'
4514 parameter to enable segment base registers.
4515 * arch/i386.h (i386_create_target_description): Likewise.
4516 * features/i386/32bit-segments.xml: New file.
4517 * features/i386/32bit-segments.c: Generate.
4518 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4519 call to i386_target_description to add 'segments' parameter.
4520 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4521 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4522 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4523 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4524 if feature is present.
4525 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4526 Add 'segments' parameter to call to i386_target_description.
4527 (i386_target_description): Add 'segments' parameter to enable
4528 segment base registers.
4529 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4530 to call to i386_target_description.
4531 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4532 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4533 Define I386_NUM_REGS.
4534 (i386_target_description): Add 'segments' parameter to enable
4535 segment base registers.
4537 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4540 * source-cache.c: #undef open and close, to avoid unresolved
4541 externals during linking.
4543 2019-03-12 Tom Tromey <tromey@adacore.com>
4545 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4546 const. Add initializers.
4547 (_initialize_remote): Don't initialize ptid globals.
4549 2019-03-12 Pedro Alves <palves@redhat.com>
4551 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4553 2019-03-12 Pedro Alves <palves@redhat.com>
4555 * cp-name-parser.y (main): Remove unused 'len' variable.
4557 2019-03-12 Tom Tromey <tromey@adacore.com>
4559 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4560 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4562 2019-03-12 Tom Tromey <tromey@adacore.com>
4564 * linux-nat.c (iterate_over_lwps): Update.
4565 (stop_callback): Remove parameter.
4566 (stop_wait_callback, detach_callback, resume_set_callback)
4567 (select_singlestep_lwp_callback, set_ignore_sigint)
4568 (status_callback, resumed_callback, resume_clear_callback)
4569 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4571 (linux_nat_target::detach, linux_nat_target::resume)
4572 (linux_stop_and_wait_all_lwps, select_event_lwp)
4573 (linux_nat_filter_event, linux_nat_wait_1)
4574 (linux_nat_target::kill, linux_nat_target::stop)
4575 (linux_nat_target::stop): Update.
4576 (linux_nat_resume_callback): Change type.
4577 (resume_stopped_resumed_lwps, count_events_callback)
4578 (select_event_lwp_callback): Likewise.
4579 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4580 * arm-linux-nat.c (struct update_registers_data): Remove.
4581 (update_registers_callback): Change type.
4582 (arm_linux_insert_hw_breakpoint1): Update.
4583 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4585 (x86_linux_dr_set_addr): Update.
4586 (x86_linux_dr_set_control): Update.
4587 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4588 (iterate_over_lwps): Use gdb::function_view.
4589 * nat/aarch64-linux-hw-point.c (struct
4590 aarch64_dr_update_callback_param): Remove.
4591 (debug_reg_change_callback): Change type.
4592 (aarch64_notify_debug_reg_change): Update.
4593 * s390-linux-nat.c (s390_refresh_per_info): Update.
4595 2019-03-11 Tom Tromey <tromey@adacore.com>
4597 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4598 redundant assignment to "this_cu".
4600 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4602 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4604 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4606 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4608 (rank_one_type): ... this.
4610 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4612 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4614 (rank_one_type): ... this.
4616 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4618 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4620 (rank_one_type): ... this.
4622 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4624 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4626 (rank_one_type): ... this.
4628 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4630 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4632 (rank_one_type): ... this.
4634 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4636 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4638 (rank_one_type): ... this.
4640 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4642 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4644 (rank_one_type): ... this.
4646 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4648 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4650 (rank_one_type): ... this.
4652 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4654 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4656 (rank_one_type): ... this.
4658 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4660 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4662 (rank_one_type): ... this.
4664 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4666 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4668 (rank_one_type): ... this.
4670 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4672 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4674 (rank_one_type): ... this.
4676 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4678 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4679 inferior-events' shows the example events.
4681 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4683 Support styling on native MS-Windows console
4686 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4687 on MS-Windows if $TERM is not defined.
4689 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4691 * posix-hdep.c (gdb_console_fputs):
4692 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4694 * ui-file.h (gdb_console_fputs): Add prototype.
4696 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4697 back to fputs only if the former returns zero.
4699 2019-03-07 Tom Tromey <tom@tromey.com>
4701 * symmisc.c (print_symbol_bcache_statistics): Update.
4702 (print_objfile_statistics): Update.
4703 * symfile.c (allocate_symtab): Update.
4704 * stabsread.c: Don't include bcache.h.
4705 * psymtab.h (struct psymbol_bcache): Don't declare.
4706 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4707 (psymbol_bcache_init, psymbol_bcache_free)
4708 (psymbol_bcache_get_bcache): Don't declare.
4709 * psymtab.c (struct psymbol_bcache): Remove.
4710 (psymtab_storage::psymtab_storage): Update.
4711 (psymtab_storage::~psymtab_storage): Update.
4712 (psymbol_bcache_init, psymbol_bcache_free)
4713 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4714 (add_psymbol_to_bcache): Update.
4715 (allocate_psymtab): Update.
4716 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4717 macro_cache>: No longer pointers.
4718 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4719 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4720 * macrotab.c (macro_bcache): Update.
4721 * macroexp.c: Don't include bcache.h.
4722 * gdbtypes.c (check_types_worklist): Update.
4723 (types_deeply_equal): Remove TRY/CATCH. Update.
4724 * elfread.c (elf_symtab_read): Update.
4725 * dwarf2read.c: Don't include bcache.h.
4726 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4727 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4728 (print_bcache_statistics, bcache_memory_used): Don't declare.
4729 (struct bcache): Move from bcache.c. Add constructor, destructor,
4730 methods. Rename all data members.
4731 * bcache.c (struct bcache): Move to bcache.h.
4732 (bcache::expand_hash_table): Rename from expand_hash_table.
4734 (bcache::insert): Rename from bcache_full.
4735 (bcache::compare): Rename from bcache_compare.
4736 (bcache_xmalloc): Remove.
4737 (bcache::~bcache): Rename from bcache_xfree.
4738 (bcache::print_statistics): Rename from print_bcache_statistics.
4739 (bcache::memory_used): Rename from bcache_memory_used.
4741 2019-03-07 Pedro Alves <palves@redhat.com>
4743 * infrun.c (normal_stop): Also check for
4744 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4746 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4748 * f-lang.c (value_from_host_double): Moved to...
4749 * value.c (value_from_host_double): ...here.
4750 * value.h (value_from_host_double): Declare.
4751 * guile/scm-math.c (vlscm_convert_typed_number): Use
4752 value_from_host_double.
4753 (vlscm_convert_number): Likewise.
4754 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4755 * python/py-value.c (convert_value_from_python): Likewise.
4757 2019-03-06 Tom Tromey <tom@tromey.com>
4759 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4761 2019-03-06 Tom Tromey <tom@tromey.com>
4763 * utils.h (free_current_contents): Don't declare.
4764 * utils.c (free_current_contents): Remove.
4766 2019-03-06 Tom Tromey <tom@tromey.com>
4768 * top.c (quit_force): Update.
4769 * main.c (captured_command_loop): Update.
4770 * common/new-op.c (operator new): Update.
4771 * common/common-exceptions.c (struct catcher)
4772 <save_cleanup_chain>: Remove member.
4773 (exceptions_state_mc_init): Update.
4774 (exception_try_scope_entry): Return nullptr.
4775 (exception_try_scope_exit, exception_rethrow)
4776 (throw_exception_sjlj, throw_exception_cxx): Update.
4777 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4778 (all_cleanups, do_cleanups, discard_cleanups)
4779 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4780 (restore_cleanups, restore_final_cleanups): Don't declare.
4781 (do_final_cleanups): Remove parameter.
4782 * common/cleanups.c (cleanup_chain, make_cleanup)
4783 (make_cleanup_dtor, all_cleanups, do_cleanups)
4784 (discard_my_cleanups, discard_cleanups)
4785 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4786 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4787 (null_cleanup): Remove.
4788 (do_final_cleanups): Remove parameter.
4790 2019-03-06 Tom Tromey <tom@tromey.com>
4792 * remote.c (remote_target::remote_parse_stop_reply): Use
4795 2019-03-06 Tom Tromey <tom@tromey.com>
4797 * stabsread.c (struct stabs_field_info): Rename from field_info.
4798 <list, fnlist>: Add initializers.
4799 <obstack>: New member.
4800 (read_member_functions, read_struct_fields, read_baseclasses):
4801 Allocate on obstack. Don't use cleanups.
4802 (read_one_struct_field, read_member_functions, read_struct_fields)
4803 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4804 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4805 (read_struct_type): Update.
4807 2019-03-06 Tom Tromey <tom@tromey.com>
4809 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4810 * common/filestuff.h (make_cleanup_close): Don't declare.
4811 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4814 2019-03-06 Tom Tromey <tom@tromey.com>
4816 * solib-aix.c: Use make_scope_exit.
4818 2019-03-06 Tom Tromey <tom@tromey.com>
4820 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4821 Use make_scope_exit.
4823 2019-03-06 Tom Tromey <tom@tromey.com>
4825 * solib-svr4.c (disable_probes_interface): Remove parameter.
4826 (svr4_handle_solib_event): Use make_scope_exit.
4828 2019-03-06 Tom Tromey <tom@tromey.com>
4830 * remote.c (struct stop_reply_deleter): Remove.
4831 (stop_reply_up): Update.
4832 (struct stop_reply): Derive from notif_event. Don't typedef.
4833 <regcache>: Now a std::vector.
4834 (stop_reply_xfree): Remove.
4835 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4836 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4837 (remote_target::discard_pending_stop_replies): Use delete.
4838 (remote_target::remote_parse_stop_reply): Update.
4839 (remote_target::process_stop_reply): Update.
4840 * remote-notif.h (struct notif_event): Add virtual destructor.
4841 Remove "dtr" member.
4842 (struct notif_client) <alloc_event>: Return a unique_ptr.
4843 (notif_event_xfree): Don't declare.
4844 (notif_event_up): New typedef.
4845 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4846 (notif_event_xfree, do_notif_event_xfree): Remove.
4847 (remote_notif_state_xfree): Update.
4849 2019-03-06 Tom Tromey <tom@tromey.com>
4851 * infrun.c (displaced_step_clear_cleanup): Now a
4852 forward_scope_exit type.
4853 (displaced_step_prepare_throw): Update.
4854 (displaced_step_fixup): Update.
4856 2019-03-06 Tom Tromey <tom@tromey.com>
4858 * inferior.h (class inferior): Update comment.
4859 * gdbthread.h (class thread_info): Update comment.
4861 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4862 Tom Tromey <tom@tromey.com>
4864 * stabsread.h (struct stab_section_list): Remove.
4865 (coffstab_build_psymtabs): Update.
4866 * dbxread.c (symbuf_sections): Now a std::vector.
4867 (sect_idx): New global.
4868 (fill_symbuf): Update.
4869 (coffstab_build_psymtabs): Change type of stabsects parameter.
4871 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4873 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4874 (coff_locate_sections): Update.
4875 (coff_symfile_read): Remove cleanups. Update.
4876 (init_stringtab): Add storage parameter.
4877 (free_stringtab, free_stringtab_cleanup): Remove.
4878 (init_lineno): Add storage parameter.
4879 (free_linetab, free_linetab_cleanup): Remove.
4881 2019-03-06 Pedro Alves <palves@redhat.com>
4883 * linux-fork.c (fork_info::clobber_regs): Delete.
4884 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4885 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4887 (scoped_switch_fork_info::scoped_switch_fork_info)
4888 (checkpoint_command, linux_fork_context): Adjust
4889 fork_save_infrun_state calls.
4891 2019-03-06 Pedro Alves <palves@redhat.com>
4893 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4894 (inf_has_multiple_threads): Return 'bool' and rewrite using
4895 inferior_info::threads().
4897 2019-03-06 Pedro Alves <palves@redhat.com>
4899 * linux-fork.c: Include <list>.
4900 (fork_list): Now a std::list instance.
4901 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4902 (forks_exist_p, find_last_fork): Adjust.
4906 (free_fork): Delete, folded into fork_info::~fork_info().
4907 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4909 (init_fork_list): Delete.
4910 (linux_fork_killall, linux_fork_mourn_inferior)
4911 (linux_fork_detach, info_checkpoints_command): Adjust.
4912 (_initialize_linux_fork): No longer call init_fork_list.
4914 2019-03-06 Pedro Alves <palves@redhat.com>
4916 * linux-fork.c (new_fork): New, split out of ...
4917 (add_fork): ... this. Return void. Move "first fork" special
4918 case from here, to ...
4919 (checkpoint_command): ... here.
4920 * linux-linux.h (add_fork): Return void.
4922 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4924 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4926 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4927 Chris January <chris.january@arm.com>
4928 David Lecomber <david.lecomber@arm.com>
4930 * f-exp.y: New token, UNOP_INTRINSIC.
4931 (exp): New pattern using UNOP_INTRINSIC token.
4932 (f77_keywords): Add 'abs' keyword.
4933 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4934 (value_from_host_double): New function.
4935 (evaluate_subexp_f): Support UNOP_ABS.
4937 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4939 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4942 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4944 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4945 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4946 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4948 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4950 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4952 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4953 Chris January <chris.january@arm.com>
4955 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4956 * f-exp.y: Define 'KIND' token.
4957 (exp): New pattern for KIND expressions.
4958 (ptype): Handle types with a kind extension.
4959 (direct_abs_decl): Extend to spot kind extensions.
4960 (f77_keywords): Add 'kind' to the list.
4961 (push_kind_type): New function.
4962 (convert_to_kind_type): New function.
4963 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4964 * parse.c (operator_length_standard): Likewise.
4965 * parser-defs.h (enum type_pieces): Add tp_kind.
4966 * std-operator.def: Add UNOP_KIND.
4968 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4970 * f-exp.y (f_parse): Set yydebug.
4972 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4974 * f-lang.c (evaluate_subexp_f): New function.
4975 (exp_descriptor_f): New global.
4976 (f_language_defn): Use exp_descriptor_f instead of
4977 exp_descriptor_standard.
4979 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4981 * f-exp.y (struct token): Add comments.
4982 (dot_ops): Remove uppercase versions and the end marker.
4983 (f77_keywords): Likewise.
4984 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4985 entries in the dot_ops array are case insensitive, and use
4986 strncasecmp to compare strings. Also some whitespace cleanup in
4987 this area. Similar for the f77_keywords array, except entries in
4988 this list might be case sensitive.
4990 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4992 * f-exp.y (struct f77_boolean_val): Add comments.
4993 (boolean_values): Remove uppercase versions, and end marker.
4994 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4995 and use strncasecmp to achieve case insensitivity. Additionally,
4996 perform whitespace cleanup around this code.
4998 2019-03-06 Tom Tromey <tromey@adacore.com>
5000 * remote-sim.c (gdbsim_target_open): Use result of
5003 2019-03-06 Richard Bunt <richard.bunt@arm.com>
5004 Dirk Schubert <dirk.schubert@arm.com>
5005 Chris January <chris.january@arm.com>
5007 * eval.c (evaluate_subexp_standard): Call Fortran argument
5009 * f-lang.c (struct value): A value which can be passed into a
5010 Fortran function call.
5011 (fortran_argument_convert): Wrap Fortran arguments in a pointer
5013 (struct type): Value ready for a Fortran function call.
5014 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
5016 * f-lang.h (fortran_argument_convert): Declaration.
5017 (fortran_preserve_arg_pointer): Declaration.
5018 * infcall.c (value_arg_coerce): Call Fortran argument logic.
5020 2019-03-05 Tom Tromey <tromey@adacore.com>
5022 * python/py-prettyprint.c (print_string_repr): Remove #if.
5023 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
5025 2019-03-05 Tom Tromey <tromey@adacore.com>
5027 * target.c (the_dummy_target): Move later. Change type to
5029 (initialize_targets): Don't initialize the_dummy_target.
5031 2019-03-05 Tom Tromey <tromey@adacore.com>
5033 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
5034 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
5036 2019-03-05 Tom Tromey <tromey@adacore.com>
5038 * windows-nat.c (windows_nat_target::attach)
5039 (windows_nat_target::detach): Don't call gdb_flush.
5040 * valprint.c (generic_val_print, val_print, val_print_string):
5041 Don't call gdb_flush.
5042 * utils.c (defaulted_query): Don't call gdb_flush.
5043 * typeprint.c (print_type_scalar): Don't call gdb_flush.
5044 * target.c (target_announce_detach): Don't call gdb_flush.
5045 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
5046 * remote.c (extended_remote_target::attach): Don't call
5048 * procfs.c (procfs_target::detach): Don't call gdb_flush.
5049 * printcmd.c (do_examine): Don't call gdb_flush.
5050 (info_display_command): Don't call gdb_flush.
5051 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
5052 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
5053 * memattr.c (info_mem_command): Don't call gdb_flush.
5054 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
5055 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
5056 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
5057 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
5058 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
5059 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
5060 (gnu_nat_target::detach): Don't call gdb_flush.
5061 * f-valprint.c (f_val_print): Don't call gdb_flush.
5062 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
5063 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
5064 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
5066 * c-valprint.c (c_val_print): Don't call gdb_flush.
5067 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
5069 2019-03-05 Tom Tromey <tromey@adacore.com>
5071 * varobj.c (update_dynamic_varobj_children): Update.
5072 (install_default_visualizer): Use reset, not release.
5073 * value.c (set_internalvar): Update.
5074 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
5075 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
5076 ATTRIBUTE_UNUSED_RESULT.
5078 2019-03-05 Tom Tromey <tromey@adacore.com>
5080 * remote.c (class scoped_remote_fd) <release>: Add
5081 ATTRIBUTE_UNUSED_RESULT.
5083 2019-03-05 Tom Tromey <tromey@adacore.com>
5085 * macroexp.c (struct macro_buffer) <release>: Add
5086 ATTRIBUTE_UNUSED_RESULT.
5088 2019-03-05 Tom Tromey <tromey@adacore.com>
5090 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
5091 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
5092 ATTRIBUTE_UNUSED_RESULT.
5094 2019-03-05 Tom Tromey <tromey@adacore.com>
5096 * common/scoped_fd.h (class scoped_fd) <release>: Add
5097 ATTRIBUTE_UNUSED_RESULT.
5099 2019-03-05 Tom Tromey <tromey@adacore.com>
5101 * parser-defs.h (struct parser_state) <release>: Add
5102 ATTRIBUTE_UNUSED_RESULT.
5104 2019-03-05 Tom Tromey <tromey@adacore.com>
5106 * utils.h (class gdb_argv) <release>: Add
5107 ATTRIBUTE_UNUSED_RESULT.
5108 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
5110 2019-03-02 Eli Zaretskii <eliz@gnu.org>
5112 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
5113 for-loop range, to avoid compiler warnings.
5115 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
5116 avoid compiler warnings about unused variables.
5118 * NEWS: Mention end of support for native debugging on MS-Windows
5122 * common/netstuff.c:
5123 * gdbserver/gdbreplay.c
5124 * gdbserver/remote-utils.c:
5126 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
5127 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
5128 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
5129 'getaddrinfo' and 'freeaddrinfo' were not available before
5130 Windows XP, and mingw.org's MinGW headers by default define
5131 _WIN32_WINNT to 0x500.
5133 2019-03-01 Gary Benson <gbenson@redhat.com>
5135 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
5137 2019-02-28 Brian Vandenberg <phantall@gmail.com>
5138 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5141 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
5142 set_sigint_trap, clear_sigint_trap.
5144 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5146 * target.c (target_detach): Clear the regcache and the
5149 2019-02-27 Pedro Alves <palves@redhat.com>
5151 * utils.c (set_screen_size): When we cap the height/width sizes,
5152 tweak the corresponding command variable to show "unlimited":
5154 2019-02-27 Saagar Jha <saagar@saagarjha.com>
5155 Pedro Alves <palves@redhat.com>
5157 * utils.c (set_screen_size): Reduce "infinite" rows and columns
5158 before calling rl_set_screen_size.
5160 2019-02-27 Tom Tromey <tromey@adacore.com>
5162 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
5164 * python/py-value.c: Remove Python 2.4 workaround.
5165 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
5167 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
5168 Python 2.4 workaround.
5169 * python/python-internal.h: Remove Python 2.4 comment.
5170 (Py_ssize_t): Don't define.
5171 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
5172 (gdb_Py_DECREF): Remove Python 2.4 workaround.
5173 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
5174 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
5175 * python/python.c (do_start_initialization): Remove Python 2.4
5177 * python/py-prettyprint.c (class dummy_python_frame): Remove.
5178 (print_children): Remove Python 2.4 workaround.
5179 * python/py-inferior.c (buffer_procs): Remove Python 2.4
5181 (CHARBUFFERPROC_NAME): Remove.
5182 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
5183 Python 2.4 workaround.
5185 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5187 * NEWS: Note minimum Python version.
5189 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5191 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
5192 code from these functions. Remove corresponding ifdefs. Use
5193 Py_buffer_up instead of explicit calls to PyBuffer_Release.
5194 Remove gotos and target of gotos.
5195 (infpy_search_memory): Likewise.
5197 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5199 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
5200 (hppa_gdbarch_init): Don't register deleted functions with
5203 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5205 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
5206 (h8300_unwind_sp): Delete.
5207 (h8300_dummy_id): Delete.
5208 (h8300_gdbarch_init): Don't register deleted functions with
5211 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5213 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
5214 (ft32_unwind_pc): Delete.
5215 (ft32_unwind_sp): Delete.
5216 (ft32_gdbarch_init): Don't register deleted functions with
5219 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5221 * gdb/frv-tdep.c (frv_dummy_id): Delete.
5222 (frv_unwind_pc): Delete.
5223 (frv_unwind_sp): Delete.
5224 (frv_gdbarch_init): Don't register deleted functions with
5227 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5229 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
5230 (riscv_unwind_pc): Delete.
5231 (riscv_unwind_sp): Delete.
5232 (riscv_gdbarch_init): Don't register deleted functions with
5235 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5237 * gdb/csky-tdep.c (csky_dummy_id): Delete.
5238 (csky_unwind_pc): Delete.
5239 (csky_unwind_sp): Delete.
5240 (csky_gdbarch_init): Don't register deleted functions with
5243 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5245 * gdb/cris-tdep.c (cris_dummy_id): Delete.
5246 (cris_unwind_pc): Delete.
5247 (cris_unwind_sp): Delete.
5248 (cris_gdbarch_init): Don't register deleted functions with
5251 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5253 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
5254 (bfin_unwind_pc): Delete.
5255 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
5257 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5259 * gdb/arm-tdep.c (arm_dummy_id): Delete.
5260 (arm_unwind_pc): Delete.
5261 (arm_unwind_sp): Delete.
5262 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
5264 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5266 * gdb/arc-tdep.c (arc_dummy_id): Delete.
5267 (arc_unwind_pc): Delete.
5268 (arc_unwind_sp): Delete.
5269 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
5271 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5273 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
5274 (alpha_unwind_pc): Delete.
5275 (alpha_gdbarch_init): Don't register deleted functions with
5278 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5280 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
5281 (aarch64_unwind_pc): Delete.
5282 (aarch64_unwind_sp): Delete.
5283 (aarch64_gdbarch_init): Don't register deleted functions with
5286 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5288 * gdbtypes.c (type_align): Don't consider static members when
5289 computing structure alignment.
5291 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5293 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
5294 return 0 for other types.
5295 * arch-utils.c (default_type_align): Always return 0.
5296 * gdbarch.h: Regenerate.
5297 * gdbarch.sh (type_align): Extend comment.
5298 * gdbtypes.c (type_align): Add additional comments, always call
5299 gdbarch_type_align before applying the default rules.
5300 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
5301 generic code will then apply a suitable default.
5302 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
5303 types, return 0 for other types.
5305 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5307 * NEWS: Create a new section for the next release branch.
5308 Rename the section of the current branch, now that it has
5311 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5313 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
5314 * version.in: Bump version to 8.3.50.DATE-git.
5316 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
5318 * aix-thread.c (ptid_cmp): Remove unused variable.
5319 (get_signaled_thread): Likewise.
5320 (store_regs_user_thread): Likewise.
5321 (store_regs_kernel_thread): Likewise.
5322 (fetch_regs_kernel_thread): Remove shadowed variable.
5324 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
5326 * features/riscv/32bit-cpu.xml: Add register numbers.
5327 * features/riscv/32bit-fpu.c: Regenerate.
5328 * features/riscv/32bit-fpu.xml: Add register numbers.
5329 * features/riscv/64bit-cpu.xml: Add register numbers.
5330 * features/riscv/64bit-fpu.c: Regenerate.
5331 * features/riscv/64bit-fpu.xml: Add register numbers.
5333 2019-02-26 Kevin Buettner <kevinb@redhat.com>
5335 * NEWS: Mention two argument form of gdb.Value constructor.
5336 * python/py-value.c (convert_buffer_and_type_to_value): New
5338 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
5339 Add support for handling an optional second argument. Call
5340 convert_buffer_and_type_to_value as appropriate.
5341 * python/python-internal.h (Py_buffer_deleter): New struct.
5342 (Py_buffer_up): New typedef.
5344 2019-02-25 John Baldwin <jhb@FreeBSD.org>
5346 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
5347 instead of releasing ownership.
5349 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
5351 * dwarf2read.c (open_and_init_dwp_file): Call
5352 elf_numsections instead of bfd_count_sections to initialize
5353 dwp_file->num_sections.
5355 2019-02-25 Tom Tromey <tromey@adacore.com>
5357 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
5359 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
5361 * gcore.in: Add '--readnever' option when invoking GDB.
5363 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5365 * MAINTAINERS: Update my email address.
5367 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5369 * build-id.c (build_id_to_debug_bfd_1): New function.
5370 (build_id_to_debug_bfd): Look for separate debug file in
5373 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
5375 * gdbarch.sh: Update the copyright year range that is placed into
5378 2019-02-22 Keith Seitz <keiths@redhat.com>
5381 * linespec.c (create_sals_line_offset): Search for the default
5382 symtab's filename instead of its fullname.
5384 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5386 * NEWS: Update style defaults.
5388 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5390 * main.c (captured_main_1): Disable styling in batch mode.
5392 2019-02-20 Tom Tromey <tom@tromey.com>
5394 * symtab.c (symtab_symbol_info): Fix typos.
5396 2019-02-20 Tom Tromey <tromey@adacore.com>
5398 * findcmd.c (_initialize_mem_search): Use upper case for
5399 metasyntactic variables.
5401 2019-02-20 Alan Hayward <alan.hayward@arm.com>
5403 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5404 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5406 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5408 * top.h (source_file_name): Change to std::string.
5409 * top.c (source_file_name): Likewise.
5410 (command_line_input): Adjust.
5411 * cli/cli-script.c (script_from_file): Adjust.
5413 2019-02-19 Tom Tromey <tromey@adacore.com>
5415 * ravenscar-thread.c
5416 (ravenscar_thread_target::update_thread_list): Don't call
5417 ada_build_task_list.
5418 * ada-lang.h (ada_build_task_list): Don't declare.
5419 * ada-tasks.c (struct ada_tasks_inferior_data)
5420 <task_list_valid_p>: Now bool.
5421 (read_known_tasks, ada_task_list_changed)
5422 (ada_tasks_invalidate_inferior_data): Update.
5423 (read_known_tasks_array): Return bool.
5424 (read_known_tasks_list): Likewise.
5425 (read_known_tasks): Return void.
5426 (ada_build_task_list): Now static.
5428 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5430 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5431 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5433 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5435 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5436 variant for ada_tasks_pspace_data_handle and
5437 ada_tasks_inferior_data_handle.
5438 (ada_tasks_pspace_data_cleanup): New function.
5439 (ada_tasks_inferior_data_cleanup): New function.
5441 2019-02-17 Tom Tromey <tom@tromey.com>
5443 * macrotab.h (macro_source_fullname): Return a std::string.
5444 * macrotab.c (macro_include, check_for_redefinition)
5445 (macro_undef, macro_lookup_definition, foreach_macro)
5446 (foreach_macro_in_scope): Update.
5447 (macro_source_fullname): Return a std::string.
5448 * macrocmd.c (show_pp_source_pos): Update.
5450 2019-02-17 Tom Tromey <tom@tromey.com>
5452 * macrocmd.c (show_pp_source_pos): Style the file names.
5454 2019-02-17 Tom Tromey <tom@tromey.com>
5457 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5459 2019-02-17 Tom Tromey <tom@tromey.com>
5461 * ada-lang.c (user_select_syms): Use filtered printing.
5462 * utils.c (wrap_style): New global.
5463 (desired_style): Remove.
5464 (emit_style_escape): Add stream parameter.
5465 (set_output_style, reset_terminal_style, prompt_for_continue):
5467 (flush_wrap_buffer): Only flush gdb_stdout.
5468 (wrap_here): Set wrap_style.
5469 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5470 treat escape sequences as a character. Change when wrap buffer is
5472 (fputs_styled): Do not set the output style when the default is
5474 * ui-style.h (struct ui_file_style) <is_default>: New method.
5475 * source.c (print_source_lines_base): Emit escape sequences in one
5478 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5480 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5481 integers and enumeration types.
5483 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5485 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5486 instead of lookup_symbol_in_language
5487 (do_exact_match): New function.
5488 (ada_get_symbol_name_matcher): Return do_exact_match when
5489 doing a verbatim match.
5491 2019-02-15 Tom Tromey <tromey@adacore.com>
5493 * ravenscar-thread.c (ravenscar_thread_target::resume)
5494 (ravenscar_thread_target::wait): Special case wildcard requests.
5496 2019-02-15 Tom Tromey <tromey@adacore.com>
5498 * ravenscar-thread.c (base_ptid): Remove.
5499 (struct ravenscar_thread_target) <close>: New method.
5500 <m_base_ptid>: New member.
5501 <update_inferior_ptid, active_task, task_is_currently_active,
5502 runtime_initialized>: Declare methods.
5503 <ravenscar_thread_target>: Add constructor.
5504 (ravenscar_thread_target::task_is_currently_active)
5505 (ravenscar_thread_target::update_inferior_ptid)
5506 (ravenscar_runtime_initialized): Rename. Now methods.
5507 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5508 (ravenscar_thread_target::update_thread_list): Update.
5509 (ravenscar_thread_target::active_task): Now method.
5510 (ravenscar_thread_target::store_registers)
5511 (ravenscar_thread_target::prepare_to_store)
5512 (ravenscar_thread_target::prepare_to_store)
5513 (ravenscar_thread_target::mourn_inferior): Update.
5514 (ravenscar_inferior_created): Use "new" to create target.
5515 (ravenscar_thread_target::get_ada_task_ptid): Update.
5516 (_initialize_ravenscar): Don't initialize base_ptid.
5517 (ravenscar_ops): Remove global.
5519 2019-02-15 Tom Tromey <tromey@adacore.com>
5521 * target.h (push_target): Declare new overload.
5522 * target.c (push_target): New overload, taking an rvalue reference.
5523 * remote.c (remote_target::open_1): Use push_target overload.
5524 * corelow.c (core_target_open): Use push_target overload.
5526 2019-02-15 Tom Tromey <tromey@adacore.com>
5528 * ravenscar-thread.c (is_ravenscar_task)
5529 (ravenscar_task_is_currently_active): Return bool.
5530 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5531 (_initialize_ravenscar): Remove "(void)".
5532 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5535 2019-02-15 Tom Tromey <tromey@adacore.com>
5537 * ravenscar-thread.c (ravenscar_runtime_initializer)
5538 (has_ravenscar_runtime, get_running_thread_id)
5539 (ravenscar_thread_target::resume): Fix indentation.
5541 2019-02-15 Tom Tromey <tromey@adacore.com>
5543 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5544 from ravenscar_arch_ops.
5545 (sparc_ravenscar_ops::fetch_registers)
5546 (sparc_ravenscar_ops::store_registers): Now methods.
5547 (sparc_ravenscar_prepare_to_store): Remove.
5548 (sparc_ravenscar_ops): Redefine.
5549 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5550 methods and destructor. Remove members.
5551 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5552 (ravenscar_thread_target::store_registers)
5553 (ravenscar_thread_target::prepare_to_store): Update.
5554 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5556 (struct ppc_ravenscar_powerpc_ops): Derive from
5558 (ppc_ravenscar_powerpc_ops::fetch_registers)
5559 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5560 (ppc_ravenscar_powerpc_ops): Redefine.
5561 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5562 (ppc_ravenscar_e500_ops::fetch_registers)
5563 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5564 (ppc_ravenscar_e500_ops): Redefine.
5565 * aarch64-ravenscar-thread.c
5566 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5567 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5568 (aarch64_ravenscar_fetch_registers)
5569 (aarch64_ravenscar_store_registers): Now methods.
5570 (aarch64_ravenscar_ops): Redefine.
5572 2019-02-15 Tom Tromey <tromey@adacore.com>
5574 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5575 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5576 (ravenscar_thread_target::stopped_by_watchpoint)
5577 (ravenscar_thread_target::stopped_data_address)
5578 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5580 2019-02-15 Tom Tromey <tromey@adacore.com>
5582 * ravenscar-thread.c: Fix some typos.
5584 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5585 Tom Tromey <tromey@adacore.com>
5587 * ada-lang.c (ada_exception_sal): Change addr_string to a
5589 (create_ada_exception_catchpoint): Update.
5591 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5592 Tom Tromey <tromey@adacore.com>
5594 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5595 (bp_location_ops): Remove.
5596 (base_breakpoint_allocate_location): Update.
5597 (free_bp_location): Update.
5598 * ada-lang.c (class ada_catchpoint_location)
5599 <ada_catchpoint_location>: Remove ops parameter.
5600 (ada_catchpoint_location_dtor): Remove.
5601 (ada_catchpoint_location_ops): Remove.
5602 (allocate_location_exception): Update.
5603 * breakpoint.h (struct bp_location_ops): Remove.
5604 (class bp_location) <bp_location>: Remove bp_location_ops
5606 <~bp_location>: Add destructor.
5609 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5610 Pedro Alves <palves@redhat.com>
5612 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5615 2019-02-14 David Michael <fedora.dm0@gmail.com>
5616 Samuel Thibault <samuel.thibault@gnu.org>
5617 Thomas Schwinge <thomas@codesourcery.com>
5619 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5620 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5622 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5624 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5625 (check_empty): Use "const char *".
5627 * gnu-nat.c (gnu_nat_target::detach): Instead of
5628 'detach_inferior (pid)' call
5629 'detach_inferior (find_inferior_pid (pid))'.
5631 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5632 'nat/fork-inferior.o'.
5633 * gnu-nat.c: #include "nat/fork-inferior.h".
5635 * gnu-nat.c (gnu_nat_target::detach): Instead of
5636 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5637 * gnu-nat.h: #include "inf-child.h".
5638 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5639 'i386_gnu_nat_target::fetch_registers'.
5640 (gnu_store_registers): Rename/move to
5641 'i386_gnu_nat_target::store_registers'.
5643 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5644 * gnu-nat.h (mach_thread_info): New function.
5645 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5647 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5649 2019-02-14 Frederic Konrad <konrad@adacore.com>
5651 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5653 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5655 * windows-nat.c (windows_add_thread): Add new parameter
5656 "main_thread_p" with default value set to false. Update
5657 function documentation as well as all callers.
5658 (windows_delete_thread): Likewise.
5659 (fake_create_process): Update call to windows_add_thread.
5660 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5661 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5662 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5663 call to windows_delete_thread.
5665 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5667 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5669 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5671 * symfile.c (find_separate_debug_file): Use canonical path of
5672 sysroot with child_path instead of gdb_sysroot if it is valid.
5674 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5676 * symfile.c (find_separate_debug_file): Use child_path to
5677 determine if an object file is under a sysroot.
5679 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5681 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5682 unittests/child-path-selftests.c.
5683 * common/pathstuff.c (child_path): New function.
5684 * common/pathstuff.h (child_path): New prototype.
5685 * unittests/child-path-selftests.c: New file.
5687 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5689 * symfile.c (find_separate_debug_file): Look for separate debug
5690 files in debug directories under the sysroot.
5692 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5694 * symtab.h (struct minimal_symbol data_p): New const method.
5695 (struct minimal_symbol text_p): Likewise.
5696 * symtab.c (output_source_filename): Use file name style
5698 (print_symbol_info): Likewise.
5699 (print_msymbol_info): Use address style to print addresses.
5700 Use function name style to print executable text symbols.
5701 (expand_symtab_containing_pc): Use data_p.
5702 (find_pc_sect_compunit_symtab): Likewise.
5704 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5706 * breakpoint.c (describe_other_breakpoints): Use address style
5708 (say_where): Likewise.
5710 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5712 * ada-typeprint.c (print_func_type): Print function name
5713 style to print function name.
5714 * c-typeprint.c (c_print_type_1): Likewise.
5716 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5718 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5721 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5723 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5726 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5728 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5729 TYPE_CODE_REF types.
5731 2019-02-08 Jim Wilson <jimw@sifive.com>
5733 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5734 (riscv_linux_fregset): New.
5735 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5737 2019-02-07 Tom Tromey <tom@tromey.com>
5739 * thread.c (thread_cancel_execution_command): Update.
5740 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5742 (struct thread_fsm_ops): Remove.
5743 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5744 (thread_fsm_should_stop, thread_fsm_return_value)
5745 (thread_fsm_set_finished, thread_fsm_finished_p)
5746 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5748 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5749 * infrun.c (clear_proceed_status_thread)
5750 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5751 (print_stop_event): Update.
5752 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5754 (step_command_fsm_ops): Remove.
5755 (new_step_command_fsm): Remove.
5757 (step_command_fsm::should_stop): Rename from
5758 step_command_fsm_should_stop.
5759 (step_command_fsm::clean_up): Rename from
5760 step_command_fsm_clean_up.
5761 (step_command_fsm::do_async_reply_reason): Rename from
5762 step_command_fsm_async_reply_reason.
5763 (struct until_next_fsm): Inherit from thread_fsm. Add
5765 (until_next_fsm_ops): Remove.
5766 (new_until_next_fsm): Remove.
5767 (until_next_fsm::should_stop): Rename from
5768 until_next_fsm_should_stop.
5769 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5770 (until_next_fsm::do_async_reply_reason): Rename from
5771 until_next_fsm_async_reply_reason.
5772 (struct finish_command_fsm): Inherit from thread_fsm. Add
5773 constructor. Change type of breakpoint.
5774 (finish_command_fsm_ops): Remove.
5775 (new_finish_command_fsm): Remove.
5776 (finish_command_fsm::should_stop): Rename from
5777 finish_command_fsm_should_stop.
5778 (finish_command_fsm::clean_up): Rename from
5779 finish_command_fsm_clean_up.
5780 (finish_command_fsm::return_value): Rename from
5781 finish_command_fsm_return_value.
5782 (finish_command_fsm::do_async_reply_reason): Rename from
5783 finish_command_fsm_async_reply_reason.
5784 (finish_command): Update.
5785 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5787 (call_thread_fsm_ops): Remove.
5788 (call_thread_fsm::call_thread_fsm): Rename from
5789 new_call_thread_fsm.
5790 (call_thread_fsm::should_stop): Rename from
5791 call_thread_fsm_should_stop.
5792 (call_thread_fsm::should_notify_stop): Rename from
5793 call_thread_fsm_should_notify_stop.
5794 (run_inferior_call, call_function_by_hand_dummy): Update.
5795 * cli/cli-interp.c (should_print_stop_to_console): Update.
5796 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5797 Add constructor. Change type of location_breakpoint,
5799 (until_break_fsm_ops): Remove.
5800 (new_until_break_fsm): Remove.
5801 (until_break_fsm::should_stop): Rename from
5802 until_break_fsm_should_stop.
5803 (until_break_fsm::clean_up): Rename from
5804 until_break_fsm_clean_up.
5805 (until_break_fsm::do_async_reply_reason): Rename from
5806 until_break_fsm_async_reply_reason.
5807 (until_break_command): Update.
5808 * thread-fsm.c: Remove.
5809 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5811 2019-02-07 Tom Tromey <tom@tromey.com>
5813 * yy-remap.h: Add include guard.
5814 * xtensa-tdep.h: Add include guard.
5815 * xcoffread.h: Rename include guard.
5816 * varobj-iter.h: Add include guard.
5817 * tui/tui.h: Rename include guard.
5818 * tui/tui-winsource.h: Rename include guard.
5819 * tui/tui-wingeneral.h: Rename include guard.
5820 * tui/tui-windata.h: Rename include guard.
5821 * tui/tui-win.h: Rename include guard.
5822 * tui/tui-stack.h: Rename include guard.
5823 * tui/tui-source.h: Rename include guard.
5824 * tui/tui-regs.h: Rename include guard.
5825 * tui/tui-out.h: Rename include guard.
5826 * tui/tui-layout.h: Rename include guard.
5827 * tui/tui-io.h: Rename include guard.
5828 * tui/tui-hooks.h: Rename include guard.
5829 * tui/tui-file.h: Rename include guard.
5830 * tui/tui-disasm.h: Rename include guard.
5831 * tui/tui-data.h: Rename include guard.
5832 * tui/tui-command.h: Rename include guard.
5833 * tic6x-tdep.h: Add include guard.
5834 * target/waitstatus.h: Rename include guard.
5835 * target/wait.h: Rename include guard.
5836 * target/target.h: Rename include guard.
5837 * target/resume.h: Rename include guard.
5838 * target-float.h: Rename include guard.
5839 * stabsread.h: Add include guard.
5840 * rs6000-tdep.h: Add include guard.
5841 * riscv-fbsd-tdep.h: Add include guard.
5842 * regformats/regdef.h: Rename include guard.
5843 * record.h: Rename include guard.
5844 * python/python.h: Rename include guard.
5845 * python/python-internal.h: Rename include guard.
5846 * python/py-stopevent.h: Rename include guard.
5847 * python/py-ref.h: Rename include guard.
5848 * python/py-record.h: Rename include guard.
5849 * python/py-record-full.h: Rename include guard.
5850 * python/py-record-btrace.h: Rename include guard.
5851 * python/py-instruction.h: Rename include guard.
5852 * python/py-events.h: Rename include guard.
5853 * python/py-event.h: Rename include guard.
5854 * procfs.h: Add include guard.
5855 * proc-utils.h: Add include guard.
5856 * p-lang.h: Add include guard.
5857 * or1k-tdep.h: Rename include guard.
5858 * observable.h: Rename include guard.
5859 * nto-tdep.h: Rename include guard.
5860 * nat/x86-linux.h: Rename include guard.
5861 * nat/x86-linux-dregs.h: Rename include guard.
5862 * nat/x86-gcc-cpuid.h: Add include guard.
5863 * nat/x86-dregs.h: Rename include guard.
5864 * nat/x86-cpuid.h: Rename include guard.
5865 * nat/ppc-linux.h: Rename include guard.
5866 * nat/mips-linux-watch.h: Rename include guard.
5867 * nat/linux-waitpid.h: Rename include guard.
5868 * nat/linux-ptrace.h: Rename include guard.
5869 * nat/linux-procfs.h: Rename include guard.
5870 * nat/linux-osdata.h: Rename include guard.
5871 * nat/linux-nat.h: Rename include guard.
5872 * nat/linux-namespaces.h: Rename include guard.
5873 * nat/linux-btrace.h: Rename include guard.
5874 * nat/glibc_thread_db.h: Rename include guard.
5875 * nat/gdb_thread_db.h: Rename include guard.
5876 * nat/gdb_ptrace.h: Rename include guard.
5877 * nat/fork-inferior.h: Rename include guard.
5878 * nat/amd64-linux-siginfo.h: Rename include guard.
5879 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5880 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5881 * nat/aarch64-linux.h: Rename include guard.
5882 * nat/aarch64-linux-hw-point.h: Rename include guard.
5883 * mn10300-tdep.h: Add include guard.
5884 * mips-linux-tdep.h: Add include guard.
5885 * mi/mi-parse.h: Rename include guard.
5886 * mi/mi-out.h: Rename include guard.
5887 * mi/mi-main.h: Rename include guard.
5888 * mi/mi-interp.h: Rename include guard.
5889 * mi/mi-getopt.h: Rename include guard.
5890 * mi/mi-console.h: Rename include guard.
5891 * mi/mi-common.h: Rename include guard.
5892 * mi/mi-cmds.h: Rename include guard.
5893 * mi/mi-cmd-break.h: Rename include guard.
5894 * m2-lang.h: Add include guard.
5895 * location.h: Rename include guard.
5896 * linux-record.h: Rename include guard.
5897 * linux-nat.h: Add include guard.
5898 * linux-fork.h: Add include guard.
5899 * i386-darwin-tdep.h: Rename include guard.
5900 * hppa-linux-offsets.h: Add include guard.
5901 * guile/guile.h: Rename include guard.
5902 * guile/guile-internal.h: Rename include guard.
5903 * gnu-nat.h: Rename include guard.
5904 * gdb-stabs.h: Rename include guard.
5905 * frv-tdep.h: Add include guard.
5906 * f-lang.h: Add include guard.
5907 * event-loop.h: Add include guard.
5908 * darwin-nat.h: Rename include guard.
5909 * cp-abi.h: Rename include guard.
5910 * config/sparc/nm-sol2.h: Rename include guard.
5911 * config/nm-nto.h: Rename include guard.
5912 * config/nm-linux.h: Add include guard.
5913 * config/i386/nm-i386gnu.h: Rename include guard.
5914 * config/djgpp/nl_types.h: Rename include guard.
5915 * config/djgpp/langinfo.h: Rename include guard.
5916 * compile/gcc-cp-plugin.h: Add include guard.
5917 * compile/gcc-c-plugin.h: Add include guard.
5918 * compile/compile.h: Rename include guard.
5919 * compile/compile-object-run.h: Rename include guard.
5920 * compile/compile-object-load.h: Rename include guard.
5921 * compile/compile-internal.h: Rename include guard.
5922 * compile/compile-cplus.h: Rename include guard.
5923 * compile/compile-c.h: Rename include guard.
5924 * common/xml-utils.h: Rename include guard.
5925 * common/x86-xstate.h: Rename include guard.
5926 * common/version.h: Rename include guard.
5927 * common/vec.h: Rename include guard.
5928 * common/tdesc.h: Rename include guard.
5929 * common/selftest.h: Rename include guard.
5930 * common/scoped_restore.h: Rename include guard.
5931 * common/scoped_mmap.h: Rename include guard.
5932 * common/scoped_fd.h: Rename include guard.
5933 * common/safe-iterator.h: Rename include guard.
5934 * common/run-time-clock.h: Rename include guard.
5935 * common/refcounted-object.h: Rename include guard.
5936 * common/queue.h: Rename include guard.
5937 * common/ptid.h: Rename include guard.
5938 * common/print-utils.h: Rename include guard.
5939 * common/preprocessor.h: Rename include guard.
5940 * common/pathstuff.h: Rename include guard.
5941 * common/observable.h: Rename include guard.
5942 * common/netstuff.h: Rename include guard.
5943 * common/job-control.h: Rename include guard.
5944 * common/host-defs.h: Rename include guard.
5945 * common/gdb_wait.h: Rename include guard.
5946 * common/gdb_vecs.h: Rename include guard.
5947 * common/gdb_unlinker.h: Rename include guard.
5948 * common/gdb_unique_ptr.h: Rename include guard.
5949 * common/gdb_tilde_expand.h: Rename include guard.
5950 * common/gdb_sys_time.h: Rename include guard.
5951 * common/gdb_string_view.h: Rename include guard.
5952 * common/gdb_splay_tree.h: Rename include guard.
5953 * common/gdb_setjmp.h: Rename include guard.
5954 * common/gdb_ref_ptr.h: Rename include guard.
5955 * common/gdb_optional.h: Rename include guard.
5956 * common/gdb_locale.h: Rename include guard.
5957 * common/gdb_assert.h: Rename include guard.
5958 * common/filtered-iterator.h: Rename include guard.
5959 * common/filestuff.h: Rename include guard.
5960 * common/fileio.h: Rename include guard.
5961 * common/environ.h: Rename include guard.
5962 * common/common-utils.h: Rename include guard.
5963 * common/common-types.h: Rename include guard.
5964 * common/common-regcache.h: Rename include guard.
5965 * common/common-inferior.h: Rename include guard.
5966 * common/common-gdbthread.h: Rename include guard.
5967 * common/common-exceptions.h: Rename include guard.
5968 * common/common-defs.h: Rename include guard.
5969 * common/common-debug.h: Rename include guard.
5970 * common/cleanups.h: Rename include guard.
5971 * common/buffer.h: Rename include guard.
5972 * common/btrace-common.h: Rename include guard.
5973 * common/break-common.h: Rename include guard.
5974 * cli/cli-utils.h: Rename include guard.
5975 * cli/cli-style.h: Rename include guard.
5976 * cli/cli-setshow.h: Rename include guard.
5977 * cli/cli-script.h: Rename include guard.
5978 * cli/cli-interp.h: Rename include guard.
5979 * cli/cli-decode.h: Rename include guard.
5980 * cli/cli-cmds.h: Rename include guard.
5981 * charset-list.h: Add include guard.
5982 * buildsym-legacy.h: Rename include guard.
5983 * bfin-tdep.h: Add include guard.
5984 * ax.h: Rename include guard.
5985 * arm-linux-tdep.h: Add include guard.
5986 * arm-fbsd-tdep.h: Add include guard.
5987 * arch/xtensa.h: Rename include guard.
5988 * arch/tic6x.h: Add include guard.
5989 * arch/i386.h: Add include guard.
5990 * arch/arm.h: Rename include guard.
5991 * arch/arm-linux.h: Rename include guard.
5992 * arch/arm-get-next-pcs.h: Rename include guard.
5993 * arch/amd64.h: Add include guard.
5994 * arch/aarch64-insn.h: Rename include guard.
5995 * arch-utils.h: Rename include guard.
5996 * annotate.h: Add include guard.
5997 * amd64-darwin-tdep.h: Rename include guard.
5998 * aarch64-linux-tdep.h: Add include guard.
5999 * aarch64-fbsd-tdep.h: Add include guard.
6000 * aarch32-linux-nat.h: Add include guard.
6002 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6004 * macrotab.c (macro_define_internal): New function that
6005 factorizes macro_define_object_internal and macro_define_function
6007 (macro_define_object_internal): Use macro_define_internal.
6008 (macro_define_function): Likewise.
6010 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6012 * macrocmd.c (extract_identifier): Return
6013 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
6016 2019-02-06 John Baldwin <jhb@FreeBSD.org>
6018 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
6020 2019-02-05 Tom Tromey <tom@tromey.com>
6022 * target.c (target_stack::unpush): Move assertion earlier.
6024 2019-01-30 Tom Tromey <tom@tromey.com>
6027 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
6028 (gdbpy_parse_and_eval): Likewise.
6029 * python/python-internal.h (gdbpy_allow_threads): New class.
6031 2019-01-28 John Baldwin <jhb@FreeBSD.org>
6033 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
6034 (aarch64_fbsd_fpregmap): Move earlier.
6035 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
6036 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6037 instead of individual calls to trad_frame_set_reg_addr.
6038 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
6040 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
6041 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6042 instead of individual calls to trad_frame_set_reg_addr.
6044 2019-01-28 Alan Hayward <alan.hayward@arm.com>
6046 * CONTRIBUTE: Replace contribution list with wiki link.
6048 2019-01-25 Tom Tromey <tom@tromey.com>
6050 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
6052 2019-01-25 Tom Tromey <tom@tromey.com>
6054 * xtensa-linux-nat.c: Fix common/ includes.
6055 * xml-support.h: Fix common/ includes.
6056 * xml-support.c: Fix common/ includes.
6057 * x86-linux-nat.c: Fix common/ includes.
6058 * windows-nat.c: Fix common/ includes.
6059 * varobj.h: Fix common/ includes.
6060 * varobj.c: Fix common/ includes.
6061 * value.c: Fix common/ includes.
6062 * valops.c: Fix common/ includes.
6063 * utils.c: Fix common/ includes.
6064 * unittests/xml-utils-selftests.c: Fix common/ includes.
6065 * unittests/utils-selftests.c: Fix common/ includes.
6066 * unittests/unpack-selftests.c: Fix common/ includes.
6067 * unittests/tracepoint-selftests.c: Fix common/ includes.
6068 * unittests/style-selftests.c: Fix common/ includes.
6069 * unittests/string_view-selftests.c: Fix common/ includes.
6070 * unittests/scoped_restore-selftests.c: Fix common/ includes.
6071 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
6072 * unittests/scoped_fd-selftests.c: Fix common/ includes.
6073 * unittests/rsp-low-selftests.c: Fix common/ includes.
6074 * unittests/parse-connection-spec-selftests.c: Fix common/
6076 * unittests/optional-selftests.c: Fix common/ includes.
6077 * unittests/offset-type-selftests.c: Fix common/ includes.
6078 * unittests/observable-selftests.c: Fix common/ includes.
6079 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
6080 * unittests/memrange-selftests.c: Fix common/ includes.
6081 * unittests/memory-map-selftests.c: Fix common/ includes.
6082 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
6083 * unittests/function-view-selftests.c: Fix common/ includes.
6084 * unittests/environ-selftests.c: Fix common/ includes.
6085 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
6086 * unittests/common-utils-selftests.c: Fix common/ includes.
6087 * unittests/cli-utils-selftests.c: Fix common/ includes.
6088 * unittests/array-view-selftests.c: Fix common/ includes.
6089 * ui-file.c: Fix common/ includes.
6090 * tui/tui-io.c: Fix common/ includes.
6091 * tracepoint.h: Fix common/ includes.
6092 * tracepoint.c: Fix common/ includes.
6093 * tracefile-tfile.c: Fix common/ includes.
6094 * top.h: Fix common/ includes.
6095 * top.c: Fix common/ includes.
6096 * thread.c: Fix common/ includes.
6097 * target/waitstatus.h: Fix common/ includes.
6098 * target/waitstatus.c: Fix common/ includes.
6099 * target.h: Fix common/ includes.
6100 * target.c: Fix common/ includes.
6101 * target-memory.c: Fix common/ includes.
6102 * target-descriptions.c: Fix common/ includes.
6103 * symtab.h: Fix common/ includes.
6104 * symfile.c: Fix common/ includes.
6105 * stap-probe.c: Fix common/ includes.
6106 * spu-linux-nat.c: Fix common/ includes.
6107 * sparc-nat.c: Fix common/ includes.
6108 * source.c: Fix common/ includes.
6109 * solib.c: Fix common/ includes.
6110 * solib-target.c: Fix common/ includes.
6111 * ser-unix.c: Fix common/ includes.
6112 * ser-tcp.c: Fix common/ includes.
6113 * ser-pipe.c: Fix common/ includes.
6114 * ser-base.c: Fix common/ includes.
6115 * selftest-arch.c: Fix common/ includes.
6116 * s12z-tdep.c: Fix common/ includes.
6117 * rust-exp.y: Fix common/ includes.
6118 * rs6000-aix-tdep.c: Fix common/ includes.
6119 * riscv-tdep.c: Fix common/ includes.
6120 * remote.c: Fix common/ includes.
6121 * remote-notif.h: Fix common/ includes.
6122 * remote-fileio.h: Fix common/ includes.
6123 * remote-fileio.c: Fix common/ includes.
6124 * regcache.h: Fix common/ includes.
6125 * regcache.c: Fix common/ includes.
6126 * record-btrace.c: Fix common/ includes.
6127 * python/python.c: Fix common/ includes.
6128 * python/py-type.c: Fix common/ includes.
6129 * python/py-inferior.c: Fix common/ includes.
6130 * progspace.h: Fix common/ includes.
6131 * producer.c: Fix common/ includes.
6132 * procfs.c: Fix common/ includes.
6133 * proc-api.c: Fix common/ includes.
6134 * printcmd.c: Fix common/ includes.
6135 * ppc-linux-nat.c: Fix common/ includes.
6136 * parser-defs.h: Fix common/ includes.
6137 * osdata.c: Fix common/ includes.
6138 * obsd-nat.c: Fix common/ includes.
6139 * nat/x86-linux.c: Fix common/ includes.
6140 * nat/x86-linux-dregs.c: Fix common/ includes.
6141 * nat/x86-dregs.h: Fix common/ includes.
6142 * nat/x86-dregs.c: Fix common/ includes.
6143 * nat/ppc-linux.c: Fix common/ includes.
6144 * nat/mips-linux-watch.h: Fix common/ includes.
6145 * nat/mips-linux-watch.c: Fix common/ includes.
6146 * nat/linux-waitpid.c: Fix common/ includes.
6147 * nat/linux-ptrace.h: Fix common/ includes.
6148 * nat/linux-ptrace.c: Fix common/ includes.
6149 * nat/linux-procfs.c: Fix common/ includes.
6150 * nat/linux-personality.c: Fix common/ includes.
6151 * nat/linux-osdata.c: Fix common/ includes.
6152 * nat/linux-namespaces.c: Fix common/ includes.
6153 * nat/linux-btrace.h: Fix common/ includes.
6154 * nat/linux-btrace.c: Fix common/ includes.
6155 * nat/fork-inferior.c: Fix common/ includes.
6156 * nat/amd64-linux-siginfo.c: Fix common/ includes.
6157 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
6158 * nat/aarch64-linux.c: Fix common/ includes.
6159 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
6160 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
6161 * namespace.h: Fix common/ includes.
6162 * mips-linux-tdep.c: Fix common/ includes.
6163 * minsyms.c: Fix common/ includes.
6164 * mi/mi-parse.h: Fix common/ includes.
6165 * mi/mi-main.c: Fix common/ includes.
6166 * mi/mi-cmd-env.c: Fix common/ includes.
6167 * memrange.h: Fix common/ includes.
6168 * memattr.c: Fix common/ includes.
6169 * maint.h: Fix common/ includes.
6170 * maint.c: Fix common/ includes.
6171 * main.c: Fix common/ includes.
6172 * machoread.c: Fix common/ includes.
6173 * location.c: Fix common/ includes.
6174 * linux-thread-db.c: Fix common/ includes.
6175 * linux-nat.c: Fix common/ includes.
6176 * linux-fork.c: Fix common/ includes.
6177 * inline-frame.c: Fix common/ includes.
6178 * infrun.c: Fix common/ includes.
6179 * inflow.c: Fix common/ includes.
6180 * inferior.h: Fix common/ includes.
6181 * inferior.c: Fix common/ includes.
6182 * infcmd.c: Fix common/ includes.
6183 * inf-ptrace.c: Fix common/ includes.
6184 * inf-child.c: Fix common/ includes.
6185 * ia64-linux-nat.c: Fix common/ includes.
6186 * i387-tdep.c: Fix common/ includes.
6187 * i386-tdep.c: Fix common/ includes.
6188 * i386-linux-tdep.c: Fix common/ includes.
6189 * i386-linux-nat.c: Fix common/ includes.
6190 * i386-go32-tdep.c: Fix common/ includes.
6191 * i386-fbsd-tdep.c: Fix common/ includes.
6192 * i386-fbsd-nat.c: Fix common/ includes.
6193 * guile/scm-type.c: Fix common/ includes.
6194 * guile/guile.c: Fix common/ includes.
6195 * go32-nat.c: Fix common/ includes.
6196 * gnu-nat.c: Fix common/ includes.
6197 * gdbthread.h: Fix common/ includes.
6198 * gdbarch-selftests.c: Fix common/ includes.
6199 * gdb_usleep.c: Fix common/ includes.
6200 * gdb_select.h: Fix common/ includes.
6201 * gdb_bfd.c: Fix common/ includes.
6202 * gcore.c: Fix common/ includes.
6203 * fork-child.c: Fix common/ includes.
6204 * findvar.c: Fix common/ includes.
6205 * fbsd-nat.c: Fix common/ includes.
6206 * event-top.c: Fix common/ includes.
6207 * event-loop.c: Fix common/ includes.
6208 * dwarf2read.c: Fix common/ includes.
6209 * dwarf2loc.c: Fix common/ includes.
6210 * dwarf2-frame.c: Fix common/ includes.
6211 * dwarf-index-cache.c: Fix common/ includes.
6212 * dtrace-probe.c: Fix common/ includes.
6213 * disasm-selftests.c: Fix common/ includes.
6214 * defs.h: Fix common/ includes.
6215 * csky-tdep.c: Fix common/ includes.
6216 * cp-valprint.c: Fix common/ includes.
6217 * cp-support.h: Fix common/ includes.
6218 * cp-support.c: Fix common/ includes.
6219 * corelow.c: Fix common/ includes.
6220 * completer.h: Fix common/ includes.
6221 * completer.c: Fix common/ includes.
6222 * compile/compile.c: Fix common/ includes.
6223 * compile/compile-loc2c.c: Fix common/ includes.
6224 * compile/compile-cplus-types.c: Fix common/ includes.
6225 * compile/compile-cplus-symbols.c: Fix common/ includes.
6226 * command.h: Fix common/ includes.
6227 * cli/cli-dump.c: Fix common/ includes.
6228 * cli/cli-cmds.c: Fix common/ includes.
6229 * charset.c: Fix common/ includes.
6230 * build-id.c: Fix common/ includes.
6231 * btrace.h: Fix common/ includes.
6232 * btrace.c: Fix common/ includes.
6233 * breakpoint.h: Fix common/ includes.
6234 * breakpoint.c: Fix common/ includes.
6236 (enum agent_op): Fix common/ includes.
6237 * ax-general.c (struct aop_map): Fix common/ includes.
6238 * ax-gdb.c: Fix common/ includes.
6239 * auxv.c: Fix common/ includes.
6240 * auto-load.c: Fix common/ includes.
6241 * arm-tdep.c: Fix common/ includes.
6242 * arch/riscv.c: Fix common/ includes.
6243 * arch/ppc-linux-common.c: Fix common/ includes.
6244 * arch/i386.c: Fix common/ includes.
6245 * arch/arm.c: Fix common/ includes.
6246 * arch/arm-linux.c: Fix common/ includes.
6247 * arch/arm-get-next-pcs.c: Fix common/ includes.
6248 * arch/amd64.c: Fix common/ includes.
6249 * arch/aarch64.c: Fix common/ includes.
6250 * arch/aarch64-insn.c: Fix common/ includes.
6251 * arch-utils.c: Fix common/ includes.
6252 * amd64-windows-tdep.c: Fix common/ includes.
6253 * amd64-tdep.c: Fix common/ includes.
6254 * amd64-sol2-tdep.c: Fix common/ includes.
6255 * amd64-obsd-tdep.c: Fix common/ includes.
6256 * amd64-nbsd-tdep.c: Fix common/ includes.
6257 * amd64-linux-tdep.c: Fix common/ includes.
6258 * amd64-linux-nat.c: Fix common/ includes.
6259 * amd64-fbsd-tdep.c: Fix common/ includes.
6260 * amd64-fbsd-nat.c: Fix common/ includes.
6261 * amd64-dicos-tdep.c: Fix common/ includes.
6262 * amd64-darwin-tdep.c: Fix common/ includes.
6263 * agent.c: Fix common/ includes.
6264 * ada-lang.h: Fix common/ includes.
6265 * ada-lang.c: Fix common/ includes.
6266 * aarch64-tdep.c: Fix common/ includes.
6268 2019-01-25 Tom Tromey <tom@tromey.com>
6270 * common/create-version.sh: Use common/version.h.
6272 2019-01-24 Pedro Alves <palves@redhat.com>
6274 * infrun.c (signal_stop, signal_print, signal_program)
6275 (signal_catch, signal_pass): Now arrays instead of pointers.
6276 (update_signals_program_target, do_target_resume)
6277 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
6278 * linux-nat.c (linux_nat_target::pass_signals)
6279 (linux_nat_target::create_inferior, linux_nat_target::attach):
6281 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
6282 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
6283 * procfs.c (procfs_target::pass_signals): Adjust.
6284 * record-full.c (record_full_target::resume): Adjust.
6285 * remote.c (remote_target::pass_signals)
6286 (remote_target::program_signals): Adjust.
6287 * target-debug.h (target_debug_print_signals): Now takes a
6288 gdb::array_view as parameter. Adjust.
6289 * target.h (target_ops) <pass_signals, program_signals>: Replace
6290 pointer and length parameters with gdb::array_view.
6291 (target_pass_signals, target_program_signals): Likewise.
6292 * target-delegates.c: Regenerate.
6294 2019-01-24 Pedro Alves <palves@redhat.com>
6296 * common/forward-scope-exit.h
6297 (forward_scope_exit::forward_scope_exit): Pass arguments to
6298 m_bind_function directly, instead of creating a std::bind and
6301 2019-01-24 Alan Hayward <alan.hayward@arm.com>
6303 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6305 (pass_in_v_vfp_candidate): Likewise.
6307 2019-01-23 Tom Tromey <tom@tromey.com>
6308 Pedro Alves <palves@redhat.com>
6310 * regcache.c (class regcache_invalidator): Remove.
6311 (regcache::raw_write): Use make_scope_exit.
6313 2019-01-23 Tom Tromey <tom@tromey.com>
6315 * ui-out.h (class ui_out_emit_type): Update comment.
6317 2019-01-23 Tom Tromey <tom@tromey.com>
6319 * infrun.c (fetch_inferior_event): Update comment.
6321 2019-01-23 Tom Tromey <tom@tromey.com>
6322 Pedro Alves <palves@redhat.com>
6324 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
6326 (fetch_inferior_event): Use SCOPE_EXIT.
6329 2019-01-23 Tom Tromey <tom@tromey.com>
6330 Pedro Alves <palves@redhat.com>
6332 * infrun.c (disable_thread_events): Delete.
6333 (stop_all_threads): Use SCOPE_EXIT.
6335 2019-01-23 Tom Tromey <tom@tromey.com>
6336 Pedro Alves <palves@redhat.com>
6338 * symfile.c: Include forward-scope-exit.h.
6339 (clear_symtab_users_cleanup): Replace forward declaration with
6340 a FORWARD_SCOPE_EXIT.
6341 (syms_from_objfile_1): Use the forward_scope_exit and
6342 gdb::optional instead of cleanup_function.
6343 (reread_symbols): Use the forward_scope_exit instead of
6345 (clear_symtab_users_cleanup): Remove function.
6347 2019-01-23 Tom Tromey <tom@tromey.com>
6348 Pedro Alves <palves@redhat.com>
6350 * linux-nat.c: Include scope-exit.h.
6351 (cleanup_target_stop): Remove.
6352 (linux_nat_target::static_tracepoint_markers_by_strid): Use
6355 2019-01-23 Tom Tromey <tom@tromey.com>
6356 Pedro Alves <palves@redhat.com>
6358 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
6359 (call_function_by_hand_dummy): Use SCOPE_EXIT.
6361 2019-01-23 Tom Tromey <tom@tromey.com>
6362 Andrew Burgess <andrew.burgess@embecosm.com>
6363 Pedro Alves <palves@redhat.com>
6365 * infrun.c (fetch_inferior_event): Use scope_exit.
6366 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
6367 * top.c (execute_command): Use scope_exit.
6368 * breakpoint.c (bpstat_do_actions): Use scope_exit.
6369 * utils.c (do_bpstat_clear_actions_cleanup)
6370 (make_bpstat_clear_actions_cleanup): Remove.
6372 2019-01-23 Tom Tromey <tom@tromey.com>
6373 Pedro Alves <palves@redhat.com>
6375 * infrun.c: Include "common/scope-exit.h"
6376 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
6377 (wait_for_inferior): Use SCOPE_EXIT.
6378 (fetch_inferior_event): Use scope_exit.
6380 2019-01-23 Tom Tromey <tom@tromey.com>
6381 Pedro Alves <palves@redhat.com>
6383 * breakpoint.c (create_breakpoint): Remove cleanup.
6385 2019-01-23 Tom Tromey <tom@tromey.com>
6386 Andrew Burgess <andrew.burgess@embecosm.com>
6387 Pedro Alves <palves@redhat.com>
6389 2019-01-23 Pedro Alves <palves@redhat.com>
6391 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6393 2019-01-23 Pedro Alves <palves@redhat.com>
6394 Andrew Burgess <andrew.burgess@embecosm.com>
6396 * gdbthread.h: Include "common/forward-scope-exit.h".
6397 (scoped_finish_thread_state): Redefine custom class in terms of
6400 2019-01-23 Pedro Alves <palves@redhat.com>
6401 Andrew Burgess <andrew.burgess@embecosm.com>
6403 * common/forward-scope-exit.h: New file.
6405 2019-01-23 Pedro Alves <palves@redhat.com>
6406 Andrew Burgess <andrew.burgess@embecosm.com>
6407 Tom Tromey <tom@tromey.com>
6409 * common/scope-exit.h: New file.
6411 2019-01-23 Pedro Alves <palves@redhat.com>
6413 * common/preprocessor.h (ESC): Rename to ...
6414 (ESC_PARENS): ... this.
6415 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6416 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6418 2019-01-23 Tom Tromey <tom@tromey.com>
6420 * language.h (class scoped_switch_to_sym_language_if_auto):
6421 Initialize m_lang in both cases.
6423 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6425 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6428 2019-01-22 Tom Tromey <tom@tromey.com>
6430 * corelow.c: Do not include sys/file.h.
6432 2019-01-22 Tom Tromey <tom@tromey.com>
6434 * tui/tui-wingeneral.h: Include gdb_curses.h.
6436 2019-01-22 Tom Tromey <tom@tromey.com>
6438 * source-cache.h (class source_cache) <get_source_lines,
6439 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6441 2019-01-22 Tom Tromey <tom@tromey.com>
6443 * remote-fileio.h (struct remote_target): Declare.
6445 2019-01-22 Tom Tromey <tom@tromey.com>
6447 * python/py-arch.c: Do not include py-ref.h.
6448 * python/py-bpevent.c: Do not include py-ref.h.
6449 * python/py-cmd.c: Do not include py-ref.h.
6450 * python/py-continueevent.c: Do not include py-ref.h.
6451 * python/py-event.h: Do not include py-ref.h.
6452 * python/py-evtregistry.c: Do not include py-ref.h.
6453 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6454 * python/py-frame.c: Do not include py-ref.h.
6455 * python/py-framefilter.c: Do not include py-ref.h.
6456 * python/py-function.c: Do not include py-ref.h.
6457 * python/py-infevents.c: Do not include py-ref.h.
6458 * python/py-linetable.c: Do not include py-ref.h.
6459 * python/py-objfile.c: Do not include py-ref.h.
6460 * python/py-param.c: Do not include py-ref.h.
6461 * python/py-prettyprint.c: Do not include py-ref.h.
6462 * python/py-progspace.c: Do not include py-ref.h.
6463 * python/py-symbol.c: Do not include py-ref.h.
6464 * python/py-symtab.c: Do not include py-ref.h.
6465 * python/py-type.c: Do not include py-ref.h.
6466 * python/py-unwind.c: Do not include py-ref.h.
6467 * python/py-utils.c: Do not include py-ref.h.
6468 * python/py-value.c: Do not include py-ref.h.
6469 * python/py-varobj.c: Do not include py-ref.h.
6470 * python/py-xmethods.c: Do not include py-ref.h.
6471 * python/python.c: Do not include py-ref.h.
6472 * varobj.c: Do not include py-ref.h.
6474 2019-01-22 Tom Tromey <tom@tromey.com>
6476 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6479 2019-01-22 Tom Tromey <tom@tromey.com>
6481 * compile/compile-cplus-types.c: Remove a comment by #include.
6483 2019-01-22 Tom Tromey <tom@tromey.com>
6485 * compile/gcc-c-plugin.h: Include compile-internal.h.
6487 2019-01-22 Tom Tromey <tom@tromey.com>
6489 * stabsread.c (EXTERN): Do not define.
6490 (symnum, next_symbol_text_func, processing_gcc_compilation)
6491 (within_function, global_sym_chain, global_stabs)
6492 (previous_stab_code, this_object_header_files)
6493 (n_this_object_header_files)
6494 (n_allocated_this_object_header_files): Define.
6495 * stabsread.h (EXTERN): Never define. Use "extern".
6497 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6499 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6502 2019-01-21 Tom Tromey <tom@tromey.com>
6504 * ui-out.c: Fix includes.
6505 * tui/tui-source.c: Fix includes.
6506 * target.c: Fix includes.
6507 * remote.c: Fix includes.
6508 * regcache.c: Fix includes.
6509 * python/py-block.c: Fix includes.
6510 * printcmd.c: Fix includes.
6511 * or1k-tdep.c: Fix includes.
6512 * mi/mi-main.c: Fix includes.
6513 * m32r-tdep.c: Fix includes.
6514 * csky-tdep.c: Fix includes.
6515 * compile/compile-cplus-types.c: Fix includes.
6516 * cli/cli-interp.c: Fix includes.
6518 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6520 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6523 2019-01-16 Tom Tromey <tom@tromey.com>
6525 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6527 (struct objfile) <msymbols_range>: Move from top level.
6528 <msymbols>: New method.
6529 (class objfile_msymbols): Remove.
6530 * symtab.c (default_collect_symbol_completion_matches_break_on):
6532 * symmisc.c (dump_msymbols): Update.
6533 * stabsread.c (scan_file_globals): Update.
6534 * objc-lang.c (info_selectors_command, info_classes_command)
6535 (find_methods): Update.
6536 * minsyms.c (find_solib_trampoline_target): Update.
6537 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6538 * coffread.c (coff_symfile_read): Update.
6539 * ada-lang.c (ada_lookup_simple_minsym)
6540 (ada_collect_symbol_completion_matches): Update.
6542 2019-01-16 Tom Tromey <tom@tromey.com>
6544 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6545 type. Remove no-argument constructor.
6546 <iterator::operator++>: Simplify.
6548 <end>: Use minimal_symbol_count.
6550 2019-01-16 Tom Tromey <tom@tromey.com>
6552 * objfiles.h (struct objfile) <psymtabs>: New method.
6553 (class objfile_psymtabs): Remove.
6554 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6556 <range>: New method.
6557 (require_partial_symbols): Change return type.
6558 * psymtab.c (require_partial_symbols)
6559 (psym_expand_symtabs_matching): Update.
6560 * mdebugread.c (parse_partial_symbols): Update.
6561 * dbxread.c (dbx_end_psymtab): Update.
6563 2019-01-15 Tom Tromey <tom@tromey.com>
6565 * symtab.c (lookup_objfile_from_block)
6566 (lookup_symbol_in_objfile_symtabs)
6567 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6568 (find_line_symtab, info_sources_command)
6569 (default_collect_symbol_completion_matches_break_on)
6570 (make_source_files_completion_list): Update.
6571 * symmisc.c (print_objfile_statistics, dump_objfile)
6572 (maintenance_print_symbols, maintenance_info_symtabs)
6573 (maintenance_check_symtabs, maintenance_info_line_tables):
6575 * source.c (select_source_symtab)
6576 (forget_cached_source_info_for_objfile): Update.
6577 * objfiles.h (class objfile_compunits): Remove.
6578 (struct objfile) <compunits_range>: New typedef.
6579 (compunits): New method.
6580 * objfiles.c (objfile_relocate1): Update.
6581 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6582 * maint.c (count_symtabs_and_blocks): Update.
6583 * linespec.c (iterate_over_all_matching_symtabs): Update.
6584 * cp-support.c (add_symbol_overload_list_qualified): Update.
6585 * coffread.c (coff_symtab_read): Update.
6586 * ada-lang.c (add_nonlocal_symbols)
6587 (ada_collect_symbol_completion_matches)
6588 (ada_add_global_exceptions): Update.
6590 2019-01-15 Tom Tromey <tom@tromey.com>
6592 * progspace.h (program_space) <objfiles_safe_range>: New
6594 <objfiles_safe>: New method.
6595 * objfiles.h (class all_objfiles_safe): Remove.
6596 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6597 * jit.c (jit_inferior_exit_hook): Update.
6599 2019-01-17 Tom Tromey <tom@tromey.com>
6601 * progspace.h (program_space) <objfiles_range>: New typedef.
6602 <objfiles>: New method.
6603 <objfiles_head>: Rename from objfiles.
6604 (object_files): Update.
6605 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6606 * guile/scm-pretty-print.c
6607 (ppscm_find_pretty_printer_from_objfiles): Update.
6608 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6609 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6611 * python/py-progspace.c (pspy_get_objfiles): Update.
6612 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6614 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6615 (objfpy_lookup_objfile_by_build_id): Update.
6616 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6617 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6619 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6620 (expand_symtab_containing_pc, lookup_objfile_from_block)
6621 (lookup_static_symbol, basic_lookup_transparent_type)
6622 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6623 (find_line_symtab, info_sources_command)
6624 (default_collect_symbol_completion_matches_break_on)
6625 (make_source_files_completion_list, find_main_name): Update.
6626 * symmisc.c (print_symbol_bcache_statistics)
6627 (print_objfile_statistics, maintenance_print_symbols)
6628 (maintenance_print_msymbols, maintenance_print_objfiles)
6629 (maintenance_info_symtabs, maintenance_check_symtabs)
6630 (maintenance_expand_symtabs, maintenance_info_line_tables):
6632 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6633 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6634 (map_overlay_command, unmap_overlay_command)
6635 (simple_overlay_update, expand_symtabs_matching)
6636 (map_symbol_filenames): Update.
6637 * symfile-debug.c (set_debug_symfile): Update.
6638 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6640 * source.c (select_source_symtab, forget_cached_source_info):
6642 * solib.c (solib_read_symbols): Update.
6643 * solib-spu.c (append_ocl_sos): Update.
6644 * psymtab.c (maintenance_print_psymbols)
6645 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6646 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6647 * printcmd.c (info_symbol_command): Update.
6648 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6650 * objfiles.h (class all_objfiles): Remove.
6651 * objfiles.c (have_partial_symbols, have_full_symbols)
6652 (have_minimal_symbols, qsort_cmp, update_section_map)
6653 (shared_objfile_contains_address_p)
6654 (default_iterate_over_objfiles_in_search_order): Update.
6655 * objc-lang.c (info_selectors_command, info_classes_command)
6656 (find_methods): Update.
6657 * minsyms.c (find_solib_trampoline_target): Update.
6658 * maint.c (maintenance_info_sections)
6659 (maintenance_translate_address, count_symtabs_and_blocks):
6661 * main.c (captured_main_1): Update.
6662 * linux-thread-db.c (try_thread_db_load_from_pdir)
6663 (has_libpthread): Update.
6664 * linespec.c (iterate_over_all_matching_symtabs)
6665 (search_minsyms_for_name): Update.
6666 * jit.c (jit_find_objf_with_entry_addr): Update.
6667 * hppa-tdep.c (find_unwind_entry)
6668 (hppa_lookup_stub_minimal_symbol): Update.
6669 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6671 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6672 (elf_gnu_ifunc_resolve_by_got): Update.
6673 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6674 * dwarf-index-write.c (save_gdb_index_command): Update.
6675 * cp-support.c (add_symbol_overload_list_qualified): Update.
6676 * breakpoint.c (create_overlay_event_breakpoint)
6677 (create_longjmp_master_breakpoint)
6678 (create_std_terminate_master_breakpoint)
6679 (create_exception_master_breakpoint): Update.
6680 * blockframe.c (find_pc_partial_function): Update.
6681 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6682 (ada_collect_symbol_completion_matches)
6683 (ada_add_global_exceptions): Update.
6685 2019-01-17 Tom Tromey <tom@tromey.com>
6687 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6689 (solib_target_parse_libraries): Change return type.
6690 (library_list_start_segment, library_list_start_section)
6691 (library_list_end_library, library_list_start_library); Update.
6692 (solib_target_free_library_list): Remove.
6693 (solib_target_parse_libraries): Remove cleanup. Change return
6695 (solib_target_current_sos): Update.
6697 2019-01-17 Tom Tromey <tromey@bapiya>
6699 * valprint.c: Replace "the the" with "the".
6700 * symtab.c: Replace "the the" with "the".
6701 * solib.c: Replace "the the" with "the".
6702 * solib-dsbt.c: Replace "the the" with "the".
6703 * linespec.c: Replace "the the" with "the".
6704 * dwarf2loc.h: Replace "the the" with "the".
6705 * amd64-windows-tdep.c: Replace "the the" with "the".
6706 * aarch64-tdep.c: Replace "the the" with "the".
6708 2019-01-16 Keith Seitz <keiths@redhat.com>
6711 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6712 <builder>: Rename to ..
6713 <m_builder>: ... this and make private.
6714 (dwarf2_cu::get_builder): New method. Change all users of
6715 `builder' to use this method.
6716 (dwarf2_start_symtab): Move to ...
6717 (dwarf2_cu::start_symtab): ... here. Update all callers
6718 (setup_type_unit_groups): Move to ...
6719 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6721 (dwarf2_cu::reset_builder): New method.
6722 (process_full_compunit, process_full_type_unit): Use
6723 dwarf2_cu::reset_builder.
6724 (follow_die_offset): Record the ancestor CU if it is different
6725 from the followed DIE's CU.
6726 (follow_die_sig_1): Likewise.
6728 2019-01-15 Tom Tromey <tom@tromey.com>
6730 * remote.c (class remote_state) <buf>: Now a char_vector.
6732 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6734 (remote_target::getpkt_or_notif_sane_1)
6735 (remote_target::getpkt_sane)
6736 (remote_target::getpkt_or_notif_sane): Likewise.
6737 (class remote_target) <putpkt>: New overload.
6738 (remote_target::read_frame): Change type of "buf_p". Remove
6740 (packet_ok): New overload.
6741 (packet_check_result): New overload.
6744 2019-01-14 Tom Tromey <tom@tromey.com>
6746 * remote-notif.c (handle_notification, remote_notif_ack)
6747 (remote_notif_parse): Make "buf" const.
6748 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6750 (remote_notif_parse, remote_notif_ack, handle_notification):
6752 * remote.c (remote_notif_stop_parse): Make "buf" const.
6753 (remote_target::remote_parse_stop_reply): Make "buf" const.
6754 (remote_notif_stop_ack): Make "buf" const.
6756 2019-01-14 Tom Tromey <tom@tromey.com>
6758 * remote.c (remote_console_output): Make parameter const.
6760 2019-01-14 Tom Tromey <tom@tromey.com>
6762 * target-debug.h (target_debug_print_signals): Constify.
6763 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6764 * procfs.c (procfs_target::pass_signals): Update.
6765 * linux-nat.c (linux_nat_target::pass_signals): Update.
6766 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6767 * target-delegates.c: Rebuild.
6768 * remote.c (remote_target::program_signals): Update.
6769 (remote_target::pass_signals): Update.
6770 * target.c (target_pass_signals): Constify argument.
6771 (target_program_signals): Likewise.
6772 * target.h (struct target_ops) <pass_signals, program_signals>:
6774 (target_pass_signals, target_program_signals): Constify argument.
6776 2019-01-14 Tom Tromey <tom@tromey.com>
6779 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6781 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6783 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6785 * rs6000-tdep.c: Include reggroups.h.
6786 (IS_V_ALIAS_PSEUDOREG): Define.
6787 (rs6000_register_name): Return names for the "vX" aliases.
6788 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6789 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6790 aliases. Call default_register_reggroup_p for all other
6792 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6794 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6795 Handle "vX" aliases.
6796 (v_alias_pseudo_register_collect): New function.
6797 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6798 (rs6000_gdbarch_init): Initialize "vX" aliases as
6799 pseudo-registers. Restore registration of
6800 rs6000_pseudo_register_reggroup_p with
6801 set_tdesc_pseudo_register_reggroup_p.
6803 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6805 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6806 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6807 set_gdbarch_num_pseudo_regs.
6809 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6811 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6812 Remove arg prefixname, add do_set and do_show.
6813 Add member functions set_list and show_list.
6814 * cli/cli-style.c (class cli_style_option): Update accordingly.
6815 (style_set_list): Move to file scope.
6816 (style_show_list): Likewise.
6817 (set_style): Call help_list.
6818 (show_style): Call cmd_show_list.
6819 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6820 Update to use the new macro.
6822 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6824 * ada-lang.c (_initialize_ada_language): Expand the help text
6825 for the "catch exception" command.
6827 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6829 * symtab.c (matching_obj_sections): Initialize obj,
6830 declare it closer to its usage.
6832 2019-01-10 Tom Tromey <tom@tromey.com>
6834 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6835 (basic_inf_threads_range): Remove.
6836 (inf_threads_range, inf_non_exited_threads_range)
6837 (safe_inf_threads_range): Use next_adapter.
6839 2019-01-10 Keith Seitz <keiths@redhat.com>
6843 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6844 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6846 2019-01-10 Keith Seitz <keiths@redhat.com>
6850 * dictionary.c (pending_to_vector): Remove.
6851 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6852 Remove _1 suffix, replacing functions of the same name. Update
6854 (dict_create_hashed, dict_create_hashed_expandable)
6855 (dict_create_linear, dict_create_linear_expandable, dict_free)
6856 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6857 Make functions static.
6859 2019-01-10 Keith Seitz <keiths@redhat.com>
6863 * dictionary.h (struct dictionary): Replace declaration with
6865 (dict_create_hashed, dict_create_hashed_expandable)
6866 (dict_create_linear, dict_create_linear_expandable)
6867 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6868 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6869 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6870 taking multidictionary argument.
6871 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6872 * block.h (struct block) <dict>: Change to multidictionary
6873 and rename `multidict'.
6874 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6875 symmisc.c: Update all dictionary references to multidictionary.
6877 2019-01-10 Keith Seitz <keiths@redhat.com>
6881 * dictionary.c: Include unordered_map.
6882 (pending_to_vector): New function.
6883 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6884 Rewrite the non-"_1" functions to take vector instead
6886 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6887 "new" _1 versions of the same name.
6888 (multidictionary): Define.
6889 (std::hash<enum language): New definition.
6890 (collate_pending_symbols_by_language, mdict_create_hashed)
6891 (mdict_create_hashed_expandable, mdict_create_linear)
6892 (mdict_create_linear_expandable, mdict_free)
6893 (find_language_dictionary, create_new_language_dictionary)
6894 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6895 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6896 (mdict_size, mdict_empty): New functions.
6897 * dictionary.h (mdict_iterator): Define.
6899 2019-01-10 Pedro Alves <palves@redhat.com>
6901 * breakpoint.c (read_uploaded_action)
6902 (create_tracepoint_from_upload): Adjust to use
6903 gdb::unique_xmalloc_ptr.
6904 * ctf.c (ctf_write_uploaded_tp):
6905 (SET_ARRAY_FIELD): Use emplace_back.
6906 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6907 * tracefile-tfile.c (tfile_write_uploaded_tp):
6908 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6909 gdb::unique_xmalloc_ptr.
6910 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6911 at_string, cond_string, cmd_strings>: Replace char pointers
6912 with gdb::unique_xmalloc_ptr.
6914 2019-01-10 Pedro Alves <palves@redhat.com>
6916 * solib-target.c (library_list_start_library): Don't xstrdup name.
6918 2019-01-10 Pedro Alves <palves@redhat.com>
6920 * mdebugread.c (parse_partial_symbols): Use
6921 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6923 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6925 * linux-fork.c (scoped_switch_fork_info)
6926 <~scoped_switch_fork_info>: Fix incorrect variable name.
6928 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6930 * linux-fork.c (scoped_switch_fork_info)
6931 <scoped_switch_fork_info>: Make explicit.
6932 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6934 2019-01-10 Tom Tromey <tom@tromey.com>
6936 * objfiles.h (objfile::reset_psymtabs): Update.
6937 * objfiles.c (objfile::objfile): Update.
6938 * psymtab.h (psymtab_storage::obstack): Update.
6939 (psymtab_storage::m_obstack): Use gdb::optional.
6940 (class psymtab_storage): Update comment. Remove objfile
6942 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6944 2019-01-10 Tom Tromey <tom@tromey.com>
6946 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6947 <free_psymtabs>: Now private.
6948 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6949 (allocate_psymtab): Use new method.
6951 2019-01-10 Tom Tromey <tom@tromey.com>
6953 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6954 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6955 * mdebugread.c (parse_partial_symbols): Use
6956 allocate_dependencies.
6957 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6958 allocate_dependencies.
6959 (process_psymtab_comp_unit_reader)
6960 (build_type_psymtab_dependencies): Likewise.
6961 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6963 2019-01-10 Tom Tromey <tom@tromey.com>
6965 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6966 PSYMBOL_SET_LANGUAGE.
6967 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6969 2019-01-10 Tom Tromey <tom@tromey.com>
6971 * psymtab.h (psymtab_storage::obstack): New method.
6972 <m_obstack>: Rename from obstack; now private.
6973 * psymtab.c (psymtab_storage): Update.
6974 * dwarf2read.c (create_addrmap_from_index)
6975 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6978 2019-01-10 Tom Tromey <tom@tromey.com>
6980 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6981 * objfiles.h (objfile::reset_psymtabs): New method.
6983 2019-01-10 Tom Tromey <tom@tromey.com>
6985 * symmisc.c (print_symbol_bcache_statistics): Update.
6986 (print_objfile_statistics): Update.
6987 * symfile.c (reread_symbols): Update.
6988 * psymtab.h (class psymtab_storage): New.
6989 * psymtab.c (psymtab_storage): New constructor.
6990 (~psymtab_storage): New destructor.
6991 (require_partial_symbols): Update.
6992 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6993 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6994 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6995 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6996 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6997 (start_psymtab_common, end_psymtab_common)
6998 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6999 (allocate_psymtab): Update.
7000 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
7002 (dump_psymtab_addrmap, maintenance_print_psymbols)
7003 (maintenance_check_psymtabs): Update.
7004 (class objfile_psymtabs): Move to objfiles.h.
7005 * psympriv.h (discard_psymtab): Now inline.
7006 (psymtab_discarder::psymtab_discarder): Update.
7007 (psymtab_discarder::~psymtab_discarder): Update.
7008 (ALL_OBJFILE_PSYMTABS): Rewrite.
7009 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
7010 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
7012 <partial_symtabs>: New field.
7013 (class objfile_psymtabs): Move from psymtab.h. Update.
7014 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
7016 (objfile::~objfile): Don't destroy psymbol_cache.
7017 * mdebugread.c (parse_partial_symbols): Update.
7018 * dwarf2read.c (create_addrmap_from_index)
7019 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7020 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
7021 (add_partial_subprogram, dwarf2_ranges_read): Update.
7022 * dwarf-index-write.c (write_address_map)
7023 (write_one_signatured_type, recursively_write_psymbols)
7024 (class debug_names, class debug_names, write_psymtabs_to_index):
7027 2019-01-10 Tom Tromey <tom@tromey.com>
7029 * symtab.h (SYMBOL_SET_NAMES): Update.
7030 (symbol_set_names): Update.
7031 (MSYMBOL_SET_NAMES): Update.
7032 * symtab.c (symbol_set_names): Change argument to be an
7033 objfile_per_bfd_storage.
7034 * psymtab.c (add_psymbol_to_bcache): Update.
7035 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
7037 2019-01-10 Tom Tromey <tom@tromey.com>
7039 * symtab.c (create_demangled_names_hash): Change argument to be an
7040 objfile_per_bfd_storage.
7041 (symbol_set_names): Update.
7043 2019-01-10 Tom Tromey <tom@tromey.com>
7045 * xcoffread.c (xcoff_initial_scan): Unconditionally call
7047 * psymtab.c (init_psymbol_list): Do nothing if already called.
7048 * psympriv.h (init_psymbol_list): Add comment.
7049 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
7051 * dbxread.c (dbx_symfile_read): Unconditionally call
7054 2019-01-10 Tom Tromey <tom@tromey.com>
7056 * xcoffread.c (scan_xcoff_symtab): Update.
7057 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
7059 * mdebugread.c (parse_partial_symbols)
7060 (handle_psymbol_enumerators): Update.
7061 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
7062 * dbxread.c (read_dbx_symtab): Update.
7063 * psympriv.h (psymbol_placement): New enum.
7064 (add_psymbol_to_list): Update.
7066 2019-01-10 Tom Tromey <tom@tromey.com>
7068 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
7069 static_psymbols parameters.
7070 (scan_xcoff_symtab): Update.
7071 * psymtab.c (start_psymtab_common): Remove global_psymbols and
7072 static_psymbols parameters.
7073 * psympriv.h (start_psymtab_common): Update.
7074 * mdebugread.c (parse_partial_symbols): Update.
7075 * dwarf2read.c (create_partial_symtab): Update.
7076 * dbxread.c (read_dbx_symtab): Update.
7077 (start_psymtab): Remove global_psymbols and static_psymbols
7080 2019-01-10 Tom Tromey <tom@tromey.com>
7082 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
7083 * psymtab.c (allocate_psymtab): Add comment.
7084 * psympriv.h (allocate_psymtab): Add comment.
7085 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
7087 * dbxread.c (dbx_end_psymtab): Remove some initializations.
7089 2019-01-10 Tom Tromey <tom@tromey.com>
7091 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7093 * mipsread.c: Include mdebugread.h.
7094 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7096 * elfread.c: Include mdebugread.h.
7098 2019-01-09 Tom Tromey <tom@tromey.com>
7100 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
7101 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
7102 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
7103 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
7104 (psym_lookup_symbol, psym_find_last_source_symtab)
7105 (psym_forget_cached_source_info, psym_print_stats)
7106 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
7107 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
7108 (psym_map_matching_symbols, psym_expand_symtabs_matching)
7109 (psym_find_compunit_symtab_by_address)
7110 (maintenance_print_psymbols, maintenance_info_psymtabs)
7111 (maintenance_check_psymtabs): Use ranged for.
7112 * psymtab.h (class objfile_psymtabs): New.
7113 (require_partial_symbols): Return objfile_psymtabs.
7114 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
7116 2019-01-09 Tom Tromey <tom@tromey.com>
7118 * symfile.c (overlay_invalidate_all, find_pc_overlay)
7119 (find_pc_mapped_section, list_overlays_command)
7120 (map_overlay_command, unmap_overlay_command)
7121 (simple_overlay_update): Use all_objfiles.
7122 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
7123 * printcmd.c (info_symbol_command): Use all_objfiles.
7124 * objfiles.h (ALL_OBJSECTIONS): Remove.
7125 * maint.c (maintenance_translate_address): Use all_objfiles.
7126 * gcore.c (gcore_create_callback): Use all_objfiles.
7127 (objfile_find_memory_regions): Likewise.
7129 2019-01-09 Tom Tromey <tom@tromey.com>
7131 * symtab.c (find_line_symtab, info_sources_command)
7132 (make_source_files_completion_list): Use objfile_compunits.
7133 * source.c (select_source_symtab): Use objfile_compunits.
7134 * objfiles.h (struct objfile): Update comment.
7135 (ALL_OBJFILES): Remove.
7136 (ALL_FILETABS): Remove.
7137 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
7140 2019-01-09 Tom Tromey <tom@tromey.com>
7142 * symmisc.c (print_objfile_statistics, dump_objfile)
7143 (maintenance_print_symbols): Use compunit_filetabs.
7144 * source.c (forget_cached_source_info_for_objfile): Use
7146 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
7147 (ALL_FILETABS): Use compunit_filetabs.
7148 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
7149 * coffread.c (coff_symtab_read): Use compunit_filetabs.
7151 2019-01-09 Tom Tromey <tom@tromey.com>
7153 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
7154 (compunit_filetabs): New.
7155 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
7157 (info_sources_command, make_source_files_completion_list): Remove
7159 * symmisc.c (print_objfile_statistics, dump_objfile)
7160 (maintenance_print_symbols): Remove declaration.
7161 (maintenance_info_symtabs): Use compunit_filetabs.
7162 (maintenance_info_line_tables): Likewise.
7163 * source.c (select_source_symtab): Change local variable name.
7164 (forget_cached_source_info_for_objfile): Remove declaration.
7165 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
7166 * objfiles.c (objfile_relocate1): Remove declaration.
7167 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7169 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
7170 * coffread.c (coff_symtab_read): Remove declaration.
7171 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
7174 2019-01-09 Tom Tromey <tom@tromey.com>
7176 * symtab.c (lookup_objfile_from_block)
7177 (find_pc_sect_compunit_symtab, search_symbols)
7178 (default_collect_symbol_completion_matches_break_on): Use
7180 * objfiles.h (ALL_COMPUNITS): Remove.
7181 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
7182 * cp-support.c (add_symbol_overload_list_qualified): Use
7184 * ada-lang.c (ada_collect_symbol_completion_matches)
7185 (ada_add_global_exceptions): Use objfile_compunits.
7187 2019-01-09 Tom Tromey <tom@tromey.com>
7189 * source.c (select_source_symtab)
7190 (forget_cached_source_info_for_objfile): Remove declaration.
7191 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7193 * maint.c (count_symtabs_and_blocks): Remove declaration.
7194 * cp-support.c (add_symbol_overload_list_qualified): Remove
7196 * coffread.c (coff_symtab_read): Remove declaration.
7197 * symtab.c (lookup_symbol_in_objfile_symtabs)
7198 (basic_lookup_transparent_type_1): Use objfile_compunits.
7199 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
7200 (info_sources_command, search_symbols)
7201 (default_collect_symbol_completion_matches_break_on)
7202 (make_source_files_completion_list): Remove declaration.
7203 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
7204 (ada_collect_symbol_completion_matches)
7205 (ada_add_global_exceptions): Remove declaration.
7206 * linespec.c (iterate_over_all_matching_symtabs): Use
7208 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
7209 (class objfile_compunits): New.
7210 (ALL_COMPUNITS): Use objfile_compunits.
7211 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
7212 (maintenance_check_symtabs, maintenance_info_line_tables): Use
7214 * objfiles.c (objfile_relocate1): Use objfile_compunits.
7216 2019-01-09 Tom Tromey <tom@tromey.com>
7218 * symtab.c (search_symbols)
7219 (default_collect_symbol_completion_matches_break_on): Use
7221 * ada-lang.c (ada_lookup_simple_minsym)
7222 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
7223 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
7224 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
7226 * coffread.c (coff_symfile_read): Use objfile_msymbols.
7227 * symmisc.c (dump_msymbols): Use objfile_msymbols.
7228 * objc-lang.c (find_methods): Use objfile_msymbols.
7229 (info_selectors_command, info_classes_command): Likewise.
7230 * stabsread.c (scan_file_globals): Use objfile_msymbols.
7231 * objfiles.h (class objfile_msymbols): New.
7232 (ALL_OBJFILE_MSYMBOLS): Remove.
7233 (ALL_MSYMBOLS): Remove.
7235 2019-01-09 Tom Tromey <tom@tromey.com>
7237 * common/next-iterator.h (next_adapter): Add Iterator template
7239 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
7240 (class all_objfiles_safe): New.
7241 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
7242 * objfiles.c (put_objfile_before): Update comment.
7243 (add_separate_debug_objfile): Likewise.
7244 (free_all_objfiles): Use all_objfiles_safe.
7245 (objfile_purge_solibs): Likewise.
7247 2019-01-09 Tom Tromey <tom@tromey.com>
7249 * symtab.c (iterate_over_symtabs, matching_obj_sections)
7250 (expand_symtab_containing_pc, lookup_static_symbol)
7251 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
7252 (find_symbol_at_address, find_line_symtab, find_main_name): Use
7254 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
7255 * breakpoint.c (create_overlay_event_breakpoint)
7256 (create_longjmp_master_breakpoint)
7257 (create_std_terminate_master_breakpoint)
7258 (create_exception_master_breakpoint): Use all_objfiles.
7259 * linux-thread-db.c (try_thread_db_load_from_pdir)
7260 (has_libpthread): Use all_objfiles.
7261 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
7262 * linespec.c (iterate_over_all_matching_symtabs)
7263 (search_minsyms_for_name): Use all_objfiles.
7264 * maint.c (maintenance_info_sections): Use all_objfiles.
7265 * main.c (captured_main_1): Use all_objfiles.
7266 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
7267 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
7268 * guile/scm-pretty-print.c
7269 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
7270 * solib-spu.c (append_ocl_sos): Use all_objfiles.
7271 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
7272 (maintenance_print_msymbols): Use all_objfiles.
7273 * source.c (select_source_symtab): Use all_objfiles.
7274 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
7275 * symfile.c (remove_symbol_file_command)
7276 (expand_symtabs_matching, map_symbol_filenames): Use
7278 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
7280 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
7281 * objc-lang.c (find_methods): Use all_objfiles.
7282 * objfiles.c (have_partial_symbols, have_full_symbols)
7283 (have_minimal_symbols, qsort_cmp)
7284 (default_iterate_over_objfiles_in_search_order): Use
7286 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
7287 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
7288 (maintenance_check_psymtabs): Use all_objfiles.
7289 (ALL_PSYMTABS): Remove.
7290 * compile/compile-object-run.c (do_module_cleanup): Use
7292 * blockframe.c (find_pc_partial_function): Use all_objfiles.
7293 * cp-support.c (add_symbol_overload_list_qualified): Use
7295 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
7297 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
7298 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
7300 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
7301 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
7302 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7304 * solib.c (solib_read_symbols): Use all_objfiles
7306 2019-01-09 Tom Tromey <tom@tromey.com>
7308 * probe.c (parse_probes_in_pspace): Use all_objfiles.
7309 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
7311 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
7312 * symmisc.c (print_symbol_bcache_statistics)
7313 (print_objfile_statistics, maintenance_print_objfiles)
7314 (maintenance_info_symtabs, maintenance_check_symtabs)
7315 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
7317 * source.c (forget_cached_source_info): Use all_objfiles.
7318 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
7319 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
7320 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
7321 * objfiles.c (update_section_map): Use all_objfiles.
7322 (shared_objfile_contains_address_p): Likewise.
7323 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
7324 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
7326 2019-01-09 Tom Tromey <tom@tromey.com>
7328 * common/next-iterator.h: New file.
7329 * objfiles.h (class all_objfiles): New.
7330 (struct objfile_iterator): New.
7332 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7334 * NEWS: Move the description of the changed "frame", "select-frame",
7335 and "info frame" commands to the Changed commands section.
7337 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
7339 * gdbtypes.c (check_stub_method_group): Remove handling of old
7341 * linespec.c (find_methods): Likewise.
7342 * stabsread.c (read_member_functions): Likewise.
7343 * valops.c (search_struct_method): Likewise.
7344 (value_struct_elt_for_reference): Likewise.
7345 * NEWS: Mention this change.
7347 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7349 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
7351 * source.c (print_source_lines_base): Update line number check.
7352 (print_source_lines): New function.
7353 (source_lines_range::source_lines_range): New function.
7354 * source.h (class source_lines_range): New class.
7355 (print_source_lines): New declaration.
7357 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7359 * linespec.c (linespec_state_destructor): Free self->canonical_names.
7361 2019-01-08 Tom Tromey <tom@tromey.com>
7362 Simon Marchi <simon.marchi@ericsson.com>
7365 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
7366 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
7367 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7368 * f-exp.y (DOLLAR_VARIABLE): Likewise.
7369 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
7370 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7372 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7374 * source.c (select_source_symtab): Move header comment to
7375 declaration in source.h.
7376 (forget_cached_source_info_for_objfile): Likewise.
7377 (forget_cached_source_info): Likewise.
7378 (identify_source_line): Likewise.
7379 * source.h (identify_source_line): Move declaration from symtab.h
7380 and add comment from source.c
7381 (print_source_lines): Likewise.
7382 (forget_cached_source_info_for_objfile): Likewise.
7383 (forget_cached_source_info): Likewise.
7384 (select_source_symtab): Likewise.
7385 (enum print_source_lines_flag): Move definition from symtab.h.
7386 * symtab.h (identify_source_line): Move declaration to source.h.
7387 (print_source_lines): Likewise.
7388 (forget_cached_source_info_for_objfile): Likewise.
7389 (forget_cached_source_info): Likewise.
7390 (select_source_symtab): Likewise.
7391 (enum print_source_lines_flag): Move definition to source.h.
7392 * tui/tui-hooks.c: Add 'source.h' include.
7394 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7396 * source.c (print_source_lines_base): Handle requests to print
7397 reverse line number sequences, and guard against empty lines
7400 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7402 * source.c (print_source_lines_base): Fix skip of '\r' if next
7405 2019-01-06 Tom Tromey <tom@tromey.com>
7407 * c-exp.y (struct c_parse_state) <macro_original_text,
7408 expansion_obstack>: New member.
7409 (macro_original_text, expansion_obstack): Remove globals.
7410 (scan_macro_expansion, scanning_macro_expansion)
7411 (finished_macro_expansion): Update.
7412 (scan_macro_cleanup): Remove.
7413 (yylex, c_parse): Update.
7415 2019-01-06 Tom Tromey <tom@tromey.com>
7417 * c-exp.y (struct c_parse_state) <strings>: New member.
7418 (operator_stoken): Update.
7420 2019-01-06 Tom Tromey <tom@tromey.com>
7422 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7423 (union type_stack_elt) <typelist_val>: Now a pointer to
7425 (type_stack_cleanup): Don't declare.
7426 (push_typelist): Update.
7427 * parse.c (pop_typelist): Return a std::vector.
7428 (push_typelist): Take a std::vector.
7429 (follow_types): Update. Do not free args.
7430 (type_stack_cleanup): Remove.
7431 * c-exp.y (struct c_parse_state): New.
7432 (cpstate): New global.
7433 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7434 (nonempty_typelist): Update.
7435 (func_mod): Create a new vector.
7436 (c_parse): Create a c_parse_state.
7437 (check_parameter_typelist): Do not delete params.
7438 (function_method): Update. Do not delete type_list.
7440 2019-01-06 Tom Tromey <tom@tromey.com>
7443 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7445 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7446 (print_return_value): Likewise.
7448 2019-01-05 Tom Tromey <tom@tromey.com>
7450 * contrib/cleanup_check.py: Remove.
7451 * contrib/gcc-with-excheck: Remove.
7452 * contrib/exsummary.py: Remove.
7453 * contrib/excheck.py: Remove.
7455 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7457 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7458 NULL. Initialize tpprev to NULL instead of assigning it
7459 to NULL on the next statement.
7460 * windows-nat.c (windows_delete_thread): Remove check for
7461 main_thread_id before printing thread exit notifications.
7462 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7463 Remove thread ID check against main_thread_id.
7464 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7465 windows_delete_thread.
7466 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7468 2019-01-04 Tom Tromey <tom@tromey.com>
7470 * compile/compile.c (_initialize_compile): Use upper case for
7471 metasyntactic variables.
7472 * symmisc.c (_initialize_symmisc): Use upper case for
7473 metasyntactic variables.
7474 * psymtab.c (_initialize_psymtab): Use upper case for
7475 metasyntactic variables.
7476 * demangle.c (demangle_command): Use upper case for metasyntactic
7478 (_initialize_demangler): Likewise.
7479 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7482 2019-01-03 Tom Tromey <tom@tromey.com>
7484 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7486 2019-01-03 Tom Tromey <tom@tromey.com>
7488 * python/py-symtab.c (salpy_str): Update.
7489 (struct salpy_sal_object) <symtab>: Now a PyObject.
7490 (salpy_dealloc): Update.
7491 (del_objfile_sal): Use gdbpy_ref.
7493 2019-01-03 Tom Tromey <tom@tromey.com>
7495 * python/py-type.c (convert_field): Use new_reference. Return
7497 (make_fielditem): Return gdbpy_ref.
7498 (typy_fields): Update.
7499 (typy_getitem): Update.
7500 (field_name): Return gdbpy_ref. Use new_reference.
7501 (typy_iterator_iternext): Update.
7503 2019-01-03 Tom Tromey <tom@tromey.com>
7505 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7507 2019-01-03 Tom Tromey <tom@tromey.com>
7509 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7510 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7511 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7512 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7513 (pspy_set_type_printers): Likewise.
7514 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7515 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7516 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7517 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7518 (objfpy_set_type_printers): Likewise.
7520 2019-01-03 Tom Tromey <tom@tromey.com>
7522 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7523 (gdbpy_print_stack): Use gdbpy_err_fetch.
7524 * python/python-internal.h (class gdbpy_err_fetch): New class.
7525 (class gdbpy_enter) <m_error_type, m_error_value,
7526 m_error_traceback>: Remove.
7527 <m_error>: New member.
7528 (gdbpy_exception_to_string): Don't declare.
7529 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7530 * python/py-value.c (convert_value_from_python): Use
7532 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7533 gdbpy_exception_to_string.
7534 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7535 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7538 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7540 * linux-nat.c (delete_lwp_cleanup): Delete.
7541 (struct lwp_deleter): New struct.
7542 (lwp_info_up): New typedef.
7543 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7546 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7548 * linux-fork.c (class scoped_switch_fork_info): New class.
7549 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7551 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7553 * valops.c (find_overload_match): Remove use of null_cleanup, and
7554 calls to do_cleanups.
7556 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7558 * compile/compile-cplus-types.c
7559 (compile_cplus_instance::decl_name): Handle changes to
7561 * cp-support.c (cp_func_name): Update header comment, update
7563 * cp-support.h (cp_func_name): Update return type in declaration.
7564 * valops.c (find_overload_match): Move temp_func local to top
7565 level of function and change its type. Use temp_func to hold and
7566 delete temporary string obtained from cp_func_name.
7568 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7570 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7571 gdb::char_vector, remove cleanup, and update uses of `msg`.
7573 2019-01-03 Jim Wilson <jimw@sifive.com>
7575 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7577 2019-01-02 Tom Tromey <tom@tromey.com>
7579 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7580 (tdesc_parse_xml): Remove cleanups.
7581 * target-descriptions.h (make_cleanup_free_target_description):
7583 (target_desc_deleter): New struct.
7584 (target_desc_up): New typedef.
7585 * target-descriptions.c (target_desc_deleter::operator()): Rename
7586 from free_target_description.
7587 (make_cleanup_free_target_description): Remove.
7589 2019-01-02 Tom Tromey <tom@tromey.com>
7591 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7592 constructor, destructor.
7593 (linespec_parser): Remove typedef.
7594 (~linespec_parser): Rename from linespec_parser_delete.
7595 (linespec_lex_to_end, linespec_complete_label)
7596 (linespec_complete): Update.
7597 (decode_line_full): Remove cleanups.
7598 (decode_line_1): Update.
7600 2019-01-02 Tom Tromey <tom@tromey.com>
7602 * python/python-internal.h (inferior_to_inferior_object): Change
7604 * python/py-exitedevent.c (create_exited_event_object): Update.
7605 * python/py-inferior.c (inferior_to_inferior_object): Return
7607 (python_new_inferior, python_inferior_deleted)
7608 (thread_to_thread_object, delete_thread_object)
7609 (build_inferior_list, gdbpy_selected_inferior): Update.
7610 * python/py-infthread.c (create_thread_object): Update. Also fail
7611 if inferior_to_inferior_object fails.
7613 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7615 * inferior.h (class inferior) <displaced_step_state>: New field.
7616 * infrun.h (struct displaced_step_state): Move here from
7617 infrun.c. Initialize fields, add constructor.
7618 <inf>: Remove field.
7619 <reset>: New method.
7620 * infrun.c (struct displaced_step_inferior_state): Move to
7622 (displaced_step_inferior_states): Remove.
7623 (get_displaced_stepping_state): Adust.
7624 (displaced_step_in_progress_any_inferior): Adjust.
7625 (displaced_step_in_progress_thread): Adjust.
7626 (displaced_step_in_progress): Adjust.
7627 (add_displaced_stepping_state): Remove.
7628 (get_displaced_step_closure_by_addr): Adjust.
7629 (remove_displaced_stepping_state): Remove.
7630 (infrun_inferior_exit): Call displaced_step_state.reset.
7631 (use_displaced_stepping): Don't check for NULL.
7632 (displaced_step_prepare_throw): Call
7633 get_displaced_stepping_state.
7634 (displaced_step_fixup): Don't check for NULL.
7635 (prepare_for_detach): Don't check for NULL.
7637 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7639 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7640 in case of call that did not complete.
7642 2019-01-02 Andrey Utkin <autkin@undo.io>
7644 * symfile.c (find_separate_debug_file): Fix search of debug files for
7647 2019-01-02 Tom Tromey <tom@tromey.com>
7649 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7651 * python/py-frame.c (frapy_older): Remove cast.
7652 (frapy_newer): Likewise.
7653 * python/py-breakpoint.c (local_setattro): Remove cast.
7654 * python/py-arch.c (archpy_name): Remove local variable.
7655 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7657 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7659 * unittests/basic_string_view/element_access/char/empty.cc:
7660 Fix year range in copyright header.
7662 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7664 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7666 <operator==>: Update with for removed field.
7668 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7669 <isa_features>: ...this.
7670 <abi_features>: New field.
7671 (riscv_isa_flen): Update comment.
7672 (riscv_abi_xlen): New declaration.
7673 (riscv_abi_flen): New declaration.
7674 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7676 (riscv_abi_xlen): New function.
7677 (riscv_isa_flen): Update to get answer from isa_features.
7678 (riscv_abi_flen): New function.
7679 (riscv_has_fp_abi): Update to get answer from abi_features.
7680 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7682 (riscv_call_info) <xlen, flen>: Update comment.
7683 (riscv_call_arg_struct): Remove invalid assertions
7684 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7686 (riscv_gdbarch_init): Gather isa features and abi features
7687 separately, ensure both match on the gdbarch when reusing an old
7688 gdbarch. Relax an error check to allow 32-bit abi float to run on
7689 a target with 64-bit float hardware.
7691 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7693 * source.c (search_command_helper): Stop reverse search
7694 when line 1 has been searched.
7696 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7698 * record-full.c (record_full_base_target::close): Rewrite
7699 record_full_core_buf_list free logic.
7701 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7703 * break-catch-syscall.c (print_one_catch_syscall): xfree
7706 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7708 * top.c (print_gdb_version): Update Copyright year in version
7711 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7713 Update copyright year range in all GDB files.
7715 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7717 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7719 For older changes see ChangeLog-2018.
7725 version-control: never