1 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4 (annotate_source): Make static.
5 (annotate_source_line): Moved from source.c and renamed from
6 identify_source_line. Update the return type.
7 * annotate.h (annotate_source): Delete declaration.
8 (annotate_source_line): Declaration moved from source.h, and
9 renamed from identify_source_line. Return type updated.
10 * source.c (identify_source_line): Moved to annotate.c and renamed
11 to annotate_source_line.
12 (info_line_command): Remove check of annotation_level.
13 * source.h (identify_source_line): Move declaration to annotate.h
14 and rename to annotate_source_line.
15 * stack.c: Add 'annotate.h' include.
16 (print_frame_info): Remove check of annotation_level before
17 calling annotate_source_line.
19 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
21 * source-cache.c (source_cache::get_plain_source_lines): Use
22 open_source_file_with_line_charpos instead of just
23 open_source_file, remove call to find_source_lines.
24 (source_cache::get_source_lines): Likewise.
25 * source.c (find_source_lines): Make static.
26 (get_filename_and_charpos): Renamed into...
27 (open_source_file_with_line_charpos): ..this along with changes to
28 return a scoped_fd, and some other minor clean ups.
29 (identify_source_line): Use open_source_file_with_line_charpos.
30 (search_command_helper): Use open_source_file_with_line_charpos
31 instead of just open_source_file, remove call to
33 * source.h (open_source_file_with_line_charpos): Declare new
35 (find_source_lines): Delete declaration.
37 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
39 * source.c (get_filename_and_charpos): Remove fullname
41 (identify_source_line): Update call to get_filename_and_charpos.
43 2019-06-14 Tom Tromey <tromey@adacore.com>
46 * ui-style.h (skip_ansi_escape): Update comment.
47 * ui-file.h (class no_terminal_escape_file): New class.
48 * ui-file.c (no_terminal_escape_file::write)
49 (no_terminal_escape_file::puts): New methods.
50 * cli/cli-logging.c (handle_redirections): Use
51 no_terminal_escape_file.
53 2019-06-14 Tom Tromey <tromey@adacore.com>
55 * NEWS: Move convenience variable news above Python news.
57 2019-06-14 Tom Tromey <tom@tromey.com>
59 * gnulib: Move directory to top-level.
60 * configure.ac: Don't configure gnulib.
62 * common/common-defs.h: Use new path to gnulib.
63 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
65 (INCGNU): Look in new gnulib location.
66 (HFILES_NO_SRCDIR): Remove gnulib files.
67 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
68 (generated_files): Remove GNULIB_H.
69 ($(LIBGNU), all-lib): Remove targets.
70 (distclean): Don't mention GNULIB_BUILDDIR.
71 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
73 2019-06-14 Tom Tromey <tromey@adacore.com>
75 * symfile.c (add_symbol_file_command): Remove obsolete comment.
76 Warn if symbol file does not provide any symbols.
78 2019-06-14 Tom Tromey <tromey@adacore.com>
80 * source.c (find_and_open_source): Respect basenames_may_differ.
82 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
84 * annotate.c (annotate_breakpoints_invalid): Make use of
85 scoped_restore_terminal_state.
86 (annotate_frames_invalid): Likewise.
88 2019-06-14 Tom Tromey <tromey@adacore.com>
90 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
91 allow assignment to an internalvar.
93 2019-06-14 Tom Tromey <tromey@adacore.com>
95 * ada-lex.l: Allow "_" in attribute names.
97 2019-06-14 Tom Tromey <tromey@adacore.com>
100 * regcache.c (registers_changed): Don't call alloca.
101 * top.c (execute_command): Don't call alloca.
103 2019-06-13 Pedro Alves <palves@redhat.com>
105 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
106 'expression'. When parsing an expression, error out if there's
107 junk after "unlimited".
108 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
109 (do_set_command): Adjust calls to is_unlimited_literal.
111 2019-06-13 Pedro Alves <palves@redhat.com>
113 * compile/compile.c (make_compile_options_def_group): Add braces
114 around array_view initializer.
115 * thread.c (make_thread_apply_all_options_def_group)
116 (make_thread_apply_all_options_def_group): Likewise.
118 2019-06-13 Pedro Alves <palves@redhat.com>
120 * NEWS (New commands): Mention "maint test-options
121 require-delimiter", "maint test-options unknown-is-error", "maint
122 test-options unknown-is-operand" and "maint show
123 test-options-completion-result".
124 (New command options, command completion): New section.
125 (Completion improvements): New section.
126 Mention that you can abbreviate "unlimited".
128 2019-06-13 Pedro Alves <palves@redhat.com>
130 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
131 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
132 * unittests/cli-utils-selftests.c (test_parse_flags)
133 (test_parse_flags_qcs): Delete.
134 (test_cli_utils): Don't call deleted functions.
136 2019-06-13 Pedro Alves <palves@redhat.com>
138 * thread.c: Include "cli/cli-option.h".
139 (tp_array_compar_ascending): Global.
140 (tp_array_compar): Delete function.
141 (tp_array_compar_ascending, tp_array_compar_descending): New
143 (ascending_option_def, qcs_flag_option_def)
144 (thr_qcs_flags_option_defs)
145 (make_thread_apply_all_options_def_group)
146 (make_thread_apply_options_def_group): New.
147 (thread_apply_all_command): Use gdb::option::process_options.
148 (thread_apply_command_completer)
149 (thread_apply_all_command_completer): New.
150 (thread_apply_command): Use gdb::option::process_options.
151 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
152 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
153 to generate help text of "thread apply". Adjust "taas"'s help.
154 * tid-parse.c (tid_range_parser::in_thread_range): New method.
155 * tid-parse.h (tid_range_parser::in_thread_range): New method.
157 2019-06-13 Pedro Alves <palves@redhat.com>
159 * thread.c (thread_apply_command): Check for invalid TID with
160 isdigit instead of !isalpha.
162 2019-06-13 Pedro Alves <palves@redhat.com>
164 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
165 (validate_flags_qcs): New.
166 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
167 (validate_flags_qcs): Declare.
168 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
169 (make_frame_apply_options_def_group): New.
170 (frame_apply_command_count): Process options with
171 gdb::option::process_options.
172 (frame_apply_completer): New.
173 (frame_apply_level_completer, frame_apply_all_completer)
174 (frame_apply_completer): New.
175 (_initialize_stack): Update help of "frame apply", "frame apply
176 level", "frame apply all" and "faas" to mention supported options
177 and install command completers.
178 * stack.h (frame_apply_all_completer): Declare.
179 * thread.c: Include "stack.h".
180 (tfaas_command): Add "--".
181 (_initialize_thread): Update help "tfaas" to mention supported
182 options and install command completer.
184 2019-06-13 Pedro Alves <palves@redhat.com>
186 * completer.c (complete_nested_command_line): New.
187 (gdb_completion_word_break_characters_throw): Add assertion.
188 * completer.h (complete_nested_command_line): Declare.
190 2019-06-13 Pedro Alves <palves@redhat.com>
192 * stack.c (parse_backtrace_qualifiers): New.
193 (backtrace_command): Use it.
194 (backtrace_command_completer): Complete on qualifiers.
196 2019-06-13 Pedro Alves <palves@redhat.com>
198 * frame.c: Include "cli/cli-option.h.
199 (user_set_backtrace_options): New.
200 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
202 (get_prev_frame): Adjust.
203 (boolean_option_def, uinteger_option_def)
204 (set_backtrace_option_defs): New.
205 (_initialize_frame): Adjust and use
206 gdb::option::add_setshow_cmds_for_options to install "set
207 backtrace past-main" and "set backtrace past-entry".
208 * frame.h: Include "cli/cli-option.h".
209 (struct frame_print_options): Forward declare.
210 (print_frame_arguments_all, print_frame_arguments_scalars)
211 (print_frame_arguments_none): Declare.
212 (print_entry_values): Delete declaration.
213 (struct frame_print_options, user_frame_print_options): New.
214 (struct set_backtrace_options): New.
215 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
216 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
217 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
218 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
219 (list_args_or_locals): Add frame_print_options parameter.
220 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
221 * python/py-framefilter.c (enumerate_args): Pass down
222 USER_FRAME_PRINT_OPTIONS.
223 * stack.c: Include "cli/cli-option.h".
224 (print_frame_arguments_all, print_frame_arguments_scalars)
225 (print_frame_arguments_none): Declare.
226 (print_raw_frame_arguments, print_entry_values): Delete.
227 (user_frame_print_options): New.
228 (boolean_option_def, enum_option_def, frame_print_option_defs):
230 (struct backtrace_cmd_options): New.
231 (bt_flag_option_def): New.
232 (backtrace_command_option_defs): New.
233 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
234 (print_frame_arg, read_frame_arg, print_frame_args)
235 (print_frame_info, print_frame): Add frame_print_options parameter
237 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
238 (backtrace_command_1): Add frame_print_options and
239 backtrace_cmd_options parameters and use them.
240 (make_backtrace_options_def_group): New.
241 (backtrace_command): Process command options with
242 gdb::option::process_options.
243 (backtrace_command_completer): New.
244 (_initialize_stack): Extend "backtrace"'s help to mention
245 supported options. Install completer for "backtrace".
246 Install some settings commands with add_setshow_cmds_for_options.
248 2019-06-13 Pedro Alves <palves@redhat.com>
250 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
251 and that "set/show print raw frame-arguments" are now deprecated.
253 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
255 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
256 * stack.c (_initialize_stack): Install "set/show print
257 raw-frame-arguments", and deprecate "set/show print raw
259 * valprint.c (_initialize_valprint): Deprecate "set/show print
262 2019-06-13 Pedro Alves <palves@redhat.com>
264 * compile/compile.c (struct compile_options): New.
265 (compile_flag_option_def, compile_command_option_defs)
266 (make_compile_options_def_group): New.
267 (compile_file_command): Handle options with
268 gdb::option::process_options.
269 (compile_file_command_completer): New function.
270 (compile_code_command): Handle options with
271 gdb::option::process_options.
272 (compile_code_command_completer): New function.
273 (_initialize_compiler): Install completers for "compile code" and
274 "compile file". Mention available options in "compile code" and
275 "compile code"'s help.
276 * completer.c (advance_to_completion_word): New, factored out from
278 (advance_to_expression_complete_word_point): ... this.
279 (advance_to_filename_complete_word_point): New.
280 * completer.h (advance_to_filename_complete_word_point): New
283 2019-06-13 Pedro Alves <palves@redhat.com>
285 * compile/compile.c: Include "cli/cli-option.h".
286 (compile_print_value): Scope data pointer is now a
287 value_print_options pointer; adjust.
288 (compile_print_command): Process options. Scope data pointer is
289 now a value_print_options pointer; adjust.
290 (_initialize_compile): Update "compile print"'s help to include
291 supported options. Install a completer for "compile print".
292 * cp-valprint.c (show_vtblprint, show_objectprint)
293 (show_static_field_print): Delete.
294 (_initialize_cp_valprint): Don't install "set print
295 static-members", "set print vtbl", "set print object" here.
296 * printcmd.c: Include "cli/cli-option.h" and
297 "common/gdb_optional.h".
298 (print_command_parse_format): Rework to fill in a
299 value_print_options instead of a format_data.
300 (print_value): Change parameter type from format_data pointer to
301 value_print_options reference. Adjust.
302 (print_command_1): Process options. Adjust to pass down a
304 (print_command_completer): New.
305 (_initialize_printcmd): Install print_command_completer as
306 handle_brkchars completer for the "print" command. Update
307 "print"'s help to include supported options.
308 * valprint.c: Include "cli/cli-option.h".
309 (show_vtblprint, show_objectprint, show_static_field_print): Moved
310 here from cp-valprint.c.
311 (boolean_option_def, uinteger_option_def)
312 (value_print_option_defs, make_value_print_options_def_group):
313 New. Use gdb::option::add_setshow_cmds_for_options to install
314 "set print elements", "set print null-stop", "set print repeats",
315 "set print pretty", "set print union", "set print array", "set
316 print address", "set print symbol", "set print array-indexes".
317 * valprint.h: Include <string> and "cli/cli-option.h".
318 (make_value_print_options_def_group): Declare.
319 (print_value): Change parameter type from format_data pointer to
320 value_print_options reference.
321 (print_command_completer): Declare.
323 2019-06-13 Pedro Alves <palves@redhat.com>
325 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
326 (COMMON_SFILES): Add maint-test-settings.c.
327 * cli/cli-decode.c (boolean_enums): New global, factored out from
329 (add_setshow_boolean_cmd): ... here.
330 * cli/cli-decode.h (boolean_enums): Declare.
331 * cli/cli-option.c: New file.
332 * cli/cli-option.h: New file.
333 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
334 factored out from ...
335 (parse_cli_boolean_value(const char *)): ... this.
336 (is_unlimited_literal): Change parameter type to pointer to
337 pointer. Adjust and advance ARG pointer.
338 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
339 (parse_cli_var_enum): New, factored out from ...
340 (do_set_command): ... this. Adjust.
341 * cli/cli-setshow.h (parse_cli_boolean_value)
342 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
343 (parse_cli_var_enum): Declare.
344 * cli/cli-utils.c: Include "cli/cli-option.h".
346 * cli/cli-utils.h (get_ulongest): Declare.
347 (check_for_argument): New overloads.
348 * maint-test-options.c: New file.
350 2019-06-13 Pedro Alves <palves@redhat.com>
352 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
353 parse a range if "-" is at the end of the string.
355 2019-06-13 Pedro Alves <palves@redhat.com>
357 * cli/cli-setshow.c (parse_auto_binary_operation)
358 (parse_cli_boolean_value): Don't allow "o".
360 2019-06-13 Pedro Alves <palves@redhat.com>
362 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
363 * NEWS: Mention maint test-settings KIND.
364 * maint-test-settings.c: New file.
366 2019-06-13 Pedro Alves <palves@redhat.com>
368 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
370 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
373 2019-06-13 Pedro Alves <palves@redhat.com>
375 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
378 2019-06-13 Pedro Alves <palves@redhat.com>
380 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
382 2019-06-13 Pedro Alves <palves@redhat.com>
384 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
385 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
387 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
388 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
390 (check_for_argument): Skip spaces after argument.
392 2019-06-13 Pedro Alves <palves@redhat.com>
394 * thread.c (thread_apply_command): Adjust TID parsing.
395 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
396 detected before end of string.
397 (tid_is_in_list): Error out if LIST is invalid.
399 2019-06-13 Pedro Alves <palves@redhat.com>
401 * completer.c (complete_line_internal_1): Rewind completion word
403 (completion_tracker::advance_custom_word_point_by): Change
404 parameter type to int.
405 * completer.h (completion_tracker::advance_custom_word_point_by):
408 2019-06-13 Pedro Alves <palves@redhat.com>
410 * completer.c (advance_to_completion_word): Handle delimiters.
412 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
414 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
416 2019-06-11 Tom Tromey <tom@tromey.com>
418 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
419 (xmalloc_failed): Move to alloc.c.
421 * Makefile.in (COMMON_SFILES): Add alloc.c.
423 2019-06-11 Tom Tromey <tom@tromey.com>
425 * nat/linux-waitpid.c: Don't include server.h.
426 (linux_debug): Remove.
427 (my_waitpid): Update.
429 2019-06-11 Tom Tromey <tromey@adacore.com>
431 * infcall.c (_initialize_infcall): Remove trailing newline from
433 * user-regs.c (_initialize_user_regs): Remove trailing newline
435 * typeprint.c (_initialize_typeprint): Remove trailing newline
437 * reverse.c (_initialize_reverse): Remove trailing newlines from
439 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
441 * language.c (add_set_language_command): Remove trailing newline
443 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
445 * disasm.c (_initialize_disasm): Remove trailing newline from
447 * top.c (init_main): Remove trailing newline from help.
448 * interps.c (_initialize_interpreter): Remove trailing newline
450 * btrace.c (_initialize_btrace): Remove trailing newlines from
452 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
454 * python/python.c (_initialize_python): Remove trailing newline
456 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
458 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
459 from help. Reformat some text.
460 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
462 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
465 2019-06-11 Tom Tromey <tromey@adacore.com>
467 * darwin-nat.c (darwin_decode_exception_message)
468 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
470 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
472 * valops.c (value_slice): Check for not allocated or not
475 2019-06-10 Tom de Vries <tdevries@suse.de>
478 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
479 sure an empty slot (defined by a 32-bit zero pair) is recognized as
482 2019-06-10 Tom de Vries <tdevries@suse.de>
485 * linespec.c (linespec_lexer_lex_string): Remove incorrect
486 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
488 2019-06-10 Tom de Vries <tdevries@suse.de>
491 * symtab.c (struct demangled_name_entry): Add language field.
492 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
493 static minimal symbol". Set and use language field.
495 2019-06-10 Tom Tromey <tromey@adacore.com>
497 * ada-lang.c (_initialize_ada_language): Update help text.
499 2019-06-10 Tom Tromey <tromey@adacore.com>
501 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
503 * guile/guile.c (handle_boot_error): Don't end warning with a
505 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
506 warning with a newline.
507 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
509 (s12z_frame_cache): Likewise.
510 * dwarf-index-cache.c (index_cache::store): Don't end warning with
512 * solib-svr4.c (disable_probes_interface): Don't end warning with
514 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
516 * python/python.c (do_finish_initialization): Don't end warning
519 2019-06-10 Tom Tromey <tom@tromey.com>
521 * python/py-breakpoint.c (gdbpy_breakpoint_created)
522 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
525 2019-06-10 Tom Tromey <tromey@adacore.com>
527 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
529 (elf_new_init): Don't call stabsread_new_init.
530 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
531 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
532 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
534 2019-06-10 Tom de Vries <tdevries@suse.de>
538 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
540 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
542 * source.c (find_and_open_source): Also rewrite relative file
545 2019-04-26 Amos Bird <amosbird@gmail.com>
547 * annotate.c (annotate_thread_exited): Add "thread-exited"
550 2019-06-06 Tom Tromey <tromey@adacore.com>
552 * maint.h (class scoped_command_stats): Use
553 DISABLE_COPY_AND_ASSIGN.
554 <print_time>: New method.
555 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
557 (scoped_command_stats::print_time): New method.
559 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
561 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
562 instructions of lengths 6 or 8 bytes.
564 2019-06-04 Pedro Alves <palves@redhat.com>
566 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
568 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
569 * breakpoint.c (condition_completer): Likewise.
570 * cli/cli-dump.c (scan_expression): Likewise.
571 * common/filestuff.c (mkdir_recursive): Likewise.
572 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
573 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
574 (gdb_abspath): Likewise.
575 * compile/compile-cplus-types.c
576 (compile_cplus_instance::decl_name): Likewise.
577 * completer.c (complete_explicit_location):
578 (signal_completer, reg_or_group_completer_1): Likewise.
579 * cp-support.c (cp_remove_params_if_any): Likewise.
580 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
581 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
582 * infcmd.c (strip_bg_char): Likewise.
583 * linespec.c (copy_token_string): Likewise.
584 * mi/mi-main.c (output_cores): Likewise.
585 * psymtab.c (psymtab_search_name):
586 * symfile.c (test_set_ext_lang_command): Likewise.
587 * target.c (target_fileio_read_stralloc): Likewise.
588 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
589 * value.c (complete_internalvar): Likewise.
591 2019-06-04 Christian Biesinger <cbiesinger@google.com>
593 Add objfile property to gdb.Type.
594 * NEWS: Mention Python API addition.
595 * python/py-type.c (typy_get_objfile): New method.
597 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
599 * NEWS: Mention the new set|show style [title|highlight].
600 Mention changes to "show style", "help" and "apropos".
602 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
604 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
605 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
606 instead of print_help_for_command.
607 (print_doc_of_command): New function.
608 (help_list): Add 'apropos -v word' suggestion.
609 (print_help_for_command): Style the command name using title style.
610 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
611 (_initialize_cli_cmds): Describe -v in apropos_command help.
613 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
615 * cli/cli-style.h (cli_style_option): Add name in constructor,
616 add m_name class member, add constructor with intensity,
617 add name class function.
618 (cli_style_option::add_setshow_commands): Remove name argument.
619 (highlight_style, title_style): New styles.
620 * cli/cli-style.c (do_show): New function that shows a style
621 characteristic styling the style name with itself.
622 (set_style_name): New function.
623 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
624 Update all callers according to the changes in cli/cli-style.h.
625 * utils.h (fputs_highlighted): New function.
626 * utils.c (fputs_highlighted): Likewise.
628 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
630 * NEWS: Mention new pipe command and new convenience variables.
632 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
634 * cli/cli-cmds.c (pipe_command): New function.
635 (_initialize_cli_cmds): Call add_com for pipe_command.
636 Define | as an alias for pipe.
637 (exit_status_set_internal_vars): New function.
638 (shell_escape): Call exit_status_set_internal_vars.
639 cli/cli-decode.c (find_command_name_length): Recognize | as
640 a single character command.
642 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
644 * gdbcmd.h (execute_command_to_ui_file): New declaration.
645 top.c (execute_command_to_ui_file): New function, mostly a copy
646 of execute_command_to_string.
647 (execute_command_to_string): Implement by calling
648 execute_command_to_ui_file.
650 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
652 * top.h (saved_command_line): Remove declaration.
653 * top.c (previous_saved_command_line, previous_repeat_arguments):
655 (saved_command_line): Make static, define together with other
657 (dont_repeat): Clear repeat_arguments.
658 (repeat_previous, get_saved_command_line, save_command_line):
660 (gdb_init): Initialize saved_command_line
661 and previous_saved_command_line.
662 * main.c (captured_main_1): Remove saved_command_line initialization.
663 * event-top.c (handle_line_of_input): Update to use
664 the new 'repeat' related functions instead of direct access to
666 * command.h (repeat_previous, get_saved_command_line,
667 save_command_line): New declarations.
668 (dont_repeat): Add comment.
670 2019-05-30 Tom Tromey <tromey@adacore.com>
672 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
674 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
676 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
679 * completer.c (complete): Initialize variable word.
681 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
683 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
684 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
685 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
686 'body' is NULL to the outter 'if', protecting the '!is_define'
689 2019-05-29 Tom Tromey <tromey@adacore.com>
691 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
692 (dwarf_unknown): New function.
693 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
694 (dwarf_type_encoding_name): Use dwarf_unknown.
696 2019-05-29 Tom Tromey <tromey@adacore.com>
699 * cp-valprint.c (cp_print_value_fields): Call
700 cp_print_static_field inside "try".
702 2019-05-29 Tom Tromey <tromey@adacore.com>
704 * inflow.c (struct terminal_info): Add default operator=.
705 * configure: Rebuild.
706 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
707 -Wdeprecated-copy-dtor, -Wredundant-move.
709 2019-05-29 Tom Tromey <tromey@adacore.com>
712 * infcmd.c (print_return_value_1): Handle finish_print
714 (show_print_finish): New function.
715 (_initialize_infcmd): Add "set/show print finish" commands.
716 * valprint.c (user_print_options): Initialize new member.
717 * valprint.h (struct value_print_options) <finish_print>: New
720 2019-05-28 Tom Tromey <tromey@adacore.com>
722 * ada-lang.c (ada_remove_Xbn_suffix)
723 (find_old_style_renaming_symbol)
724 (parse_old_style_renaming): Remove.
725 (ada_find_renaming_symbol): Don't call
726 find_old_style_renaming_symbol.
727 (ada_is_renaming_symbol): Rename from
728 ada_find_renaming_symbol. Remove "block" parameter. Return
730 (ada_read_var_value): Update and simplify.
731 * ada-exp.y (write_var_or_type): Remove old code.
733 2019-05-28 Alan Hayward <alan.hayward@arm.com>
735 * event-top.c: Remove include comment.
736 * inflow.c (class scoped_ignore_sigttou): Move from here...
737 * inflow.h (class scoped_ignore_sigttou): ...to here.
738 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
739 * top.c: Remove include comment.
741 2019-05-27 Tom Tromey <tom@tromey.com>
745 2019-05-22 Tom Tromey <tromey@adacore.com>
747 * target.c (target_follow_exec): Constify parameter.
748 * target-delegates.c: Rebuild.
749 * remote.c (remote_target::follow_exec): Constify parameter.
750 * infrun.c (follow_exec): Constify parameter.
751 * target.h (struct target_ops) <follow_exec>: Constify parameter.
752 (target_follow_exec): Likewise.
754 2019-05-22 Alan Hayward <alan.hayward@arm.com>
756 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
757 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
759 2019-05-22 Alan Hayward <alan.hayward@arm.com>
761 * NEWS: Add debugredirect and testsuite sections.
763 2019-05-22 Simon Cook <simon.cook@embecosm.com>
765 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
766 target descriptions using exclusively floating point register name
769 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
772 * f-lang.c (build_fortran_types): Handle the case where
773 gdbarch_floatformat_for_type returns a nullptr.
775 2019-05-21 Tom de Vries <tdevries@suse.de>
778 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
780 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
783 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
785 * i386-tdep.c (i386_floatformat_for_type): Use
786 floatformats_ia64_quad for the 16-byte floating point component
787 within a fortran 32-byte complex number.
789 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
791 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
792 delete default constructor.
793 (find_partial_die): Update to return const struct.
794 (partial_die_parent_scope): Move variable declaration into scope
795 of its use and change its type to auto.
796 (guess_partial_die_structure_name): Likewise.
797 (partial_die_info::fixup): Likewise.
799 2019-05-17 Tom Tromey <tromey@adacore.com>
801 * source.c (find_and_open_source): Remove cast.
803 2019-05-17 Tom Tromey <tromey@adacore.com>
805 * annotate.c (annotate_source): Make "filename" const.
806 * annotate.h (annotate_source): Use const.
808 2019-05-17 Alan Hayward <alan.hayward@arm.com>
810 * disasm.c (set_disassembler_options): Send errors to stderr.
812 2019-05-17 Alan Hayward <alan.hayward@arm.com>
814 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
815 (cli_interp_base::set_logging): Check debug_redirect.
816 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
817 * cli/cli-logging.c (debug_redirect): Add static variable.
818 (pop_output_files): Add default param.
819 (handle_redirections): Print debug setting.
820 (show_logging_command): Likewise.
821 (_initialize_cli_logging): Add debugredirect command.
822 * interps.c (current_interp_set_logging): Add debug_redirect
824 * interps.h (set_logging): Add debug_redirect parameter.
825 (current_interp_set_logging): Likewise.
826 * mi/mi-common.h: Likewise.
827 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
829 2019-05-17 Alan Hayward <alan.hayward@arm.com>
830 Tom Tromey <tromey@adacore.com>
832 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
834 * cli/cli-interp.h (make_logging_output): Remove declaration.
835 * cli/cli-logging.c (make_logging_output): Remove function.
836 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
838 * ui-file.c (tee_file::tee_file): Remove bools.
839 (tee_file::~tee_file): Remove deletes.
840 * ui-file.h (tee_file): Remove bools.
842 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
844 * mi/mi-cmds.h (mi_cmd_complete): New function.
845 * mi/mi-main.c (mi_cmd_complete): Likewise.
846 * mi/mi-cmds.c: Define new MI command -complete.
847 * NEWS: Mention new -complete command.
849 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
851 * completer.h (complete): New function.
852 * completer.c (complete): Likewise.
853 * cli/cli-cmds.c: (complete_command): Update to use new complete()
854 function defined in completer.h.
856 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
858 * MAINTAINERS (Write After Approval): Add myself.
860 2019-05-17 Tom de Vries <tdevries@suse.de>
863 * dwarf2read.c (struct cu_partial_die_info): New struct.
864 (find_partial_die): Return cu_partial_die_info.
865 (partial_die_parent_scope, guess_partial_die_structure_name)
866 (partial_die_info::fixup): Handle new return type of find_partial_die.
868 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
870 * stap-probe.c (stap_parse_register_operand): Make "regname" an
871 "std::string", simplifying the algorithm.
873 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
875 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
876 (stap_static_probe_ops::get_probes): Likewise.
878 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
880 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
882 (stap_parse_single_operand): Join checks for
883 "gdbarch_stap_parse_special_token_p" and
884 "gdbarch_stap_parse_special_token" in the same "if" statement.
885 Invert check when verifying for operation on register
888 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
890 * stap-probe.c (stap_get_opcode): Update comment.
891 (stap_get_expected_argument_type): Likewise.
892 (handle_stap_probe): Likewise.
894 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
896 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
897 return type to 'bool'. Adjust comment. Use 'bool' when
899 (i386_stap_parse_special_token_three_arg_disp): Likewise.
900 * stap-probe.c (stap_parse_argument_1): Likewise.
901 (stap_is_operator): Likewise.
902 (stap_is_generic_prefix): Likewise.
903 (stap_is_register_prefix): Likewise.
904 (stap_is_register_indirection_prefix): Likewise.
905 (stap_is_integer_prefix): Likewise.
906 (stap_generic_check_suffix): Likewise.
907 (stap_check_integer_suffix): Likewise.
908 (stap_check_register_suffix): Likewise.
909 (stap_check_register_indirection_suffix): Likewise.
910 (stap_parse_register_operand): Likewise.
911 (stap_parse_single_operand): Likewise.
912 (stap_parse_argument_1): Likewise.
913 (stap_probe::get_argument_count): Likewise.
914 (stap_is_operator): Likewise.
916 2019-05-16 Tom Tromey <tromey@adacore.com>
918 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
921 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
923 * linux-thread-db.c (try_thread_db_load_1): Change return type
925 (try_thread_db_load): Likewise.
926 (try_thread_db_load_from_pdir_1): Likewise.
927 (try_thread_db_load_from_pdir): Likewise.
928 (try_thread_db_load_from_sdir): Likewise.
929 (try_thread_db_load_from_dir): Likewise.
930 (thread_db_load_search): Likewise.
931 (has_libpthread): Likewise.
932 (thread_db_load): Likewise.
934 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
936 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
937 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
938 NULL, and complain/return if that's the case.
940 2019-05-15 John Darrington <john@darrington.wattle.id.au>
942 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
943 (advance, posn, abstract_read_memory): New functions.
944 [struct mem_read_abstraction]: New struct.
945 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
947 2019-05-14 Tom Tromey <tromey@adacore.com>
949 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
950 value is not lval_memory.
952 2019-05-14 Tom Tromey <tromey@adacore.com>
954 * solib.c (info_sharedlibrary_command): Style the file name.
956 2019-05-14 Alan Hayward <alan.hayward@arm.com>
958 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
959 (aarch64_vnv_type): Likewise.
960 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
961 * common/tdesc.c: Likewise.
962 * common/tdesc.h (enum tdesc_type_kind): Likewise.
963 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
964 * features/aarch64-fpu.xml: Add ieee half view.
965 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
966 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
967 * gdbtypes.h (struct builtin_type): Likewise.
968 (struct objfile_type): Likewise.
970 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
972 * language.c (language_sniff_from_mangled_name): Fix "langauge"
974 * location.h (string_to_event_location): Likewise.
976 2019-05-11 Joel Brobecker <brobecker@adacore.com>
980 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
982 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
983 New variable declaration.
984 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
986 (print_one_breakpoint): Use ui_out::test_flags and new global
987 variable to compute use_fixed_output.
988 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
990 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
991 (mi_multi_location_breakpoint_output_fixed): Remove.
992 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
994 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
995 fix_multi_location_breakpoint_output flag if version >= 3.
996 * ui-out.h (enum ui_out_flag)
997 <fix_multi_location_breakpoint_output>: New enumerator.
999 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
1001 * contrib/cc-with-tweaks.sh: Validate dwz's work.
1003 2019-05-10 Tom Tromey <tromey@adacore.com>
1005 * ada-lang.c (catch_ada_completer): New function.
1006 (_initialize_ada_language): Use it.
1008 2019-05-10 Tom Tromey <tromey@adacore.com>
1010 * thread.c (print_thread_info): Make "requested_threads" const.
1011 * gdbthread.h (print_thread_info): Make "requested_threads"
1013 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
1014 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
1016 2019-05-08 Tom Tromey <tom@tromey.com>
1018 * gdbtypes.c (objfile_type_data): Change type.
1019 (objfile_type, _initialize_gdbtypes): Update.
1021 2019-05-08 Tom Tromey <tom@tromey.com>
1023 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
1024 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
1025 (_initialize_dwarf2_frame): Update.
1027 2019-05-08 Tom Tromey <tom@tromey.com>
1029 * objc-lang.c (objc_objfile_data): Change type.
1030 (find_methods): Update.
1031 (_initialize_objc_lang): Remove.
1033 2019-05-08 Tom Tromey <tom@tromey.com>
1035 * stabsread.c (rs6000_builtin_type_data): Change type.
1036 (rs6000_builtin_type, _initialize_stabsread): Update.
1038 2019-05-08 Tom Tromey <tom@tromey.com>
1040 * mips-tdep.c (mips_pdr_data): Remove.
1041 (_initialize_mips_tdep): Update.
1043 2019-05-08 Tom Tromey <tom@tromey.com>
1045 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
1046 (hppa_init_objfile_priv_data, read_unwind_info)
1047 (find_unwind_entry, _initialize_hppa_tdep): Update.
1049 2019-05-08 Tom Tromey <tom@tromey.com>
1051 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
1052 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
1054 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
1056 2019-05-08 Tom Tromey <tom@tromey.com>
1058 * mdebugread.c (basic_type_data): Change type.
1059 (basic_type, _initialize_mdebugread): Update.
1061 2019-05-08 Tom Tromey <tom@tromey.com>
1063 * common/gdb_unique_ptr.h (struct noop_deleter): New.
1065 2019-05-08 Tom Tromey <tom@tromey.com>
1067 * nto-tdep.c (nto_inferior_data_reg): Change type.
1068 (nto_inferior_data): Update.
1069 (nto_inferior_data_cleanup, nto_new_inferior_data)
1070 (_initialize_nto_tdep): Remove.
1071 * nto-tdep.h (struct nto_inferior_data): Add initializers.
1073 2019-05-08 Tom Tromey <tom@tromey.com>
1075 * ada-lang.c (struct ada_inferior_data): Add initializers.
1076 (ada_inferior_data): Change type.
1077 (ada_inferior_data_cleanup): Remove.
1078 (get_ada_inferior_data, ada_inferior_exit)
1079 (struct ada_pspace_data): Add initializers, destructor.
1080 (ada_pspace_data_handle): Change type.
1081 (get_ada_pspace_data): Update.
1082 (ada_pspace_data_cleanup): Remove.
1084 2019-05-08 Tom Tromey <tom@tromey.com>
1086 * coffread.c (struct coff_symfile_info): Add initializers.
1087 (coff_objfile_data_key): Move lower. Change type.
1088 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
1090 (coff_free_info): Remove.
1092 2019-05-08 Tom Tromey <tom@tromey.com>
1094 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
1095 (fbsd_pspace_data_handle): Move lower. Change type.
1096 (get_fbsd_pspace_data): Update.
1097 (fbsd_pspace_data_cleanup): Remove.
1098 (_initialize_fbsd_tdep): Update.
1100 2019-05-08 Tom Tromey <tom@tromey.com>
1102 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
1103 (get_ada_tasks_pspace_data): Update.
1104 (ada_tasks_pspace_data_cleanup): Remove.
1105 (_initialize_tasks): Update.
1106 (ada_tasks_inferior_data_handle): Change type.
1107 (get_ada_tasks_inferior_data): Update.
1108 (ada_tasks_inferior_data_cleanup): Remove.
1109 (struct ada_tasks_pspace_data): Add initializers.
1111 2019-05-08 Tom Tromey <tom@tromey.com>
1113 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
1114 * symfile-debug.c (debug_sym_get_probes): Change type.
1115 * stap-probe.c (handle_stap_probe):
1116 (stap_static_probe_ops::get_probes): Change type.
1117 * probe.h (class static_probe_ops) <get_probes>: Change type.
1118 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
1119 (parse_probes_in_pspace): Update.
1120 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
1122 (any_static_probe_ops::get_probes): Change type.
1123 * elfread.c (elfread_data): New typedef.
1124 (probe_key): Change type.
1125 (elf_get_probes): Likewise. Update.
1126 (probe_key_free): Remove.
1127 (_initialize_elfread): Update.
1128 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
1130 (dtrace_process_dof_probe, dtrace_process_dof)
1131 (dtrace_static_probe_ops::get_probe): Change type.
1133 2019-05-08 Tom Tromey <tom@tromey.com>
1135 * xcoffread.c (struct xcoff_symfile_info): Rename from
1136 coff_symfile_info. Add initializers.
1137 (xcoff_objfile_data_key): Move lower. Change type.
1138 (XCOFF_DATA): Rewrite.
1139 (xcoff_free_info): Remove.
1140 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
1141 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
1142 (xcoff_initial_scan): Update.
1144 2019-05-08 Tom Tromey <tom@tromey.com>
1146 * solib-svr4.c (struct svr4_info): Add initializers and
1148 <probes_table>: Now an htab_up.
1149 (solib_svr4_pspace_data): Change type.
1150 (free_probes_table): Simplify.
1151 (~svr4_info): Rename from svr4_pspace_data_cleanup.
1152 (get_svr4_info, probes_table_htab_remove_objfile_probes)
1153 (probes_table_remove_objfile_probes, register_solib_event_probe)
1154 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
1155 (_initialize_svr4_solib): Update.
1157 2019-05-08 Tom Tromey <tom@tromey.com>
1159 * remote.c (remote_pspace_data): Change type.
1160 (remote_pspace_data_cleanup): Remove.
1161 (get_remote_exec_file, set_pspace_remote_exec_file)
1162 (_initialize_remote): Update.
1164 2019-05-08 Tom Tromey <tom@tromey.com>
1166 * breakpoint.c (breakpoint_objfile_key): Change type.
1167 (get_breakpoint_objfile_data): Update.
1168 (free_breakpoint_objfile_data): Remove.
1169 (_initialize_breakpoint): Update.
1171 2019-05-08 Tom Tromey <tom@tromey.com>
1173 * linux-tdep.c (struct linux_info): Add initializers.
1174 (linux_inferior_data): Move. Change type.
1175 (invalidate_linux_cache_inf): Update.
1176 (linux_inferior_data_cleanup): Remove.
1177 (get_linux_inferior_data, _initialize_linux_tdep): Update.
1179 2019-05-08 Tom Tromey <tom@tromey.com>
1181 * auxv.c (auxv_inferior_data): Move. Change type.
1182 (auxv_inferior_data_cleanup): Remove.
1183 (invalidate_auxv_cache_inf): Rewrite.
1184 (get_auxv_inferior_data, _initialize_auxv): Update.
1186 2019-05-08 Tom Tromey <tom@tromey.com>
1188 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
1189 (symfile_debug_objfile_data_key): Change type.
1190 (symfile_debug_installed, debug_qf_has_symbols)
1191 (debug_qf_find_last_source_symtab)
1192 (debug_qf_forget_cached_source_info)
1193 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
1194 (debug_qf_print_stats, debug_qf_dump)
1195 (debug_qf_expand_symtabs_for_function)
1196 (debug_qf_expand_all_symtabs)
1197 (debug_qf_expand_symtabs_with_fullname)
1198 (debug_qf_map_matching_symbols)
1199 (debug_qf_expand_symtabs_matching)
1200 (debug_qf_find_pc_sect_compunit_symtab)
1201 (debug_qf_map_symbol_filenames)
1202 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
1203 (debug_sym_new_init, debug_sym_init, debug_sym_read)
1204 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
1205 (debug_sym_read_linetable, debug_sym_relocate): Update.
1206 (symfile_debug_free_objfile): Remove.
1207 (install_symfile_debug_logging, _initialize_symfile_debug):
1210 2019-05-08 Tom Tromey <tom@tromey.com>
1212 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
1213 allocate_on_obstack.
1214 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
1215 (get_dwarf2_per_objfile): Update.
1216 (set_dwarf2_per_objfile): Remove.
1217 (dwarf2_has_info, dwarf2_get_section_info): Update.
1218 (dwarf2_free_objfile): Remove.
1219 (_initialize_dwarf2_read): Update.
1221 2019-05-08 Tom Tromey <tom@tromey.com>
1223 * auto-load.c (struct auto_load_pspace_info): Add destructor and
1225 <unsupported_script_warning_printed,
1226 script_not_found_warning_printed>: Now bool.
1227 (auto_load_pspace_data): Change type.
1228 (~auto_load_pspace_info): Rename from
1229 auto_load_pspace_data_cleanup.
1230 (get_auto_load_pspace_data, init_loaded_scripts_info)
1231 (clear_section_scripts, maybe_print_unsupported_script_warning)
1232 (maybe_print_script_not_found_warning, _initialize_auto_load):
1235 2019-05-08 Tom Tromey <tom@tromey.com>
1237 * objfiles.c (objfile_pspace_info): Add destructor and
1239 (objfiles_pspace_data): Change type.
1240 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
1241 (get_objfile_pspace_data): Update.
1242 (objfiles_bfd_data): Change type.
1243 (get_objfile_bfd_data): Update.
1244 (objfile_bfd_data_free, _initialize_objfiles): Remove.
1246 2019-05-08 Tom Tromey <tom@tromey.com>
1248 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
1250 (get_catch_syscall_inferior_data): Update.
1251 (catch_syscall_inferior_data_cleanup): Remove.
1252 (_initialize_break_catch_syscall): Update.
1254 2019-05-08 Tom Tromey <tom@tromey.com>
1256 * inflow.c (struct terminal_info): Add destructor and
1258 (inflow_inferior_data): Change type.
1259 (~terminal_info): Rename from inflow_inferior_data_cleanup.
1260 (get_inflow_inferior_data, inflow_inferior_exit)
1261 (swap_terminal_info, _initialize_inflow): Update.
1263 2019-05-08 Tom Tromey <tom@tromey.com>
1265 * target-dcache.c (target_dcache_cleanup): Remove.
1266 (target_dcache_aspace_key): Change type.
1267 (target_dcache_init_p, target_dcache_invalidate)
1268 (target_dcache_get, target_dcache_get_or_init)
1269 (_initialize_target_dcache): Update.
1270 * dcache.h (struct dcache_deleter): New.
1272 2019-05-08 Tom Tromey <tom@tromey.com>
1274 * symtab.c (struct symbol_cache): Add destructor and
1276 (symbol_cache_key): Move. Change type.
1277 (make_symbol_cache, free_symbol_cache): Remove.
1278 (get_symbol_cache): Update.
1279 (symbol_cache_cleanup): Remove.
1280 (ALL_PSPACES, symbol_cache_flush)
1281 (maintenance_print_symbol_cache)
1282 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
1285 2019-05-08 Tom Tromey <tom@tromey.com>
1287 * symtab.c (struct main_info): Add destructor and initializers.
1288 (main_progspace_key): Move. Change type.
1289 (get_main_info): Update.
1290 (main_info_cleanup): Remove.
1291 (_initialize_symtab): Update.
1293 2019-05-08 Tom Tromey <tom@tromey.com>
1295 * registry.h (DECLARE_REGISTRY): Define the _key class.
1297 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1299 * NEWS: Merge two 'New commands' sections.
1301 2019-05-08 Joel Brobecker <brobecker@adacore.com>
1303 * ada-valprint.c (ada_val_print_gnat_array): Remove language
1304 parameter and use Ada language definition instead.
1305 (ada_val_print_ptr): Remove unused language parameter.
1306 (ada_val_print_num): Remove language parameter and use Ada language
1308 (ada_val_print_enum, ada_val_print_flt): Remove unused language
1310 (ada_val_print_struct_union, ada_val_print_ref): Remove language
1311 parameter and use Ada language definition instead.
1312 (ada_val_print_1): Update all ada_val_print_xxx calls.
1313 Remove language parameter.
1314 (ada_val_print): Update ada_val_print_1 call.
1316 2019-05-08 Tom Tromey <tromey@adacore.com>
1318 * remote.c (remote_hw_watchpoint_limit)
1319 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
1322 2019-05-08 Tom Tromey <tromey@adacore.com>
1324 * maint.c (_initialize_maint_cmds): Move initialization code to
1326 (watchdog, show_watchdog): Move to remote.c.
1327 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
1329 (_initialize_remote): Move initialization code from maint.c.
1330 * defs.h (watchdog): Don't declare.
1332 2019-05-08 Tom Tromey <tromey@adacore.com>
1334 * tui/tui-interp.c: Include main.h.
1335 * interps.c: Include main.h.
1336 * main.h (interpreter_p): Declare.
1337 * defs.h (interpreter_p): Don't declare.
1339 2019-05-08 Tom Tromey <tromey@adacore.com>
1341 * dwarf2loc.c: Include dwarf2read.h.
1342 * defs.h (read_unsigned_leb128): Don't declare.
1343 * dwarf2read.h (read_unsigned_leb128): Declare.
1345 2019-05-08 Tom Tromey <tromey@adacore.com>
1347 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
1350 2019-05-08 Tom Tromey <tromey@adacore.com>
1352 * utils.c (fputs_maybe_filtered): Reset style after paging, even
1353 when no wrap column is set.
1355 2019-05-08 Tom Tromey <tromey@adacore.com>
1357 * c-lang.c (c_get_string): Handle non-C-style arrays.
1359 2019-05-08 Tom Tromey <tromey@adacore.com>
1361 * typeprint.c (print_offset_data::update): Print the bit offset,
1362 not the number of bits remaining.
1364 2019-05-08 Tom Tromey <tromey@adacore.com>
1366 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
1367 padding at end of comment.
1369 2019-05-08 Tom Tromey <tromey@adacore.com>
1371 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
1374 2019-05-06 Tom Tromey <tom@tromey.com>
1376 * common/scoped_mmap.c: Include common-defs.h.
1377 * common/scoped_mmap.h: Don't include config.h.
1379 2019-05-04 Tom Tromey <tom@tromey.com>
1381 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
1382 (struct aarch64_call_info): Add initializers.
1383 <si>: Now a std::vector.
1384 (pass_on_stack, aarch64_push_dummy_call): Update.
1386 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
1387 Tom Tromey <tom@tromey.com>
1389 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
1390 (ppc_threads): Now a std::vector. Now static.
1391 (hwdebug_find_thread_points_by_tid)
1392 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
1395 2019-05-04 Tom Tromey <tom@tromey.com>
1397 * arc-tdep.c (arc_tdesc_init): Return bool.
1399 2019-05-04 Tom Tromey <tom@tromey.com>
1401 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1402 Use gdb_assert_not_reached.
1404 2019-05-04 Tom Tromey <tom@tromey.com>
1406 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1409 2019-05-04 Tom Tromey <tom@tromey.com>
1411 * arc-tdep.c (arc_tdesc_init): Use bool.
1413 2019-05-04 Tom Tromey <tom@tromey.com>
1415 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1417 2019-05-04 Tom Tromey <tom@tromey.com>
1419 * cli/cli-cmds.c (valid_command_p): Return bool.
1421 2019-05-04 Tom Tromey <tom@tromey.com>
1423 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1424 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1426 2019-05-04 Raul Tambre <raul@tambre.ee>
1428 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1429 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1430 operator for comparison.
1432 2019-05-04 Tom Tromey <tom@tromey.com>
1434 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1435 (lookup_partial_symbol, print_partial_symbols)
1436 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1437 (psymbol_compare): Update.
1438 (add_psymbol_to_bcache): Clear the entire psymbol.
1439 (maintenance_check_psymtabs): Update.
1440 * psympriv.h (struct partial_symbol): Don't derive from
1441 general_symbol_info.
1442 <obj_section, unrelocated_address, address,
1443 set_unrelocated_address>: Update.
1444 <ginfo>: New member.
1445 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1446 (debug_names::write_psymbols): Update.
1448 2019-05-04 Tom de Vries <tdevries@suse.de>
1450 * contrib/cc-with-tweaks.sh: Support -n arg.
1452 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1454 * corelow.c (core_target::detach): Ensure frame cache and
1455 register caches are cleared.
1456 inferior.c (exit_inferior_1): Likewise.
1458 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1459 Tom Tromey <tom@tromey.com>
1461 * dictionary.c (collate_pending_symbols_by_language): Remove
1462 "struct" from foreach.
1463 * symtab.c (lookup_global_symbol_from_objfile)
1464 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1466 * ser-tcp.c (net_open): Remove "struct" from foreach.
1467 * objfiles.c (objfile_relocate, objfile_rebase)
1468 (objfile_has_symbols): Remove "struct" from foreach.
1469 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1471 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1473 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1474 "struct" from foreach.
1475 * ada-lang.c (create_excep_cond_exprs)
1476 (ada_exception_catchpoint_cond_string): Remove "struct" from
1479 2019-05-03 Tom Tromey <tromey@adacore.com>
1481 * ada-exp.y (convert_char_literal): Check suffix of each
1484 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1487 * ada-exp.y (yywrap): Don't define.
1488 * ada-lex.l (%option): Add noyywrap
1491 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1493 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1494 _WIN32_WINNT to the XP level, unless already defined to a higher
1497 * unittests/parse-connection-spec-selftests.c:
1499 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1502 * symfile.c (find_separate_debug_file): Remove colon from the
1503 drive spec of DOS/Windows file names of the target, so that the
1504 file name produced from DEBUGDIR and the target's directory will
1505 be valid on DOS/Windows systems.
1507 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1509 * rust-lang.c (val_print_struct): Handle printing structures
1512 2019-05-02 Tom Tromey <tromey@adacore.com>
1514 * valarith.c (_initialize_valarith): Remove.
1516 2019-05-01 Tom Tromey <tromey@adacore.com>
1518 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1521 2019-05-01 Tom Tromey <tromey@adacore.com>
1523 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1524 for big-endian copies.
1526 2019-04-30 Ali Tamur <tamur@google.com>
1527 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1528 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1529 (read_3_bytes): New function.
1531 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1533 * windows-nat.c (main_thread_id): Delete.
1534 (handle_output_debug_string): Replace main_thread_id by
1535 current_event.dwThreadId.
1536 (fake_create_process): Likewise.
1537 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1538 Do not set main_thread_id.
1539 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1540 current_event.dwThreadId.
1541 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1543 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1545 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1546 Use current_event.dwThreadId instead of main_thread_id.
1548 2019-04-30 Tom Tromey <tromey@adacore.com>
1550 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1551 (create_excep_cond_exprs): Iterate over program spaces.
1552 (ada_exception_catchpoint_cond_string): Examine all minimal
1553 symbols for exception types.
1555 2019-04-30 Tom Tromey <tromey@adacore.com>
1558 * dwarf2read.c (process_structure_scope): Handle case where type
1559 has template parameters but no symbol was created.
1561 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1562 Chris January <chris.january@arm.com>
1564 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1566 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1568 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1570 * f-typeprint.c (f_print_type): Update rules for printing
1572 (f_type_print_varspec_suffix): Likewise.
1574 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1575 Chris January <chris.january@arm.com>
1577 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1580 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1582 * f-lang.c (build_fortran_types): Change name of void type to
1584 * f-typeprint.c (f_type_print_base): Print the name of the void
1585 type, rather than a fixed string.
1586 * f-valprint.c (f_decorations): Use lower case void string.
1588 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1589 Chris January <chris.january@arm.com>
1591 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1594 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1595 Chris January <chris.january@arm.com>
1596 David Lecomber <david.lecomber@arm.com>
1598 * f-exp.y (BINOP_INTRINSIC): New token.
1599 (exp): New parser rule handling BINOP_INTRINSIC.
1600 (f77_keywords): Add new builtin procedures.
1601 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1602 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1603 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1604 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1605 (print_unop_subexp_f): New function.
1606 (print_binop_subexp_f): New function.
1607 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1608 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1609 (dump_subexp_body_f): Likewise.
1610 (operator_check_f): Likewise.
1611 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1612 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1614 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1616 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1618 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1619 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1620 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1621 (operator_length_f): New fuction.
1622 (print_subexp_f): New function.
1623 (op_name_f): New function.
1624 (dump_subexp_body_f): New function.
1625 (operator_check_f): New function.
1626 (exp_descriptor_f): Replace standard expression handling functions
1628 * gdb/fortran-operator.def: New file.
1629 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1630 * gdb/std-operator.def: Remove UNOP_KIND.
1632 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1634 * std-operator.def: Remove unbalanced, stray double quote
1637 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1638 Chris January <chris.january@arm.com>
1639 Daniel Everett <daniel.everett@arm.com>
1640 Nick Forrington <nick.forrington@arm.com>
1641 Richard Bunt <richard.bunt@arm.com>
1643 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1644 of depth when printing anonymous structs or unions.
1645 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1646 Don't print either the top-level value, or the children if the
1647 max-depth is exceeded.
1648 (ppscm_print_children): When printing the key of a map, allow one
1649 extra level of depth.
1650 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1651 print either the top-level value, or the children if the max-depth
1653 (print_children): When printing the key of a map, allow one extra
1655 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1656 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1657 (user_print_options): Initialise max_depth field.
1658 (val_print_scalar_or_string_type_p): New function.
1659 (val_print): Check to see if the max depth has been reached.
1660 (val_print_check_max_depth): Define new function.
1661 (show_print_max_depth): New function.
1662 (_initialize_valprint): Add 'print max-depth' option.
1663 * valprint.h (struct value_print_options) <max_depth>: New field.
1664 (val_print_check_max_depth): Declare new function.
1665 * NEWS: Document new feature.
1667 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1669 * ada-lang.c (ada_language_defn): Initialise new field.
1670 * c-lang.c (c_is_string_type_p): New function.
1671 (c_language_defn): Initialise new field.
1672 (cplus_language_defn): Initialise new field.
1673 (asm_language_defn): Initialise new field.
1674 (minimal_language_defn): Initialise new field.
1675 * c-lang.h (c_is_string_type_p): Declare new function.
1676 * d-lang.c (d_language_defn): Initialise new field.
1677 * f-lang.c (f_is_string_type_p): New function.
1678 (f_language_defn): Initialise new field.
1679 * go-lang.c (go_is_string_type_p): New function.
1680 (go_language_defn): Initialise new field.
1681 * language.c (default_is_string_type_p): New function.
1682 (unknown_language_defn): Initialise new field.
1683 (auto_language_defn): Initialise new field.
1684 * language.h (struct language_defn) <la_is_string_type_p>: New
1686 (default_is_string_type_p): Declare new function.
1687 * m2-lang.c (m2_language_defn): Initialise new field.
1688 * objc-lang.c (objc_language_defn): Initialise new field.
1689 * opencl-lang.c (opencl_language_defn): Initialise new field.
1690 * p-lang.c (pascal_is_string_type_p): New function.
1691 (pascal_language_defn): Initialise new field.
1692 * rust-lang.c (rust_is_string_type_p): New function.
1693 (rust_language_defn): Initialise new field.
1695 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1697 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1699 * ada-lang.c (ada_language_defn): Initialise new field.
1700 * c-lang.c (c_language_defn): Likewise.
1701 (cplus_language_defn): Likewise.
1702 (asm_language_defn): Likewise.
1703 (minimal_language_defn): Likewise.
1704 * d-lang.c (d_language_defn): Likewise.
1705 * f-lang.c (f_language_defn): Likewise.
1706 * go-lang.c (go_language_defn): Likewise.
1707 * language.c (unknown_language_defn): Likewise.
1708 (auto_language_defn): Likewise.
1709 * m2-lang.c (m2_language_defn): Likewise.
1710 * objc-lang.c (objc_language_defn): Likewise.
1711 * opencl-lang.c (opencl_language_defn): Likewise.
1712 * p-lang.c (pascal_language_defn): Likewise.
1713 * rust-lang.c (rust_language_defn): Likewise.
1715 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1717 * ada-lang.c (ada_is_character_type): Change return type to bool.
1718 (ada_is_string_type): Likewise.
1719 * ada-lang.h (ada_is_character_type): Update declaration
1720 (ada_is_string_type): Likewise.
1722 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1724 Support style in 'frame|thread apply'
1726 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1727 * record.c (record_start, record_stop): Update callers of
1728 execute_command_to_string with false.
1729 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1730 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1732 (class string_file): New constructor with term_out parameter.
1733 Override methods term_out and can_emit_style_escape. New member
1735 (class stdio_file): Override can_emit_style_escape.
1736 (class tee_file): Override term_out and can_emit_style_escape.
1737 * utils.h (can_emit_style_escape): Remove.
1738 * utils.c (can_emit_style_escape): Likewise.
1739 Update all callers of can_emit_style_escape (SOMESTREAM) to
1740 SOMESTREAM->can_emit_style_escape.
1741 * source-cache.c (source_cache::get_source_lines): Likewise.
1742 * stack.c (frame_apply_command_count): Call execute_command_to_string
1743 passing the term_out characteristic of the current gdb_stdout.
1744 * thread.c (thr_try_catch_cmd): Likewise.
1745 * top.c (execute_command_to_string): pass term_out parameter
1746 to construct the string_file for the command output.
1747 * ui-file.c (term_cli_styling): New function (most code moved
1748 from utils.c can_emit_style_escape).
1749 (string_file::string_file, string_file::can_emit_style_escape,
1750 stdio_file::can_emit_style_escape, tee_file::term_out,
1751 tee_file::can_emit_style_escape): New functions.
1753 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1755 * NEWS: Mention the new set|show may-call-functions.
1756 * infcall.c (may_call_functions_p): New variable.
1757 (show_may_call_functions_p): New function.
1758 (call_function_by_hand_dummy): Throws an error if not
1760 (_initialize_infcall): Call add_setshow_boolean_cmd for
1763 2019-04-25 Keith Seitz <keiths@redhat.com>
1766 * cp-support.c (inspect_type): Don't attempt substitutions
1767 of symbol with the same name.
1769 2019-04-25 Tom Tromey <tromey@adacore.com>
1772 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1775 2019-04-25 Tom Tromey <tromey@adacore.com>
1777 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1779 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1780 (gdb_xml_parser::parse): Use std::move.
1781 * python/python-internal.h (gdbpy_convert_exception): Take a const
1783 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1785 * python/py-utils.c (gdbpy_convert_exception): Take a const
1787 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1789 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1791 * mi/mi-main.c (mi_print_exception): Take a const reference.
1792 * main.c (handle_command_errors): Take a const reference.
1793 * linespec.c (parse_linespec): Use std::move.
1794 * infcall.c (run_inferior_call): Use std::move.
1795 (call_function_by_hand_dummy): Use std::move.
1796 * exec.c (try_open_exec_file): Use std::move.
1797 * exceptions.h (exception_print, exception_fprintf)
1798 (exception_print_same): Update.
1799 * exceptions.c (print_exception, exception_print)
1800 (exception_fprintf, exception_print_same): Change parameters to
1802 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1803 * common/new-op.c: Use std::move.
1804 * common/common-exceptions.h (struct gdb_exception): Add move
1806 (struct gdb_exception_error, struct gdb_exception_quit, struct
1807 gdb_quit_bad_alloc): Change constructor to move constructor.
1808 (throw_exception): Change parameter to rvalue reference.
1809 * common/common-exceptions.c (throw_exception): Take rvalue
1811 * cli/cli-interp.c (safe_execute_command): Use std::move.
1812 * breakpoint.c (insert_bp_location, location_to_sals): Use
1815 2019-04-25 Tom Tromey <tromey@adacore.com>
1817 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1818 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1819 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1820 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1821 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1822 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1823 guile/scm-value.c: Use unpack.
1824 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1825 gdbscm_gdb_exception.
1826 (gdbscm_throw_gdb_exception): Likewise.
1827 (struct gdbscm_gdb_exception): New.
1828 (unpack): New function.
1829 (gdbscm_wrap): Use unpack.
1831 2019-04-25 Tom Tromey <tromey@adacore.com>
1833 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1834 (gdb_rl_callback_handler): Use std::move.
1835 * common/common-exceptions.h (struct gdb_exception): Add move
1836 assignment operator.
1837 (throw_exception_sjlj): Change "exception" to const reference.
1838 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1839 (throw_exception_sjlj): Change "exception" to const reference.
1841 2019-04-25 Tom Tromey <tromey@adacore.com>
1843 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1844 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1845 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1847 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1849 * mi/mi-interp.c (mi_interp::exec): Update.
1850 * linespec.c (parse_linespec): Update.
1851 * infcall.c (run_inferior_call): Update.
1852 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1853 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1854 (gdbscm_lookup_global_symbol): Update.
1855 * guile/scm-param.c (gdbscm_parameter_value): Update.
1856 * guile/scm-frame.c (gdbscm_frame_read_register)
1857 (gdbscm_frame_read_var): Update.
1858 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1859 * exec.c (try_open_exec_file): Update.
1860 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1861 (gdb_rl_callback_handler): Update.
1862 * common/common-exceptions.h (exception_none): Don't declare.
1863 * common/common-exceptions.c (exception_none): Don't define.
1864 (struct catcher) <exception>: Update.
1865 * cli/cli-interp.c (safe_execute_command): Update.
1866 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1868 2019-04-25 Ali Tamur <tamur@google.com>
1870 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1871 (read_attribute_value): Likewise.
1872 (dwarf2_read_addr_index): Update comment.
1873 (read_str_index): Add DW_FORM_strx.
1874 (dwarf2_string_attr): Likewise.
1875 (dwarf2_const_value_attr): Likewise.
1876 (dump_die_shallow): Likewise.
1877 (dwarf2_fetch_constant_bytes): Likewise.
1878 (skip_form_bytes): Likewise.
1879 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1881 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1885 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1886 OFFSET. Verify if current mapping contains an ELF header.
1887 (linux_find_memory_regions_full): Adjust call to
1890 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1891 Kang Li <kanglictf@gmail.com>
1895 * dwarf2-frame.c (read_initial_length): Be consistent about using
1896 unsigned representation of length.
1897 (decode_frame_entry_1): Likewise. Check for wraparound of
1898 end pointer as well as buffer overflow.
1900 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1902 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1905 2019-04-24 Tom Tromey <tromey@adacore.com>
1907 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1909 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1911 * s12z-tdep.c (s12z_unwind_pc): Delete.
1912 (s12z_unwind_sp): Delete.
1913 (s12z_gdbarch_init): Don't register deleted functions with
1916 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1918 * rl78-tdep.c (rl78_unwind_sp): Delete.
1919 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1921 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1923 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1924 (xstormy16_unwind_pc): Delete.
1925 (xstormy16_dummy_id): Delete.
1926 (xstormy16_gdbarch_init): Don't register deleted functions with
1929 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1931 * vax-tdep.c (vax_unwind_pc): Delete.
1932 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1934 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1936 * v850-tdep.c (v850_unwind_sp): Delete.
1937 (v850_unwind_pc): Delete.
1938 (v850_dummy_id): Delete.
1939 (v850_gdbarch_init): Don't register deleted functions with
1942 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1944 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1945 (tilegx_unwind_pc): Delete.
1946 (tilegx_unwind_dummy_id): Delete.
1947 (tilegx_gdbarch_init): Don't register deleted functions with
1950 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1952 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1953 (tic6x_dummy_id): Delete.
1954 (tic6x_gdbarch_init): Don't register deleted functions with
1957 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1959 * sparc-tdep.c (sparc_unwind_pc): Delete.
1960 (sparc32_gdbarch_init): Don't register deleted function with
1963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1965 * sh-tdep.c (sh_unwind_sp): Delete.
1966 (sh_unwind_pc): Delete.
1967 (sh_dummy_id): Delete.
1968 (sh_gdbarch_init): Don't register deleted functions with
1971 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1973 * score-tdep.c (score_unwind_sp): Delete.
1974 (score_unwind_pc): Delete.
1975 (score_dummy_id): Delete.
1976 (score_gdbarch_init): Don't register deleted functions with
1979 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1981 * rx-tdep.c (rx_unwind_pc): Delete.
1982 (rx_unwind_sp): Delete.
1983 (rx_dummy_id): Delete.
1984 (rx_gdbarch_init): Don't register deleted functions with
1985 gdbarch. Update comment.
1987 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1989 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1990 (rs6000_dummy_id): Delete.
1991 (rs6000_gdbarch_init): Don't register deleted functions with
1994 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1996 * or1k-tdep.c (or1k_dummy_id): Delete.
1997 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1999 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2001 * nios2-tdep.c (nios2_dummy_id): Delete.
2002 (nios2_unwind_sp): Delete.
2003 (nios2_gdbarch_init): Don't register deleted functions with
2006 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2008 * nds32-tdep.c (nds32_dummy_id): Delete.
2009 (nds32_unwind_pc): Delete.
2010 (nds32_unwind_sp): Delete.
2011 (nds32_gdbarch_init): Don't register deleted functions with
2014 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2016 * msp430-tdep.c (msp430_unwind_pc): Delete.
2017 (msp430_unwind_sp): Delete.
2018 (msp430_dummy_id): Delete.
2019 (msp430_gdbarch_init): Don't register deleted functions with
2022 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2024 * moxie-tdep.c (moxie_unwind_sp): Delete.
2025 (moxie_unwind_pc): Delete.
2026 (moxie_dummy_id): Delete.
2027 (moxie_gdbarch_init): Don't register deleted functions with
2030 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2032 * mn10300-tdep.c (mn10300_dummy_id): Delete.
2033 (mn10300_unwind_pc): Delete.
2034 (mn10300_unwind_sp): Delete.
2035 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
2037 (mn10300_frame_unwind_init): Don't register deleted functions with
2040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2042 * mep-tdep.c (mep_unwind_pc): Delete.
2043 (mep_unwind_sp): Delete.
2044 (mep_dummy_id): Delete.
2045 (mep_gdbarch_init): Don't register deleted functions with
2048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2050 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
2051 (m68hc11_unwind_sp): Delete.
2052 (m68hc11_gdbarch_init): Don't register deleted functions with
2055 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2057 * m32r-tdep.c (m32r_unwind_sp): Delete.
2058 (m32r_unwind_pc): Delete.
2059 (m32r_dummy_id): Delete.
2060 (m32r_gdbarch_init): Don't register deleted functions with
2063 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2065 * m32c-tdep.c (m32c_unwind_pc): Delete.
2066 (m32c_unwind_sp): Delete.
2067 (m32c_dummy_id): Delete.
2068 (m32c_gdbarch_init): Don't register deleted functions with
2071 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2073 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
2074 (lm32_unwind_pc): Delete.
2075 (lm32_dummy_id): Delete.
2076 (lm32_gdbarch_init): Don't register deleted functions with
2079 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2081 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
2082 (iq2000_unwind_pc): Delete.
2083 (iq2000_dummy_id): Delete.
2084 (iq2000_gdbarch_init): Don't register deleted functions with
2087 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2089 * nds32-tdep.c (nds32_type_align): Delete.
2090 (nds32_push_dummy_call): Use type_align instead.
2092 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2094 * arm-tdep.c (arm_type_align): Only handle vector override case.
2095 (arm_push_dummy_call): Use type_align.
2096 (arm_gdbarch_init): Register arm_type_align gdbarch function.
2098 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2100 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
2102 (pass_on_stack): Use type_align.
2103 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
2106 2019-04-23 Tom Tromey <tromey@adacore.com>
2108 * dwarf2read.c (line_header::file_name_at): Remove unused
2111 2019-04-23 Tom de Vries <tdevries@suse.de>
2114 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
2118 2019-03-27 Ali Tamur <tamur@google.com>
2120 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
2121 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
2122 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
2123 (dwarf_expr_context::get_addr_index): Likewise
2124 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
2125 (symbol_needs_eval_context::get_addr_index): Likewise
2126 (disassemble_dwarf_expression): Add DW_OP_addrx
2127 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
2128 (read_cutu_die_from_dwo): Update comment
2129 (skip_one_die): Add DW_FORM_addrx
2130 (read_attribute_value): Likewise
2131 (var_decode_location): Add DW_OP_addrx
2132 (dwarf2_const_value_attr): Add DW_FORM_addrx
2133 (dump_die_shallow): Likewise
2134 (dwarf2_fetch_constant_bytes): Likewise
2135 (decode_locdesc): Add DW_OP_addrx
2136 (skip_form_bytes): Add DW_FORM_addrx
2138 2019-04-22 Ali Tamur <tamur@google.com>
2140 * MAINTAINERS (Write After Approval): Add self.
2142 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
2144 * solib-svr4.c (get_svr4_info): Add pspace parameter.
2145 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
2146 (open_symbol_file_object): Likewise.
2147 (svr4_default_sos): Add info parameter.
2148 (svr4_read_so_list): Likewise.
2149 (svr4_current_sos_direct): Adjust functions calls to pass down
2151 (svr4_current_sos_1): Add info parameter.
2152 (svr4_current_sos): Call get_svr4_info, pass info down to
2154 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
2156 (svr4_in_dynsym_resolve_code): Pass current_program_space to
2158 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
2160 (probes_table_remove_objfile_probes): Likewise.
2161 (register_solib_event_probe): Add info parameter.
2162 (solist_update_incremental): Pass info parameter down to
2164 (disable_probes_interface): Add info parameter.
2165 (svr4_handle_solib_event): Pass current_program_space to
2166 get_svr4_info. Adjust disable_probes_interface cleanup.
2167 (svr4_create_probe_breakpoints): Add info parameter, pass it
2168 down to register_solib_event_probe.
2169 (svr4_create_solib_event_breakpoints): Add info parameter,
2170 pass it down to svr4_create_probe_breakpoints.
2171 (enable_break): Pass info down to
2172 svr4_create_solib_event_breakpoints.
2173 (svr4_solib_create_inferior_hook): Pass current_program_space to
2175 (svr4_clear_solib): Likewise.
2177 2019-04-22 Pedro Alves <palves@redhat.com>
2179 * solib-svr4.c (svr4_free_objfile_observer): New.
2180 (probe_and_action::objfile): New field.
2181 (probes_table_htab_remove_objfile_probes)
2182 (probes_table_remove_objfile_probes): New functions.
2183 (register_solib_event_probe): Add 'objfile' parameter. Store it
2184 in the new probe_and_action. Don't store the probe in 'lookup'.
2185 (svr4_create_probe_breakpoints): Pass objfile to
2186 register_solib_event_probe.
2187 (_initialize_svr4_solib): Register a free_objfile observer.
2189 2019-04-19 Tom Tromey <tom@tromey.com>
2191 * common/queue.h: Remove.
2193 2019-04-19 Tom Tromey <tom@tromey.com>
2195 * event-loop.c: Don't include "common/queue.h".
2197 2019-04-19 Tom Tromey <tom@tromey.com>
2199 * remote.c (remote_target): Use delete.
2200 * remote-notif.h: Include <list>, not "common/queue.h".
2201 (notif_client_p): Remove typedef.
2202 (remote_notif_state): Add constructor, destructor, initializer.
2203 <notif_queue>: Now a std::list.
2204 (remote_notif_state_xfree): Don't declare.
2205 * remote-notif.c (remote_notif_process, handle_notification)
2206 (remote_notif_state_allocate): Update.
2207 (~remote_notif_state): Rename from remote_notif_state_xfree.
2209 2019-04-19 Tom Tromey <tom@tromey.com>
2211 * symfile.c (reread_symbols): Update.
2212 * objfiles.c (objfile_register_static_link)
2213 (objfile_lookup_static_link): Update
2214 (~objfile) Don't delete static_links.
2215 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
2217 2019-04-19 Tom Tromey <tom@tromey.com>
2219 * type-stack.h (struct type_stack) <insert>: Constify string.
2220 * type-stack.c (type_stack::insert): Constify string.
2221 * gdbtypes.h (lookup_template_type): Update.
2222 (address_space_name_to_int): Update.
2223 * gdbtypes.c (address_space_name_to_int): Make space_identifier
2225 (lookup_template_type): Make name const.
2226 * c-exp.y: Update rules.
2227 (lex_one_token, classify_name, classify_inner_name)
2228 (c_print_token): Update.
2229 * p-exp.y: Update rules.
2231 * f-exp.y: Update rules.
2233 * d-exp.y: Update rules.
2234 (lex_one_token, classify_name, classify_inner_name): Update.
2235 * parse.c (write_dollar_variable, copy_name): Return std::string.
2236 * parser-defs.h (copy_name): Change return type.
2237 * m2-exp.y: Update rules.
2239 * go-exp.y (lex_one_token): Update.
2241 (classify_unsafe_function, classify_packaged_name)
2242 (classify_name, yylex): Update.
2244 2019-04-19 Sergei Trofimovich <siarheit@google.com>
2246 * configure.ac: add --enable-source-highlight switch.
2247 * configure: Regenerate.
2248 * top.c (print_gdb_version): plumb --enable-source-highlight
2249 status to "show configuration".
2251 2019-04-19 Tom Tromey <tromey@adacore.com>
2253 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
2255 (empty_record, ada_template_to_fixed_record_type_1)
2256 (template_to_static_fixed_type)
2257 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
2258 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
2259 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
2262 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2265 * source.c (print_source_lines_base): Advance "iter" when a
2266 control character is seen.
2268 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2270 * inferior.h (struct infcall_suspend_state_deleter):
2271 Catch exception in destructor to avoid crash.
2273 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2275 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
2276 close to the add_com "shell".
2278 2019-04-18 Tom Tromey <tromey@adacore.com>
2280 * process-stratum-target.h (class process_stratum_target)
2281 <stratum>: Add "final".
2283 2019-04-17 Tom Tromey <tromey@adacore.com>
2285 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
2286 against nullptr before use.
2288 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2290 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
2292 2019-04-17 Jim Wilson <jimw@sifive.com>
2293 Andrew Burgess <andrew.burgess@embecosm.com>
2295 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
2296 code read might fail, assume 4-byte breakpoint in that case.
2298 2019-04-15 Leszek Swirski <leszeks@google.com>
2300 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
2301 rather than a hand-rolled POD check when checking for forced MEMORY
2304 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2306 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
2307 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
2309 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
2310 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
2311 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
2314 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2316 * aarch64-linux-nat.c
2317 (aarch64_linux_nat_target::thread_architecture): Add override.
2318 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
2321 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2323 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
2325 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
2327 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
2328 target types of size 96-bits, add some additional comments, and
2329 check that the builtin type we found was the correct size.
2331 2019-04-12 Eli Zaretskii <eliz@gnu.org>
2333 * utils.c (prompt_for_continue): Don't restore the styling at the
2334 end, as applied_style has the wrong value. This fixes styling in
2335 long lists of file names that are interrupted by the "Continue?"
2338 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
2340 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
2341 * c-lang.c (c_language_defn): Likewise.
2342 (cplus_language_defn): Likewise.
2343 (asm_language_defn): Likewise.
2344 (minimal_language_defn): Likewise.
2345 * d-lang.c (d_language_defn): Likewise.
2346 * f-lang.c (f_language_defn): Likewise.
2347 * go-lang.c (go_language_defn): Likewise.
2348 * language.c (unknown_language_defn): Likewise.
2349 (auto_language_defn): Likewise.
2350 * language.h (struct language_defn): Remove la_magic field.
2351 (LANG_MAGIC): Delete.
2352 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
2353 * objc-lang.c (objc_language_defn): Likewise.
2354 * opencl-lang.c (opencl_language_defn): Likewise.
2355 * p-lang.c (pascal_language_defn): Likewise.
2356 * rust-lang.c (rust_language_defn): Likewise.
2358 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2360 * riscv-tdep.c (riscv_type_align): New function.
2361 (riscv_type_alignment): Delete.
2362 (riscv_arg_location): Use 'type_align'.
2363 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
2365 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2367 * gdbtypes.c (type_align): A struct with no non-static fields also
2370 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2372 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
2374 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
2376 (riscv_struct_info::analyse): New implementation using new
2377 analyse_inner member function.
2378 (riscv_struct_info::field_offset): New member function.
2379 (riscv_struct_info::m_offsets): New member variable.
2380 (riscv_struct_info::analyse_inner): New private member function,
2381 takes the old implementation of riscv_struct_info::analyse but
2382 extended to track field offsets.
2383 (riscv_call_arg_struct): Update the struct folding special cases
2384 to handle cases where empty C++ structs, which are non-zero
2386 (riscv_arg_location): Initialise the length of each location, a
2387 non-zero length now indicates the location is in use.
2388 (riscv_push_dummy_call): Allow for the first location having a
2389 non-zero offset when setting up arguments.
2390 (riscv_return_value): Likewise, but for return values.
2392 2019-04-11 Tom Tromey <tromey@adacore.com>
2394 * utils.c (internal_vproblem): Make "msg" const.
2396 2019-04-11 Alan Hayward <alan.hayward@arm.com>
2398 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2399 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2400 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2401 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2403 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2405 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2407 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2408 of amd64_collect_native_gregset.
2409 (amd64_linux_nat_target::store_registers): Likewise.
2411 2019-04-10 Tom Tromey <tom@tromey.com>
2413 * symtab.c (lookup_global_symbol_from_objfile)
2414 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2415 * objfiles.h (class separate_debug_iterator): New.
2416 (class separate_debug_range): New.
2417 (struct objfile) <separate_debug_objfiles>: New method.
2418 (objfile_separate_debug_iterate): Don't declare.
2419 * objfiles.c (separate_debug_iterator::operator++): Rename from
2420 objfile_separate_debug_iterate.
2421 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2423 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2426 2019-04-10 Tom Tromey <tom@tromey.com>
2428 * symfile.c (reread_symbols): Remove old comment.
2429 * objfiles.c (free_all_objfiles): Fix a typo.
2431 2019-04-10 Tom Tromey <tom@tromey.com>
2433 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2434 * minsyms.c (lookup_minimal_symbol): Use foreach.
2435 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2436 (lookup_minimal_symbol_solib_trampoline): Likewise.
2437 * symfile.c (reread_symbols): Use foreach.
2439 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2440 Tom Tromey <tromey@adacore.com>
2443 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2444 (rust_lex_int_test): Change "value" to be LONGEST.
2445 (rust_lex_tests): Add test for long integer literal.
2447 2019-04-09 Tom Tromey <tromey@adacore.com>
2449 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2451 (extended_remote_target::attach): Update.
2452 (remote_target::remote_notice_new_inferior): Update.
2453 (remote_target::add_current_inferior_and_thread): Update.
2454 * inferior.c (exit_inferior_1): Use "false".
2455 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2457 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2459 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2460 the "start" command.
2462 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2464 * python/py-inferior.c (infpy_thread_from_thread_handle):
2465 Adjust comments to reflect renaming of thread_from_thread_handle
2466 to thread_from_handle. Adjust keywords. Fix type error message.
2467 (inferior_object_methods): Add thread_from_handle. Retain
2468 thread_from_thread_handle, but mark it as deprecated.
2470 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2472 * gdbthread.h (find_thread_by_handle): Revise declaration.
2473 * thread.c (find_thread_by_handle): Likewise. Adjust
2475 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2476 support for buffer objects as handles.
2478 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2480 * python/py-infthread.c (thpy_thread_handle): New function.
2481 (thread_object_methods): Register thpy_thread_handle.
2483 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2485 * gdbthread.h (thread_to_thread_handle): Declare.
2486 * thread.c (gdbtypes.h): Include.
2487 (thread_to_thread_handle): New function.
2489 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2490 (target_thread_info_to_thread_handle): Declare.
2491 * target.c (target_thread_info_to_thread_handle): New function.
2492 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2493 * target-delegates.c: Regenerate.
2495 * linux-thread-db.c (class thread_db_target): Add method
2496 thread_info_to_thread_handle.
2497 (thread_db_target::thread_info_to_thread_handle): Define.
2498 * remote.c (class remote_target): Add new method
2499 thread_info_to_thread_handle.
2500 (remote_target::thread_info_to_thread_handle): Define.
2502 2019-04-08 Pedro Alves <palves@redhat.com>
2504 * common/common-exceptions.c (throw_exception): Don't create
2505 named object to throw; throw directly.
2506 (throw_it): Likewise. Don't initialize gdb_exception::message
2507 here, with new; pass FMT and AP to the ctor instead.
2508 * common/common-exceptions.h: Include <string>.
2509 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2510 const char *, va_list)): New ctor. Use std::make_shared.
2511 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2513 (gdb_exception_error::gdb_exception_error(enum errors, const char
2515 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2517 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2519 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2520 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2523 2019-04-08 Tom Tromey <tom@tromey.com>
2525 * valops.c (value_rtti_indirect_type): Replace throw_exception
2527 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2529 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2531 * target.c (target_translate_tls_address): Replace throw_exception
2533 * stack.c (frame_apply_command_count): Replace throw_exception
2535 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2537 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2539 * rs6000-tdep.c (rs6000_frame_cache)
2540 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2541 * remote.c: Replace throw_exception with throw.
2542 * record-full.c (record_full_message, record_full_wait_1)
2543 (record_full_restore): Replace throw_exception with throw.
2545 (get_thread_current_frame_id, record_btrace_start_replaying)
2546 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2547 (cmd_record_btrace_start): Replace throw_exception with throw.
2548 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2550 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2551 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2553 (find_linespec_symbols): Replace throw_exception with throw.
2554 * infrun.c (displaced_step_prepare, resume): Replace
2555 throw_exception with throw.
2556 * infcmd.c (post_create_inferior): Replace throw_exception with
2558 * inf-loop.c (inferior_event_handler): Replace throw_exception
2560 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2561 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2562 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2563 (get_prev_frame_always, get_frame_pc_if_available)
2564 (get_frame_address_in_block_if_available, get_frame_language):
2565 Replace throw_exception with throw.
2566 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2567 throw_exception with throw.
2568 * eval.c (fetch_subexp_value, evaluate_var_value)
2569 (evaluate_funcall, evaluate_subexp_standard): Replace
2570 throw_exception with throw.
2571 * dwarf2loc.c (call_site_find_chain)
2572 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2573 Replace throw_exception with throw.
2574 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2576 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2578 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2579 * completer.c (complete_line_internal): Replace throw_exception
2581 * compile/compile-object-run.c (compile_object_run): Replace
2582 throw_exception with throw.
2583 * cli/cli-script.c (process_next_line): Replace throw_exception
2585 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2586 (btrace_enable, btrace_maint_update_pt_packets): Replace
2587 throw_exception with throw.
2588 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2589 throw_exception with throw.
2590 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2591 throw_exception with throw.
2592 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2593 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2594 * aarch64-tdep.c (aarch64_make_prologue_cache)
2595 (aarch64_make_stub_cache): Replace throw_exception with throw.
2597 2019-04-08 Tom Tromey <tom@tromey.com>
2599 * common/common-exceptions.c (throw_exception): Rename from
2600 throw_exception_cxx. Remove old copy. Make argument const.
2601 (throw_it): Create and throw exception objects directly.
2602 * common/common-exceptions.h (throw_exception): Make argument
2604 (struct gdb_exception_error): Add constructor.
2605 (struct gdb_exception_quit): Add constructor.
2607 2019-04-08 Tom Tromey <tom@tromey.com>
2609 * common/common-exceptions.h (exception_rethrow): Don't declare.
2610 (TRY_SJLJ): Update comment.
2611 (TRY, CATCH, END_CATCH): Remove.
2612 * common/common-exceptions.c (exception_rethrow): Remove.
2614 2019-04-08 Tom Tromey <tom@tromey.com>
2616 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2618 (gdb_exception_error): Rename from
2619 gdb_exception_RETURN_MASK_ERROR.
2620 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2621 (gdb_quit_bad_alloc): Update.
2622 * aarch64-tdep.c: Update.
2623 * ada-lang.c: Update.
2624 * ada-typeprint.c: Update.
2625 * ada-valprint.c: Update.
2626 * amd64-tdep.c: Update.
2627 * arch-utils.c: Update.
2628 * break-catch-throw.c: Update.
2629 * breakpoint.c: Update.
2631 * c-varobj.c: Update.
2632 * cli/cli-cmds.c: Update.
2633 * cli/cli-interp.c: Update.
2634 * cli/cli-script.c: Update.
2635 * common/common-exceptions.c: Update.
2636 * common/new-op.c: Update.
2637 * common/selftest.c: Update.
2638 * compile/compile-c-symbols.c: Update.
2639 * compile/compile-cplus-symbols.c: Update.
2640 * compile/compile-object-load.c: Update.
2641 * compile/compile-object-run.c: Update.
2642 * completer.c: Update.
2643 * corelow.c: Update.
2645 * cp-support.c: Update.
2646 * cp-valprint.c: Update.
2647 * darwin-nat.c: Update.
2648 * disasm-selftests.c: Update.
2649 * dtrace-probe.c: Update.
2650 * dwarf-index-cache.c: Update.
2651 * dwarf-index-write.c: Update.
2652 * dwarf2-frame-tailcall.c: Update.
2653 * dwarf2-frame.c: Update.
2654 * dwarf2loc.c: Update.
2655 * dwarf2read.c: Update.
2657 * event-loop.c: Update.
2658 * event-top.c: Update.
2660 * f-valprint.c: Update.
2661 * fbsd-tdep.c: Update.
2662 * frame-unwind.c: Update.
2664 * gdbtypes.c: Update.
2665 * gnu-v3-abi.c: Update.
2666 * guile/guile-internal.h: Update.
2667 * guile/scm-block.c: Update.
2668 * guile/scm-breakpoint.c: Update.
2669 * guile/scm-cmd.c: Update.
2670 * guile/scm-disasm.c: Update.
2671 * guile/scm-frame.c: Update.
2672 * guile/scm-lazy-string.c: Update.
2673 * guile/scm-math.c: Update.
2674 * guile/scm-param.c: Update.
2675 * guile/scm-ports.c: Update.
2676 * guile/scm-pretty-print.c: Update.
2677 * guile/scm-symbol.c: Update.
2678 * guile/scm-symtab.c: Update.
2679 * guile/scm-type.c: Update.
2680 * guile/scm-value.c: Update.
2681 * i386-linux-tdep.c: Update.
2682 * i386-tdep.c: Update.
2683 * inf-loop.c: Update.
2684 * infcall.c: Update.
2688 * language.c: Update.
2689 * linespec.c: Update.
2690 * linux-fork.c: Update.
2691 * linux-nat.c: Update.
2692 * linux-tdep.c: Update.
2693 * linux-thread-db.c: Update.
2695 * mi/mi-cmd-break.c: Update.
2696 * mi/mi-cmd-stack.c: Update.
2697 * mi/mi-interp.c: Update.
2698 * mi/mi-main.c: Update.
2699 * objc-lang.c: Update.
2700 * p-valprint.c: Update.
2702 * ppc-linux-tdep.c: Update.
2703 * printcmd.c: Update.
2704 * python/py-arch.c: Update.
2705 * python/py-breakpoint.c: Update.
2706 * python/py-cmd.c: Update.
2707 * python/py-finishbreakpoint.c: Update.
2708 * python/py-frame.c: Update.
2709 * python/py-framefilter.c: Update.
2710 * python/py-gdb-readline.c: Update.
2711 * python/py-inferior.c: Update.
2712 * python/py-infthread.c: Update.
2713 * python/py-lazy-string.c: Update.
2714 * python/py-linetable.c: Update.
2715 * python/py-objfile.c: Update.
2716 * python/py-param.c: Update.
2717 * python/py-prettyprint.c: Update.
2718 * python/py-progspace.c: Update.
2719 * python/py-record-btrace.c: Update.
2720 * python/py-record.c: Update.
2721 * python/py-symbol.c: Update.
2722 * python/py-type.c: Update.
2723 * python/py-unwind.c: Update.
2724 * python/py-utils.c: Update.
2725 * python/py-value.c: Update.
2726 * python/python.c: Update.
2727 * record-btrace.c: Update.
2728 * record-full.c: Update.
2729 * remote-fileio.c: Update.
2731 * riscv-tdep.c: Update.
2732 * rs6000-aix-tdep.c: Update.
2733 * rs6000-tdep.c: Update.
2734 * rust-exp.y: Update.
2735 * rust-lang.c: Update.
2736 * s390-tdep.c: Update.
2737 * selftest-arch.c: Update.
2738 * solib-dsbt.c: Update.
2739 * solib-frv.c: Update.
2740 * solib-spu.c: Update.
2741 * solib-svr4.c: Update.
2743 * sparc64-linux-tdep.c: Update.
2745 * symfile-mem.c: Update.
2746 * symmisc.c: Update.
2750 * tracefile-tfile.c: Update.
2751 * tui/tui.c: Update.
2752 * typeprint.c: Update.
2753 * unittests/cli-utils-selftests.c: Update.
2754 * unittests/parse-connection-spec-selftests.c: Update.
2756 * valprint.c: Update.
2759 * windows-nat.c: Update.
2760 * x86-linux-nat.c: Update.
2761 * xml-support.c: Update.
2763 2019-04-08 Tom Tromey <tom@tromey.com>
2765 * xml-support.c: Use C++ exception handling.
2766 * x86-linux-nat.c: Use C++ exception handling.
2767 * windows-nat.c: Use C++ exception handling.
2768 * varobj.c: Use C++ exception handling.
2769 * value.c: Use C++ exception handling.
2770 * valprint.c: Use C++ exception handling.
2771 * valops.c: Use C++ exception handling.
2772 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2774 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2775 * typeprint.c: Use C++ exception handling.
2776 * tui/tui.c: Use C++ exception handling.
2777 * tracefile-tfile.c: Use C++ exception handling.
2778 * top.c: Use C++ exception handling.
2779 * thread.c: Use C++ exception handling.
2780 * target.c: Use C++ exception handling.
2781 * symmisc.c: Use C++ exception handling.
2782 * symfile-mem.c: Use C++ exception handling.
2783 * stack.c: Use C++ exception handling.
2784 * sparc64-linux-tdep.c: Use C++ exception handling.
2785 * solib.c: Use C++ exception handling.
2786 * solib-svr4.c: Use C++ exception handling.
2787 * solib-spu.c: Use C++ exception handling.
2788 * solib-frv.c: Use C++ exception handling.
2789 * solib-dsbt.c: Use C++ exception handling.
2790 * selftest-arch.c: Use C++ exception handling.
2791 * s390-tdep.c: Use C++ exception handling.
2792 * rust-lang.c: Use C++ exception handling.
2793 * rust-exp.y: Use C++ exception handling.
2794 * rs6000-tdep.c: Use C++ exception handling.
2795 * rs6000-aix-tdep.c: Use C++ exception handling.
2796 * riscv-tdep.c: Use C++ exception handling.
2797 * remote.c: Use C++ exception handling.
2798 * remote-fileio.c: Use C++ exception handling.
2799 * record-full.c: Use C++ exception handling.
2800 * record-btrace.c: Use C++ exception handling.
2801 * python/python.c: Use C++ exception handling.
2802 * python/py-value.c: Use C++ exception handling.
2803 * python/py-utils.c: Use C++ exception handling.
2804 * python/py-unwind.c: Use C++ exception handling.
2805 * python/py-type.c: Use C++ exception handling.
2806 * python/py-symbol.c: Use C++ exception handling.
2807 * python/py-record.c: Use C++ exception handling.
2808 * python/py-record-btrace.c: Use C++ exception handling.
2809 * python/py-progspace.c: Use C++ exception handling.
2810 * python/py-prettyprint.c: Use C++ exception handling.
2811 * python/py-param.c: Use C++ exception handling.
2812 * python/py-objfile.c: Use C++ exception handling.
2813 * python/py-linetable.c: Use C++ exception handling.
2814 * python/py-lazy-string.c: Use C++ exception handling.
2815 * python/py-infthread.c: Use C++ exception handling.
2816 * python/py-inferior.c: Use C++ exception handling.
2817 * python/py-gdb-readline.c: Use C++ exception handling.
2818 * python/py-framefilter.c: Use C++ exception handling.
2819 * python/py-frame.c: Use C++ exception handling.
2820 * python/py-finishbreakpoint.c: Use C++ exception handling.
2821 * python/py-cmd.c: Use C++ exception handling.
2822 * python/py-breakpoint.c: Use C++ exception handling.
2823 * python/py-arch.c: Use C++ exception handling.
2824 * printcmd.c: Use C++ exception handling.
2825 * ppc-linux-tdep.c: Use C++ exception handling.
2826 * parse.c: Use C++ exception handling.
2827 * p-valprint.c: Use C++ exception handling.
2828 * objc-lang.c: Use C++ exception handling.
2829 * mi/mi-main.c: Use C++ exception handling.
2830 * mi/mi-interp.c: Use C++ exception handling.
2831 * mi/mi-cmd-stack.c: Use C++ exception handling.
2832 * mi/mi-cmd-break.c: Use C++ exception handling.
2833 * main.c: Use C++ exception handling.
2834 * linux-thread-db.c: Use C++ exception handling.
2835 * linux-tdep.c: Use C++ exception handling.
2836 * linux-nat.c: Use C++ exception handling.
2837 * linux-fork.c: Use C++ exception handling.
2838 * linespec.c: Use C++ exception handling.
2839 * language.c: Use C++ exception handling.
2840 * jit.c: Use C++ exception handling.
2841 * infrun.c: Use C++ exception handling.
2842 * infcmd.c: Use C++ exception handling.
2843 * infcall.c: Use C++ exception handling.
2844 * inf-loop.c: Use C++ exception handling.
2845 * i386-tdep.c: Use C++ exception handling.
2846 * i386-linux-tdep.c: Use C++ exception handling.
2847 * guile/scm-value.c: Use C++ exception handling.
2848 * guile/scm-type.c: Use C++ exception handling.
2849 * guile/scm-symtab.c: Use C++ exception handling.
2850 * guile/scm-symbol.c: Use C++ exception handling.
2851 * guile/scm-pretty-print.c: Use C++ exception handling.
2852 * guile/scm-ports.c: Use C++ exception handling.
2853 * guile/scm-param.c: Use C++ exception handling.
2854 * guile/scm-math.c: Use C++ exception handling.
2855 * guile/scm-lazy-string.c: Use C++ exception handling.
2856 * guile/scm-frame.c: Use C++ exception handling.
2857 * guile/scm-disasm.c: Use C++ exception handling.
2858 * guile/scm-cmd.c: Use C++ exception handling.
2859 * guile/scm-breakpoint.c: Use C++ exception handling.
2860 * guile/scm-block.c: Use C++ exception handling.
2861 * guile/guile-internal.h: Use C++ exception handling.
2862 * gnu-v3-abi.c: Use C++ exception handling.
2863 * gdbtypes.c: Use C++ exception handling.
2864 * frame.c: Use C++ exception handling.
2865 * frame-unwind.c: Use C++ exception handling.
2866 * fbsd-tdep.c: Use C++ exception handling.
2867 * f-valprint.c: Use C++ exception handling.
2868 * exec.c: Use C++ exception handling.
2869 * event-top.c: Use C++ exception handling.
2870 * event-loop.c: Use C++ exception handling.
2871 * eval.c: Use C++ exception handling.
2872 * dwarf2read.c: Use C++ exception handling.
2873 * dwarf2loc.c: Use C++ exception handling.
2874 * dwarf2-frame.c: Use C++ exception handling.
2875 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2876 * dwarf-index-write.c: Use C++ exception handling.
2877 * dwarf-index-cache.c: Use C++ exception handling.
2878 * dtrace-probe.c: Use C++ exception handling.
2879 * disasm-selftests.c: Use C++ exception handling.
2880 * darwin-nat.c: Use C++ exception handling.
2881 * cp-valprint.c: Use C++ exception handling.
2882 * cp-support.c: Use C++ exception handling.
2883 * cp-abi.c: Use C++ exception handling.
2884 * corelow.c: Use C++ exception handling.
2885 * completer.c: Use C++ exception handling.
2886 * compile/compile-object-run.c: Use C++ exception handling.
2887 * compile/compile-object-load.c: Use C++ exception handling.
2888 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2889 * compile/compile-c-symbols.c: Use C++ exception handling.
2890 * common/selftest.c: Use C++ exception handling.
2891 * common/new-op.c: Use C++ exception handling.
2892 * cli/cli-script.c: Use C++ exception handling.
2893 * cli/cli-interp.c: Use C++ exception handling.
2894 * cli/cli-cmds.c: Use C++ exception handling.
2895 * c-varobj.c: Use C++ exception handling.
2896 * btrace.c: Use C++ exception handling.
2897 * breakpoint.c: Use C++ exception handling.
2898 * break-catch-throw.c: Use C++ exception handling.
2899 * arch-utils.c: Use C++ exception handling.
2900 * amd64-tdep.c: Use C++ exception handling.
2901 * ada-valprint.c: Use C++ exception handling.
2902 * ada-typeprint.c: Use C++ exception handling.
2903 * ada-lang.c: Use C++ exception handling.
2904 * aarch64-tdep.c: Use C++ exception handling.
2906 2019-04-08 Tom Tromey <tom@tromey.com>
2908 * xml-support.c (gdb_xml_parser::parse): Update.
2909 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2910 * value.c (show_convenience): Update.
2911 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2912 (test_parse_flags_qcs): Update.
2913 * thread.c (thr_try_catch_cmd): Update.
2914 * target.c (target_translate_tls_address): Update.
2915 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2916 (info_frame_command_core, frame_apply_command_count): Update.
2917 * rust-exp.y (rust_lex_exception_test): Update.
2918 * riscv-tdep.c (riscv_print_one_register_info): Update.
2919 * remote.c (remote_target::enable_btrace): Update.
2920 * record-btrace.c (record_btrace_enable_warn): Update.
2921 * python/py-utils.c (gdbpy_convert_exception): Update.
2922 * printcmd.c (do_one_display, print_variable_and_value): Update.
2923 * mi/mi-main.c (mi_print_exception): Update.
2924 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2925 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2926 * linux-nat.c (linux_nat_target::attach): Update.
2927 * linux-fork.c (class scoped_switch_fork_info): Update.
2928 * infrun.c (displaced_step_prepare): Update.
2929 * infcall.c (call_function_by_hand_dummy): Update.
2930 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2931 * gnu-v3-abi.c (print_one_vtable): Update.
2932 * frame.c (get_prev_frame_always): Update.
2933 * f-valprint.c (info_common_command_for_block): Update.
2934 * exec.c (try_open_exec_file): Update.
2935 * exceptions.c (print_exception, exception_print)
2936 (exception_fprintf, exception_print_same): Update.
2937 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2938 * dwarf-index-cache.c (index_cache::store)
2939 (index_cache::lookup_gdb_index): Update.
2940 * darwin-nat.c (maybe_cache_shell): Update.
2941 * cp-valprint.c (cp_print_value_fields): Update.
2942 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2943 (gcc_cplus_symbol_address): Update.
2944 * compile/compile-c-symbols.c (gcc_convert_symbol)
2945 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2946 * common/selftest.c: Update.
2947 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2949 (exception_try_scope_entry, exception_try_scope_exit): Don't
2951 (struct exception_try_scope): Remove.
2952 (TRY): Don't use exception_try_scope.
2953 (struct gdb_exception): Add constructor, operator=.
2955 (struct gdb_exception_RETURN_MASK_ALL)
2956 (struct gdb_exception_RETURN_MASK_ERROR)
2957 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2958 (struct gdb_quit_bad_alloc): Update.
2959 * common/common-exceptions.c (exception_none): Change
2961 (struct catcher) <state, exception>: Initialize inline.
2962 <prev>: Remove member.
2963 (current_catcher): Remove.
2964 (catchers): New global.
2965 (exceptions_state_mc_init): Simplify.
2966 (catcher_pop): Remove.
2967 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2968 (try_scope_depth, exception_try_scope_entry)
2969 (exception_try_scope_exit): Remove.
2970 (throw_exception_sjlj): Update.
2971 (exception_messages, exception_messages_size): Remove.
2972 (throw_it): Simplify.
2973 (gdb_exception_sliced_copy): Remove.
2974 (throw_exception_cxx): Update.
2975 * cli/cli-script.c (script_from_file): Update.
2976 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2978 * ada-valprint.c (ada_val_print): Update.
2979 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2980 (create_excep_cond_exprs): Update.
2982 2019-04-08 Tom Tromey <tom@tromey.com>
2984 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2985 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2986 (TRY, CATCH, END_CATCH): Remove some definitions.
2987 * common/common-exceptions.c: Don't use GDB_XCPT.
2988 (catcher_list_size): Remove.
2989 (throw_exception, throw_it): Simplify.
2991 2019-04-05 Tom Tromey <tom@tromey.com>
2993 Revert the header-sorting patch.
2994 * ft32-tdep.c: Revert.
2995 * frv-tdep.c: Revert.
2996 * frv-linux-tdep.c: Revert.
2998 * frame-unwind.c: Revert.
2999 * frame-base.c: Revert.
3000 * fork-child.c: Revert.
3001 * findvar.c: Revert.
3002 * findcmd.c: Revert.
3003 * filesystem.c: Revert.
3004 * filename-seen-cache.h: Revert.
3005 * filename-seen-cache.c: Revert.
3006 * fbsd-tdep.c: Revert.
3007 * fbsd-nat.h: Revert.
3008 * fbsd-nat.c: Revert.
3009 * f-valprint.c: Revert.
3010 * f-typeprint.c: Revert.
3012 * extension.h: Revert.
3013 * extension.c: Revert.
3014 * extension-priv.h: Revert.
3015 * expprint.c: Revert.
3018 * exceptions.c: Revert.
3019 * event-top.c: Revert.
3020 * event-loop.c: Revert.
3022 * elfread.c: Revert.
3023 * dwarf2read.h: Revert.
3024 * dwarf2read.c: Revert.
3025 * dwarf2loc.c: Revert.
3026 * dwarf2expr.h: Revert.
3027 * dwarf2expr.c: Revert.
3028 * dwarf2-frame.c: Revert.
3029 * dwarf2-frame-tailcall.c: Revert.
3030 * dwarf-index-write.h: Revert.
3031 * dwarf-index-write.c: Revert.
3032 * dwarf-index-common.c: Revert.
3033 * dwarf-index-cache.h: Revert.
3034 * dwarf-index-cache.c: Revert.
3035 * dummy-frame.c: Revert.
3036 * dtrace-probe.c: Revert.
3039 * disasm-selftests.c: Revert.
3040 * dictionary.c: Revert.
3041 * dicos-tdep.c: Revert.
3042 * demangle.c: Revert.
3045 * darwin-nat.h: Revert.
3046 * darwin-nat.c: Revert.
3047 * darwin-nat-info.c: Revert.
3048 * d-valprint.c: Revert.
3049 * d-namespace.c: Revert.
3052 * csky-tdep.c: Revert.
3053 * csky-linux-tdep.c: Revert.
3054 * cris-tdep.c: Revert.
3055 * cris-linux-tdep.c: Revert.
3056 * cp-valprint.c: Revert.
3057 * cp-support.c: Revert.
3058 * cp-namespace.c: Revert.
3060 * corelow.c: Revert.
3061 * corefile.c: Revert.
3062 * continuations.c: Revert.
3063 * completer.h: Revert.
3064 * completer.c: Revert.
3065 * complaints.c: Revert.
3066 * coffread.c: Revert.
3067 * coff-pe-read.c: Revert.
3068 * cli-out.h: Revert.
3069 * cli-out.c: Revert.
3070 * charset.c: Revert.
3071 * c-varobj.c: Revert.
3072 * c-valprint.c: Revert.
3073 * c-typeprint.c: Revert.
3075 * buildsym.c: Revert.
3076 * buildsym-legacy.c: Revert.
3077 * build-id.h: Revert.
3078 * build-id.c: Revert.
3080 * bsd-uthread.c: Revert.
3081 * breakpoint.h: Revert.
3082 * breakpoint.c: Revert.
3083 * break-catch-throw.c: Revert.
3084 * break-catch-syscall.c: Revert.
3085 * break-catch-sig.c: Revert.
3086 * blockframe.c: Revert.
3088 * bfin-tdep.c: Revert.
3089 * bfin-linux-tdep.c: Revert.
3090 * bfd-target.c: Revert.
3092 * ax-general.c: Revert.
3095 * avr-tdep.c: Revert.
3097 * auto-load.c: Revert.
3098 * arm-wince-tdep.c: Revert.
3099 * arm-tdep.c: Revert.
3100 * arm-symbian-tdep.c: Revert.
3101 * arm-pikeos-tdep.c: Revert.
3102 * arm-obsd-tdep.c: Revert.
3103 * arm-nbsd-tdep.c: Revert.
3104 * arm-nbsd-nat.c: Revert.
3105 * arm-linux-tdep.c: Revert.
3106 * arm-linux-nat.c: Revert.
3107 * arm-fbsd-tdep.c: Revert.
3108 * arm-fbsd-nat.c: Revert.
3109 * arm-bsd-tdep.c: Revert.
3110 * arch-utils.c: Revert.
3111 * arc-tdep.c: Revert.
3112 * arc-newlib-tdep.c: Revert.
3113 * annotate.h: Revert.
3114 * annotate.c: Revert.
3115 * amd64-windows-tdep.c: Revert.
3116 * amd64-windows-nat.c: Revert.
3117 * amd64-tdep.c: Revert.
3118 * amd64-sol2-tdep.c: Revert.
3119 * amd64-obsd-tdep.c: Revert.
3120 * amd64-obsd-nat.c: Revert.
3121 * amd64-nbsd-tdep.c: Revert.
3122 * amd64-nbsd-nat.c: Revert.
3123 * amd64-nat.c: Revert.
3124 * amd64-linux-tdep.c: Revert.
3125 * amd64-linux-nat.c: Revert.
3126 * amd64-fbsd-tdep.c: Revert.
3127 * amd64-fbsd-nat.c: Revert.
3128 * amd64-dicos-tdep.c: Revert.
3129 * amd64-darwin-tdep.c: Revert.
3130 * amd64-bsd-nat.c: Revert.
3131 * alpha-tdep.c: Revert.
3132 * alpha-obsd-tdep.c: Revert.
3133 * alpha-nbsd-tdep.c: Revert.
3134 * alpha-mdebug-tdep.c: Revert.
3135 * alpha-linux-tdep.c: Revert.
3136 * alpha-linux-nat.c: Revert.
3137 * alpha-bsd-tdep.c: Revert.
3138 * alpha-bsd-nat.c: Revert.
3139 * aix-thread.c: Revert.
3141 * addrmap.c: Revert.
3142 * ada-varobj.c: Revert.
3143 * ada-valprint.c: Revert.
3144 * ada-typeprint.c: Revert.
3145 * ada-tasks.c: Revert.
3146 * ada-lang.c: Revert.
3147 * aarch64-tdep.c: Revert.
3148 * aarch64-ravenscar-thread.c: Revert.
3149 * aarch64-newlib-tdep.c: Revert.
3150 * aarch64-linux-tdep.c: Revert.
3151 * aarch64-linux-nat.c: Revert.
3152 * aarch64-fbsd-tdep.c: Revert.
3153 * aarch64-fbsd-nat.c: Revert.
3154 * aarch32-linux-nat.c: Revert.
3156 2019-04-05 Tom Tromey <tom@tromey.com>
3158 * ft32-tdep.c: Sort headers.
3159 * frv-tdep.c: Sort headers.
3160 * frv-linux-tdep.c: Sort headers.
3161 * frame.c: Sort headers.
3162 * frame-unwind.c: Sort headers.
3163 * frame-base.c: Sort headers.
3164 * fork-child.c: Sort headers.
3165 * findvar.c: Sort headers.
3166 * findcmd.c: Sort headers.
3167 * filesystem.c: Sort headers.
3168 * filename-seen-cache.h: Sort headers.
3169 * filename-seen-cache.c: Sort headers.
3170 * fbsd-tdep.c: Sort headers.
3171 * fbsd-nat.h: Sort headers.
3172 * fbsd-nat.c: Sort headers.
3173 * f-valprint.c: Sort headers.
3174 * f-typeprint.c: Sort headers.
3175 * f-lang.c: Sort headers.
3176 * extension.h: Sort headers.
3177 * extension.c: Sort headers.
3178 * extension-priv.h: Sort headers.
3179 * expprint.c: Sort headers.
3180 * exec.h: Sort headers.
3181 * exec.c: Sort headers.
3182 * exceptions.c: Sort headers.
3183 * event-top.c: Sort headers.
3184 * event-loop.c: Sort headers.
3185 * eval.c: Sort headers.
3186 * elfread.c: Sort headers.
3187 * dwarf2read.h: Sort headers.
3188 * dwarf2read.c: Sort headers.
3189 * dwarf2loc.c: Sort headers.
3190 * dwarf2expr.h: Sort headers.
3191 * dwarf2expr.c: Sort headers.
3192 * dwarf2-frame.c: Sort headers.
3193 * dwarf2-frame-tailcall.c: Sort headers.
3194 * dwarf-index-write.h: Sort headers.
3195 * dwarf-index-write.c: Sort headers.
3196 * dwarf-index-common.c: Sort headers.
3197 * dwarf-index-cache.h: Sort headers.
3198 * dwarf-index-cache.c: Sort headers.
3199 * dummy-frame.c: Sort headers.
3200 * dtrace-probe.c: Sort headers.
3201 * disasm.h: Sort headers.
3202 * disasm.c: Sort headers.
3203 * disasm-selftests.c: Sort headers.
3204 * dictionary.c: Sort headers.
3205 * dicos-tdep.c: Sort headers.
3206 * demangle.c: Sort headers.
3207 * dcache.h: Sort headers.
3208 * dcache.c: Sort headers.
3209 * darwin-nat.h: Sort headers.
3210 * darwin-nat.c: Sort headers.
3211 * darwin-nat-info.c: Sort headers.
3212 * d-valprint.c: Sort headers.
3213 * d-namespace.c: Sort headers.
3214 * d-lang.c: Sort headers.
3215 * ctf.c: Sort headers.
3216 * csky-tdep.c: Sort headers.
3217 * csky-linux-tdep.c: Sort headers.
3218 * cris-tdep.c: Sort headers.
3219 * cris-linux-tdep.c: Sort headers.
3220 * cp-valprint.c: Sort headers.
3221 * cp-support.c: Sort headers.
3222 * cp-namespace.c: Sort headers.
3223 * cp-abi.c: Sort headers.
3224 * corelow.c: Sort headers.
3225 * corefile.c: Sort headers.
3226 * continuations.c: Sort headers.
3227 * completer.h: Sort headers.
3228 * completer.c: Sort headers.
3229 * complaints.c: Sort headers.
3230 * coffread.c: Sort headers.
3231 * coff-pe-read.c: Sort headers.
3232 * cli-out.h: Sort headers.
3233 * cli-out.c: Sort headers.
3234 * charset.c: Sort headers.
3235 * c-varobj.c: Sort headers.
3236 * c-valprint.c: Sort headers.
3237 * c-typeprint.c: Sort headers.
3238 * c-lang.c: Sort headers.
3239 * buildsym.c: Sort headers.
3240 * buildsym-legacy.c: Sort headers.
3241 * build-id.h: Sort headers.
3242 * build-id.c: Sort headers.
3243 * btrace.c: Sort headers.
3244 * bsd-uthread.c: Sort headers.
3245 * breakpoint.h: Sort headers.
3246 * breakpoint.c: Sort headers.
3247 * break-catch-throw.c: Sort headers.
3248 * break-catch-syscall.c: Sort headers.
3249 * break-catch-sig.c: Sort headers.
3250 * blockframe.c: Sort headers.
3251 * block.c: Sort headers.
3252 * bfin-tdep.c: Sort headers.
3253 * bfin-linux-tdep.c: Sort headers.
3254 * bfd-target.c: Sort headers.
3255 * bcache.c: Sort headers.
3256 * ax-general.c: Sort headers.
3257 * ax-gdb.h: Sort headers.
3258 * ax-gdb.c: Sort headers.
3259 * avr-tdep.c: Sort headers.
3260 * auxv.c: Sort headers.
3261 * auto-load.c: Sort headers.
3262 * arm-wince-tdep.c: Sort headers.
3263 * arm-tdep.c: Sort headers.
3264 * arm-symbian-tdep.c: Sort headers.
3265 * arm-pikeos-tdep.c: Sort headers.
3266 * arm-obsd-tdep.c: Sort headers.
3267 * arm-nbsd-tdep.c: Sort headers.
3268 * arm-nbsd-nat.c: Sort headers.
3269 * arm-linux-tdep.c: Sort headers.
3270 * arm-linux-nat.c: Sort headers.
3271 * arm-fbsd-tdep.c: Sort headers.
3272 * arm-fbsd-nat.c: Sort headers.
3273 * arm-bsd-tdep.c: Sort headers.
3274 * arch-utils.c: Sort headers.
3275 * arc-tdep.c: Sort headers.
3276 * arc-newlib-tdep.c: Sort headers.
3277 * annotate.h: Sort headers.
3278 * annotate.c: Sort headers.
3279 * amd64-windows-tdep.c: Sort headers.
3280 * amd64-windows-nat.c: Sort headers.
3281 * amd64-tdep.c: Sort headers.
3282 * amd64-sol2-tdep.c: Sort headers.
3283 * amd64-obsd-tdep.c: Sort headers.
3284 * amd64-obsd-nat.c: Sort headers.
3285 * amd64-nbsd-tdep.c: Sort headers.
3286 * amd64-nbsd-nat.c: Sort headers.
3287 * amd64-nat.c: Sort headers.
3288 * amd64-linux-tdep.c: Sort headers.
3289 * amd64-linux-nat.c: Sort headers.
3290 * amd64-fbsd-tdep.c: Sort headers.
3291 * amd64-fbsd-nat.c: Sort headers.
3292 * amd64-dicos-tdep.c: Sort headers.
3293 * amd64-darwin-tdep.c: Sort headers.
3294 * amd64-bsd-nat.c: Sort headers.
3295 * alpha-tdep.c: Sort headers.
3296 * alpha-obsd-tdep.c: Sort headers.
3297 * alpha-nbsd-tdep.c: Sort headers.
3298 * alpha-mdebug-tdep.c: Sort headers.
3299 * alpha-linux-tdep.c: Sort headers.
3300 * alpha-linux-nat.c: Sort headers.
3301 * alpha-bsd-tdep.c: Sort headers.
3302 * alpha-bsd-nat.c: Sort headers.
3303 * aix-thread.c: Sort headers.
3304 * agent.c: Sort headers.
3305 * addrmap.c: Sort headers.
3306 * ada-varobj.c: Sort headers.
3307 * ada-valprint.c: Sort headers.
3308 * ada-typeprint.c: Sort headers.
3309 * ada-tasks.c: Sort headers.
3310 * ada-lang.c: Sort headers.
3311 * aarch64-tdep.c: Sort headers.
3312 * aarch64-ravenscar-thread.c: Sort headers.
3313 * aarch64-newlib-tdep.c: Sort headers.
3314 * aarch64-linux-tdep.c: Sort headers.
3315 * aarch64-linux-nat.c: Sort headers.
3316 * aarch64-fbsd-tdep.c: Sort headers.
3317 * aarch64-fbsd-nat.c: Sort headers.
3318 * aarch32-linux-nat.c: Sort headers.
3320 2019-04-04 Tom Tromey <tom@tromey.com>
3322 * varobj.c (varobj_create): Update.
3323 * rust-exp.y (struct rust_parser) <update_innermost_block,
3324 lookup_symbol>: New methods.
3325 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
3327 (rust_parser::rust_lookup_type)
3328 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3329 * printcmd.c (display_command, do_one_display): Update.
3330 * parser-defs.h (struct parser_state) <parser_state>: Add
3331 "tracker" parameter.
3332 (block_tracker): New member.
3333 (class innermost_block_tracker) <innermost_block_tracker>: Add
3335 <reset>: Remove method.
3336 (innermost_block): Don't declare.
3337 (null_post_parser): Update.
3338 * parse.c (innermost_block): Remove global.
3339 (write_dollar_variable): Update.
3340 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
3341 Remove "tracker_types" parameter.
3342 (parse_expression): Add "tracker" parameter.
3343 (parse_expression_for_completion): Update.
3344 (null_post_parser): Add "tracker" parameter.
3345 * p-exp.y: Update rules.
3346 * m2-exp.y: Update rules.
3347 * language.h (struct language_defn) <la_post_parser>: Add
3348 "tracker" parameter.
3349 * go-exp.y: Update rules.
3350 * f-exp.y: Update rules.
3351 * expression.h (parse_expression, parse_exp_1): Add "tracker"
3353 * d-exp.y: Update rules.
3354 * c-exp.y: Update rules.
3355 * breakpoint.c (set_breakpoint_condition): Create an
3356 innermost_block_tracker.
3357 (watch_command_1): Likewise.
3358 * ada-lang.c (resolve): Add "tracker" parameter.
3359 (resolve_subexp): Likewise.
3360 * ada-exp.y (write_var_from_sym): Update.
3362 2019-04-04 Tom Tromey <tom@tromey.com>
3364 * type-stack.h: New file.
3365 * type-stack.c: New file.
3366 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
3368 (insert_into_type_stack, insert_type, push_type, push_type_int)
3369 (insert_type_address_space, pop_type, pop_type_int)
3370 (pop_typelist, pop_type_stack, append_type_stack)
3371 (push_type_stack, get_type_stack, push_typelist)
3372 (follow_type_instance_flags, follow_types): Don't declare.
3373 * parse.c (type_stack): Remove global.
3374 (parse_exp_in_context): Update.
3375 (insert_into_type_stack, insert_type, push_type, push_type_int)
3376 (insert_type_address_space, pop_type, pop_type_int)
3377 (pop_typelist, pop_type_stack, append_type_stack)
3378 (push_type_stack, get_type_stack, push_typelist)
3379 (follow_type_instance_flags, follow_types): Remove (moved to
3381 * f-exp.y (type_stack): New global.
3383 (push_kind_type, f_parse): Update.
3384 * d-exp.y (type_stack): New global.
3387 * c-exp.y (struct c_parse_state) <type_stack>: New member.
3389 * Makefile.in (COMMON_SFILES): Add type-stack.c.
3390 (HFILES_NO_SRCDIR): Add type-stack.h.
3392 2019-04-04 Tom Tromey <tom@tromey.com>
3394 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
3395 (rust_parser::convert_ast_to_expression, rust_parse)
3396 (rust_lex_test_completion, rust_lex_tests): Update.
3397 * parser-defs.h (struct expr_completion_state): New.
3398 (struct parser_state) <parser_state>: Add completion parameter.
3399 <mark_struct_expression, mark_completion_tag>: New methods.
3400 <parse_completion, m_completion_state>: New members.
3401 (prefixify_expression, null_post_parser): Update.
3402 (mark_struct_expression, mark_completion_tag): Don't declare.
3403 * parse.c (parse_completion, expout_last_struct)
3404 (expout_tag_completion_type, expout_completion_name): Remove
3406 (parser_state::mark_struct_expression)
3407 (parser_state::mark_completion_tag): Now methods.
3408 (prefixify_expression): Add last_struct parameter.
3409 (prefixify_subexp): Likewise.
3410 (parse_exp_1): Update.
3411 (parse_exp_in_context): Add cstate parameter. Update.
3412 (parse_expression_for_completion): Create an
3413 expr_completion_state.
3414 (null_post_parser): Add "completion" parameter.
3415 * p-exp.y: Update rules.
3417 * language.h (struct language_defn) <la_post_parser>: Add
3418 "completing" parameter.
3419 * go-exp.y: Update rules.
3420 (lex_one_token): Update.
3421 * expression.h (parse_completion): Don't declare.
3422 * d-exp.y: Update rules.
3423 (lex_one_token): Update rules.
3424 * c-exp.y: Update rules.
3425 (lex_one_token): Update.
3426 * ada-lang.c (resolve): Add "parse_completion" parameter.
3427 (resolve_subexp): Likewise.
3428 (ada_resolve_function): Likewise.
3430 2019-04-04 Tom Tromey <tom@tromey.com>
3432 * parser-defs.h (struct parser_state) <start_arglist,
3433 end_arglist>: New methods.
3434 <arglist_len, m_funcall_chain>: New members.
3435 (arglist_len, start_arglist, end_arglist): Don't declare.
3436 * parse.c (arglist_len, funcall_chain): Remove global.
3437 (start_arglist, end_arglist): Remove functions.
3438 (parse_exp_in_context): Update.
3439 * p-exp.y: Update rules.
3440 * m2-exp.y: Update rules.
3441 * go-exp.y: Update rules.
3442 * f-exp.y: Update rules.
3443 * d-exp.y: Update rules.
3444 * c-exp.y: Update rules.
3446 2019-04-04 Tom Tromey <tom@tromey.com>
3448 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3449 lex_operator, push_back>: New methods.
3451 (rust_parser::lex_hex, lex_escape): Rename and update.
3452 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3453 (rust_parser::lex_operator): Rename and update.
3454 (rust_parser::lex_number, rustyylex, rustyyerror)
3455 (rust_lex_test_init, rust_lex_test_sequence)
3456 (rust_lex_test_push_back, rust_lex_tests): Update.
3457 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3459 <lexptr, prev_lexptr>: New members.
3460 (lexptr, prev_lexptr): Don't declare.
3461 * parse.c (lexptr, prev_lexptr): Remove globals.
3462 (parse_exp_in_context): Update.
3463 * p-exp.y (yylex, yyerror): Update.
3464 * m2-exp.y (parse_number, yylex, yyerror): Update.
3465 * go-exp.y (lex_one_token, yyerror): Update.
3466 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3467 * d-exp.y (lex_one_token, yyerror): Update.
3468 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3469 (lex_one_token, yyerror): Update.
3470 * ada-lex.l (YY_INPUT): Update.
3471 (rewind_to_char): Update.
3472 * ada-exp.y (yyerror): Update.
3474 2019-04-04 Tom Tromey <tom@tromey.com>
3476 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3477 * parser-defs.h (struct parser_state) <parser_state>: Add new
3479 <comma_terminates>: New member.
3480 (comma_terminates): Don't declare global.
3481 * parse.c (comma_terminates): Remove global.
3482 (parse_exp_in_context): Update.
3483 * p-exp.y (yylex): Update.
3484 * m2-exp.y (yylex): Update.
3485 * go-exp.y (lex_one_token): Update.
3486 * f-exp.y (yylex): Update.
3487 * d-exp.y (lex_one_token): Update.
3488 * c-exp.y (lex_one_token): Update.
3489 * ada-lex.l: Update.
3491 2019-04-04 Tom Tromey <tom@tromey.com>
3493 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3494 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3495 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3496 * parser-defs.h (paren_depth): Don't declare.
3497 * parse.c (paren_depth): Remove global.
3498 (parse_exp_in_context): Update.
3499 * p-exp.y (paren_depth): New global.
3500 (pascal_parse): Initialize it.
3501 * m2-exp.y (paren_depth): New global.
3502 (m2_parse): Initialize it.
3503 * go-exp.y (paren_depth): New global.
3504 (go_parse): Initialize it.
3505 * f-exp.y (paren_depth): New global.
3506 (f_parse): Initialize it.
3507 * d-exp.y (paren_depth): New global.
3508 (d_parse): Initialize it.
3509 * c-exp.y (paren_depth): New global.
3510 (c_parse): Initialize it.
3511 * ada-lex.l (paren_depth): New global.
3512 (lexer_init): Initialize it.
3514 2019-04-04 Tom Tromey <tom@tromey.com>
3516 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3517 (rust_parser::convert_ast_to_type)
3518 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3519 * parser-defs.h (struct parser_state) <parser_state>: Add
3520 parameters. Initialize new members.
3521 <expression_context_block, expression_context_pc>: New members.
3522 * parse.c (expression_context_block, expression_context_pc):
3524 (parse_exp_in_context): Update.
3525 * p-exp.y: Update all rules.
3527 * m2-exp.y: Update all rules.
3529 * go-exp.y (yylex): Update.
3530 * f-exp.y (yylex): Update.
3531 * d-exp.y: Update all rules.
3533 * c-exp.y: Update all rules.
3534 (lex_one_token, classify_name, yylex, c_parse): Update.
3535 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3537 2019-04-04 Tom Tromey <tom@tromey.com>
3539 * gdbarch.h, gdbarch.c: Rebuild.
3540 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3542 (struct stap_parse_info): Replace "parser_state" with
3544 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3545 (parser_state): New class.
3546 * parse.c (expr_builder): Rename.
3547 (expr_builder::release): Rename.
3548 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3549 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3550 (write_exp_elt_longcst, write_exp_elt_floatcst)
3551 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3552 (write_exp_string_vector, write_exp_bitstring)
3553 (write_exp_msymbol, mark_struct_expression)
3554 (write_dollar_variable)
3555 (insert_type_address_space, increase_expout_size): Replace
3556 "parser_state" with "expr_builder".
3557 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3558 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3559 "parser_state" with "expr_builder".
3561 2019-04-04 Tom Tromey <tom@tromey.com>
3563 * rust-exp.y: Replace "parse_language" with method call.
3565 (yylex): Replace "parse_language" with method call.
3567 (yylex): Replace "parse_language" with method call.
3568 * go-exp.y (classify_name): Replace "parse_language" with method
3570 * f-exp.y (yylex): Replace "parse_language" with method call.
3571 * d-exp.y (lex_one_token): Replace "parse_language" with method
3574 (lex_one_token, classify_name, yylex): Replace "parse_language"
3576 * ada-exp.y (find_primitive_type, type_char)
3577 (type_system_address): Replace "parse_language" with method call.
3579 2019-04-04 Tom Tromey <tom@tromey.com>
3581 * rust-exp.y: Replace "parse_gdbarch" with method call.
3582 * parse.c (write_dollar_variable, insert_type_address_space):
3583 Replace "parse_gdbarch" with method call.
3584 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3586 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3588 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3589 "parse_gdbarch" with method call.
3590 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3592 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3593 "parse_gdbarch" with method call.
3594 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3595 "parse_gdbarch" with method call.
3596 * c-exp.y (parse_type, parse_number, classify_name): Replace
3597 "parse_gdbarch" with method call.
3598 * ada-lex.l: Replace "parse_gdbarch" with method call.
3599 * ada-exp.y (parse_type, find_primitive_type, type_char)
3600 (type_system_address): Replace "parse_gdbarch" with method call.
3602 2019-04-04 Tom Tromey <tom@tromey.com>
3604 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3605 * stap-probe.c (stap_parse_argument): Update.
3606 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3607 initial_size parameter.
3608 * rust-exp.y (rust_lex_tests): Update.
3609 * parse.c (parser_state): Update.
3610 (parse_exp_in_context): Update.
3611 * parser-defs.h (struct parser_state) <parser_state>: Remove
3612 "initial_size" parameter.
3614 2019-04-04 Tom Tromey <tom@tromey.com>
3616 * parser-defs.h (increase_expout_size): Don't declare.
3617 * parse.c (increase_expout_size): Now static.
3619 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3621 * gnu-nat.c (gnu_nat_target::wait): Fix
3622 target_waitstatus_to_string call.
3624 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3626 * eval.c (evaluate_subexp_standard): Handle internal functions
3627 during Fortran function call handling.
3629 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3631 * NEWS: Mention new internal functions.
3632 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3633 (read_base_type): Use dwarf2_init_complex_target_type.
3634 * value.c (creal_internal_fn): New function.
3635 (cimag_internal_fn): New function.
3636 (_initialize_values): Register new internal functions.
3638 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3640 * infrun.c (stop_all_threads): If debug_infrun, always
3641 trace the wait status after wait_one, using
3642 target_waitstatus_to_string and target_pid_to_str.
3643 (handle_inferior_event): Replace various trace of
3644 wait status kind by a single trace.
3645 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3646 wait status kind image by target_waitstatus_to_string.
3647 * target/waitstatus.c (target_waitstatus_to_string): Fix
3650 2019-04-01 Tom Tromey <tromey@adacore.com>
3653 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3655 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3656 Pedro Alves <palves@redhat.com>
3658 * top.c (quit_force): Call 'finalize_values'.
3659 * value.c (finalize_values): New function.
3660 * value.h (finalize_values): Declare.
3662 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3664 * NEWS: Announce $_gdb_major and $_gdb_minor.
3666 * top.c (init_gdb_version_vars): New function.
3667 (gdb_init): Call init_gdb_version_vars.
3669 2019-03-29 Tom Tromey <tromey@adacore.com>
3671 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3672 help text. Remove dead code.
3674 2019-03-29 Keith Seitz <keiths@redhat.com>
3676 From Siddhesh Poyarekar:
3677 * f-lang.h (f77_get_upperbound): Return LONGEST.
3678 (f77_get_lowerbound): Likewise.
3679 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3680 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3682 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3683 plongest to format print it.
3684 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3685 (f77_get_upperbound): Likewise.
3686 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3687 LOWER_BOUND to LONGEST.
3688 (f77_create_arrayprint_offset_tbl): Likewise.
3690 2019-03-29 Keith Seitz <keiths@redhat.com>
3692 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3693 %s/pulongest for TYPE_LENGTH instead of %d in format
3695 * ada-typerint.c (ada_print_type): Likewise.
3696 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3697 * compile/compile-c-support.c (generate_register_struct): Likewise.
3698 * gdbtypes.c (recursive_dump_type): Likewise.
3699 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3700 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3701 instead of %d in format strings.
3702 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3703 to std::min to ULONGEST.
3704 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3705 instead of %d in format strings.
3706 * tracepoint.c (info_scope_command): Likewise.
3707 * typeprint.c (print_offset_data::update)
3708 (print_offset_data::finish): Likewise.
3709 * xtensa-tdep.c (xtensa_store_return_value)
3710 (xtensa_push_dummy_call): Likewise.
3712 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3714 * windows-nat.c (display_selector): Fixed format specifications
3717 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3719 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3721 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3723 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3724 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3725 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3726 (nios2_linux_init_abi): Install it.
3728 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3730 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3732 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3734 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3736 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3737 Tom Tromey <tromey@adacore.com>
3739 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3741 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3743 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3744 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3745 method to compute the bounds of range types. Also print "[evaluated]"
3746 if the bounds' values come from a dynamic evaluation.
3748 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3750 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3751 whitespace when pretty printing is on.
3753 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3755 * ppc-linux-nat.c: Add include.
3757 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3759 * NEWS: Mention AArch64 Pointer Authentication.
3761 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3763 * arm-linux-nat.c: Add include.
3765 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3767 * source-cache.c (source_cache::get_source_lines): Re-read
3768 fullname after calling open_source_file.
3770 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3772 * NEWS: Mention TLS support for FreeBSD.
3774 2019-03-25 Tom Tromey <tromey@adacore.com>
3776 * minsyms.c (BUNCH_SIZE): Update comment.
3777 (~minimal_symbol_reader): Remove old comment.
3778 (compact_minimal_symbols): Update comment.
3779 (minimal_symbol_reader::install): Remove old comment. Update
3782 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3784 * s390-linux-nat.c: Add include.
3786 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3788 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3789 Call linux_get_hwcap.
3790 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3792 (aarch64_linux_get_hwcap): Remove function.
3793 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3795 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3797 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3798 * linux-tdep.c (linux_get_hwcap): Add function.
3799 (linux_get_hwcap2): Likewise.
3800 * linux-tdep.h (linux_get_hwcap): Add declaration.
3801 (linux_get_hwcap2): Likewise.
3802 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3803 (ppc_linux_get_hwcap2): Likewise.
3804 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3806 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3807 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3808 (ppc_linux_nat_target::read_description): Likewise.
3809 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3810 * s390-linux-nat.c: Likewise.
3811 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3813 2019-03-24 Tom Tromey <tom@tromey.com>
3815 * ada-lang.c (standard_lookup): Simplify initialization.
3816 (ada_lookup_symbol_nonlocal): Simplify return.
3817 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3818 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3819 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3820 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3822 * solib.c (solib_global_lookup): Simplify.
3823 * symtab.c (null_block_symbol): Remove.
3824 (symbol_cache_lookup): Simplify returns.
3825 (lookup_language_this): Simplify returns.
3826 (lookup_symbol_aux): Simplify return.
3827 (lookup_local_symbol): Simplify returns.
3828 (lookup_global_symbol_from_objfile): Simplify return.
3829 (lookup_symbol_in_objfile_symtabs)
3830 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3831 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3832 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3833 * cp-namespace.c (cp_lookup_bare_symbol)
3834 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3835 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3836 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3837 (cp_lookup_symbol_via_imports): Simplify initialization.
3838 (find_symbol_in_baseclass): Likewise.
3839 * symtab.h (null_block_symbol): Remove.
3840 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3841 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3842 (d_lookup_symbol_module): Likewise.
3843 (find_symbol_in_baseclass): Simplify initialization.
3845 2019-03-24 Tom Tromey <tom@tromey.com>
3847 * expression.h: Don't include symtab.h.
3848 (struct block): Forward declare.
3850 2019-03-24 Tom Tromey <tom@tromey.com>
3852 * c-exp.y (typebase): Remove casts.
3853 * gdbtypes.c (lookup_unsigned_typename, )
3854 (lookup_signed_typename): Remove cast.
3855 * eval.c (parse_to_comma_and_eval): Remove cast.
3856 * parse.c (write_dollar_variable): Remove cast.
3857 * block.h (struct block) <superblock>: Now const.
3858 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3859 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3860 (map_block): Make "block" const.
3861 * symfile.h (struct quick_symbol_functions)
3862 <map_matching_symbols>: Constify block argument to "callback".
3863 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3865 (find_pc_sect_compunit_symtab): Make "b" const.
3866 (find_symbol_at_address): Likewise.
3867 (search_symbols): Likewise.
3868 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3869 (dw2_debug_names_lookup_symbol): Likewise.
3870 (dw2_map_matching_symbols): Update.
3871 * p-valprint.c (pascal_val_print): Remove "block".
3872 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3873 (aux_add_nonlocal_symbols): Make "block" const.
3874 (resolve_subexp): Remove cast.
3875 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3877 (iterate_over_file_blocks): Likewise.
3878 * f-exp.y (%union) <bval>: Remove.
3879 * coffread.c (patch_opaque_types): Make "b" const.
3880 * spu-tdep.c (spu_catch_start): Make "block" const.
3881 * c-valprint.c (print_unpacked_pointer): Remove "block".
3882 * symmisc.c (dump_symtab_1): Make "b" const.
3883 (block_depth): Make "block" const.
3884 * d-exp.y (%union) <bval>: Remove.
3885 * cp-support.h (cp_lookup_rtti_type): Update.
3886 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3887 * psymtab.c (psym_lookup_symbol): Make "block" const.
3888 (maintenance_check_psymtabs): Make "b" const.
3889 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3890 (enumerate_locals, enumerate_args): Update.
3891 * python/py-symtab.c (stpy_global_block): Make "block" const.
3892 (stpy_static_block): Likewise.
3893 * inline-frame.c (block_starting_point_at): Make "new_block"
3895 * block.c (find_block_in_blockvector): Make return type const.
3896 (blockvector_for_pc_sect): Make "b" const.
3897 (find_block_in_blockvector): Make "b" const.
3899 2019-03-23 Tom Tromey <tom@tromey.com>
3901 * varobj.c (varobj_create): Update.
3902 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3903 * printcmd.c (display_command, do_one_display): Don't reset
3905 * parser-defs.h (enum innermost_block_tracker_type): Move to
3907 (innermost_block): Update comment.
3908 * parse.c (parse_exp_1): Add tracker_types parameter.
3909 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3910 tracker_types parameter. Reset innermost_block.
3911 (parse_exp_in_context): Remove.
3912 (parse_expression_for_completion): Update.
3913 * objfiles.c (~objfile): Don't reset expression_context_block or
3915 * expression.h (enum innermost_block_tracker_type): Move from
3917 (parse_exp_1): Add tracker_types parameter.
3918 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3919 reset innermost_block.
3921 2019-03-23 Tom Tromey <tom@tromey.com>
3923 * objfiles.h: Include bcache.h.
3925 2019-03-23 Tom Tromey <tom@tromey.com>
3927 * linespec.c (get_current_search_block): Use
3928 scoped_restore_current_language.
3929 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3931 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3932 Jiong Wang <jiong.wang@arm.com>
3934 * aarch64-linux-tdep.c
3935 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3937 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3939 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3940 Jiong Wang <jiong.wang@arm.com>
3942 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3944 (aarch64_analyze_prologue_test): Add PACIASP test.
3945 (aarch64_prologue_prev_register): Unmask PC value.
3947 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3948 Jiong Wang <jiong.wang@arm.com>
3950 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3951 (aarch64_dwarf2_prev_register): Unmask PC value.
3952 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3953 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3954 DW_CFA_AARCH64_negate_ra_state.
3955 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3957 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3958 Jiong Wang <jiong.wang@arm.com>
3960 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3962 (aarch64_pseudo_register_name): Likewise.
3963 (aarch64_pseudo_register_type): Likewise.
3964 (aarch64_pseudo_register_reggroup_p): Likewise.
3965 (aarch64_gdbarch_init): Add pauth registers.
3966 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3967 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3968 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3969 (struct gdbarch_tdep): Add regnum for ra_state.
3971 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3972 Jiong Wang <jiong.wang@arm.com>
3974 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3976 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3977 Jiong Wang <jiong.wang@arm.com>
3979 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3981 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3982 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3983 (aarch64_gdbarch_init): Add puth registers.
3984 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3985 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3986 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3988 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3989 Jiong Wang <jiong.wang@arm.com>
3991 * aarch64-linux-nat.c
3992 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3993 * aarch64-linux-tdep.c
3994 (aarch64_linux_core_read_description): Likewise.
3995 (aarch64_linux_get_hwcap): New function.
3996 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3997 (aarch64_linux_get_hwcap): New declaration.
3999 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4000 Jiong Wang <jiong.wang@arm.com>
4002 * aarch64-linux-nat.c
4003 (aarch64_linux_nat_target::read_description): Add pauth param.
4004 * aarch64-linux-tdep.c
4005 (aarch64_linux_core_read_description): Likewise.
4006 * aarch64-tdep.c (struct target_desc): Add in pauth.
4007 (aarch64_read_description): Add pauth param.
4008 (aarch64_gdbarch_init): Likewise.
4009 * aarch64-tdep.h (aarch64_read_description): Likewise.
4010 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4011 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4012 * features/Makefile: Add new files.
4013 * features/aarch64-pauth.c: New file.
4014 * features/aarch64-pauth.xml: New file.
4016 2019-03-20 Tom Tromey <tromey@adacore.com>
4018 * infrun.c (handle_inferior_event): Rename from
4019 handle_inferior_event_1. Create a scoped_value_mark.
4020 (handle_inferior_event): Remove.
4022 2019-03-19 Tom Tromey <tromey@adacore.com>
4024 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
4025 * infrun.h (print_stop_event): Add "displays" parameter.
4026 * infrun.c (print_stop_event): Add "displays" parameter.
4028 2019-03-19 Pedro Alves <palves@redhat.com>
4030 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
4031 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
4032 to -1. Fix TABs vs spaces.
4033 (tui_ui_out::tui_ui_out): Don't initialize fields here.
4034 * tui/tui-out.h (tui_ui_out) Add intro comments.
4035 <m_line, m_start_of_line>: In-class initialize, and add describing
4038 2019-03-18 Alan Hayward <alan.hayward@arm.com>
4040 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
4042 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
4044 2019-03-18 Pedro Alves <palves@redhat.com>
4045 Eli Zaretskii <eliz@gnu.org>
4047 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
4048 m_line and m_start_of_line.
4050 2019-03-18 Eli Zaretskii <eliz@gnu.org>
4052 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
4053 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
4054 it returns a newline. This fixes a regression in TU mode, whereby
4055 the next line is output on the same screen line as the user input.
4057 2019-03-18 Tom Tromey <tromey@adacore.com>
4059 * minsyms.c (minimal_symbol_reader::install): Remove call to
4062 2019-03-18 Pedro Alves <palves@redhat.com>
4064 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
4066 (apply_style): New, factored out from ...
4067 (apply_ansi_escape): ... this. Handle reverse video mode.
4068 (tui_set_reverse_mode): New function.
4069 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
4070 * tui/tui-winsource.c (tui_show_source_line): Use
4071 tui_set_reverse_mode instead of setting A_STANDOUT.
4072 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
4075 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
4077 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
4080 2019-03-18 Tom Tromey <tromey@adacore.com>
4082 * ada-lang.c (empty_array): Add "high" parameter.
4083 (ada_evaluate_subexp): Update.
4085 2019-03-17 Sergei Trofimovich <siarheit@google.com>
4087 * unittests/string_view-selftests.c: Define
4088 _initialize_string_view_selftests unconditionally.
4090 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4093 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
4095 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4098 * windows-nat.c (display_selector): Fix format specifiers.
4100 2019-03-17 Eli Zaretskii <eliz@gnu.org>
4102 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
4103 tui_refill_source_window instead of tui_refresh_win, to update the
4104 current execution line. This fixes redisplay of the current line
4105 when stepping through the code with "next" or "step".
4107 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4109 * source-cache.c (source_cache::get_source_lines): Call
4110 find_source_lines to initialize s->nlines. This fixes vertical
4111 scrolling of TUI source window when the DOWN arrow is pressed.
4113 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4115 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
4116 linux-thread-db.c (_initialize_thread_db): Likewise.
4118 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4120 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
4121 wclrtoeol in tui_show_source_line". This reverts changes made in
4122 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
4124 2019-03-15 Tom Tromey <tom@tromey.com>
4126 * symtab.h (struct minimal_symbol): Derive from
4127 general_symbol_info.
4128 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
4129 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4130 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4131 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4132 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
4133 (MSYMBOL_SEARCH_NAME): Update.
4134 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
4135 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
4136 * minsyms.c (minimal_symbol_reader::record_full): Update.
4138 2019-03-15 Tom Tromey <tom@tromey.com>
4140 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
4142 2019-03-15 Tom Tromey <tom@tromey.com>
4144 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
4146 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
4148 * minsyms.c (lookup_minimal_symbol_by_pc_section)
4149 (build_minimal_symbol_hash_tables)
4150 (minimal_symbol_reader::install): Update.
4152 2019-03-15 Tom Tromey <tom@tromey.com>
4154 * symtab.c (create_demangled_names_hash): Update.
4155 (symbol_set_names): Update.
4156 * objfiles.h (struct objfile_per_bfd_storage)
4157 <demangled_names_hash>: Now an htab_up.
4158 * objfiles.c (objfile_per_bfd_storage): Simplify.
4160 2019-03-15 Tom Tromey <tom@tromey.com>
4162 * objfiles.h (struct objfile_per_bfd_storage): Declare
4164 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
4166 (get_objfile_bfd_data): Use new. Don't initialize
4168 (free_objfile_per_bfd_storage): Remove.
4169 (objfile_bfd_data_free, objfile::~objfile): Use delete.
4171 2019-03-15 Tom Tromey <tom@tromey.com>
4173 * symfile.c (reread_symbols): Update.
4174 * objfiles.c (objfile::objfile): Update.
4175 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
4176 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
4178 (minimal_symbol_reader::install): Update.
4179 (terminate_minimal_symbol_table): Remove.
4180 * jit.c (jit_object_close_impl): Update.
4182 2019-03-15 Tom Tromey <tom@tromey.com>
4184 * minsyms.c (minimal_symbol_reader::record_full): Remove some
4187 2019-03-15 Tom Tromey <tom@tromey.com>
4189 * objfiles.h (struct objfile_per_bfd_storage)
4190 <demangled_hash_languages>: Now a bitset.
4191 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
4192 (lookup_minimal_symbol): Update.
4194 2019-03-15 Tom Tromey <tom@tromey.com>
4196 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
4197 Don't return the symbol.
4198 * coffread.c (record_minimal_symbol): Use record_full.
4200 2019-03-14 Eli Zaretskii <eliz@gnu.org>
4202 The MS-Windows port of ncurses fails to switch to a color pair if
4203 one or both of the colors are the implicit default colors. This
4204 change records the default colors when TUI is initialized, and
4205 then specifies them explicitly when a color pair uses the default
4206 colors. This allows color styling in TUI mode on MS-Windows.
4208 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
4210 (tui_initialize_io) [__MINGW32__]: Record the default terminal
4211 colors in ncurses_norm_attr.
4212 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
4213 "none", replace it with the default color recorded in
4216 2019-03-14 Tom Tromey <tromey@adacore.com>
4218 * source-cache.h (class source_cache) <get_source_lines>: Return
4220 * source-cache.c (source_cache::extract_lines): Handle case where
4221 first_pos==npos. Return std::string.
4222 (source_cache::get_source_lines): Update.
4224 2019-03-14 Tom Tromey <tromey@adacore.com>
4226 * NEWS: Add item for "style sources" commands.
4227 * source-cache.c (source_cache::get_source_lines): Check
4229 * cli/cli-style.c (source_styling): New global.
4230 (_initialize_cli_style): Add "style sources" commands.
4231 (show_style_sources): New function.
4232 * cli/cli-style.h (source_styling): Declare.
4234 2019-03-14 Pedro Alves <palves@redhat.com>
4235 Tom Tromey <tromey@adacore.com>
4237 * tui/tui-winsource.h (tui_refill_source_window): Declare.
4238 * tui/tui-winsource.c (tui_refill_source_window): New function,
4240 (tui_horizontal_source_scroll): ... here. Move some logic.
4241 * cli/cli-style.c (set_style_enabled): Notify new observable.
4242 * tui/tui-hooks.c (tui_redisplay_source): New function.
4243 (tui_attach_detach_observers): Attach or detach
4244 tui_redisplay_source.
4245 * observable.h (source_styling_changed): New observable.
4246 * observable.c: Define source_styling_changed observable.
4248 2019-03-13 Tom Tromey <tromey@adacore.com>
4250 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
4251 (i386_gnu_nat_target::store_registers): Update.
4252 * target-debug.h (target_debug_print_std_string): New macro.
4253 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4254 * windows-tdep.c (display_one_tib): Update.
4255 * tui/tui-stack.c (tui_make_status_line): Update.
4256 * top.c (print_inferior_quit_action): Update.
4257 * thread.c (thr_try_catch_cmd): Update.
4258 (add_thread_with_info): Update.
4259 (thread_target_id_str): Update.
4260 (thr_try_catch_cmd): Update.
4261 (thread_command): Update.
4262 (thread_find_command): Update.
4263 * record-btrace.c (record_btrace_target::info_record)
4264 (record_btrace_resume_thread, record_btrace_target::resume)
4265 (record_btrace_cancel_resume, record_btrace_step_thread)
4266 (record_btrace_target::wait, record_btrace_target::wait)
4267 (record_btrace_target::wait, record_btrace_target::stop): Update.
4268 * progspace.c (print_program_space): Update.
4269 * process-stratum-target.c
4270 (process_stratum_target::thread_address_space): Update.
4271 * linux-fork.c (linux_fork_mourn_inferior)
4272 (detach_checkpoint_command, info_checkpoints_command)
4273 (linux_fork_context): Update.
4274 (linux_fork_detach): Update.
4275 (class scoped_switch_fork_info): Update.
4276 (delete_checkpoint_command): Update.
4277 * infrun.c (follow_fork_inferior): Update.
4278 (follow_fork_inferior): Update.
4279 (proceed_after_vfork_done): Update.
4280 (handle_vfork_child_exec_or_exit): Update.
4281 (follow_exec): Update.
4282 (displaced_step_prepare_throw): Update.
4283 (displaced_step_restore): Update.
4284 (start_step_over): Update.
4286 (clear_proceed_status_thread): Update.
4288 (print_target_wait_results): Update.
4289 (do_target_wait): Update.
4290 (context_switch): Update.
4291 (stop_all_threads): Update.
4292 (restart_threads): Update.
4293 (finish_step_over): Update.
4294 (handle_signal_stop): Update.
4295 (switch_back_to_stepped_thread): Update.
4296 (keep_going_pass_signal): Update.
4297 (print_exited_reason): Update.
4298 (normal_stop): Update.
4299 * inferior.c (inferior_pid_to_str): Change return type.
4300 (print_selected_inferior): Update.
4301 (add_inferior): Update.
4302 (detach_inferior): Update.
4303 * dummy-frame.c (fprint_dummy_frames): Update.
4304 * dcache.c (dcache_info_1): Update.
4305 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4306 (btrace_fetch, btrace_clear): Update.
4307 * linux-tdep.c (linux_core_pid_to_str): Change return type.
4308 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
4310 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
4311 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
4312 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
4313 * gdbarch.c, gdbarch.h: Rebuild.
4314 * gdbarch.sh (core_pid_to_str): Change return type.
4315 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
4317 (windows_nat_target::pid_to_str): Change return type.
4318 (windows_delete_thread): Update.
4319 (windows_nat_target::attach): Update.
4320 (windows_nat_target::files_info): Update.
4321 * target-delegates.c: Rebuild.
4322 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
4324 (sol_thread_target::pid_to_str): Change return type.
4325 * remote.c (class remote_target) <pid_to_str>: Change return
4327 (remote_target::pid_to_str): Change return type.
4328 (extended_remote_target::attach, remote_target::remote_stop_ns)
4329 (remote_target::remote_notif_remove_queued_reply)
4330 (remote_target::push_stop_reply, remote_target::disable_btrace):
4332 (extended_remote_target::attach): Update.
4333 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
4335 (gdbsim_target::pid_to_str): Change return type.
4336 * ravenscar-thread.c (struct ravenscar_thread_target)
4337 <pid_to_str>: Change return type.
4338 (ravenscar_thread_target::pid_to_str): Change return type.
4339 * procfs.c (class procfs_target) <pid_to_str>: Change return
4341 (procfs_target::pid_to_str): Change return type.
4342 (procfs_target::attach): Update.
4343 (procfs_target::detach): Update.
4344 (procfs_target::fetch_registers): Update.
4345 (procfs_target::store_registers): Update.
4346 (procfs_target::wait): Update.
4347 (procfs_target::files_info): Update.
4348 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
4349 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
4351 (nto_procfs_target::pid_to_str): Change return type.
4352 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
4353 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
4355 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
4357 (attach_proc_task_lwp_callback, get_detach_signal)
4358 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
4359 (linux_nat_target::resume, wait_lwp, stop_callback)
4360 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
4361 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
4362 (linux_nat_wait_1, resume_stopped_resumed_lwps)
4363 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
4364 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
4366 (inf_ptrace_target::attach): Update.
4367 (inf_ptrace_target::files_info): Update.
4368 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
4370 (go32_nat_target::pid_to_str): Change return type.
4371 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
4372 (gnu_nat_target::wait): Update.
4373 (gnu_nat_target::wait): Update.
4374 (gnu_nat_target::resume): Update.
4375 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
4376 (fbsd_nat_target::wait): Update.
4377 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
4379 (darwin_nat_target::attach): Update.
4380 * corelow.c (class core_target) <pid_to_str>: Change return type.
4381 (core_target::pid_to_str): Change return type.
4382 * target.c (normal_pid_to_str): Change return type.
4383 (default_pid_to_str): Likewise.
4384 (target_pid_to_str): Change return type.
4385 (target_translate_tls_address): Update.
4386 (target_announce_detach): Update.
4387 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
4389 (bsd_uthread_target::pid_to_str): Change return type.
4390 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
4392 (bsd_kvm_target::pid_to_str): Change return type.
4393 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
4395 (aix_thread_target::pid_to_str): Change return type.
4396 * target.h (struct target_ops) <pid_to_str>: Change return type.
4397 (target_pid_to_str, normal_pid_to_str): Likewise.
4398 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4400 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4402 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4404 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4406 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4408 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4411 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4413 * NEWS: Mention that the new default MI version is 3. Mention
4414 changes to the output of commands and events that deal with
4415 multi-location breakpoints.
4416 * breakpoint.c: Include "mi/mi-out.h".
4417 (print_one_breakpoint): Change output syntax if using MI version
4419 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4421 (mi_multi_location_breakpoint_output_fixed): New.
4422 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4423 (mi_cmd_fix_multi_location_breakpoint_output): New.
4424 (mi_multi_location_breakpoint_output_fixed): New.
4425 * mi/mi-cmds.c (mi_cmds): Register command
4426 -fix-multi-location-breakpoint-output.
4427 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4430 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4432 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4433 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4434 instantiate mi_ui_out based on interpreter name.
4435 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4436 * mi/mi-main.c (mi_load_progress): Likewise.
4438 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4440 * NEWS: Combine separate "New targets" sections for 8.3.
4442 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4444 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4445 (ppcfbsd_init_abi): Install gdbarch
4446 "fetch_tls_load_module_address" and "get_thread_local_address"
4449 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4451 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4452 (riscv_fbsd_init_abi): Install gdbarch
4453 "fetch_tls_load_module_address" and "get_thread_local_address"
4456 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4458 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4459 (i386fbsd_init_abi): Install gdbarch
4460 "fetch_tls_load_module_address" and "get_thread_local_address"
4463 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4465 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4466 (amd64fbsd_init_abi): Install gdbarch
4467 "fetch_tls_load_module_address" and "get_thread_local_address"
4470 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4472 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4473 (struct fbsd_pspace_data): New type.
4474 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4475 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4476 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4477 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4478 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4480 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4482 * gdbtypes.c (lookup_struct_elt): New function.
4483 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4484 * gdbtypes.h (struct struct_elt): New type.
4485 (lookup_struct_elt): New prototype.
4487 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4489 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4490 remove disabled code block.
4492 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4494 * gdbarch.sh (get_thread_local_address): New method.
4495 * gdbarch.h, gdbarch.c: Regenerate.
4496 * target.c (target_translate_tls_address): Use
4497 gdbarch_get_thread_local_address if present instead of
4498 target::get_thread_local_address.
4500 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4502 * target.h (target::get_thread_local_address): Update comment.
4504 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4506 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4507 objfile->separate_debug_objfile_backlink if not NULL.
4509 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4511 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4512 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4513 (amd64bsd_store_inferior_registers): Likewise.
4514 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4515 Enable segment base registers.
4516 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4517 PT_GETFSBASE and PT_GETGSBASE.
4518 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4520 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4521 segment base registers.
4522 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4524 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4526 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4527 Update calls to i386_target_description to add 'segments'
4529 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4530 add segment base registers.
4531 * arch/i386.c (i386_create_target_description): Add 'segments'
4532 parameter to enable segment base registers.
4533 * arch/i386.h (i386_create_target_description): Likewise.
4534 * features/i386/32bit-segments.xml: New file.
4535 * features/i386/32bit-segments.c: Generate.
4536 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4537 call to i386_target_description to add 'segments' parameter.
4538 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4539 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4540 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4541 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4542 if feature is present.
4543 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4544 Add 'segments' parameter to call to i386_target_description.
4545 (i386_target_description): Add 'segments' parameter to enable
4546 segment base registers.
4547 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4548 to call to i386_target_description.
4549 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4550 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4551 Define I386_NUM_REGS.
4552 (i386_target_description): Add 'segments' parameter to enable
4553 segment base registers.
4555 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4558 * source-cache.c: #undef open and close, to avoid unresolved
4559 externals during linking.
4561 2019-03-12 Tom Tromey <tromey@adacore.com>
4563 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4564 const. Add initializers.
4565 (_initialize_remote): Don't initialize ptid globals.
4567 2019-03-12 Pedro Alves <palves@redhat.com>
4569 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4571 2019-03-12 Pedro Alves <palves@redhat.com>
4573 * cp-name-parser.y (main): Remove unused 'len' variable.
4575 2019-03-12 Tom Tromey <tromey@adacore.com>
4577 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4578 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4580 2019-03-12 Tom Tromey <tromey@adacore.com>
4582 * linux-nat.c (iterate_over_lwps): Update.
4583 (stop_callback): Remove parameter.
4584 (stop_wait_callback, detach_callback, resume_set_callback)
4585 (select_singlestep_lwp_callback, set_ignore_sigint)
4586 (status_callback, resumed_callback, resume_clear_callback)
4587 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4589 (linux_nat_target::detach, linux_nat_target::resume)
4590 (linux_stop_and_wait_all_lwps, select_event_lwp)
4591 (linux_nat_filter_event, linux_nat_wait_1)
4592 (linux_nat_target::kill, linux_nat_target::stop)
4593 (linux_nat_target::stop): Update.
4594 (linux_nat_resume_callback): Change type.
4595 (resume_stopped_resumed_lwps, count_events_callback)
4596 (select_event_lwp_callback): Likewise.
4597 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4598 * arm-linux-nat.c (struct update_registers_data): Remove.
4599 (update_registers_callback): Change type.
4600 (arm_linux_insert_hw_breakpoint1): Update.
4601 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4603 (x86_linux_dr_set_addr): Update.
4604 (x86_linux_dr_set_control): Update.
4605 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4606 (iterate_over_lwps): Use gdb::function_view.
4607 * nat/aarch64-linux-hw-point.c (struct
4608 aarch64_dr_update_callback_param): Remove.
4609 (debug_reg_change_callback): Change type.
4610 (aarch64_notify_debug_reg_change): Update.
4611 * s390-linux-nat.c (s390_refresh_per_info): Update.
4613 2019-03-11 Tom Tromey <tromey@adacore.com>
4615 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4616 redundant assignment to "this_cu".
4618 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4620 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4622 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4624 * gdbtypes.c (rank_one_type_parm_set): 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_struct): 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_complex): 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_float): 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_bool): 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_range): 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_char): 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_enum): 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_int): New function extracted
4674 (rank_one_type): ... this.
4676 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4678 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4680 (rank_one_type): ... this.
4682 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4684 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4686 (rank_one_type): ... this.
4688 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4690 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4692 (rank_one_type): ... this.
4694 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4696 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4697 inferior-events' shows the example events.
4699 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4701 Support styling on native MS-Windows console
4704 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4705 on MS-Windows if $TERM is not defined.
4707 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4709 * posix-hdep.c (gdb_console_fputs):
4710 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4712 * ui-file.h (gdb_console_fputs): Add prototype.
4714 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4715 back to fputs only if the former returns zero.
4717 2019-03-07 Tom Tromey <tom@tromey.com>
4719 * symmisc.c (print_symbol_bcache_statistics): Update.
4720 (print_objfile_statistics): Update.
4721 * symfile.c (allocate_symtab): Update.
4722 * stabsread.c: Don't include bcache.h.
4723 * psymtab.h (struct psymbol_bcache): Don't declare.
4724 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4725 (psymbol_bcache_init, psymbol_bcache_free)
4726 (psymbol_bcache_get_bcache): Don't declare.
4727 * psymtab.c (struct psymbol_bcache): Remove.
4728 (psymtab_storage::psymtab_storage): Update.
4729 (psymtab_storage::~psymtab_storage): Update.
4730 (psymbol_bcache_init, psymbol_bcache_free)
4731 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4732 (add_psymbol_to_bcache): Update.
4733 (allocate_psymtab): Update.
4734 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4735 macro_cache>: No longer pointers.
4736 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4737 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4738 * macrotab.c (macro_bcache): Update.
4739 * macroexp.c: Don't include bcache.h.
4740 * gdbtypes.c (check_types_worklist): Update.
4741 (types_deeply_equal): Remove TRY/CATCH. Update.
4742 * elfread.c (elf_symtab_read): Update.
4743 * dwarf2read.c: Don't include bcache.h.
4744 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4745 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4746 (print_bcache_statistics, bcache_memory_used): Don't declare.
4747 (struct bcache): Move from bcache.c. Add constructor, destructor,
4748 methods. Rename all data members.
4749 * bcache.c (struct bcache): Move to bcache.h.
4750 (bcache::expand_hash_table): Rename from expand_hash_table.
4752 (bcache::insert): Rename from bcache_full.
4753 (bcache::compare): Rename from bcache_compare.
4754 (bcache_xmalloc): Remove.
4755 (bcache::~bcache): Rename from bcache_xfree.
4756 (bcache::print_statistics): Rename from print_bcache_statistics.
4757 (bcache::memory_used): Rename from bcache_memory_used.
4759 2019-03-07 Pedro Alves <palves@redhat.com>
4761 * infrun.c (normal_stop): Also check for
4762 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4764 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4766 * f-lang.c (value_from_host_double): Moved to...
4767 * value.c (value_from_host_double): ...here.
4768 * value.h (value_from_host_double): Declare.
4769 * guile/scm-math.c (vlscm_convert_typed_number): Use
4770 value_from_host_double.
4771 (vlscm_convert_number): Likewise.
4772 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4773 * python/py-value.c (convert_value_from_python): Likewise.
4775 2019-03-06 Tom Tromey <tom@tromey.com>
4777 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4779 2019-03-06 Tom Tromey <tom@tromey.com>
4781 * utils.h (free_current_contents): Don't declare.
4782 * utils.c (free_current_contents): Remove.
4784 2019-03-06 Tom Tromey <tom@tromey.com>
4786 * top.c (quit_force): Update.
4787 * main.c (captured_command_loop): Update.
4788 * common/new-op.c (operator new): Update.
4789 * common/common-exceptions.c (struct catcher)
4790 <save_cleanup_chain>: Remove member.
4791 (exceptions_state_mc_init): Update.
4792 (exception_try_scope_entry): Return nullptr.
4793 (exception_try_scope_exit, exception_rethrow)
4794 (throw_exception_sjlj, throw_exception_cxx): Update.
4795 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4796 (all_cleanups, do_cleanups, discard_cleanups)
4797 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4798 (restore_cleanups, restore_final_cleanups): Don't declare.
4799 (do_final_cleanups): Remove parameter.
4800 * common/cleanups.c (cleanup_chain, make_cleanup)
4801 (make_cleanup_dtor, all_cleanups, do_cleanups)
4802 (discard_my_cleanups, discard_cleanups)
4803 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4804 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4805 (null_cleanup): Remove.
4806 (do_final_cleanups): Remove parameter.
4808 2019-03-06 Tom Tromey <tom@tromey.com>
4810 * remote.c (remote_target::remote_parse_stop_reply): Use
4813 2019-03-06 Tom Tromey <tom@tromey.com>
4815 * stabsread.c (struct stabs_field_info): Rename from field_info.
4816 <list, fnlist>: Add initializers.
4817 <obstack>: New member.
4818 (read_member_functions, read_struct_fields, read_baseclasses):
4819 Allocate on obstack. Don't use cleanups.
4820 (read_one_struct_field, read_member_functions, read_struct_fields)
4821 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4822 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4823 (read_struct_type): Update.
4825 2019-03-06 Tom Tromey <tom@tromey.com>
4827 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4828 * common/filestuff.h (make_cleanup_close): Don't declare.
4829 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4832 2019-03-06 Tom Tromey <tom@tromey.com>
4834 * solib-aix.c: Use make_scope_exit.
4836 2019-03-06 Tom Tromey <tom@tromey.com>
4838 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4839 Use make_scope_exit.
4841 2019-03-06 Tom Tromey <tom@tromey.com>
4843 * solib-svr4.c (disable_probes_interface): Remove parameter.
4844 (svr4_handle_solib_event): Use make_scope_exit.
4846 2019-03-06 Tom Tromey <tom@tromey.com>
4848 * remote.c (struct stop_reply_deleter): Remove.
4849 (stop_reply_up): Update.
4850 (struct stop_reply): Derive from notif_event. Don't typedef.
4851 <regcache>: Now a std::vector.
4852 (stop_reply_xfree): Remove.
4853 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4854 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4855 (remote_target::discard_pending_stop_replies): Use delete.
4856 (remote_target::remote_parse_stop_reply): Update.
4857 (remote_target::process_stop_reply): Update.
4858 * remote-notif.h (struct notif_event): Add virtual destructor.
4859 Remove "dtr" member.
4860 (struct notif_client) <alloc_event>: Return a unique_ptr.
4861 (notif_event_xfree): Don't declare.
4862 (notif_event_up): New typedef.
4863 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4864 (notif_event_xfree, do_notif_event_xfree): Remove.
4865 (remote_notif_state_xfree): Update.
4867 2019-03-06 Tom Tromey <tom@tromey.com>
4869 * infrun.c (displaced_step_clear_cleanup): Now a
4870 forward_scope_exit type.
4871 (displaced_step_prepare_throw): Update.
4872 (displaced_step_fixup): Update.
4874 2019-03-06 Tom Tromey <tom@tromey.com>
4876 * inferior.h (class inferior): Update comment.
4877 * gdbthread.h (class thread_info): Update comment.
4879 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4880 Tom Tromey <tom@tromey.com>
4882 * stabsread.h (struct stab_section_list): Remove.
4883 (coffstab_build_psymtabs): Update.
4884 * dbxread.c (symbuf_sections): Now a std::vector.
4885 (sect_idx): New global.
4886 (fill_symbuf): Update.
4887 (coffstab_build_psymtabs): Change type of stabsects parameter.
4889 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4891 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4892 (coff_locate_sections): Update.
4893 (coff_symfile_read): Remove cleanups. Update.
4894 (init_stringtab): Add storage parameter.
4895 (free_stringtab, free_stringtab_cleanup): Remove.
4896 (init_lineno): Add storage parameter.
4897 (free_linetab, free_linetab_cleanup): Remove.
4899 2019-03-06 Pedro Alves <palves@redhat.com>
4901 * linux-fork.c (fork_info::clobber_regs): Delete.
4902 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4903 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4905 (scoped_switch_fork_info::scoped_switch_fork_info)
4906 (checkpoint_command, linux_fork_context): Adjust
4907 fork_save_infrun_state calls.
4909 2019-03-06 Pedro Alves <palves@redhat.com>
4911 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4912 (inf_has_multiple_threads): Return 'bool' and rewrite using
4913 inferior_info::threads().
4915 2019-03-06 Pedro Alves <palves@redhat.com>
4917 * linux-fork.c: Include <list>.
4918 (fork_list): Now a std::list instance.
4919 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4920 (forks_exist_p, find_last_fork): Adjust.
4924 (free_fork): Delete, folded into fork_info::~fork_info().
4925 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4927 (init_fork_list): Delete.
4928 (linux_fork_killall, linux_fork_mourn_inferior)
4929 (linux_fork_detach, info_checkpoints_command): Adjust.
4930 (_initialize_linux_fork): No longer call init_fork_list.
4932 2019-03-06 Pedro Alves <palves@redhat.com>
4934 * linux-fork.c (new_fork): New, split out of ...
4935 (add_fork): ... this. Return void. Move "first fork" special
4936 case from here, to ...
4937 (checkpoint_command): ... here.
4938 * linux-linux.h (add_fork): Return void.
4940 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4942 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4944 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4945 Chris January <chris.january@arm.com>
4946 David Lecomber <david.lecomber@arm.com>
4948 * f-exp.y: New token, UNOP_INTRINSIC.
4949 (exp): New pattern using UNOP_INTRINSIC token.
4950 (f77_keywords): Add 'abs' keyword.
4951 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4952 (value_from_host_double): New function.
4953 (evaluate_subexp_f): Support UNOP_ABS.
4955 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4957 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4960 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4962 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4963 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4964 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4966 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4968 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4970 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4971 Chris January <chris.january@arm.com>
4973 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4974 * f-exp.y: Define 'KIND' token.
4975 (exp): New pattern for KIND expressions.
4976 (ptype): Handle types with a kind extension.
4977 (direct_abs_decl): Extend to spot kind extensions.
4978 (f77_keywords): Add 'kind' to the list.
4979 (push_kind_type): New function.
4980 (convert_to_kind_type): New function.
4981 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4982 * parse.c (operator_length_standard): Likewise.
4983 * parser-defs.h (enum type_pieces): Add tp_kind.
4984 * std-operator.def: Add UNOP_KIND.
4986 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4988 * f-exp.y (f_parse): Set yydebug.
4990 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4992 * f-lang.c (evaluate_subexp_f): New function.
4993 (exp_descriptor_f): New global.
4994 (f_language_defn): Use exp_descriptor_f instead of
4995 exp_descriptor_standard.
4997 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4999 * f-exp.y (struct token): Add comments.
5000 (dot_ops): Remove uppercase versions and the end marker.
5001 (f77_keywords): Likewise.
5002 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
5003 entries in the dot_ops array are case insensitive, and use
5004 strncasecmp to compare strings. Also some whitespace cleanup in
5005 this area. Similar for the f77_keywords array, except entries in
5006 this list might be case sensitive.
5008 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5010 * f-exp.y (struct f77_boolean_val): Add comments.
5011 (boolean_values): Remove uppercase versions, and end marker.
5012 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
5013 and use strncasecmp to achieve case insensitivity. Additionally,
5014 perform whitespace cleanup around this code.
5016 2019-03-06 Tom Tromey <tromey@adacore.com>
5018 * remote-sim.c (gdbsim_target_open): Use result of
5021 2019-03-06 Richard Bunt <richard.bunt@arm.com>
5022 Dirk Schubert <dirk.schubert@arm.com>
5023 Chris January <chris.january@arm.com>
5025 * eval.c (evaluate_subexp_standard): Call Fortran argument
5027 * f-lang.c (struct value): A value which can be passed into a
5028 Fortran function call.
5029 (fortran_argument_convert): Wrap Fortran arguments in a pointer
5031 (struct type): Value ready for a Fortran function call.
5032 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
5034 * f-lang.h (fortran_argument_convert): Declaration.
5035 (fortran_preserve_arg_pointer): Declaration.
5036 * infcall.c (value_arg_coerce): Call Fortran argument logic.
5038 2019-03-05 Tom Tromey <tromey@adacore.com>
5040 * python/py-prettyprint.c (print_string_repr): Remove #if.
5041 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
5043 2019-03-05 Tom Tromey <tromey@adacore.com>
5045 * target.c (the_dummy_target): Move later. Change type to
5047 (initialize_targets): Don't initialize the_dummy_target.
5049 2019-03-05 Tom Tromey <tromey@adacore.com>
5051 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
5052 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
5054 2019-03-05 Tom Tromey <tromey@adacore.com>
5056 * windows-nat.c (windows_nat_target::attach)
5057 (windows_nat_target::detach): Don't call gdb_flush.
5058 * valprint.c (generic_val_print, val_print, val_print_string):
5059 Don't call gdb_flush.
5060 * utils.c (defaulted_query): Don't call gdb_flush.
5061 * typeprint.c (print_type_scalar): Don't call gdb_flush.
5062 * target.c (target_announce_detach): Don't call gdb_flush.
5063 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
5064 * remote.c (extended_remote_target::attach): Don't call
5066 * procfs.c (procfs_target::detach): Don't call gdb_flush.
5067 * printcmd.c (do_examine): Don't call gdb_flush.
5068 (info_display_command): Don't call gdb_flush.
5069 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
5070 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
5071 * memattr.c (info_mem_command): Don't call gdb_flush.
5072 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
5073 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
5074 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
5075 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
5076 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
5077 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
5078 (gnu_nat_target::detach): Don't call gdb_flush.
5079 * f-valprint.c (f_val_print): Don't call gdb_flush.
5080 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
5081 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
5082 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
5084 * c-valprint.c (c_val_print): Don't call gdb_flush.
5085 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
5087 2019-03-05 Tom Tromey <tromey@adacore.com>
5089 * varobj.c (update_dynamic_varobj_children): Update.
5090 (install_default_visualizer): Use reset, not release.
5091 * value.c (set_internalvar): Update.
5092 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
5093 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
5094 ATTRIBUTE_UNUSED_RESULT.
5096 2019-03-05 Tom Tromey <tromey@adacore.com>
5098 * remote.c (class scoped_remote_fd) <release>: Add
5099 ATTRIBUTE_UNUSED_RESULT.
5101 2019-03-05 Tom Tromey <tromey@adacore.com>
5103 * macroexp.c (struct macro_buffer) <release>: Add
5104 ATTRIBUTE_UNUSED_RESULT.
5106 2019-03-05 Tom Tromey <tromey@adacore.com>
5108 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
5109 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
5110 ATTRIBUTE_UNUSED_RESULT.
5112 2019-03-05 Tom Tromey <tromey@adacore.com>
5114 * common/scoped_fd.h (class scoped_fd) <release>: Add
5115 ATTRIBUTE_UNUSED_RESULT.
5117 2019-03-05 Tom Tromey <tromey@adacore.com>
5119 * parser-defs.h (struct parser_state) <release>: Add
5120 ATTRIBUTE_UNUSED_RESULT.
5122 2019-03-05 Tom Tromey <tromey@adacore.com>
5124 * utils.h (class gdb_argv) <release>: Add
5125 ATTRIBUTE_UNUSED_RESULT.
5126 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
5128 2019-03-02 Eli Zaretskii <eliz@gnu.org>
5130 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
5131 for-loop range, to avoid compiler warnings.
5133 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
5134 avoid compiler warnings about unused variables.
5136 * NEWS: Mention end of support for native debugging on MS-Windows
5140 * common/netstuff.c:
5141 * gdbserver/gdbreplay.c
5142 * gdbserver/remote-utils.c:
5144 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
5145 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
5146 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
5147 'getaddrinfo' and 'freeaddrinfo' were not available before
5148 Windows XP, and mingw.org's MinGW headers by default define
5149 _WIN32_WINNT to 0x500.
5151 2019-03-01 Gary Benson <gbenson@redhat.com>
5153 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
5155 2019-02-28 Brian Vandenberg <phantall@gmail.com>
5156 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5159 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
5160 set_sigint_trap, clear_sigint_trap.
5162 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5164 * target.c (target_detach): Clear the regcache and the
5167 2019-02-27 Pedro Alves <palves@redhat.com>
5169 * utils.c (set_screen_size): When we cap the height/width sizes,
5170 tweak the corresponding command variable to show "unlimited":
5172 2019-02-27 Saagar Jha <saagar@saagarjha.com>
5173 Pedro Alves <palves@redhat.com>
5175 * utils.c (set_screen_size): Reduce "infinite" rows and columns
5176 before calling rl_set_screen_size.
5178 2019-02-27 Tom Tromey <tromey@adacore.com>
5180 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
5182 * python/py-value.c: Remove Python 2.4 workaround.
5183 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
5185 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
5186 Python 2.4 workaround.
5187 * python/python-internal.h: Remove Python 2.4 comment.
5188 (Py_ssize_t): Don't define.
5189 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
5190 (gdb_Py_DECREF): Remove Python 2.4 workaround.
5191 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
5192 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
5193 * python/python.c (do_start_initialization): Remove Python 2.4
5195 * python/py-prettyprint.c (class dummy_python_frame): Remove.
5196 (print_children): Remove Python 2.4 workaround.
5197 * python/py-inferior.c (buffer_procs): Remove Python 2.4
5199 (CHARBUFFERPROC_NAME): Remove.
5200 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
5201 Python 2.4 workaround.
5203 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5205 * NEWS: Note minimum Python version.
5207 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5209 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
5210 code from these functions. Remove corresponding ifdefs. Use
5211 Py_buffer_up instead of explicit calls to PyBuffer_Release.
5212 Remove gotos and target of gotos.
5213 (infpy_search_memory): Likewise.
5215 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5217 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
5218 (hppa_gdbarch_init): Don't register deleted functions with
5221 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5223 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
5224 (h8300_unwind_sp): Delete.
5225 (h8300_dummy_id): Delete.
5226 (h8300_gdbarch_init): Don't register deleted functions with
5229 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5231 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
5232 (ft32_unwind_pc): Delete.
5233 (ft32_unwind_sp): Delete.
5234 (ft32_gdbarch_init): Don't register deleted functions with
5237 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5239 * gdb/frv-tdep.c (frv_dummy_id): Delete.
5240 (frv_unwind_pc): Delete.
5241 (frv_unwind_sp): Delete.
5242 (frv_gdbarch_init): Don't register deleted functions with
5245 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5247 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
5248 (riscv_unwind_pc): Delete.
5249 (riscv_unwind_sp): Delete.
5250 (riscv_gdbarch_init): Don't register deleted functions with
5253 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5255 * gdb/csky-tdep.c (csky_dummy_id): Delete.
5256 (csky_unwind_pc): Delete.
5257 (csky_unwind_sp): Delete.
5258 (csky_gdbarch_init): Don't register deleted functions with
5261 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5263 * gdb/cris-tdep.c (cris_dummy_id): Delete.
5264 (cris_unwind_pc): Delete.
5265 (cris_unwind_sp): Delete.
5266 (cris_gdbarch_init): Don't register deleted functions with
5269 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5271 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
5272 (bfin_unwind_pc): Delete.
5273 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
5275 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5277 * gdb/arm-tdep.c (arm_dummy_id): Delete.
5278 (arm_unwind_pc): Delete.
5279 (arm_unwind_sp): Delete.
5280 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
5282 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5284 * gdb/arc-tdep.c (arc_dummy_id): Delete.
5285 (arc_unwind_pc): Delete.
5286 (arc_unwind_sp): Delete.
5287 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
5289 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5291 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
5292 (alpha_unwind_pc): Delete.
5293 (alpha_gdbarch_init): Don't register deleted functions with
5296 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5298 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
5299 (aarch64_unwind_pc): Delete.
5300 (aarch64_unwind_sp): Delete.
5301 (aarch64_gdbarch_init): Don't register deleted functions with
5304 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5306 * gdbtypes.c (type_align): Don't consider static members when
5307 computing structure alignment.
5309 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5311 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
5312 return 0 for other types.
5313 * arch-utils.c (default_type_align): Always return 0.
5314 * gdbarch.h: Regenerate.
5315 * gdbarch.sh (type_align): Extend comment.
5316 * gdbtypes.c (type_align): Add additional comments, always call
5317 gdbarch_type_align before applying the default rules.
5318 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
5319 generic code will then apply a suitable default.
5320 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
5321 types, return 0 for other types.
5323 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5325 * NEWS: Create a new section for the next release branch.
5326 Rename the section of the current branch, now that it has
5329 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5331 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
5332 * version.in: Bump version to 8.3.50.DATE-git.
5334 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
5336 * aix-thread.c (ptid_cmp): Remove unused variable.
5337 (get_signaled_thread): Likewise.
5338 (store_regs_user_thread): Likewise.
5339 (store_regs_kernel_thread): Likewise.
5340 (fetch_regs_kernel_thread): Remove shadowed variable.
5342 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
5344 * features/riscv/32bit-cpu.xml: Add register numbers.
5345 * features/riscv/32bit-fpu.c: Regenerate.
5346 * features/riscv/32bit-fpu.xml: Add register numbers.
5347 * features/riscv/64bit-cpu.xml: Add register numbers.
5348 * features/riscv/64bit-fpu.c: Regenerate.
5349 * features/riscv/64bit-fpu.xml: Add register numbers.
5351 2019-02-26 Kevin Buettner <kevinb@redhat.com>
5353 * NEWS: Mention two argument form of gdb.Value constructor.
5354 * python/py-value.c (convert_buffer_and_type_to_value): New
5356 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
5357 Add support for handling an optional second argument. Call
5358 convert_buffer_and_type_to_value as appropriate.
5359 * python/python-internal.h (Py_buffer_deleter): New struct.
5360 (Py_buffer_up): New typedef.
5362 2019-02-25 John Baldwin <jhb@FreeBSD.org>
5364 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
5365 instead of releasing ownership.
5367 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
5369 * dwarf2read.c (open_and_init_dwp_file): Call
5370 elf_numsections instead of bfd_count_sections to initialize
5371 dwp_file->num_sections.
5373 2019-02-25 Tom Tromey <tromey@adacore.com>
5375 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
5377 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
5379 * gcore.in: Add '--readnever' option when invoking GDB.
5381 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5383 * MAINTAINERS: Update my email address.
5385 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5387 * build-id.c (build_id_to_debug_bfd_1): New function.
5388 (build_id_to_debug_bfd): Look for separate debug file in
5391 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
5393 * gdbarch.sh: Update the copyright year range that is placed into
5396 2019-02-22 Keith Seitz <keiths@redhat.com>
5399 * linespec.c (create_sals_line_offset): Search for the default
5400 symtab's filename instead of its fullname.
5402 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5404 * NEWS: Update style defaults.
5406 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5408 * main.c (captured_main_1): Disable styling in batch mode.
5410 2019-02-20 Tom Tromey <tom@tromey.com>
5412 * symtab.c (symtab_symbol_info): Fix typos.
5414 2019-02-20 Tom Tromey <tromey@adacore.com>
5416 * findcmd.c (_initialize_mem_search): Use upper case for
5417 metasyntactic variables.
5419 2019-02-20 Alan Hayward <alan.hayward@arm.com>
5421 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5422 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5424 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5426 * top.h (source_file_name): Change to std::string.
5427 * top.c (source_file_name): Likewise.
5428 (command_line_input): Adjust.
5429 * cli/cli-script.c (script_from_file): Adjust.
5431 2019-02-19 Tom Tromey <tromey@adacore.com>
5433 * ravenscar-thread.c
5434 (ravenscar_thread_target::update_thread_list): Don't call
5435 ada_build_task_list.
5436 * ada-lang.h (ada_build_task_list): Don't declare.
5437 * ada-tasks.c (struct ada_tasks_inferior_data)
5438 <task_list_valid_p>: Now bool.
5439 (read_known_tasks, ada_task_list_changed)
5440 (ada_tasks_invalidate_inferior_data): Update.
5441 (read_known_tasks_array): Return bool.
5442 (read_known_tasks_list): Likewise.
5443 (read_known_tasks): Return void.
5444 (ada_build_task_list): Now static.
5446 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5448 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5449 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5451 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5453 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5454 variant for ada_tasks_pspace_data_handle and
5455 ada_tasks_inferior_data_handle.
5456 (ada_tasks_pspace_data_cleanup): New function.
5457 (ada_tasks_inferior_data_cleanup): New function.
5459 2019-02-17 Tom Tromey <tom@tromey.com>
5461 * macrotab.h (macro_source_fullname): Return a std::string.
5462 * macrotab.c (macro_include, check_for_redefinition)
5463 (macro_undef, macro_lookup_definition, foreach_macro)
5464 (foreach_macro_in_scope): Update.
5465 (macro_source_fullname): Return a std::string.
5466 * macrocmd.c (show_pp_source_pos): Update.
5468 2019-02-17 Tom Tromey <tom@tromey.com>
5470 * macrocmd.c (show_pp_source_pos): Style the file names.
5472 2019-02-17 Tom Tromey <tom@tromey.com>
5475 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5477 2019-02-17 Tom Tromey <tom@tromey.com>
5479 * ada-lang.c (user_select_syms): Use filtered printing.
5480 * utils.c (wrap_style): New global.
5481 (desired_style): Remove.
5482 (emit_style_escape): Add stream parameter.
5483 (set_output_style, reset_terminal_style, prompt_for_continue):
5485 (flush_wrap_buffer): Only flush gdb_stdout.
5486 (wrap_here): Set wrap_style.
5487 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5488 treat escape sequences as a character. Change when wrap buffer is
5490 (fputs_styled): Do not set the output style when the default is
5492 * ui-style.h (struct ui_file_style) <is_default>: New method.
5493 * source.c (print_source_lines_base): Emit escape sequences in one
5496 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5498 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5499 integers and enumeration types.
5501 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5503 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5504 instead of lookup_symbol_in_language
5505 (do_exact_match): New function.
5506 (ada_get_symbol_name_matcher): Return do_exact_match when
5507 doing a verbatim match.
5509 2019-02-15 Tom Tromey <tromey@adacore.com>
5511 * ravenscar-thread.c (ravenscar_thread_target::resume)
5512 (ravenscar_thread_target::wait): Special case wildcard requests.
5514 2019-02-15 Tom Tromey <tromey@adacore.com>
5516 * ravenscar-thread.c (base_ptid): Remove.
5517 (struct ravenscar_thread_target) <close>: New method.
5518 <m_base_ptid>: New member.
5519 <update_inferior_ptid, active_task, task_is_currently_active,
5520 runtime_initialized>: Declare methods.
5521 <ravenscar_thread_target>: Add constructor.
5522 (ravenscar_thread_target::task_is_currently_active)
5523 (ravenscar_thread_target::update_inferior_ptid)
5524 (ravenscar_runtime_initialized): Rename. Now methods.
5525 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5526 (ravenscar_thread_target::update_thread_list): Update.
5527 (ravenscar_thread_target::active_task): Now method.
5528 (ravenscar_thread_target::store_registers)
5529 (ravenscar_thread_target::prepare_to_store)
5530 (ravenscar_thread_target::prepare_to_store)
5531 (ravenscar_thread_target::mourn_inferior): Update.
5532 (ravenscar_inferior_created): Use "new" to create target.
5533 (ravenscar_thread_target::get_ada_task_ptid): Update.
5534 (_initialize_ravenscar): Don't initialize base_ptid.
5535 (ravenscar_ops): Remove global.
5537 2019-02-15 Tom Tromey <tromey@adacore.com>
5539 * target.h (push_target): Declare new overload.
5540 * target.c (push_target): New overload, taking an rvalue reference.
5541 * remote.c (remote_target::open_1): Use push_target overload.
5542 * corelow.c (core_target_open): Use push_target overload.
5544 2019-02-15 Tom Tromey <tromey@adacore.com>
5546 * ravenscar-thread.c (is_ravenscar_task)
5547 (ravenscar_task_is_currently_active): Return bool.
5548 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5549 (_initialize_ravenscar): Remove "(void)".
5550 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5553 2019-02-15 Tom Tromey <tromey@adacore.com>
5555 * ravenscar-thread.c (ravenscar_runtime_initializer)
5556 (has_ravenscar_runtime, get_running_thread_id)
5557 (ravenscar_thread_target::resume): Fix indentation.
5559 2019-02-15 Tom Tromey <tromey@adacore.com>
5561 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5562 from ravenscar_arch_ops.
5563 (sparc_ravenscar_ops::fetch_registers)
5564 (sparc_ravenscar_ops::store_registers): Now methods.
5565 (sparc_ravenscar_prepare_to_store): Remove.
5566 (sparc_ravenscar_ops): Redefine.
5567 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5568 methods and destructor. Remove members.
5569 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5570 (ravenscar_thread_target::store_registers)
5571 (ravenscar_thread_target::prepare_to_store): Update.
5572 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5574 (struct ppc_ravenscar_powerpc_ops): Derive from
5576 (ppc_ravenscar_powerpc_ops::fetch_registers)
5577 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5578 (ppc_ravenscar_powerpc_ops): Redefine.
5579 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5580 (ppc_ravenscar_e500_ops::fetch_registers)
5581 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5582 (ppc_ravenscar_e500_ops): Redefine.
5583 * aarch64-ravenscar-thread.c
5584 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5585 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5586 (aarch64_ravenscar_fetch_registers)
5587 (aarch64_ravenscar_store_registers): Now methods.
5588 (aarch64_ravenscar_ops): Redefine.
5590 2019-02-15 Tom Tromey <tromey@adacore.com>
5592 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5593 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5594 (ravenscar_thread_target::stopped_by_watchpoint)
5595 (ravenscar_thread_target::stopped_data_address)
5596 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5598 2019-02-15 Tom Tromey <tromey@adacore.com>
5600 * ravenscar-thread.c: Fix some typos.
5602 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5603 Tom Tromey <tromey@adacore.com>
5605 * ada-lang.c (ada_exception_sal): Change addr_string to a
5607 (create_ada_exception_catchpoint): Update.
5609 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5610 Tom Tromey <tromey@adacore.com>
5612 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5613 (bp_location_ops): Remove.
5614 (base_breakpoint_allocate_location): Update.
5615 (free_bp_location): Update.
5616 * ada-lang.c (class ada_catchpoint_location)
5617 <ada_catchpoint_location>: Remove ops parameter.
5618 (ada_catchpoint_location_dtor): Remove.
5619 (ada_catchpoint_location_ops): Remove.
5620 (allocate_location_exception): Update.
5621 * breakpoint.h (struct bp_location_ops): Remove.
5622 (class bp_location) <bp_location>: Remove bp_location_ops
5624 <~bp_location>: Add destructor.
5627 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5628 Pedro Alves <palves@redhat.com>
5630 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5633 2019-02-14 David Michael <fedora.dm0@gmail.com>
5634 Samuel Thibault <samuel.thibault@gnu.org>
5635 Thomas Schwinge <thomas@codesourcery.com>
5637 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5638 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5640 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5642 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5643 (check_empty): Use "const char *".
5645 * gnu-nat.c (gnu_nat_target::detach): Instead of
5646 'detach_inferior (pid)' call
5647 'detach_inferior (find_inferior_pid (pid))'.
5649 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5650 'nat/fork-inferior.o'.
5651 * gnu-nat.c: #include "nat/fork-inferior.h".
5653 * gnu-nat.c (gnu_nat_target::detach): Instead of
5654 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5655 * gnu-nat.h: #include "inf-child.h".
5656 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5657 'i386_gnu_nat_target::fetch_registers'.
5658 (gnu_store_registers): Rename/move to
5659 'i386_gnu_nat_target::store_registers'.
5661 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5662 * gnu-nat.h (mach_thread_info): New function.
5663 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5665 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5667 2019-02-14 Frederic Konrad <konrad@adacore.com>
5669 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5671 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5673 * windows-nat.c (windows_add_thread): Add new parameter
5674 "main_thread_p" with default value set to false. Update
5675 function documentation as well as all callers.
5676 (windows_delete_thread): Likewise.
5677 (fake_create_process): Update call to windows_add_thread.
5678 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5679 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5680 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5681 call to windows_delete_thread.
5683 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5685 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5687 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5689 * symfile.c (find_separate_debug_file): Use canonical path of
5690 sysroot with child_path instead of gdb_sysroot if it is valid.
5692 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5694 * symfile.c (find_separate_debug_file): Use child_path to
5695 determine if an object file is under a sysroot.
5697 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5699 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5700 unittests/child-path-selftests.c.
5701 * common/pathstuff.c (child_path): New function.
5702 * common/pathstuff.h (child_path): New prototype.
5703 * unittests/child-path-selftests.c: New file.
5705 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5707 * symfile.c (find_separate_debug_file): Look for separate debug
5708 files in debug directories under the sysroot.
5710 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5712 * symtab.h (struct minimal_symbol data_p): New const method.
5713 (struct minimal_symbol text_p): Likewise.
5714 * symtab.c (output_source_filename): Use file name style
5716 (print_symbol_info): Likewise.
5717 (print_msymbol_info): Use address style to print addresses.
5718 Use function name style to print executable text symbols.
5719 (expand_symtab_containing_pc): Use data_p.
5720 (find_pc_sect_compunit_symtab): Likewise.
5722 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5724 * breakpoint.c (describe_other_breakpoints): Use address style
5726 (say_where): Likewise.
5728 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5730 * ada-typeprint.c (print_func_type): Print function name
5731 style to print function name.
5732 * c-typeprint.c (c_print_type_1): Likewise.
5734 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5736 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5739 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5741 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5744 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5746 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5747 TYPE_CODE_REF types.
5749 2019-02-08 Jim Wilson <jimw@sifive.com>
5751 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5752 (riscv_linux_fregset): New.
5753 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5755 2019-02-07 Tom Tromey <tom@tromey.com>
5757 * thread.c (thread_cancel_execution_command): Update.
5758 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5760 (struct thread_fsm_ops): Remove.
5761 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5762 (thread_fsm_should_stop, thread_fsm_return_value)
5763 (thread_fsm_set_finished, thread_fsm_finished_p)
5764 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5766 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5767 * infrun.c (clear_proceed_status_thread)
5768 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5769 (print_stop_event): Update.
5770 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5772 (step_command_fsm_ops): Remove.
5773 (new_step_command_fsm): Remove.
5775 (step_command_fsm::should_stop): Rename from
5776 step_command_fsm_should_stop.
5777 (step_command_fsm::clean_up): Rename from
5778 step_command_fsm_clean_up.
5779 (step_command_fsm::do_async_reply_reason): Rename from
5780 step_command_fsm_async_reply_reason.
5781 (struct until_next_fsm): Inherit from thread_fsm. Add
5783 (until_next_fsm_ops): Remove.
5784 (new_until_next_fsm): Remove.
5785 (until_next_fsm::should_stop): Rename from
5786 until_next_fsm_should_stop.
5787 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5788 (until_next_fsm::do_async_reply_reason): Rename from
5789 until_next_fsm_async_reply_reason.
5790 (struct finish_command_fsm): Inherit from thread_fsm. Add
5791 constructor. Change type of breakpoint.
5792 (finish_command_fsm_ops): Remove.
5793 (new_finish_command_fsm): Remove.
5794 (finish_command_fsm::should_stop): Rename from
5795 finish_command_fsm_should_stop.
5796 (finish_command_fsm::clean_up): Rename from
5797 finish_command_fsm_clean_up.
5798 (finish_command_fsm::return_value): Rename from
5799 finish_command_fsm_return_value.
5800 (finish_command_fsm::do_async_reply_reason): Rename from
5801 finish_command_fsm_async_reply_reason.
5802 (finish_command): Update.
5803 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5805 (call_thread_fsm_ops): Remove.
5806 (call_thread_fsm::call_thread_fsm): Rename from
5807 new_call_thread_fsm.
5808 (call_thread_fsm::should_stop): Rename from
5809 call_thread_fsm_should_stop.
5810 (call_thread_fsm::should_notify_stop): Rename from
5811 call_thread_fsm_should_notify_stop.
5812 (run_inferior_call, call_function_by_hand_dummy): Update.
5813 * cli/cli-interp.c (should_print_stop_to_console): Update.
5814 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5815 Add constructor. Change type of location_breakpoint,
5817 (until_break_fsm_ops): Remove.
5818 (new_until_break_fsm): Remove.
5819 (until_break_fsm::should_stop): Rename from
5820 until_break_fsm_should_stop.
5821 (until_break_fsm::clean_up): Rename from
5822 until_break_fsm_clean_up.
5823 (until_break_fsm::do_async_reply_reason): Rename from
5824 until_break_fsm_async_reply_reason.
5825 (until_break_command): Update.
5826 * thread-fsm.c: Remove.
5827 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5829 2019-02-07 Tom Tromey <tom@tromey.com>
5831 * yy-remap.h: Add include guard.
5832 * xtensa-tdep.h: Add include guard.
5833 * xcoffread.h: Rename include guard.
5834 * varobj-iter.h: Add include guard.
5835 * tui/tui.h: Rename include guard.
5836 * tui/tui-winsource.h: Rename include guard.
5837 * tui/tui-wingeneral.h: Rename include guard.
5838 * tui/tui-windata.h: Rename include guard.
5839 * tui/tui-win.h: Rename include guard.
5840 * tui/tui-stack.h: Rename include guard.
5841 * tui/tui-source.h: Rename include guard.
5842 * tui/tui-regs.h: Rename include guard.
5843 * tui/tui-out.h: Rename include guard.
5844 * tui/tui-layout.h: Rename include guard.
5845 * tui/tui-io.h: Rename include guard.
5846 * tui/tui-hooks.h: Rename include guard.
5847 * tui/tui-file.h: Rename include guard.
5848 * tui/tui-disasm.h: Rename include guard.
5849 * tui/tui-data.h: Rename include guard.
5850 * tui/tui-command.h: Rename include guard.
5851 * tic6x-tdep.h: Add include guard.
5852 * target/waitstatus.h: Rename include guard.
5853 * target/wait.h: Rename include guard.
5854 * target/target.h: Rename include guard.
5855 * target/resume.h: Rename include guard.
5856 * target-float.h: Rename include guard.
5857 * stabsread.h: Add include guard.
5858 * rs6000-tdep.h: Add include guard.
5859 * riscv-fbsd-tdep.h: Add include guard.
5860 * regformats/regdef.h: Rename include guard.
5861 * record.h: Rename include guard.
5862 * python/python.h: Rename include guard.
5863 * python/python-internal.h: Rename include guard.
5864 * python/py-stopevent.h: Rename include guard.
5865 * python/py-ref.h: Rename include guard.
5866 * python/py-record.h: Rename include guard.
5867 * python/py-record-full.h: Rename include guard.
5868 * python/py-record-btrace.h: Rename include guard.
5869 * python/py-instruction.h: Rename include guard.
5870 * python/py-events.h: Rename include guard.
5871 * python/py-event.h: Rename include guard.
5872 * procfs.h: Add include guard.
5873 * proc-utils.h: Add include guard.
5874 * p-lang.h: Add include guard.
5875 * or1k-tdep.h: Rename include guard.
5876 * observable.h: Rename include guard.
5877 * nto-tdep.h: Rename include guard.
5878 * nat/x86-linux.h: Rename include guard.
5879 * nat/x86-linux-dregs.h: Rename include guard.
5880 * nat/x86-gcc-cpuid.h: Add include guard.
5881 * nat/x86-dregs.h: Rename include guard.
5882 * nat/x86-cpuid.h: Rename include guard.
5883 * nat/ppc-linux.h: Rename include guard.
5884 * nat/mips-linux-watch.h: Rename include guard.
5885 * nat/linux-waitpid.h: Rename include guard.
5886 * nat/linux-ptrace.h: Rename include guard.
5887 * nat/linux-procfs.h: Rename include guard.
5888 * nat/linux-osdata.h: Rename include guard.
5889 * nat/linux-nat.h: Rename include guard.
5890 * nat/linux-namespaces.h: Rename include guard.
5891 * nat/linux-btrace.h: Rename include guard.
5892 * nat/glibc_thread_db.h: Rename include guard.
5893 * nat/gdb_thread_db.h: Rename include guard.
5894 * nat/gdb_ptrace.h: Rename include guard.
5895 * nat/fork-inferior.h: Rename include guard.
5896 * nat/amd64-linux-siginfo.h: Rename include guard.
5897 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5898 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5899 * nat/aarch64-linux.h: Rename include guard.
5900 * nat/aarch64-linux-hw-point.h: Rename include guard.
5901 * mn10300-tdep.h: Add include guard.
5902 * mips-linux-tdep.h: Add include guard.
5903 * mi/mi-parse.h: Rename include guard.
5904 * mi/mi-out.h: Rename include guard.
5905 * mi/mi-main.h: Rename include guard.
5906 * mi/mi-interp.h: Rename include guard.
5907 * mi/mi-getopt.h: Rename include guard.
5908 * mi/mi-console.h: Rename include guard.
5909 * mi/mi-common.h: Rename include guard.
5910 * mi/mi-cmds.h: Rename include guard.
5911 * mi/mi-cmd-break.h: Rename include guard.
5912 * m2-lang.h: Add include guard.
5913 * location.h: Rename include guard.
5914 * linux-record.h: Rename include guard.
5915 * linux-nat.h: Add include guard.
5916 * linux-fork.h: Add include guard.
5917 * i386-darwin-tdep.h: Rename include guard.
5918 * hppa-linux-offsets.h: Add include guard.
5919 * guile/guile.h: Rename include guard.
5920 * guile/guile-internal.h: Rename include guard.
5921 * gnu-nat.h: Rename include guard.
5922 * gdb-stabs.h: Rename include guard.
5923 * frv-tdep.h: Add include guard.
5924 * f-lang.h: Add include guard.
5925 * event-loop.h: Add include guard.
5926 * darwin-nat.h: Rename include guard.
5927 * cp-abi.h: Rename include guard.
5928 * config/sparc/nm-sol2.h: Rename include guard.
5929 * config/nm-nto.h: Rename include guard.
5930 * config/nm-linux.h: Add include guard.
5931 * config/i386/nm-i386gnu.h: Rename include guard.
5932 * config/djgpp/nl_types.h: Rename include guard.
5933 * config/djgpp/langinfo.h: Rename include guard.
5934 * compile/gcc-cp-plugin.h: Add include guard.
5935 * compile/gcc-c-plugin.h: Add include guard.
5936 * compile/compile.h: Rename include guard.
5937 * compile/compile-object-run.h: Rename include guard.
5938 * compile/compile-object-load.h: Rename include guard.
5939 * compile/compile-internal.h: Rename include guard.
5940 * compile/compile-cplus.h: Rename include guard.
5941 * compile/compile-c.h: Rename include guard.
5942 * common/xml-utils.h: Rename include guard.
5943 * common/x86-xstate.h: Rename include guard.
5944 * common/version.h: Rename include guard.
5945 * common/vec.h: Rename include guard.
5946 * common/tdesc.h: Rename include guard.
5947 * common/selftest.h: Rename include guard.
5948 * common/scoped_restore.h: Rename include guard.
5949 * common/scoped_mmap.h: Rename include guard.
5950 * common/scoped_fd.h: Rename include guard.
5951 * common/safe-iterator.h: Rename include guard.
5952 * common/run-time-clock.h: Rename include guard.
5953 * common/refcounted-object.h: Rename include guard.
5954 * common/queue.h: Rename include guard.
5955 * common/ptid.h: Rename include guard.
5956 * common/print-utils.h: Rename include guard.
5957 * common/preprocessor.h: Rename include guard.
5958 * common/pathstuff.h: Rename include guard.
5959 * common/observable.h: Rename include guard.
5960 * common/netstuff.h: Rename include guard.
5961 * common/job-control.h: Rename include guard.
5962 * common/host-defs.h: Rename include guard.
5963 * common/gdb_wait.h: Rename include guard.
5964 * common/gdb_vecs.h: Rename include guard.
5965 * common/gdb_unlinker.h: Rename include guard.
5966 * common/gdb_unique_ptr.h: Rename include guard.
5967 * common/gdb_tilde_expand.h: Rename include guard.
5968 * common/gdb_sys_time.h: Rename include guard.
5969 * common/gdb_string_view.h: Rename include guard.
5970 * common/gdb_splay_tree.h: Rename include guard.
5971 * common/gdb_setjmp.h: Rename include guard.
5972 * common/gdb_ref_ptr.h: Rename include guard.
5973 * common/gdb_optional.h: Rename include guard.
5974 * common/gdb_locale.h: Rename include guard.
5975 * common/gdb_assert.h: Rename include guard.
5976 * common/filtered-iterator.h: Rename include guard.
5977 * common/filestuff.h: Rename include guard.
5978 * common/fileio.h: Rename include guard.
5979 * common/environ.h: Rename include guard.
5980 * common/common-utils.h: Rename include guard.
5981 * common/common-types.h: Rename include guard.
5982 * common/common-regcache.h: Rename include guard.
5983 * common/common-inferior.h: Rename include guard.
5984 * common/common-gdbthread.h: Rename include guard.
5985 * common/common-exceptions.h: Rename include guard.
5986 * common/common-defs.h: Rename include guard.
5987 * common/common-debug.h: Rename include guard.
5988 * common/cleanups.h: Rename include guard.
5989 * common/buffer.h: Rename include guard.
5990 * common/btrace-common.h: Rename include guard.
5991 * common/break-common.h: Rename include guard.
5992 * cli/cli-utils.h: Rename include guard.
5993 * cli/cli-style.h: Rename include guard.
5994 * cli/cli-setshow.h: Rename include guard.
5995 * cli/cli-script.h: Rename include guard.
5996 * cli/cli-interp.h: Rename include guard.
5997 * cli/cli-decode.h: Rename include guard.
5998 * cli/cli-cmds.h: Rename include guard.
5999 * charset-list.h: Add include guard.
6000 * buildsym-legacy.h: Rename include guard.
6001 * bfin-tdep.h: Add include guard.
6002 * ax.h: Rename include guard.
6003 * arm-linux-tdep.h: Add include guard.
6004 * arm-fbsd-tdep.h: Add include guard.
6005 * arch/xtensa.h: Rename include guard.
6006 * arch/tic6x.h: Add include guard.
6007 * arch/i386.h: Add include guard.
6008 * arch/arm.h: Rename include guard.
6009 * arch/arm-linux.h: Rename include guard.
6010 * arch/arm-get-next-pcs.h: Rename include guard.
6011 * arch/amd64.h: Add include guard.
6012 * arch/aarch64-insn.h: Rename include guard.
6013 * arch-utils.h: Rename include guard.
6014 * annotate.h: Add include guard.
6015 * amd64-darwin-tdep.h: Rename include guard.
6016 * aarch64-linux-tdep.h: Add include guard.
6017 * aarch64-fbsd-tdep.h: Add include guard.
6018 * aarch32-linux-nat.h: Add include guard.
6020 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6022 * macrotab.c (macro_define_internal): New function that
6023 factorizes macro_define_object_internal and macro_define_function
6025 (macro_define_object_internal): Use macro_define_internal.
6026 (macro_define_function): Likewise.
6028 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6030 * macrocmd.c (extract_identifier): Return
6031 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
6034 2019-02-06 John Baldwin <jhb@FreeBSD.org>
6036 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
6038 2019-02-05 Tom Tromey <tom@tromey.com>
6040 * target.c (target_stack::unpush): Move assertion earlier.
6042 2019-01-30 Tom Tromey <tom@tromey.com>
6045 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
6046 (gdbpy_parse_and_eval): Likewise.
6047 * python/python-internal.h (gdbpy_allow_threads): New class.
6049 2019-01-28 John Baldwin <jhb@FreeBSD.org>
6051 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
6052 (aarch64_fbsd_fpregmap): Move earlier.
6053 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
6054 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6055 instead of individual calls to trad_frame_set_reg_addr.
6056 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
6058 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
6059 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6060 instead of individual calls to trad_frame_set_reg_addr.
6062 2019-01-28 Alan Hayward <alan.hayward@arm.com>
6064 * CONTRIBUTE: Replace contribution list with wiki link.
6066 2019-01-25 Tom Tromey <tom@tromey.com>
6068 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
6070 2019-01-25 Tom Tromey <tom@tromey.com>
6072 * xtensa-linux-nat.c: Fix common/ includes.
6073 * xml-support.h: Fix common/ includes.
6074 * xml-support.c: Fix common/ includes.
6075 * x86-linux-nat.c: Fix common/ includes.
6076 * windows-nat.c: Fix common/ includes.
6077 * varobj.h: Fix common/ includes.
6078 * varobj.c: Fix common/ includes.
6079 * value.c: Fix common/ includes.
6080 * valops.c: Fix common/ includes.
6081 * utils.c: Fix common/ includes.
6082 * unittests/xml-utils-selftests.c: Fix common/ includes.
6083 * unittests/utils-selftests.c: Fix common/ includes.
6084 * unittests/unpack-selftests.c: Fix common/ includes.
6085 * unittests/tracepoint-selftests.c: Fix common/ includes.
6086 * unittests/style-selftests.c: Fix common/ includes.
6087 * unittests/string_view-selftests.c: Fix common/ includes.
6088 * unittests/scoped_restore-selftests.c: Fix common/ includes.
6089 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
6090 * unittests/scoped_fd-selftests.c: Fix common/ includes.
6091 * unittests/rsp-low-selftests.c: Fix common/ includes.
6092 * unittests/parse-connection-spec-selftests.c: Fix common/
6094 * unittests/optional-selftests.c: Fix common/ includes.
6095 * unittests/offset-type-selftests.c: Fix common/ includes.
6096 * unittests/observable-selftests.c: Fix common/ includes.
6097 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
6098 * unittests/memrange-selftests.c: Fix common/ includes.
6099 * unittests/memory-map-selftests.c: Fix common/ includes.
6100 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
6101 * unittests/function-view-selftests.c: Fix common/ includes.
6102 * unittests/environ-selftests.c: Fix common/ includes.
6103 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
6104 * unittests/common-utils-selftests.c: Fix common/ includes.
6105 * unittests/cli-utils-selftests.c: Fix common/ includes.
6106 * unittests/array-view-selftests.c: Fix common/ includes.
6107 * ui-file.c: Fix common/ includes.
6108 * tui/tui-io.c: Fix common/ includes.
6109 * tracepoint.h: Fix common/ includes.
6110 * tracepoint.c: Fix common/ includes.
6111 * tracefile-tfile.c: Fix common/ includes.
6112 * top.h: Fix common/ includes.
6113 * top.c: Fix common/ includes.
6114 * thread.c: Fix common/ includes.
6115 * target/waitstatus.h: Fix common/ includes.
6116 * target/waitstatus.c: Fix common/ includes.
6117 * target.h: Fix common/ includes.
6118 * target.c: Fix common/ includes.
6119 * target-memory.c: Fix common/ includes.
6120 * target-descriptions.c: Fix common/ includes.
6121 * symtab.h: Fix common/ includes.
6122 * symfile.c: Fix common/ includes.
6123 * stap-probe.c: Fix common/ includes.
6124 * spu-linux-nat.c: Fix common/ includes.
6125 * sparc-nat.c: Fix common/ includes.
6126 * source.c: Fix common/ includes.
6127 * solib.c: Fix common/ includes.
6128 * solib-target.c: Fix common/ includes.
6129 * ser-unix.c: Fix common/ includes.
6130 * ser-tcp.c: Fix common/ includes.
6131 * ser-pipe.c: Fix common/ includes.
6132 * ser-base.c: Fix common/ includes.
6133 * selftest-arch.c: Fix common/ includes.
6134 * s12z-tdep.c: Fix common/ includes.
6135 * rust-exp.y: Fix common/ includes.
6136 * rs6000-aix-tdep.c: Fix common/ includes.
6137 * riscv-tdep.c: Fix common/ includes.
6138 * remote.c: Fix common/ includes.
6139 * remote-notif.h: Fix common/ includes.
6140 * remote-fileio.h: Fix common/ includes.
6141 * remote-fileio.c: Fix common/ includes.
6142 * regcache.h: Fix common/ includes.
6143 * regcache.c: Fix common/ includes.
6144 * record-btrace.c: Fix common/ includes.
6145 * python/python.c: Fix common/ includes.
6146 * python/py-type.c: Fix common/ includes.
6147 * python/py-inferior.c: Fix common/ includes.
6148 * progspace.h: Fix common/ includes.
6149 * producer.c: Fix common/ includes.
6150 * procfs.c: Fix common/ includes.
6151 * proc-api.c: Fix common/ includes.
6152 * printcmd.c: Fix common/ includes.
6153 * ppc-linux-nat.c: Fix common/ includes.
6154 * parser-defs.h: Fix common/ includes.
6155 * osdata.c: Fix common/ includes.
6156 * obsd-nat.c: Fix common/ includes.
6157 * nat/x86-linux.c: Fix common/ includes.
6158 * nat/x86-linux-dregs.c: Fix common/ includes.
6159 * nat/x86-dregs.h: Fix common/ includes.
6160 * nat/x86-dregs.c: Fix common/ includes.
6161 * nat/ppc-linux.c: Fix common/ includes.
6162 * nat/mips-linux-watch.h: Fix common/ includes.
6163 * nat/mips-linux-watch.c: Fix common/ includes.
6164 * nat/linux-waitpid.c: Fix common/ includes.
6165 * nat/linux-ptrace.h: Fix common/ includes.
6166 * nat/linux-ptrace.c: Fix common/ includes.
6167 * nat/linux-procfs.c: Fix common/ includes.
6168 * nat/linux-personality.c: Fix common/ includes.
6169 * nat/linux-osdata.c: Fix common/ includes.
6170 * nat/linux-namespaces.c: Fix common/ includes.
6171 * nat/linux-btrace.h: Fix common/ includes.
6172 * nat/linux-btrace.c: Fix common/ includes.
6173 * nat/fork-inferior.c: Fix common/ includes.
6174 * nat/amd64-linux-siginfo.c: Fix common/ includes.
6175 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
6176 * nat/aarch64-linux.c: Fix common/ includes.
6177 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
6178 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
6179 * namespace.h: Fix common/ includes.
6180 * mips-linux-tdep.c: Fix common/ includes.
6181 * minsyms.c: Fix common/ includes.
6182 * mi/mi-parse.h: Fix common/ includes.
6183 * mi/mi-main.c: Fix common/ includes.
6184 * mi/mi-cmd-env.c: Fix common/ includes.
6185 * memrange.h: Fix common/ includes.
6186 * memattr.c: Fix common/ includes.
6187 * maint.h: Fix common/ includes.
6188 * maint.c: Fix common/ includes.
6189 * main.c: Fix common/ includes.
6190 * machoread.c: Fix common/ includes.
6191 * location.c: Fix common/ includes.
6192 * linux-thread-db.c: Fix common/ includes.
6193 * linux-nat.c: Fix common/ includes.
6194 * linux-fork.c: Fix common/ includes.
6195 * inline-frame.c: Fix common/ includes.
6196 * infrun.c: Fix common/ includes.
6197 * inflow.c: Fix common/ includes.
6198 * inferior.h: Fix common/ includes.
6199 * inferior.c: Fix common/ includes.
6200 * infcmd.c: Fix common/ includes.
6201 * inf-ptrace.c: Fix common/ includes.
6202 * inf-child.c: Fix common/ includes.
6203 * ia64-linux-nat.c: Fix common/ includes.
6204 * i387-tdep.c: Fix common/ includes.
6205 * i386-tdep.c: Fix common/ includes.
6206 * i386-linux-tdep.c: Fix common/ includes.
6207 * i386-linux-nat.c: Fix common/ includes.
6208 * i386-go32-tdep.c: Fix common/ includes.
6209 * i386-fbsd-tdep.c: Fix common/ includes.
6210 * i386-fbsd-nat.c: Fix common/ includes.
6211 * guile/scm-type.c: Fix common/ includes.
6212 * guile/guile.c: Fix common/ includes.
6213 * go32-nat.c: Fix common/ includes.
6214 * gnu-nat.c: Fix common/ includes.
6215 * gdbthread.h: Fix common/ includes.
6216 * gdbarch-selftests.c: Fix common/ includes.
6217 * gdb_usleep.c: Fix common/ includes.
6218 * gdb_select.h: Fix common/ includes.
6219 * gdb_bfd.c: Fix common/ includes.
6220 * gcore.c: Fix common/ includes.
6221 * fork-child.c: Fix common/ includes.
6222 * findvar.c: Fix common/ includes.
6223 * fbsd-nat.c: Fix common/ includes.
6224 * event-top.c: Fix common/ includes.
6225 * event-loop.c: Fix common/ includes.
6226 * dwarf2read.c: Fix common/ includes.
6227 * dwarf2loc.c: Fix common/ includes.
6228 * dwarf2-frame.c: Fix common/ includes.
6229 * dwarf-index-cache.c: Fix common/ includes.
6230 * dtrace-probe.c: Fix common/ includes.
6231 * disasm-selftests.c: Fix common/ includes.
6232 * defs.h: Fix common/ includes.
6233 * csky-tdep.c: Fix common/ includes.
6234 * cp-valprint.c: Fix common/ includes.
6235 * cp-support.h: Fix common/ includes.
6236 * cp-support.c: Fix common/ includes.
6237 * corelow.c: Fix common/ includes.
6238 * completer.h: Fix common/ includes.
6239 * completer.c: Fix common/ includes.
6240 * compile/compile.c: Fix common/ includes.
6241 * compile/compile-loc2c.c: Fix common/ includes.
6242 * compile/compile-cplus-types.c: Fix common/ includes.
6243 * compile/compile-cplus-symbols.c: Fix common/ includes.
6244 * command.h: Fix common/ includes.
6245 * cli/cli-dump.c: Fix common/ includes.
6246 * cli/cli-cmds.c: Fix common/ includes.
6247 * charset.c: Fix common/ includes.
6248 * build-id.c: Fix common/ includes.
6249 * btrace.h: Fix common/ includes.
6250 * btrace.c: Fix common/ includes.
6251 * breakpoint.h: Fix common/ includes.
6252 * breakpoint.c: Fix common/ includes.
6254 (enum agent_op): Fix common/ includes.
6255 * ax-general.c (struct aop_map): Fix common/ includes.
6256 * ax-gdb.c: Fix common/ includes.
6257 * auxv.c: Fix common/ includes.
6258 * auto-load.c: Fix common/ includes.
6259 * arm-tdep.c: Fix common/ includes.
6260 * arch/riscv.c: Fix common/ includes.
6261 * arch/ppc-linux-common.c: Fix common/ includes.
6262 * arch/i386.c: Fix common/ includes.
6263 * arch/arm.c: Fix common/ includes.
6264 * arch/arm-linux.c: Fix common/ includes.
6265 * arch/arm-get-next-pcs.c: Fix common/ includes.
6266 * arch/amd64.c: Fix common/ includes.
6267 * arch/aarch64.c: Fix common/ includes.
6268 * arch/aarch64-insn.c: Fix common/ includes.
6269 * arch-utils.c: Fix common/ includes.
6270 * amd64-windows-tdep.c: Fix common/ includes.
6271 * amd64-tdep.c: Fix common/ includes.
6272 * amd64-sol2-tdep.c: Fix common/ includes.
6273 * amd64-obsd-tdep.c: Fix common/ includes.
6274 * amd64-nbsd-tdep.c: Fix common/ includes.
6275 * amd64-linux-tdep.c: Fix common/ includes.
6276 * amd64-linux-nat.c: Fix common/ includes.
6277 * amd64-fbsd-tdep.c: Fix common/ includes.
6278 * amd64-fbsd-nat.c: Fix common/ includes.
6279 * amd64-dicos-tdep.c: Fix common/ includes.
6280 * amd64-darwin-tdep.c: Fix common/ includes.
6281 * agent.c: Fix common/ includes.
6282 * ada-lang.h: Fix common/ includes.
6283 * ada-lang.c: Fix common/ includes.
6284 * aarch64-tdep.c: Fix common/ includes.
6286 2019-01-25 Tom Tromey <tom@tromey.com>
6288 * common/create-version.sh: Use common/version.h.
6290 2019-01-24 Pedro Alves <palves@redhat.com>
6292 * infrun.c (signal_stop, signal_print, signal_program)
6293 (signal_catch, signal_pass): Now arrays instead of pointers.
6294 (update_signals_program_target, do_target_resume)
6295 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
6296 * linux-nat.c (linux_nat_target::pass_signals)
6297 (linux_nat_target::create_inferior, linux_nat_target::attach):
6299 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
6300 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
6301 * procfs.c (procfs_target::pass_signals): Adjust.
6302 * record-full.c (record_full_target::resume): Adjust.
6303 * remote.c (remote_target::pass_signals)
6304 (remote_target::program_signals): Adjust.
6305 * target-debug.h (target_debug_print_signals): Now takes a
6306 gdb::array_view as parameter. Adjust.
6307 * target.h (target_ops) <pass_signals, program_signals>: Replace
6308 pointer and length parameters with gdb::array_view.
6309 (target_pass_signals, target_program_signals): Likewise.
6310 * target-delegates.c: Regenerate.
6312 2019-01-24 Pedro Alves <palves@redhat.com>
6314 * common/forward-scope-exit.h
6315 (forward_scope_exit::forward_scope_exit): Pass arguments to
6316 m_bind_function directly, instead of creating a std::bind and
6319 2019-01-24 Alan Hayward <alan.hayward@arm.com>
6321 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6323 (pass_in_v_vfp_candidate): Likewise.
6325 2019-01-23 Tom Tromey <tom@tromey.com>
6326 Pedro Alves <palves@redhat.com>
6328 * regcache.c (class regcache_invalidator): Remove.
6329 (regcache::raw_write): Use make_scope_exit.
6331 2019-01-23 Tom Tromey <tom@tromey.com>
6333 * ui-out.h (class ui_out_emit_type): Update comment.
6335 2019-01-23 Tom Tromey <tom@tromey.com>
6337 * infrun.c (fetch_inferior_event): Update comment.
6339 2019-01-23 Tom Tromey <tom@tromey.com>
6340 Pedro Alves <palves@redhat.com>
6342 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
6344 (fetch_inferior_event): Use SCOPE_EXIT.
6347 2019-01-23 Tom Tromey <tom@tromey.com>
6348 Pedro Alves <palves@redhat.com>
6350 * infrun.c (disable_thread_events): Delete.
6351 (stop_all_threads): Use SCOPE_EXIT.
6353 2019-01-23 Tom Tromey <tom@tromey.com>
6354 Pedro Alves <palves@redhat.com>
6356 * symfile.c: Include forward-scope-exit.h.
6357 (clear_symtab_users_cleanup): Replace forward declaration with
6358 a FORWARD_SCOPE_EXIT.
6359 (syms_from_objfile_1): Use the forward_scope_exit and
6360 gdb::optional instead of cleanup_function.
6361 (reread_symbols): Use the forward_scope_exit instead of
6363 (clear_symtab_users_cleanup): Remove function.
6365 2019-01-23 Tom Tromey <tom@tromey.com>
6366 Pedro Alves <palves@redhat.com>
6368 * linux-nat.c: Include scope-exit.h.
6369 (cleanup_target_stop): Remove.
6370 (linux_nat_target::static_tracepoint_markers_by_strid): Use
6373 2019-01-23 Tom Tromey <tom@tromey.com>
6374 Pedro Alves <palves@redhat.com>
6376 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
6377 (call_function_by_hand_dummy): Use SCOPE_EXIT.
6379 2019-01-23 Tom Tromey <tom@tromey.com>
6380 Andrew Burgess <andrew.burgess@embecosm.com>
6381 Pedro Alves <palves@redhat.com>
6383 * infrun.c (fetch_inferior_event): Use scope_exit.
6384 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
6385 * top.c (execute_command): Use scope_exit.
6386 * breakpoint.c (bpstat_do_actions): Use scope_exit.
6387 * utils.c (do_bpstat_clear_actions_cleanup)
6388 (make_bpstat_clear_actions_cleanup): Remove.
6390 2019-01-23 Tom Tromey <tom@tromey.com>
6391 Pedro Alves <palves@redhat.com>
6393 * infrun.c: Include "common/scope-exit.h"
6394 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
6395 (wait_for_inferior): Use SCOPE_EXIT.
6396 (fetch_inferior_event): Use scope_exit.
6398 2019-01-23 Tom Tromey <tom@tromey.com>
6399 Pedro Alves <palves@redhat.com>
6401 * breakpoint.c (create_breakpoint): Remove cleanup.
6403 2019-01-23 Tom Tromey <tom@tromey.com>
6404 Andrew Burgess <andrew.burgess@embecosm.com>
6405 Pedro Alves <palves@redhat.com>
6407 2019-01-23 Pedro Alves <palves@redhat.com>
6409 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6411 2019-01-23 Pedro Alves <palves@redhat.com>
6412 Andrew Burgess <andrew.burgess@embecosm.com>
6414 * gdbthread.h: Include "common/forward-scope-exit.h".
6415 (scoped_finish_thread_state): Redefine custom class in terms of
6418 2019-01-23 Pedro Alves <palves@redhat.com>
6419 Andrew Burgess <andrew.burgess@embecosm.com>
6421 * common/forward-scope-exit.h: New file.
6423 2019-01-23 Pedro Alves <palves@redhat.com>
6424 Andrew Burgess <andrew.burgess@embecosm.com>
6425 Tom Tromey <tom@tromey.com>
6427 * common/scope-exit.h: New file.
6429 2019-01-23 Pedro Alves <palves@redhat.com>
6431 * common/preprocessor.h (ESC): Rename to ...
6432 (ESC_PARENS): ... this.
6433 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6434 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6436 2019-01-23 Tom Tromey <tom@tromey.com>
6438 * language.h (class scoped_switch_to_sym_language_if_auto):
6439 Initialize m_lang in both cases.
6441 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6443 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6446 2019-01-22 Tom Tromey <tom@tromey.com>
6448 * corelow.c: Do not include sys/file.h.
6450 2019-01-22 Tom Tromey <tom@tromey.com>
6452 * tui/tui-wingeneral.h: Include gdb_curses.h.
6454 2019-01-22 Tom Tromey <tom@tromey.com>
6456 * source-cache.h (class source_cache) <get_source_lines,
6457 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6459 2019-01-22 Tom Tromey <tom@tromey.com>
6461 * remote-fileio.h (struct remote_target): Declare.
6463 2019-01-22 Tom Tromey <tom@tromey.com>
6465 * python/py-arch.c: Do not include py-ref.h.
6466 * python/py-bpevent.c: Do not include py-ref.h.
6467 * python/py-cmd.c: Do not include py-ref.h.
6468 * python/py-continueevent.c: Do not include py-ref.h.
6469 * python/py-event.h: Do not include py-ref.h.
6470 * python/py-evtregistry.c: Do not include py-ref.h.
6471 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6472 * python/py-frame.c: Do not include py-ref.h.
6473 * python/py-framefilter.c: Do not include py-ref.h.
6474 * python/py-function.c: Do not include py-ref.h.
6475 * python/py-infevents.c: Do not include py-ref.h.
6476 * python/py-linetable.c: Do not include py-ref.h.
6477 * python/py-objfile.c: Do not include py-ref.h.
6478 * python/py-param.c: Do not include py-ref.h.
6479 * python/py-prettyprint.c: Do not include py-ref.h.
6480 * python/py-progspace.c: Do not include py-ref.h.
6481 * python/py-symbol.c: Do not include py-ref.h.
6482 * python/py-symtab.c: Do not include py-ref.h.
6483 * python/py-type.c: Do not include py-ref.h.
6484 * python/py-unwind.c: Do not include py-ref.h.
6485 * python/py-utils.c: Do not include py-ref.h.
6486 * python/py-value.c: Do not include py-ref.h.
6487 * python/py-varobj.c: Do not include py-ref.h.
6488 * python/py-xmethods.c: Do not include py-ref.h.
6489 * python/python.c: Do not include py-ref.h.
6490 * varobj.c: Do not include py-ref.h.
6492 2019-01-22 Tom Tromey <tom@tromey.com>
6494 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6497 2019-01-22 Tom Tromey <tom@tromey.com>
6499 * compile/compile-cplus-types.c: Remove a comment by #include.
6501 2019-01-22 Tom Tromey <tom@tromey.com>
6503 * compile/gcc-c-plugin.h: Include compile-internal.h.
6505 2019-01-22 Tom Tromey <tom@tromey.com>
6507 * stabsread.c (EXTERN): Do not define.
6508 (symnum, next_symbol_text_func, processing_gcc_compilation)
6509 (within_function, global_sym_chain, global_stabs)
6510 (previous_stab_code, this_object_header_files)
6511 (n_this_object_header_files)
6512 (n_allocated_this_object_header_files): Define.
6513 * stabsread.h (EXTERN): Never define. Use "extern".
6515 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6517 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6520 2019-01-21 Tom Tromey <tom@tromey.com>
6522 * ui-out.c: Fix includes.
6523 * tui/tui-source.c: Fix includes.
6524 * target.c: Fix includes.
6525 * remote.c: Fix includes.
6526 * regcache.c: Fix includes.
6527 * python/py-block.c: Fix includes.
6528 * printcmd.c: Fix includes.
6529 * or1k-tdep.c: Fix includes.
6530 * mi/mi-main.c: Fix includes.
6531 * m32r-tdep.c: Fix includes.
6532 * csky-tdep.c: Fix includes.
6533 * compile/compile-cplus-types.c: Fix includes.
6534 * cli/cli-interp.c: Fix includes.
6536 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6538 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6541 2019-01-16 Tom Tromey <tom@tromey.com>
6543 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6545 (struct objfile) <msymbols_range>: Move from top level.
6546 <msymbols>: New method.
6547 (class objfile_msymbols): Remove.
6548 * symtab.c (default_collect_symbol_completion_matches_break_on):
6550 * symmisc.c (dump_msymbols): Update.
6551 * stabsread.c (scan_file_globals): Update.
6552 * objc-lang.c (info_selectors_command, info_classes_command)
6553 (find_methods): Update.
6554 * minsyms.c (find_solib_trampoline_target): Update.
6555 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6556 * coffread.c (coff_symfile_read): Update.
6557 * ada-lang.c (ada_lookup_simple_minsym)
6558 (ada_collect_symbol_completion_matches): Update.
6560 2019-01-16 Tom Tromey <tom@tromey.com>
6562 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6563 type. Remove no-argument constructor.
6564 <iterator::operator++>: Simplify.
6566 <end>: Use minimal_symbol_count.
6568 2019-01-16 Tom Tromey <tom@tromey.com>
6570 * objfiles.h (struct objfile) <psymtabs>: New method.
6571 (class objfile_psymtabs): Remove.
6572 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6574 <range>: New method.
6575 (require_partial_symbols): Change return type.
6576 * psymtab.c (require_partial_symbols)
6577 (psym_expand_symtabs_matching): Update.
6578 * mdebugread.c (parse_partial_symbols): Update.
6579 * dbxread.c (dbx_end_psymtab): Update.
6581 2019-01-15 Tom Tromey <tom@tromey.com>
6583 * symtab.c (lookup_objfile_from_block)
6584 (lookup_symbol_in_objfile_symtabs)
6585 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6586 (find_line_symtab, info_sources_command)
6587 (default_collect_symbol_completion_matches_break_on)
6588 (make_source_files_completion_list): Update.
6589 * symmisc.c (print_objfile_statistics, dump_objfile)
6590 (maintenance_print_symbols, maintenance_info_symtabs)
6591 (maintenance_check_symtabs, maintenance_info_line_tables):
6593 * source.c (select_source_symtab)
6594 (forget_cached_source_info_for_objfile): Update.
6595 * objfiles.h (class objfile_compunits): Remove.
6596 (struct objfile) <compunits_range>: New typedef.
6597 (compunits): New method.
6598 * objfiles.c (objfile_relocate1): Update.
6599 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6600 * maint.c (count_symtabs_and_blocks): Update.
6601 * linespec.c (iterate_over_all_matching_symtabs): Update.
6602 * cp-support.c (add_symbol_overload_list_qualified): Update.
6603 * coffread.c (coff_symtab_read): Update.
6604 * ada-lang.c (add_nonlocal_symbols)
6605 (ada_collect_symbol_completion_matches)
6606 (ada_add_global_exceptions): Update.
6608 2019-01-15 Tom Tromey <tom@tromey.com>
6610 * progspace.h (program_space) <objfiles_safe_range>: New
6612 <objfiles_safe>: New method.
6613 * objfiles.h (class all_objfiles_safe): Remove.
6614 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6615 * jit.c (jit_inferior_exit_hook): Update.
6617 2019-01-17 Tom Tromey <tom@tromey.com>
6619 * progspace.h (program_space) <objfiles_range>: New typedef.
6620 <objfiles>: New method.
6621 <objfiles_head>: Rename from objfiles.
6622 (object_files): Update.
6623 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6624 * guile/scm-pretty-print.c
6625 (ppscm_find_pretty_printer_from_objfiles): Update.
6626 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6627 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6629 * python/py-progspace.c (pspy_get_objfiles): Update.
6630 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6632 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6633 (objfpy_lookup_objfile_by_build_id): Update.
6634 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6635 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6637 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6638 (expand_symtab_containing_pc, lookup_objfile_from_block)
6639 (lookup_static_symbol, basic_lookup_transparent_type)
6640 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6641 (find_line_symtab, info_sources_command)
6642 (default_collect_symbol_completion_matches_break_on)
6643 (make_source_files_completion_list, find_main_name): Update.
6644 * symmisc.c (print_symbol_bcache_statistics)
6645 (print_objfile_statistics, maintenance_print_symbols)
6646 (maintenance_print_msymbols, maintenance_print_objfiles)
6647 (maintenance_info_symtabs, maintenance_check_symtabs)
6648 (maintenance_expand_symtabs, maintenance_info_line_tables):
6650 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6651 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6652 (map_overlay_command, unmap_overlay_command)
6653 (simple_overlay_update, expand_symtabs_matching)
6654 (map_symbol_filenames): Update.
6655 * symfile-debug.c (set_debug_symfile): Update.
6656 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6658 * source.c (select_source_symtab, forget_cached_source_info):
6660 * solib.c (solib_read_symbols): Update.
6661 * solib-spu.c (append_ocl_sos): Update.
6662 * psymtab.c (maintenance_print_psymbols)
6663 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6664 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6665 * printcmd.c (info_symbol_command): Update.
6666 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6668 * objfiles.h (class all_objfiles): Remove.
6669 * objfiles.c (have_partial_symbols, have_full_symbols)
6670 (have_minimal_symbols, qsort_cmp, update_section_map)
6671 (shared_objfile_contains_address_p)
6672 (default_iterate_over_objfiles_in_search_order): Update.
6673 * objc-lang.c (info_selectors_command, info_classes_command)
6674 (find_methods): Update.
6675 * minsyms.c (find_solib_trampoline_target): Update.
6676 * maint.c (maintenance_info_sections)
6677 (maintenance_translate_address, count_symtabs_and_blocks):
6679 * main.c (captured_main_1): Update.
6680 * linux-thread-db.c (try_thread_db_load_from_pdir)
6681 (has_libpthread): Update.
6682 * linespec.c (iterate_over_all_matching_symtabs)
6683 (search_minsyms_for_name): Update.
6684 * jit.c (jit_find_objf_with_entry_addr): Update.
6685 * hppa-tdep.c (find_unwind_entry)
6686 (hppa_lookup_stub_minimal_symbol): Update.
6687 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6689 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6690 (elf_gnu_ifunc_resolve_by_got): Update.
6691 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6692 * dwarf-index-write.c (save_gdb_index_command): Update.
6693 * cp-support.c (add_symbol_overload_list_qualified): Update.
6694 * breakpoint.c (create_overlay_event_breakpoint)
6695 (create_longjmp_master_breakpoint)
6696 (create_std_terminate_master_breakpoint)
6697 (create_exception_master_breakpoint): Update.
6698 * blockframe.c (find_pc_partial_function): Update.
6699 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6700 (ada_collect_symbol_completion_matches)
6701 (ada_add_global_exceptions): Update.
6703 2019-01-17 Tom Tromey <tom@tromey.com>
6705 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6707 (solib_target_parse_libraries): Change return type.
6708 (library_list_start_segment, library_list_start_section)
6709 (library_list_end_library, library_list_start_library); Update.
6710 (solib_target_free_library_list): Remove.
6711 (solib_target_parse_libraries): Remove cleanup. Change return
6713 (solib_target_current_sos): Update.
6715 2019-01-17 Tom Tromey <tromey@bapiya>
6717 * valprint.c: Replace "the the" with "the".
6718 * symtab.c: Replace "the the" with "the".
6719 * solib.c: Replace "the the" with "the".
6720 * solib-dsbt.c: Replace "the the" with "the".
6721 * linespec.c: Replace "the the" with "the".
6722 * dwarf2loc.h: Replace "the the" with "the".
6723 * amd64-windows-tdep.c: Replace "the the" with "the".
6724 * aarch64-tdep.c: Replace "the the" with "the".
6726 2019-01-16 Keith Seitz <keiths@redhat.com>
6729 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6730 <builder>: Rename to ..
6731 <m_builder>: ... this and make private.
6732 (dwarf2_cu::get_builder): New method. Change all users of
6733 `builder' to use this method.
6734 (dwarf2_start_symtab): Move to ...
6735 (dwarf2_cu::start_symtab): ... here. Update all callers
6736 (setup_type_unit_groups): Move to ...
6737 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6739 (dwarf2_cu::reset_builder): New method.
6740 (process_full_compunit, process_full_type_unit): Use
6741 dwarf2_cu::reset_builder.
6742 (follow_die_offset): Record the ancestor CU if it is different
6743 from the followed DIE's CU.
6744 (follow_die_sig_1): Likewise.
6746 2019-01-15 Tom Tromey <tom@tromey.com>
6748 * remote.c (class remote_state) <buf>: Now a char_vector.
6750 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6752 (remote_target::getpkt_or_notif_sane_1)
6753 (remote_target::getpkt_sane)
6754 (remote_target::getpkt_or_notif_sane): Likewise.
6755 (class remote_target) <putpkt>: New overload.
6756 (remote_target::read_frame): Change type of "buf_p". Remove
6758 (packet_ok): New overload.
6759 (packet_check_result): New overload.
6762 2019-01-14 Tom Tromey <tom@tromey.com>
6764 * remote-notif.c (handle_notification, remote_notif_ack)
6765 (remote_notif_parse): Make "buf" const.
6766 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6768 (remote_notif_parse, remote_notif_ack, handle_notification):
6770 * remote.c (remote_notif_stop_parse): Make "buf" const.
6771 (remote_target::remote_parse_stop_reply): Make "buf" const.
6772 (remote_notif_stop_ack): Make "buf" const.
6774 2019-01-14 Tom Tromey <tom@tromey.com>
6776 * remote.c (remote_console_output): Make parameter const.
6778 2019-01-14 Tom Tromey <tom@tromey.com>
6780 * target-debug.h (target_debug_print_signals): Constify.
6781 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6782 * procfs.c (procfs_target::pass_signals): Update.
6783 * linux-nat.c (linux_nat_target::pass_signals): Update.
6784 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6785 * target-delegates.c: Rebuild.
6786 * remote.c (remote_target::program_signals): Update.
6787 (remote_target::pass_signals): Update.
6788 * target.c (target_pass_signals): Constify argument.
6789 (target_program_signals): Likewise.
6790 * target.h (struct target_ops) <pass_signals, program_signals>:
6792 (target_pass_signals, target_program_signals): Constify argument.
6794 2019-01-14 Tom Tromey <tom@tromey.com>
6797 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6799 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6801 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6803 * rs6000-tdep.c: Include reggroups.h.
6804 (IS_V_ALIAS_PSEUDOREG): Define.
6805 (rs6000_register_name): Return names for the "vX" aliases.
6806 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6807 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6808 aliases. Call default_register_reggroup_p for all other
6810 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6812 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6813 Handle "vX" aliases.
6814 (v_alias_pseudo_register_collect): New function.
6815 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6816 (rs6000_gdbarch_init): Initialize "vX" aliases as
6817 pseudo-registers. Restore registration of
6818 rs6000_pseudo_register_reggroup_p with
6819 set_tdesc_pseudo_register_reggroup_p.
6821 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6823 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6824 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6825 set_gdbarch_num_pseudo_regs.
6827 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6829 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6830 Remove arg prefixname, add do_set and do_show.
6831 Add member functions set_list and show_list.
6832 * cli/cli-style.c (class cli_style_option): Update accordingly.
6833 (style_set_list): Move to file scope.
6834 (style_show_list): Likewise.
6835 (set_style): Call help_list.
6836 (show_style): Call cmd_show_list.
6837 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6838 Update to use the new macro.
6840 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6842 * ada-lang.c (_initialize_ada_language): Expand the help text
6843 for the "catch exception" command.
6845 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6847 * symtab.c (matching_obj_sections): Initialize obj,
6848 declare it closer to its usage.
6850 2019-01-10 Tom Tromey <tom@tromey.com>
6852 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6853 (basic_inf_threads_range): Remove.
6854 (inf_threads_range, inf_non_exited_threads_range)
6855 (safe_inf_threads_range): Use next_adapter.
6857 2019-01-10 Keith Seitz <keiths@redhat.com>
6861 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6862 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6864 2019-01-10 Keith Seitz <keiths@redhat.com>
6868 * dictionary.c (pending_to_vector): Remove.
6869 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6870 Remove _1 suffix, replacing functions of the same name. Update
6872 (dict_create_hashed, dict_create_hashed_expandable)
6873 (dict_create_linear, dict_create_linear_expandable, dict_free)
6874 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6875 Make functions static.
6877 2019-01-10 Keith Seitz <keiths@redhat.com>
6881 * dictionary.h (struct dictionary): Replace declaration with
6883 (dict_create_hashed, dict_create_hashed_expandable)
6884 (dict_create_linear, dict_create_linear_expandable)
6885 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6886 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6887 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6888 taking multidictionary argument.
6889 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6890 * block.h (struct block) <dict>: Change to multidictionary
6891 and rename `multidict'.
6892 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6893 symmisc.c: Update all dictionary references to multidictionary.
6895 2019-01-10 Keith Seitz <keiths@redhat.com>
6899 * dictionary.c: Include unordered_map.
6900 (pending_to_vector): New function.
6901 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6902 Rewrite the non-"_1" functions to take vector instead
6904 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6905 "new" _1 versions of the same name.
6906 (multidictionary): Define.
6907 (std::hash<enum language): New definition.
6908 (collate_pending_symbols_by_language, mdict_create_hashed)
6909 (mdict_create_hashed_expandable, mdict_create_linear)
6910 (mdict_create_linear_expandable, mdict_free)
6911 (find_language_dictionary, create_new_language_dictionary)
6912 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6913 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6914 (mdict_size, mdict_empty): New functions.
6915 * dictionary.h (mdict_iterator): Define.
6917 2019-01-10 Pedro Alves <palves@redhat.com>
6919 * breakpoint.c (read_uploaded_action)
6920 (create_tracepoint_from_upload): Adjust to use
6921 gdb::unique_xmalloc_ptr.
6922 * ctf.c (ctf_write_uploaded_tp):
6923 (SET_ARRAY_FIELD): Use emplace_back.
6924 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6925 * tracefile-tfile.c (tfile_write_uploaded_tp):
6926 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6927 gdb::unique_xmalloc_ptr.
6928 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6929 at_string, cond_string, cmd_strings>: Replace char pointers
6930 with gdb::unique_xmalloc_ptr.
6932 2019-01-10 Pedro Alves <palves@redhat.com>
6934 * solib-target.c (library_list_start_library): Don't xstrdup name.
6936 2019-01-10 Pedro Alves <palves@redhat.com>
6938 * mdebugread.c (parse_partial_symbols): Use
6939 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6941 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6943 * linux-fork.c (scoped_switch_fork_info)
6944 <~scoped_switch_fork_info>: Fix incorrect variable name.
6946 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6948 * linux-fork.c (scoped_switch_fork_info)
6949 <scoped_switch_fork_info>: Make explicit.
6950 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6952 2019-01-10 Tom Tromey <tom@tromey.com>
6954 * objfiles.h (objfile::reset_psymtabs): Update.
6955 * objfiles.c (objfile::objfile): Update.
6956 * psymtab.h (psymtab_storage::obstack): Update.
6957 (psymtab_storage::m_obstack): Use gdb::optional.
6958 (class psymtab_storage): Update comment. Remove objfile
6960 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6962 2019-01-10 Tom Tromey <tom@tromey.com>
6964 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6965 <free_psymtabs>: Now private.
6966 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6967 (allocate_psymtab): Use new method.
6969 2019-01-10 Tom Tromey <tom@tromey.com>
6971 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6972 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6973 * mdebugread.c (parse_partial_symbols): Use
6974 allocate_dependencies.
6975 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6976 allocate_dependencies.
6977 (process_psymtab_comp_unit_reader)
6978 (build_type_psymtab_dependencies): Likewise.
6979 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6981 2019-01-10 Tom Tromey <tom@tromey.com>
6983 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6984 PSYMBOL_SET_LANGUAGE.
6985 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6987 2019-01-10 Tom Tromey <tom@tromey.com>
6989 * psymtab.h (psymtab_storage::obstack): New method.
6990 <m_obstack>: Rename from obstack; now private.
6991 * psymtab.c (psymtab_storage): Update.
6992 * dwarf2read.c (create_addrmap_from_index)
6993 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6996 2019-01-10 Tom Tromey <tom@tromey.com>
6998 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6999 * objfiles.h (objfile::reset_psymtabs): New method.
7001 2019-01-10 Tom Tromey <tom@tromey.com>
7003 * symmisc.c (print_symbol_bcache_statistics): Update.
7004 (print_objfile_statistics): Update.
7005 * symfile.c (reread_symbols): Update.
7006 * psymtab.h (class psymtab_storage): New.
7007 * psymtab.c (psymtab_storage): New constructor.
7008 (~psymtab_storage): New destructor.
7009 (require_partial_symbols): Update.
7010 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
7011 (find_pc_sect_psymtab, find_pc_sect_psymbol)
7012 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
7013 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
7014 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
7015 (start_psymtab_common, end_psymtab_common)
7016 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
7017 (allocate_psymtab): Update.
7018 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
7020 (dump_psymtab_addrmap, maintenance_print_psymbols)
7021 (maintenance_check_psymtabs): Update.
7022 (class objfile_psymtabs): Move to objfiles.h.
7023 * psympriv.h (discard_psymtab): Now inline.
7024 (psymtab_discarder::psymtab_discarder): Update.
7025 (psymtab_discarder::~psymtab_discarder): Update.
7026 (ALL_OBJFILE_PSYMTABS): Rewrite.
7027 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
7028 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
7030 <partial_symtabs>: New field.
7031 (class objfile_psymtabs): Move from psymtab.h. Update.
7032 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
7034 (objfile::~objfile): Don't destroy psymbol_cache.
7035 * mdebugread.c (parse_partial_symbols): Update.
7036 * dwarf2read.c (create_addrmap_from_index)
7037 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7038 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
7039 (add_partial_subprogram, dwarf2_ranges_read): Update.
7040 * dwarf-index-write.c (write_address_map)
7041 (write_one_signatured_type, recursively_write_psymbols)
7042 (class debug_names, class debug_names, write_psymtabs_to_index):
7045 2019-01-10 Tom Tromey <tom@tromey.com>
7047 * symtab.h (SYMBOL_SET_NAMES): Update.
7048 (symbol_set_names): Update.
7049 (MSYMBOL_SET_NAMES): Update.
7050 * symtab.c (symbol_set_names): Change argument to be an
7051 objfile_per_bfd_storage.
7052 * psymtab.c (add_psymbol_to_bcache): Update.
7053 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
7055 2019-01-10 Tom Tromey <tom@tromey.com>
7057 * symtab.c (create_demangled_names_hash): Change argument to be an
7058 objfile_per_bfd_storage.
7059 (symbol_set_names): Update.
7061 2019-01-10 Tom Tromey <tom@tromey.com>
7063 * xcoffread.c (xcoff_initial_scan): Unconditionally call
7065 * psymtab.c (init_psymbol_list): Do nothing if already called.
7066 * psympriv.h (init_psymbol_list): Add comment.
7067 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
7069 * dbxread.c (dbx_symfile_read): Unconditionally call
7072 2019-01-10 Tom Tromey <tom@tromey.com>
7074 * xcoffread.c (scan_xcoff_symtab): Update.
7075 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
7077 * mdebugread.c (parse_partial_symbols)
7078 (handle_psymbol_enumerators): Update.
7079 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
7080 * dbxread.c (read_dbx_symtab): Update.
7081 * psympriv.h (psymbol_placement): New enum.
7082 (add_psymbol_to_list): Update.
7084 2019-01-10 Tom Tromey <tom@tromey.com>
7086 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
7087 static_psymbols parameters.
7088 (scan_xcoff_symtab): Update.
7089 * psymtab.c (start_psymtab_common): Remove global_psymbols and
7090 static_psymbols parameters.
7091 * psympriv.h (start_psymtab_common): Update.
7092 * mdebugread.c (parse_partial_symbols): Update.
7093 * dwarf2read.c (create_partial_symtab): Update.
7094 * dbxread.c (read_dbx_symtab): Update.
7095 (start_psymtab): Remove global_psymbols and static_psymbols
7098 2019-01-10 Tom Tromey <tom@tromey.com>
7100 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
7101 * psymtab.c (allocate_psymtab): Add comment.
7102 * psympriv.h (allocate_psymtab): Add comment.
7103 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
7105 * dbxread.c (dbx_end_psymtab): Remove some initializations.
7107 2019-01-10 Tom Tromey <tom@tromey.com>
7109 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7111 * mipsread.c: Include mdebugread.h.
7112 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7114 * elfread.c: Include mdebugread.h.
7116 2019-01-09 Tom Tromey <tom@tromey.com>
7118 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
7119 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
7120 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
7121 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
7122 (psym_lookup_symbol, psym_find_last_source_symtab)
7123 (psym_forget_cached_source_info, psym_print_stats)
7124 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
7125 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
7126 (psym_map_matching_symbols, psym_expand_symtabs_matching)
7127 (psym_find_compunit_symtab_by_address)
7128 (maintenance_print_psymbols, maintenance_info_psymtabs)
7129 (maintenance_check_psymtabs): Use ranged for.
7130 * psymtab.h (class objfile_psymtabs): New.
7131 (require_partial_symbols): Return objfile_psymtabs.
7132 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
7134 2019-01-09 Tom Tromey <tom@tromey.com>
7136 * symfile.c (overlay_invalidate_all, find_pc_overlay)
7137 (find_pc_mapped_section, list_overlays_command)
7138 (map_overlay_command, unmap_overlay_command)
7139 (simple_overlay_update): Use all_objfiles.
7140 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
7141 * printcmd.c (info_symbol_command): Use all_objfiles.
7142 * objfiles.h (ALL_OBJSECTIONS): Remove.
7143 * maint.c (maintenance_translate_address): Use all_objfiles.
7144 * gcore.c (gcore_create_callback): Use all_objfiles.
7145 (objfile_find_memory_regions): Likewise.
7147 2019-01-09 Tom Tromey <tom@tromey.com>
7149 * symtab.c (find_line_symtab, info_sources_command)
7150 (make_source_files_completion_list): Use objfile_compunits.
7151 * source.c (select_source_symtab): Use objfile_compunits.
7152 * objfiles.h (struct objfile): Update comment.
7153 (ALL_OBJFILES): Remove.
7154 (ALL_FILETABS): Remove.
7155 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
7158 2019-01-09 Tom Tromey <tom@tromey.com>
7160 * symmisc.c (print_objfile_statistics, dump_objfile)
7161 (maintenance_print_symbols): Use compunit_filetabs.
7162 * source.c (forget_cached_source_info_for_objfile): Use
7164 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
7165 (ALL_FILETABS): Use compunit_filetabs.
7166 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
7167 * coffread.c (coff_symtab_read): Use compunit_filetabs.
7169 2019-01-09 Tom Tromey <tom@tromey.com>
7171 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
7172 (compunit_filetabs): New.
7173 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
7175 (info_sources_command, make_source_files_completion_list): Remove
7177 * symmisc.c (print_objfile_statistics, dump_objfile)
7178 (maintenance_print_symbols): Remove declaration.
7179 (maintenance_info_symtabs): Use compunit_filetabs.
7180 (maintenance_info_line_tables): Likewise.
7181 * source.c (select_source_symtab): Change local variable name.
7182 (forget_cached_source_info_for_objfile): Remove declaration.
7183 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
7184 * objfiles.c (objfile_relocate1): Remove declaration.
7185 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7187 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
7188 * coffread.c (coff_symtab_read): Remove declaration.
7189 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
7192 2019-01-09 Tom Tromey <tom@tromey.com>
7194 * symtab.c (lookup_objfile_from_block)
7195 (find_pc_sect_compunit_symtab, search_symbols)
7196 (default_collect_symbol_completion_matches_break_on): Use
7198 * objfiles.h (ALL_COMPUNITS): Remove.
7199 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
7200 * cp-support.c (add_symbol_overload_list_qualified): Use
7202 * ada-lang.c (ada_collect_symbol_completion_matches)
7203 (ada_add_global_exceptions): Use objfile_compunits.
7205 2019-01-09 Tom Tromey <tom@tromey.com>
7207 * source.c (select_source_symtab)
7208 (forget_cached_source_info_for_objfile): Remove declaration.
7209 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7211 * maint.c (count_symtabs_and_blocks): Remove declaration.
7212 * cp-support.c (add_symbol_overload_list_qualified): Remove
7214 * coffread.c (coff_symtab_read): Remove declaration.
7215 * symtab.c (lookup_symbol_in_objfile_symtabs)
7216 (basic_lookup_transparent_type_1): Use objfile_compunits.
7217 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
7218 (info_sources_command, search_symbols)
7219 (default_collect_symbol_completion_matches_break_on)
7220 (make_source_files_completion_list): Remove declaration.
7221 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
7222 (ada_collect_symbol_completion_matches)
7223 (ada_add_global_exceptions): Remove declaration.
7224 * linespec.c (iterate_over_all_matching_symtabs): Use
7226 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
7227 (class objfile_compunits): New.
7228 (ALL_COMPUNITS): Use objfile_compunits.
7229 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
7230 (maintenance_check_symtabs, maintenance_info_line_tables): Use
7232 * objfiles.c (objfile_relocate1): Use objfile_compunits.
7234 2019-01-09 Tom Tromey <tom@tromey.com>
7236 * symtab.c (search_symbols)
7237 (default_collect_symbol_completion_matches_break_on): Use
7239 * ada-lang.c (ada_lookup_simple_minsym)
7240 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
7241 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
7242 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
7244 * coffread.c (coff_symfile_read): Use objfile_msymbols.
7245 * symmisc.c (dump_msymbols): Use objfile_msymbols.
7246 * objc-lang.c (find_methods): Use objfile_msymbols.
7247 (info_selectors_command, info_classes_command): Likewise.
7248 * stabsread.c (scan_file_globals): Use objfile_msymbols.
7249 * objfiles.h (class objfile_msymbols): New.
7250 (ALL_OBJFILE_MSYMBOLS): Remove.
7251 (ALL_MSYMBOLS): Remove.
7253 2019-01-09 Tom Tromey <tom@tromey.com>
7255 * common/next-iterator.h (next_adapter): Add Iterator template
7257 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
7258 (class all_objfiles_safe): New.
7259 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
7260 * objfiles.c (put_objfile_before): Update comment.
7261 (add_separate_debug_objfile): Likewise.
7262 (free_all_objfiles): Use all_objfiles_safe.
7263 (objfile_purge_solibs): Likewise.
7265 2019-01-09 Tom Tromey <tom@tromey.com>
7267 * symtab.c (iterate_over_symtabs, matching_obj_sections)
7268 (expand_symtab_containing_pc, lookup_static_symbol)
7269 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
7270 (find_symbol_at_address, find_line_symtab, find_main_name): Use
7272 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
7273 * breakpoint.c (create_overlay_event_breakpoint)
7274 (create_longjmp_master_breakpoint)
7275 (create_std_terminate_master_breakpoint)
7276 (create_exception_master_breakpoint): Use all_objfiles.
7277 * linux-thread-db.c (try_thread_db_load_from_pdir)
7278 (has_libpthread): Use all_objfiles.
7279 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
7280 * linespec.c (iterate_over_all_matching_symtabs)
7281 (search_minsyms_for_name): Use all_objfiles.
7282 * maint.c (maintenance_info_sections): Use all_objfiles.
7283 * main.c (captured_main_1): Use all_objfiles.
7284 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
7285 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
7286 * guile/scm-pretty-print.c
7287 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
7288 * solib-spu.c (append_ocl_sos): Use all_objfiles.
7289 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
7290 (maintenance_print_msymbols): Use all_objfiles.
7291 * source.c (select_source_symtab): Use all_objfiles.
7292 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
7293 * symfile.c (remove_symbol_file_command)
7294 (expand_symtabs_matching, map_symbol_filenames): Use
7296 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
7298 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
7299 * objc-lang.c (find_methods): Use all_objfiles.
7300 * objfiles.c (have_partial_symbols, have_full_symbols)
7301 (have_minimal_symbols, qsort_cmp)
7302 (default_iterate_over_objfiles_in_search_order): Use
7304 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
7305 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
7306 (maintenance_check_psymtabs): Use all_objfiles.
7307 (ALL_PSYMTABS): Remove.
7308 * compile/compile-object-run.c (do_module_cleanup): Use
7310 * blockframe.c (find_pc_partial_function): Use all_objfiles.
7311 * cp-support.c (add_symbol_overload_list_qualified): Use
7313 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
7315 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
7316 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
7318 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
7319 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
7320 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7322 * solib.c (solib_read_symbols): Use all_objfiles
7324 2019-01-09 Tom Tromey <tom@tromey.com>
7326 * probe.c (parse_probes_in_pspace): Use all_objfiles.
7327 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
7329 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
7330 * symmisc.c (print_symbol_bcache_statistics)
7331 (print_objfile_statistics, maintenance_print_objfiles)
7332 (maintenance_info_symtabs, maintenance_check_symtabs)
7333 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
7335 * source.c (forget_cached_source_info): Use all_objfiles.
7336 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
7337 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
7338 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
7339 * objfiles.c (update_section_map): Use all_objfiles.
7340 (shared_objfile_contains_address_p): Likewise.
7341 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
7342 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
7344 2019-01-09 Tom Tromey <tom@tromey.com>
7346 * common/next-iterator.h: New file.
7347 * objfiles.h (class all_objfiles): New.
7348 (struct objfile_iterator): New.
7350 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7352 * NEWS: Move the description of the changed "frame", "select-frame",
7353 and "info frame" commands to the Changed commands section.
7355 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
7357 * gdbtypes.c (check_stub_method_group): Remove handling of old
7359 * linespec.c (find_methods): Likewise.
7360 * stabsread.c (read_member_functions): Likewise.
7361 * valops.c (search_struct_method): Likewise.
7362 (value_struct_elt_for_reference): Likewise.
7363 * NEWS: Mention this change.
7365 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7367 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
7369 * source.c (print_source_lines_base): Update line number check.
7370 (print_source_lines): New function.
7371 (source_lines_range::source_lines_range): New function.
7372 * source.h (class source_lines_range): New class.
7373 (print_source_lines): New declaration.
7375 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7377 * linespec.c (linespec_state_destructor): Free self->canonical_names.
7379 2019-01-08 Tom Tromey <tom@tromey.com>
7380 Simon Marchi <simon.marchi@ericsson.com>
7383 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
7384 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
7385 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7386 * f-exp.y (DOLLAR_VARIABLE): Likewise.
7387 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
7388 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7390 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7392 * source.c (select_source_symtab): Move header comment to
7393 declaration in source.h.
7394 (forget_cached_source_info_for_objfile): Likewise.
7395 (forget_cached_source_info): Likewise.
7396 (identify_source_line): Likewise.
7397 * source.h (identify_source_line): Move declaration from symtab.h
7398 and add comment from source.c
7399 (print_source_lines): Likewise.
7400 (forget_cached_source_info_for_objfile): Likewise.
7401 (forget_cached_source_info): Likewise.
7402 (select_source_symtab): Likewise.
7403 (enum print_source_lines_flag): Move definition from symtab.h.
7404 * symtab.h (identify_source_line): Move declaration to source.h.
7405 (print_source_lines): Likewise.
7406 (forget_cached_source_info_for_objfile): Likewise.
7407 (forget_cached_source_info): Likewise.
7408 (select_source_symtab): Likewise.
7409 (enum print_source_lines_flag): Move definition to source.h.
7410 * tui/tui-hooks.c: Add 'source.h' include.
7412 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7414 * source.c (print_source_lines_base): Handle requests to print
7415 reverse line number sequences, and guard against empty lines
7418 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7420 * source.c (print_source_lines_base): Fix skip of '\r' if next
7423 2019-01-06 Tom Tromey <tom@tromey.com>
7425 * c-exp.y (struct c_parse_state) <macro_original_text,
7426 expansion_obstack>: New member.
7427 (macro_original_text, expansion_obstack): Remove globals.
7428 (scan_macro_expansion, scanning_macro_expansion)
7429 (finished_macro_expansion): Update.
7430 (scan_macro_cleanup): Remove.
7431 (yylex, c_parse): Update.
7433 2019-01-06 Tom Tromey <tom@tromey.com>
7435 * c-exp.y (struct c_parse_state) <strings>: New member.
7436 (operator_stoken): Update.
7438 2019-01-06 Tom Tromey <tom@tromey.com>
7440 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7441 (union type_stack_elt) <typelist_val>: Now a pointer to
7443 (type_stack_cleanup): Don't declare.
7444 (push_typelist): Update.
7445 * parse.c (pop_typelist): Return a std::vector.
7446 (push_typelist): Take a std::vector.
7447 (follow_types): Update. Do not free args.
7448 (type_stack_cleanup): Remove.
7449 * c-exp.y (struct c_parse_state): New.
7450 (cpstate): New global.
7451 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7452 (nonempty_typelist): Update.
7453 (func_mod): Create a new vector.
7454 (c_parse): Create a c_parse_state.
7455 (check_parameter_typelist): Do not delete params.
7456 (function_method): Update. Do not delete type_list.
7458 2019-01-06 Tom Tromey <tom@tromey.com>
7461 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7463 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7464 (print_return_value): Likewise.
7466 2019-01-05 Tom Tromey <tom@tromey.com>
7468 * contrib/cleanup_check.py: Remove.
7469 * contrib/gcc-with-excheck: Remove.
7470 * contrib/exsummary.py: Remove.
7471 * contrib/excheck.py: Remove.
7473 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7475 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7476 NULL. Initialize tpprev to NULL instead of assigning it
7477 to NULL on the next statement.
7478 * windows-nat.c (windows_delete_thread): Remove check for
7479 main_thread_id before printing thread exit notifications.
7480 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7481 Remove thread ID check against main_thread_id.
7482 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7483 windows_delete_thread.
7484 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7486 2019-01-04 Tom Tromey <tom@tromey.com>
7488 * compile/compile.c (_initialize_compile): Use upper case for
7489 metasyntactic variables.
7490 * symmisc.c (_initialize_symmisc): Use upper case for
7491 metasyntactic variables.
7492 * psymtab.c (_initialize_psymtab): Use upper case for
7493 metasyntactic variables.
7494 * demangle.c (demangle_command): Use upper case for metasyntactic
7496 (_initialize_demangler): Likewise.
7497 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7500 2019-01-03 Tom Tromey <tom@tromey.com>
7502 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7504 2019-01-03 Tom Tromey <tom@tromey.com>
7506 * python/py-symtab.c (salpy_str): Update.
7507 (struct salpy_sal_object) <symtab>: Now a PyObject.
7508 (salpy_dealloc): Update.
7509 (del_objfile_sal): Use gdbpy_ref.
7511 2019-01-03 Tom Tromey <tom@tromey.com>
7513 * python/py-type.c (convert_field): Use new_reference. Return
7515 (make_fielditem): Return gdbpy_ref.
7516 (typy_fields): Update.
7517 (typy_getitem): Update.
7518 (field_name): Return gdbpy_ref. Use new_reference.
7519 (typy_iterator_iternext): Update.
7521 2019-01-03 Tom Tromey <tom@tromey.com>
7523 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7525 2019-01-03 Tom Tromey <tom@tromey.com>
7527 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7528 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7529 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7530 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7531 (pspy_set_type_printers): Likewise.
7532 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7533 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7534 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7535 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7536 (objfpy_set_type_printers): Likewise.
7538 2019-01-03 Tom Tromey <tom@tromey.com>
7540 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7541 (gdbpy_print_stack): Use gdbpy_err_fetch.
7542 * python/python-internal.h (class gdbpy_err_fetch): New class.
7543 (class gdbpy_enter) <m_error_type, m_error_value,
7544 m_error_traceback>: Remove.
7545 <m_error>: New member.
7546 (gdbpy_exception_to_string): Don't declare.
7547 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7548 * python/py-value.c (convert_value_from_python): Use
7550 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7551 gdbpy_exception_to_string.
7552 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7553 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7556 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7558 * linux-nat.c (delete_lwp_cleanup): Delete.
7559 (struct lwp_deleter): New struct.
7560 (lwp_info_up): New typedef.
7561 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7564 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7566 * linux-fork.c (class scoped_switch_fork_info): New class.
7567 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7569 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7571 * valops.c (find_overload_match): Remove use of null_cleanup, and
7572 calls to do_cleanups.
7574 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7576 * compile/compile-cplus-types.c
7577 (compile_cplus_instance::decl_name): Handle changes to
7579 * cp-support.c (cp_func_name): Update header comment, update
7581 * cp-support.h (cp_func_name): Update return type in declaration.
7582 * valops.c (find_overload_match): Move temp_func local to top
7583 level of function and change its type. Use temp_func to hold and
7584 delete temporary string obtained from cp_func_name.
7586 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7588 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7589 gdb::char_vector, remove cleanup, and update uses of `msg`.
7591 2019-01-03 Jim Wilson <jimw@sifive.com>
7593 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7595 2019-01-02 Tom Tromey <tom@tromey.com>
7597 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7598 (tdesc_parse_xml): Remove cleanups.
7599 * target-descriptions.h (make_cleanup_free_target_description):
7601 (target_desc_deleter): New struct.
7602 (target_desc_up): New typedef.
7603 * target-descriptions.c (target_desc_deleter::operator()): Rename
7604 from free_target_description.
7605 (make_cleanup_free_target_description): Remove.
7607 2019-01-02 Tom Tromey <tom@tromey.com>
7609 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7610 constructor, destructor.
7611 (linespec_parser): Remove typedef.
7612 (~linespec_parser): Rename from linespec_parser_delete.
7613 (linespec_lex_to_end, linespec_complete_label)
7614 (linespec_complete): Update.
7615 (decode_line_full): Remove cleanups.
7616 (decode_line_1): Update.
7618 2019-01-02 Tom Tromey <tom@tromey.com>
7620 * python/python-internal.h (inferior_to_inferior_object): Change
7622 * python/py-exitedevent.c (create_exited_event_object): Update.
7623 * python/py-inferior.c (inferior_to_inferior_object): Return
7625 (python_new_inferior, python_inferior_deleted)
7626 (thread_to_thread_object, delete_thread_object)
7627 (build_inferior_list, gdbpy_selected_inferior): Update.
7628 * python/py-infthread.c (create_thread_object): Update. Also fail
7629 if inferior_to_inferior_object fails.
7631 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7633 * inferior.h (class inferior) <displaced_step_state>: New field.
7634 * infrun.h (struct displaced_step_state): Move here from
7635 infrun.c. Initialize fields, add constructor.
7636 <inf>: Remove field.
7637 <reset>: New method.
7638 * infrun.c (struct displaced_step_inferior_state): Move to
7640 (displaced_step_inferior_states): Remove.
7641 (get_displaced_stepping_state): Adust.
7642 (displaced_step_in_progress_any_inferior): Adjust.
7643 (displaced_step_in_progress_thread): Adjust.
7644 (displaced_step_in_progress): Adjust.
7645 (add_displaced_stepping_state): Remove.
7646 (get_displaced_step_closure_by_addr): Adjust.
7647 (remove_displaced_stepping_state): Remove.
7648 (infrun_inferior_exit): Call displaced_step_state.reset.
7649 (use_displaced_stepping): Don't check for NULL.
7650 (displaced_step_prepare_throw): Call
7651 get_displaced_stepping_state.
7652 (displaced_step_fixup): Don't check for NULL.
7653 (prepare_for_detach): Don't check for NULL.
7655 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7657 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7658 in case of call that did not complete.
7660 2019-01-02 Andrey Utkin <autkin@undo.io>
7662 * symfile.c (find_separate_debug_file): Fix search of debug files for
7665 2019-01-02 Tom Tromey <tom@tromey.com>
7667 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7669 * python/py-frame.c (frapy_older): Remove cast.
7670 (frapy_newer): Likewise.
7671 * python/py-breakpoint.c (local_setattro): Remove cast.
7672 * python/py-arch.c (archpy_name): Remove local variable.
7673 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7675 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7677 * unittests/basic_string_view/element_access/char/empty.cc:
7678 Fix year range in copyright header.
7680 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7682 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7684 <operator==>: Update with for removed field.
7686 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7687 <isa_features>: ...this.
7688 <abi_features>: New field.
7689 (riscv_isa_flen): Update comment.
7690 (riscv_abi_xlen): New declaration.
7691 (riscv_abi_flen): New declaration.
7692 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7694 (riscv_abi_xlen): New function.
7695 (riscv_isa_flen): Update to get answer from isa_features.
7696 (riscv_abi_flen): New function.
7697 (riscv_has_fp_abi): Update to get answer from abi_features.
7698 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7700 (riscv_call_info) <xlen, flen>: Update comment.
7701 (riscv_call_arg_struct): Remove invalid assertions
7702 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7704 (riscv_gdbarch_init): Gather isa features and abi features
7705 separately, ensure both match on the gdbarch when reusing an old
7706 gdbarch. Relax an error check to allow 32-bit abi float to run on
7707 a target with 64-bit float hardware.
7709 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7711 * source.c (search_command_helper): Stop reverse search
7712 when line 1 has been searched.
7714 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7716 * record-full.c (record_full_base_target::close): Rewrite
7717 record_full_core_buf_list free logic.
7719 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7721 * break-catch-syscall.c (print_one_catch_syscall): xfree
7724 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7726 * top.c (print_gdb_version): Update Copyright year in version
7729 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7731 Update copyright year range in all GDB files.
7733 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7735 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7737 For older changes see ChangeLog-2018.
7743 version-control: never