1 2019-06-13 Pedro Alves <palves@redhat.com>
3 * cli/cli-setshow.c (parse_auto_binary_operation)
4 (parse_cli_boolean_value): Don't allow "o".
6 2019-06-13 Pedro Alves <palves@redhat.com>
8 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9 * NEWS: Mention maint test-settings KIND.
10 * maint-test-settings.c: New file.
12 2019-06-13 Pedro Alves <palves@redhat.com>
14 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
16 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
19 2019-06-13 Pedro Alves <palves@redhat.com>
21 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
24 2019-06-13 Pedro Alves <palves@redhat.com>
26 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
28 2019-06-13 Pedro Alves <palves@redhat.com>
30 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
31 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
33 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
34 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
36 (check_for_argument): Skip spaces after argument.
38 2019-06-13 Pedro Alves <palves@redhat.com>
40 * thread.c (thread_apply_command): Adjust TID parsing.
41 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
42 detected before end of string.
43 (tid_is_in_list): Error out if LIST is invalid.
45 2019-06-13 Pedro Alves <palves@redhat.com>
47 * completer.c (complete_line_internal_1): Rewind completion word
49 (completion_tracker::advance_custom_word_point_by): Change
50 parameter type to int.
51 * completer.h (completion_tracker::advance_custom_word_point_by):
54 2019-06-13 Pedro Alves <palves@redhat.com>
56 * completer.c (advance_to_completion_word): Handle delimiters.
58 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
60 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
62 2019-06-11 Tom Tromey <tom@tromey.com>
64 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
65 (xmalloc_failed): Move to alloc.c.
67 * Makefile.in (COMMON_SFILES): Add alloc.c.
69 2019-06-11 Tom Tromey <tom@tromey.com>
71 * nat/linux-waitpid.c: Don't include server.h.
72 (linux_debug): Remove.
75 2019-06-11 Tom Tromey <tromey@adacore.com>
77 * infcall.c (_initialize_infcall): Remove trailing newline from
79 * user-regs.c (_initialize_user_regs): Remove trailing newline
81 * typeprint.c (_initialize_typeprint): Remove trailing newline
83 * reverse.c (_initialize_reverse): Remove trailing newlines from
85 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
87 * language.c (add_set_language_command): Remove trailing newline
89 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
91 * disasm.c (_initialize_disasm): Remove trailing newline from
93 * top.c (init_main): Remove trailing newline from help.
94 * interps.c (_initialize_interpreter): Remove trailing newline
96 * btrace.c (_initialize_btrace): Remove trailing newlines from
98 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
100 * python/python.c (_initialize_python): Remove trailing newline
102 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
104 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
105 from help. Reformat some text.
106 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
108 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
111 2019-06-11 Tom Tromey <tromey@adacore.com>
113 * darwin-nat.c (darwin_decode_exception_message)
114 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
116 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
118 * valops.c (value_slice): Check for not allocated or not
121 2019-06-10 Tom de Vries <tdevries@suse.de>
124 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
125 sure an empty slot (defined by a 32-bit zero pair) is recognized as
128 2019-06-10 Tom de Vries <tdevries@suse.de>
131 * linespec.c (linespec_lexer_lex_string): Remove incorrect
132 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
134 2019-06-10 Tom de Vries <tdevries@suse.de>
137 * symtab.c (struct demangled_name_entry): Add language field.
138 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
139 static minimal symbol". Set and use language field.
141 2019-06-10 Tom Tromey <tromey@adacore.com>
143 * ada-lang.c (_initialize_ada_language): Update help text.
145 2019-06-10 Tom Tromey <tromey@adacore.com>
147 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
149 * guile/guile.c (handle_boot_error): Don't end warning with a
151 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
152 warning with a newline.
153 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
155 (s12z_frame_cache): Likewise.
156 * dwarf-index-cache.c (index_cache::store): Don't end warning with
158 * solib-svr4.c (disable_probes_interface): Don't end warning with
160 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
162 * python/python.c (do_finish_initialization): Don't end warning
165 2019-06-10 Tom Tromey <tom@tromey.com>
167 * python/py-breakpoint.c (gdbpy_breakpoint_created)
168 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
171 2019-06-10 Tom Tromey <tromey@adacore.com>
173 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
175 (elf_new_init): Don't call stabsread_new_init.
176 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
177 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
178 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
180 2019-06-10 Tom de Vries <tdevries@suse.de>
184 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
186 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
188 * source.c (find_and_open_source): Also rewrite relative file
191 2019-04-26 Amos Bird <amosbird@gmail.com>
193 * annotate.c (annotate_thread_exited): Add "thread-exited"
196 2019-06-06 Tom Tromey <tromey@adacore.com>
198 * maint.h (class scoped_command_stats): Use
199 DISABLE_COPY_AND_ASSIGN.
200 <print_time>: New method.
201 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
203 (scoped_command_stats::print_time): New method.
205 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
207 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
208 instructions of lengths 6 or 8 bytes.
210 2019-06-04 Pedro Alves <palves@redhat.com>
212 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
214 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
215 * breakpoint.c (condition_completer): Likewise.
216 * cli/cli-dump.c (scan_expression): Likewise.
217 * common/filestuff.c (mkdir_recursive): Likewise.
218 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
219 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
220 (gdb_abspath): Likewise.
221 * compile/compile-cplus-types.c
222 (compile_cplus_instance::decl_name): Likewise.
223 * completer.c (complete_explicit_location):
224 (signal_completer, reg_or_group_completer_1): Likewise.
225 * cp-support.c (cp_remove_params_if_any): Likewise.
226 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
227 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
228 * infcmd.c (strip_bg_char): Likewise.
229 * linespec.c (copy_token_string): Likewise.
230 * mi/mi-main.c (output_cores): Likewise.
231 * psymtab.c (psymtab_search_name):
232 * symfile.c (test_set_ext_lang_command): Likewise.
233 * target.c (target_fileio_read_stralloc): Likewise.
234 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
235 * value.c (complete_internalvar): Likewise.
237 2019-06-04 Christian Biesinger <cbiesinger@google.com>
239 Add objfile property to gdb.Type.
240 * NEWS: Mention Python API addition.
241 * python/py-type.c (typy_get_objfile): New method.
243 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
245 * NEWS: Mention the new set|show style [title|highlight].
246 Mention changes to "show style", "help" and "apropos".
248 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
250 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
251 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
252 instead of print_help_for_command.
253 (print_doc_of_command): New function.
254 (help_list): Add 'apropos -v word' suggestion.
255 (print_help_for_command): Style the command name using title style.
256 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
257 (_initialize_cli_cmds): Describe -v in apropos_command help.
259 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
261 * cli/cli-style.h (cli_style_option): Add name in constructor,
262 add m_name class member, add constructor with intensity,
263 add name class function.
264 (cli_style_option::add_setshow_commands): Remove name argument.
265 (highlight_style, title_style): New styles.
266 * cli/cli-style.c (do_show): New function that shows a style
267 characteristic styling the style name with itself.
268 (set_style_name): New function.
269 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
270 Update all callers according to the changes in cli/cli-style.h.
271 * utils.h (fputs_highlighted): New function.
272 * utils.c (fputs_highlighted): Likewise.
274 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
276 * NEWS: Mention new pipe command and new convenience variables.
278 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
280 * cli/cli-cmds.c (pipe_command): New function.
281 (_initialize_cli_cmds): Call add_com for pipe_command.
282 Define | as an alias for pipe.
283 (exit_status_set_internal_vars): New function.
284 (shell_escape): Call exit_status_set_internal_vars.
285 cli/cli-decode.c (find_command_name_length): Recognize | as
286 a single character command.
288 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
290 * gdbcmd.h (execute_command_to_ui_file): New declaration.
291 top.c (execute_command_to_ui_file): New function, mostly a copy
292 of execute_command_to_string.
293 (execute_command_to_string): Implement by calling
294 execute_command_to_ui_file.
296 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
298 * top.h (saved_command_line): Remove declaration.
299 * top.c (previous_saved_command_line, previous_repeat_arguments):
301 (saved_command_line): Make static, define together with other
303 (dont_repeat): Clear repeat_arguments.
304 (repeat_previous, get_saved_command_line, save_command_line):
306 (gdb_init): Initialize saved_command_line
307 and previous_saved_command_line.
308 * main.c (captured_main_1): Remove saved_command_line initialization.
309 * event-top.c (handle_line_of_input): Update to use
310 the new 'repeat' related functions instead of direct access to
312 * command.h (repeat_previous, get_saved_command_line,
313 save_command_line): New declarations.
314 (dont_repeat): Add comment.
316 2019-05-30 Tom Tromey <tromey@adacore.com>
318 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
320 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
322 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
325 * completer.c (complete): Initialize variable word.
327 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
329 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
330 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
331 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
332 'body' is NULL to the outter 'if', protecting the '!is_define'
335 2019-05-29 Tom Tromey <tromey@adacore.com>
337 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
338 (dwarf_unknown): New function.
339 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
340 (dwarf_type_encoding_name): Use dwarf_unknown.
342 2019-05-29 Tom Tromey <tromey@adacore.com>
345 * cp-valprint.c (cp_print_value_fields): Call
346 cp_print_static_field inside "try".
348 2019-05-29 Tom Tromey <tromey@adacore.com>
350 * inflow.c (struct terminal_info): Add default operator=.
351 * configure: Rebuild.
352 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
353 -Wdeprecated-copy-dtor, -Wredundant-move.
355 2019-05-29 Tom Tromey <tromey@adacore.com>
358 * infcmd.c (print_return_value_1): Handle finish_print
360 (show_print_finish): New function.
361 (_initialize_infcmd): Add "set/show print finish" commands.
362 * valprint.c (user_print_options): Initialize new member.
363 * valprint.h (struct value_print_options) <finish_print>: New
366 2019-05-28 Tom Tromey <tromey@adacore.com>
368 * ada-lang.c (ada_remove_Xbn_suffix)
369 (find_old_style_renaming_symbol)
370 (parse_old_style_renaming): Remove.
371 (ada_find_renaming_symbol): Don't call
372 find_old_style_renaming_symbol.
373 (ada_is_renaming_symbol): Rename from
374 ada_find_renaming_symbol. Remove "block" parameter. Return
376 (ada_read_var_value): Update and simplify.
377 * ada-exp.y (write_var_or_type): Remove old code.
379 2019-05-28 Alan Hayward <alan.hayward@arm.com>
381 * event-top.c: Remove include comment.
382 * inflow.c (class scoped_ignore_sigttou): Move from here...
383 * inflow.h (class scoped_ignore_sigttou): ...to here.
384 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
385 * top.c: Remove include comment.
387 2019-05-27 Tom Tromey <tom@tromey.com>
391 2019-05-22 Tom Tromey <tromey@adacore.com>
393 * target.c (target_follow_exec): Constify parameter.
394 * target-delegates.c: Rebuild.
395 * remote.c (remote_target::follow_exec): Constify parameter.
396 * infrun.c (follow_exec): Constify parameter.
397 * target.h (struct target_ops) <follow_exec>: Constify parameter.
398 (target_follow_exec): Likewise.
400 2019-05-22 Alan Hayward <alan.hayward@arm.com>
402 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
403 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
405 2019-05-22 Alan Hayward <alan.hayward@arm.com>
407 * NEWS: Add debugredirect and testsuite sections.
409 2019-05-22 Simon Cook <simon.cook@embecosm.com>
411 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
412 target descriptions using exclusively floating point register name
415 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
418 * f-lang.c (build_fortran_types): Handle the case where
419 gdbarch_floatformat_for_type returns a nullptr.
421 2019-05-21 Tom de Vries <tdevries@suse.de>
424 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
426 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
429 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
431 * i386-tdep.c (i386_floatformat_for_type): Use
432 floatformats_ia64_quad for the 16-byte floating point component
433 within a fortran 32-byte complex number.
435 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
437 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
438 delete default constructor.
439 (find_partial_die): Update to return const struct.
440 (partial_die_parent_scope): Move variable declaration into scope
441 of its use and change its type to auto.
442 (guess_partial_die_structure_name): Likewise.
443 (partial_die_info::fixup): Likewise.
445 2019-05-17 Tom Tromey <tromey@adacore.com>
447 * source.c (find_and_open_source): Remove cast.
449 2019-05-17 Tom Tromey <tromey@adacore.com>
451 * annotate.c (annotate_source): Make "filename" const.
452 * annotate.h (annotate_source): Use const.
454 2019-05-17 Alan Hayward <alan.hayward@arm.com>
456 * disasm.c (set_disassembler_options): Send errors to stderr.
458 2019-05-17 Alan Hayward <alan.hayward@arm.com>
460 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
461 (cli_interp_base::set_logging): Check debug_redirect.
462 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
463 * cli/cli-logging.c (debug_redirect): Add static variable.
464 (pop_output_files): Add default param.
465 (handle_redirections): Print debug setting.
466 (show_logging_command): Likewise.
467 (_initialize_cli_logging): Add debugredirect command.
468 * interps.c (current_interp_set_logging): Add debug_redirect
470 * interps.h (set_logging): Add debug_redirect parameter.
471 (current_interp_set_logging): Likewise.
472 * mi/mi-common.h: Likewise.
473 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
475 2019-05-17 Alan Hayward <alan.hayward@arm.com>
476 Tom Tromey <tromey@adacore.com>
478 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
480 * cli/cli-interp.h (make_logging_output): Remove declaration.
481 * cli/cli-logging.c (make_logging_output): Remove function.
482 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
484 * ui-file.c (tee_file::tee_file): Remove bools.
485 (tee_file::~tee_file): Remove deletes.
486 * ui-file.h (tee_file): Remove bools.
488 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
490 * mi/mi-cmds.h (mi_cmd_complete): New function.
491 * mi/mi-main.c (mi_cmd_complete): Likewise.
492 * mi/mi-cmds.c: Define new MI command -complete.
493 * NEWS: Mention new -complete command.
495 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
497 * completer.h (complete): New function.
498 * completer.c (complete): Likewise.
499 * cli/cli-cmds.c: (complete_command): Update to use new complete()
500 function defined in completer.h.
502 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
504 * MAINTAINERS (Write After Approval): Add myself.
506 2019-05-17 Tom de Vries <tdevries@suse.de>
509 * dwarf2read.c (struct cu_partial_die_info): New struct.
510 (find_partial_die): Return cu_partial_die_info.
511 (partial_die_parent_scope, guess_partial_die_structure_name)
512 (partial_die_info::fixup): Handle new return type of find_partial_die.
514 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
516 * stap-probe.c (stap_parse_register_operand): Make "regname" an
517 "std::string", simplifying the algorithm.
519 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
521 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
522 (stap_static_probe_ops::get_probes): Likewise.
524 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
526 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
528 (stap_parse_single_operand): Join checks for
529 "gdbarch_stap_parse_special_token_p" and
530 "gdbarch_stap_parse_special_token" in the same "if" statement.
531 Invert check when verifying for operation on register
534 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
536 * stap-probe.c (stap_get_opcode): Update comment.
537 (stap_get_expected_argument_type): Likewise.
538 (handle_stap_probe): Likewise.
540 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
542 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
543 return type to 'bool'. Adjust comment. Use 'bool' when
545 (i386_stap_parse_special_token_three_arg_disp): Likewise.
546 * stap-probe.c (stap_parse_argument_1): Likewise.
547 (stap_is_operator): Likewise.
548 (stap_is_generic_prefix): Likewise.
549 (stap_is_register_prefix): Likewise.
550 (stap_is_register_indirection_prefix): Likewise.
551 (stap_is_integer_prefix): Likewise.
552 (stap_generic_check_suffix): Likewise.
553 (stap_check_integer_suffix): Likewise.
554 (stap_check_register_suffix): Likewise.
555 (stap_check_register_indirection_suffix): Likewise.
556 (stap_parse_register_operand): Likewise.
557 (stap_parse_single_operand): Likewise.
558 (stap_parse_argument_1): Likewise.
559 (stap_probe::get_argument_count): Likewise.
560 (stap_is_operator): Likewise.
562 2019-05-16 Tom Tromey <tromey@adacore.com>
564 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
567 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
569 * linux-thread-db.c (try_thread_db_load_1): Change return type
571 (try_thread_db_load): Likewise.
572 (try_thread_db_load_from_pdir_1): Likewise.
573 (try_thread_db_load_from_pdir): Likewise.
574 (try_thread_db_load_from_sdir): Likewise.
575 (try_thread_db_load_from_dir): Likewise.
576 (thread_db_load_search): Likewise.
577 (has_libpthread): Likewise.
578 (thread_db_load): Likewise.
580 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
582 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
583 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
584 NULL, and complain/return if that's the case.
586 2019-05-15 John Darrington <john@darrington.wattle.id.au>
588 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
589 (advance, posn, abstract_read_memory): New functions.
590 [struct mem_read_abstraction]: New struct.
591 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
593 2019-05-14 Tom Tromey <tromey@adacore.com>
595 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
596 value is not lval_memory.
598 2019-05-14 Tom Tromey <tromey@adacore.com>
600 * solib.c (info_sharedlibrary_command): Style the file name.
602 2019-05-14 Alan Hayward <alan.hayward@arm.com>
604 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
605 (aarch64_vnv_type): Likewise.
606 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
607 * common/tdesc.c: Likewise.
608 * common/tdesc.h (enum tdesc_type_kind): Likewise.
609 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
610 * features/aarch64-fpu.xml: Add ieee half view.
611 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
612 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
613 * gdbtypes.h (struct builtin_type): Likewise.
614 (struct objfile_type): Likewise.
616 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
618 * language.c (language_sniff_from_mangled_name): Fix "langauge"
620 * location.h (string_to_event_location): Likewise.
622 2019-05-11 Joel Brobecker <brobecker@adacore.com>
626 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
628 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
629 New variable declaration.
630 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
632 (print_one_breakpoint): Use ui_out::test_flags and new global
633 variable to compute use_fixed_output.
634 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
636 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
637 (mi_multi_location_breakpoint_output_fixed): Remove.
638 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
640 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
641 fix_multi_location_breakpoint_output flag if version >= 3.
642 * ui-out.h (enum ui_out_flag)
643 <fix_multi_location_breakpoint_output>: New enumerator.
645 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
647 * contrib/cc-with-tweaks.sh: Validate dwz's work.
649 2019-05-10 Tom Tromey <tromey@adacore.com>
651 * ada-lang.c (catch_ada_completer): New function.
652 (_initialize_ada_language): Use it.
654 2019-05-10 Tom Tromey <tromey@adacore.com>
656 * thread.c (print_thread_info): Make "requested_threads" const.
657 * gdbthread.h (print_thread_info): Make "requested_threads"
659 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
660 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
662 2019-05-08 Tom Tromey <tom@tromey.com>
664 * gdbtypes.c (objfile_type_data): Change type.
665 (objfile_type, _initialize_gdbtypes): Update.
667 2019-05-08 Tom Tromey <tom@tromey.com>
669 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
670 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
671 (_initialize_dwarf2_frame): Update.
673 2019-05-08 Tom Tromey <tom@tromey.com>
675 * objc-lang.c (objc_objfile_data): Change type.
676 (find_methods): Update.
677 (_initialize_objc_lang): Remove.
679 2019-05-08 Tom Tromey <tom@tromey.com>
681 * stabsread.c (rs6000_builtin_type_data): Change type.
682 (rs6000_builtin_type, _initialize_stabsread): Update.
684 2019-05-08 Tom Tromey <tom@tromey.com>
686 * mips-tdep.c (mips_pdr_data): Remove.
687 (_initialize_mips_tdep): Update.
689 2019-05-08 Tom Tromey <tom@tromey.com>
691 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
692 (hppa_init_objfile_priv_data, read_unwind_info)
693 (find_unwind_entry, _initialize_hppa_tdep): Update.
695 2019-05-08 Tom Tromey <tom@tromey.com>
697 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
698 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
700 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
702 2019-05-08 Tom Tromey <tom@tromey.com>
704 * mdebugread.c (basic_type_data): Change type.
705 (basic_type, _initialize_mdebugread): Update.
707 2019-05-08 Tom Tromey <tom@tromey.com>
709 * common/gdb_unique_ptr.h (struct noop_deleter): New.
711 2019-05-08 Tom Tromey <tom@tromey.com>
713 * nto-tdep.c (nto_inferior_data_reg): Change type.
714 (nto_inferior_data): Update.
715 (nto_inferior_data_cleanup, nto_new_inferior_data)
716 (_initialize_nto_tdep): Remove.
717 * nto-tdep.h (struct nto_inferior_data): Add initializers.
719 2019-05-08 Tom Tromey <tom@tromey.com>
721 * ada-lang.c (struct ada_inferior_data): Add initializers.
722 (ada_inferior_data): Change type.
723 (ada_inferior_data_cleanup): Remove.
724 (get_ada_inferior_data, ada_inferior_exit)
725 (struct ada_pspace_data): Add initializers, destructor.
726 (ada_pspace_data_handle): Change type.
727 (get_ada_pspace_data): Update.
728 (ada_pspace_data_cleanup): Remove.
730 2019-05-08 Tom Tromey <tom@tromey.com>
732 * coffread.c (struct coff_symfile_info): Add initializers.
733 (coff_objfile_data_key): Move lower. Change type.
734 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
736 (coff_free_info): Remove.
738 2019-05-08 Tom Tromey <tom@tromey.com>
740 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
741 (fbsd_pspace_data_handle): Move lower. Change type.
742 (get_fbsd_pspace_data): Update.
743 (fbsd_pspace_data_cleanup): Remove.
744 (_initialize_fbsd_tdep): Update.
746 2019-05-08 Tom Tromey <tom@tromey.com>
748 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
749 (get_ada_tasks_pspace_data): Update.
750 (ada_tasks_pspace_data_cleanup): Remove.
751 (_initialize_tasks): Update.
752 (ada_tasks_inferior_data_handle): Change type.
753 (get_ada_tasks_inferior_data): Update.
754 (ada_tasks_inferior_data_cleanup): Remove.
755 (struct ada_tasks_pspace_data): Add initializers.
757 2019-05-08 Tom Tromey <tom@tromey.com>
759 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
760 * symfile-debug.c (debug_sym_get_probes): Change type.
761 * stap-probe.c (handle_stap_probe):
762 (stap_static_probe_ops::get_probes): Change type.
763 * probe.h (class static_probe_ops) <get_probes>: Change type.
764 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
765 (parse_probes_in_pspace): Update.
766 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
768 (any_static_probe_ops::get_probes): Change type.
769 * elfread.c (elfread_data): New typedef.
770 (probe_key): Change type.
771 (elf_get_probes): Likewise. Update.
772 (probe_key_free): Remove.
773 (_initialize_elfread): Update.
774 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
776 (dtrace_process_dof_probe, dtrace_process_dof)
777 (dtrace_static_probe_ops::get_probe): Change type.
779 2019-05-08 Tom Tromey <tom@tromey.com>
781 * xcoffread.c (struct xcoff_symfile_info): Rename from
782 coff_symfile_info. Add initializers.
783 (xcoff_objfile_data_key): Move lower. Change type.
784 (XCOFF_DATA): Rewrite.
785 (xcoff_free_info): Remove.
786 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
787 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
788 (xcoff_initial_scan): Update.
790 2019-05-08 Tom Tromey <tom@tromey.com>
792 * solib-svr4.c (struct svr4_info): Add initializers and
794 <probes_table>: Now an htab_up.
795 (solib_svr4_pspace_data): Change type.
796 (free_probes_table): Simplify.
797 (~svr4_info): Rename from svr4_pspace_data_cleanup.
798 (get_svr4_info, probes_table_htab_remove_objfile_probes)
799 (probes_table_remove_objfile_probes, register_solib_event_probe)
800 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
801 (_initialize_svr4_solib): Update.
803 2019-05-08 Tom Tromey <tom@tromey.com>
805 * remote.c (remote_pspace_data): Change type.
806 (remote_pspace_data_cleanup): Remove.
807 (get_remote_exec_file, set_pspace_remote_exec_file)
808 (_initialize_remote): Update.
810 2019-05-08 Tom Tromey <tom@tromey.com>
812 * breakpoint.c (breakpoint_objfile_key): Change type.
813 (get_breakpoint_objfile_data): Update.
814 (free_breakpoint_objfile_data): Remove.
815 (_initialize_breakpoint): Update.
817 2019-05-08 Tom Tromey <tom@tromey.com>
819 * linux-tdep.c (struct linux_info): Add initializers.
820 (linux_inferior_data): Move. Change type.
821 (invalidate_linux_cache_inf): Update.
822 (linux_inferior_data_cleanup): Remove.
823 (get_linux_inferior_data, _initialize_linux_tdep): Update.
825 2019-05-08 Tom Tromey <tom@tromey.com>
827 * auxv.c (auxv_inferior_data): Move. Change type.
828 (auxv_inferior_data_cleanup): Remove.
829 (invalidate_auxv_cache_inf): Rewrite.
830 (get_auxv_inferior_data, _initialize_auxv): Update.
832 2019-05-08 Tom Tromey <tom@tromey.com>
834 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
835 (symfile_debug_objfile_data_key): Change type.
836 (symfile_debug_installed, debug_qf_has_symbols)
837 (debug_qf_find_last_source_symtab)
838 (debug_qf_forget_cached_source_info)
839 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
840 (debug_qf_print_stats, debug_qf_dump)
841 (debug_qf_expand_symtabs_for_function)
842 (debug_qf_expand_all_symtabs)
843 (debug_qf_expand_symtabs_with_fullname)
844 (debug_qf_map_matching_symbols)
845 (debug_qf_expand_symtabs_matching)
846 (debug_qf_find_pc_sect_compunit_symtab)
847 (debug_qf_map_symbol_filenames)
848 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
849 (debug_sym_new_init, debug_sym_init, debug_sym_read)
850 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
851 (debug_sym_read_linetable, debug_sym_relocate): Update.
852 (symfile_debug_free_objfile): Remove.
853 (install_symfile_debug_logging, _initialize_symfile_debug):
856 2019-05-08 Tom Tromey <tom@tromey.com>
858 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
860 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
861 (get_dwarf2_per_objfile): Update.
862 (set_dwarf2_per_objfile): Remove.
863 (dwarf2_has_info, dwarf2_get_section_info): Update.
864 (dwarf2_free_objfile): Remove.
865 (_initialize_dwarf2_read): Update.
867 2019-05-08 Tom Tromey <tom@tromey.com>
869 * auto-load.c (struct auto_load_pspace_info): Add destructor and
871 <unsupported_script_warning_printed,
872 script_not_found_warning_printed>: Now bool.
873 (auto_load_pspace_data): Change type.
874 (~auto_load_pspace_info): Rename from
875 auto_load_pspace_data_cleanup.
876 (get_auto_load_pspace_data, init_loaded_scripts_info)
877 (clear_section_scripts, maybe_print_unsupported_script_warning)
878 (maybe_print_script_not_found_warning, _initialize_auto_load):
881 2019-05-08 Tom Tromey <tom@tromey.com>
883 * objfiles.c (objfile_pspace_info): Add destructor and
885 (objfiles_pspace_data): Change type.
886 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
887 (get_objfile_pspace_data): Update.
888 (objfiles_bfd_data): Change type.
889 (get_objfile_bfd_data): Update.
890 (objfile_bfd_data_free, _initialize_objfiles): Remove.
892 2019-05-08 Tom Tromey <tom@tromey.com>
894 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
896 (get_catch_syscall_inferior_data): Update.
897 (catch_syscall_inferior_data_cleanup): Remove.
898 (_initialize_break_catch_syscall): Update.
900 2019-05-08 Tom Tromey <tom@tromey.com>
902 * inflow.c (struct terminal_info): Add destructor and
904 (inflow_inferior_data): Change type.
905 (~terminal_info): Rename from inflow_inferior_data_cleanup.
906 (get_inflow_inferior_data, inflow_inferior_exit)
907 (swap_terminal_info, _initialize_inflow): Update.
909 2019-05-08 Tom Tromey <tom@tromey.com>
911 * target-dcache.c (target_dcache_cleanup): Remove.
912 (target_dcache_aspace_key): Change type.
913 (target_dcache_init_p, target_dcache_invalidate)
914 (target_dcache_get, target_dcache_get_or_init)
915 (_initialize_target_dcache): Update.
916 * dcache.h (struct dcache_deleter): New.
918 2019-05-08 Tom Tromey <tom@tromey.com>
920 * symtab.c (struct symbol_cache): Add destructor and
922 (symbol_cache_key): Move. Change type.
923 (make_symbol_cache, free_symbol_cache): Remove.
924 (get_symbol_cache): Update.
925 (symbol_cache_cleanup): Remove.
926 (ALL_PSPACES, symbol_cache_flush)
927 (maintenance_print_symbol_cache)
928 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
931 2019-05-08 Tom Tromey <tom@tromey.com>
933 * symtab.c (struct main_info): Add destructor and initializers.
934 (main_progspace_key): Move. Change type.
935 (get_main_info): Update.
936 (main_info_cleanup): Remove.
937 (_initialize_symtab): Update.
939 2019-05-08 Tom Tromey <tom@tromey.com>
941 * registry.h (DECLARE_REGISTRY): Define the _key class.
943 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
945 * NEWS: Merge two 'New commands' sections.
947 2019-05-08 Joel Brobecker <brobecker@adacore.com>
949 * ada-valprint.c (ada_val_print_gnat_array): Remove language
950 parameter and use Ada language definition instead.
951 (ada_val_print_ptr): Remove unused language parameter.
952 (ada_val_print_num): Remove language parameter and use Ada language
954 (ada_val_print_enum, ada_val_print_flt): Remove unused language
956 (ada_val_print_struct_union, ada_val_print_ref): Remove language
957 parameter and use Ada language definition instead.
958 (ada_val_print_1): Update all ada_val_print_xxx calls.
959 Remove language parameter.
960 (ada_val_print): Update ada_val_print_1 call.
962 2019-05-08 Tom Tromey <tromey@adacore.com>
964 * remote.c (remote_hw_watchpoint_limit)
965 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
968 2019-05-08 Tom Tromey <tromey@adacore.com>
970 * maint.c (_initialize_maint_cmds): Move initialization code to
972 (watchdog, show_watchdog): Move to remote.c.
973 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
975 (_initialize_remote): Move initialization code from maint.c.
976 * defs.h (watchdog): Don't declare.
978 2019-05-08 Tom Tromey <tromey@adacore.com>
980 * tui/tui-interp.c: Include main.h.
981 * interps.c: Include main.h.
982 * main.h (interpreter_p): Declare.
983 * defs.h (interpreter_p): Don't declare.
985 2019-05-08 Tom Tromey <tromey@adacore.com>
987 * dwarf2loc.c: Include dwarf2read.h.
988 * defs.h (read_unsigned_leb128): Don't declare.
989 * dwarf2read.h (read_unsigned_leb128): Declare.
991 2019-05-08 Tom Tromey <tromey@adacore.com>
993 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
996 2019-05-08 Tom Tromey <tromey@adacore.com>
998 * utils.c (fputs_maybe_filtered): Reset style after paging, even
999 when no wrap column is set.
1001 2019-05-08 Tom Tromey <tromey@adacore.com>
1003 * c-lang.c (c_get_string): Handle non-C-style arrays.
1005 2019-05-08 Tom Tromey <tromey@adacore.com>
1007 * typeprint.c (print_offset_data::update): Print the bit offset,
1008 not the number of bits remaining.
1010 2019-05-08 Tom Tromey <tromey@adacore.com>
1012 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
1013 padding at end of comment.
1015 2019-05-08 Tom Tromey <tromey@adacore.com>
1017 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
1020 2019-05-06 Tom Tromey <tom@tromey.com>
1022 * common/scoped_mmap.c: Include common-defs.h.
1023 * common/scoped_mmap.h: Don't include config.h.
1025 2019-05-04 Tom Tromey <tom@tromey.com>
1027 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
1028 (struct aarch64_call_info): Add initializers.
1029 <si>: Now a std::vector.
1030 (pass_on_stack, aarch64_push_dummy_call): Update.
1032 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
1033 Tom Tromey <tom@tromey.com>
1035 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
1036 (ppc_threads): Now a std::vector. Now static.
1037 (hwdebug_find_thread_points_by_tid)
1038 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
1041 2019-05-04 Tom Tromey <tom@tromey.com>
1043 * arc-tdep.c (arc_tdesc_init): Return bool.
1045 2019-05-04 Tom Tromey <tom@tromey.com>
1047 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1048 Use gdb_assert_not_reached.
1050 2019-05-04 Tom Tromey <tom@tromey.com>
1052 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1055 2019-05-04 Tom Tromey <tom@tromey.com>
1057 * arc-tdep.c (arc_tdesc_init): Use bool.
1059 2019-05-04 Tom Tromey <tom@tromey.com>
1061 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1063 2019-05-04 Tom Tromey <tom@tromey.com>
1065 * cli/cli-cmds.c (valid_command_p): Return bool.
1067 2019-05-04 Tom Tromey <tom@tromey.com>
1069 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1070 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1072 2019-05-04 Raul Tambre <raul@tambre.ee>
1074 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1075 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1076 operator for comparison.
1078 2019-05-04 Tom Tromey <tom@tromey.com>
1080 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1081 (lookup_partial_symbol, print_partial_symbols)
1082 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1083 (psymbol_compare): Update.
1084 (add_psymbol_to_bcache): Clear the entire psymbol.
1085 (maintenance_check_psymtabs): Update.
1086 * psympriv.h (struct partial_symbol): Don't derive from
1087 general_symbol_info.
1088 <obj_section, unrelocated_address, address,
1089 set_unrelocated_address>: Update.
1090 <ginfo>: New member.
1091 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1092 (debug_names::write_psymbols): Update.
1094 2019-05-04 Tom de Vries <tdevries@suse.de>
1096 * contrib/cc-with-tweaks.sh: Support -n arg.
1098 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1100 * corelow.c (core_target::detach): Ensure frame cache and
1101 register caches are cleared.
1102 inferior.c (exit_inferior_1): Likewise.
1104 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1105 Tom Tromey <tom@tromey.com>
1107 * dictionary.c (collate_pending_symbols_by_language): Remove
1108 "struct" from foreach.
1109 * symtab.c (lookup_global_symbol_from_objfile)
1110 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1112 * ser-tcp.c (net_open): Remove "struct" from foreach.
1113 * objfiles.c (objfile_relocate, objfile_rebase)
1114 (objfile_has_symbols): Remove "struct" from foreach.
1115 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1117 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1119 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1120 "struct" from foreach.
1121 * ada-lang.c (create_excep_cond_exprs)
1122 (ada_exception_catchpoint_cond_string): Remove "struct" from
1125 2019-05-03 Tom Tromey <tromey@adacore.com>
1127 * ada-exp.y (convert_char_literal): Check suffix of each
1130 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1133 * ada-exp.y (yywrap): Don't define.
1134 * ada-lex.l (%option): Add noyywrap
1137 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1139 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1140 _WIN32_WINNT to the XP level, unless already defined to a higher
1143 * unittests/parse-connection-spec-selftests.c:
1145 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1148 * symfile.c (find_separate_debug_file): Remove colon from the
1149 drive spec of DOS/Windows file names of the target, so that the
1150 file name produced from DEBUGDIR and the target's directory will
1151 be valid on DOS/Windows systems.
1153 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1155 * rust-lang.c (val_print_struct): Handle printing structures
1158 2019-05-02 Tom Tromey <tromey@adacore.com>
1160 * valarith.c (_initialize_valarith): Remove.
1162 2019-05-01 Tom Tromey <tromey@adacore.com>
1164 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1167 2019-05-01 Tom Tromey <tromey@adacore.com>
1169 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1170 for big-endian copies.
1172 2019-04-30 Ali Tamur <tamur@google.com>
1173 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1174 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1175 (read_3_bytes): New function.
1177 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1179 * windows-nat.c (main_thread_id): Delete.
1180 (handle_output_debug_string): Replace main_thread_id by
1181 current_event.dwThreadId.
1182 (fake_create_process): Likewise.
1183 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1184 Do not set main_thread_id.
1185 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1186 current_event.dwThreadId.
1187 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1189 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1191 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1192 Use current_event.dwThreadId instead of main_thread_id.
1194 2019-04-30 Tom Tromey <tromey@adacore.com>
1196 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1197 (create_excep_cond_exprs): Iterate over program spaces.
1198 (ada_exception_catchpoint_cond_string): Examine all minimal
1199 symbols for exception types.
1201 2019-04-30 Tom Tromey <tromey@adacore.com>
1204 * dwarf2read.c (process_structure_scope): Handle case where type
1205 has template parameters but no symbol was created.
1207 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1208 Chris January <chris.january@arm.com>
1210 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1212 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1214 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1216 * f-typeprint.c (f_print_type): Update rules for printing
1218 (f_type_print_varspec_suffix): Likewise.
1220 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1221 Chris January <chris.january@arm.com>
1223 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1226 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1228 * f-lang.c (build_fortran_types): Change name of void type to
1230 * f-typeprint.c (f_type_print_base): Print the name of the void
1231 type, rather than a fixed string.
1232 * f-valprint.c (f_decorations): Use lower case void string.
1234 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1235 Chris January <chris.january@arm.com>
1237 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1240 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1241 Chris January <chris.january@arm.com>
1242 David Lecomber <david.lecomber@arm.com>
1244 * f-exp.y (BINOP_INTRINSIC): New token.
1245 (exp): New parser rule handling BINOP_INTRINSIC.
1246 (f77_keywords): Add new builtin procedures.
1247 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1248 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1249 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1250 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1251 (print_unop_subexp_f): New function.
1252 (print_binop_subexp_f): New function.
1253 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1254 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1255 (dump_subexp_body_f): Likewise.
1256 (operator_check_f): Likewise.
1257 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1258 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1260 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1262 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1264 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1265 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1266 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1267 (operator_length_f): New fuction.
1268 (print_subexp_f): New function.
1269 (op_name_f): New function.
1270 (dump_subexp_body_f): New function.
1271 (operator_check_f): New function.
1272 (exp_descriptor_f): Replace standard expression handling functions
1274 * gdb/fortran-operator.def: New file.
1275 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1276 * gdb/std-operator.def: Remove UNOP_KIND.
1278 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1280 * std-operator.def: Remove unbalanced, stray double quote
1283 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1284 Chris January <chris.january@arm.com>
1285 Daniel Everett <daniel.everett@arm.com>
1286 Nick Forrington <nick.forrington@arm.com>
1287 Richard Bunt <richard.bunt@arm.com>
1289 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1290 of depth when printing anonymous structs or unions.
1291 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1292 Don't print either the top-level value, or the children if the
1293 max-depth is exceeded.
1294 (ppscm_print_children): When printing the key of a map, allow one
1295 extra level of depth.
1296 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1297 print either the top-level value, or the children if the max-depth
1299 (print_children): When printing the key of a map, allow one extra
1301 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1302 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1303 (user_print_options): Initialise max_depth field.
1304 (val_print_scalar_or_string_type_p): New function.
1305 (val_print): Check to see if the max depth has been reached.
1306 (val_print_check_max_depth): Define new function.
1307 (show_print_max_depth): New function.
1308 (_initialize_valprint): Add 'print max-depth' option.
1309 * valprint.h (struct value_print_options) <max_depth>: New field.
1310 (val_print_check_max_depth): Declare new function.
1311 * NEWS: Document new feature.
1313 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1315 * ada-lang.c (ada_language_defn): Initialise new field.
1316 * c-lang.c (c_is_string_type_p): New function.
1317 (c_language_defn): Initialise new field.
1318 (cplus_language_defn): Initialise new field.
1319 (asm_language_defn): Initialise new field.
1320 (minimal_language_defn): Initialise new field.
1321 * c-lang.h (c_is_string_type_p): Declare new function.
1322 * d-lang.c (d_language_defn): Initialise new field.
1323 * f-lang.c (f_is_string_type_p): New function.
1324 (f_language_defn): Initialise new field.
1325 * go-lang.c (go_is_string_type_p): New function.
1326 (go_language_defn): Initialise new field.
1327 * language.c (default_is_string_type_p): New function.
1328 (unknown_language_defn): Initialise new field.
1329 (auto_language_defn): Initialise new field.
1330 * language.h (struct language_defn) <la_is_string_type_p>: New
1332 (default_is_string_type_p): Declare new function.
1333 * m2-lang.c (m2_language_defn): Initialise new field.
1334 * objc-lang.c (objc_language_defn): Initialise new field.
1335 * opencl-lang.c (opencl_language_defn): Initialise new field.
1336 * p-lang.c (pascal_is_string_type_p): New function.
1337 (pascal_language_defn): Initialise new field.
1338 * rust-lang.c (rust_is_string_type_p): New function.
1339 (rust_language_defn): Initialise new field.
1341 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1343 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1345 * ada-lang.c (ada_language_defn): Initialise new field.
1346 * c-lang.c (c_language_defn): Likewise.
1347 (cplus_language_defn): Likewise.
1348 (asm_language_defn): Likewise.
1349 (minimal_language_defn): Likewise.
1350 * d-lang.c (d_language_defn): Likewise.
1351 * f-lang.c (f_language_defn): Likewise.
1352 * go-lang.c (go_language_defn): Likewise.
1353 * language.c (unknown_language_defn): Likewise.
1354 (auto_language_defn): Likewise.
1355 * m2-lang.c (m2_language_defn): Likewise.
1356 * objc-lang.c (objc_language_defn): Likewise.
1357 * opencl-lang.c (opencl_language_defn): Likewise.
1358 * p-lang.c (pascal_language_defn): Likewise.
1359 * rust-lang.c (rust_language_defn): Likewise.
1361 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1363 * ada-lang.c (ada_is_character_type): Change return type to bool.
1364 (ada_is_string_type): Likewise.
1365 * ada-lang.h (ada_is_character_type): Update declaration
1366 (ada_is_string_type): Likewise.
1368 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1370 Support style in 'frame|thread apply'
1372 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1373 * record.c (record_start, record_stop): Update callers of
1374 execute_command_to_string with false.
1375 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1376 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1378 (class string_file): New constructor with term_out parameter.
1379 Override methods term_out and can_emit_style_escape. New member
1381 (class stdio_file): Override can_emit_style_escape.
1382 (class tee_file): Override term_out and can_emit_style_escape.
1383 * utils.h (can_emit_style_escape): Remove.
1384 * utils.c (can_emit_style_escape): Likewise.
1385 Update all callers of can_emit_style_escape (SOMESTREAM) to
1386 SOMESTREAM->can_emit_style_escape.
1387 * source-cache.c (source_cache::get_source_lines): Likewise.
1388 * stack.c (frame_apply_command_count): Call execute_command_to_string
1389 passing the term_out characteristic of the current gdb_stdout.
1390 * thread.c (thr_try_catch_cmd): Likewise.
1391 * top.c (execute_command_to_string): pass term_out parameter
1392 to construct the string_file for the command output.
1393 * ui-file.c (term_cli_styling): New function (most code moved
1394 from utils.c can_emit_style_escape).
1395 (string_file::string_file, string_file::can_emit_style_escape,
1396 stdio_file::can_emit_style_escape, tee_file::term_out,
1397 tee_file::can_emit_style_escape): New functions.
1399 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1401 * NEWS: Mention the new set|show may-call-functions.
1402 * infcall.c (may_call_functions_p): New variable.
1403 (show_may_call_functions_p): New function.
1404 (call_function_by_hand_dummy): Throws an error if not
1406 (_initialize_infcall): Call add_setshow_boolean_cmd for
1409 2019-04-25 Keith Seitz <keiths@redhat.com>
1412 * cp-support.c (inspect_type): Don't attempt substitutions
1413 of symbol with the same name.
1415 2019-04-25 Tom Tromey <tromey@adacore.com>
1418 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1421 2019-04-25 Tom Tromey <tromey@adacore.com>
1423 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1425 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1426 (gdb_xml_parser::parse): Use std::move.
1427 * python/python-internal.h (gdbpy_convert_exception): Take a const
1429 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1431 * python/py-utils.c (gdbpy_convert_exception): Take a const
1433 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1435 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1437 * mi/mi-main.c (mi_print_exception): Take a const reference.
1438 * main.c (handle_command_errors): Take a const reference.
1439 * linespec.c (parse_linespec): Use std::move.
1440 * infcall.c (run_inferior_call): Use std::move.
1441 (call_function_by_hand_dummy): Use std::move.
1442 * exec.c (try_open_exec_file): Use std::move.
1443 * exceptions.h (exception_print, exception_fprintf)
1444 (exception_print_same): Update.
1445 * exceptions.c (print_exception, exception_print)
1446 (exception_fprintf, exception_print_same): Change parameters to
1448 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1449 * common/new-op.c: Use std::move.
1450 * common/common-exceptions.h (struct gdb_exception): Add move
1452 (struct gdb_exception_error, struct gdb_exception_quit, struct
1453 gdb_quit_bad_alloc): Change constructor to move constructor.
1454 (throw_exception): Change parameter to rvalue reference.
1455 * common/common-exceptions.c (throw_exception): Take rvalue
1457 * cli/cli-interp.c (safe_execute_command): Use std::move.
1458 * breakpoint.c (insert_bp_location, location_to_sals): Use
1461 2019-04-25 Tom Tromey <tromey@adacore.com>
1463 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1464 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1465 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1466 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1467 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1468 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1469 guile/scm-value.c: Use unpack.
1470 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1471 gdbscm_gdb_exception.
1472 (gdbscm_throw_gdb_exception): Likewise.
1473 (struct gdbscm_gdb_exception): New.
1474 (unpack): New function.
1475 (gdbscm_wrap): Use unpack.
1477 2019-04-25 Tom Tromey <tromey@adacore.com>
1479 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1480 (gdb_rl_callback_handler): Use std::move.
1481 * common/common-exceptions.h (struct gdb_exception): Add move
1482 assignment operator.
1483 (throw_exception_sjlj): Change "exception" to const reference.
1484 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1485 (throw_exception_sjlj): Change "exception" to const reference.
1487 2019-04-25 Tom Tromey <tromey@adacore.com>
1489 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1490 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1491 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1493 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1495 * mi/mi-interp.c (mi_interp::exec): Update.
1496 * linespec.c (parse_linespec): Update.
1497 * infcall.c (run_inferior_call): Update.
1498 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1499 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1500 (gdbscm_lookup_global_symbol): Update.
1501 * guile/scm-param.c (gdbscm_parameter_value): Update.
1502 * guile/scm-frame.c (gdbscm_frame_read_register)
1503 (gdbscm_frame_read_var): Update.
1504 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1505 * exec.c (try_open_exec_file): Update.
1506 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1507 (gdb_rl_callback_handler): Update.
1508 * common/common-exceptions.h (exception_none): Don't declare.
1509 * common/common-exceptions.c (exception_none): Don't define.
1510 (struct catcher) <exception>: Update.
1511 * cli/cli-interp.c (safe_execute_command): Update.
1512 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1514 2019-04-25 Ali Tamur <tamur@google.com>
1516 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1517 (read_attribute_value): Likewise.
1518 (dwarf2_read_addr_index): Update comment.
1519 (read_str_index): Add DW_FORM_strx.
1520 (dwarf2_string_attr): Likewise.
1521 (dwarf2_const_value_attr): Likewise.
1522 (dump_die_shallow): Likewise.
1523 (dwarf2_fetch_constant_bytes): Likewise.
1524 (skip_form_bytes): Likewise.
1525 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1527 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1531 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1532 OFFSET. Verify if current mapping contains an ELF header.
1533 (linux_find_memory_regions_full): Adjust call to
1536 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1537 Kang Li <kanglictf@gmail.com>
1541 * dwarf2-frame.c (read_initial_length): Be consistent about using
1542 unsigned representation of length.
1543 (decode_frame_entry_1): Likewise. Check for wraparound of
1544 end pointer as well as buffer overflow.
1546 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1548 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1551 2019-04-24 Tom Tromey <tromey@adacore.com>
1553 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1555 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1557 * s12z-tdep.c (s12z_unwind_pc): Delete.
1558 (s12z_unwind_sp): Delete.
1559 (s12z_gdbarch_init): Don't register deleted functions with
1562 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1564 * rl78-tdep.c (rl78_unwind_sp): Delete.
1565 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1567 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1569 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1570 (xstormy16_unwind_pc): Delete.
1571 (xstormy16_dummy_id): Delete.
1572 (xstormy16_gdbarch_init): Don't register deleted functions with
1575 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1577 * vax-tdep.c (vax_unwind_pc): Delete.
1578 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1580 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1582 * v850-tdep.c (v850_unwind_sp): Delete.
1583 (v850_unwind_pc): Delete.
1584 (v850_dummy_id): Delete.
1585 (v850_gdbarch_init): Don't register deleted functions with
1588 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1590 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1591 (tilegx_unwind_pc): Delete.
1592 (tilegx_unwind_dummy_id): Delete.
1593 (tilegx_gdbarch_init): Don't register deleted functions with
1596 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1598 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1599 (tic6x_dummy_id): Delete.
1600 (tic6x_gdbarch_init): Don't register deleted functions with
1603 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1605 * sparc-tdep.c (sparc_unwind_pc): Delete.
1606 (sparc32_gdbarch_init): Don't register deleted function with
1609 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1611 * sh-tdep.c (sh_unwind_sp): Delete.
1612 (sh_unwind_pc): Delete.
1613 (sh_dummy_id): Delete.
1614 (sh_gdbarch_init): Don't register deleted functions with
1617 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1619 * score-tdep.c (score_unwind_sp): Delete.
1620 (score_unwind_pc): Delete.
1621 (score_dummy_id): Delete.
1622 (score_gdbarch_init): Don't register deleted functions with
1625 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1627 * rx-tdep.c (rx_unwind_pc): Delete.
1628 (rx_unwind_sp): Delete.
1629 (rx_dummy_id): Delete.
1630 (rx_gdbarch_init): Don't register deleted functions with
1631 gdbarch. Update comment.
1633 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1635 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1636 (rs6000_dummy_id): Delete.
1637 (rs6000_gdbarch_init): Don't register deleted functions with
1640 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1642 * or1k-tdep.c (or1k_dummy_id): Delete.
1643 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1645 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1647 * nios2-tdep.c (nios2_dummy_id): Delete.
1648 (nios2_unwind_sp): Delete.
1649 (nios2_gdbarch_init): Don't register deleted functions with
1652 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1654 * nds32-tdep.c (nds32_dummy_id): Delete.
1655 (nds32_unwind_pc): Delete.
1656 (nds32_unwind_sp): Delete.
1657 (nds32_gdbarch_init): Don't register deleted functions with
1660 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1662 * msp430-tdep.c (msp430_unwind_pc): Delete.
1663 (msp430_unwind_sp): Delete.
1664 (msp430_dummy_id): Delete.
1665 (msp430_gdbarch_init): Don't register deleted functions with
1668 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1670 * moxie-tdep.c (moxie_unwind_sp): Delete.
1671 (moxie_unwind_pc): Delete.
1672 (moxie_dummy_id): Delete.
1673 (moxie_gdbarch_init): Don't register deleted functions with
1676 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1678 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1679 (mn10300_unwind_pc): Delete.
1680 (mn10300_unwind_sp): Delete.
1681 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1683 (mn10300_frame_unwind_init): Don't register deleted functions with
1686 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1688 * mep-tdep.c (mep_unwind_pc): Delete.
1689 (mep_unwind_sp): Delete.
1690 (mep_dummy_id): Delete.
1691 (mep_gdbarch_init): Don't register deleted functions with
1694 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1696 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1697 (m68hc11_unwind_sp): Delete.
1698 (m68hc11_gdbarch_init): Don't register deleted functions with
1701 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1703 * m32r-tdep.c (m32r_unwind_sp): Delete.
1704 (m32r_unwind_pc): Delete.
1705 (m32r_dummy_id): Delete.
1706 (m32r_gdbarch_init): Don't register deleted functions with
1709 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1711 * m32c-tdep.c (m32c_unwind_pc): Delete.
1712 (m32c_unwind_sp): Delete.
1713 (m32c_dummy_id): Delete.
1714 (m32c_gdbarch_init): Don't register deleted functions with
1717 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1719 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1720 (lm32_unwind_pc): Delete.
1721 (lm32_dummy_id): Delete.
1722 (lm32_gdbarch_init): Don't register deleted functions with
1725 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1727 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1728 (iq2000_unwind_pc): Delete.
1729 (iq2000_dummy_id): Delete.
1730 (iq2000_gdbarch_init): Don't register deleted functions with
1733 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1735 * nds32-tdep.c (nds32_type_align): Delete.
1736 (nds32_push_dummy_call): Use type_align instead.
1738 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1740 * arm-tdep.c (arm_type_align): Only handle vector override case.
1741 (arm_push_dummy_call): Use type_align.
1742 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1744 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1746 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1748 (pass_on_stack): Use type_align.
1749 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1752 2019-04-23 Tom Tromey <tromey@adacore.com>
1754 * dwarf2read.c (line_header::file_name_at): Remove unused
1757 2019-04-23 Tom de Vries <tdevries@suse.de>
1760 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1764 2019-03-27 Ali Tamur <tamur@google.com>
1766 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1767 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1768 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1769 (dwarf_expr_context::get_addr_index): Likewise
1770 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1771 (symbol_needs_eval_context::get_addr_index): Likewise
1772 (disassemble_dwarf_expression): Add DW_OP_addrx
1773 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1774 (read_cutu_die_from_dwo): Update comment
1775 (skip_one_die): Add DW_FORM_addrx
1776 (read_attribute_value): Likewise
1777 (var_decode_location): Add DW_OP_addrx
1778 (dwarf2_const_value_attr): Add DW_FORM_addrx
1779 (dump_die_shallow): Likewise
1780 (dwarf2_fetch_constant_bytes): Likewise
1781 (decode_locdesc): Add DW_OP_addrx
1782 (skip_form_bytes): Add DW_FORM_addrx
1784 2019-04-22 Ali Tamur <tamur@google.com>
1786 * MAINTAINERS (Write After Approval): Add self.
1788 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1790 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1791 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1792 (open_symbol_file_object): Likewise.
1793 (svr4_default_sos): Add info parameter.
1794 (svr4_read_so_list): Likewise.
1795 (svr4_current_sos_direct): Adjust functions calls to pass down
1797 (svr4_current_sos_1): Add info parameter.
1798 (svr4_current_sos): Call get_svr4_info, pass info down to
1800 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1802 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1804 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1806 (probes_table_remove_objfile_probes): Likewise.
1807 (register_solib_event_probe): Add info parameter.
1808 (solist_update_incremental): Pass info parameter down to
1810 (disable_probes_interface): Add info parameter.
1811 (svr4_handle_solib_event): Pass current_program_space to
1812 get_svr4_info. Adjust disable_probes_interface cleanup.
1813 (svr4_create_probe_breakpoints): Add info parameter, pass it
1814 down to register_solib_event_probe.
1815 (svr4_create_solib_event_breakpoints): Add info parameter,
1816 pass it down to svr4_create_probe_breakpoints.
1817 (enable_break): Pass info down to
1818 svr4_create_solib_event_breakpoints.
1819 (svr4_solib_create_inferior_hook): Pass current_program_space to
1821 (svr4_clear_solib): Likewise.
1823 2019-04-22 Pedro Alves <palves@redhat.com>
1825 * solib-svr4.c (svr4_free_objfile_observer): New.
1826 (probe_and_action::objfile): New field.
1827 (probes_table_htab_remove_objfile_probes)
1828 (probes_table_remove_objfile_probes): New functions.
1829 (register_solib_event_probe): Add 'objfile' parameter. Store it
1830 in the new probe_and_action. Don't store the probe in 'lookup'.
1831 (svr4_create_probe_breakpoints): Pass objfile to
1832 register_solib_event_probe.
1833 (_initialize_svr4_solib): Register a free_objfile observer.
1835 2019-04-19 Tom Tromey <tom@tromey.com>
1837 * common/queue.h: Remove.
1839 2019-04-19 Tom Tromey <tom@tromey.com>
1841 * event-loop.c: Don't include "common/queue.h".
1843 2019-04-19 Tom Tromey <tom@tromey.com>
1845 * remote.c (remote_target): Use delete.
1846 * remote-notif.h: Include <list>, not "common/queue.h".
1847 (notif_client_p): Remove typedef.
1848 (remote_notif_state): Add constructor, destructor, initializer.
1849 <notif_queue>: Now a std::list.
1850 (remote_notif_state_xfree): Don't declare.
1851 * remote-notif.c (remote_notif_process, handle_notification)
1852 (remote_notif_state_allocate): Update.
1853 (~remote_notif_state): Rename from remote_notif_state_xfree.
1855 2019-04-19 Tom Tromey <tom@tromey.com>
1857 * symfile.c (reread_symbols): Update.
1858 * objfiles.c (objfile_register_static_link)
1859 (objfile_lookup_static_link): Update
1860 (~objfile) Don't delete static_links.
1861 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1863 2019-04-19 Tom Tromey <tom@tromey.com>
1865 * type-stack.h (struct type_stack) <insert>: Constify string.
1866 * type-stack.c (type_stack::insert): Constify string.
1867 * gdbtypes.h (lookup_template_type): Update.
1868 (address_space_name_to_int): Update.
1869 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1871 (lookup_template_type): Make name const.
1872 * c-exp.y: Update rules.
1873 (lex_one_token, classify_name, classify_inner_name)
1874 (c_print_token): Update.
1875 * p-exp.y: Update rules.
1877 * f-exp.y: Update rules.
1879 * d-exp.y: Update rules.
1880 (lex_one_token, classify_name, classify_inner_name): Update.
1881 * parse.c (write_dollar_variable, copy_name): Return std::string.
1882 * parser-defs.h (copy_name): Change return type.
1883 * m2-exp.y: Update rules.
1885 * go-exp.y (lex_one_token): Update.
1887 (classify_unsafe_function, classify_packaged_name)
1888 (classify_name, yylex): Update.
1890 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1892 * configure.ac: add --enable-source-highlight switch.
1893 * configure: Regenerate.
1894 * top.c (print_gdb_version): plumb --enable-source-highlight
1895 status to "show configuration".
1897 2019-04-19 Tom Tromey <tromey@adacore.com>
1899 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1901 (empty_record, ada_template_to_fixed_record_type_1)
1902 (template_to_static_fixed_type)
1903 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1904 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1905 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1908 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1911 * source.c (print_source_lines_base): Advance "iter" when a
1912 control character is seen.
1914 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1916 * inferior.h (struct infcall_suspend_state_deleter):
1917 Catch exception in destructor to avoid crash.
1919 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1921 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1922 close to the add_com "shell".
1924 2019-04-18 Tom Tromey <tromey@adacore.com>
1926 * process-stratum-target.h (class process_stratum_target)
1927 <stratum>: Add "final".
1929 2019-04-17 Tom Tromey <tromey@adacore.com>
1931 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1932 against nullptr before use.
1934 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1936 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1938 2019-04-17 Jim Wilson <jimw@sifive.com>
1939 Andrew Burgess <andrew.burgess@embecosm.com>
1941 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1942 code read might fail, assume 4-byte breakpoint in that case.
1944 2019-04-15 Leszek Swirski <leszeks@google.com>
1946 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1947 rather than a hand-rolled POD check when checking for forced MEMORY
1950 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1952 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1953 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1955 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1956 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1957 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1960 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1962 * aarch64-linux-nat.c
1963 (aarch64_linux_nat_target::thread_architecture): Add override.
1964 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1967 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1969 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1971 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1973 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1974 target types of size 96-bits, add some additional comments, and
1975 check that the builtin type we found was the correct size.
1977 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1979 * utils.c (prompt_for_continue): Don't restore the styling at the
1980 end, as applied_style has the wrong value. This fixes styling in
1981 long lists of file names that are interrupted by the "Continue?"
1984 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1986 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1987 * c-lang.c (c_language_defn): Likewise.
1988 (cplus_language_defn): Likewise.
1989 (asm_language_defn): Likewise.
1990 (minimal_language_defn): Likewise.
1991 * d-lang.c (d_language_defn): Likewise.
1992 * f-lang.c (f_language_defn): Likewise.
1993 * go-lang.c (go_language_defn): Likewise.
1994 * language.c (unknown_language_defn): Likewise.
1995 (auto_language_defn): Likewise.
1996 * language.h (struct language_defn): Remove la_magic field.
1997 (LANG_MAGIC): Delete.
1998 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1999 * objc-lang.c (objc_language_defn): Likewise.
2000 * opencl-lang.c (opencl_language_defn): Likewise.
2001 * p-lang.c (pascal_language_defn): Likewise.
2002 * rust-lang.c (rust_language_defn): Likewise.
2004 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2006 * riscv-tdep.c (riscv_type_align): New function.
2007 (riscv_type_alignment): Delete.
2008 (riscv_arg_location): Use 'type_align'.
2009 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
2011 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2013 * gdbtypes.c (type_align): A struct with no non-static fields also
2016 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2018 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
2020 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
2022 (riscv_struct_info::analyse): New implementation using new
2023 analyse_inner member function.
2024 (riscv_struct_info::field_offset): New member function.
2025 (riscv_struct_info::m_offsets): New member variable.
2026 (riscv_struct_info::analyse_inner): New private member function,
2027 takes the old implementation of riscv_struct_info::analyse but
2028 extended to track field offsets.
2029 (riscv_call_arg_struct): Update the struct folding special cases
2030 to handle cases where empty C++ structs, which are non-zero
2032 (riscv_arg_location): Initialise the length of each location, a
2033 non-zero length now indicates the location is in use.
2034 (riscv_push_dummy_call): Allow for the first location having a
2035 non-zero offset when setting up arguments.
2036 (riscv_return_value): Likewise, but for return values.
2038 2019-04-11 Tom Tromey <tromey@adacore.com>
2040 * utils.c (internal_vproblem): Make "msg" const.
2042 2019-04-11 Alan Hayward <alan.hayward@arm.com>
2044 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2045 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2046 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2047 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2049 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2051 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2053 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2054 of amd64_collect_native_gregset.
2055 (amd64_linux_nat_target::store_registers): Likewise.
2057 2019-04-10 Tom Tromey <tom@tromey.com>
2059 * symtab.c (lookup_global_symbol_from_objfile)
2060 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2061 * objfiles.h (class separate_debug_iterator): New.
2062 (class separate_debug_range): New.
2063 (struct objfile) <separate_debug_objfiles>: New method.
2064 (objfile_separate_debug_iterate): Don't declare.
2065 * objfiles.c (separate_debug_iterator::operator++): Rename from
2066 objfile_separate_debug_iterate.
2067 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2069 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2072 2019-04-10 Tom Tromey <tom@tromey.com>
2074 * symfile.c (reread_symbols): Remove old comment.
2075 * objfiles.c (free_all_objfiles): Fix a typo.
2077 2019-04-10 Tom Tromey <tom@tromey.com>
2079 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2080 * minsyms.c (lookup_minimal_symbol): Use foreach.
2081 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2082 (lookup_minimal_symbol_solib_trampoline): Likewise.
2083 * symfile.c (reread_symbols): Use foreach.
2085 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2086 Tom Tromey <tromey@adacore.com>
2089 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2090 (rust_lex_int_test): Change "value" to be LONGEST.
2091 (rust_lex_tests): Add test for long integer literal.
2093 2019-04-09 Tom Tromey <tromey@adacore.com>
2095 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2097 (extended_remote_target::attach): Update.
2098 (remote_target::remote_notice_new_inferior): Update.
2099 (remote_target::add_current_inferior_and_thread): Update.
2100 * inferior.c (exit_inferior_1): Use "false".
2101 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2103 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2105 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2106 the "start" command.
2108 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2110 * python/py-inferior.c (infpy_thread_from_thread_handle):
2111 Adjust comments to reflect renaming of thread_from_thread_handle
2112 to thread_from_handle. Adjust keywords. Fix type error message.
2113 (inferior_object_methods): Add thread_from_handle. Retain
2114 thread_from_thread_handle, but mark it as deprecated.
2116 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2118 * gdbthread.h (find_thread_by_handle): Revise declaration.
2119 * thread.c (find_thread_by_handle): Likewise. Adjust
2121 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2122 support for buffer objects as handles.
2124 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2126 * python/py-infthread.c (thpy_thread_handle): New function.
2127 (thread_object_methods): Register thpy_thread_handle.
2129 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2131 * gdbthread.h (thread_to_thread_handle): Declare.
2132 * thread.c (gdbtypes.h): Include.
2133 (thread_to_thread_handle): New function.
2135 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2136 (target_thread_info_to_thread_handle): Declare.
2137 * target.c (target_thread_info_to_thread_handle): New function.
2138 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2139 * target-delegates.c: Regenerate.
2141 * linux-thread-db.c (class thread_db_target): Add method
2142 thread_info_to_thread_handle.
2143 (thread_db_target::thread_info_to_thread_handle): Define.
2144 * remote.c (class remote_target): Add new method
2145 thread_info_to_thread_handle.
2146 (remote_target::thread_info_to_thread_handle): Define.
2148 2019-04-08 Pedro Alves <palves@redhat.com>
2150 * common/common-exceptions.c (throw_exception): Don't create
2151 named object to throw; throw directly.
2152 (throw_it): Likewise. Don't initialize gdb_exception::message
2153 here, with new; pass FMT and AP to the ctor instead.
2154 * common/common-exceptions.h: Include <string>.
2155 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2156 const char *, va_list)): New ctor. Use std::make_shared.
2157 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2159 (gdb_exception_error::gdb_exception_error(enum errors, const char
2161 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2163 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2165 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2166 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2169 2019-04-08 Tom Tromey <tom@tromey.com>
2171 * valops.c (value_rtti_indirect_type): Replace throw_exception
2173 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2175 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2177 * target.c (target_translate_tls_address): Replace throw_exception
2179 * stack.c (frame_apply_command_count): Replace throw_exception
2181 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2183 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2185 * rs6000-tdep.c (rs6000_frame_cache)
2186 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2187 * remote.c: Replace throw_exception with throw.
2188 * record-full.c (record_full_message, record_full_wait_1)
2189 (record_full_restore): Replace throw_exception with throw.
2191 (get_thread_current_frame_id, record_btrace_start_replaying)
2192 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2193 (cmd_record_btrace_start): Replace throw_exception with throw.
2194 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2196 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2197 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2199 (find_linespec_symbols): Replace throw_exception with throw.
2200 * infrun.c (displaced_step_prepare, resume): Replace
2201 throw_exception with throw.
2202 * infcmd.c (post_create_inferior): Replace throw_exception with
2204 * inf-loop.c (inferior_event_handler): Replace throw_exception
2206 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2207 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2208 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2209 (get_prev_frame_always, get_frame_pc_if_available)
2210 (get_frame_address_in_block_if_available, get_frame_language):
2211 Replace throw_exception with throw.
2212 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2213 throw_exception with throw.
2214 * eval.c (fetch_subexp_value, evaluate_var_value)
2215 (evaluate_funcall, evaluate_subexp_standard): Replace
2216 throw_exception with throw.
2217 * dwarf2loc.c (call_site_find_chain)
2218 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2219 Replace throw_exception with throw.
2220 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2222 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2224 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2225 * completer.c (complete_line_internal): Replace throw_exception
2227 * compile/compile-object-run.c (compile_object_run): Replace
2228 throw_exception with throw.
2229 * cli/cli-script.c (process_next_line): Replace throw_exception
2231 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2232 (btrace_enable, btrace_maint_update_pt_packets): Replace
2233 throw_exception with throw.
2234 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2235 throw_exception with throw.
2236 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2237 throw_exception with throw.
2238 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2239 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2240 * aarch64-tdep.c (aarch64_make_prologue_cache)
2241 (aarch64_make_stub_cache): Replace throw_exception with throw.
2243 2019-04-08 Tom Tromey <tom@tromey.com>
2245 * common/common-exceptions.c (throw_exception): Rename from
2246 throw_exception_cxx. Remove old copy. Make argument const.
2247 (throw_it): Create and throw exception objects directly.
2248 * common/common-exceptions.h (throw_exception): Make argument
2250 (struct gdb_exception_error): Add constructor.
2251 (struct gdb_exception_quit): Add constructor.
2253 2019-04-08 Tom Tromey <tom@tromey.com>
2255 * common/common-exceptions.h (exception_rethrow): Don't declare.
2256 (TRY_SJLJ): Update comment.
2257 (TRY, CATCH, END_CATCH): Remove.
2258 * common/common-exceptions.c (exception_rethrow): Remove.
2260 2019-04-08 Tom Tromey <tom@tromey.com>
2262 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2264 (gdb_exception_error): Rename from
2265 gdb_exception_RETURN_MASK_ERROR.
2266 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2267 (gdb_quit_bad_alloc): Update.
2268 * aarch64-tdep.c: Update.
2269 * ada-lang.c: Update.
2270 * ada-typeprint.c: Update.
2271 * ada-valprint.c: Update.
2272 * amd64-tdep.c: Update.
2273 * arch-utils.c: Update.
2274 * break-catch-throw.c: Update.
2275 * breakpoint.c: Update.
2277 * c-varobj.c: Update.
2278 * cli/cli-cmds.c: Update.
2279 * cli/cli-interp.c: Update.
2280 * cli/cli-script.c: Update.
2281 * common/common-exceptions.c: Update.
2282 * common/new-op.c: Update.
2283 * common/selftest.c: Update.
2284 * compile/compile-c-symbols.c: Update.
2285 * compile/compile-cplus-symbols.c: Update.
2286 * compile/compile-object-load.c: Update.
2287 * compile/compile-object-run.c: Update.
2288 * completer.c: Update.
2289 * corelow.c: Update.
2291 * cp-support.c: Update.
2292 * cp-valprint.c: Update.
2293 * darwin-nat.c: Update.
2294 * disasm-selftests.c: Update.
2295 * dtrace-probe.c: Update.
2296 * dwarf-index-cache.c: Update.
2297 * dwarf-index-write.c: Update.
2298 * dwarf2-frame-tailcall.c: Update.
2299 * dwarf2-frame.c: Update.
2300 * dwarf2loc.c: Update.
2301 * dwarf2read.c: Update.
2303 * event-loop.c: Update.
2304 * event-top.c: Update.
2306 * f-valprint.c: Update.
2307 * fbsd-tdep.c: Update.
2308 * frame-unwind.c: Update.
2310 * gdbtypes.c: Update.
2311 * gnu-v3-abi.c: Update.
2312 * guile/guile-internal.h: Update.
2313 * guile/scm-block.c: Update.
2314 * guile/scm-breakpoint.c: Update.
2315 * guile/scm-cmd.c: Update.
2316 * guile/scm-disasm.c: Update.
2317 * guile/scm-frame.c: Update.
2318 * guile/scm-lazy-string.c: Update.
2319 * guile/scm-math.c: Update.
2320 * guile/scm-param.c: Update.
2321 * guile/scm-ports.c: Update.
2322 * guile/scm-pretty-print.c: Update.
2323 * guile/scm-symbol.c: Update.
2324 * guile/scm-symtab.c: Update.
2325 * guile/scm-type.c: Update.
2326 * guile/scm-value.c: Update.
2327 * i386-linux-tdep.c: Update.
2328 * i386-tdep.c: Update.
2329 * inf-loop.c: Update.
2330 * infcall.c: Update.
2334 * language.c: Update.
2335 * linespec.c: Update.
2336 * linux-fork.c: Update.
2337 * linux-nat.c: Update.
2338 * linux-tdep.c: Update.
2339 * linux-thread-db.c: Update.
2341 * mi/mi-cmd-break.c: Update.
2342 * mi/mi-cmd-stack.c: Update.
2343 * mi/mi-interp.c: Update.
2344 * mi/mi-main.c: Update.
2345 * objc-lang.c: Update.
2346 * p-valprint.c: Update.
2348 * ppc-linux-tdep.c: Update.
2349 * printcmd.c: Update.
2350 * python/py-arch.c: Update.
2351 * python/py-breakpoint.c: Update.
2352 * python/py-cmd.c: Update.
2353 * python/py-finishbreakpoint.c: Update.
2354 * python/py-frame.c: Update.
2355 * python/py-framefilter.c: Update.
2356 * python/py-gdb-readline.c: Update.
2357 * python/py-inferior.c: Update.
2358 * python/py-infthread.c: Update.
2359 * python/py-lazy-string.c: Update.
2360 * python/py-linetable.c: Update.
2361 * python/py-objfile.c: Update.
2362 * python/py-param.c: Update.
2363 * python/py-prettyprint.c: Update.
2364 * python/py-progspace.c: Update.
2365 * python/py-record-btrace.c: Update.
2366 * python/py-record.c: Update.
2367 * python/py-symbol.c: Update.
2368 * python/py-type.c: Update.
2369 * python/py-unwind.c: Update.
2370 * python/py-utils.c: Update.
2371 * python/py-value.c: Update.
2372 * python/python.c: Update.
2373 * record-btrace.c: Update.
2374 * record-full.c: Update.
2375 * remote-fileio.c: Update.
2377 * riscv-tdep.c: Update.
2378 * rs6000-aix-tdep.c: Update.
2379 * rs6000-tdep.c: Update.
2380 * rust-exp.y: Update.
2381 * rust-lang.c: Update.
2382 * s390-tdep.c: Update.
2383 * selftest-arch.c: Update.
2384 * solib-dsbt.c: Update.
2385 * solib-frv.c: Update.
2386 * solib-spu.c: Update.
2387 * solib-svr4.c: Update.
2389 * sparc64-linux-tdep.c: Update.
2391 * symfile-mem.c: Update.
2392 * symmisc.c: Update.
2396 * tracefile-tfile.c: Update.
2397 * tui/tui.c: Update.
2398 * typeprint.c: Update.
2399 * unittests/cli-utils-selftests.c: Update.
2400 * unittests/parse-connection-spec-selftests.c: Update.
2402 * valprint.c: Update.
2405 * windows-nat.c: Update.
2406 * x86-linux-nat.c: Update.
2407 * xml-support.c: Update.
2409 2019-04-08 Tom Tromey <tom@tromey.com>
2411 * xml-support.c: Use C++ exception handling.
2412 * x86-linux-nat.c: Use C++ exception handling.
2413 * windows-nat.c: Use C++ exception handling.
2414 * varobj.c: Use C++ exception handling.
2415 * value.c: Use C++ exception handling.
2416 * valprint.c: Use C++ exception handling.
2417 * valops.c: Use C++ exception handling.
2418 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2420 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2421 * typeprint.c: Use C++ exception handling.
2422 * tui/tui.c: Use C++ exception handling.
2423 * tracefile-tfile.c: Use C++ exception handling.
2424 * top.c: Use C++ exception handling.
2425 * thread.c: Use C++ exception handling.
2426 * target.c: Use C++ exception handling.
2427 * symmisc.c: Use C++ exception handling.
2428 * symfile-mem.c: Use C++ exception handling.
2429 * stack.c: Use C++ exception handling.
2430 * sparc64-linux-tdep.c: Use C++ exception handling.
2431 * solib.c: Use C++ exception handling.
2432 * solib-svr4.c: Use C++ exception handling.
2433 * solib-spu.c: Use C++ exception handling.
2434 * solib-frv.c: Use C++ exception handling.
2435 * solib-dsbt.c: Use C++ exception handling.
2436 * selftest-arch.c: Use C++ exception handling.
2437 * s390-tdep.c: Use C++ exception handling.
2438 * rust-lang.c: Use C++ exception handling.
2439 * rust-exp.y: Use C++ exception handling.
2440 * rs6000-tdep.c: Use C++ exception handling.
2441 * rs6000-aix-tdep.c: Use C++ exception handling.
2442 * riscv-tdep.c: Use C++ exception handling.
2443 * remote.c: Use C++ exception handling.
2444 * remote-fileio.c: Use C++ exception handling.
2445 * record-full.c: Use C++ exception handling.
2446 * record-btrace.c: Use C++ exception handling.
2447 * python/python.c: Use C++ exception handling.
2448 * python/py-value.c: Use C++ exception handling.
2449 * python/py-utils.c: Use C++ exception handling.
2450 * python/py-unwind.c: Use C++ exception handling.
2451 * python/py-type.c: Use C++ exception handling.
2452 * python/py-symbol.c: Use C++ exception handling.
2453 * python/py-record.c: Use C++ exception handling.
2454 * python/py-record-btrace.c: Use C++ exception handling.
2455 * python/py-progspace.c: Use C++ exception handling.
2456 * python/py-prettyprint.c: Use C++ exception handling.
2457 * python/py-param.c: Use C++ exception handling.
2458 * python/py-objfile.c: Use C++ exception handling.
2459 * python/py-linetable.c: Use C++ exception handling.
2460 * python/py-lazy-string.c: Use C++ exception handling.
2461 * python/py-infthread.c: Use C++ exception handling.
2462 * python/py-inferior.c: Use C++ exception handling.
2463 * python/py-gdb-readline.c: Use C++ exception handling.
2464 * python/py-framefilter.c: Use C++ exception handling.
2465 * python/py-frame.c: Use C++ exception handling.
2466 * python/py-finishbreakpoint.c: Use C++ exception handling.
2467 * python/py-cmd.c: Use C++ exception handling.
2468 * python/py-breakpoint.c: Use C++ exception handling.
2469 * python/py-arch.c: Use C++ exception handling.
2470 * printcmd.c: Use C++ exception handling.
2471 * ppc-linux-tdep.c: Use C++ exception handling.
2472 * parse.c: Use C++ exception handling.
2473 * p-valprint.c: Use C++ exception handling.
2474 * objc-lang.c: Use C++ exception handling.
2475 * mi/mi-main.c: Use C++ exception handling.
2476 * mi/mi-interp.c: Use C++ exception handling.
2477 * mi/mi-cmd-stack.c: Use C++ exception handling.
2478 * mi/mi-cmd-break.c: Use C++ exception handling.
2479 * main.c: Use C++ exception handling.
2480 * linux-thread-db.c: Use C++ exception handling.
2481 * linux-tdep.c: Use C++ exception handling.
2482 * linux-nat.c: Use C++ exception handling.
2483 * linux-fork.c: Use C++ exception handling.
2484 * linespec.c: Use C++ exception handling.
2485 * language.c: Use C++ exception handling.
2486 * jit.c: Use C++ exception handling.
2487 * infrun.c: Use C++ exception handling.
2488 * infcmd.c: Use C++ exception handling.
2489 * infcall.c: Use C++ exception handling.
2490 * inf-loop.c: Use C++ exception handling.
2491 * i386-tdep.c: Use C++ exception handling.
2492 * i386-linux-tdep.c: Use C++ exception handling.
2493 * guile/scm-value.c: Use C++ exception handling.
2494 * guile/scm-type.c: Use C++ exception handling.
2495 * guile/scm-symtab.c: Use C++ exception handling.
2496 * guile/scm-symbol.c: Use C++ exception handling.
2497 * guile/scm-pretty-print.c: Use C++ exception handling.
2498 * guile/scm-ports.c: Use C++ exception handling.
2499 * guile/scm-param.c: Use C++ exception handling.
2500 * guile/scm-math.c: Use C++ exception handling.
2501 * guile/scm-lazy-string.c: Use C++ exception handling.
2502 * guile/scm-frame.c: Use C++ exception handling.
2503 * guile/scm-disasm.c: Use C++ exception handling.
2504 * guile/scm-cmd.c: Use C++ exception handling.
2505 * guile/scm-breakpoint.c: Use C++ exception handling.
2506 * guile/scm-block.c: Use C++ exception handling.
2507 * guile/guile-internal.h: Use C++ exception handling.
2508 * gnu-v3-abi.c: Use C++ exception handling.
2509 * gdbtypes.c: Use C++ exception handling.
2510 * frame.c: Use C++ exception handling.
2511 * frame-unwind.c: Use C++ exception handling.
2512 * fbsd-tdep.c: Use C++ exception handling.
2513 * f-valprint.c: Use C++ exception handling.
2514 * exec.c: Use C++ exception handling.
2515 * event-top.c: Use C++ exception handling.
2516 * event-loop.c: Use C++ exception handling.
2517 * eval.c: Use C++ exception handling.
2518 * dwarf2read.c: Use C++ exception handling.
2519 * dwarf2loc.c: Use C++ exception handling.
2520 * dwarf2-frame.c: Use C++ exception handling.
2521 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2522 * dwarf-index-write.c: Use C++ exception handling.
2523 * dwarf-index-cache.c: Use C++ exception handling.
2524 * dtrace-probe.c: Use C++ exception handling.
2525 * disasm-selftests.c: Use C++ exception handling.
2526 * darwin-nat.c: Use C++ exception handling.
2527 * cp-valprint.c: Use C++ exception handling.
2528 * cp-support.c: Use C++ exception handling.
2529 * cp-abi.c: Use C++ exception handling.
2530 * corelow.c: Use C++ exception handling.
2531 * completer.c: Use C++ exception handling.
2532 * compile/compile-object-run.c: Use C++ exception handling.
2533 * compile/compile-object-load.c: Use C++ exception handling.
2534 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2535 * compile/compile-c-symbols.c: Use C++ exception handling.
2536 * common/selftest.c: Use C++ exception handling.
2537 * common/new-op.c: Use C++ exception handling.
2538 * cli/cli-script.c: Use C++ exception handling.
2539 * cli/cli-interp.c: Use C++ exception handling.
2540 * cli/cli-cmds.c: Use C++ exception handling.
2541 * c-varobj.c: Use C++ exception handling.
2542 * btrace.c: Use C++ exception handling.
2543 * breakpoint.c: Use C++ exception handling.
2544 * break-catch-throw.c: Use C++ exception handling.
2545 * arch-utils.c: Use C++ exception handling.
2546 * amd64-tdep.c: Use C++ exception handling.
2547 * ada-valprint.c: Use C++ exception handling.
2548 * ada-typeprint.c: Use C++ exception handling.
2549 * ada-lang.c: Use C++ exception handling.
2550 * aarch64-tdep.c: Use C++ exception handling.
2552 2019-04-08 Tom Tromey <tom@tromey.com>
2554 * xml-support.c (gdb_xml_parser::parse): Update.
2555 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2556 * value.c (show_convenience): Update.
2557 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2558 (test_parse_flags_qcs): Update.
2559 * thread.c (thr_try_catch_cmd): Update.
2560 * target.c (target_translate_tls_address): Update.
2561 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2562 (info_frame_command_core, frame_apply_command_count): Update.
2563 * rust-exp.y (rust_lex_exception_test): Update.
2564 * riscv-tdep.c (riscv_print_one_register_info): Update.
2565 * remote.c (remote_target::enable_btrace): Update.
2566 * record-btrace.c (record_btrace_enable_warn): Update.
2567 * python/py-utils.c (gdbpy_convert_exception): Update.
2568 * printcmd.c (do_one_display, print_variable_and_value): Update.
2569 * mi/mi-main.c (mi_print_exception): Update.
2570 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2571 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2572 * linux-nat.c (linux_nat_target::attach): Update.
2573 * linux-fork.c (class scoped_switch_fork_info): Update.
2574 * infrun.c (displaced_step_prepare): Update.
2575 * infcall.c (call_function_by_hand_dummy): Update.
2576 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2577 * gnu-v3-abi.c (print_one_vtable): Update.
2578 * frame.c (get_prev_frame_always): Update.
2579 * f-valprint.c (info_common_command_for_block): Update.
2580 * exec.c (try_open_exec_file): Update.
2581 * exceptions.c (print_exception, exception_print)
2582 (exception_fprintf, exception_print_same): Update.
2583 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2584 * dwarf-index-cache.c (index_cache::store)
2585 (index_cache::lookup_gdb_index): Update.
2586 * darwin-nat.c (maybe_cache_shell): Update.
2587 * cp-valprint.c (cp_print_value_fields): Update.
2588 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2589 (gcc_cplus_symbol_address): Update.
2590 * compile/compile-c-symbols.c (gcc_convert_symbol)
2591 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2592 * common/selftest.c: Update.
2593 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2595 (exception_try_scope_entry, exception_try_scope_exit): Don't
2597 (struct exception_try_scope): Remove.
2598 (TRY): Don't use exception_try_scope.
2599 (struct gdb_exception): Add constructor, operator=.
2601 (struct gdb_exception_RETURN_MASK_ALL)
2602 (struct gdb_exception_RETURN_MASK_ERROR)
2603 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2604 (struct gdb_quit_bad_alloc): Update.
2605 * common/common-exceptions.c (exception_none): Change
2607 (struct catcher) <state, exception>: Initialize inline.
2608 <prev>: Remove member.
2609 (current_catcher): Remove.
2610 (catchers): New global.
2611 (exceptions_state_mc_init): Simplify.
2612 (catcher_pop): Remove.
2613 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2614 (try_scope_depth, exception_try_scope_entry)
2615 (exception_try_scope_exit): Remove.
2616 (throw_exception_sjlj): Update.
2617 (exception_messages, exception_messages_size): Remove.
2618 (throw_it): Simplify.
2619 (gdb_exception_sliced_copy): Remove.
2620 (throw_exception_cxx): Update.
2621 * cli/cli-script.c (script_from_file): Update.
2622 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2624 * ada-valprint.c (ada_val_print): Update.
2625 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2626 (create_excep_cond_exprs): Update.
2628 2019-04-08 Tom Tromey <tom@tromey.com>
2630 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2631 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2632 (TRY, CATCH, END_CATCH): Remove some definitions.
2633 * common/common-exceptions.c: Don't use GDB_XCPT.
2634 (catcher_list_size): Remove.
2635 (throw_exception, throw_it): Simplify.
2637 2019-04-05 Tom Tromey <tom@tromey.com>
2639 Revert the header-sorting patch.
2640 * ft32-tdep.c: Revert.
2641 * frv-tdep.c: Revert.
2642 * frv-linux-tdep.c: Revert.
2644 * frame-unwind.c: Revert.
2645 * frame-base.c: Revert.
2646 * fork-child.c: Revert.
2647 * findvar.c: Revert.
2648 * findcmd.c: Revert.
2649 * filesystem.c: Revert.
2650 * filename-seen-cache.h: Revert.
2651 * filename-seen-cache.c: Revert.
2652 * fbsd-tdep.c: Revert.
2653 * fbsd-nat.h: Revert.
2654 * fbsd-nat.c: Revert.
2655 * f-valprint.c: Revert.
2656 * f-typeprint.c: Revert.
2658 * extension.h: Revert.
2659 * extension.c: Revert.
2660 * extension-priv.h: Revert.
2661 * expprint.c: Revert.
2664 * exceptions.c: Revert.
2665 * event-top.c: Revert.
2666 * event-loop.c: Revert.
2668 * elfread.c: Revert.
2669 * dwarf2read.h: Revert.
2670 * dwarf2read.c: Revert.
2671 * dwarf2loc.c: Revert.
2672 * dwarf2expr.h: Revert.
2673 * dwarf2expr.c: Revert.
2674 * dwarf2-frame.c: Revert.
2675 * dwarf2-frame-tailcall.c: Revert.
2676 * dwarf-index-write.h: Revert.
2677 * dwarf-index-write.c: Revert.
2678 * dwarf-index-common.c: Revert.
2679 * dwarf-index-cache.h: Revert.
2680 * dwarf-index-cache.c: Revert.
2681 * dummy-frame.c: Revert.
2682 * dtrace-probe.c: Revert.
2685 * disasm-selftests.c: Revert.
2686 * dictionary.c: Revert.
2687 * dicos-tdep.c: Revert.
2688 * demangle.c: Revert.
2691 * darwin-nat.h: Revert.
2692 * darwin-nat.c: Revert.
2693 * darwin-nat-info.c: Revert.
2694 * d-valprint.c: Revert.
2695 * d-namespace.c: Revert.
2698 * csky-tdep.c: Revert.
2699 * csky-linux-tdep.c: Revert.
2700 * cris-tdep.c: Revert.
2701 * cris-linux-tdep.c: Revert.
2702 * cp-valprint.c: Revert.
2703 * cp-support.c: Revert.
2704 * cp-namespace.c: Revert.
2706 * corelow.c: Revert.
2707 * corefile.c: Revert.
2708 * continuations.c: Revert.
2709 * completer.h: Revert.
2710 * completer.c: Revert.
2711 * complaints.c: Revert.
2712 * coffread.c: Revert.
2713 * coff-pe-read.c: Revert.
2714 * cli-out.h: Revert.
2715 * cli-out.c: Revert.
2716 * charset.c: Revert.
2717 * c-varobj.c: Revert.
2718 * c-valprint.c: Revert.
2719 * c-typeprint.c: Revert.
2721 * buildsym.c: Revert.
2722 * buildsym-legacy.c: Revert.
2723 * build-id.h: Revert.
2724 * build-id.c: Revert.
2726 * bsd-uthread.c: Revert.
2727 * breakpoint.h: Revert.
2728 * breakpoint.c: Revert.
2729 * break-catch-throw.c: Revert.
2730 * break-catch-syscall.c: Revert.
2731 * break-catch-sig.c: Revert.
2732 * blockframe.c: Revert.
2734 * bfin-tdep.c: Revert.
2735 * bfin-linux-tdep.c: Revert.
2736 * bfd-target.c: Revert.
2738 * ax-general.c: Revert.
2741 * avr-tdep.c: Revert.
2743 * auto-load.c: Revert.
2744 * arm-wince-tdep.c: Revert.
2745 * arm-tdep.c: Revert.
2746 * arm-symbian-tdep.c: Revert.
2747 * arm-pikeos-tdep.c: Revert.
2748 * arm-obsd-tdep.c: Revert.
2749 * arm-nbsd-tdep.c: Revert.
2750 * arm-nbsd-nat.c: Revert.
2751 * arm-linux-tdep.c: Revert.
2752 * arm-linux-nat.c: Revert.
2753 * arm-fbsd-tdep.c: Revert.
2754 * arm-fbsd-nat.c: Revert.
2755 * arm-bsd-tdep.c: Revert.
2756 * arch-utils.c: Revert.
2757 * arc-tdep.c: Revert.
2758 * arc-newlib-tdep.c: Revert.
2759 * annotate.h: Revert.
2760 * annotate.c: Revert.
2761 * amd64-windows-tdep.c: Revert.
2762 * amd64-windows-nat.c: Revert.
2763 * amd64-tdep.c: Revert.
2764 * amd64-sol2-tdep.c: Revert.
2765 * amd64-obsd-tdep.c: Revert.
2766 * amd64-obsd-nat.c: Revert.
2767 * amd64-nbsd-tdep.c: Revert.
2768 * amd64-nbsd-nat.c: Revert.
2769 * amd64-nat.c: Revert.
2770 * amd64-linux-tdep.c: Revert.
2771 * amd64-linux-nat.c: Revert.
2772 * amd64-fbsd-tdep.c: Revert.
2773 * amd64-fbsd-nat.c: Revert.
2774 * amd64-dicos-tdep.c: Revert.
2775 * amd64-darwin-tdep.c: Revert.
2776 * amd64-bsd-nat.c: Revert.
2777 * alpha-tdep.c: Revert.
2778 * alpha-obsd-tdep.c: Revert.
2779 * alpha-nbsd-tdep.c: Revert.
2780 * alpha-mdebug-tdep.c: Revert.
2781 * alpha-linux-tdep.c: Revert.
2782 * alpha-linux-nat.c: Revert.
2783 * alpha-bsd-tdep.c: Revert.
2784 * alpha-bsd-nat.c: Revert.
2785 * aix-thread.c: Revert.
2787 * addrmap.c: Revert.
2788 * ada-varobj.c: Revert.
2789 * ada-valprint.c: Revert.
2790 * ada-typeprint.c: Revert.
2791 * ada-tasks.c: Revert.
2792 * ada-lang.c: Revert.
2793 * aarch64-tdep.c: Revert.
2794 * aarch64-ravenscar-thread.c: Revert.
2795 * aarch64-newlib-tdep.c: Revert.
2796 * aarch64-linux-tdep.c: Revert.
2797 * aarch64-linux-nat.c: Revert.
2798 * aarch64-fbsd-tdep.c: Revert.
2799 * aarch64-fbsd-nat.c: Revert.
2800 * aarch32-linux-nat.c: Revert.
2802 2019-04-05 Tom Tromey <tom@tromey.com>
2804 * ft32-tdep.c: Sort headers.
2805 * frv-tdep.c: Sort headers.
2806 * frv-linux-tdep.c: Sort headers.
2807 * frame.c: Sort headers.
2808 * frame-unwind.c: Sort headers.
2809 * frame-base.c: Sort headers.
2810 * fork-child.c: Sort headers.
2811 * findvar.c: Sort headers.
2812 * findcmd.c: Sort headers.
2813 * filesystem.c: Sort headers.
2814 * filename-seen-cache.h: Sort headers.
2815 * filename-seen-cache.c: Sort headers.
2816 * fbsd-tdep.c: Sort headers.
2817 * fbsd-nat.h: Sort headers.
2818 * fbsd-nat.c: Sort headers.
2819 * f-valprint.c: Sort headers.
2820 * f-typeprint.c: Sort headers.
2821 * f-lang.c: Sort headers.
2822 * extension.h: Sort headers.
2823 * extension.c: Sort headers.
2824 * extension-priv.h: Sort headers.
2825 * expprint.c: Sort headers.
2826 * exec.h: Sort headers.
2827 * exec.c: Sort headers.
2828 * exceptions.c: Sort headers.
2829 * event-top.c: Sort headers.
2830 * event-loop.c: Sort headers.
2831 * eval.c: Sort headers.
2832 * elfread.c: Sort headers.
2833 * dwarf2read.h: Sort headers.
2834 * dwarf2read.c: Sort headers.
2835 * dwarf2loc.c: Sort headers.
2836 * dwarf2expr.h: Sort headers.
2837 * dwarf2expr.c: Sort headers.
2838 * dwarf2-frame.c: Sort headers.
2839 * dwarf2-frame-tailcall.c: Sort headers.
2840 * dwarf-index-write.h: Sort headers.
2841 * dwarf-index-write.c: Sort headers.
2842 * dwarf-index-common.c: Sort headers.
2843 * dwarf-index-cache.h: Sort headers.
2844 * dwarf-index-cache.c: Sort headers.
2845 * dummy-frame.c: Sort headers.
2846 * dtrace-probe.c: Sort headers.
2847 * disasm.h: Sort headers.
2848 * disasm.c: Sort headers.
2849 * disasm-selftests.c: Sort headers.
2850 * dictionary.c: Sort headers.
2851 * dicos-tdep.c: Sort headers.
2852 * demangle.c: Sort headers.
2853 * dcache.h: Sort headers.
2854 * dcache.c: Sort headers.
2855 * darwin-nat.h: Sort headers.
2856 * darwin-nat.c: Sort headers.
2857 * darwin-nat-info.c: Sort headers.
2858 * d-valprint.c: Sort headers.
2859 * d-namespace.c: Sort headers.
2860 * d-lang.c: Sort headers.
2861 * ctf.c: Sort headers.
2862 * csky-tdep.c: Sort headers.
2863 * csky-linux-tdep.c: Sort headers.
2864 * cris-tdep.c: Sort headers.
2865 * cris-linux-tdep.c: Sort headers.
2866 * cp-valprint.c: Sort headers.
2867 * cp-support.c: Sort headers.
2868 * cp-namespace.c: Sort headers.
2869 * cp-abi.c: Sort headers.
2870 * corelow.c: Sort headers.
2871 * corefile.c: Sort headers.
2872 * continuations.c: Sort headers.
2873 * completer.h: Sort headers.
2874 * completer.c: Sort headers.
2875 * complaints.c: Sort headers.
2876 * coffread.c: Sort headers.
2877 * coff-pe-read.c: Sort headers.
2878 * cli-out.h: Sort headers.
2879 * cli-out.c: Sort headers.
2880 * charset.c: Sort headers.
2881 * c-varobj.c: Sort headers.
2882 * c-valprint.c: Sort headers.
2883 * c-typeprint.c: Sort headers.
2884 * c-lang.c: Sort headers.
2885 * buildsym.c: Sort headers.
2886 * buildsym-legacy.c: Sort headers.
2887 * build-id.h: Sort headers.
2888 * build-id.c: Sort headers.
2889 * btrace.c: Sort headers.
2890 * bsd-uthread.c: Sort headers.
2891 * breakpoint.h: Sort headers.
2892 * breakpoint.c: Sort headers.
2893 * break-catch-throw.c: Sort headers.
2894 * break-catch-syscall.c: Sort headers.
2895 * break-catch-sig.c: Sort headers.
2896 * blockframe.c: Sort headers.
2897 * block.c: Sort headers.
2898 * bfin-tdep.c: Sort headers.
2899 * bfin-linux-tdep.c: Sort headers.
2900 * bfd-target.c: Sort headers.
2901 * bcache.c: Sort headers.
2902 * ax-general.c: Sort headers.
2903 * ax-gdb.h: Sort headers.
2904 * ax-gdb.c: Sort headers.
2905 * avr-tdep.c: Sort headers.
2906 * auxv.c: Sort headers.
2907 * auto-load.c: Sort headers.
2908 * arm-wince-tdep.c: Sort headers.
2909 * arm-tdep.c: Sort headers.
2910 * arm-symbian-tdep.c: Sort headers.
2911 * arm-pikeos-tdep.c: Sort headers.
2912 * arm-obsd-tdep.c: Sort headers.
2913 * arm-nbsd-tdep.c: Sort headers.
2914 * arm-nbsd-nat.c: Sort headers.
2915 * arm-linux-tdep.c: Sort headers.
2916 * arm-linux-nat.c: Sort headers.
2917 * arm-fbsd-tdep.c: Sort headers.
2918 * arm-fbsd-nat.c: Sort headers.
2919 * arm-bsd-tdep.c: Sort headers.
2920 * arch-utils.c: Sort headers.
2921 * arc-tdep.c: Sort headers.
2922 * arc-newlib-tdep.c: Sort headers.
2923 * annotate.h: Sort headers.
2924 * annotate.c: Sort headers.
2925 * amd64-windows-tdep.c: Sort headers.
2926 * amd64-windows-nat.c: Sort headers.
2927 * amd64-tdep.c: Sort headers.
2928 * amd64-sol2-tdep.c: Sort headers.
2929 * amd64-obsd-tdep.c: Sort headers.
2930 * amd64-obsd-nat.c: Sort headers.
2931 * amd64-nbsd-tdep.c: Sort headers.
2932 * amd64-nbsd-nat.c: Sort headers.
2933 * amd64-nat.c: Sort headers.
2934 * amd64-linux-tdep.c: Sort headers.
2935 * amd64-linux-nat.c: Sort headers.
2936 * amd64-fbsd-tdep.c: Sort headers.
2937 * amd64-fbsd-nat.c: Sort headers.
2938 * amd64-dicos-tdep.c: Sort headers.
2939 * amd64-darwin-tdep.c: Sort headers.
2940 * amd64-bsd-nat.c: Sort headers.
2941 * alpha-tdep.c: Sort headers.
2942 * alpha-obsd-tdep.c: Sort headers.
2943 * alpha-nbsd-tdep.c: Sort headers.
2944 * alpha-mdebug-tdep.c: Sort headers.
2945 * alpha-linux-tdep.c: Sort headers.
2946 * alpha-linux-nat.c: Sort headers.
2947 * alpha-bsd-tdep.c: Sort headers.
2948 * alpha-bsd-nat.c: Sort headers.
2949 * aix-thread.c: Sort headers.
2950 * agent.c: Sort headers.
2951 * addrmap.c: Sort headers.
2952 * ada-varobj.c: Sort headers.
2953 * ada-valprint.c: Sort headers.
2954 * ada-typeprint.c: Sort headers.
2955 * ada-tasks.c: Sort headers.
2956 * ada-lang.c: Sort headers.
2957 * aarch64-tdep.c: Sort headers.
2958 * aarch64-ravenscar-thread.c: Sort headers.
2959 * aarch64-newlib-tdep.c: Sort headers.
2960 * aarch64-linux-tdep.c: Sort headers.
2961 * aarch64-linux-nat.c: Sort headers.
2962 * aarch64-fbsd-tdep.c: Sort headers.
2963 * aarch64-fbsd-nat.c: Sort headers.
2964 * aarch32-linux-nat.c: Sort headers.
2966 2019-04-04 Tom Tromey <tom@tromey.com>
2968 * varobj.c (varobj_create): Update.
2969 * rust-exp.y (struct rust_parser) <update_innermost_block,
2970 lookup_symbol>: New methods.
2971 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2973 (rust_parser::rust_lookup_type)
2974 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2975 * printcmd.c (display_command, do_one_display): Update.
2976 * parser-defs.h (struct parser_state) <parser_state>: Add
2977 "tracker" parameter.
2978 (block_tracker): New member.
2979 (class innermost_block_tracker) <innermost_block_tracker>: Add
2981 <reset>: Remove method.
2982 (innermost_block): Don't declare.
2983 (null_post_parser): Update.
2984 * parse.c (innermost_block): Remove global.
2985 (write_dollar_variable): Update.
2986 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2987 Remove "tracker_types" parameter.
2988 (parse_expression): Add "tracker" parameter.
2989 (parse_expression_for_completion): Update.
2990 (null_post_parser): Add "tracker" parameter.
2991 * p-exp.y: Update rules.
2992 * m2-exp.y: Update rules.
2993 * language.h (struct language_defn) <la_post_parser>: Add
2994 "tracker" parameter.
2995 * go-exp.y: Update rules.
2996 * f-exp.y: Update rules.
2997 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2999 * d-exp.y: Update rules.
3000 * c-exp.y: Update rules.
3001 * breakpoint.c (set_breakpoint_condition): Create an
3002 innermost_block_tracker.
3003 (watch_command_1): Likewise.
3004 * ada-lang.c (resolve): Add "tracker" parameter.
3005 (resolve_subexp): Likewise.
3006 * ada-exp.y (write_var_from_sym): Update.
3008 2019-04-04 Tom Tromey <tom@tromey.com>
3010 * type-stack.h: New file.
3011 * type-stack.c: New file.
3012 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
3014 (insert_into_type_stack, insert_type, push_type, push_type_int)
3015 (insert_type_address_space, pop_type, pop_type_int)
3016 (pop_typelist, pop_type_stack, append_type_stack)
3017 (push_type_stack, get_type_stack, push_typelist)
3018 (follow_type_instance_flags, follow_types): Don't declare.
3019 * parse.c (type_stack): Remove global.
3020 (parse_exp_in_context): Update.
3021 (insert_into_type_stack, insert_type, push_type, push_type_int)
3022 (insert_type_address_space, pop_type, pop_type_int)
3023 (pop_typelist, pop_type_stack, append_type_stack)
3024 (push_type_stack, get_type_stack, push_typelist)
3025 (follow_type_instance_flags, follow_types): Remove (moved to
3027 * f-exp.y (type_stack): New global.
3029 (push_kind_type, f_parse): Update.
3030 * d-exp.y (type_stack): New global.
3033 * c-exp.y (struct c_parse_state) <type_stack>: New member.
3035 * Makefile.in (COMMON_SFILES): Add type-stack.c.
3036 (HFILES_NO_SRCDIR): Add type-stack.h.
3038 2019-04-04 Tom Tromey <tom@tromey.com>
3040 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
3041 (rust_parser::convert_ast_to_expression, rust_parse)
3042 (rust_lex_test_completion, rust_lex_tests): Update.
3043 * parser-defs.h (struct expr_completion_state): New.
3044 (struct parser_state) <parser_state>: Add completion parameter.
3045 <mark_struct_expression, mark_completion_tag>: New methods.
3046 <parse_completion, m_completion_state>: New members.
3047 (prefixify_expression, null_post_parser): Update.
3048 (mark_struct_expression, mark_completion_tag): Don't declare.
3049 * parse.c (parse_completion, expout_last_struct)
3050 (expout_tag_completion_type, expout_completion_name): Remove
3052 (parser_state::mark_struct_expression)
3053 (parser_state::mark_completion_tag): Now methods.
3054 (prefixify_expression): Add last_struct parameter.
3055 (prefixify_subexp): Likewise.
3056 (parse_exp_1): Update.
3057 (parse_exp_in_context): Add cstate parameter. Update.
3058 (parse_expression_for_completion): Create an
3059 expr_completion_state.
3060 (null_post_parser): Add "completion" parameter.
3061 * p-exp.y: Update rules.
3063 * language.h (struct language_defn) <la_post_parser>: Add
3064 "completing" parameter.
3065 * go-exp.y: Update rules.
3066 (lex_one_token): Update.
3067 * expression.h (parse_completion): Don't declare.
3068 * d-exp.y: Update rules.
3069 (lex_one_token): Update rules.
3070 * c-exp.y: Update rules.
3071 (lex_one_token): Update.
3072 * ada-lang.c (resolve): Add "parse_completion" parameter.
3073 (resolve_subexp): Likewise.
3074 (ada_resolve_function): Likewise.
3076 2019-04-04 Tom Tromey <tom@tromey.com>
3078 * parser-defs.h (struct parser_state) <start_arglist,
3079 end_arglist>: New methods.
3080 <arglist_len, m_funcall_chain>: New members.
3081 (arglist_len, start_arglist, end_arglist): Don't declare.
3082 * parse.c (arglist_len, funcall_chain): Remove global.
3083 (start_arglist, end_arglist): Remove functions.
3084 (parse_exp_in_context): Update.
3085 * p-exp.y: Update rules.
3086 * m2-exp.y: Update rules.
3087 * go-exp.y: Update rules.
3088 * f-exp.y: Update rules.
3089 * d-exp.y: Update rules.
3090 * c-exp.y: Update rules.
3092 2019-04-04 Tom Tromey <tom@tromey.com>
3094 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3095 lex_operator, push_back>: New methods.
3097 (rust_parser::lex_hex, lex_escape): Rename and update.
3098 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3099 (rust_parser::lex_operator): Rename and update.
3100 (rust_parser::lex_number, rustyylex, rustyyerror)
3101 (rust_lex_test_init, rust_lex_test_sequence)
3102 (rust_lex_test_push_back, rust_lex_tests): Update.
3103 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3105 <lexptr, prev_lexptr>: New members.
3106 (lexptr, prev_lexptr): Don't declare.
3107 * parse.c (lexptr, prev_lexptr): Remove globals.
3108 (parse_exp_in_context): Update.
3109 * p-exp.y (yylex, yyerror): Update.
3110 * m2-exp.y (parse_number, yylex, yyerror): Update.
3111 * go-exp.y (lex_one_token, yyerror): Update.
3112 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3113 * d-exp.y (lex_one_token, yyerror): Update.
3114 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3115 (lex_one_token, yyerror): Update.
3116 * ada-lex.l (YY_INPUT): Update.
3117 (rewind_to_char): Update.
3118 * ada-exp.y (yyerror): Update.
3120 2019-04-04 Tom Tromey <tom@tromey.com>
3122 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3123 * parser-defs.h (struct parser_state) <parser_state>: Add new
3125 <comma_terminates>: New member.
3126 (comma_terminates): Don't declare global.
3127 * parse.c (comma_terminates): Remove global.
3128 (parse_exp_in_context): Update.
3129 * p-exp.y (yylex): Update.
3130 * m2-exp.y (yylex): Update.
3131 * go-exp.y (lex_one_token): Update.
3132 * f-exp.y (yylex): Update.
3133 * d-exp.y (lex_one_token): Update.
3134 * c-exp.y (lex_one_token): Update.
3135 * ada-lex.l: Update.
3137 2019-04-04 Tom Tromey <tom@tromey.com>
3139 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3140 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3141 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3142 * parser-defs.h (paren_depth): Don't declare.
3143 * parse.c (paren_depth): Remove global.
3144 (parse_exp_in_context): Update.
3145 * p-exp.y (paren_depth): New global.
3146 (pascal_parse): Initialize it.
3147 * m2-exp.y (paren_depth): New global.
3148 (m2_parse): Initialize it.
3149 * go-exp.y (paren_depth): New global.
3150 (go_parse): Initialize it.
3151 * f-exp.y (paren_depth): New global.
3152 (f_parse): Initialize it.
3153 * d-exp.y (paren_depth): New global.
3154 (d_parse): Initialize it.
3155 * c-exp.y (paren_depth): New global.
3156 (c_parse): Initialize it.
3157 * ada-lex.l (paren_depth): New global.
3158 (lexer_init): Initialize it.
3160 2019-04-04 Tom Tromey <tom@tromey.com>
3162 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3163 (rust_parser::convert_ast_to_type)
3164 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3165 * parser-defs.h (struct parser_state) <parser_state>: Add
3166 parameters. Initialize new members.
3167 <expression_context_block, expression_context_pc>: New members.
3168 * parse.c (expression_context_block, expression_context_pc):
3170 (parse_exp_in_context): Update.
3171 * p-exp.y: Update all rules.
3173 * m2-exp.y: Update all rules.
3175 * go-exp.y (yylex): Update.
3176 * f-exp.y (yylex): Update.
3177 * d-exp.y: Update all rules.
3179 * c-exp.y: Update all rules.
3180 (lex_one_token, classify_name, yylex, c_parse): Update.
3181 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3183 2019-04-04 Tom Tromey <tom@tromey.com>
3185 * gdbarch.h, gdbarch.c: Rebuild.
3186 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3188 (struct stap_parse_info): Replace "parser_state" with
3190 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3191 (parser_state): New class.
3192 * parse.c (expr_builder): Rename.
3193 (expr_builder::release): Rename.
3194 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3195 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3196 (write_exp_elt_longcst, write_exp_elt_floatcst)
3197 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3198 (write_exp_string_vector, write_exp_bitstring)
3199 (write_exp_msymbol, mark_struct_expression)
3200 (write_dollar_variable)
3201 (insert_type_address_space, increase_expout_size): Replace
3202 "parser_state" with "expr_builder".
3203 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3204 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3205 "parser_state" with "expr_builder".
3207 2019-04-04 Tom Tromey <tom@tromey.com>
3209 * rust-exp.y: Replace "parse_language" with method call.
3211 (yylex): Replace "parse_language" with method call.
3213 (yylex): Replace "parse_language" with method call.
3214 * go-exp.y (classify_name): Replace "parse_language" with method
3216 * f-exp.y (yylex): Replace "parse_language" with method call.
3217 * d-exp.y (lex_one_token): Replace "parse_language" with method
3220 (lex_one_token, classify_name, yylex): Replace "parse_language"
3222 * ada-exp.y (find_primitive_type, type_char)
3223 (type_system_address): Replace "parse_language" with method call.
3225 2019-04-04 Tom Tromey <tom@tromey.com>
3227 * rust-exp.y: Replace "parse_gdbarch" with method call.
3228 * parse.c (write_dollar_variable, insert_type_address_space):
3229 Replace "parse_gdbarch" with method call.
3230 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3232 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3234 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3235 "parse_gdbarch" with method call.
3236 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3238 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3239 "parse_gdbarch" with method call.
3240 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3241 "parse_gdbarch" with method call.
3242 * c-exp.y (parse_type, parse_number, classify_name): Replace
3243 "parse_gdbarch" with method call.
3244 * ada-lex.l: Replace "parse_gdbarch" with method call.
3245 * ada-exp.y (parse_type, find_primitive_type, type_char)
3246 (type_system_address): Replace "parse_gdbarch" with method call.
3248 2019-04-04 Tom Tromey <tom@tromey.com>
3250 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3251 * stap-probe.c (stap_parse_argument): Update.
3252 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3253 initial_size parameter.
3254 * rust-exp.y (rust_lex_tests): Update.
3255 * parse.c (parser_state): Update.
3256 (parse_exp_in_context): Update.
3257 * parser-defs.h (struct parser_state) <parser_state>: Remove
3258 "initial_size" parameter.
3260 2019-04-04 Tom Tromey <tom@tromey.com>
3262 * parser-defs.h (increase_expout_size): Don't declare.
3263 * parse.c (increase_expout_size): Now static.
3265 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3267 * gnu-nat.c (gnu_nat_target::wait): Fix
3268 target_waitstatus_to_string call.
3270 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3272 * eval.c (evaluate_subexp_standard): Handle internal functions
3273 during Fortran function call handling.
3275 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3277 * NEWS: Mention new internal functions.
3278 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3279 (read_base_type): Use dwarf2_init_complex_target_type.
3280 * value.c (creal_internal_fn): New function.
3281 (cimag_internal_fn): New function.
3282 (_initialize_values): Register new internal functions.
3284 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3286 * infrun.c (stop_all_threads): If debug_infrun, always
3287 trace the wait status after wait_one, using
3288 target_waitstatus_to_string and target_pid_to_str.
3289 (handle_inferior_event): Replace various trace of
3290 wait status kind by a single trace.
3291 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3292 wait status kind image by target_waitstatus_to_string.
3293 * target/waitstatus.c (target_waitstatus_to_string): Fix
3296 2019-04-01 Tom Tromey <tromey@adacore.com>
3299 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3301 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3302 Pedro Alves <palves@redhat.com>
3304 * top.c (quit_force): Call 'finalize_values'.
3305 * value.c (finalize_values): New function.
3306 * value.h (finalize_values): Declare.
3308 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3310 * NEWS: Announce $_gdb_major and $_gdb_minor.
3312 * top.c (init_gdb_version_vars): New function.
3313 (gdb_init): Call init_gdb_version_vars.
3315 2019-03-29 Tom Tromey <tromey@adacore.com>
3317 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3318 help text. Remove dead code.
3320 2019-03-29 Keith Seitz <keiths@redhat.com>
3322 From Siddhesh Poyarekar:
3323 * f-lang.h (f77_get_upperbound): Return LONGEST.
3324 (f77_get_lowerbound): Likewise.
3325 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3326 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3328 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3329 plongest to format print it.
3330 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3331 (f77_get_upperbound): Likewise.
3332 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3333 LOWER_BOUND to LONGEST.
3334 (f77_create_arrayprint_offset_tbl): Likewise.
3336 2019-03-29 Keith Seitz <keiths@redhat.com>
3338 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3339 %s/pulongest for TYPE_LENGTH instead of %d in format
3341 * ada-typerint.c (ada_print_type): Likewise.
3342 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3343 * compile/compile-c-support.c (generate_register_struct): Likewise.
3344 * gdbtypes.c (recursive_dump_type): Likewise.
3345 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3346 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3347 instead of %d in format strings.
3348 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3349 to std::min to ULONGEST.
3350 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3351 instead of %d in format strings.
3352 * tracepoint.c (info_scope_command): Likewise.
3353 * typeprint.c (print_offset_data::update)
3354 (print_offset_data::finish): Likewise.
3355 * xtensa-tdep.c (xtensa_store_return_value)
3356 (xtensa_push_dummy_call): Likewise.
3358 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3360 * windows-nat.c (display_selector): Fixed format specifications
3363 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3365 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3367 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3369 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3370 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3371 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3372 (nios2_linux_init_abi): Install it.
3374 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3376 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3378 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3380 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3382 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3383 Tom Tromey <tromey@adacore.com>
3385 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3387 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3389 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3390 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3391 method to compute the bounds of range types. Also print "[evaluated]"
3392 if the bounds' values come from a dynamic evaluation.
3394 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3396 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3397 whitespace when pretty printing is on.
3399 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3401 * ppc-linux-nat.c: Add include.
3403 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3405 * NEWS: Mention AArch64 Pointer Authentication.
3407 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3409 * arm-linux-nat.c: Add include.
3411 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3413 * source-cache.c (source_cache::get_source_lines): Re-read
3414 fullname after calling open_source_file.
3416 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3418 * NEWS: Mention TLS support for FreeBSD.
3420 2019-03-25 Tom Tromey <tromey@adacore.com>
3422 * minsyms.c (BUNCH_SIZE): Update comment.
3423 (~minimal_symbol_reader): Remove old comment.
3424 (compact_minimal_symbols): Update comment.
3425 (minimal_symbol_reader::install): Remove old comment. Update
3428 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3430 * s390-linux-nat.c: Add include.
3432 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3434 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3435 Call linux_get_hwcap.
3436 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3438 (aarch64_linux_get_hwcap): Remove function.
3439 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3441 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3443 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3444 * linux-tdep.c (linux_get_hwcap): Add function.
3445 (linux_get_hwcap2): Likewise.
3446 * linux-tdep.h (linux_get_hwcap): Add declaration.
3447 (linux_get_hwcap2): Likewise.
3448 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3449 (ppc_linux_get_hwcap2): Likewise.
3450 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3452 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3453 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3454 (ppc_linux_nat_target::read_description): Likewise.
3455 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3456 * s390-linux-nat.c: Likewise.
3457 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3459 2019-03-24 Tom Tromey <tom@tromey.com>
3461 * ada-lang.c (standard_lookup): Simplify initialization.
3462 (ada_lookup_symbol_nonlocal): Simplify return.
3463 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3464 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3465 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3466 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3468 * solib.c (solib_global_lookup): Simplify.
3469 * symtab.c (null_block_symbol): Remove.
3470 (symbol_cache_lookup): Simplify returns.
3471 (lookup_language_this): Simplify returns.
3472 (lookup_symbol_aux): Simplify return.
3473 (lookup_local_symbol): Simplify returns.
3474 (lookup_global_symbol_from_objfile): Simplify return.
3475 (lookup_symbol_in_objfile_symtabs)
3476 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3477 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3478 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3479 * cp-namespace.c (cp_lookup_bare_symbol)
3480 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3481 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3482 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3483 (cp_lookup_symbol_via_imports): Simplify initialization.
3484 (find_symbol_in_baseclass): Likewise.
3485 * symtab.h (null_block_symbol): Remove.
3486 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3487 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3488 (d_lookup_symbol_module): Likewise.
3489 (find_symbol_in_baseclass): Simplify initialization.
3491 2019-03-24 Tom Tromey <tom@tromey.com>
3493 * expression.h: Don't include symtab.h.
3494 (struct block): Forward declare.
3496 2019-03-24 Tom Tromey <tom@tromey.com>
3498 * c-exp.y (typebase): Remove casts.
3499 * gdbtypes.c (lookup_unsigned_typename, )
3500 (lookup_signed_typename): Remove cast.
3501 * eval.c (parse_to_comma_and_eval): Remove cast.
3502 * parse.c (write_dollar_variable): Remove cast.
3503 * block.h (struct block) <superblock>: Now const.
3504 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3505 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3506 (map_block): Make "block" const.
3507 * symfile.h (struct quick_symbol_functions)
3508 <map_matching_symbols>: Constify block argument to "callback".
3509 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3511 (find_pc_sect_compunit_symtab): Make "b" const.
3512 (find_symbol_at_address): Likewise.
3513 (search_symbols): Likewise.
3514 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3515 (dw2_debug_names_lookup_symbol): Likewise.
3516 (dw2_map_matching_symbols): Update.
3517 * p-valprint.c (pascal_val_print): Remove "block".
3518 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3519 (aux_add_nonlocal_symbols): Make "block" const.
3520 (resolve_subexp): Remove cast.
3521 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3523 (iterate_over_file_blocks): Likewise.
3524 * f-exp.y (%union) <bval>: Remove.
3525 * coffread.c (patch_opaque_types): Make "b" const.
3526 * spu-tdep.c (spu_catch_start): Make "block" const.
3527 * c-valprint.c (print_unpacked_pointer): Remove "block".
3528 * symmisc.c (dump_symtab_1): Make "b" const.
3529 (block_depth): Make "block" const.
3530 * d-exp.y (%union) <bval>: Remove.
3531 * cp-support.h (cp_lookup_rtti_type): Update.
3532 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3533 * psymtab.c (psym_lookup_symbol): Make "block" const.
3534 (maintenance_check_psymtabs): Make "b" const.
3535 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3536 (enumerate_locals, enumerate_args): Update.
3537 * python/py-symtab.c (stpy_global_block): Make "block" const.
3538 (stpy_static_block): Likewise.
3539 * inline-frame.c (block_starting_point_at): Make "new_block"
3541 * block.c (find_block_in_blockvector): Make return type const.
3542 (blockvector_for_pc_sect): Make "b" const.
3543 (find_block_in_blockvector): Make "b" const.
3545 2019-03-23 Tom Tromey <tom@tromey.com>
3547 * varobj.c (varobj_create): Update.
3548 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3549 * printcmd.c (display_command, do_one_display): Don't reset
3551 * parser-defs.h (enum innermost_block_tracker_type): Move to
3553 (innermost_block): Update comment.
3554 * parse.c (parse_exp_1): Add tracker_types parameter.
3555 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3556 tracker_types parameter. Reset innermost_block.
3557 (parse_exp_in_context): Remove.
3558 (parse_expression_for_completion): Update.
3559 * objfiles.c (~objfile): Don't reset expression_context_block or
3561 * expression.h (enum innermost_block_tracker_type): Move from
3563 (parse_exp_1): Add tracker_types parameter.
3564 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3565 reset innermost_block.
3567 2019-03-23 Tom Tromey <tom@tromey.com>
3569 * objfiles.h: Include bcache.h.
3571 2019-03-23 Tom Tromey <tom@tromey.com>
3573 * linespec.c (get_current_search_block): Use
3574 scoped_restore_current_language.
3575 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3577 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3578 Jiong Wang <jiong.wang@arm.com>
3580 * aarch64-linux-tdep.c
3581 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3583 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3585 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3586 Jiong Wang <jiong.wang@arm.com>
3588 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3590 (aarch64_analyze_prologue_test): Add PACIASP test.
3591 (aarch64_prologue_prev_register): Unmask PC value.
3593 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3594 Jiong Wang <jiong.wang@arm.com>
3596 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3597 (aarch64_dwarf2_prev_register): Unmask PC value.
3598 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3599 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3600 DW_CFA_AARCH64_negate_ra_state.
3601 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3603 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3604 Jiong Wang <jiong.wang@arm.com>
3606 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3608 (aarch64_pseudo_register_name): Likewise.
3609 (aarch64_pseudo_register_type): Likewise.
3610 (aarch64_pseudo_register_reggroup_p): Likewise.
3611 (aarch64_gdbarch_init): Add pauth registers.
3612 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3613 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3614 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3615 (struct gdbarch_tdep): Add regnum for ra_state.
3617 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3618 Jiong Wang <jiong.wang@arm.com>
3620 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3622 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3623 Jiong Wang <jiong.wang@arm.com>
3625 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3627 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3628 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3629 (aarch64_gdbarch_init): Add puth registers.
3630 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3631 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3632 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3634 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3635 Jiong Wang <jiong.wang@arm.com>
3637 * aarch64-linux-nat.c
3638 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3639 * aarch64-linux-tdep.c
3640 (aarch64_linux_core_read_description): Likewise.
3641 (aarch64_linux_get_hwcap): New function.
3642 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3643 (aarch64_linux_get_hwcap): New declaration.
3645 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3646 Jiong Wang <jiong.wang@arm.com>
3648 * aarch64-linux-nat.c
3649 (aarch64_linux_nat_target::read_description): Add pauth param.
3650 * aarch64-linux-tdep.c
3651 (aarch64_linux_core_read_description): Likewise.
3652 * aarch64-tdep.c (struct target_desc): Add in pauth.
3653 (aarch64_read_description): Add pauth param.
3654 (aarch64_gdbarch_init): Likewise.
3655 * aarch64-tdep.h (aarch64_read_description): Likewise.
3656 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3657 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3658 * features/Makefile: Add new files.
3659 * features/aarch64-pauth.c: New file.
3660 * features/aarch64-pauth.xml: New file.
3662 2019-03-20 Tom Tromey <tromey@adacore.com>
3664 * infrun.c (handle_inferior_event): Rename from
3665 handle_inferior_event_1. Create a scoped_value_mark.
3666 (handle_inferior_event): Remove.
3668 2019-03-19 Tom Tromey <tromey@adacore.com>
3670 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3671 * infrun.h (print_stop_event): Add "displays" parameter.
3672 * infrun.c (print_stop_event): Add "displays" parameter.
3674 2019-03-19 Pedro Alves <palves@redhat.com>
3676 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3677 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3678 to -1. Fix TABs vs spaces.
3679 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3680 * tui/tui-out.h (tui_ui_out) Add intro comments.
3681 <m_line, m_start_of_line>: In-class initialize, and add describing
3684 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3686 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3688 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3690 2019-03-18 Pedro Alves <palves@redhat.com>
3691 Eli Zaretskii <eliz@gnu.org>
3693 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3694 m_line and m_start_of_line.
3696 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3698 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3699 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3700 it returns a newline. This fixes a regression in TU mode, whereby
3701 the next line is output on the same screen line as the user input.
3703 2019-03-18 Tom Tromey <tromey@adacore.com>
3705 * minsyms.c (minimal_symbol_reader::install): Remove call to
3708 2019-03-18 Pedro Alves <palves@redhat.com>
3710 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3712 (apply_style): New, factored out from ...
3713 (apply_ansi_escape): ... this. Handle reverse video mode.
3714 (tui_set_reverse_mode): New function.
3715 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3716 * tui/tui-winsource.c (tui_show_source_line): Use
3717 tui_set_reverse_mode instead of setting A_STANDOUT.
3718 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3721 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3723 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3726 2019-03-18 Tom Tromey <tromey@adacore.com>
3728 * ada-lang.c (empty_array): Add "high" parameter.
3729 (ada_evaluate_subexp): Update.
3731 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3733 * unittests/string_view-selftests.c: Define
3734 _initialize_string_view_selftests unconditionally.
3736 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3739 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3741 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3744 * windows-nat.c (display_selector): Fix format specifiers.
3746 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3748 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3749 tui_refill_source_window instead of tui_refresh_win, to update the
3750 current execution line. This fixes redisplay of the current line
3751 when stepping through the code with "next" or "step".
3753 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3755 * source-cache.c (source_cache::get_source_lines): Call
3756 find_source_lines to initialize s->nlines. This fixes vertical
3757 scrolling of TUI source window when the DOWN arrow is pressed.
3759 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3761 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3762 linux-thread-db.c (_initialize_thread_db): Likewise.
3764 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3766 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3767 wclrtoeol in tui_show_source_line". This reverts changes made in
3768 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3770 2019-03-15 Tom Tromey <tom@tromey.com>
3772 * symtab.h (struct minimal_symbol): Derive from
3773 general_symbol_info.
3774 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3775 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3776 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3777 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3778 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3779 (MSYMBOL_SEARCH_NAME): Update.
3780 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3781 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3782 * minsyms.c (minimal_symbol_reader::record_full): Update.
3784 2019-03-15 Tom Tromey <tom@tromey.com>
3786 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3788 2019-03-15 Tom Tromey <tom@tromey.com>
3790 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3792 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3794 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3795 (build_minimal_symbol_hash_tables)
3796 (minimal_symbol_reader::install): Update.
3798 2019-03-15 Tom Tromey <tom@tromey.com>
3800 * symtab.c (create_demangled_names_hash): Update.
3801 (symbol_set_names): Update.
3802 * objfiles.h (struct objfile_per_bfd_storage)
3803 <demangled_names_hash>: Now an htab_up.
3804 * objfiles.c (objfile_per_bfd_storage): Simplify.
3806 2019-03-15 Tom Tromey <tom@tromey.com>
3808 * objfiles.h (struct objfile_per_bfd_storage): Declare
3810 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3812 (get_objfile_bfd_data): Use new. Don't initialize
3814 (free_objfile_per_bfd_storage): Remove.
3815 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3817 2019-03-15 Tom Tromey <tom@tromey.com>
3819 * symfile.c (reread_symbols): Update.
3820 * objfiles.c (objfile::objfile): Update.
3821 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3822 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3824 (minimal_symbol_reader::install): Update.
3825 (terminate_minimal_symbol_table): Remove.
3826 * jit.c (jit_object_close_impl): Update.
3828 2019-03-15 Tom Tromey <tom@tromey.com>
3830 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3833 2019-03-15 Tom Tromey <tom@tromey.com>
3835 * objfiles.h (struct objfile_per_bfd_storage)
3836 <demangled_hash_languages>: Now a bitset.
3837 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3838 (lookup_minimal_symbol): Update.
3840 2019-03-15 Tom Tromey <tom@tromey.com>
3842 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3843 Don't return the symbol.
3844 * coffread.c (record_minimal_symbol): Use record_full.
3846 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3848 The MS-Windows port of ncurses fails to switch to a color pair if
3849 one or both of the colors are the implicit default colors. This
3850 change records the default colors when TUI is initialized, and
3851 then specifies them explicitly when a color pair uses the default
3852 colors. This allows color styling in TUI mode on MS-Windows.
3854 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3856 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3857 colors in ncurses_norm_attr.
3858 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3859 "none", replace it with the default color recorded in
3862 2019-03-14 Tom Tromey <tromey@adacore.com>
3864 * source-cache.h (class source_cache) <get_source_lines>: Return
3866 * source-cache.c (source_cache::extract_lines): Handle case where
3867 first_pos==npos. Return std::string.
3868 (source_cache::get_source_lines): Update.
3870 2019-03-14 Tom Tromey <tromey@adacore.com>
3872 * NEWS: Add item for "style sources" commands.
3873 * source-cache.c (source_cache::get_source_lines): Check
3875 * cli/cli-style.c (source_styling): New global.
3876 (_initialize_cli_style): Add "style sources" commands.
3877 (show_style_sources): New function.
3878 * cli/cli-style.h (source_styling): Declare.
3880 2019-03-14 Pedro Alves <palves@redhat.com>
3881 Tom Tromey <tromey@adacore.com>
3883 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3884 * tui/tui-winsource.c (tui_refill_source_window): New function,
3886 (tui_horizontal_source_scroll): ... here. Move some logic.
3887 * cli/cli-style.c (set_style_enabled): Notify new observable.
3888 * tui/tui-hooks.c (tui_redisplay_source): New function.
3889 (tui_attach_detach_observers): Attach or detach
3890 tui_redisplay_source.
3891 * observable.h (source_styling_changed): New observable.
3892 * observable.c: Define source_styling_changed observable.
3894 2019-03-13 Tom Tromey <tromey@adacore.com>
3896 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3897 (i386_gnu_nat_target::store_registers): Update.
3898 * target-debug.h (target_debug_print_std_string): New macro.
3899 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3900 * windows-tdep.c (display_one_tib): Update.
3901 * tui/tui-stack.c (tui_make_status_line): Update.
3902 * top.c (print_inferior_quit_action): Update.
3903 * thread.c (thr_try_catch_cmd): Update.
3904 (add_thread_with_info): Update.
3905 (thread_target_id_str): Update.
3906 (thr_try_catch_cmd): Update.
3907 (thread_command): Update.
3908 (thread_find_command): Update.
3909 * record-btrace.c (record_btrace_target::info_record)
3910 (record_btrace_resume_thread, record_btrace_target::resume)
3911 (record_btrace_cancel_resume, record_btrace_step_thread)
3912 (record_btrace_target::wait, record_btrace_target::wait)
3913 (record_btrace_target::wait, record_btrace_target::stop): Update.
3914 * progspace.c (print_program_space): Update.
3915 * process-stratum-target.c
3916 (process_stratum_target::thread_address_space): Update.
3917 * linux-fork.c (linux_fork_mourn_inferior)
3918 (detach_checkpoint_command, info_checkpoints_command)
3919 (linux_fork_context): Update.
3920 (linux_fork_detach): Update.
3921 (class scoped_switch_fork_info): Update.
3922 (delete_checkpoint_command): Update.
3923 * infrun.c (follow_fork_inferior): Update.
3924 (follow_fork_inferior): Update.
3925 (proceed_after_vfork_done): Update.
3926 (handle_vfork_child_exec_or_exit): Update.
3927 (follow_exec): Update.
3928 (displaced_step_prepare_throw): Update.
3929 (displaced_step_restore): Update.
3930 (start_step_over): Update.
3932 (clear_proceed_status_thread): Update.
3934 (print_target_wait_results): Update.
3935 (do_target_wait): Update.
3936 (context_switch): Update.
3937 (stop_all_threads): Update.
3938 (restart_threads): Update.
3939 (finish_step_over): Update.
3940 (handle_signal_stop): Update.
3941 (switch_back_to_stepped_thread): Update.
3942 (keep_going_pass_signal): Update.
3943 (print_exited_reason): Update.
3944 (normal_stop): Update.
3945 * inferior.c (inferior_pid_to_str): Change return type.
3946 (print_selected_inferior): Update.
3947 (add_inferior): Update.
3948 (detach_inferior): Update.
3949 * dummy-frame.c (fprint_dummy_frames): Update.
3950 * dcache.c (dcache_info_1): Update.
3951 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3952 (btrace_fetch, btrace_clear): Update.
3953 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3954 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3956 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3957 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3958 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3959 * gdbarch.c, gdbarch.h: Rebuild.
3960 * gdbarch.sh (core_pid_to_str): Change return type.
3961 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3963 (windows_nat_target::pid_to_str): Change return type.
3964 (windows_delete_thread): Update.
3965 (windows_nat_target::attach): Update.
3966 (windows_nat_target::files_info): Update.
3967 * target-delegates.c: Rebuild.
3968 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3970 (sol_thread_target::pid_to_str): Change return type.
3971 * remote.c (class remote_target) <pid_to_str>: Change return
3973 (remote_target::pid_to_str): Change return type.
3974 (extended_remote_target::attach, remote_target::remote_stop_ns)
3975 (remote_target::remote_notif_remove_queued_reply)
3976 (remote_target::push_stop_reply, remote_target::disable_btrace):
3978 (extended_remote_target::attach): Update.
3979 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3981 (gdbsim_target::pid_to_str): Change return type.
3982 * ravenscar-thread.c (struct ravenscar_thread_target)
3983 <pid_to_str>: Change return type.
3984 (ravenscar_thread_target::pid_to_str): Change return type.
3985 * procfs.c (class procfs_target) <pid_to_str>: Change return
3987 (procfs_target::pid_to_str): Change return type.
3988 (procfs_target::attach): Update.
3989 (procfs_target::detach): Update.
3990 (procfs_target::fetch_registers): Update.
3991 (procfs_target::store_registers): Update.
3992 (procfs_target::wait): Update.
3993 (procfs_target::files_info): Update.
3994 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3995 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3997 (nto_procfs_target::pid_to_str): Change return type.
3998 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3999 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
4001 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
4003 (attach_proc_task_lwp_callback, get_detach_signal)
4004 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
4005 (linux_nat_target::resume, wait_lwp, stop_callback)
4006 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
4007 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
4008 (linux_nat_wait_1, resume_stopped_resumed_lwps)
4009 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
4010 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
4012 (inf_ptrace_target::attach): Update.
4013 (inf_ptrace_target::files_info): Update.
4014 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
4016 (go32_nat_target::pid_to_str): Change return type.
4017 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
4018 (gnu_nat_target::wait): Update.
4019 (gnu_nat_target::wait): Update.
4020 (gnu_nat_target::resume): Update.
4021 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
4022 (fbsd_nat_target::wait): Update.
4023 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
4025 (darwin_nat_target::attach): Update.
4026 * corelow.c (class core_target) <pid_to_str>: Change return type.
4027 (core_target::pid_to_str): Change return type.
4028 * target.c (normal_pid_to_str): Change return type.
4029 (default_pid_to_str): Likewise.
4030 (target_pid_to_str): Change return type.
4031 (target_translate_tls_address): Update.
4032 (target_announce_detach): Update.
4033 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
4035 (bsd_uthread_target::pid_to_str): Change return type.
4036 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
4038 (bsd_kvm_target::pid_to_str): Change return type.
4039 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
4041 (aix_thread_target::pid_to_str): Change return type.
4042 * target.h (struct target_ops) <pid_to_str>: Change return type.
4043 (target_pid_to_str, normal_pid_to_str): Likewise.
4044 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4046 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4048 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4050 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4052 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4054 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4057 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4059 * NEWS: Mention that the new default MI version is 3. Mention
4060 changes to the output of commands and events that deal with
4061 multi-location breakpoints.
4062 * breakpoint.c: Include "mi/mi-out.h".
4063 (print_one_breakpoint): Change output syntax if using MI version
4065 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4067 (mi_multi_location_breakpoint_output_fixed): New.
4068 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4069 (mi_cmd_fix_multi_location_breakpoint_output): New.
4070 (mi_multi_location_breakpoint_output_fixed): New.
4071 * mi/mi-cmds.c (mi_cmds): Register command
4072 -fix-multi-location-breakpoint-output.
4073 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4076 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4078 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4079 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4080 instantiate mi_ui_out based on interpreter name.
4081 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4082 * mi/mi-main.c (mi_load_progress): Likewise.
4084 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4086 * NEWS: Combine separate "New targets" sections for 8.3.
4088 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4090 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4091 (ppcfbsd_init_abi): Install gdbarch
4092 "fetch_tls_load_module_address" and "get_thread_local_address"
4095 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4097 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4098 (riscv_fbsd_init_abi): Install gdbarch
4099 "fetch_tls_load_module_address" and "get_thread_local_address"
4102 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4104 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4105 (i386fbsd_init_abi): Install gdbarch
4106 "fetch_tls_load_module_address" and "get_thread_local_address"
4109 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4111 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4112 (amd64fbsd_init_abi): Install gdbarch
4113 "fetch_tls_load_module_address" and "get_thread_local_address"
4116 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4118 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4119 (struct fbsd_pspace_data): New type.
4120 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4121 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4122 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4123 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4124 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4126 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4128 * gdbtypes.c (lookup_struct_elt): New function.
4129 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4130 * gdbtypes.h (struct struct_elt): New type.
4131 (lookup_struct_elt): New prototype.
4133 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4135 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4136 remove disabled code block.
4138 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4140 * gdbarch.sh (get_thread_local_address): New method.
4141 * gdbarch.h, gdbarch.c: Regenerate.
4142 * target.c (target_translate_tls_address): Use
4143 gdbarch_get_thread_local_address if present instead of
4144 target::get_thread_local_address.
4146 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4148 * target.h (target::get_thread_local_address): Update comment.
4150 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4152 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4153 objfile->separate_debug_objfile_backlink if not NULL.
4155 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4157 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4158 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4159 (amd64bsd_store_inferior_registers): Likewise.
4160 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4161 Enable segment base registers.
4162 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4163 PT_GETFSBASE and PT_GETGSBASE.
4164 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4166 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4167 segment base registers.
4168 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4170 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4172 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4173 Update calls to i386_target_description to add 'segments'
4175 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4176 add segment base registers.
4177 * arch/i386.c (i386_create_target_description): Add 'segments'
4178 parameter to enable segment base registers.
4179 * arch/i386.h (i386_create_target_description): Likewise.
4180 * features/i386/32bit-segments.xml: New file.
4181 * features/i386/32bit-segments.c: Generate.
4182 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4183 call to i386_target_description to add 'segments' parameter.
4184 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4185 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4186 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4187 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4188 if feature is present.
4189 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4190 Add 'segments' parameter to call to i386_target_description.
4191 (i386_target_description): Add 'segments' parameter to enable
4192 segment base registers.
4193 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4194 to call to i386_target_description.
4195 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4196 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4197 Define I386_NUM_REGS.
4198 (i386_target_description): Add 'segments' parameter to enable
4199 segment base registers.
4201 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4204 * source-cache.c: #undef open and close, to avoid unresolved
4205 externals during linking.
4207 2019-03-12 Tom Tromey <tromey@adacore.com>
4209 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4210 const. Add initializers.
4211 (_initialize_remote): Don't initialize ptid globals.
4213 2019-03-12 Pedro Alves <palves@redhat.com>
4215 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4217 2019-03-12 Pedro Alves <palves@redhat.com>
4219 * cp-name-parser.y (main): Remove unused 'len' variable.
4221 2019-03-12 Tom Tromey <tromey@adacore.com>
4223 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4224 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4226 2019-03-12 Tom Tromey <tromey@adacore.com>
4228 * linux-nat.c (iterate_over_lwps): Update.
4229 (stop_callback): Remove parameter.
4230 (stop_wait_callback, detach_callback, resume_set_callback)
4231 (select_singlestep_lwp_callback, set_ignore_sigint)
4232 (status_callback, resumed_callback, resume_clear_callback)
4233 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4235 (linux_nat_target::detach, linux_nat_target::resume)
4236 (linux_stop_and_wait_all_lwps, select_event_lwp)
4237 (linux_nat_filter_event, linux_nat_wait_1)
4238 (linux_nat_target::kill, linux_nat_target::stop)
4239 (linux_nat_target::stop): Update.
4240 (linux_nat_resume_callback): Change type.
4241 (resume_stopped_resumed_lwps, count_events_callback)
4242 (select_event_lwp_callback): Likewise.
4243 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4244 * arm-linux-nat.c (struct update_registers_data): Remove.
4245 (update_registers_callback): Change type.
4246 (arm_linux_insert_hw_breakpoint1): Update.
4247 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4249 (x86_linux_dr_set_addr): Update.
4250 (x86_linux_dr_set_control): Update.
4251 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4252 (iterate_over_lwps): Use gdb::function_view.
4253 * nat/aarch64-linux-hw-point.c (struct
4254 aarch64_dr_update_callback_param): Remove.
4255 (debug_reg_change_callback): Change type.
4256 (aarch64_notify_debug_reg_change): Update.
4257 * s390-linux-nat.c (s390_refresh_per_info): Update.
4259 2019-03-11 Tom Tromey <tromey@adacore.com>
4261 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4262 redundant assignment to "this_cu".
4264 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4266 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4268 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4270 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4272 (rank_one_type): ... this.
4274 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4276 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4278 (rank_one_type): ... this.
4280 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4282 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4284 (rank_one_type): ... this.
4286 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4288 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4290 (rank_one_type): ... this.
4292 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4294 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4296 (rank_one_type): ... this.
4298 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4300 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4302 (rank_one_type): ... this.
4304 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4306 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4308 (rank_one_type): ... this.
4310 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4312 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4314 (rank_one_type): ... this.
4316 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4318 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4320 (rank_one_type): ... this.
4322 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4324 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4326 (rank_one_type): ... this.
4328 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4330 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4332 (rank_one_type): ... this.
4334 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4336 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4338 (rank_one_type): ... this.
4340 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4342 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4343 inferior-events' shows the example events.
4345 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4347 Support styling on native MS-Windows console
4350 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4351 on MS-Windows if $TERM is not defined.
4353 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4355 * posix-hdep.c (gdb_console_fputs):
4356 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4358 * ui-file.h (gdb_console_fputs): Add prototype.
4360 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4361 back to fputs only if the former returns zero.
4363 2019-03-07 Tom Tromey <tom@tromey.com>
4365 * symmisc.c (print_symbol_bcache_statistics): Update.
4366 (print_objfile_statistics): Update.
4367 * symfile.c (allocate_symtab): Update.
4368 * stabsread.c: Don't include bcache.h.
4369 * psymtab.h (struct psymbol_bcache): Don't declare.
4370 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4371 (psymbol_bcache_init, psymbol_bcache_free)
4372 (psymbol_bcache_get_bcache): Don't declare.
4373 * psymtab.c (struct psymbol_bcache): Remove.
4374 (psymtab_storage::psymtab_storage): Update.
4375 (psymtab_storage::~psymtab_storage): Update.
4376 (psymbol_bcache_init, psymbol_bcache_free)
4377 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4378 (add_psymbol_to_bcache): Update.
4379 (allocate_psymtab): Update.
4380 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4381 macro_cache>: No longer pointers.
4382 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4383 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4384 * macrotab.c (macro_bcache): Update.
4385 * macroexp.c: Don't include bcache.h.
4386 * gdbtypes.c (check_types_worklist): Update.
4387 (types_deeply_equal): Remove TRY/CATCH. Update.
4388 * elfread.c (elf_symtab_read): Update.
4389 * dwarf2read.c: Don't include bcache.h.
4390 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4391 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4392 (print_bcache_statistics, bcache_memory_used): Don't declare.
4393 (struct bcache): Move from bcache.c. Add constructor, destructor,
4394 methods. Rename all data members.
4395 * bcache.c (struct bcache): Move to bcache.h.
4396 (bcache::expand_hash_table): Rename from expand_hash_table.
4398 (bcache::insert): Rename from bcache_full.
4399 (bcache::compare): Rename from bcache_compare.
4400 (bcache_xmalloc): Remove.
4401 (bcache::~bcache): Rename from bcache_xfree.
4402 (bcache::print_statistics): Rename from print_bcache_statistics.
4403 (bcache::memory_used): Rename from bcache_memory_used.
4405 2019-03-07 Pedro Alves <palves@redhat.com>
4407 * infrun.c (normal_stop): Also check for
4408 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4410 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4412 * f-lang.c (value_from_host_double): Moved to...
4413 * value.c (value_from_host_double): ...here.
4414 * value.h (value_from_host_double): Declare.
4415 * guile/scm-math.c (vlscm_convert_typed_number): Use
4416 value_from_host_double.
4417 (vlscm_convert_number): Likewise.
4418 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4419 * python/py-value.c (convert_value_from_python): Likewise.
4421 2019-03-06 Tom Tromey <tom@tromey.com>
4423 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4425 2019-03-06 Tom Tromey <tom@tromey.com>
4427 * utils.h (free_current_contents): Don't declare.
4428 * utils.c (free_current_contents): Remove.
4430 2019-03-06 Tom Tromey <tom@tromey.com>
4432 * top.c (quit_force): Update.
4433 * main.c (captured_command_loop): Update.
4434 * common/new-op.c (operator new): Update.
4435 * common/common-exceptions.c (struct catcher)
4436 <save_cleanup_chain>: Remove member.
4437 (exceptions_state_mc_init): Update.
4438 (exception_try_scope_entry): Return nullptr.
4439 (exception_try_scope_exit, exception_rethrow)
4440 (throw_exception_sjlj, throw_exception_cxx): Update.
4441 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4442 (all_cleanups, do_cleanups, discard_cleanups)
4443 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4444 (restore_cleanups, restore_final_cleanups): Don't declare.
4445 (do_final_cleanups): Remove parameter.
4446 * common/cleanups.c (cleanup_chain, make_cleanup)
4447 (make_cleanup_dtor, all_cleanups, do_cleanups)
4448 (discard_my_cleanups, discard_cleanups)
4449 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4450 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4451 (null_cleanup): Remove.
4452 (do_final_cleanups): Remove parameter.
4454 2019-03-06 Tom Tromey <tom@tromey.com>
4456 * remote.c (remote_target::remote_parse_stop_reply): Use
4459 2019-03-06 Tom Tromey <tom@tromey.com>
4461 * stabsread.c (struct stabs_field_info): Rename from field_info.
4462 <list, fnlist>: Add initializers.
4463 <obstack>: New member.
4464 (read_member_functions, read_struct_fields, read_baseclasses):
4465 Allocate on obstack. Don't use cleanups.
4466 (read_one_struct_field, read_member_functions, read_struct_fields)
4467 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4468 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4469 (read_struct_type): Update.
4471 2019-03-06 Tom Tromey <tom@tromey.com>
4473 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4474 * common/filestuff.h (make_cleanup_close): Don't declare.
4475 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4478 2019-03-06 Tom Tromey <tom@tromey.com>
4480 * solib-aix.c: Use make_scope_exit.
4482 2019-03-06 Tom Tromey <tom@tromey.com>
4484 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4485 Use make_scope_exit.
4487 2019-03-06 Tom Tromey <tom@tromey.com>
4489 * solib-svr4.c (disable_probes_interface): Remove parameter.
4490 (svr4_handle_solib_event): Use make_scope_exit.
4492 2019-03-06 Tom Tromey <tom@tromey.com>
4494 * remote.c (struct stop_reply_deleter): Remove.
4495 (stop_reply_up): Update.
4496 (struct stop_reply): Derive from notif_event. Don't typedef.
4497 <regcache>: Now a std::vector.
4498 (stop_reply_xfree): Remove.
4499 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4500 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4501 (remote_target::discard_pending_stop_replies): Use delete.
4502 (remote_target::remote_parse_stop_reply): Update.
4503 (remote_target::process_stop_reply): Update.
4504 * remote-notif.h (struct notif_event): Add virtual destructor.
4505 Remove "dtr" member.
4506 (struct notif_client) <alloc_event>: Return a unique_ptr.
4507 (notif_event_xfree): Don't declare.
4508 (notif_event_up): New typedef.
4509 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4510 (notif_event_xfree, do_notif_event_xfree): Remove.
4511 (remote_notif_state_xfree): Update.
4513 2019-03-06 Tom Tromey <tom@tromey.com>
4515 * infrun.c (displaced_step_clear_cleanup): Now a
4516 forward_scope_exit type.
4517 (displaced_step_prepare_throw): Update.
4518 (displaced_step_fixup): Update.
4520 2019-03-06 Tom Tromey <tom@tromey.com>
4522 * inferior.h (class inferior): Update comment.
4523 * gdbthread.h (class thread_info): Update comment.
4525 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4526 Tom Tromey <tom@tromey.com>
4528 * stabsread.h (struct stab_section_list): Remove.
4529 (coffstab_build_psymtabs): Update.
4530 * dbxread.c (symbuf_sections): Now a std::vector.
4531 (sect_idx): New global.
4532 (fill_symbuf): Update.
4533 (coffstab_build_psymtabs): Change type of stabsects parameter.
4535 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4537 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4538 (coff_locate_sections): Update.
4539 (coff_symfile_read): Remove cleanups. Update.
4540 (init_stringtab): Add storage parameter.
4541 (free_stringtab, free_stringtab_cleanup): Remove.
4542 (init_lineno): Add storage parameter.
4543 (free_linetab, free_linetab_cleanup): Remove.
4545 2019-03-06 Pedro Alves <palves@redhat.com>
4547 * linux-fork.c (fork_info::clobber_regs): Delete.
4548 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4549 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4551 (scoped_switch_fork_info::scoped_switch_fork_info)
4552 (checkpoint_command, linux_fork_context): Adjust
4553 fork_save_infrun_state calls.
4555 2019-03-06 Pedro Alves <palves@redhat.com>
4557 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4558 (inf_has_multiple_threads): Return 'bool' and rewrite using
4559 inferior_info::threads().
4561 2019-03-06 Pedro Alves <palves@redhat.com>
4563 * linux-fork.c: Include <list>.
4564 (fork_list): Now a std::list instance.
4565 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4566 (forks_exist_p, find_last_fork): Adjust.
4570 (free_fork): Delete, folded into fork_info::~fork_info().
4571 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4573 (init_fork_list): Delete.
4574 (linux_fork_killall, linux_fork_mourn_inferior)
4575 (linux_fork_detach, info_checkpoints_command): Adjust.
4576 (_initialize_linux_fork): No longer call init_fork_list.
4578 2019-03-06 Pedro Alves <palves@redhat.com>
4580 * linux-fork.c (new_fork): New, split out of ...
4581 (add_fork): ... this. Return void. Move "first fork" special
4582 case from here, to ...
4583 (checkpoint_command): ... here.
4584 * linux-linux.h (add_fork): Return void.
4586 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4588 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4590 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4591 Chris January <chris.january@arm.com>
4592 David Lecomber <david.lecomber@arm.com>
4594 * f-exp.y: New token, UNOP_INTRINSIC.
4595 (exp): New pattern using UNOP_INTRINSIC token.
4596 (f77_keywords): Add 'abs' keyword.
4597 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4598 (value_from_host_double): New function.
4599 (evaluate_subexp_f): Support UNOP_ABS.
4601 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4603 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4606 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4608 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4609 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4610 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4612 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4614 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4616 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4617 Chris January <chris.january@arm.com>
4619 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4620 * f-exp.y: Define 'KIND' token.
4621 (exp): New pattern for KIND expressions.
4622 (ptype): Handle types with a kind extension.
4623 (direct_abs_decl): Extend to spot kind extensions.
4624 (f77_keywords): Add 'kind' to the list.
4625 (push_kind_type): New function.
4626 (convert_to_kind_type): New function.
4627 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4628 * parse.c (operator_length_standard): Likewise.
4629 * parser-defs.h (enum type_pieces): Add tp_kind.
4630 * std-operator.def: Add UNOP_KIND.
4632 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4634 * f-exp.y (f_parse): Set yydebug.
4636 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4638 * f-lang.c (evaluate_subexp_f): New function.
4639 (exp_descriptor_f): New global.
4640 (f_language_defn): Use exp_descriptor_f instead of
4641 exp_descriptor_standard.
4643 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4645 * f-exp.y (struct token): Add comments.
4646 (dot_ops): Remove uppercase versions and the end marker.
4647 (f77_keywords): Likewise.
4648 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4649 entries in the dot_ops array are case insensitive, and use
4650 strncasecmp to compare strings. Also some whitespace cleanup in
4651 this area. Similar for the f77_keywords array, except entries in
4652 this list might be case sensitive.
4654 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4656 * f-exp.y (struct f77_boolean_val): Add comments.
4657 (boolean_values): Remove uppercase versions, and end marker.
4658 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4659 and use strncasecmp to achieve case insensitivity. Additionally,
4660 perform whitespace cleanup around this code.
4662 2019-03-06 Tom Tromey <tromey@adacore.com>
4664 * remote-sim.c (gdbsim_target_open): Use result of
4667 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4668 Dirk Schubert <dirk.schubert@arm.com>
4669 Chris January <chris.january@arm.com>
4671 * eval.c (evaluate_subexp_standard): Call Fortran argument
4673 * f-lang.c (struct value): A value which can be passed into a
4674 Fortran function call.
4675 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4677 (struct type): Value ready for a Fortran function call.
4678 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4680 * f-lang.h (fortran_argument_convert): Declaration.
4681 (fortran_preserve_arg_pointer): Declaration.
4682 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4684 2019-03-05 Tom Tromey <tromey@adacore.com>
4686 * python/py-prettyprint.c (print_string_repr): Remove #if.
4687 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4689 2019-03-05 Tom Tromey <tromey@adacore.com>
4691 * target.c (the_dummy_target): Move later. Change type to
4693 (initialize_targets): Don't initialize the_dummy_target.
4695 2019-03-05 Tom Tromey <tromey@adacore.com>
4697 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4698 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4700 2019-03-05 Tom Tromey <tromey@adacore.com>
4702 * windows-nat.c (windows_nat_target::attach)
4703 (windows_nat_target::detach): Don't call gdb_flush.
4704 * valprint.c (generic_val_print, val_print, val_print_string):
4705 Don't call gdb_flush.
4706 * utils.c (defaulted_query): Don't call gdb_flush.
4707 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4708 * target.c (target_announce_detach): Don't call gdb_flush.
4709 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4710 * remote.c (extended_remote_target::attach): Don't call
4712 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4713 * printcmd.c (do_examine): Don't call gdb_flush.
4714 (info_display_command): Don't call gdb_flush.
4715 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4716 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4717 * memattr.c (info_mem_command): Don't call gdb_flush.
4718 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4719 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4720 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4721 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4722 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4723 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4724 (gnu_nat_target::detach): Don't call gdb_flush.
4725 * f-valprint.c (f_val_print): Don't call gdb_flush.
4726 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4727 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4728 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4730 * c-valprint.c (c_val_print): Don't call gdb_flush.
4731 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4733 2019-03-05 Tom Tromey <tromey@adacore.com>
4735 * varobj.c (update_dynamic_varobj_children): Update.
4736 (install_default_visualizer): Use reset, not release.
4737 * value.c (set_internalvar): Update.
4738 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4739 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4740 ATTRIBUTE_UNUSED_RESULT.
4742 2019-03-05 Tom Tromey <tromey@adacore.com>
4744 * remote.c (class scoped_remote_fd) <release>: Add
4745 ATTRIBUTE_UNUSED_RESULT.
4747 2019-03-05 Tom Tromey <tromey@adacore.com>
4749 * macroexp.c (struct macro_buffer) <release>: Add
4750 ATTRIBUTE_UNUSED_RESULT.
4752 2019-03-05 Tom Tromey <tromey@adacore.com>
4754 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4755 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4756 ATTRIBUTE_UNUSED_RESULT.
4758 2019-03-05 Tom Tromey <tromey@adacore.com>
4760 * common/scoped_fd.h (class scoped_fd) <release>: Add
4761 ATTRIBUTE_UNUSED_RESULT.
4763 2019-03-05 Tom Tromey <tromey@adacore.com>
4765 * parser-defs.h (struct parser_state) <release>: Add
4766 ATTRIBUTE_UNUSED_RESULT.
4768 2019-03-05 Tom Tromey <tromey@adacore.com>
4770 * utils.h (class gdb_argv) <release>: Add
4771 ATTRIBUTE_UNUSED_RESULT.
4772 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4774 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4776 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4777 for-loop range, to avoid compiler warnings.
4779 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4780 avoid compiler warnings about unused variables.
4782 * NEWS: Mention end of support for native debugging on MS-Windows
4786 * common/netstuff.c:
4787 * gdbserver/gdbreplay.c
4788 * gdbserver/remote-utils.c:
4790 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4791 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4792 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4793 'getaddrinfo' and 'freeaddrinfo' were not available before
4794 Windows XP, and mingw.org's MinGW headers by default define
4795 _WIN32_WINNT to 0x500.
4797 2019-03-01 Gary Benson <gbenson@redhat.com>
4799 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4801 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4802 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4805 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4806 set_sigint_trap, clear_sigint_trap.
4808 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4810 * target.c (target_detach): Clear the regcache and the
4813 2019-02-27 Pedro Alves <palves@redhat.com>
4815 * utils.c (set_screen_size): When we cap the height/width sizes,
4816 tweak the corresponding command variable to show "unlimited":
4818 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4819 Pedro Alves <palves@redhat.com>
4821 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4822 before calling rl_set_screen_size.
4824 2019-02-27 Tom Tromey <tromey@adacore.com>
4826 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4828 * python/py-value.c: Remove Python 2.4 workaround.
4829 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4831 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4832 Python 2.4 workaround.
4833 * python/python-internal.h: Remove Python 2.4 comment.
4834 (Py_ssize_t): Don't define.
4835 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4836 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4837 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4838 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4839 * python/python.c (do_start_initialization): Remove Python 2.4
4841 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4842 (print_children): Remove Python 2.4 workaround.
4843 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4845 (CHARBUFFERPROC_NAME): Remove.
4846 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4847 Python 2.4 workaround.
4849 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4851 * NEWS: Note minimum Python version.
4853 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4855 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4856 code from these functions. Remove corresponding ifdefs. Use
4857 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4858 Remove gotos and target of gotos.
4859 (infpy_search_memory): Likewise.
4861 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4863 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4864 (hppa_gdbarch_init): Don't register deleted functions with
4867 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4869 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4870 (h8300_unwind_sp): Delete.
4871 (h8300_dummy_id): Delete.
4872 (h8300_gdbarch_init): Don't register deleted functions with
4875 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4877 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4878 (ft32_unwind_pc): Delete.
4879 (ft32_unwind_sp): Delete.
4880 (ft32_gdbarch_init): Don't register deleted functions with
4883 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4885 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4886 (frv_unwind_pc): Delete.
4887 (frv_unwind_sp): Delete.
4888 (frv_gdbarch_init): Don't register deleted functions with
4891 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4893 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4894 (riscv_unwind_pc): Delete.
4895 (riscv_unwind_sp): Delete.
4896 (riscv_gdbarch_init): Don't register deleted functions with
4899 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4901 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4902 (csky_unwind_pc): Delete.
4903 (csky_unwind_sp): Delete.
4904 (csky_gdbarch_init): Don't register deleted functions with
4907 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4909 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4910 (cris_unwind_pc): Delete.
4911 (cris_unwind_sp): Delete.
4912 (cris_gdbarch_init): Don't register deleted functions with
4915 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4917 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4918 (bfin_unwind_pc): Delete.
4919 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4921 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4923 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4924 (arm_unwind_pc): Delete.
4925 (arm_unwind_sp): Delete.
4926 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4928 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4930 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4931 (arc_unwind_pc): Delete.
4932 (arc_unwind_sp): Delete.
4933 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4935 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4937 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4938 (alpha_unwind_pc): Delete.
4939 (alpha_gdbarch_init): Don't register deleted functions with
4942 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4944 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4945 (aarch64_unwind_pc): Delete.
4946 (aarch64_unwind_sp): Delete.
4947 (aarch64_gdbarch_init): Don't register deleted functions with
4950 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4952 * gdbtypes.c (type_align): Don't consider static members when
4953 computing structure alignment.
4955 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4957 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4958 return 0 for other types.
4959 * arch-utils.c (default_type_align): Always return 0.
4960 * gdbarch.h: Regenerate.
4961 * gdbarch.sh (type_align): Extend comment.
4962 * gdbtypes.c (type_align): Add additional comments, always call
4963 gdbarch_type_align before applying the default rules.
4964 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4965 generic code will then apply a suitable default.
4966 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4967 types, return 0 for other types.
4969 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4971 * NEWS: Create a new section for the next release branch.
4972 Rename the section of the current branch, now that it has
4975 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4977 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4978 * version.in: Bump version to 8.3.50.DATE-git.
4980 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4982 * aix-thread.c (ptid_cmp): Remove unused variable.
4983 (get_signaled_thread): Likewise.
4984 (store_regs_user_thread): Likewise.
4985 (store_regs_kernel_thread): Likewise.
4986 (fetch_regs_kernel_thread): Remove shadowed variable.
4988 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4990 * features/riscv/32bit-cpu.xml: Add register numbers.
4991 * features/riscv/32bit-fpu.c: Regenerate.
4992 * features/riscv/32bit-fpu.xml: Add register numbers.
4993 * features/riscv/64bit-cpu.xml: Add register numbers.
4994 * features/riscv/64bit-fpu.c: Regenerate.
4995 * features/riscv/64bit-fpu.xml: Add register numbers.
4997 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4999 * NEWS: Mention two argument form of gdb.Value constructor.
5000 * python/py-value.c (convert_buffer_and_type_to_value): New
5002 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
5003 Add support for handling an optional second argument. Call
5004 convert_buffer_and_type_to_value as appropriate.
5005 * python/python-internal.h (Py_buffer_deleter): New struct.
5006 (Py_buffer_up): New typedef.
5008 2019-02-25 John Baldwin <jhb@FreeBSD.org>
5010 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
5011 instead of releasing ownership.
5013 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
5015 * dwarf2read.c (open_and_init_dwp_file): Call
5016 elf_numsections instead of bfd_count_sections to initialize
5017 dwp_file->num_sections.
5019 2019-02-25 Tom Tromey <tromey@adacore.com>
5021 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
5023 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
5025 * gcore.in: Add '--readnever' option when invoking GDB.
5027 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5029 * MAINTAINERS: Update my email address.
5031 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5033 * build-id.c (build_id_to_debug_bfd_1): New function.
5034 (build_id_to_debug_bfd): Look for separate debug file in
5037 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
5039 * gdbarch.sh: Update the copyright year range that is placed into
5042 2019-02-22 Keith Seitz <keiths@redhat.com>
5045 * linespec.c (create_sals_line_offset): Search for the default
5046 symtab's filename instead of its fullname.
5048 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5050 * NEWS: Update style defaults.
5052 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5054 * main.c (captured_main_1): Disable styling in batch mode.
5056 2019-02-20 Tom Tromey <tom@tromey.com>
5058 * symtab.c (symtab_symbol_info): Fix typos.
5060 2019-02-20 Tom Tromey <tromey@adacore.com>
5062 * findcmd.c (_initialize_mem_search): Use upper case for
5063 metasyntactic variables.
5065 2019-02-20 Alan Hayward <alan.hayward@arm.com>
5067 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5068 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5070 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5072 * top.h (source_file_name): Change to std::string.
5073 * top.c (source_file_name): Likewise.
5074 (command_line_input): Adjust.
5075 * cli/cli-script.c (script_from_file): Adjust.
5077 2019-02-19 Tom Tromey <tromey@adacore.com>
5079 * ravenscar-thread.c
5080 (ravenscar_thread_target::update_thread_list): Don't call
5081 ada_build_task_list.
5082 * ada-lang.h (ada_build_task_list): Don't declare.
5083 * ada-tasks.c (struct ada_tasks_inferior_data)
5084 <task_list_valid_p>: Now bool.
5085 (read_known_tasks, ada_task_list_changed)
5086 (ada_tasks_invalidate_inferior_data): Update.
5087 (read_known_tasks_array): Return bool.
5088 (read_known_tasks_list): Likewise.
5089 (read_known_tasks): Return void.
5090 (ada_build_task_list): Now static.
5092 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5094 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5095 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5097 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5099 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5100 variant for ada_tasks_pspace_data_handle and
5101 ada_tasks_inferior_data_handle.
5102 (ada_tasks_pspace_data_cleanup): New function.
5103 (ada_tasks_inferior_data_cleanup): New function.
5105 2019-02-17 Tom Tromey <tom@tromey.com>
5107 * macrotab.h (macro_source_fullname): Return a std::string.
5108 * macrotab.c (macro_include, check_for_redefinition)
5109 (macro_undef, macro_lookup_definition, foreach_macro)
5110 (foreach_macro_in_scope): Update.
5111 (macro_source_fullname): Return a std::string.
5112 * macrocmd.c (show_pp_source_pos): Update.
5114 2019-02-17 Tom Tromey <tom@tromey.com>
5116 * macrocmd.c (show_pp_source_pos): Style the file names.
5118 2019-02-17 Tom Tromey <tom@tromey.com>
5121 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5123 2019-02-17 Tom Tromey <tom@tromey.com>
5125 * ada-lang.c (user_select_syms): Use filtered printing.
5126 * utils.c (wrap_style): New global.
5127 (desired_style): Remove.
5128 (emit_style_escape): Add stream parameter.
5129 (set_output_style, reset_terminal_style, prompt_for_continue):
5131 (flush_wrap_buffer): Only flush gdb_stdout.
5132 (wrap_here): Set wrap_style.
5133 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5134 treat escape sequences as a character. Change when wrap buffer is
5136 (fputs_styled): Do not set the output style when the default is
5138 * ui-style.h (struct ui_file_style) <is_default>: New method.
5139 * source.c (print_source_lines_base): Emit escape sequences in one
5142 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5144 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5145 integers and enumeration types.
5147 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5149 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5150 instead of lookup_symbol_in_language
5151 (do_exact_match): New function.
5152 (ada_get_symbol_name_matcher): Return do_exact_match when
5153 doing a verbatim match.
5155 2019-02-15 Tom Tromey <tromey@adacore.com>
5157 * ravenscar-thread.c (ravenscar_thread_target::resume)
5158 (ravenscar_thread_target::wait): Special case wildcard requests.
5160 2019-02-15 Tom Tromey <tromey@adacore.com>
5162 * ravenscar-thread.c (base_ptid): Remove.
5163 (struct ravenscar_thread_target) <close>: New method.
5164 <m_base_ptid>: New member.
5165 <update_inferior_ptid, active_task, task_is_currently_active,
5166 runtime_initialized>: Declare methods.
5167 <ravenscar_thread_target>: Add constructor.
5168 (ravenscar_thread_target::task_is_currently_active)
5169 (ravenscar_thread_target::update_inferior_ptid)
5170 (ravenscar_runtime_initialized): Rename. Now methods.
5171 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5172 (ravenscar_thread_target::update_thread_list): Update.
5173 (ravenscar_thread_target::active_task): Now method.
5174 (ravenscar_thread_target::store_registers)
5175 (ravenscar_thread_target::prepare_to_store)
5176 (ravenscar_thread_target::prepare_to_store)
5177 (ravenscar_thread_target::mourn_inferior): Update.
5178 (ravenscar_inferior_created): Use "new" to create target.
5179 (ravenscar_thread_target::get_ada_task_ptid): Update.
5180 (_initialize_ravenscar): Don't initialize base_ptid.
5181 (ravenscar_ops): Remove global.
5183 2019-02-15 Tom Tromey <tromey@adacore.com>
5185 * target.h (push_target): Declare new overload.
5186 * target.c (push_target): New overload, taking an rvalue reference.
5187 * remote.c (remote_target::open_1): Use push_target overload.
5188 * corelow.c (core_target_open): Use push_target overload.
5190 2019-02-15 Tom Tromey <tromey@adacore.com>
5192 * ravenscar-thread.c (is_ravenscar_task)
5193 (ravenscar_task_is_currently_active): Return bool.
5194 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5195 (_initialize_ravenscar): Remove "(void)".
5196 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5199 2019-02-15 Tom Tromey <tromey@adacore.com>
5201 * ravenscar-thread.c (ravenscar_runtime_initializer)
5202 (has_ravenscar_runtime, get_running_thread_id)
5203 (ravenscar_thread_target::resume): Fix indentation.
5205 2019-02-15 Tom Tromey <tromey@adacore.com>
5207 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5208 from ravenscar_arch_ops.
5209 (sparc_ravenscar_ops::fetch_registers)
5210 (sparc_ravenscar_ops::store_registers): Now methods.
5211 (sparc_ravenscar_prepare_to_store): Remove.
5212 (sparc_ravenscar_ops): Redefine.
5213 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5214 methods and destructor. Remove members.
5215 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5216 (ravenscar_thread_target::store_registers)
5217 (ravenscar_thread_target::prepare_to_store): Update.
5218 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5220 (struct ppc_ravenscar_powerpc_ops): Derive from
5222 (ppc_ravenscar_powerpc_ops::fetch_registers)
5223 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5224 (ppc_ravenscar_powerpc_ops): Redefine.
5225 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5226 (ppc_ravenscar_e500_ops::fetch_registers)
5227 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5228 (ppc_ravenscar_e500_ops): Redefine.
5229 * aarch64-ravenscar-thread.c
5230 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5231 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5232 (aarch64_ravenscar_fetch_registers)
5233 (aarch64_ravenscar_store_registers): Now methods.
5234 (aarch64_ravenscar_ops): Redefine.
5236 2019-02-15 Tom Tromey <tromey@adacore.com>
5238 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5239 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5240 (ravenscar_thread_target::stopped_by_watchpoint)
5241 (ravenscar_thread_target::stopped_data_address)
5242 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5244 2019-02-15 Tom Tromey <tromey@adacore.com>
5246 * ravenscar-thread.c: Fix some typos.
5248 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5249 Tom Tromey <tromey@adacore.com>
5251 * ada-lang.c (ada_exception_sal): Change addr_string to a
5253 (create_ada_exception_catchpoint): Update.
5255 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5256 Tom Tromey <tromey@adacore.com>
5258 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5259 (bp_location_ops): Remove.
5260 (base_breakpoint_allocate_location): Update.
5261 (free_bp_location): Update.
5262 * ada-lang.c (class ada_catchpoint_location)
5263 <ada_catchpoint_location>: Remove ops parameter.
5264 (ada_catchpoint_location_dtor): Remove.
5265 (ada_catchpoint_location_ops): Remove.
5266 (allocate_location_exception): Update.
5267 * breakpoint.h (struct bp_location_ops): Remove.
5268 (class bp_location) <bp_location>: Remove bp_location_ops
5270 <~bp_location>: Add destructor.
5273 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5274 Pedro Alves <palves@redhat.com>
5276 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5279 2019-02-14 David Michael <fedora.dm0@gmail.com>
5280 Samuel Thibault <samuel.thibault@gnu.org>
5281 Thomas Schwinge <thomas@codesourcery.com>
5283 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5284 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5286 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5288 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5289 (check_empty): Use "const char *".
5291 * gnu-nat.c (gnu_nat_target::detach): Instead of
5292 'detach_inferior (pid)' call
5293 'detach_inferior (find_inferior_pid (pid))'.
5295 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5296 'nat/fork-inferior.o'.
5297 * gnu-nat.c: #include "nat/fork-inferior.h".
5299 * gnu-nat.c (gnu_nat_target::detach): Instead of
5300 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5301 * gnu-nat.h: #include "inf-child.h".
5302 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5303 'i386_gnu_nat_target::fetch_registers'.
5304 (gnu_store_registers): Rename/move to
5305 'i386_gnu_nat_target::store_registers'.
5307 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5308 * gnu-nat.h (mach_thread_info): New function.
5309 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5311 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5313 2019-02-14 Frederic Konrad <konrad@adacore.com>
5315 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5317 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5319 * windows-nat.c (windows_add_thread): Add new parameter
5320 "main_thread_p" with default value set to false. Update
5321 function documentation as well as all callers.
5322 (windows_delete_thread): Likewise.
5323 (fake_create_process): Update call to windows_add_thread.
5324 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5325 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5326 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5327 call to windows_delete_thread.
5329 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5331 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5333 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5335 * symfile.c (find_separate_debug_file): Use canonical path of
5336 sysroot with child_path instead of gdb_sysroot if it is valid.
5338 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5340 * symfile.c (find_separate_debug_file): Use child_path to
5341 determine if an object file is under a sysroot.
5343 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5345 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5346 unittests/child-path-selftests.c.
5347 * common/pathstuff.c (child_path): New function.
5348 * common/pathstuff.h (child_path): New prototype.
5349 * unittests/child-path-selftests.c: New file.
5351 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5353 * symfile.c (find_separate_debug_file): Look for separate debug
5354 files in debug directories under the sysroot.
5356 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5358 * symtab.h (struct minimal_symbol data_p): New const method.
5359 (struct minimal_symbol text_p): Likewise.
5360 * symtab.c (output_source_filename): Use file name style
5362 (print_symbol_info): Likewise.
5363 (print_msymbol_info): Use address style to print addresses.
5364 Use function name style to print executable text symbols.
5365 (expand_symtab_containing_pc): Use data_p.
5366 (find_pc_sect_compunit_symtab): Likewise.
5368 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5370 * breakpoint.c (describe_other_breakpoints): Use address style
5372 (say_where): Likewise.
5374 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5376 * ada-typeprint.c (print_func_type): Print function name
5377 style to print function name.
5378 * c-typeprint.c (c_print_type_1): Likewise.
5380 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5382 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5385 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5387 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5390 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5392 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5393 TYPE_CODE_REF types.
5395 2019-02-08 Jim Wilson <jimw@sifive.com>
5397 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5398 (riscv_linux_fregset): New.
5399 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5401 2019-02-07 Tom Tromey <tom@tromey.com>
5403 * thread.c (thread_cancel_execution_command): Update.
5404 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5406 (struct thread_fsm_ops): Remove.
5407 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5408 (thread_fsm_should_stop, thread_fsm_return_value)
5409 (thread_fsm_set_finished, thread_fsm_finished_p)
5410 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5412 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5413 * infrun.c (clear_proceed_status_thread)
5414 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5415 (print_stop_event): Update.
5416 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5418 (step_command_fsm_ops): Remove.
5419 (new_step_command_fsm): Remove.
5421 (step_command_fsm::should_stop): Rename from
5422 step_command_fsm_should_stop.
5423 (step_command_fsm::clean_up): Rename from
5424 step_command_fsm_clean_up.
5425 (step_command_fsm::do_async_reply_reason): Rename from
5426 step_command_fsm_async_reply_reason.
5427 (struct until_next_fsm): Inherit from thread_fsm. Add
5429 (until_next_fsm_ops): Remove.
5430 (new_until_next_fsm): Remove.
5431 (until_next_fsm::should_stop): Rename from
5432 until_next_fsm_should_stop.
5433 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5434 (until_next_fsm::do_async_reply_reason): Rename from
5435 until_next_fsm_async_reply_reason.
5436 (struct finish_command_fsm): Inherit from thread_fsm. Add
5437 constructor. Change type of breakpoint.
5438 (finish_command_fsm_ops): Remove.
5439 (new_finish_command_fsm): Remove.
5440 (finish_command_fsm::should_stop): Rename from
5441 finish_command_fsm_should_stop.
5442 (finish_command_fsm::clean_up): Rename from
5443 finish_command_fsm_clean_up.
5444 (finish_command_fsm::return_value): Rename from
5445 finish_command_fsm_return_value.
5446 (finish_command_fsm::do_async_reply_reason): Rename from
5447 finish_command_fsm_async_reply_reason.
5448 (finish_command): Update.
5449 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5451 (call_thread_fsm_ops): Remove.
5452 (call_thread_fsm::call_thread_fsm): Rename from
5453 new_call_thread_fsm.
5454 (call_thread_fsm::should_stop): Rename from
5455 call_thread_fsm_should_stop.
5456 (call_thread_fsm::should_notify_stop): Rename from
5457 call_thread_fsm_should_notify_stop.
5458 (run_inferior_call, call_function_by_hand_dummy): Update.
5459 * cli/cli-interp.c (should_print_stop_to_console): Update.
5460 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5461 Add constructor. Change type of location_breakpoint,
5463 (until_break_fsm_ops): Remove.
5464 (new_until_break_fsm): Remove.
5465 (until_break_fsm::should_stop): Rename from
5466 until_break_fsm_should_stop.
5467 (until_break_fsm::clean_up): Rename from
5468 until_break_fsm_clean_up.
5469 (until_break_fsm::do_async_reply_reason): Rename from
5470 until_break_fsm_async_reply_reason.
5471 (until_break_command): Update.
5472 * thread-fsm.c: Remove.
5473 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5475 2019-02-07 Tom Tromey <tom@tromey.com>
5477 * yy-remap.h: Add include guard.
5478 * xtensa-tdep.h: Add include guard.
5479 * xcoffread.h: Rename include guard.
5480 * varobj-iter.h: Add include guard.
5481 * tui/tui.h: Rename include guard.
5482 * tui/tui-winsource.h: Rename include guard.
5483 * tui/tui-wingeneral.h: Rename include guard.
5484 * tui/tui-windata.h: Rename include guard.
5485 * tui/tui-win.h: Rename include guard.
5486 * tui/tui-stack.h: Rename include guard.
5487 * tui/tui-source.h: Rename include guard.
5488 * tui/tui-regs.h: Rename include guard.
5489 * tui/tui-out.h: Rename include guard.
5490 * tui/tui-layout.h: Rename include guard.
5491 * tui/tui-io.h: Rename include guard.
5492 * tui/tui-hooks.h: Rename include guard.
5493 * tui/tui-file.h: Rename include guard.
5494 * tui/tui-disasm.h: Rename include guard.
5495 * tui/tui-data.h: Rename include guard.
5496 * tui/tui-command.h: Rename include guard.
5497 * tic6x-tdep.h: Add include guard.
5498 * target/waitstatus.h: Rename include guard.
5499 * target/wait.h: Rename include guard.
5500 * target/target.h: Rename include guard.
5501 * target/resume.h: Rename include guard.
5502 * target-float.h: Rename include guard.
5503 * stabsread.h: Add include guard.
5504 * rs6000-tdep.h: Add include guard.
5505 * riscv-fbsd-tdep.h: Add include guard.
5506 * regformats/regdef.h: Rename include guard.
5507 * record.h: Rename include guard.
5508 * python/python.h: Rename include guard.
5509 * python/python-internal.h: Rename include guard.
5510 * python/py-stopevent.h: Rename include guard.
5511 * python/py-ref.h: Rename include guard.
5512 * python/py-record.h: Rename include guard.
5513 * python/py-record-full.h: Rename include guard.
5514 * python/py-record-btrace.h: Rename include guard.
5515 * python/py-instruction.h: Rename include guard.
5516 * python/py-events.h: Rename include guard.
5517 * python/py-event.h: Rename include guard.
5518 * procfs.h: Add include guard.
5519 * proc-utils.h: Add include guard.
5520 * p-lang.h: Add include guard.
5521 * or1k-tdep.h: Rename include guard.
5522 * observable.h: Rename include guard.
5523 * nto-tdep.h: Rename include guard.
5524 * nat/x86-linux.h: Rename include guard.
5525 * nat/x86-linux-dregs.h: Rename include guard.
5526 * nat/x86-gcc-cpuid.h: Add include guard.
5527 * nat/x86-dregs.h: Rename include guard.
5528 * nat/x86-cpuid.h: Rename include guard.
5529 * nat/ppc-linux.h: Rename include guard.
5530 * nat/mips-linux-watch.h: Rename include guard.
5531 * nat/linux-waitpid.h: Rename include guard.
5532 * nat/linux-ptrace.h: Rename include guard.
5533 * nat/linux-procfs.h: Rename include guard.
5534 * nat/linux-osdata.h: Rename include guard.
5535 * nat/linux-nat.h: Rename include guard.
5536 * nat/linux-namespaces.h: Rename include guard.
5537 * nat/linux-btrace.h: Rename include guard.
5538 * nat/glibc_thread_db.h: Rename include guard.
5539 * nat/gdb_thread_db.h: Rename include guard.
5540 * nat/gdb_ptrace.h: Rename include guard.
5541 * nat/fork-inferior.h: Rename include guard.
5542 * nat/amd64-linux-siginfo.h: Rename include guard.
5543 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5544 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5545 * nat/aarch64-linux.h: Rename include guard.
5546 * nat/aarch64-linux-hw-point.h: Rename include guard.
5547 * mn10300-tdep.h: Add include guard.
5548 * mips-linux-tdep.h: Add include guard.
5549 * mi/mi-parse.h: Rename include guard.
5550 * mi/mi-out.h: Rename include guard.
5551 * mi/mi-main.h: Rename include guard.
5552 * mi/mi-interp.h: Rename include guard.
5553 * mi/mi-getopt.h: Rename include guard.
5554 * mi/mi-console.h: Rename include guard.
5555 * mi/mi-common.h: Rename include guard.
5556 * mi/mi-cmds.h: Rename include guard.
5557 * mi/mi-cmd-break.h: Rename include guard.
5558 * m2-lang.h: Add include guard.
5559 * location.h: Rename include guard.
5560 * linux-record.h: Rename include guard.
5561 * linux-nat.h: Add include guard.
5562 * linux-fork.h: Add include guard.
5563 * i386-darwin-tdep.h: Rename include guard.
5564 * hppa-linux-offsets.h: Add include guard.
5565 * guile/guile.h: Rename include guard.
5566 * guile/guile-internal.h: Rename include guard.
5567 * gnu-nat.h: Rename include guard.
5568 * gdb-stabs.h: Rename include guard.
5569 * frv-tdep.h: Add include guard.
5570 * f-lang.h: Add include guard.
5571 * event-loop.h: Add include guard.
5572 * darwin-nat.h: Rename include guard.
5573 * cp-abi.h: Rename include guard.
5574 * config/sparc/nm-sol2.h: Rename include guard.
5575 * config/nm-nto.h: Rename include guard.
5576 * config/nm-linux.h: Add include guard.
5577 * config/i386/nm-i386gnu.h: Rename include guard.
5578 * config/djgpp/nl_types.h: Rename include guard.
5579 * config/djgpp/langinfo.h: Rename include guard.
5580 * compile/gcc-cp-plugin.h: Add include guard.
5581 * compile/gcc-c-plugin.h: Add include guard.
5582 * compile/compile.h: Rename include guard.
5583 * compile/compile-object-run.h: Rename include guard.
5584 * compile/compile-object-load.h: Rename include guard.
5585 * compile/compile-internal.h: Rename include guard.
5586 * compile/compile-cplus.h: Rename include guard.
5587 * compile/compile-c.h: Rename include guard.
5588 * common/xml-utils.h: Rename include guard.
5589 * common/x86-xstate.h: Rename include guard.
5590 * common/version.h: Rename include guard.
5591 * common/vec.h: Rename include guard.
5592 * common/tdesc.h: Rename include guard.
5593 * common/selftest.h: Rename include guard.
5594 * common/scoped_restore.h: Rename include guard.
5595 * common/scoped_mmap.h: Rename include guard.
5596 * common/scoped_fd.h: Rename include guard.
5597 * common/safe-iterator.h: Rename include guard.
5598 * common/run-time-clock.h: Rename include guard.
5599 * common/refcounted-object.h: Rename include guard.
5600 * common/queue.h: Rename include guard.
5601 * common/ptid.h: Rename include guard.
5602 * common/print-utils.h: Rename include guard.
5603 * common/preprocessor.h: Rename include guard.
5604 * common/pathstuff.h: Rename include guard.
5605 * common/observable.h: Rename include guard.
5606 * common/netstuff.h: Rename include guard.
5607 * common/job-control.h: Rename include guard.
5608 * common/host-defs.h: Rename include guard.
5609 * common/gdb_wait.h: Rename include guard.
5610 * common/gdb_vecs.h: Rename include guard.
5611 * common/gdb_unlinker.h: Rename include guard.
5612 * common/gdb_unique_ptr.h: Rename include guard.
5613 * common/gdb_tilde_expand.h: Rename include guard.
5614 * common/gdb_sys_time.h: Rename include guard.
5615 * common/gdb_string_view.h: Rename include guard.
5616 * common/gdb_splay_tree.h: Rename include guard.
5617 * common/gdb_setjmp.h: Rename include guard.
5618 * common/gdb_ref_ptr.h: Rename include guard.
5619 * common/gdb_optional.h: Rename include guard.
5620 * common/gdb_locale.h: Rename include guard.
5621 * common/gdb_assert.h: Rename include guard.
5622 * common/filtered-iterator.h: Rename include guard.
5623 * common/filestuff.h: Rename include guard.
5624 * common/fileio.h: Rename include guard.
5625 * common/environ.h: Rename include guard.
5626 * common/common-utils.h: Rename include guard.
5627 * common/common-types.h: Rename include guard.
5628 * common/common-regcache.h: Rename include guard.
5629 * common/common-inferior.h: Rename include guard.
5630 * common/common-gdbthread.h: Rename include guard.
5631 * common/common-exceptions.h: Rename include guard.
5632 * common/common-defs.h: Rename include guard.
5633 * common/common-debug.h: Rename include guard.
5634 * common/cleanups.h: Rename include guard.
5635 * common/buffer.h: Rename include guard.
5636 * common/btrace-common.h: Rename include guard.
5637 * common/break-common.h: Rename include guard.
5638 * cli/cli-utils.h: Rename include guard.
5639 * cli/cli-style.h: Rename include guard.
5640 * cli/cli-setshow.h: Rename include guard.
5641 * cli/cli-script.h: Rename include guard.
5642 * cli/cli-interp.h: Rename include guard.
5643 * cli/cli-decode.h: Rename include guard.
5644 * cli/cli-cmds.h: Rename include guard.
5645 * charset-list.h: Add include guard.
5646 * buildsym-legacy.h: Rename include guard.
5647 * bfin-tdep.h: Add include guard.
5648 * ax.h: Rename include guard.
5649 * arm-linux-tdep.h: Add include guard.
5650 * arm-fbsd-tdep.h: Add include guard.
5651 * arch/xtensa.h: Rename include guard.
5652 * arch/tic6x.h: Add include guard.
5653 * arch/i386.h: Add include guard.
5654 * arch/arm.h: Rename include guard.
5655 * arch/arm-linux.h: Rename include guard.
5656 * arch/arm-get-next-pcs.h: Rename include guard.
5657 * arch/amd64.h: Add include guard.
5658 * arch/aarch64-insn.h: Rename include guard.
5659 * arch-utils.h: Rename include guard.
5660 * annotate.h: Add include guard.
5661 * amd64-darwin-tdep.h: Rename include guard.
5662 * aarch64-linux-tdep.h: Add include guard.
5663 * aarch64-fbsd-tdep.h: Add include guard.
5664 * aarch32-linux-nat.h: Add include guard.
5666 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5668 * macrotab.c (macro_define_internal): New function that
5669 factorizes macro_define_object_internal and macro_define_function
5671 (macro_define_object_internal): Use macro_define_internal.
5672 (macro_define_function): Likewise.
5674 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5676 * macrocmd.c (extract_identifier): Return
5677 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5680 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5682 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5684 2019-02-05 Tom Tromey <tom@tromey.com>
5686 * target.c (target_stack::unpush): Move assertion earlier.
5688 2019-01-30 Tom Tromey <tom@tromey.com>
5691 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5692 (gdbpy_parse_and_eval): Likewise.
5693 * python/python-internal.h (gdbpy_allow_threads): New class.
5695 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5697 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5698 (aarch64_fbsd_fpregmap): Move earlier.
5699 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5700 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5701 instead of individual calls to trad_frame_set_reg_addr.
5702 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5704 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5705 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5706 instead of individual calls to trad_frame_set_reg_addr.
5708 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5710 * CONTRIBUTE: Replace contribution list with wiki link.
5712 2019-01-25 Tom Tromey <tom@tromey.com>
5714 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5716 2019-01-25 Tom Tromey <tom@tromey.com>
5718 * xtensa-linux-nat.c: Fix common/ includes.
5719 * xml-support.h: Fix common/ includes.
5720 * xml-support.c: Fix common/ includes.
5721 * x86-linux-nat.c: Fix common/ includes.
5722 * windows-nat.c: Fix common/ includes.
5723 * varobj.h: Fix common/ includes.
5724 * varobj.c: Fix common/ includes.
5725 * value.c: Fix common/ includes.
5726 * valops.c: Fix common/ includes.
5727 * utils.c: Fix common/ includes.
5728 * unittests/xml-utils-selftests.c: Fix common/ includes.
5729 * unittests/utils-selftests.c: Fix common/ includes.
5730 * unittests/unpack-selftests.c: Fix common/ includes.
5731 * unittests/tracepoint-selftests.c: Fix common/ includes.
5732 * unittests/style-selftests.c: Fix common/ includes.
5733 * unittests/string_view-selftests.c: Fix common/ includes.
5734 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5735 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5736 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5737 * unittests/rsp-low-selftests.c: Fix common/ includes.
5738 * unittests/parse-connection-spec-selftests.c: Fix common/
5740 * unittests/optional-selftests.c: Fix common/ includes.
5741 * unittests/offset-type-selftests.c: Fix common/ includes.
5742 * unittests/observable-selftests.c: Fix common/ includes.
5743 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5744 * unittests/memrange-selftests.c: Fix common/ includes.
5745 * unittests/memory-map-selftests.c: Fix common/ includes.
5746 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5747 * unittests/function-view-selftests.c: Fix common/ includes.
5748 * unittests/environ-selftests.c: Fix common/ includes.
5749 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5750 * unittests/common-utils-selftests.c: Fix common/ includes.
5751 * unittests/cli-utils-selftests.c: Fix common/ includes.
5752 * unittests/array-view-selftests.c: Fix common/ includes.
5753 * ui-file.c: Fix common/ includes.
5754 * tui/tui-io.c: Fix common/ includes.
5755 * tracepoint.h: Fix common/ includes.
5756 * tracepoint.c: Fix common/ includes.
5757 * tracefile-tfile.c: Fix common/ includes.
5758 * top.h: Fix common/ includes.
5759 * top.c: Fix common/ includes.
5760 * thread.c: Fix common/ includes.
5761 * target/waitstatus.h: Fix common/ includes.
5762 * target/waitstatus.c: Fix common/ includes.
5763 * target.h: Fix common/ includes.
5764 * target.c: Fix common/ includes.
5765 * target-memory.c: Fix common/ includes.
5766 * target-descriptions.c: Fix common/ includes.
5767 * symtab.h: Fix common/ includes.
5768 * symfile.c: Fix common/ includes.
5769 * stap-probe.c: Fix common/ includes.
5770 * spu-linux-nat.c: Fix common/ includes.
5771 * sparc-nat.c: Fix common/ includes.
5772 * source.c: Fix common/ includes.
5773 * solib.c: Fix common/ includes.
5774 * solib-target.c: Fix common/ includes.
5775 * ser-unix.c: Fix common/ includes.
5776 * ser-tcp.c: Fix common/ includes.
5777 * ser-pipe.c: Fix common/ includes.
5778 * ser-base.c: Fix common/ includes.
5779 * selftest-arch.c: Fix common/ includes.
5780 * s12z-tdep.c: Fix common/ includes.
5781 * rust-exp.y: Fix common/ includes.
5782 * rs6000-aix-tdep.c: Fix common/ includes.
5783 * riscv-tdep.c: Fix common/ includes.
5784 * remote.c: Fix common/ includes.
5785 * remote-notif.h: Fix common/ includes.
5786 * remote-fileio.h: Fix common/ includes.
5787 * remote-fileio.c: Fix common/ includes.
5788 * regcache.h: Fix common/ includes.
5789 * regcache.c: Fix common/ includes.
5790 * record-btrace.c: Fix common/ includes.
5791 * python/python.c: Fix common/ includes.
5792 * python/py-type.c: Fix common/ includes.
5793 * python/py-inferior.c: Fix common/ includes.
5794 * progspace.h: Fix common/ includes.
5795 * producer.c: Fix common/ includes.
5796 * procfs.c: Fix common/ includes.
5797 * proc-api.c: Fix common/ includes.
5798 * printcmd.c: Fix common/ includes.
5799 * ppc-linux-nat.c: Fix common/ includes.
5800 * parser-defs.h: Fix common/ includes.
5801 * osdata.c: Fix common/ includes.
5802 * obsd-nat.c: Fix common/ includes.
5803 * nat/x86-linux.c: Fix common/ includes.
5804 * nat/x86-linux-dregs.c: Fix common/ includes.
5805 * nat/x86-dregs.h: Fix common/ includes.
5806 * nat/x86-dregs.c: Fix common/ includes.
5807 * nat/ppc-linux.c: Fix common/ includes.
5808 * nat/mips-linux-watch.h: Fix common/ includes.
5809 * nat/mips-linux-watch.c: Fix common/ includes.
5810 * nat/linux-waitpid.c: Fix common/ includes.
5811 * nat/linux-ptrace.h: Fix common/ includes.
5812 * nat/linux-ptrace.c: Fix common/ includes.
5813 * nat/linux-procfs.c: Fix common/ includes.
5814 * nat/linux-personality.c: Fix common/ includes.
5815 * nat/linux-osdata.c: Fix common/ includes.
5816 * nat/linux-namespaces.c: Fix common/ includes.
5817 * nat/linux-btrace.h: Fix common/ includes.
5818 * nat/linux-btrace.c: Fix common/ includes.
5819 * nat/fork-inferior.c: Fix common/ includes.
5820 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5821 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5822 * nat/aarch64-linux.c: Fix common/ includes.
5823 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5824 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5825 * namespace.h: Fix common/ includes.
5826 * mips-linux-tdep.c: Fix common/ includes.
5827 * minsyms.c: Fix common/ includes.
5828 * mi/mi-parse.h: Fix common/ includes.
5829 * mi/mi-main.c: Fix common/ includes.
5830 * mi/mi-cmd-env.c: Fix common/ includes.
5831 * memrange.h: Fix common/ includes.
5832 * memattr.c: Fix common/ includes.
5833 * maint.h: Fix common/ includes.
5834 * maint.c: Fix common/ includes.
5835 * main.c: Fix common/ includes.
5836 * machoread.c: Fix common/ includes.
5837 * location.c: Fix common/ includes.
5838 * linux-thread-db.c: Fix common/ includes.
5839 * linux-nat.c: Fix common/ includes.
5840 * linux-fork.c: Fix common/ includes.
5841 * inline-frame.c: Fix common/ includes.
5842 * infrun.c: Fix common/ includes.
5843 * inflow.c: Fix common/ includes.
5844 * inferior.h: Fix common/ includes.
5845 * inferior.c: Fix common/ includes.
5846 * infcmd.c: Fix common/ includes.
5847 * inf-ptrace.c: Fix common/ includes.
5848 * inf-child.c: Fix common/ includes.
5849 * ia64-linux-nat.c: Fix common/ includes.
5850 * i387-tdep.c: Fix common/ includes.
5851 * i386-tdep.c: Fix common/ includes.
5852 * i386-linux-tdep.c: Fix common/ includes.
5853 * i386-linux-nat.c: Fix common/ includes.
5854 * i386-go32-tdep.c: Fix common/ includes.
5855 * i386-fbsd-tdep.c: Fix common/ includes.
5856 * i386-fbsd-nat.c: Fix common/ includes.
5857 * guile/scm-type.c: Fix common/ includes.
5858 * guile/guile.c: Fix common/ includes.
5859 * go32-nat.c: Fix common/ includes.
5860 * gnu-nat.c: Fix common/ includes.
5861 * gdbthread.h: Fix common/ includes.
5862 * gdbarch-selftests.c: Fix common/ includes.
5863 * gdb_usleep.c: Fix common/ includes.
5864 * gdb_select.h: Fix common/ includes.
5865 * gdb_bfd.c: Fix common/ includes.
5866 * gcore.c: Fix common/ includes.
5867 * fork-child.c: Fix common/ includes.
5868 * findvar.c: Fix common/ includes.
5869 * fbsd-nat.c: Fix common/ includes.
5870 * event-top.c: Fix common/ includes.
5871 * event-loop.c: Fix common/ includes.
5872 * dwarf2read.c: Fix common/ includes.
5873 * dwarf2loc.c: Fix common/ includes.
5874 * dwarf2-frame.c: Fix common/ includes.
5875 * dwarf-index-cache.c: Fix common/ includes.
5876 * dtrace-probe.c: Fix common/ includes.
5877 * disasm-selftests.c: Fix common/ includes.
5878 * defs.h: Fix common/ includes.
5879 * csky-tdep.c: Fix common/ includes.
5880 * cp-valprint.c: Fix common/ includes.
5881 * cp-support.h: Fix common/ includes.
5882 * cp-support.c: Fix common/ includes.
5883 * corelow.c: Fix common/ includes.
5884 * completer.h: Fix common/ includes.
5885 * completer.c: Fix common/ includes.
5886 * compile/compile.c: Fix common/ includes.
5887 * compile/compile-loc2c.c: Fix common/ includes.
5888 * compile/compile-cplus-types.c: Fix common/ includes.
5889 * compile/compile-cplus-symbols.c: Fix common/ includes.
5890 * command.h: Fix common/ includes.
5891 * cli/cli-dump.c: Fix common/ includes.
5892 * cli/cli-cmds.c: Fix common/ includes.
5893 * charset.c: Fix common/ includes.
5894 * build-id.c: Fix common/ includes.
5895 * btrace.h: Fix common/ includes.
5896 * btrace.c: Fix common/ includes.
5897 * breakpoint.h: Fix common/ includes.
5898 * breakpoint.c: Fix common/ includes.
5900 (enum agent_op): Fix common/ includes.
5901 * ax-general.c (struct aop_map): Fix common/ includes.
5902 * ax-gdb.c: Fix common/ includes.
5903 * auxv.c: Fix common/ includes.
5904 * auto-load.c: Fix common/ includes.
5905 * arm-tdep.c: Fix common/ includes.
5906 * arch/riscv.c: Fix common/ includes.
5907 * arch/ppc-linux-common.c: Fix common/ includes.
5908 * arch/i386.c: Fix common/ includes.
5909 * arch/arm.c: Fix common/ includes.
5910 * arch/arm-linux.c: Fix common/ includes.
5911 * arch/arm-get-next-pcs.c: Fix common/ includes.
5912 * arch/amd64.c: Fix common/ includes.
5913 * arch/aarch64.c: Fix common/ includes.
5914 * arch/aarch64-insn.c: Fix common/ includes.
5915 * arch-utils.c: Fix common/ includes.
5916 * amd64-windows-tdep.c: Fix common/ includes.
5917 * amd64-tdep.c: Fix common/ includes.
5918 * amd64-sol2-tdep.c: Fix common/ includes.
5919 * amd64-obsd-tdep.c: Fix common/ includes.
5920 * amd64-nbsd-tdep.c: Fix common/ includes.
5921 * amd64-linux-tdep.c: Fix common/ includes.
5922 * amd64-linux-nat.c: Fix common/ includes.
5923 * amd64-fbsd-tdep.c: Fix common/ includes.
5924 * amd64-fbsd-nat.c: Fix common/ includes.
5925 * amd64-dicos-tdep.c: Fix common/ includes.
5926 * amd64-darwin-tdep.c: Fix common/ includes.
5927 * agent.c: Fix common/ includes.
5928 * ada-lang.h: Fix common/ includes.
5929 * ada-lang.c: Fix common/ includes.
5930 * aarch64-tdep.c: Fix common/ includes.
5932 2019-01-25 Tom Tromey <tom@tromey.com>
5934 * common/create-version.sh: Use common/version.h.
5936 2019-01-24 Pedro Alves <palves@redhat.com>
5938 * infrun.c (signal_stop, signal_print, signal_program)
5939 (signal_catch, signal_pass): Now arrays instead of pointers.
5940 (update_signals_program_target, do_target_resume)
5941 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5942 * linux-nat.c (linux_nat_target::pass_signals)
5943 (linux_nat_target::create_inferior, linux_nat_target::attach):
5945 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5946 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5947 * procfs.c (procfs_target::pass_signals): Adjust.
5948 * record-full.c (record_full_target::resume): Adjust.
5949 * remote.c (remote_target::pass_signals)
5950 (remote_target::program_signals): Adjust.
5951 * target-debug.h (target_debug_print_signals): Now takes a
5952 gdb::array_view as parameter. Adjust.
5953 * target.h (target_ops) <pass_signals, program_signals>: Replace
5954 pointer and length parameters with gdb::array_view.
5955 (target_pass_signals, target_program_signals): Likewise.
5956 * target-delegates.c: Regenerate.
5958 2019-01-24 Pedro Alves <palves@redhat.com>
5960 * common/forward-scope-exit.h
5961 (forward_scope_exit::forward_scope_exit): Pass arguments to
5962 m_bind_function directly, instead of creating a std::bind and
5965 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5967 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5969 (pass_in_v_vfp_candidate): Likewise.
5971 2019-01-23 Tom Tromey <tom@tromey.com>
5972 Pedro Alves <palves@redhat.com>
5974 * regcache.c (class regcache_invalidator): Remove.
5975 (regcache::raw_write): Use make_scope_exit.
5977 2019-01-23 Tom Tromey <tom@tromey.com>
5979 * ui-out.h (class ui_out_emit_type): Update comment.
5981 2019-01-23 Tom Tromey <tom@tromey.com>
5983 * infrun.c (fetch_inferior_event): Update comment.
5985 2019-01-23 Tom Tromey <tom@tromey.com>
5986 Pedro Alves <palves@redhat.com>
5988 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5990 (fetch_inferior_event): Use SCOPE_EXIT.
5993 2019-01-23 Tom Tromey <tom@tromey.com>
5994 Pedro Alves <palves@redhat.com>
5996 * infrun.c (disable_thread_events): Delete.
5997 (stop_all_threads): Use SCOPE_EXIT.
5999 2019-01-23 Tom Tromey <tom@tromey.com>
6000 Pedro Alves <palves@redhat.com>
6002 * symfile.c: Include forward-scope-exit.h.
6003 (clear_symtab_users_cleanup): Replace forward declaration with
6004 a FORWARD_SCOPE_EXIT.
6005 (syms_from_objfile_1): Use the forward_scope_exit and
6006 gdb::optional instead of cleanup_function.
6007 (reread_symbols): Use the forward_scope_exit instead of
6009 (clear_symtab_users_cleanup): Remove function.
6011 2019-01-23 Tom Tromey <tom@tromey.com>
6012 Pedro Alves <palves@redhat.com>
6014 * linux-nat.c: Include scope-exit.h.
6015 (cleanup_target_stop): Remove.
6016 (linux_nat_target::static_tracepoint_markers_by_strid): Use
6019 2019-01-23 Tom Tromey <tom@tromey.com>
6020 Pedro Alves <palves@redhat.com>
6022 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
6023 (call_function_by_hand_dummy): Use SCOPE_EXIT.
6025 2019-01-23 Tom Tromey <tom@tromey.com>
6026 Andrew Burgess <andrew.burgess@embecosm.com>
6027 Pedro Alves <palves@redhat.com>
6029 * infrun.c (fetch_inferior_event): Use scope_exit.
6030 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
6031 * top.c (execute_command): Use scope_exit.
6032 * breakpoint.c (bpstat_do_actions): Use scope_exit.
6033 * utils.c (do_bpstat_clear_actions_cleanup)
6034 (make_bpstat_clear_actions_cleanup): Remove.
6036 2019-01-23 Tom Tromey <tom@tromey.com>
6037 Pedro Alves <palves@redhat.com>
6039 * infrun.c: Include "common/scope-exit.h"
6040 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
6041 (wait_for_inferior): Use SCOPE_EXIT.
6042 (fetch_inferior_event): Use scope_exit.
6044 2019-01-23 Tom Tromey <tom@tromey.com>
6045 Pedro Alves <palves@redhat.com>
6047 * breakpoint.c (create_breakpoint): Remove cleanup.
6049 2019-01-23 Tom Tromey <tom@tromey.com>
6050 Andrew Burgess <andrew.burgess@embecosm.com>
6051 Pedro Alves <palves@redhat.com>
6053 2019-01-23 Pedro Alves <palves@redhat.com>
6055 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6057 2019-01-23 Pedro Alves <palves@redhat.com>
6058 Andrew Burgess <andrew.burgess@embecosm.com>
6060 * gdbthread.h: Include "common/forward-scope-exit.h".
6061 (scoped_finish_thread_state): Redefine custom class in terms of
6064 2019-01-23 Pedro Alves <palves@redhat.com>
6065 Andrew Burgess <andrew.burgess@embecosm.com>
6067 * common/forward-scope-exit.h: New file.
6069 2019-01-23 Pedro Alves <palves@redhat.com>
6070 Andrew Burgess <andrew.burgess@embecosm.com>
6071 Tom Tromey <tom@tromey.com>
6073 * common/scope-exit.h: New file.
6075 2019-01-23 Pedro Alves <palves@redhat.com>
6077 * common/preprocessor.h (ESC): Rename to ...
6078 (ESC_PARENS): ... this.
6079 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6080 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6082 2019-01-23 Tom Tromey <tom@tromey.com>
6084 * language.h (class scoped_switch_to_sym_language_if_auto):
6085 Initialize m_lang in both cases.
6087 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6089 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6092 2019-01-22 Tom Tromey <tom@tromey.com>
6094 * corelow.c: Do not include sys/file.h.
6096 2019-01-22 Tom Tromey <tom@tromey.com>
6098 * tui/tui-wingeneral.h: Include gdb_curses.h.
6100 2019-01-22 Tom Tromey <tom@tromey.com>
6102 * source-cache.h (class source_cache) <get_source_lines,
6103 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6105 2019-01-22 Tom Tromey <tom@tromey.com>
6107 * remote-fileio.h (struct remote_target): Declare.
6109 2019-01-22 Tom Tromey <tom@tromey.com>
6111 * python/py-arch.c: Do not include py-ref.h.
6112 * python/py-bpevent.c: Do not include py-ref.h.
6113 * python/py-cmd.c: Do not include py-ref.h.
6114 * python/py-continueevent.c: Do not include py-ref.h.
6115 * python/py-event.h: Do not include py-ref.h.
6116 * python/py-evtregistry.c: Do not include py-ref.h.
6117 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6118 * python/py-frame.c: Do not include py-ref.h.
6119 * python/py-framefilter.c: Do not include py-ref.h.
6120 * python/py-function.c: Do not include py-ref.h.
6121 * python/py-infevents.c: Do not include py-ref.h.
6122 * python/py-linetable.c: Do not include py-ref.h.
6123 * python/py-objfile.c: Do not include py-ref.h.
6124 * python/py-param.c: Do not include py-ref.h.
6125 * python/py-prettyprint.c: Do not include py-ref.h.
6126 * python/py-progspace.c: Do not include py-ref.h.
6127 * python/py-symbol.c: Do not include py-ref.h.
6128 * python/py-symtab.c: Do not include py-ref.h.
6129 * python/py-type.c: Do not include py-ref.h.
6130 * python/py-unwind.c: Do not include py-ref.h.
6131 * python/py-utils.c: Do not include py-ref.h.
6132 * python/py-value.c: Do not include py-ref.h.
6133 * python/py-varobj.c: Do not include py-ref.h.
6134 * python/py-xmethods.c: Do not include py-ref.h.
6135 * python/python.c: Do not include py-ref.h.
6136 * varobj.c: Do not include py-ref.h.
6138 2019-01-22 Tom Tromey <tom@tromey.com>
6140 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6143 2019-01-22 Tom Tromey <tom@tromey.com>
6145 * compile/compile-cplus-types.c: Remove a comment by #include.
6147 2019-01-22 Tom Tromey <tom@tromey.com>
6149 * compile/gcc-c-plugin.h: Include compile-internal.h.
6151 2019-01-22 Tom Tromey <tom@tromey.com>
6153 * stabsread.c (EXTERN): Do not define.
6154 (symnum, next_symbol_text_func, processing_gcc_compilation)
6155 (within_function, global_sym_chain, global_stabs)
6156 (previous_stab_code, this_object_header_files)
6157 (n_this_object_header_files)
6158 (n_allocated_this_object_header_files): Define.
6159 * stabsread.h (EXTERN): Never define. Use "extern".
6161 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6163 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6166 2019-01-21 Tom Tromey <tom@tromey.com>
6168 * ui-out.c: Fix includes.
6169 * tui/tui-source.c: Fix includes.
6170 * target.c: Fix includes.
6171 * remote.c: Fix includes.
6172 * regcache.c: Fix includes.
6173 * python/py-block.c: Fix includes.
6174 * printcmd.c: Fix includes.
6175 * or1k-tdep.c: Fix includes.
6176 * mi/mi-main.c: Fix includes.
6177 * m32r-tdep.c: Fix includes.
6178 * csky-tdep.c: Fix includes.
6179 * compile/compile-cplus-types.c: Fix includes.
6180 * cli/cli-interp.c: Fix includes.
6182 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6184 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6187 2019-01-16 Tom Tromey <tom@tromey.com>
6189 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6191 (struct objfile) <msymbols_range>: Move from top level.
6192 <msymbols>: New method.
6193 (class objfile_msymbols): Remove.
6194 * symtab.c (default_collect_symbol_completion_matches_break_on):
6196 * symmisc.c (dump_msymbols): Update.
6197 * stabsread.c (scan_file_globals): Update.
6198 * objc-lang.c (info_selectors_command, info_classes_command)
6199 (find_methods): Update.
6200 * minsyms.c (find_solib_trampoline_target): Update.
6201 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6202 * coffread.c (coff_symfile_read): Update.
6203 * ada-lang.c (ada_lookup_simple_minsym)
6204 (ada_collect_symbol_completion_matches): Update.
6206 2019-01-16 Tom Tromey <tom@tromey.com>
6208 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6209 type. Remove no-argument constructor.
6210 <iterator::operator++>: Simplify.
6212 <end>: Use minimal_symbol_count.
6214 2019-01-16 Tom Tromey <tom@tromey.com>
6216 * objfiles.h (struct objfile) <psymtabs>: New method.
6217 (class objfile_psymtabs): Remove.
6218 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6220 <range>: New method.
6221 (require_partial_symbols): Change return type.
6222 * psymtab.c (require_partial_symbols)
6223 (psym_expand_symtabs_matching): Update.
6224 * mdebugread.c (parse_partial_symbols): Update.
6225 * dbxread.c (dbx_end_psymtab): Update.
6227 2019-01-15 Tom Tromey <tom@tromey.com>
6229 * symtab.c (lookup_objfile_from_block)
6230 (lookup_symbol_in_objfile_symtabs)
6231 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6232 (find_line_symtab, info_sources_command)
6233 (default_collect_symbol_completion_matches_break_on)
6234 (make_source_files_completion_list): Update.
6235 * symmisc.c (print_objfile_statistics, dump_objfile)
6236 (maintenance_print_symbols, maintenance_info_symtabs)
6237 (maintenance_check_symtabs, maintenance_info_line_tables):
6239 * source.c (select_source_symtab)
6240 (forget_cached_source_info_for_objfile): Update.
6241 * objfiles.h (class objfile_compunits): Remove.
6242 (struct objfile) <compunits_range>: New typedef.
6243 (compunits): New method.
6244 * objfiles.c (objfile_relocate1): Update.
6245 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6246 * maint.c (count_symtabs_and_blocks): Update.
6247 * linespec.c (iterate_over_all_matching_symtabs): Update.
6248 * cp-support.c (add_symbol_overload_list_qualified): Update.
6249 * coffread.c (coff_symtab_read): Update.
6250 * ada-lang.c (add_nonlocal_symbols)
6251 (ada_collect_symbol_completion_matches)
6252 (ada_add_global_exceptions): Update.
6254 2019-01-15 Tom Tromey <tom@tromey.com>
6256 * progspace.h (program_space) <objfiles_safe_range>: New
6258 <objfiles_safe>: New method.
6259 * objfiles.h (class all_objfiles_safe): Remove.
6260 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6261 * jit.c (jit_inferior_exit_hook): Update.
6263 2019-01-17 Tom Tromey <tom@tromey.com>
6265 * progspace.h (program_space) <objfiles_range>: New typedef.
6266 <objfiles>: New method.
6267 <objfiles_head>: Rename from objfiles.
6268 (object_files): Update.
6269 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6270 * guile/scm-pretty-print.c
6271 (ppscm_find_pretty_printer_from_objfiles): Update.
6272 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6273 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6275 * python/py-progspace.c (pspy_get_objfiles): Update.
6276 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6278 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6279 (objfpy_lookup_objfile_by_build_id): Update.
6280 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6281 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6283 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6284 (expand_symtab_containing_pc, lookup_objfile_from_block)
6285 (lookup_static_symbol, basic_lookup_transparent_type)
6286 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6287 (find_line_symtab, info_sources_command)
6288 (default_collect_symbol_completion_matches_break_on)
6289 (make_source_files_completion_list, find_main_name): Update.
6290 * symmisc.c (print_symbol_bcache_statistics)
6291 (print_objfile_statistics, maintenance_print_symbols)
6292 (maintenance_print_msymbols, maintenance_print_objfiles)
6293 (maintenance_info_symtabs, maintenance_check_symtabs)
6294 (maintenance_expand_symtabs, maintenance_info_line_tables):
6296 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6297 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6298 (map_overlay_command, unmap_overlay_command)
6299 (simple_overlay_update, expand_symtabs_matching)
6300 (map_symbol_filenames): Update.
6301 * symfile-debug.c (set_debug_symfile): Update.
6302 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6304 * source.c (select_source_symtab, forget_cached_source_info):
6306 * solib.c (solib_read_symbols): Update.
6307 * solib-spu.c (append_ocl_sos): Update.
6308 * psymtab.c (maintenance_print_psymbols)
6309 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6310 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6311 * printcmd.c (info_symbol_command): Update.
6312 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6314 * objfiles.h (class all_objfiles): Remove.
6315 * objfiles.c (have_partial_symbols, have_full_symbols)
6316 (have_minimal_symbols, qsort_cmp, update_section_map)
6317 (shared_objfile_contains_address_p)
6318 (default_iterate_over_objfiles_in_search_order): Update.
6319 * objc-lang.c (info_selectors_command, info_classes_command)
6320 (find_methods): Update.
6321 * minsyms.c (find_solib_trampoline_target): Update.
6322 * maint.c (maintenance_info_sections)
6323 (maintenance_translate_address, count_symtabs_and_blocks):
6325 * main.c (captured_main_1): Update.
6326 * linux-thread-db.c (try_thread_db_load_from_pdir)
6327 (has_libpthread): Update.
6328 * linespec.c (iterate_over_all_matching_symtabs)
6329 (search_minsyms_for_name): Update.
6330 * jit.c (jit_find_objf_with_entry_addr): Update.
6331 * hppa-tdep.c (find_unwind_entry)
6332 (hppa_lookup_stub_minimal_symbol): Update.
6333 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6335 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6336 (elf_gnu_ifunc_resolve_by_got): Update.
6337 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6338 * dwarf-index-write.c (save_gdb_index_command): Update.
6339 * cp-support.c (add_symbol_overload_list_qualified): Update.
6340 * breakpoint.c (create_overlay_event_breakpoint)
6341 (create_longjmp_master_breakpoint)
6342 (create_std_terminate_master_breakpoint)
6343 (create_exception_master_breakpoint): Update.
6344 * blockframe.c (find_pc_partial_function): Update.
6345 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6346 (ada_collect_symbol_completion_matches)
6347 (ada_add_global_exceptions): Update.
6349 2019-01-17 Tom Tromey <tom@tromey.com>
6351 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6353 (solib_target_parse_libraries): Change return type.
6354 (library_list_start_segment, library_list_start_section)
6355 (library_list_end_library, library_list_start_library); Update.
6356 (solib_target_free_library_list): Remove.
6357 (solib_target_parse_libraries): Remove cleanup. Change return
6359 (solib_target_current_sos): Update.
6361 2019-01-17 Tom Tromey <tromey@bapiya>
6363 * valprint.c: Replace "the the" with "the".
6364 * symtab.c: Replace "the the" with "the".
6365 * solib.c: Replace "the the" with "the".
6366 * solib-dsbt.c: Replace "the the" with "the".
6367 * linespec.c: Replace "the the" with "the".
6368 * dwarf2loc.h: Replace "the the" with "the".
6369 * amd64-windows-tdep.c: Replace "the the" with "the".
6370 * aarch64-tdep.c: Replace "the the" with "the".
6372 2019-01-16 Keith Seitz <keiths@redhat.com>
6375 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6376 <builder>: Rename to ..
6377 <m_builder>: ... this and make private.
6378 (dwarf2_cu::get_builder): New method. Change all users of
6379 `builder' to use this method.
6380 (dwarf2_start_symtab): Move to ...
6381 (dwarf2_cu::start_symtab): ... here. Update all callers
6382 (setup_type_unit_groups): Move to ...
6383 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6385 (dwarf2_cu::reset_builder): New method.
6386 (process_full_compunit, process_full_type_unit): Use
6387 dwarf2_cu::reset_builder.
6388 (follow_die_offset): Record the ancestor CU if it is different
6389 from the followed DIE's CU.
6390 (follow_die_sig_1): Likewise.
6392 2019-01-15 Tom Tromey <tom@tromey.com>
6394 * remote.c (class remote_state) <buf>: Now a char_vector.
6396 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6398 (remote_target::getpkt_or_notif_sane_1)
6399 (remote_target::getpkt_sane)
6400 (remote_target::getpkt_or_notif_sane): Likewise.
6401 (class remote_target) <putpkt>: New overload.
6402 (remote_target::read_frame): Change type of "buf_p". Remove
6404 (packet_ok): New overload.
6405 (packet_check_result): New overload.
6408 2019-01-14 Tom Tromey <tom@tromey.com>
6410 * remote-notif.c (handle_notification, remote_notif_ack)
6411 (remote_notif_parse): Make "buf" const.
6412 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6414 (remote_notif_parse, remote_notif_ack, handle_notification):
6416 * remote.c (remote_notif_stop_parse): Make "buf" const.
6417 (remote_target::remote_parse_stop_reply): Make "buf" const.
6418 (remote_notif_stop_ack): Make "buf" const.
6420 2019-01-14 Tom Tromey <tom@tromey.com>
6422 * remote.c (remote_console_output): Make parameter const.
6424 2019-01-14 Tom Tromey <tom@tromey.com>
6426 * target-debug.h (target_debug_print_signals): Constify.
6427 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6428 * procfs.c (procfs_target::pass_signals): Update.
6429 * linux-nat.c (linux_nat_target::pass_signals): Update.
6430 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6431 * target-delegates.c: Rebuild.
6432 * remote.c (remote_target::program_signals): Update.
6433 (remote_target::pass_signals): Update.
6434 * target.c (target_pass_signals): Constify argument.
6435 (target_program_signals): Likewise.
6436 * target.h (struct target_ops) <pass_signals, program_signals>:
6438 (target_pass_signals, target_program_signals): Constify argument.
6440 2019-01-14 Tom Tromey <tom@tromey.com>
6443 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6445 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6447 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6449 * rs6000-tdep.c: Include reggroups.h.
6450 (IS_V_ALIAS_PSEUDOREG): Define.
6451 (rs6000_register_name): Return names for the "vX" aliases.
6452 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6453 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6454 aliases. Call default_register_reggroup_p for all other
6456 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6458 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6459 Handle "vX" aliases.
6460 (v_alias_pseudo_register_collect): New function.
6461 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6462 (rs6000_gdbarch_init): Initialize "vX" aliases as
6463 pseudo-registers. Restore registration of
6464 rs6000_pseudo_register_reggroup_p with
6465 set_tdesc_pseudo_register_reggroup_p.
6467 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6469 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6470 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6471 set_gdbarch_num_pseudo_regs.
6473 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6475 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6476 Remove arg prefixname, add do_set and do_show.
6477 Add member functions set_list and show_list.
6478 * cli/cli-style.c (class cli_style_option): Update accordingly.
6479 (style_set_list): Move to file scope.
6480 (style_show_list): Likewise.
6481 (set_style): Call help_list.
6482 (show_style): Call cmd_show_list.
6483 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6484 Update to use the new macro.
6486 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6488 * ada-lang.c (_initialize_ada_language): Expand the help text
6489 for the "catch exception" command.
6491 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6493 * symtab.c (matching_obj_sections): Initialize obj,
6494 declare it closer to its usage.
6496 2019-01-10 Tom Tromey <tom@tromey.com>
6498 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6499 (basic_inf_threads_range): Remove.
6500 (inf_threads_range, inf_non_exited_threads_range)
6501 (safe_inf_threads_range): Use next_adapter.
6503 2019-01-10 Keith Seitz <keiths@redhat.com>
6507 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6508 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6510 2019-01-10 Keith Seitz <keiths@redhat.com>
6514 * dictionary.c (pending_to_vector): Remove.
6515 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6516 Remove _1 suffix, replacing functions of the same name. Update
6518 (dict_create_hashed, dict_create_hashed_expandable)
6519 (dict_create_linear, dict_create_linear_expandable, dict_free)
6520 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6521 Make functions static.
6523 2019-01-10 Keith Seitz <keiths@redhat.com>
6527 * dictionary.h (struct dictionary): Replace declaration with
6529 (dict_create_hashed, dict_create_hashed_expandable)
6530 (dict_create_linear, dict_create_linear_expandable)
6531 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6532 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6533 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6534 taking multidictionary argument.
6535 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6536 * block.h (struct block) <dict>: Change to multidictionary
6537 and rename `multidict'.
6538 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6539 symmisc.c: Update all dictionary references to multidictionary.
6541 2019-01-10 Keith Seitz <keiths@redhat.com>
6545 * dictionary.c: Include unordered_map.
6546 (pending_to_vector): New function.
6547 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6548 Rewrite the non-"_1" functions to take vector instead
6550 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6551 "new" _1 versions of the same name.
6552 (multidictionary): Define.
6553 (std::hash<enum language): New definition.
6554 (collate_pending_symbols_by_language, mdict_create_hashed)
6555 (mdict_create_hashed_expandable, mdict_create_linear)
6556 (mdict_create_linear_expandable, mdict_free)
6557 (find_language_dictionary, create_new_language_dictionary)
6558 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6559 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6560 (mdict_size, mdict_empty): New functions.
6561 * dictionary.h (mdict_iterator): Define.
6563 2019-01-10 Pedro Alves <palves@redhat.com>
6565 * breakpoint.c (read_uploaded_action)
6566 (create_tracepoint_from_upload): Adjust to use
6567 gdb::unique_xmalloc_ptr.
6568 * ctf.c (ctf_write_uploaded_tp):
6569 (SET_ARRAY_FIELD): Use emplace_back.
6570 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6571 * tracefile-tfile.c (tfile_write_uploaded_tp):
6572 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6573 gdb::unique_xmalloc_ptr.
6574 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6575 at_string, cond_string, cmd_strings>: Replace char pointers
6576 with gdb::unique_xmalloc_ptr.
6578 2019-01-10 Pedro Alves <palves@redhat.com>
6580 * solib-target.c (library_list_start_library): Don't xstrdup name.
6582 2019-01-10 Pedro Alves <palves@redhat.com>
6584 * mdebugread.c (parse_partial_symbols): Use
6585 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6587 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6589 * linux-fork.c (scoped_switch_fork_info)
6590 <~scoped_switch_fork_info>: Fix incorrect variable name.
6592 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6594 * linux-fork.c (scoped_switch_fork_info)
6595 <scoped_switch_fork_info>: Make explicit.
6596 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6598 2019-01-10 Tom Tromey <tom@tromey.com>
6600 * objfiles.h (objfile::reset_psymtabs): Update.
6601 * objfiles.c (objfile::objfile): Update.
6602 * psymtab.h (psymtab_storage::obstack): Update.
6603 (psymtab_storage::m_obstack): Use gdb::optional.
6604 (class psymtab_storage): Update comment. Remove objfile
6606 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6608 2019-01-10 Tom Tromey <tom@tromey.com>
6610 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6611 <free_psymtabs>: Now private.
6612 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6613 (allocate_psymtab): Use new method.
6615 2019-01-10 Tom Tromey <tom@tromey.com>
6617 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6618 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6619 * mdebugread.c (parse_partial_symbols): Use
6620 allocate_dependencies.
6621 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6622 allocate_dependencies.
6623 (process_psymtab_comp_unit_reader)
6624 (build_type_psymtab_dependencies): Likewise.
6625 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6627 2019-01-10 Tom Tromey <tom@tromey.com>
6629 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6630 PSYMBOL_SET_LANGUAGE.
6631 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6633 2019-01-10 Tom Tromey <tom@tromey.com>
6635 * psymtab.h (psymtab_storage::obstack): New method.
6636 <m_obstack>: Rename from obstack; now private.
6637 * psymtab.c (psymtab_storage): Update.
6638 * dwarf2read.c (create_addrmap_from_index)
6639 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6642 2019-01-10 Tom Tromey <tom@tromey.com>
6644 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6645 * objfiles.h (objfile::reset_psymtabs): New method.
6647 2019-01-10 Tom Tromey <tom@tromey.com>
6649 * symmisc.c (print_symbol_bcache_statistics): Update.
6650 (print_objfile_statistics): Update.
6651 * symfile.c (reread_symbols): Update.
6652 * psymtab.h (class psymtab_storage): New.
6653 * psymtab.c (psymtab_storage): New constructor.
6654 (~psymtab_storage): New destructor.
6655 (require_partial_symbols): Update.
6656 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6657 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6658 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6659 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6660 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6661 (start_psymtab_common, end_psymtab_common)
6662 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6663 (allocate_psymtab): Update.
6664 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6666 (dump_psymtab_addrmap, maintenance_print_psymbols)
6667 (maintenance_check_psymtabs): Update.
6668 (class objfile_psymtabs): Move to objfiles.h.
6669 * psympriv.h (discard_psymtab): Now inline.
6670 (psymtab_discarder::psymtab_discarder): Update.
6671 (psymtab_discarder::~psymtab_discarder): Update.
6672 (ALL_OBJFILE_PSYMTABS): Rewrite.
6673 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6674 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6676 <partial_symtabs>: New field.
6677 (class objfile_psymtabs): Move from psymtab.h. Update.
6678 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6680 (objfile::~objfile): Don't destroy psymbol_cache.
6681 * mdebugread.c (parse_partial_symbols): Update.
6682 * dwarf2read.c (create_addrmap_from_index)
6683 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6684 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6685 (add_partial_subprogram, dwarf2_ranges_read): Update.
6686 * dwarf-index-write.c (write_address_map)
6687 (write_one_signatured_type, recursively_write_psymbols)
6688 (class debug_names, class debug_names, write_psymtabs_to_index):
6691 2019-01-10 Tom Tromey <tom@tromey.com>
6693 * symtab.h (SYMBOL_SET_NAMES): Update.
6694 (symbol_set_names): Update.
6695 (MSYMBOL_SET_NAMES): Update.
6696 * symtab.c (symbol_set_names): Change argument to be an
6697 objfile_per_bfd_storage.
6698 * psymtab.c (add_psymbol_to_bcache): Update.
6699 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6701 2019-01-10 Tom Tromey <tom@tromey.com>
6703 * symtab.c (create_demangled_names_hash): Change argument to be an
6704 objfile_per_bfd_storage.
6705 (symbol_set_names): Update.
6707 2019-01-10 Tom Tromey <tom@tromey.com>
6709 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6711 * psymtab.c (init_psymbol_list): Do nothing if already called.
6712 * psympriv.h (init_psymbol_list): Add comment.
6713 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6715 * dbxread.c (dbx_symfile_read): Unconditionally call
6718 2019-01-10 Tom Tromey <tom@tromey.com>
6720 * xcoffread.c (scan_xcoff_symtab): Update.
6721 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6723 * mdebugread.c (parse_partial_symbols)
6724 (handle_psymbol_enumerators): Update.
6725 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6726 * dbxread.c (read_dbx_symtab): Update.
6727 * psympriv.h (psymbol_placement): New enum.
6728 (add_psymbol_to_list): Update.
6730 2019-01-10 Tom Tromey <tom@tromey.com>
6732 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6733 static_psymbols parameters.
6734 (scan_xcoff_symtab): Update.
6735 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6736 static_psymbols parameters.
6737 * psympriv.h (start_psymtab_common): Update.
6738 * mdebugread.c (parse_partial_symbols): Update.
6739 * dwarf2read.c (create_partial_symtab): Update.
6740 * dbxread.c (read_dbx_symtab): Update.
6741 (start_psymtab): Remove global_psymbols and static_psymbols
6744 2019-01-10 Tom Tromey <tom@tromey.com>
6746 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6747 * psymtab.c (allocate_psymtab): Add comment.
6748 * psympriv.h (allocate_psymtab): Add comment.
6749 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6751 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6753 2019-01-10 Tom Tromey <tom@tromey.com>
6755 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6757 * mipsread.c: Include mdebugread.h.
6758 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6760 * elfread.c: Include mdebugread.h.
6762 2019-01-09 Tom Tromey <tom@tromey.com>
6764 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6765 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6766 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6767 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6768 (psym_lookup_symbol, psym_find_last_source_symtab)
6769 (psym_forget_cached_source_info, psym_print_stats)
6770 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6771 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6772 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6773 (psym_find_compunit_symtab_by_address)
6774 (maintenance_print_psymbols, maintenance_info_psymtabs)
6775 (maintenance_check_psymtabs): Use ranged for.
6776 * psymtab.h (class objfile_psymtabs): New.
6777 (require_partial_symbols): Return objfile_psymtabs.
6778 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6780 2019-01-09 Tom Tromey <tom@tromey.com>
6782 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6783 (find_pc_mapped_section, list_overlays_command)
6784 (map_overlay_command, unmap_overlay_command)
6785 (simple_overlay_update): Use all_objfiles.
6786 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6787 * printcmd.c (info_symbol_command): Use all_objfiles.
6788 * objfiles.h (ALL_OBJSECTIONS): Remove.
6789 * maint.c (maintenance_translate_address): Use all_objfiles.
6790 * gcore.c (gcore_create_callback): Use all_objfiles.
6791 (objfile_find_memory_regions): Likewise.
6793 2019-01-09 Tom Tromey <tom@tromey.com>
6795 * symtab.c (find_line_symtab, info_sources_command)
6796 (make_source_files_completion_list): Use objfile_compunits.
6797 * source.c (select_source_symtab): Use objfile_compunits.
6798 * objfiles.h (struct objfile): Update comment.
6799 (ALL_OBJFILES): Remove.
6800 (ALL_FILETABS): Remove.
6801 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6804 2019-01-09 Tom Tromey <tom@tromey.com>
6806 * symmisc.c (print_objfile_statistics, dump_objfile)
6807 (maintenance_print_symbols): Use compunit_filetabs.
6808 * source.c (forget_cached_source_info_for_objfile): Use
6810 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6811 (ALL_FILETABS): Use compunit_filetabs.
6812 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6813 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6815 2019-01-09 Tom Tromey <tom@tromey.com>
6817 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6818 (compunit_filetabs): New.
6819 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6821 (info_sources_command, make_source_files_completion_list): Remove
6823 * symmisc.c (print_objfile_statistics, dump_objfile)
6824 (maintenance_print_symbols): Remove declaration.
6825 (maintenance_info_symtabs): Use compunit_filetabs.
6826 (maintenance_info_line_tables): Likewise.
6827 * source.c (select_source_symtab): Change local variable name.
6828 (forget_cached_source_info_for_objfile): Remove declaration.
6829 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6830 * objfiles.c (objfile_relocate1): Remove declaration.
6831 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6833 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6834 * coffread.c (coff_symtab_read): Remove declaration.
6835 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6838 2019-01-09 Tom Tromey <tom@tromey.com>
6840 * symtab.c (lookup_objfile_from_block)
6841 (find_pc_sect_compunit_symtab, search_symbols)
6842 (default_collect_symbol_completion_matches_break_on): Use
6844 * objfiles.h (ALL_COMPUNITS): Remove.
6845 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6846 * cp-support.c (add_symbol_overload_list_qualified): Use
6848 * ada-lang.c (ada_collect_symbol_completion_matches)
6849 (ada_add_global_exceptions): Use objfile_compunits.
6851 2019-01-09 Tom Tromey <tom@tromey.com>
6853 * source.c (select_source_symtab)
6854 (forget_cached_source_info_for_objfile): Remove declaration.
6855 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6857 * maint.c (count_symtabs_and_blocks): Remove declaration.
6858 * cp-support.c (add_symbol_overload_list_qualified): Remove
6860 * coffread.c (coff_symtab_read): Remove declaration.
6861 * symtab.c (lookup_symbol_in_objfile_symtabs)
6862 (basic_lookup_transparent_type_1): Use objfile_compunits.
6863 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6864 (info_sources_command, search_symbols)
6865 (default_collect_symbol_completion_matches_break_on)
6866 (make_source_files_completion_list): Remove declaration.
6867 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6868 (ada_collect_symbol_completion_matches)
6869 (ada_add_global_exceptions): Remove declaration.
6870 * linespec.c (iterate_over_all_matching_symtabs): Use
6872 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6873 (class objfile_compunits): New.
6874 (ALL_COMPUNITS): Use objfile_compunits.
6875 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6876 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6878 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6880 2019-01-09 Tom Tromey <tom@tromey.com>
6882 * symtab.c (search_symbols)
6883 (default_collect_symbol_completion_matches_break_on): Use
6885 * ada-lang.c (ada_lookup_simple_minsym)
6886 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6887 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6888 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6890 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6891 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6892 * objc-lang.c (find_methods): Use objfile_msymbols.
6893 (info_selectors_command, info_classes_command): Likewise.
6894 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6895 * objfiles.h (class objfile_msymbols): New.
6896 (ALL_OBJFILE_MSYMBOLS): Remove.
6897 (ALL_MSYMBOLS): Remove.
6899 2019-01-09 Tom Tromey <tom@tromey.com>
6901 * common/next-iterator.h (next_adapter): Add Iterator template
6903 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6904 (class all_objfiles_safe): New.
6905 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6906 * objfiles.c (put_objfile_before): Update comment.
6907 (add_separate_debug_objfile): Likewise.
6908 (free_all_objfiles): Use all_objfiles_safe.
6909 (objfile_purge_solibs): Likewise.
6911 2019-01-09 Tom Tromey <tom@tromey.com>
6913 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6914 (expand_symtab_containing_pc, lookup_static_symbol)
6915 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6916 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6918 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6919 * breakpoint.c (create_overlay_event_breakpoint)
6920 (create_longjmp_master_breakpoint)
6921 (create_std_terminate_master_breakpoint)
6922 (create_exception_master_breakpoint): Use all_objfiles.
6923 * linux-thread-db.c (try_thread_db_load_from_pdir)
6924 (has_libpthread): Use all_objfiles.
6925 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6926 * linespec.c (iterate_over_all_matching_symtabs)
6927 (search_minsyms_for_name): Use all_objfiles.
6928 * maint.c (maintenance_info_sections): Use all_objfiles.
6929 * main.c (captured_main_1): Use all_objfiles.
6930 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6931 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6932 * guile/scm-pretty-print.c
6933 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6934 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6935 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6936 (maintenance_print_msymbols): Use all_objfiles.
6937 * source.c (select_source_symtab): Use all_objfiles.
6938 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6939 * symfile.c (remove_symbol_file_command)
6940 (expand_symtabs_matching, map_symbol_filenames): Use
6942 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6944 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6945 * objc-lang.c (find_methods): Use all_objfiles.
6946 * objfiles.c (have_partial_symbols, have_full_symbols)
6947 (have_minimal_symbols, qsort_cmp)
6948 (default_iterate_over_objfiles_in_search_order): Use
6950 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6951 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6952 (maintenance_check_psymtabs): Use all_objfiles.
6953 (ALL_PSYMTABS): Remove.
6954 * compile/compile-object-run.c (do_module_cleanup): Use
6956 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6957 * cp-support.c (add_symbol_overload_list_qualified): Use
6959 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6961 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6962 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6964 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6965 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6966 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6968 * solib.c (solib_read_symbols): Use all_objfiles
6970 2019-01-09 Tom Tromey <tom@tromey.com>
6972 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6973 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6975 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6976 * symmisc.c (print_symbol_bcache_statistics)
6977 (print_objfile_statistics, maintenance_print_objfiles)
6978 (maintenance_info_symtabs, maintenance_check_symtabs)
6979 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6981 * source.c (forget_cached_source_info): Use all_objfiles.
6982 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6983 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6984 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6985 * objfiles.c (update_section_map): Use all_objfiles.
6986 (shared_objfile_contains_address_p): Likewise.
6987 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6988 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6990 2019-01-09 Tom Tromey <tom@tromey.com>
6992 * common/next-iterator.h: New file.
6993 * objfiles.h (class all_objfiles): New.
6994 (struct objfile_iterator): New.
6996 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6998 * NEWS: Move the description of the changed "frame", "select-frame",
6999 and "info frame" commands to the Changed commands section.
7001 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
7003 * gdbtypes.c (check_stub_method_group): Remove handling of old
7005 * linespec.c (find_methods): Likewise.
7006 * stabsread.c (read_member_functions): Likewise.
7007 * valops.c (search_struct_method): Likewise.
7008 (value_struct_elt_for_reference): Likewise.
7009 * NEWS: Mention this change.
7011 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7013 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
7015 * source.c (print_source_lines_base): Update line number check.
7016 (print_source_lines): New function.
7017 (source_lines_range::source_lines_range): New function.
7018 * source.h (class source_lines_range): New class.
7019 (print_source_lines): New declaration.
7021 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7023 * linespec.c (linespec_state_destructor): Free self->canonical_names.
7025 2019-01-08 Tom Tromey <tom@tromey.com>
7026 Simon Marchi <simon.marchi@ericsson.com>
7029 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
7030 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
7031 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7032 * f-exp.y (DOLLAR_VARIABLE): Likewise.
7033 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
7034 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7036 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7038 * source.c (select_source_symtab): Move header comment to
7039 declaration in source.h.
7040 (forget_cached_source_info_for_objfile): Likewise.
7041 (forget_cached_source_info): Likewise.
7042 (identify_source_line): Likewise.
7043 * source.h (identify_source_line): Move declaration from symtab.h
7044 and add comment from source.c
7045 (print_source_lines): Likewise.
7046 (forget_cached_source_info_for_objfile): Likewise.
7047 (forget_cached_source_info): Likewise.
7048 (select_source_symtab): Likewise.
7049 (enum print_source_lines_flag): Move definition from symtab.h.
7050 * symtab.h (identify_source_line): Move declaration to source.h.
7051 (print_source_lines): Likewise.
7052 (forget_cached_source_info_for_objfile): Likewise.
7053 (forget_cached_source_info): Likewise.
7054 (select_source_symtab): Likewise.
7055 (enum print_source_lines_flag): Move definition to source.h.
7056 * tui/tui-hooks.c: Add 'source.h' include.
7058 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7060 * source.c (print_source_lines_base): Handle requests to print
7061 reverse line number sequences, and guard against empty lines
7064 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7066 * source.c (print_source_lines_base): Fix skip of '\r' if next
7069 2019-01-06 Tom Tromey <tom@tromey.com>
7071 * c-exp.y (struct c_parse_state) <macro_original_text,
7072 expansion_obstack>: New member.
7073 (macro_original_text, expansion_obstack): Remove globals.
7074 (scan_macro_expansion, scanning_macro_expansion)
7075 (finished_macro_expansion): Update.
7076 (scan_macro_cleanup): Remove.
7077 (yylex, c_parse): Update.
7079 2019-01-06 Tom Tromey <tom@tromey.com>
7081 * c-exp.y (struct c_parse_state) <strings>: New member.
7082 (operator_stoken): Update.
7084 2019-01-06 Tom Tromey <tom@tromey.com>
7086 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7087 (union type_stack_elt) <typelist_val>: Now a pointer to
7089 (type_stack_cleanup): Don't declare.
7090 (push_typelist): Update.
7091 * parse.c (pop_typelist): Return a std::vector.
7092 (push_typelist): Take a std::vector.
7093 (follow_types): Update. Do not free args.
7094 (type_stack_cleanup): Remove.
7095 * c-exp.y (struct c_parse_state): New.
7096 (cpstate): New global.
7097 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7098 (nonempty_typelist): Update.
7099 (func_mod): Create a new vector.
7100 (c_parse): Create a c_parse_state.
7101 (check_parameter_typelist): Do not delete params.
7102 (function_method): Update. Do not delete type_list.
7104 2019-01-06 Tom Tromey <tom@tromey.com>
7107 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7109 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7110 (print_return_value): Likewise.
7112 2019-01-05 Tom Tromey <tom@tromey.com>
7114 * contrib/cleanup_check.py: Remove.
7115 * contrib/gcc-with-excheck: Remove.
7116 * contrib/exsummary.py: Remove.
7117 * contrib/excheck.py: Remove.
7119 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7121 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7122 NULL. Initialize tpprev to NULL instead of assigning it
7123 to NULL on the next statement.
7124 * windows-nat.c (windows_delete_thread): Remove check for
7125 main_thread_id before printing thread exit notifications.
7126 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7127 Remove thread ID check against main_thread_id.
7128 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7129 windows_delete_thread.
7130 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7132 2019-01-04 Tom Tromey <tom@tromey.com>
7134 * compile/compile.c (_initialize_compile): Use upper case for
7135 metasyntactic variables.
7136 * symmisc.c (_initialize_symmisc): Use upper case for
7137 metasyntactic variables.
7138 * psymtab.c (_initialize_psymtab): Use upper case for
7139 metasyntactic variables.
7140 * demangle.c (demangle_command): Use upper case for metasyntactic
7142 (_initialize_demangler): Likewise.
7143 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7146 2019-01-03 Tom Tromey <tom@tromey.com>
7148 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7150 2019-01-03 Tom Tromey <tom@tromey.com>
7152 * python/py-symtab.c (salpy_str): Update.
7153 (struct salpy_sal_object) <symtab>: Now a PyObject.
7154 (salpy_dealloc): Update.
7155 (del_objfile_sal): Use gdbpy_ref.
7157 2019-01-03 Tom Tromey <tom@tromey.com>
7159 * python/py-type.c (convert_field): Use new_reference. Return
7161 (make_fielditem): Return gdbpy_ref.
7162 (typy_fields): Update.
7163 (typy_getitem): Update.
7164 (field_name): Return gdbpy_ref. Use new_reference.
7165 (typy_iterator_iternext): Update.
7167 2019-01-03 Tom Tromey <tom@tromey.com>
7169 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7171 2019-01-03 Tom Tromey <tom@tromey.com>
7173 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7174 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7175 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7176 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7177 (pspy_set_type_printers): Likewise.
7178 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7179 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7180 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7181 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7182 (objfpy_set_type_printers): Likewise.
7184 2019-01-03 Tom Tromey <tom@tromey.com>
7186 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7187 (gdbpy_print_stack): Use gdbpy_err_fetch.
7188 * python/python-internal.h (class gdbpy_err_fetch): New class.
7189 (class gdbpy_enter) <m_error_type, m_error_value,
7190 m_error_traceback>: Remove.
7191 <m_error>: New member.
7192 (gdbpy_exception_to_string): Don't declare.
7193 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7194 * python/py-value.c (convert_value_from_python): Use
7196 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7197 gdbpy_exception_to_string.
7198 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7199 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7202 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7204 * linux-nat.c (delete_lwp_cleanup): Delete.
7205 (struct lwp_deleter): New struct.
7206 (lwp_info_up): New typedef.
7207 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7210 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7212 * linux-fork.c (class scoped_switch_fork_info): New class.
7213 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7215 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7217 * valops.c (find_overload_match): Remove use of null_cleanup, and
7218 calls to do_cleanups.
7220 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7222 * compile/compile-cplus-types.c
7223 (compile_cplus_instance::decl_name): Handle changes to
7225 * cp-support.c (cp_func_name): Update header comment, update
7227 * cp-support.h (cp_func_name): Update return type in declaration.
7228 * valops.c (find_overload_match): Move temp_func local to top
7229 level of function and change its type. Use temp_func to hold and
7230 delete temporary string obtained from cp_func_name.
7232 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7234 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7235 gdb::char_vector, remove cleanup, and update uses of `msg`.
7237 2019-01-03 Jim Wilson <jimw@sifive.com>
7239 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7241 2019-01-02 Tom Tromey <tom@tromey.com>
7243 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7244 (tdesc_parse_xml): Remove cleanups.
7245 * target-descriptions.h (make_cleanup_free_target_description):
7247 (target_desc_deleter): New struct.
7248 (target_desc_up): New typedef.
7249 * target-descriptions.c (target_desc_deleter::operator()): Rename
7250 from free_target_description.
7251 (make_cleanup_free_target_description): Remove.
7253 2019-01-02 Tom Tromey <tom@tromey.com>
7255 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7256 constructor, destructor.
7257 (linespec_parser): Remove typedef.
7258 (~linespec_parser): Rename from linespec_parser_delete.
7259 (linespec_lex_to_end, linespec_complete_label)
7260 (linespec_complete): Update.
7261 (decode_line_full): Remove cleanups.
7262 (decode_line_1): Update.
7264 2019-01-02 Tom Tromey <tom@tromey.com>
7266 * python/python-internal.h (inferior_to_inferior_object): Change
7268 * python/py-exitedevent.c (create_exited_event_object): Update.
7269 * python/py-inferior.c (inferior_to_inferior_object): Return
7271 (python_new_inferior, python_inferior_deleted)
7272 (thread_to_thread_object, delete_thread_object)
7273 (build_inferior_list, gdbpy_selected_inferior): Update.
7274 * python/py-infthread.c (create_thread_object): Update. Also fail
7275 if inferior_to_inferior_object fails.
7277 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7279 * inferior.h (class inferior) <displaced_step_state>: New field.
7280 * infrun.h (struct displaced_step_state): Move here from
7281 infrun.c. Initialize fields, add constructor.
7282 <inf>: Remove field.
7283 <reset>: New method.
7284 * infrun.c (struct displaced_step_inferior_state): Move to
7286 (displaced_step_inferior_states): Remove.
7287 (get_displaced_stepping_state): Adust.
7288 (displaced_step_in_progress_any_inferior): Adjust.
7289 (displaced_step_in_progress_thread): Adjust.
7290 (displaced_step_in_progress): Adjust.
7291 (add_displaced_stepping_state): Remove.
7292 (get_displaced_step_closure_by_addr): Adjust.
7293 (remove_displaced_stepping_state): Remove.
7294 (infrun_inferior_exit): Call displaced_step_state.reset.
7295 (use_displaced_stepping): Don't check for NULL.
7296 (displaced_step_prepare_throw): Call
7297 get_displaced_stepping_state.
7298 (displaced_step_fixup): Don't check for NULL.
7299 (prepare_for_detach): Don't check for NULL.
7301 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7303 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7304 in case of call that did not complete.
7306 2019-01-02 Andrey Utkin <autkin@undo.io>
7308 * symfile.c (find_separate_debug_file): Fix search of debug files for
7311 2019-01-02 Tom Tromey <tom@tromey.com>
7313 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7315 * python/py-frame.c (frapy_older): Remove cast.
7316 (frapy_newer): Likewise.
7317 * python/py-breakpoint.c (local_setattro): Remove cast.
7318 * python/py-arch.c (archpy_name): Remove local variable.
7319 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7321 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7323 * unittests/basic_string_view/element_access/char/empty.cc:
7324 Fix year range in copyright header.
7326 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7328 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7330 <operator==>: Update with for removed field.
7332 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7333 <isa_features>: ...this.
7334 <abi_features>: New field.
7335 (riscv_isa_flen): Update comment.
7336 (riscv_abi_xlen): New declaration.
7337 (riscv_abi_flen): New declaration.
7338 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7340 (riscv_abi_xlen): New function.
7341 (riscv_isa_flen): Update to get answer from isa_features.
7342 (riscv_abi_flen): New function.
7343 (riscv_has_fp_abi): Update to get answer from abi_features.
7344 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7346 (riscv_call_info) <xlen, flen>: Update comment.
7347 (riscv_call_arg_struct): Remove invalid assertions
7348 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7350 (riscv_gdbarch_init): Gather isa features and abi features
7351 separately, ensure both match on the gdbarch when reusing an old
7352 gdbarch. Relax an error check to allow 32-bit abi float to run on
7353 a target with 64-bit float hardware.
7355 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7357 * source.c (search_command_helper): Stop reverse search
7358 when line 1 has been searched.
7360 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7362 * record-full.c (record_full_base_target::close): Rewrite
7363 record_full_core_buf_list free logic.
7365 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7367 * break-catch-syscall.c (print_one_catch_syscall): xfree
7370 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7372 * top.c (print_gdb_version): Update Copyright year in version
7375 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7377 Update copyright year range in all GDB files.
7379 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7381 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7383 For older changes see ChangeLog-2018.
7389 version-control: never