1 2019-06-13 Pedro Alves <palves@redhat.com>
3 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5 2019-06-13 Pedro Alves <palves@redhat.com>
7 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
10 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
11 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
13 (check_for_argument): Skip spaces after argument.
15 2019-06-13 Pedro Alves <palves@redhat.com>
17 * thread.c (thread_apply_command): Adjust TID parsing.
18 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
19 detected before end of string.
20 (tid_is_in_list): Error out if LIST is invalid.
22 2019-06-13 Pedro Alves <palves@redhat.com>
24 * completer.c (complete_line_internal_1): Rewind completion word
26 (completion_tracker::advance_custom_word_point_by): Change
27 parameter type to int.
28 * completer.h (completion_tracker::advance_custom_word_point_by):
31 2019-06-13 Pedro Alves <palves@redhat.com>
33 * completer.c (advance_to_completion_word): Handle delimiters.
35 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
37 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
39 2019-06-11 Tom Tromey <tom@tromey.com>
41 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
42 (xmalloc_failed): Move to alloc.c.
44 * Makefile.in (COMMON_SFILES): Add alloc.c.
46 2019-06-11 Tom Tromey <tom@tromey.com>
48 * nat/linux-waitpid.c: Don't include server.h.
49 (linux_debug): Remove.
52 2019-06-11 Tom Tromey <tromey@adacore.com>
54 * infcall.c (_initialize_infcall): Remove trailing newline from
56 * user-regs.c (_initialize_user_regs): Remove trailing newline
58 * typeprint.c (_initialize_typeprint): Remove trailing newline
60 * reverse.c (_initialize_reverse): Remove trailing newlines from
62 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
64 * language.c (add_set_language_command): Remove trailing newline
66 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
68 * disasm.c (_initialize_disasm): Remove trailing newline from
70 * top.c (init_main): Remove trailing newline from help.
71 * interps.c (_initialize_interpreter): Remove trailing newline
73 * btrace.c (_initialize_btrace): Remove trailing newlines from
75 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
77 * python/python.c (_initialize_python): Remove trailing newline
79 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
81 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
82 from help. Reformat some text.
83 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
85 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
88 2019-06-11 Tom Tromey <tromey@adacore.com>
90 * darwin-nat.c (darwin_decode_exception_message)
91 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
93 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
95 * valops.c (value_slice): Check for not allocated or not
98 2019-06-10 Tom de Vries <tdevries@suse.de>
101 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
102 sure an empty slot (defined by a 32-bit zero pair) is recognized as
105 2019-06-10 Tom de Vries <tdevries@suse.de>
108 * linespec.c (linespec_lexer_lex_string): Remove incorrect
109 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
111 2019-06-10 Tom de Vries <tdevries@suse.de>
114 * symtab.c (struct demangled_name_entry): Add language field.
115 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
116 static minimal symbol". Set and use language field.
118 2019-06-10 Tom Tromey <tromey@adacore.com>
120 * ada-lang.c (_initialize_ada_language): Update help text.
122 2019-06-10 Tom Tromey <tromey@adacore.com>
124 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
126 * guile/guile.c (handle_boot_error): Don't end warning with a
128 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
129 warning with a newline.
130 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
132 (s12z_frame_cache): Likewise.
133 * dwarf-index-cache.c (index_cache::store): Don't end warning with
135 * solib-svr4.c (disable_probes_interface): Don't end warning with
137 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
139 * python/python.c (do_finish_initialization): Don't end warning
142 2019-06-10 Tom Tromey <tom@tromey.com>
144 * python/py-breakpoint.c (gdbpy_breakpoint_created)
145 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
148 2019-06-10 Tom Tromey <tromey@adacore.com>
150 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
152 (elf_new_init): Don't call stabsread_new_init.
153 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
154 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
155 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
157 2019-06-10 Tom de Vries <tdevries@suse.de>
161 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
163 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
165 * source.c (find_and_open_source): Also rewrite relative file
168 2019-04-26 Amos Bird <amosbird@gmail.com>
170 * annotate.c (annotate_thread_exited): Add "thread-exited"
173 2019-06-06 Tom Tromey <tromey@adacore.com>
175 * maint.h (class scoped_command_stats): Use
176 DISABLE_COPY_AND_ASSIGN.
177 <print_time>: New method.
178 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
180 (scoped_command_stats::print_time): New method.
182 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
184 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
185 instructions of lengths 6 or 8 bytes.
187 2019-06-04 Pedro Alves <palves@redhat.com>
189 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
191 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
192 * breakpoint.c (condition_completer): Likewise.
193 * cli/cli-dump.c (scan_expression): Likewise.
194 * common/filestuff.c (mkdir_recursive): Likewise.
195 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
196 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
197 (gdb_abspath): Likewise.
198 * compile/compile-cplus-types.c
199 (compile_cplus_instance::decl_name): Likewise.
200 * completer.c (complete_explicit_location):
201 (signal_completer, reg_or_group_completer_1): Likewise.
202 * cp-support.c (cp_remove_params_if_any): Likewise.
203 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
204 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
205 * infcmd.c (strip_bg_char): Likewise.
206 * linespec.c (copy_token_string): Likewise.
207 * mi/mi-main.c (output_cores): Likewise.
208 * psymtab.c (psymtab_search_name):
209 * symfile.c (test_set_ext_lang_command): Likewise.
210 * target.c (target_fileio_read_stralloc): Likewise.
211 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
212 * value.c (complete_internalvar): Likewise.
214 2019-06-04 Christian Biesinger <cbiesinger@google.com>
216 Add objfile property to gdb.Type.
217 * NEWS: Mention Python API addition.
218 * python/py-type.c (typy_get_objfile): New method.
220 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
222 * NEWS: Mention the new set|show style [title|highlight].
223 Mention changes to "show style", "help" and "apropos".
225 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
227 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
228 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
229 instead of print_help_for_command.
230 (print_doc_of_command): New function.
231 (help_list): Add 'apropos -v word' suggestion.
232 (print_help_for_command): Style the command name using title style.
233 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
234 (_initialize_cli_cmds): Describe -v in apropos_command help.
236 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
238 * cli/cli-style.h (cli_style_option): Add name in constructor,
239 add m_name class member, add constructor with intensity,
240 add name class function.
241 (cli_style_option::add_setshow_commands): Remove name argument.
242 (highlight_style, title_style): New styles.
243 * cli/cli-style.c (do_show): New function that shows a style
244 characteristic styling the style name with itself.
245 (set_style_name): New function.
246 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
247 Update all callers according to the changes in cli/cli-style.h.
248 * utils.h (fputs_highlighted): New function.
249 * utils.c (fputs_highlighted): Likewise.
251 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
253 * NEWS: Mention new pipe command and new convenience variables.
255 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
257 * cli/cli-cmds.c (pipe_command): New function.
258 (_initialize_cli_cmds): Call add_com for pipe_command.
259 Define | as an alias for pipe.
260 (exit_status_set_internal_vars): New function.
261 (shell_escape): Call exit_status_set_internal_vars.
262 cli/cli-decode.c (find_command_name_length): Recognize | as
263 a single character command.
265 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
267 * gdbcmd.h (execute_command_to_ui_file): New declaration.
268 top.c (execute_command_to_ui_file): New function, mostly a copy
269 of execute_command_to_string.
270 (execute_command_to_string): Implement by calling
271 execute_command_to_ui_file.
273 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
275 * top.h (saved_command_line): Remove declaration.
276 * top.c (previous_saved_command_line, previous_repeat_arguments):
278 (saved_command_line): Make static, define together with other
280 (dont_repeat): Clear repeat_arguments.
281 (repeat_previous, get_saved_command_line, save_command_line):
283 (gdb_init): Initialize saved_command_line
284 and previous_saved_command_line.
285 * main.c (captured_main_1): Remove saved_command_line initialization.
286 * event-top.c (handle_line_of_input): Update to use
287 the new 'repeat' related functions instead of direct access to
289 * command.h (repeat_previous, get_saved_command_line,
290 save_command_line): New declarations.
291 (dont_repeat): Add comment.
293 2019-05-30 Tom Tromey <tromey@adacore.com>
295 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
297 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
299 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
302 * completer.c (complete): Initialize variable word.
304 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
306 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
307 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
308 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
309 'body' is NULL to the outter 'if', protecting the '!is_define'
312 2019-05-29 Tom Tromey <tromey@adacore.com>
314 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
315 (dwarf_unknown): New function.
316 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
317 (dwarf_type_encoding_name): Use dwarf_unknown.
319 2019-05-29 Tom Tromey <tromey@adacore.com>
322 * cp-valprint.c (cp_print_value_fields): Call
323 cp_print_static_field inside "try".
325 2019-05-29 Tom Tromey <tromey@adacore.com>
327 * inflow.c (struct terminal_info): Add default operator=.
328 * configure: Rebuild.
329 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
330 -Wdeprecated-copy-dtor, -Wredundant-move.
332 2019-05-29 Tom Tromey <tromey@adacore.com>
335 * infcmd.c (print_return_value_1): Handle finish_print
337 (show_print_finish): New function.
338 (_initialize_infcmd): Add "set/show print finish" commands.
339 * valprint.c (user_print_options): Initialize new member.
340 * valprint.h (struct value_print_options) <finish_print>: New
343 2019-05-28 Tom Tromey <tromey@adacore.com>
345 * ada-lang.c (ada_remove_Xbn_suffix)
346 (find_old_style_renaming_symbol)
347 (parse_old_style_renaming): Remove.
348 (ada_find_renaming_symbol): Don't call
349 find_old_style_renaming_symbol.
350 (ada_is_renaming_symbol): Rename from
351 ada_find_renaming_symbol. Remove "block" parameter. Return
353 (ada_read_var_value): Update and simplify.
354 * ada-exp.y (write_var_or_type): Remove old code.
356 2019-05-28 Alan Hayward <alan.hayward@arm.com>
358 * event-top.c: Remove include comment.
359 * inflow.c (class scoped_ignore_sigttou): Move from here...
360 * inflow.h (class scoped_ignore_sigttou): ...to here.
361 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
362 * top.c: Remove include comment.
364 2019-05-27 Tom Tromey <tom@tromey.com>
368 2019-05-22 Tom Tromey <tromey@adacore.com>
370 * target.c (target_follow_exec): Constify parameter.
371 * target-delegates.c: Rebuild.
372 * remote.c (remote_target::follow_exec): Constify parameter.
373 * infrun.c (follow_exec): Constify parameter.
374 * target.h (struct target_ops) <follow_exec>: Constify parameter.
375 (target_follow_exec): Likewise.
377 2019-05-22 Alan Hayward <alan.hayward@arm.com>
379 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
380 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
382 2019-05-22 Alan Hayward <alan.hayward@arm.com>
384 * NEWS: Add debugredirect and testsuite sections.
386 2019-05-22 Simon Cook <simon.cook@embecosm.com>
388 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
389 target descriptions using exclusively floating point register name
392 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
395 * f-lang.c (build_fortran_types): Handle the case where
396 gdbarch_floatformat_for_type returns a nullptr.
398 2019-05-21 Tom de Vries <tdevries@suse.de>
401 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
403 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
406 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
408 * i386-tdep.c (i386_floatformat_for_type): Use
409 floatformats_ia64_quad for the 16-byte floating point component
410 within a fortran 32-byte complex number.
412 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
414 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
415 delete default constructor.
416 (find_partial_die): Update to return const struct.
417 (partial_die_parent_scope): Move variable declaration into scope
418 of its use and change its type to auto.
419 (guess_partial_die_structure_name): Likewise.
420 (partial_die_info::fixup): Likewise.
422 2019-05-17 Tom Tromey <tromey@adacore.com>
424 * source.c (find_and_open_source): Remove cast.
426 2019-05-17 Tom Tromey <tromey@adacore.com>
428 * annotate.c (annotate_source): Make "filename" const.
429 * annotate.h (annotate_source): Use const.
431 2019-05-17 Alan Hayward <alan.hayward@arm.com>
433 * disasm.c (set_disassembler_options): Send errors to stderr.
435 2019-05-17 Alan Hayward <alan.hayward@arm.com>
437 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
438 (cli_interp_base::set_logging): Check debug_redirect.
439 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
440 * cli/cli-logging.c (debug_redirect): Add static variable.
441 (pop_output_files): Add default param.
442 (handle_redirections): Print debug setting.
443 (show_logging_command): Likewise.
444 (_initialize_cli_logging): Add debugredirect command.
445 * interps.c (current_interp_set_logging): Add debug_redirect
447 * interps.h (set_logging): Add debug_redirect parameter.
448 (current_interp_set_logging): Likewise.
449 * mi/mi-common.h: Likewise.
450 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
452 2019-05-17 Alan Hayward <alan.hayward@arm.com>
453 Tom Tromey <tromey@adacore.com>
455 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
457 * cli/cli-interp.h (make_logging_output): Remove declaration.
458 * cli/cli-logging.c (make_logging_output): Remove function.
459 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
461 * ui-file.c (tee_file::tee_file): Remove bools.
462 (tee_file::~tee_file): Remove deletes.
463 * ui-file.h (tee_file): Remove bools.
465 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
467 * mi/mi-cmds.h (mi_cmd_complete): New function.
468 * mi/mi-main.c (mi_cmd_complete): Likewise.
469 * mi/mi-cmds.c: Define new MI command -complete.
470 * NEWS: Mention new -complete command.
472 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
474 * completer.h (complete): New function.
475 * completer.c (complete): Likewise.
476 * cli/cli-cmds.c: (complete_command): Update to use new complete()
477 function defined in completer.h.
479 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
481 * MAINTAINERS (Write After Approval): Add myself.
483 2019-05-17 Tom de Vries <tdevries@suse.de>
486 * dwarf2read.c (struct cu_partial_die_info): New struct.
487 (find_partial_die): Return cu_partial_die_info.
488 (partial_die_parent_scope, guess_partial_die_structure_name)
489 (partial_die_info::fixup): Handle new return type of find_partial_die.
491 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
493 * stap-probe.c (stap_parse_register_operand): Make "regname" an
494 "std::string", simplifying the algorithm.
496 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
498 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
499 (stap_static_probe_ops::get_probes): Likewise.
501 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
503 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
505 (stap_parse_single_operand): Join checks for
506 "gdbarch_stap_parse_special_token_p" and
507 "gdbarch_stap_parse_special_token" in the same "if" statement.
508 Invert check when verifying for operation on register
511 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
513 * stap-probe.c (stap_get_opcode): Update comment.
514 (stap_get_expected_argument_type): Likewise.
515 (handle_stap_probe): Likewise.
517 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
519 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
520 return type to 'bool'. Adjust comment. Use 'bool' when
522 (i386_stap_parse_special_token_three_arg_disp): Likewise.
523 * stap-probe.c (stap_parse_argument_1): Likewise.
524 (stap_is_operator): Likewise.
525 (stap_is_generic_prefix): Likewise.
526 (stap_is_register_prefix): Likewise.
527 (stap_is_register_indirection_prefix): Likewise.
528 (stap_is_integer_prefix): Likewise.
529 (stap_generic_check_suffix): Likewise.
530 (stap_check_integer_suffix): Likewise.
531 (stap_check_register_suffix): Likewise.
532 (stap_check_register_indirection_suffix): Likewise.
533 (stap_parse_register_operand): Likewise.
534 (stap_parse_single_operand): Likewise.
535 (stap_parse_argument_1): Likewise.
536 (stap_probe::get_argument_count): Likewise.
537 (stap_is_operator): Likewise.
539 2019-05-16 Tom Tromey <tromey@adacore.com>
541 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
544 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
546 * linux-thread-db.c (try_thread_db_load_1): Change return type
548 (try_thread_db_load): Likewise.
549 (try_thread_db_load_from_pdir_1): Likewise.
550 (try_thread_db_load_from_pdir): Likewise.
551 (try_thread_db_load_from_sdir): Likewise.
552 (try_thread_db_load_from_dir): Likewise.
553 (thread_db_load_search): Likewise.
554 (has_libpthread): Likewise.
555 (thread_db_load): Likewise.
557 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
559 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
560 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
561 NULL, and complain/return if that's the case.
563 2019-05-15 John Darrington <john@darrington.wattle.id.au>
565 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
566 (advance, posn, abstract_read_memory): New functions.
567 [struct mem_read_abstraction]: New struct.
568 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
570 2019-05-14 Tom Tromey <tromey@adacore.com>
572 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
573 value is not lval_memory.
575 2019-05-14 Tom Tromey <tromey@adacore.com>
577 * solib.c (info_sharedlibrary_command): Style the file name.
579 2019-05-14 Alan Hayward <alan.hayward@arm.com>
581 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
582 (aarch64_vnv_type): Likewise.
583 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
584 * common/tdesc.c: Likewise.
585 * common/tdesc.h (enum tdesc_type_kind): Likewise.
586 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
587 * features/aarch64-fpu.xml: Add ieee half view.
588 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
589 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
590 * gdbtypes.h (struct builtin_type): Likewise.
591 (struct objfile_type): Likewise.
593 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
595 * language.c (language_sniff_from_mangled_name): Fix "langauge"
597 * location.h (string_to_event_location): Likewise.
599 2019-05-11 Joel Brobecker <brobecker@adacore.com>
603 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
605 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
606 New variable declaration.
607 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
609 (print_one_breakpoint): Use ui_out::test_flags and new global
610 variable to compute use_fixed_output.
611 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
613 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
614 (mi_multi_location_breakpoint_output_fixed): Remove.
615 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
617 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
618 fix_multi_location_breakpoint_output flag if version >= 3.
619 * ui-out.h (enum ui_out_flag)
620 <fix_multi_location_breakpoint_output>: New enumerator.
622 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
624 * contrib/cc-with-tweaks.sh: Validate dwz's work.
626 2019-05-10 Tom Tromey <tromey@adacore.com>
628 * ada-lang.c (catch_ada_completer): New function.
629 (_initialize_ada_language): Use it.
631 2019-05-10 Tom Tromey <tromey@adacore.com>
633 * thread.c (print_thread_info): Make "requested_threads" const.
634 * gdbthread.h (print_thread_info): Make "requested_threads"
636 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
637 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
639 2019-05-08 Tom Tromey <tom@tromey.com>
641 * gdbtypes.c (objfile_type_data): Change type.
642 (objfile_type, _initialize_gdbtypes): Update.
644 2019-05-08 Tom Tromey <tom@tromey.com>
646 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
647 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
648 (_initialize_dwarf2_frame): Update.
650 2019-05-08 Tom Tromey <tom@tromey.com>
652 * objc-lang.c (objc_objfile_data): Change type.
653 (find_methods): Update.
654 (_initialize_objc_lang): Remove.
656 2019-05-08 Tom Tromey <tom@tromey.com>
658 * stabsread.c (rs6000_builtin_type_data): Change type.
659 (rs6000_builtin_type, _initialize_stabsread): Update.
661 2019-05-08 Tom Tromey <tom@tromey.com>
663 * mips-tdep.c (mips_pdr_data): Remove.
664 (_initialize_mips_tdep): Update.
666 2019-05-08 Tom Tromey <tom@tromey.com>
668 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
669 (hppa_init_objfile_priv_data, read_unwind_info)
670 (find_unwind_entry, _initialize_hppa_tdep): Update.
672 2019-05-08 Tom Tromey <tom@tromey.com>
674 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
675 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
677 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
679 2019-05-08 Tom Tromey <tom@tromey.com>
681 * mdebugread.c (basic_type_data): Change type.
682 (basic_type, _initialize_mdebugread): Update.
684 2019-05-08 Tom Tromey <tom@tromey.com>
686 * common/gdb_unique_ptr.h (struct noop_deleter): New.
688 2019-05-08 Tom Tromey <tom@tromey.com>
690 * nto-tdep.c (nto_inferior_data_reg): Change type.
691 (nto_inferior_data): Update.
692 (nto_inferior_data_cleanup, nto_new_inferior_data)
693 (_initialize_nto_tdep): Remove.
694 * nto-tdep.h (struct nto_inferior_data): Add initializers.
696 2019-05-08 Tom Tromey <tom@tromey.com>
698 * ada-lang.c (struct ada_inferior_data): Add initializers.
699 (ada_inferior_data): Change type.
700 (ada_inferior_data_cleanup): Remove.
701 (get_ada_inferior_data, ada_inferior_exit)
702 (struct ada_pspace_data): Add initializers, destructor.
703 (ada_pspace_data_handle): Change type.
704 (get_ada_pspace_data): Update.
705 (ada_pspace_data_cleanup): Remove.
707 2019-05-08 Tom Tromey <tom@tromey.com>
709 * coffread.c (struct coff_symfile_info): Add initializers.
710 (coff_objfile_data_key): Move lower. Change type.
711 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
713 (coff_free_info): Remove.
715 2019-05-08 Tom Tromey <tom@tromey.com>
717 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
718 (fbsd_pspace_data_handle): Move lower. Change type.
719 (get_fbsd_pspace_data): Update.
720 (fbsd_pspace_data_cleanup): Remove.
721 (_initialize_fbsd_tdep): Update.
723 2019-05-08 Tom Tromey <tom@tromey.com>
725 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
726 (get_ada_tasks_pspace_data): Update.
727 (ada_tasks_pspace_data_cleanup): Remove.
728 (_initialize_tasks): Update.
729 (ada_tasks_inferior_data_handle): Change type.
730 (get_ada_tasks_inferior_data): Update.
731 (ada_tasks_inferior_data_cleanup): Remove.
732 (struct ada_tasks_pspace_data): Add initializers.
734 2019-05-08 Tom Tromey <tom@tromey.com>
736 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
737 * symfile-debug.c (debug_sym_get_probes): Change type.
738 * stap-probe.c (handle_stap_probe):
739 (stap_static_probe_ops::get_probes): Change type.
740 * probe.h (class static_probe_ops) <get_probes>: Change type.
741 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
742 (parse_probes_in_pspace): Update.
743 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
745 (any_static_probe_ops::get_probes): Change type.
746 * elfread.c (elfread_data): New typedef.
747 (probe_key): Change type.
748 (elf_get_probes): Likewise. Update.
749 (probe_key_free): Remove.
750 (_initialize_elfread): Update.
751 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
753 (dtrace_process_dof_probe, dtrace_process_dof)
754 (dtrace_static_probe_ops::get_probe): Change type.
756 2019-05-08 Tom Tromey <tom@tromey.com>
758 * xcoffread.c (struct xcoff_symfile_info): Rename from
759 coff_symfile_info. Add initializers.
760 (xcoff_objfile_data_key): Move lower. Change type.
761 (XCOFF_DATA): Rewrite.
762 (xcoff_free_info): Remove.
763 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
764 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
765 (xcoff_initial_scan): Update.
767 2019-05-08 Tom Tromey <tom@tromey.com>
769 * solib-svr4.c (struct svr4_info): Add initializers and
771 <probes_table>: Now an htab_up.
772 (solib_svr4_pspace_data): Change type.
773 (free_probes_table): Simplify.
774 (~svr4_info): Rename from svr4_pspace_data_cleanup.
775 (get_svr4_info, probes_table_htab_remove_objfile_probes)
776 (probes_table_remove_objfile_probes, register_solib_event_probe)
777 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
778 (_initialize_svr4_solib): Update.
780 2019-05-08 Tom Tromey <tom@tromey.com>
782 * remote.c (remote_pspace_data): Change type.
783 (remote_pspace_data_cleanup): Remove.
784 (get_remote_exec_file, set_pspace_remote_exec_file)
785 (_initialize_remote): Update.
787 2019-05-08 Tom Tromey <tom@tromey.com>
789 * breakpoint.c (breakpoint_objfile_key): Change type.
790 (get_breakpoint_objfile_data): Update.
791 (free_breakpoint_objfile_data): Remove.
792 (_initialize_breakpoint): Update.
794 2019-05-08 Tom Tromey <tom@tromey.com>
796 * linux-tdep.c (struct linux_info): Add initializers.
797 (linux_inferior_data): Move. Change type.
798 (invalidate_linux_cache_inf): Update.
799 (linux_inferior_data_cleanup): Remove.
800 (get_linux_inferior_data, _initialize_linux_tdep): Update.
802 2019-05-08 Tom Tromey <tom@tromey.com>
804 * auxv.c (auxv_inferior_data): Move. Change type.
805 (auxv_inferior_data_cleanup): Remove.
806 (invalidate_auxv_cache_inf): Rewrite.
807 (get_auxv_inferior_data, _initialize_auxv): Update.
809 2019-05-08 Tom Tromey <tom@tromey.com>
811 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
812 (symfile_debug_objfile_data_key): Change type.
813 (symfile_debug_installed, debug_qf_has_symbols)
814 (debug_qf_find_last_source_symtab)
815 (debug_qf_forget_cached_source_info)
816 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
817 (debug_qf_print_stats, debug_qf_dump)
818 (debug_qf_expand_symtabs_for_function)
819 (debug_qf_expand_all_symtabs)
820 (debug_qf_expand_symtabs_with_fullname)
821 (debug_qf_map_matching_symbols)
822 (debug_qf_expand_symtabs_matching)
823 (debug_qf_find_pc_sect_compunit_symtab)
824 (debug_qf_map_symbol_filenames)
825 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
826 (debug_sym_new_init, debug_sym_init, debug_sym_read)
827 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
828 (debug_sym_read_linetable, debug_sym_relocate): Update.
829 (symfile_debug_free_objfile): Remove.
830 (install_symfile_debug_logging, _initialize_symfile_debug):
833 2019-05-08 Tom Tromey <tom@tromey.com>
835 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
837 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
838 (get_dwarf2_per_objfile): Update.
839 (set_dwarf2_per_objfile): Remove.
840 (dwarf2_has_info, dwarf2_get_section_info): Update.
841 (dwarf2_free_objfile): Remove.
842 (_initialize_dwarf2_read): Update.
844 2019-05-08 Tom Tromey <tom@tromey.com>
846 * auto-load.c (struct auto_load_pspace_info): Add destructor and
848 <unsupported_script_warning_printed,
849 script_not_found_warning_printed>: Now bool.
850 (auto_load_pspace_data): Change type.
851 (~auto_load_pspace_info): Rename from
852 auto_load_pspace_data_cleanup.
853 (get_auto_load_pspace_data, init_loaded_scripts_info)
854 (clear_section_scripts, maybe_print_unsupported_script_warning)
855 (maybe_print_script_not_found_warning, _initialize_auto_load):
858 2019-05-08 Tom Tromey <tom@tromey.com>
860 * objfiles.c (objfile_pspace_info): Add destructor and
862 (objfiles_pspace_data): Change type.
863 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
864 (get_objfile_pspace_data): Update.
865 (objfiles_bfd_data): Change type.
866 (get_objfile_bfd_data): Update.
867 (objfile_bfd_data_free, _initialize_objfiles): Remove.
869 2019-05-08 Tom Tromey <tom@tromey.com>
871 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
873 (get_catch_syscall_inferior_data): Update.
874 (catch_syscall_inferior_data_cleanup): Remove.
875 (_initialize_break_catch_syscall): Update.
877 2019-05-08 Tom Tromey <tom@tromey.com>
879 * inflow.c (struct terminal_info): Add destructor and
881 (inflow_inferior_data): Change type.
882 (~terminal_info): Rename from inflow_inferior_data_cleanup.
883 (get_inflow_inferior_data, inflow_inferior_exit)
884 (swap_terminal_info, _initialize_inflow): Update.
886 2019-05-08 Tom Tromey <tom@tromey.com>
888 * target-dcache.c (target_dcache_cleanup): Remove.
889 (target_dcache_aspace_key): Change type.
890 (target_dcache_init_p, target_dcache_invalidate)
891 (target_dcache_get, target_dcache_get_or_init)
892 (_initialize_target_dcache): Update.
893 * dcache.h (struct dcache_deleter): New.
895 2019-05-08 Tom Tromey <tom@tromey.com>
897 * symtab.c (struct symbol_cache): Add destructor and
899 (symbol_cache_key): Move. Change type.
900 (make_symbol_cache, free_symbol_cache): Remove.
901 (get_symbol_cache): Update.
902 (symbol_cache_cleanup): Remove.
903 (ALL_PSPACES, symbol_cache_flush)
904 (maintenance_print_symbol_cache)
905 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
908 2019-05-08 Tom Tromey <tom@tromey.com>
910 * symtab.c (struct main_info): Add destructor and initializers.
911 (main_progspace_key): Move. Change type.
912 (get_main_info): Update.
913 (main_info_cleanup): Remove.
914 (_initialize_symtab): Update.
916 2019-05-08 Tom Tromey <tom@tromey.com>
918 * registry.h (DECLARE_REGISTRY): Define the _key class.
920 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
922 * NEWS: Merge two 'New commands' sections.
924 2019-05-08 Joel Brobecker <brobecker@adacore.com>
926 * ada-valprint.c (ada_val_print_gnat_array): Remove language
927 parameter and use Ada language definition instead.
928 (ada_val_print_ptr): Remove unused language parameter.
929 (ada_val_print_num): Remove language parameter and use Ada language
931 (ada_val_print_enum, ada_val_print_flt): Remove unused language
933 (ada_val_print_struct_union, ada_val_print_ref): Remove language
934 parameter and use Ada language definition instead.
935 (ada_val_print_1): Update all ada_val_print_xxx calls.
936 Remove language parameter.
937 (ada_val_print): Update ada_val_print_1 call.
939 2019-05-08 Tom Tromey <tromey@adacore.com>
941 * remote.c (remote_hw_watchpoint_limit)
942 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
945 2019-05-08 Tom Tromey <tromey@adacore.com>
947 * maint.c (_initialize_maint_cmds): Move initialization code to
949 (watchdog, show_watchdog): Move to remote.c.
950 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
952 (_initialize_remote): Move initialization code from maint.c.
953 * defs.h (watchdog): Don't declare.
955 2019-05-08 Tom Tromey <tromey@adacore.com>
957 * tui/tui-interp.c: Include main.h.
958 * interps.c: Include main.h.
959 * main.h (interpreter_p): Declare.
960 * defs.h (interpreter_p): Don't declare.
962 2019-05-08 Tom Tromey <tromey@adacore.com>
964 * dwarf2loc.c: Include dwarf2read.h.
965 * defs.h (read_unsigned_leb128): Don't declare.
966 * dwarf2read.h (read_unsigned_leb128): Declare.
968 2019-05-08 Tom Tromey <tromey@adacore.com>
970 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
973 2019-05-08 Tom Tromey <tromey@adacore.com>
975 * utils.c (fputs_maybe_filtered): Reset style after paging, even
976 when no wrap column is set.
978 2019-05-08 Tom Tromey <tromey@adacore.com>
980 * c-lang.c (c_get_string): Handle non-C-style arrays.
982 2019-05-08 Tom Tromey <tromey@adacore.com>
984 * typeprint.c (print_offset_data::update): Print the bit offset,
985 not the number of bits remaining.
987 2019-05-08 Tom Tromey <tromey@adacore.com>
989 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
990 padding at end of comment.
992 2019-05-08 Tom Tromey <tromey@adacore.com>
994 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
997 2019-05-06 Tom Tromey <tom@tromey.com>
999 * common/scoped_mmap.c: Include common-defs.h.
1000 * common/scoped_mmap.h: Don't include config.h.
1002 2019-05-04 Tom Tromey <tom@tromey.com>
1004 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
1005 (struct aarch64_call_info): Add initializers.
1006 <si>: Now a std::vector.
1007 (pass_on_stack, aarch64_push_dummy_call): Update.
1009 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
1010 Tom Tromey <tom@tromey.com>
1012 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
1013 (ppc_threads): Now a std::vector. Now static.
1014 (hwdebug_find_thread_points_by_tid)
1015 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
1018 2019-05-04 Tom Tromey <tom@tromey.com>
1020 * arc-tdep.c (arc_tdesc_init): Return bool.
1022 2019-05-04 Tom Tromey <tom@tromey.com>
1024 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1025 Use gdb_assert_not_reached.
1027 2019-05-04 Tom Tromey <tom@tromey.com>
1029 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1032 2019-05-04 Tom Tromey <tom@tromey.com>
1034 * arc-tdep.c (arc_tdesc_init): Use bool.
1036 2019-05-04 Tom Tromey <tom@tromey.com>
1038 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1040 2019-05-04 Tom Tromey <tom@tromey.com>
1042 * cli/cli-cmds.c (valid_command_p): Return bool.
1044 2019-05-04 Tom Tromey <tom@tromey.com>
1046 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1047 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1049 2019-05-04 Raul Tambre <raul@tambre.ee>
1051 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1052 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1053 operator for comparison.
1055 2019-05-04 Tom Tromey <tom@tromey.com>
1057 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1058 (lookup_partial_symbol, print_partial_symbols)
1059 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1060 (psymbol_compare): Update.
1061 (add_psymbol_to_bcache): Clear the entire psymbol.
1062 (maintenance_check_psymtabs): Update.
1063 * psympriv.h (struct partial_symbol): Don't derive from
1064 general_symbol_info.
1065 <obj_section, unrelocated_address, address,
1066 set_unrelocated_address>: Update.
1067 <ginfo>: New member.
1068 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1069 (debug_names::write_psymbols): Update.
1071 2019-05-04 Tom de Vries <tdevries@suse.de>
1073 * contrib/cc-with-tweaks.sh: Support -n arg.
1075 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1077 * corelow.c (core_target::detach): Ensure frame cache and
1078 register caches are cleared.
1079 inferior.c (exit_inferior_1): Likewise.
1081 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1082 Tom Tromey <tom@tromey.com>
1084 * dictionary.c (collate_pending_symbols_by_language): Remove
1085 "struct" from foreach.
1086 * symtab.c (lookup_global_symbol_from_objfile)
1087 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1089 * ser-tcp.c (net_open): Remove "struct" from foreach.
1090 * objfiles.c (objfile_relocate, objfile_rebase)
1091 (objfile_has_symbols): Remove "struct" from foreach.
1092 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1094 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1096 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1097 "struct" from foreach.
1098 * ada-lang.c (create_excep_cond_exprs)
1099 (ada_exception_catchpoint_cond_string): Remove "struct" from
1102 2019-05-03 Tom Tromey <tromey@adacore.com>
1104 * ada-exp.y (convert_char_literal): Check suffix of each
1107 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1110 * ada-exp.y (yywrap): Don't define.
1111 * ada-lex.l (%option): Add noyywrap
1114 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1116 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1117 _WIN32_WINNT to the XP level, unless already defined to a higher
1120 * unittests/parse-connection-spec-selftests.c:
1122 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1125 * symfile.c (find_separate_debug_file): Remove colon from the
1126 drive spec of DOS/Windows file names of the target, so that the
1127 file name produced from DEBUGDIR and the target's directory will
1128 be valid on DOS/Windows systems.
1130 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1132 * rust-lang.c (val_print_struct): Handle printing structures
1135 2019-05-02 Tom Tromey <tromey@adacore.com>
1137 * valarith.c (_initialize_valarith): Remove.
1139 2019-05-01 Tom Tromey <tromey@adacore.com>
1141 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1144 2019-05-01 Tom Tromey <tromey@adacore.com>
1146 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1147 for big-endian copies.
1149 2019-04-30 Ali Tamur <tamur@google.com>
1150 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1151 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1152 (read_3_bytes): New function.
1154 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1156 * windows-nat.c (main_thread_id): Delete.
1157 (handle_output_debug_string): Replace main_thread_id by
1158 current_event.dwThreadId.
1159 (fake_create_process): Likewise.
1160 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1161 Do not set main_thread_id.
1162 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1163 current_event.dwThreadId.
1164 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1166 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1168 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1169 Use current_event.dwThreadId instead of main_thread_id.
1171 2019-04-30 Tom Tromey <tromey@adacore.com>
1173 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1174 (create_excep_cond_exprs): Iterate over program spaces.
1175 (ada_exception_catchpoint_cond_string): Examine all minimal
1176 symbols for exception types.
1178 2019-04-30 Tom Tromey <tromey@adacore.com>
1181 * dwarf2read.c (process_structure_scope): Handle case where type
1182 has template parameters but no symbol was created.
1184 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1185 Chris January <chris.january@arm.com>
1187 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1189 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1191 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1193 * f-typeprint.c (f_print_type): Update rules for printing
1195 (f_type_print_varspec_suffix): Likewise.
1197 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1198 Chris January <chris.january@arm.com>
1200 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1203 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1205 * f-lang.c (build_fortran_types): Change name of void type to
1207 * f-typeprint.c (f_type_print_base): Print the name of the void
1208 type, rather than a fixed string.
1209 * f-valprint.c (f_decorations): Use lower case void string.
1211 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1212 Chris January <chris.january@arm.com>
1214 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1217 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1218 Chris January <chris.january@arm.com>
1219 David Lecomber <david.lecomber@arm.com>
1221 * f-exp.y (BINOP_INTRINSIC): New token.
1222 (exp): New parser rule handling BINOP_INTRINSIC.
1223 (f77_keywords): Add new builtin procedures.
1224 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1225 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1226 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1227 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1228 (print_unop_subexp_f): New function.
1229 (print_binop_subexp_f): New function.
1230 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1231 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1232 (dump_subexp_body_f): Likewise.
1233 (operator_check_f): Likewise.
1234 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1235 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1237 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1239 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1241 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1242 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1243 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1244 (operator_length_f): New fuction.
1245 (print_subexp_f): New function.
1246 (op_name_f): New function.
1247 (dump_subexp_body_f): New function.
1248 (operator_check_f): New function.
1249 (exp_descriptor_f): Replace standard expression handling functions
1251 * gdb/fortran-operator.def: New file.
1252 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1253 * gdb/std-operator.def: Remove UNOP_KIND.
1255 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1257 * std-operator.def: Remove unbalanced, stray double quote
1260 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1261 Chris January <chris.january@arm.com>
1262 Daniel Everett <daniel.everett@arm.com>
1263 Nick Forrington <nick.forrington@arm.com>
1264 Richard Bunt <richard.bunt@arm.com>
1266 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1267 of depth when printing anonymous structs or unions.
1268 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1269 Don't print either the top-level value, or the children if the
1270 max-depth is exceeded.
1271 (ppscm_print_children): When printing the key of a map, allow one
1272 extra level of depth.
1273 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1274 print either the top-level value, or the children if the max-depth
1276 (print_children): When printing the key of a map, allow one extra
1278 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1279 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1280 (user_print_options): Initialise max_depth field.
1281 (val_print_scalar_or_string_type_p): New function.
1282 (val_print): Check to see if the max depth has been reached.
1283 (val_print_check_max_depth): Define new function.
1284 (show_print_max_depth): New function.
1285 (_initialize_valprint): Add 'print max-depth' option.
1286 * valprint.h (struct value_print_options) <max_depth>: New field.
1287 (val_print_check_max_depth): Declare new function.
1288 * NEWS: Document new feature.
1290 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1292 * ada-lang.c (ada_language_defn): Initialise new field.
1293 * c-lang.c (c_is_string_type_p): New function.
1294 (c_language_defn): Initialise new field.
1295 (cplus_language_defn): Initialise new field.
1296 (asm_language_defn): Initialise new field.
1297 (minimal_language_defn): Initialise new field.
1298 * c-lang.h (c_is_string_type_p): Declare new function.
1299 * d-lang.c (d_language_defn): Initialise new field.
1300 * f-lang.c (f_is_string_type_p): New function.
1301 (f_language_defn): Initialise new field.
1302 * go-lang.c (go_is_string_type_p): New function.
1303 (go_language_defn): Initialise new field.
1304 * language.c (default_is_string_type_p): New function.
1305 (unknown_language_defn): Initialise new field.
1306 (auto_language_defn): Initialise new field.
1307 * language.h (struct language_defn) <la_is_string_type_p>: New
1309 (default_is_string_type_p): Declare new function.
1310 * m2-lang.c (m2_language_defn): Initialise new field.
1311 * objc-lang.c (objc_language_defn): Initialise new field.
1312 * opencl-lang.c (opencl_language_defn): Initialise new field.
1313 * p-lang.c (pascal_is_string_type_p): New function.
1314 (pascal_language_defn): Initialise new field.
1315 * rust-lang.c (rust_is_string_type_p): New function.
1316 (rust_language_defn): Initialise new field.
1318 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1320 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1322 * ada-lang.c (ada_language_defn): Initialise new field.
1323 * c-lang.c (c_language_defn): Likewise.
1324 (cplus_language_defn): Likewise.
1325 (asm_language_defn): Likewise.
1326 (minimal_language_defn): Likewise.
1327 * d-lang.c (d_language_defn): Likewise.
1328 * f-lang.c (f_language_defn): Likewise.
1329 * go-lang.c (go_language_defn): Likewise.
1330 * language.c (unknown_language_defn): Likewise.
1331 (auto_language_defn): Likewise.
1332 * m2-lang.c (m2_language_defn): Likewise.
1333 * objc-lang.c (objc_language_defn): Likewise.
1334 * opencl-lang.c (opencl_language_defn): Likewise.
1335 * p-lang.c (pascal_language_defn): Likewise.
1336 * rust-lang.c (rust_language_defn): Likewise.
1338 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1340 * ada-lang.c (ada_is_character_type): Change return type to bool.
1341 (ada_is_string_type): Likewise.
1342 * ada-lang.h (ada_is_character_type): Update declaration
1343 (ada_is_string_type): Likewise.
1345 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1347 Support style in 'frame|thread apply'
1349 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1350 * record.c (record_start, record_stop): Update callers of
1351 execute_command_to_string with false.
1352 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1353 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1355 (class string_file): New constructor with term_out parameter.
1356 Override methods term_out and can_emit_style_escape. New member
1358 (class stdio_file): Override can_emit_style_escape.
1359 (class tee_file): Override term_out and can_emit_style_escape.
1360 * utils.h (can_emit_style_escape): Remove.
1361 * utils.c (can_emit_style_escape): Likewise.
1362 Update all callers of can_emit_style_escape (SOMESTREAM) to
1363 SOMESTREAM->can_emit_style_escape.
1364 * source-cache.c (source_cache::get_source_lines): Likewise.
1365 * stack.c (frame_apply_command_count): Call execute_command_to_string
1366 passing the term_out characteristic of the current gdb_stdout.
1367 * thread.c (thr_try_catch_cmd): Likewise.
1368 * top.c (execute_command_to_string): pass term_out parameter
1369 to construct the string_file for the command output.
1370 * ui-file.c (term_cli_styling): New function (most code moved
1371 from utils.c can_emit_style_escape).
1372 (string_file::string_file, string_file::can_emit_style_escape,
1373 stdio_file::can_emit_style_escape, tee_file::term_out,
1374 tee_file::can_emit_style_escape): New functions.
1376 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1378 * NEWS: Mention the new set|show may-call-functions.
1379 * infcall.c (may_call_functions_p): New variable.
1380 (show_may_call_functions_p): New function.
1381 (call_function_by_hand_dummy): Throws an error if not
1383 (_initialize_infcall): Call add_setshow_boolean_cmd for
1386 2019-04-25 Keith Seitz <keiths@redhat.com>
1389 * cp-support.c (inspect_type): Don't attempt substitutions
1390 of symbol with the same name.
1392 2019-04-25 Tom Tromey <tromey@adacore.com>
1395 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1398 2019-04-25 Tom Tromey <tromey@adacore.com>
1400 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1402 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1403 (gdb_xml_parser::parse): Use std::move.
1404 * python/python-internal.h (gdbpy_convert_exception): Take a const
1406 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1408 * python/py-utils.c (gdbpy_convert_exception): Take a const
1410 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1412 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1414 * mi/mi-main.c (mi_print_exception): Take a const reference.
1415 * main.c (handle_command_errors): Take a const reference.
1416 * linespec.c (parse_linespec): Use std::move.
1417 * infcall.c (run_inferior_call): Use std::move.
1418 (call_function_by_hand_dummy): Use std::move.
1419 * exec.c (try_open_exec_file): Use std::move.
1420 * exceptions.h (exception_print, exception_fprintf)
1421 (exception_print_same): Update.
1422 * exceptions.c (print_exception, exception_print)
1423 (exception_fprintf, exception_print_same): Change parameters to
1425 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1426 * common/new-op.c: Use std::move.
1427 * common/common-exceptions.h (struct gdb_exception): Add move
1429 (struct gdb_exception_error, struct gdb_exception_quit, struct
1430 gdb_quit_bad_alloc): Change constructor to move constructor.
1431 (throw_exception): Change parameter to rvalue reference.
1432 * common/common-exceptions.c (throw_exception): Take rvalue
1434 * cli/cli-interp.c (safe_execute_command): Use std::move.
1435 * breakpoint.c (insert_bp_location, location_to_sals): Use
1438 2019-04-25 Tom Tromey <tromey@adacore.com>
1440 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1441 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1442 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1443 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1444 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1445 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1446 guile/scm-value.c: Use unpack.
1447 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1448 gdbscm_gdb_exception.
1449 (gdbscm_throw_gdb_exception): Likewise.
1450 (struct gdbscm_gdb_exception): New.
1451 (unpack): New function.
1452 (gdbscm_wrap): Use unpack.
1454 2019-04-25 Tom Tromey <tromey@adacore.com>
1456 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1457 (gdb_rl_callback_handler): Use std::move.
1458 * common/common-exceptions.h (struct gdb_exception): Add move
1459 assignment operator.
1460 (throw_exception_sjlj): Change "exception" to const reference.
1461 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1462 (throw_exception_sjlj): Change "exception" to const reference.
1464 2019-04-25 Tom Tromey <tromey@adacore.com>
1466 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1467 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1468 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1470 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1472 * mi/mi-interp.c (mi_interp::exec): Update.
1473 * linespec.c (parse_linespec): Update.
1474 * infcall.c (run_inferior_call): Update.
1475 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1476 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1477 (gdbscm_lookup_global_symbol): Update.
1478 * guile/scm-param.c (gdbscm_parameter_value): Update.
1479 * guile/scm-frame.c (gdbscm_frame_read_register)
1480 (gdbscm_frame_read_var): Update.
1481 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1482 * exec.c (try_open_exec_file): Update.
1483 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1484 (gdb_rl_callback_handler): Update.
1485 * common/common-exceptions.h (exception_none): Don't declare.
1486 * common/common-exceptions.c (exception_none): Don't define.
1487 (struct catcher) <exception>: Update.
1488 * cli/cli-interp.c (safe_execute_command): Update.
1489 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1491 2019-04-25 Ali Tamur <tamur@google.com>
1493 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1494 (read_attribute_value): Likewise.
1495 (dwarf2_read_addr_index): Update comment.
1496 (read_str_index): Add DW_FORM_strx.
1497 (dwarf2_string_attr): Likewise.
1498 (dwarf2_const_value_attr): Likewise.
1499 (dump_die_shallow): Likewise.
1500 (dwarf2_fetch_constant_bytes): Likewise.
1501 (skip_form_bytes): Likewise.
1502 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1504 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1508 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1509 OFFSET. Verify if current mapping contains an ELF header.
1510 (linux_find_memory_regions_full): Adjust call to
1513 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1514 Kang Li <kanglictf@gmail.com>
1518 * dwarf2-frame.c (read_initial_length): Be consistent about using
1519 unsigned representation of length.
1520 (decode_frame_entry_1): Likewise. Check for wraparound of
1521 end pointer as well as buffer overflow.
1523 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1525 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1528 2019-04-24 Tom Tromey <tromey@adacore.com>
1530 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1532 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1534 * s12z-tdep.c (s12z_unwind_pc): Delete.
1535 (s12z_unwind_sp): Delete.
1536 (s12z_gdbarch_init): Don't register deleted functions with
1539 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1541 * rl78-tdep.c (rl78_unwind_sp): Delete.
1542 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1544 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1546 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1547 (xstormy16_unwind_pc): Delete.
1548 (xstormy16_dummy_id): Delete.
1549 (xstormy16_gdbarch_init): Don't register deleted functions with
1552 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1554 * vax-tdep.c (vax_unwind_pc): Delete.
1555 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1557 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1559 * v850-tdep.c (v850_unwind_sp): Delete.
1560 (v850_unwind_pc): Delete.
1561 (v850_dummy_id): Delete.
1562 (v850_gdbarch_init): Don't register deleted functions with
1565 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1567 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1568 (tilegx_unwind_pc): Delete.
1569 (tilegx_unwind_dummy_id): Delete.
1570 (tilegx_gdbarch_init): Don't register deleted functions with
1573 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1575 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1576 (tic6x_dummy_id): Delete.
1577 (tic6x_gdbarch_init): Don't register deleted functions with
1580 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1582 * sparc-tdep.c (sparc_unwind_pc): Delete.
1583 (sparc32_gdbarch_init): Don't register deleted function with
1586 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1588 * sh-tdep.c (sh_unwind_sp): Delete.
1589 (sh_unwind_pc): Delete.
1590 (sh_dummy_id): Delete.
1591 (sh_gdbarch_init): Don't register deleted functions with
1594 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1596 * score-tdep.c (score_unwind_sp): Delete.
1597 (score_unwind_pc): Delete.
1598 (score_dummy_id): Delete.
1599 (score_gdbarch_init): Don't register deleted functions with
1602 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1604 * rx-tdep.c (rx_unwind_pc): Delete.
1605 (rx_unwind_sp): Delete.
1606 (rx_dummy_id): Delete.
1607 (rx_gdbarch_init): Don't register deleted functions with
1608 gdbarch. Update comment.
1610 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1612 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1613 (rs6000_dummy_id): Delete.
1614 (rs6000_gdbarch_init): Don't register deleted functions with
1617 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1619 * or1k-tdep.c (or1k_dummy_id): Delete.
1620 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1622 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1624 * nios2-tdep.c (nios2_dummy_id): Delete.
1625 (nios2_unwind_sp): Delete.
1626 (nios2_gdbarch_init): Don't register deleted functions with
1629 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1631 * nds32-tdep.c (nds32_dummy_id): Delete.
1632 (nds32_unwind_pc): Delete.
1633 (nds32_unwind_sp): Delete.
1634 (nds32_gdbarch_init): Don't register deleted functions with
1637 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1639 * msp430-tdep.c (msp430_unwind_pc): Delete.
1640 (msp430_unwind_sp): Delete.
1641 (msp430_dummy_id): Delete.
1642 (msp430_gdbarch_init): Don't register deleted functions with
1645 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1647 * moxie-tdep.c (moxie_unwind_sp): Delete.
1648 (moxie_unwind_pc): Delete.
1649 (moxie_dummy_id): Delete.
1650 (moxie_gdbarch_init): Don't register deleted functions with
1653 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1655 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1656 (mn10300_unwind_pc): Delete.
1657 (mn10300_unwind_sp): Delete.
1658 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1660 (mn10300_frame_unwind_init): Don't register deleted functions with
1663 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1665 * mep-tdep.c (mep_unwind_pc): Delete.
1666 (mep_unwind_sp): Delete.
1667 (mep_dummy_id): Delete.
1668 (mep_gdbarch_init): Don't register deleted functions with
1671 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1673 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1674 (m68hc11_unwind_sp): Delete.
1675 (m68hc11_gdbarch_init): Don't register deleted functions with
1678 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1680 * m32r-tdep.c (m32r_unwind_sp): Delete.
1681 (m32r_unwind_pc): Delete.
1682 (m32r_dummy_id): Delete.
1683 (m32r_gdbarch_init): Don't register deleted functions with
1686 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1688 * m32c-tdep.c (m32c_unwind_pc): Delete.
1689 (m32c_unwind_sp): Delete.
1690 (m32c_dummy_id): Delete.
1691 (m32c_gdbarch_init): Don't register deleted functions with
1694 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1696 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1697 (lm32_unwind_pc): Delete.
1698 (lm32_dummy_id): Delete.
1699 (lm32_gdbarch_init): Don't register deleted functions with
1702 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1704 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1705 (iq2000_unwind_pc): Delete.
1706 (iq2000_dummy_id): Delete.
1707 (iq2000_gdbarch_init): Don't register deleted functions with
1710 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1712 * nds32-tdep.c (nds32_type_align): Delete.
1713 (nds32_push_dummy_call): Use type_align instead.
1715 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1717 * arm-tdep.c (arm_type_align): Only handle vector override case.
1718 (arm_push_dummy_call): Use type_align.
1719 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1721 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1723 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1725 (pass_on_stack): Use type_align.
1726 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1729 2019-04-23 Tom Tromey <tromey@adacore.com>
1731 * dwarf2read.c (line_header::file_name_at): Remove unused
1734 2019-04-23 Tom de Vries <tdevries@suse.de>
1737 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1741 2019-03-27 Ali Tamur <tamur@google.com>
1743 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1744 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1745 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1746 (dwarf_expr_context::get_addr_index): Likewise
1747 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1748 (symbol_needs_eval_context::get_addr_index): Likewise
1749 (disassemble_dwarf_expression): Add DW_OP_addrx
1750 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1751 (read_cutu_die_from_dwo): Update comment
1752 (skip_one_die): Add DW_FORM_addrx
1753 (read_attribute_value): Likewise
1754 (var_decode_location): Add DW_OP_addrx
1755 (dwarf2_const_value_attr): Add DW_FORM_addrx
1756 (dump_die_shallow): Likewise
1757 (dwarf2_fetch_constant_bytes): Likewise
1758 (decode_locdesc): Add DW_OP_addrx
1759 (skip_form_bytes): Add DW_FORM_addrx
1761 2019-04-22 Ali Tamur <tamur@google.com>
1763 * MAINTAINERS (Write After Approval): Add self.
1765 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1767 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1768 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1769 (open_symbol_file_object): Likewise.
1770 (svr4_default_sos): Add info parameter.
1771 (svr4_read_so_list): Likewise.
1772 (svr4_current_sos_direct): Adjust functions calls to pass down
1774 (svr4_current_sos_1): Add info parameter.
1775 (svr4_current_sos): Call get_svr4_info, pass info down to
1777 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1779 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1781 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1783 (probes_table_remove_objfile_probes): Likewise.
1784 (register_solib_event_probe): Add info parameter.
1785 (solist_update_incremental): Pass info parameter down to
1787 (disable_probes_interface): Add info parameter.
1788 (svr4_handle_solib_event): Pass current_program_space to
1789 get_svr4_info. Adjust disable_probes_interface cleanup.
1790 (svr4_create_probe_breakpoints): Add info parameter, pass it
1791 down to register_solib_event_probe.
1792 (svr4_create_solib_event_breakpoints): Add info parameter,
1793 pass it down to svr4_create_probe_breakpoints.
1794 (enable_break): Pass info down to
1795 svr4_create_solib_event_breakpoints.
1796 (svr4_solib_create_inferior_hook): Pass current_program_space to
1798 (svr4_clear_solib): Likewise.
1800 2019-04-22 Pedro Alves <palves@redhat.com>
1802 * solib-svr4.c (svr4_free_objfile_observer): New.
1803 (probe_and_action::objfile): New field.
1804 (probes_table_htab_remove_objfile_probes)
1805 (probes_table_remove_objfile_probes): New functions.
1806 (register_solib_event_probe): Add 'objfile' parameter. Store it
1807 in the new probe_and_action. Don't store the probe in 'lookup'.
1808 (svr4_create_probe_breakpoints): Pass objfile to
1809 register_solib_event_probe.
1810 (_initialize_svr4_solib): Register a free_objfile observer.
1812 2019-04-19 Tom Tromey <tom@tromey.com>
1814 * common/queue.h: Remove.
1816 2019-04-19 Tom Tromey <tom@tromey.com>
1818 * event-loop.c: Don't include "common/queue.h".
1820 2019-04-19 Tom Tromey <tom@tromey.com>
1822 * remote.c (remote_target): Use delete.
1823 * remote-notif.h: Include <list>, not "common/queue.h".
1824 (notif_client_p): Remove typedef.
1825 (remote_notif_state): Add constructor, destructor, initializer.
1826 <notif_queue>: Now a std::list.
1827 (remote_notif_state_xfree): Don't declare.
1828 * remote-notif.c (remote_notif_process, handle_notification)
1829 (remote_notif_state_allocate): Update.
1830 (~remote_notif_state): Rename from remote_notif_state_xfree.
1832 2019-04-19 Tom Tromey <tom@tromey.com>
1834 * symfile.c (reread_symbols): Update.
1835 * objfiles.c (objfile_register_static_link)
1836 (objfile_lookup_static_link): Update
1837 (~objfile) Don't delete static_links.
1838 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1840 2019-04-19 Tom Tromey <tom@tromey.com>
1842 * type-stack.h (struct type_stack) <insert>: Constify string.
1843 * type-stack.c (type_stack::insert): Constify string.
1844 * gdbtypes.h (lookup_template_type): Update.
1845 (address_space_name_to_int): Update.
1846 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1848 (lookup_template_type): Make name const.
1849 * c-exp.y: Update rules.
1850 (lex_one_token, classify_name, classify_inner_name)
1851 (c_print_token): Update.
1852 * p-exp.y: Update rules.
1854 * f-exp.y: Update rules.
1856 * d-exp.y: Update rules.
1857 (lex_one_token, classify_name, classify_inner_name): Update.
1858 * parse.c (write_dollar_variable, copy_name): Return std::string.
1859 * parser-defs.h (copy_name): Change return type.
1860 * m2-exp.y: Update rules.
1862 * go-exp.y (lex_one_token): Update.
1864 (classify_unsafe_function, classify_packaged_name)
1865 (classify_name, yylex): Update.
1867 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1869 * configure.ac: add --enable-source-highlight switch.
1870 * configure: Regenerate.
1871 * top.c (print_gdb_version): plumb --enable-source-highlight
1872 status to "show configuration".
1874 2019-04-19 Tom Tromey <tromey@adacore.com>
1876 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1878 (empty_record, ada_template_to_fixed_record_type_1)
1879 (template_to_static_fixed_type)
1880 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1881 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1882 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1885 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1888 * source.c (print_source_lines_base): Advance "iter" when a
1889 control character is seen.
1891 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1893 * inferior.h (struct infcall_suspend_state_deleter):
1894 Catch exception in destructor to avoid crash.
1896 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1898 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1899 close to the add_com "shell".
1901 2019-04-18 Tom Tromey <tromey@adacore.com>
1903 * process-stratum-target.h (class process_stratum_target)
1904 <stratum>: Add "final".
1906 2019-04-17 Tom Tromey <tromey@adacore.com>
1908 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1909 against nullptr before use.
1911 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1913 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1915 2019-04-17 Jim Wilson <jimw@sifive.com>
1916 Andrew Burgess <andrew.burgess@embecosm.com>
1918 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1919 code read might fail, assume 4-byte breakpoint in that case.
1921 2019-04-15 Leszek Swirski <leszeks@google.com>
1923 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1924 rather than a hand-rolled POD check when checking for forced MEMORY
1927 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1929 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1930 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1932 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1933 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1934 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1937 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1939 * aarch64-linux-nat.c
1940 (aarch64_linux_nat_target::thread_architecture): Add override.
1941 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1944 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1946 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1948 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1950 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1951 target types of size 96-bits, add some additional comments, and
1952 check that the builtin type we found was the correct size.
1954 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1956 * utils.c (prompt_for_continue): Don't restore the styling at the
1957 end, as applied_style has the wrong value. This fixes styling in
1958 long lists of file names that are interrupted by the "Continue?"
1961 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1963 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1964 * c-lang.c (c_language_defn): Likewise.
1965 (cplus_language_defn): Likewise.
1966 (asm_language_defn): Likewise.
1967 (minimal_language_defn): Likewise.
1968 * d-lang.c (d_language_defn): Likewise.
1969 * f-lang.c (f_language_defn): Likewise.
1970 * go-lang.c (go_language_defn): Likewise.
1971 * language.c (unknown_language_defn): Likewise.
1972 (auto_language_defn): Likewise.
1973 * language.h (struct language_defn): Remove la_magic field.
1974 (LANG_MAGIC): Delete.
1975 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1976 * objc-lang.c (objc_language_defn): Likewise.
1977 * opencl-lang.c (opencl_language_defn): Likewise.
1978 * p-lang.c (pascal_language_defn): Likewise.
1979 * rust-lang.c (rust_language_defn): Likewise.
1981 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1983 * riscv-tdep.c (riscv_type_align): New function.
1984 (riscv_type_alignment): Delete.
1985 (riscv_arg_location): Use 'type_align'.
1986 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1988 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1990 * gdbtypes.c (type_align): A struct with no non-static fields also
1993 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1995 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1997 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1999 (riscv_struct_info::analyse): New implementation using new
2000 analyse_inner member function.
2001 (riscv_struct_info::field_offset): New member function.
2002 (riscv_struct_info::m_offsets): New member variable.
2003 (riscv_struct_info::analyse_inner): New private member function,
2004 takes the old implementation of riscv_struct_info::analyse but
2005 extended to track field offsets.
2006 (riscv_call_arg_struct): Update the struct folding special cases
2007 to handle cases where empty C++ structs, which are non-zero
2009 (riscv_arg_location): Initialise the length of each location, a
2010 non-zero length now indicates the location is in use.
2011 (riscv_push_dummy_call): Allow for the first location having a
2012 non-zero offset when setting up arguments.
2013 (riscv_return_value): Likewise, but for return values.
2015 2019-04-11 Tom Tromey <tromey@adacore.com>
2017 * utils.c (internal_vproblem): Make "msg" const.
2019 2019-04-11 Alan Hayward <alan.hayward@arm.com>
2021 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2022 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2023 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2024 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2026 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2028 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2030 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2031 of amd64_collect_native_gregset.
2032 (amd64_linux_nat_target::store_registers): Likewise.
2034 2019-04-10 Tom Tromey <tom@tromey.com>
2036 * symtab.c (lookup_global_symbol_from_objfile)
2037 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2038 * objfiles.h (class separate_debug_iterator): New.
2039 (class separate_debug_range): New.
2040 (struct objfile) <separate_debug_objfiles>: New method.
2041 (objfile_separate_debug_iterate): Don't declare.
2042 * objfiles.c (separate_debug_iterator::operator++): Rename from
2043 objfile_separate_debug_iterate.
2044 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2046 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2049 2019-04-10 Tom Tromey <tom@tromey.com>
2051 * symfile.c (reread_symbols): Remove old comment.
2052 * objfiles.c (free_all_objfiles): Fix a typo.
2054 2019-04-10 Tom Tromey <tom@tromey.com>
2056 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2057 * minsyms.c (lookup_minimal_symbol): Use foreach.
2058 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2059 (lookup_minimal_symbol_solib_trampoline): Likewise.
2060 * symfile.c (reread_symbols): Use foreach.
2062 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2063 Tom Tromey <tromey@adacore.com>
2066 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2067 (rust_lex_int_test): Change "value" to be LONGEST.
2068 (rust_lex_tests): Add test for long integer literal.
2070 2019-04-09 Tom Tromey <tromey@adacore.com>
2072 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2074 (extended_remote_target::attach): Update.
2075 (remote_target::remote_notice_new_inferior): Update.
2076 (remote_target::add_current_inferior_and_thread): Update.
2077 * inferior.c (exit_inferior_1): Use "false".
2078 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2080 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2082 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2083 the "start" command.
2085 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2087 * python/py-inferior.c (infpy_thread_from_thread_handle):
2088 Adjust comments to reflect renaming of thread_from_thread_handle
2089 to thread_from_handle. Adjust keywords. Fix type error message.
2090 (inferior_object_methods): Add thread_from_handle. Retain
2091 thread_from_thread_handle, but mark it as deprecated.
2093 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2095 * gdbthread.h (find_thread_by_handle): Revise declaration.
2096 * thread.c (find_thread_by_handle): Likewise. Adjust
2098 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2099 support for buffer objects as handles.
2101 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2103 * python/py-infthread.c (thpy_thread_handle): New function.
2104 (thread_object_methods): Register thpy_thread_handle.
2106 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2108 * gdbthread.h (thread_to_thread_handle): Declare.
2109 * thread.c (gdbtypes.h): Include.
2110 (thread_to_thread_handle): New function.
2112 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2113 (target_thread_info_to_thread_handle): Declare.
2114 * target.c (target_thread_info_to_thread_handle): New function.
2115 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2116 * target-delegates.c: Regenerate.
2118 * linux-thread-db.c (class thread_db_target): Add method
2119 thread_info_to_thread_handle.
2120 (thread_db_target::thread_info_to_thread_handle): Define.
2121 * remote.c (class remote_target): Add new method
2122 thread_info_to_thread_handle.
2123 (remote_target::thread_info_to_thread_handle): Define.
2125 2019-04-08 Pedro Alves <palves@redhat.com>
2127 * common/common-exceptions.c (throw_exception): Don't create
2128 named object to throw; throw directly.
2129 (throw_it): Likewise. Don't initialize gdb_exception::message
2130 here, with new; pass FMT and AP to the ctor instead.
2131 * common/common-exceptions.h: Include <string>.
2132 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2133 const char *, va_list)): New ctor. Use std::make_shared.
2134 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2136 (gdb_exception_error::gdb_exception_error(enum errors, const char
2138 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2140 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2142 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2143 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2146 2019-04-08 Tom Tromey <tom@tromey.com>
2148 * valops.c (value_rtti_indirect_type): Replace throw_exception
2150 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2152 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2154 * target.c (target_translate_tls_address): Replace throw_exception
2156 * stack.c (frame_apply_command_count): Replace throw_exception
2158 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2160 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2162 * rs6000-tdep.c (rs6000_frame_cache)
2163 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2164 * remote.c: Replace throw_exception with throw.
2165 * record-full.c (record_full_message, record_full_wait_1)
2166 (record_full_restore): Replace throw_exception with throw.
2168 (get_thread_current_frame_id, record_btrace_start_replaying)
2169 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2170 (cmd_record_btrace_start): Replace throw_exception with throw.
2171 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2173 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2174 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2176 (find_linespec_symbols): Replace throw_exception with throw.
2177 * infrun.c (displaced_step_prepare, resume): Replace
2178 throw_exception with throw.
2179 * infcmd.c (post_create_inferior): Replace throw_exception with
2181 * inf-loop.c (inferior_event_handler): Replace throw_exception
2183 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2184 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2185 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2186 (get_prev_frame_always, get_frame_pc_if_available)
2187 (get_frame_address_in_block_if_available, get_frame_language):
2188 Replace throw_exception with throw.
2189 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2190 throw_exception with throw.
2191 * eval.c (fetch_subexp_value, evaluate_var_value)
2192 (evaluate_funcall, evaluate_subexp_standard): Replace
2193 throw_exception with throw.
2194 * dwarf2loc.c (call_site_find_chain)
2195 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2196 Replace throw_exception with throw.
2197 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2199 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2201 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2202 * completer.c (complete_line_internal): Replace throw_exception
2204 * compile/compile-object-run.c (compile_object_run): Replace
2205 throw_exception with throw.
2206 * cli/cli-script.c (process_next_line): Replace throw_exception
2208 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2209 (btrace_enable, btrace_maint_update_pt_packets): Replace
2210 throw_exception with throw.
2211 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2212 throw_exception with throw.
2213 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2214 throw_exception with throw.
2215 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2216 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2217 * aarch64-tdep.c (aarch64_make_prologue_cache)
2218 (aarch64_make_stub_cache): Replace throw_exception with throw.
2220 2019-04-08 Tom Tromey <tom@tromey.com>
2222 * common/common-exceptions.c (throw_exception): Rename from
2223 throw_exception_cxx. Remove old copy. Make argument const.
2224 (throw_it): Create and throw exception objects directly.
2225 * common/common-exceptions.h (throw_exception): Make argument
2227 (struct gdb_exception_error): Add constructor.
2228 (struct gdb_exception_quit): Add constructor.
2230 2019-04-08 Tom Tromey <tom@tromey.com>
2232 * common/common-exceptions.h (exception_rethrow): Don't declare.
2233 (TRY_SJLJ): Update comment.
2234 (TRY, CATCH, END_CATCH): Remove.
2235 * common/common-exceptions.c (exception_rethrow): Remove.
2237 2019-04-08 Tom Tromey <tom@tromey.com>
2239 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2241 (gdb_exception_error): Rename from
2242 gdb_exception_RETURN_MASK_ERROR.
2243 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2244 (gdb_quit_bad_alloc): Update.
2245 * aarch64-tdep.c: Update.
2246 * ada-lang.c: Update.
2247 * ada-typeprint.c: Update.
2248 * ada-valprint.c: Update.
2249 * amd64-tdep.c: Update.
2250 * arch-utils.c: Update.
2251 * break-catch-throw.c: Update.
2252 * breakpoint.c: Update.
2254 * c-varobj.c: Update.
2255 * cli/cli-cmds.c: Update.
2256 * cli/cli-interp.c: Update.
2257 * cli/cli-script.c: Update.
2258 * common/common-exceptions.c: Update.
2259 * common/new-op.c: Update.
2260 * common/selftest.c: Update.
2261 * compile/compile-c-symbols.c: Update.
2262 * compile/compile-cplus-symbols.c: Update.
2263 * compile/compile-object-load.c: Update.
2264 * compile/compile-object-run.c: Update.
2265 * completer.c: Update.
2266 * corelow.c: Update.
2268 * cp-support.c: Update.
2269 * cp-valprint.c: Update.
2270 * darwin-nat.c: Update.
2271 * disasm-selftests.c: Update.
2272 * dtrace-probe.c: Update.
2273 * dwarf-index-cache.c: Update.
2274 * dwarf-index-write.c: Update.
2275 * dwarf2-frame-tailcall.c: Update.
2276 * dwarf2-frame.c: Update.
2277 * dwarf2loc.c: Update.
2278 * dwarf2read.c: Update.
2280 * event-loop.c: Update.
2281 * event-top.c: Update.
2283 * f-valprint.c: Update.
2284 * fbsd-tdep.c: Update.
2285 * frame-unwind.c: Update.
2287 * gdbtypes.c: Update.
2288 * gnu-v3-abi.c: Update.
2289 * guile/guile-internal.h: Update.
2290 * guile/scm-block.c: Update.
2291 * guile/scm-breakpoint.c: Update.
2292 * guile/scm-cmd.c: Update.
2293 * guile/scm-disasm.c: Update.
2294 * guile/scm-frame.c: Update.
2295 * guile/scm-lazy-string.c: Update.
2296 * guile/scm-math.c: Update.
2297 * guile/scm-param.c: Update.
2298 * guile/scm-ports.c: Update.
2299 * guile/scm-pretty-print.c: Update.
2300 * guile/scm-symbol.c: Update.
2301 * guile/scm-symtab.c: Update.
2302 * guile/scm-type.c: Update.
2303 * guile/scm-value.c: Update.
2304 * i386-linux-tdep.c: Update.
2305 * i386-tdep.c: Update.
2306 * inf-loop.c: Update.
2307 * infcall.c: Update.
2311 * language.c: Update.
2312 * linespec.c: Update.
2313 * linux-fork.c: Update.
2314 * linux-nat.c: Update.
2315 * linux-tdep.c: Update.
2316 * linux-thread-db.c: Update.
2318 * mi/mi-cmd-break.c: Update.
2319 * mi/mi-cmd-stack.c: Update.
2320 * mi/mi-interp.c: Update.
2321 * mi/mi-main.c: Update.
2322 * objc-lang.c: Update.
2323 * p-valprint.c: Update.
2325 * ppc-linux-tdep.c: Update.
2326 * printcmd.c: Update.
2327 * python/py-arch.c: Update.
2328 * python/py-breakpoint.c: Update.
2329 * python/py-cmd.c: Update.
2330 * python/py-finishbreakpoint.c: Update.
2331 * python/py-frame.c: Update.
2332 * python/py-framefilter.c: Update.
2333 * python/py-gdb-readline.c: Update.
2334 * python/py-inferior.c: Update.
2335 * python/py-infthread.c: Update.
2336 * python/py-lazy-string.c: Update.
2337 * python/py-linetable.c: Update.
2338 * python/py-objfile.c: Update.
2339 * python/py-param.c: Update.
2340 * python/py-prettyprint.c: Update.
2341 * python/py-progspace.c: Update.
2342 * python/py-record-btrace.c: Update.
2343 * python/py-record.c: Update.
2344 * python/py-symbol.c: Update.
2345 * python/py-type.c: Update.
2346 * python/py-unwind.c: Update.
2347 * python/py-utils.c: Update.
2348 * python/py-value.c: Update.
2349 * python/python.c: Update.
2350 * record-btrace.c: Update.
2351 * record-full.c: Update.
2352 * remote-fileio.c: Update.
2354 * riscv-tdep.c: Update.
2355 * rs6000-aix-tdep.c: Update.
2356 * rs6000-tdep.c: Update.
2357 * rust-exp.y: Update.
2358 * rust-lang.c: Update.
2359 * s390-tdep.c: Update.
2360 * selftest-arch.c: Update.
2361 * solib-dsbt.c: Update.
2362 * solib-frv.c: Update.
2363 * solib-spu.c: Update.
2364 * solib-svr4.c: Update.
2366 * sparc64-linux-tdep.c: Update.
2368 * symfile-mem.c: Update.
2369 * symmisc.c: Update.
2373 * tracefile-tfile.c: Update.
2374 * tui/tui.c: Update.
2375 * typeprint.c: Update.
2376 * unittests/cli-utils-selftests.c: Update.
2377 * unittests/parse-connection-spec-selftests.c: Update.
2379 * valprint.c: Update.
2382 * windows-nat.c: Update.
2383 * x86-linux-nat.c: Update.
2384 * xml-support.c: Update.
2386 2019-04-08 Tom Tromey <tom@tromey.com>
2388 * xml-support.c: Use C++ exception handling.
2389 * x86-linux-nat.c: Use C++ exception handling.
2390 * windows-nat.c: Use C++ exception handling.
2391 * varobj.c: Use C++ exception handling.
2392 * value.c: Use C++ exception handling.
2393 * valprint.c: Use C++ exception handling.
2394 * valops.c: Use C++ exception handling.
2395 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2397 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2398 * typeprint.c: Use C++ exception handling.
2399 * tui/tui.c: Use C++ exception handling.
2400 * tracefile-tfile.c: Use C++ exception handling.
2401 * top.c: Use C++ exception handling.
2402 * thread.c: Use C++ exception handling.
2403 * target.c: Use C++ exception handling.
2404 * symmisc.c: Use C++ exception handling.
2405 * symfile-mem.c: Use C++ exception handling.
2406 * stack.c: Use C++ exception handling.
2407 * sparc64-linux-tdep.c: Use C++ exception handling.
2408 * solib.c: Use C++ exception handling.
2409 * solib-svr4.c: Use C++ exception handling.
2410 * solib-spu.c: Use C++ exception handling.
2411 * solib-frv.c: Use C++ exception handling.
2412 * solib-dsbt.c: Use C++ exception handling.
2413 * selftest-arch.c: Use C++ exception handling.
2414 * s390-tdep.c: Use C++ exception handling.
2415 * rust-lang.c: Use C++ exception handling.
2416 * rust-exp.y: Use C++ exception handling.
2417 * rs6000-tdep.c: Use C++ exception handling.
2418 * rs6000-aix-tdep.c: Use C++ exception handling.
2419 * riscv-tdep.c: Use C++ exception handling.
2420 * remote.c: Use C++ exception handling.
2421 * remote-fileio.c: Use C++ exception handling.
2422 * record-full.c: Use C++ exception handling.
2423 * record-btrace.c: Use C++ exception handling.
2424 * python/python.c: Use C++ exception handling.
2425 * python/py-value.c: Use C++ exception handling.
2426 * python/py-utils.c: Use C++ exception handling.
2427 * python/py-unwind.c: Use C++ exception handling.
2428 * python/py-type.c: Use C++ exception handling.
2429 * python/py-symbol.c: Use C++ exception handling.
2430 * python/py-record.c: Use C++ exception handling.
2431 * python/py-record-btrace.c: Use C++ exception handling.
2432 * python/py-progspace.c: Use C++ exception handling.
2433 * python/py-prettyprint.c: Use C++ exception handling.
2434 * python/py-param.c: Use C++ exception handling.
2435 * python/py-objfile.c: Use C++ exception handling.
2436 * python/py-linetable.c: Use C++ exception handling.
2437 * python/py-lazy-string.c: Use C++ exception handling.
2438 * python/py-infthread.c: Use C++ exception handling.
2439 * python/py-inferior.c: Use C++ exception handling.
2440 * python/py-gdb-readline.c: Use C++ exception handling.
2441 * python/py-framefilter.c: Use C++ exception handling.
2442 * python/py-frame.c: Use C++ exception handling.
2443 * python/py-finishbreakpoint.c: Use C++ exception handling.
2444 * python/py-cmd.c: Use C++ exception handling.
2445 * python/py-breakpoint.c: Use C++ exception handling.
2446 * python/py-arch.c: Use C++ exception handling.
2447 * printcmd.c: Use C++ exception handling.
2448 * ppc-linux-tdep.c: Use C++ exception handling.
2449 * parse.c: Use C++ exception handling.
2450 * p-valprint.c: Use C++ exception handling.
2451 * objc-lang.c: Use C++ exception handling.
2452 * mi/mi-main.c: Use C++ exception handling.
2453 * mi/mi-interp.c: Use C++ exception handling.
2454 * mi/mi-cmd-stack.c: Use C++ exception handling.
2455 * mi/mi-cmd-break.c: Use C++ exception handling.
2456 * main.c: Use C++ exception handling.
2457 * linux-thread-db.c: Use C++ exception handling.
2458 * linux-tdep.c: Use C++ exception handling.
2459 * linux-nat.c: Use C++ exception handling.
2460 * linux-fork.c: Use C++ exception handling.
2461 * linespec.c: Use C++ exception handling.
2462 * language.c: Use C++ exception handling.
2463 * jit.c: Use C++ exception handling.
2464 * infrun.c: Use C++ exception handling.
2465 * infcmd.c: Use C++ exception handling.
2466 * infcall.c: Use C++ exception handling.
2467 * inf-loop.c: Use C++ exception handling.
2468 * i386-tdep.c: Use C++ exception handling.
2469 * i386-linux-tdep.c: Use C++ exception handling.
2470 * guile/scm-value.c: Use C++ exception handling.
2471 * guile/scm-type.c: Use C++ exception handling.
2472 * guile/scm-symtab.c: Use C++ exception handling.
2473 * guile/scm-symbol.c: Use C++ exception handling.
2474 * guile/scm-pretty-print.c: Use C++ exception handling.
2475 * guile/scm-ports.c: Use C++ exception handling.
2476 * guile/scm-param.c: Use C++ exception handling.
2477 * guile/scm-math.c: Use C++ exception handling.
2478 * guile/scm-lazy-string.c: Use C++ exception handling.
2479 * guile/scm-frame.c: Use C++ exception handling.
2480 * guile/scm-disasm.c: Use C++ exception handling.
2481 * guile/scm-cmd.c: Use C++ exception handling.
2482 * guile/scm-breakpoint.c: Use C++ exception handling.
2483 * guile/scm-block.c: Use C++ exception handling.
2484 * guile/guile-internal.h: Use C++ exception handling.
2485 * gnu-v3-abi.c: Use C++ exception handling.
2486 * gdbtypes.c: Use C++ exception handling.
2487 * frame.c: Use C++ exception handling.
2488 * frame-unwind.c: Use C++ exception handling.
2489 * fbsd-tdep.c: Use C++ exception handling.
2490 * f-valprint.c: Use C++ exception handling.
2491 * exec.c: Use C++ exception handling.
2492 * event-top.c: Use C++ exception handling.
2493 * event-loop.c: Use C++ exception handling.
2494 * eval.c: Use C++ exception handling.
2495 * dwarf2read.c: Use C++ exception handling.
2496 * dwarf2loc.c: Use C++ exception handling.
2497 * dwarf2-frame.c: Use C++ exception handling.
2498 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2499 * dwarf-index-write.c: Use C++ exception handling.
2500 * dwarf-index-cache.c: Use C++ exception handling.
2501 * dtrace-probe.c: Use C++ exception handling.
2502 * disasm-selftests.c: Use C++ exception handling.
2503 * darwin-nat.c: Use C++ exception handling.
2504 * cp-valprint.c: Use C++ exception handling.
2505 * cp-support.c: Use C++ exception handling.
2506 * cp-abi.c: Use C++ exception handling.
2507 * corelow.c: Use C++ exception handling.
2508 * completer.c: Use C++ exception handling.
2509 * compile/compile-object-run.c: Use C++ exception handling.
2510 * compile/compile-object-load.c: Use C++ exception handling.
2511 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2512 * compile/compile-c-symbols.c: Use C++ exception handling.
2513 * common/selftest.c: Use C++ exception handling.
2514 * common/new-op.c: Use C++ exception handling.
2515 * cli/cli-script.c: Use C++ exception handling.
2516 * cli/cli-interp.c: Use C++ exception handling.
2517 * cli/cli-cmds.c: Use C++ exception handling.
2518 * c-varobj.c: Use C++ exception handling.
2519 * btrace.c: Use C++ exception handling.
2520 * breakpoint.c: Use C++ exception handling.
2521 * break-catch-throw.c: Use C++ exception handling.
2522 * arch-utils.c: Use C++ exception handling.
2523 * amd64-tdep.c: Use C++ exception handling.
2524 * ada-valprint.c: Use C++ exception handling.
2525 * ada-typeprint.c: Use C++ exception handling.
2526 * ada-lang.c: Use C++ exception handling.
2527 * aarch64-tdep.c: Use C++ exception handling.
2529 2019-04-08 Tom Tromey <tom@tromey.com>
2531 * xml-support.c (gdb_xml_parser::parse): Update.
2532 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2533 * value.c (show_convenience): Update.
2534 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2535 (test_parse_flags_qcs): Update.
2536 * thread.c (thr_try_catch_cmd): Update.
2537 * target.c (target_translate_tls_address): Update.
2538 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2539 (info_frame_command_core, frame_apply_command_count): Update.
2540 * rust-exp.y (rust_lex_exception_test): Update.
2541 * riscv-tdep.c (riscv_print_one_register_info): Update.
2542 * remote.c (remote_target::enable_btrace): Update.
2543 * record-btrace.c (record_btrace_enable_warn): Update.
2544 * python/py-utils.c (gdbpy_convert_exception): Update.
2545 * printcmd.c (do_one_display, print_variable_and_value): Update.
2546 * mi/mi-main.c (mi_print_exception): Update.
2547 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2548 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2549 * linux-nat.c (linux_nat_target::attach): Update.
2550 * linux-fork.c (class scoped_switch_fork_info): Update.
2551 * infrun.c (displaced_step_prepare): Update.
2552 * infcall.c (call_function_by_hand_dummy): Update.
2553 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2554 * gnu-v3-abi.c (print_one_vtable): Update.
2555 * frame.c (get_prev_frame_always): Update.
2556 * f-valprint.c (info_common_command_for_block): Update.
2557 * exec.c (try_open_exec_file): Update.
2558 * exceptions.c (print_exception, exception_print)
2559 (exception_fprintf, exception_print_same): Update.
2560 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2561 * dwarf-index-cache.c (index_cache::store)
2562 (index_cache::lookup_gdb_index): Update.
2563 * darwin-nat.c (maybe_cache_shell): Update.
2564 * cp-valprint.c (cp_print_value_fields): Update.
2565 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2566 (gcc_cplus_symbol_address): Update.
2567 * compile/compile-c-symbols.c (gcc_convert_symbol)
2568 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2569 * common/selftest.c: Update.
2570 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2572 (exception_try_scope_entry, exception_try_scope_exit): Don't
2574 (struct exception_try_scope): Remove.
2575 (TRY): Don't use exception_try_scope.
2576 (struct gdb_exception): Add constructor, operator=.
2578 (struct gdb_exception_RETURN_MASK_ALL)
2579 (struct gdb_exception_RETURN_MASK_ERROR)
2580 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2581 (struct gdb_quit_bad_alloc): Update.
2582 * common/common-exceptions.c (exception_none): Change
2584 (struct catcher) <state, exception>: Initialize inline.
2585 <prev>: Remove member.
2586 (current_catcher): Remove.
2587 (catchers): New global.
2588 (exceptions_state_mc_init): Simplify.
2589 (catcher_pop): Remove.
2590 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2591 (try_scope_depth, exception_try_scope_entry)
2592 (exception_try_scope_exit): Remove.
2593 (throw_exception_sjlj): Update.
2594 (exception_messages, exception_messages_size): Remove.
2595 (throw_it): Simplify.
2596 (gdb_exception_sliced_copy): Remove.
2597 (throw_exception_cxx): Update.
2598 * cli/cli-script.c (script_from_file): Update.
2599 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2601 * ada-valprint.c (ada_val_print): Update.
2602 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2603 (create_excep_cond_exprs): Update.
2605 2019-04-08 Tom Tromey <tom@tromey.com>
2607 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2608 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2609 (TRY, CATCH, END_CATCH): Remove some definitions.
2610 * common/common-exceptions.c: Don't use GDB_XCPT.
2611 (catcher_list_size): Remove.
2612 (throw_exception, throw_it): Simplify.
2614 2019-04-05 Tom Tromey <tom@tromey.com>
2616 Revert the header-sorting patch.
2617 * ft32-tdep.c: Revert.
2618 * frv-tdep.c: Revert.
2619 * frv-linux-tdep.c: Revert.
2621 * frame-unwind.c: Revert.
2622 * frame-base.c: Revert.
2623 * fork-child.c: Revert.
2624 * findvar.c: Revert.
2625 * findcmd.c: Revert.
2626 * filesystem.c: Revert.
2627 * filename-seen-cache.h: Revert.
2628 * filename-seen-cache.c: Revert.
2629 * fbsd-tdep.c: Revert.
2630 * fbsd-nat.h: Revert.
2631 * fbsd-nat.c: Revert.
2632 * f-valprint.c: Revert.
2633 * f-typeprint.c: Revert.
2635 * extension.h: Revert.
2636 * extension.c: Revert.
2637 * extension-priv.h: Revert.
2638 * expprint.c: Revert.
2641 * exceptions.c: Revert.
2642 * event-top.c: Revert.
2643 * event-loop.c: Revert.
2645 * elfread.c: Revert.
2646 * dwarf2read.h: Revert.
2647 * dwarf2read.c: Revert.
2648 * dwarf2loc.c: Revert.
2649 * dwarf2expr.h: Revert.
2650 * dwarf2expr.c: Revert.
2651 * dwarf2-frame.c: Revert.
2652 * dwarf2-frame-tailcall.c: Revert.
2653 * dwarf-index-write.h: Revert.
2654 * dwarf-index-write.c: Revert.
2655 * dwarf-index-common.c: Revert.
2656 * dwarf-index-cache.h: Revert.
2657 * dwarf-index-cache.c: Revert.
2658 * dummy-frame.c: Revert.
2659 * dtrace-probe.c: Revert.
2662 * disasm-selftests.c: Revert.
2663 * dictionary.c: Revert.
2664 * dicos-tdep.c: Revert.
2665 * demangle.c: Revert.
2668 * darwin-nat.h: Revert.
2669 * darwin-nat.c: Revert.
2670 * darwin-nat-info.c: Revert.
2671 * d-valprint.c: Revert.
2672 * d-namespace.c: Revert.
2675 * csky-tdep.c: Revert.
2676 * csky-linux-tdep.c: Revert.
2677 * cris-tdep.c: Revert.
2678 * cris-linux-tdep.c: Revert.
2679 * cp-valprint.c: Revert.
2680 * cp-support.c: Revert.
2681 * cp-namespace.c: Revert.
2683 * corelow.c: Revert.
2684 * corefile.c: Revert.
2685 * continuations.c: Revert.
2686 * completer.h: Revert.
2687 * completer.c: Revert.
2688 * complaints.c: Revert.
2689 * coffread.c: Revert.
2690 * coff-pe-read.c: Revert.
2691 * cli-out.h: Revert.
2692 * cli-out.c: Revert.
2693 * charset.c: Revert.
2694 * c-varobj.c: Revert.
2695 * c-valprint.c: Revert.
2696 * c-typeprint.c: Revert.
2698 * buildsym.c: Revert.
2699 * buildsym-legacy.c: Revert.
2700 * build-id.h: Revert.
2701 * build-id.c: Revert.
2703 * bsd-uthread.c: Revert.
2704 * breakpoint.h: Revert.
2705 * breakpoint.c: Revert.
2706 * break-catch-throw.c: Revert.
2707 * break-catch-syscall.c: Revert.
2708 * break-catch-sig.c: Revert.
2709 * blockframe.c: Revert.
2711 * bfin-tdep.c: Revert.
2712 * bfin-linux-tdep.c: Revert.
2713 * bfd-target.c: Revert.
2715 * ax-general.c: Revert.
2718 * avr-tdep.c: Revert.
2720 * auto-load.c: Revert.
2721 * arm-wince-tdep.c: Revert.
2722 * arm-tdep.c: Revert.
2723 * arm-symbian-tdep.c: Revert.
2724 * arm-pikeos-tdep.c: Revert.
2725 * arm-obsd-tdep.c: Revert.
2726 * arm-nbsd-tdep.c: Revert.
2727 * arm-nbsd-nat.c: Revert.
2728 * arm-linux-tdep.c: Revert.
2729 * arm-linux-nat.c: Revert.
2730 * arm-fbsd-tdep.c: Revert.
2731 * arm-fbsd-nat.c: Revert.
2732 * arm-bsd-tdep.c: Revert.
2733 * arch-utils.c: Revert.
2734 * arc-tdep.c: Revert.
2735 * arc-newlib-tdep.c: Revert.
2736 * annotate.h: Revert.
2737 * annotate.c: Revert.
2738 * amd64-windows-tdep.c: Revert.
2739 * amd64-windows-nat.c: Revert.
2740 * amd64-tdep.c: Revert.
2741 * amd64-sol2-tdep.c: Revert.
2742 * amd64-obsd-tdep.c: Revert.
2743 * amd64-obsd-nat.c: Revert.
2744 * amd64-nbsd-tdep.c: Revert.
2745 * amd64-nbsd-nat.c: Revert.
2746 * amd64-nat.c: Revert.
2747 * amd64-linux-tdep.c: Revert.
2748 * amd64-linux-nat.c: Revert.
2749 * amd64-fbsd-tdep.c: Revert.
2750 * amd64-fbsd-nat.c: Revert.
2751 * amd64-dicos-tdep.c: Revert.
2752 * amd64-darwin-tdep.c: Revert.
2753 * amd64-bsd-nat.c: Revert.
2754 * alpha-tdep.c: Revert.
2755 * alpha-obsd-tdep.c: Revert.
2756 * alpha-nbsd-tdep.c: Revert.
2757 * alpha-mdebug-tdep.c: Revert.
2758 * alpha-linux-tdep.c: Revert.
2759 * alpha-linux-nat.c: Revert.
2760 * alpha-bsd-tdep.c: Revert.
2761 * alpha-bsd-nat.c: Revert.
2762 * aix-thread.c: Revert.
2764 * addrmap.c: Revert.
2765 * ada-varobj.c: Revert.
2766 * ada-valprint.c: Revert.
2767 * ada-typeprint.c: Revert.
2768 * ada-tasks.c: Revert.
2769 * ada-lang.c: Revert.
2770 * aarch64-tdep.c: Revert.
2771 * aarch64-ravenscar-thread.c: Revert.
2772 * aarch64-newlib-tdep.c: Revert.
2773 * aarch64-linux-tdep.c: Revert.
2774 * aarch64-linux-nat.c: Revert.
2775 * aarch64-fbsd-tdep.c: Revert.
2776 * aarch64-fbsd-nat.c: Revert.
2777 * aarch32-linux-nat.c: Revert.
2779 2019-04-05 Tom Tromey <tom@tromey.com>
2781 * ft32-tdep.c: Sort headers.
2782 * frv-tdep.c: Sort headers.
2783 * frv-linux-tdep.c: Sort headers.
2784 * frame.c: Sort headers.
2785 * frame-unwind.c: Sort headers.
2786 * frame-base.c: Sort headers.
2787 * fork-child.c: Sort headers.
2788 * findvar.c: Sort headers.
2789 * findcmd.c: Sort headers.
2790 * filesystem.c: Sort headers.
2791 * filename-seen-cache.h: Sort headers.
2792 * filename-seen-cache.c: Sort headers.
2793 * fbsd-tdep.c: Sort headers.
2794 * fbsd-nat.h: Sort headers.
2795 * fbsd-nat.c: Sort headers.
2796 * f-valprint.c: Sort headers.
2797 * f-typeprint.c: Sort headers.
2798 * f-lang.c: Sort headers.
2799 * extension.h: Sort headers.
2800 * extension.c: Sort headers.
2801 * extension-priv.h: Sort headers.
2802 * expprint.c: Sort headers.
2803 * exec.h: Sort headers.
2804 * exec.c: Sort headers.
2805 * exceptions.c: Sort headers.
2806 * event-top.c: Sort headers.
2807 * event-loop.c: Sort headers.
2808 * eval.c: Sort headers.
2809 * elfread.c: Sort headers.
2810 * dwarf2read.h: Sort headers.
2811 * dwarf2read.c: Sort headers.
2812 * dwarf2loc.c: Sort headers.
2813 * dwarf2expr.h: Sort headers.
2814 * dwarf2expr.c: Sort headers.
2815 * dwarf2-frame.c: Sort headers.
2816 * dwarf2-frame-tailcall.c: Sort headers.
2817 * dwarf-index-write.h: Sort headers.
2818 * dwarf-index-write.c: Sort headers.
2819 * dwarf-index-common.c: Sort headers.
2820 * dwarf-index-cache.h: Sort headers.
2821 * dwarf-index-cache.c: Sort headers.
2822 * dummy-frame.c: Sort headers.
2823 * dtrace-probe.c: Sort headers.
2824 * disasm.h: Sort headers.
2825 * disasm.c: Sort headers.
2826 * disasm-selftests.c: Sort headers.
2827 * dictionary.c: Sort headers.
2828 * dicos-tdep.c: Sort headers.
2829 * demangle.c: Sort headers.
2830 * dcache.h: Sort headers.
2831 * dcache.c: Sort headers.
2832 * darwin-nat.h: Sort headers.
2833 * darwin-nat.c: Sort headers.
2834 * darwin-nat-info.c: Sort headers.
2835 * d-valprint.c: Sort headers.
2836 * d-namespace.c: Sort headers.
2837 * d-lang.c: Sort headers.
2838 * ctf.c: Sort headers.
2839 * csky-tdep.c: Sort headers.
2840 * csky-linux-tdep.c: Sort headers.
2841 * cris-tdep.c: Sort headers.
2842 * cris-linux-tdep.c: Sort headers.
2843 * cp-valprint.c: Sort headers.
2844 * cp-support.c: Sort headers.
2845 * cp-namespace.c: Sort headers.
2846 * cp-abi.c: Sort headers.
2847 * corelow.c: Sort headers.
2848 * corefile.c: Sort headers.
2849 * continuations.c: Sort headers.
2850 * completer.h: Sort headers.
2851 * completer.c: Sort headers.
2852 * complaints.c: Sort headers.
2853 * coffread.c: Sort headers.
2854 * coff-pe-read.c: Sort headers.
2855 * cli-out.h: Sort headers.
2856 * cli-out.c: Sort headers.
2857 * charset.c: Sort headers.
2858 * c-varobj.c: Sort headers.
2859 * c-valprint.c: Sort headers.
2860 * c-typeprint.c: Sort headers.
2861 * c-lang.c: Sort headers.
2862 * buildsym.c: Sort headers.
2863 * buildsym-legacy.c: Sort headers.
2864 * build-id.h: Sort headers.
2865 * build-id.c: Sort headers.
2866 * btrace.c: Sort headers.
2867 * bsd-uthread.c: Sort headers.
2868 * breakpoint.h: Sort headers.
2869 * breakpoint.c: Sort headers.
2870 * break-catch-throw.c: Sort headers.
2871 * break-catch-syscall.c: Sort headers.
2872 * break-catch-sig.c: Sort headers.
2873 * blockframe.c: Sort headers.
2874 * block.c: Sort headers.
2875 * bfin-tdep.c: Sort headers.
2876 * bfin-linux-tdep.c: Sort headers.
2877 * bfd-target.c: Sort headers.
2878 * bcache.c: Sort headers.
2879 * ax-general.c: Sort headers.
2880 * ax-gdb.h: Sort headers.
2881 * ax-gdb.c: Sort headers.
2882 * avr-tdep.c: Sort headers.
2883 * auxv.c: Sort headers.
2884 * auto-load.c: Sort headers.
2885 * arm-wince-tdep.c: Sort headers.
2886 * arm-tdep.c: Sort headers.
2887 * arm-symbian-tdep.c: Sort headers.
2888 * arm-pikeos-tdep.c: Sort headers.
2889 * arm-obsd-tdep.c: Sort headers.
2890 * arm-nbsd-tdep.c: Sort headers.
2891 * arm-nbsd-nat.c: Sort headers.
2892 * arm-linux-tdep.c: Sort headers.
2893 * arm-linux-nat.c: Sort headers.
2894 * arm-fbsd-tdep.c: Sort headers.
2895 * arm-fbsd-nat.c: Sort headers.
2896 * arm-bsd-tdep.c: Sort headers.
2897 * arch-utils.c: Sort headers.
2898 * arc-tdep.c: Sort headers.
2899 * arc-newlib-tdep.c: Sort headers.
2900 * annotate.h: Sort headers.
2901 * annotate.c: Sort headers.
2902 * amd64-windows-tdep.c: Sort headers.
2903 * amd64-windows-nat.c: Sort headers.
2904 * amd64-tdep.c: Sort headers.
2905 * amd64-sol2-tdep.c: Sort headers.
2906 * amd64-obsd-tdep.c: Sort headers.
2907 * amd64-obsd-nat.c: Sort headers.
2908 * amd64-nbsd-tdep.c: Sort headers.
2909 * amd64-nbsd-nat.c: Sort headers.
2910 * amd64-nat.c: Sort headers.
2911 * amd64-linux-tdep.c: Sort headers.
2912 * amd64-linux-nat.c: Sort headers.
2913 * amd64-fbsd-tdep.c: Sort headers.
2914 * amd64-fbsd-nat.c: Sort headers.
2915 * amd64-dicos-tdep.c: Sort headers.
2916 * amd64-darwin-tdep.c: Sort headers.
2917 * amd64-bsd-nat.c: Sort headers.
2918 * alpha-tdep.c: Sort headers.
2919 * alpha-obsd-tdep.c: Sort headers.
2920 * alpha-nbsd-tdep.c: Sort headers.
2921 * alpha-mdebug-tdep.c: Sort headers.
2922 * alpha-linux-tdep.c: Sort headers.
2923 * alpha-linux-nat.c: Sort headers.
2924 * alpha-bsd-tdep.c: Sort headers.
2925 * alpha-bsd-nat.c: Sort headers.
2926 * aix-thread.c: Sort headers.
2927 * agent.c: Sort headers.
2928 * addrmap.c: Sort headers.
2929 * ada-varobj.c: Sort headers.
2930 * ada-valprint.c: Sort headers.
2931 * ada-typeprint.c: Sort headers.
2932 * ada-tasks.c: Sort headers.
2933 * ada-lang.c: Sort headers.
2934 * aarch64-tdep.c: Sort headers.
2935 * aarch64-ravenscar-thread.c: Sort headers.
2936 * aarch64-newlib-tdep.c: Sort headers.
2937 * aarch64-linux-tdep.c: Sort headers.
2938 * aarch64-linux-nat.c: Sort headers.
2939 * aarch64-fbsd-tdep.c: Sort headers.
2940 * aarch64-fbsd-nat.c: Sort headers.
2941 * aarch32-linux-nat.c: Sort headers.
2943 2019-04-04 Tom Tromey <tom@tromey.com>
2945 * varobj.c (varobj_create): Update.
2946 * rust-exp.y (struct rust_parser) <update_innermost_block,
2947 lookup_symbol>: New methods.
2948 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2950 (rust_parser::rust_lookup_type)
2951 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2952 * printcmd.c (display_command, do_one_display): Update.
2953 * parser-defs.h (struct parser_state) <parser_state>: Add
2954 "tracker" parameter.
2955 (block_tracker): New member.
2956 (class innermost_block_tracker) <innermost_block_tracker>: Add
2958 <reset>: Remove method.
2959 (innermost_block): Don't declare.
2960 (null_post_parser): Update.
2961 * parse.c (innermost_block): Remove global.
2962 (write_dollar_variable): Update.
2963 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2964 Remove "tracker_types" parameter.
2965 (parse_expression): Add "tracker" parameter.
2966 (parse_expression_for_completion): Update.
2967 (null_post_parser): Add "tracker" parameter.
2968 * p-exp.y: Update rules.
2969 * m2-exp.y: Update rules.
2970 * language.h (struct language_defn) <la_post_parser>: Add
2971 "tracker" parameter.
2972 * go-exp.y: Update rules.
2973 * f-exp.y: Update rules.
2974 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2976 * d-exp.y: Update rules.
2977 * c-exp.y: Update rules.
2978 * breakpoint.c (set_breakpoint_condition): Create an
2979 innermost_block_tracker.
2980 (watch_command_1): Likewise.
2981 * ada-lang.c (resolve): Add "tracker" parameter.
2982 (resolve_subexp): Likewise.
2983 * ada-exp.y (write_var_from_sym): Update.
2985 2019-04-04 Tom Tromey <tom@tromey.com>
2987 * type-stack.h: New file.
2988 * type-stack.c: New file.
2989 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2991 (insert_into_type_stack, insert_type, push_type, push_type_int)
2992 (insert_type_address_space, pop_type, pop_type_int)
2993 (pop_typelist, pop_type_stack, append_type_stack)
2994 (push_type_stack, get_type_stack, push_typelist)
2995 (follow_type_instance_flags, follow_types): Don't declare.
2996 * parse.c (type_stack): Remove global.
2997 (parse_exp_in_context): Update.
2998 (insert_into_type_stack, insert_type, push_type, push_type_int)
2999 (insert_type_address_space, pop_type, pop_type_int)
3000 (pop_typelist, pop_type_stack, append_type_stack)
3001 (push_type_stack, get_type_stack, push_typelist)
3002 (follow_type_instance_flags, follow_types): Remove (moved to
3004 * f-exp.y (type_stack): New global.
3006 (push_kind_type, f_parse): Update.
3007 * d-exp.y (type_stack): New global.
3010 * c-exp.y (struct c_parse_state) <type_stack>: New member.
3012 * Makefile.in (COMMON_SFILES): Add type-stack.c.
3013 (HFILES_NO_SRCDIR): Add type-stack.h.
3015 2019-04-04 Tom Tromey <tom@tromey.com>
3017 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
3018 (rust_parser::convert_ast_to_expression, rust_parse)
3019 (rust_lex_test_completion, rust_lex_tests): Update.
3020 * parser-defs.h (struct expr_completion_state): New.
3021 (struct parser_state) <parser_state>: Add completion parameter.
3022 <mark_struct_expression, mark_completion_tag>: New methods.
3023 <parse_completion, m_completion_state>: New members.
3024 (prefixify_expression, null_post_parser): Update.
3025 (mark_struct_expression, mark_completion_tag): Don't declare.
3026 * parse.c (parse_completion, expout_last_struct)
3027 (expout_tag_completion_type, expout_completion_name): Remove
3029 (parser_state::mark_struct_expression)
3030 (parser_state::mark_completion_tag): Now methods.
3031 (prefixify_expression): Add last_struct parameter.
3032 (prefixify_subexp): Likewise.
3033 (parse_exp_1): Update.
3034 (parse_exp_in_context): Add cstate parameter. Update.
3035 (parse_expression_for_completion): Create an
3036 expr_completion_state.
3037 (null_post_parser): Add "completion" parameter.
3038 * p-exp.y: Update rules.
3040 * language.h (struct language_defn) <la_post_parser>: Add
3041 "completing" parameter.
3042 * go-exp.y: Update rules.
3043 (lex_one_token): Update.
3044 * expression.h (parse_completion): Don't declare.
3045 * d-exp.y: Update rules.
3046 (lex_one_token): Update rules.
3047 * c-exp.y: Update rules.
3048 (lex_one_token): Update.
3049 * ada-lang.c (resolve): Add "parse_completion" parameter.
3050 (resolve_subexp): Likewise.
3051 (ada_resolve_function): Likewise.
3053 2019-04-04 Tom Tromey <tom@tromey.com>
3055 * parser-defs.h (struct parser_state) <start_arglist,
3056 end_arglist>: New methods.
3057 <arglist_len, m_funcall_chain>: New members.
3058 (arglist_len, start_arglist, end_arglist): Don't declare.
3059 * parse.c (arglist_len, funcall_chain): Remove global.
3060 (start_arglist, end_arglist): Remove functions.
3061 (parse_exp_in_context): Update.
3062 * p-exp.y: Update rules.
3063 * m2-exp.y: Update rules.
3064 * go-exp.y: Update rules.
3065 * f-exp.y: Update rules.
3066 * d-exp.y: Update rules.
3067 * c-exp.y: Update rules.
3069 2019-04-04 Tom Tromey <tom@tromey.com>
3071 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3072 lex_operator, push_back>: New methods.
3074 (rust_parser::lex_hex, lex_escape): Rename and update.
3075 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3076 (rust_parser::lex_operator): Rename and update.
3077 (rust_parser::lex_number, rustyylex, rustyyerror)
3078 (rust_lex_test_init, rust_lex_test_sequence)
3079 (rust_lex_test_push_back, rust_lex_tests): Update.
3080 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3082 <lexptr, prev_lexptr>: New members.
3083 (lexptr, prev_lexptr): Don't declare.
3084 * parse.c (lexptr, prev_lexptr): Remove globals.
3085 (parse_exp_in_context): Update.
3086 * p-exp.y (yylex, yyerror): Update.
3087 * m2-exp.y (parse_number, yylex, yyerror): Update.
3088 * go-exp.y (lex_one_token, yyerror): Update.
3089 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3090 * d-exp.y (lex_one_token, yyerror): Update.
3091 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3092 (lex_one_token, yyerror): Update.
3093 * ada-lex.l (YY_INPUT): Update.
3094 (rewind_to_char): Update.
3095 * ada-exp.y (yyerror): Update.
3097 2019-04-04 Tom Tromey <tom@tromey.com>
3099 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3100 * parser-defs.h (struct parser_state) <parser_state>: Add new
3102 <comma_terminates>: New member.
3103 (comma_terminates): Don't declare global.
3104 * parse.c (comma_terminates): Remove global.
3105 (parse_exp_in_context): Update.
3106 * p-exp.y (yylex): Update.
3107 * m2-exp.y (yylex): Update.
3108 * go-exp.y (lex_one_token): Update.
3109 * f-exp.y (yylex): Update.
3110 * d-exp.y (lex_one_token): Update.
3111 * c-exp.y (lex_one_token): Update.
3112 * ada-lex.l: Update.
3114 2019-04-04 Tom Tromey <tom@tromey.com>
3116 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3117 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3118 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3119 * parser-defs.h (paren_depth): Don't declare.
3120 * parse.c (paren_depth): Remove global.
3121 (parse_exp_in_context): Update.
3122 * p-exp.y (paren_depth): New global.
3123 (pascal_parse): Initialize it.
3124 * m2-exp.y (paren_depth): New global.
3125 (m2_parse): Initialize it.
3126 * go-exp.y (paren_depth): New global.
3127 (go_parse): Initialize it.
3128 * f-exp.y (paren_depth): New global.
3129 (f_parse): Initialize it.
3130 * d-exp.y (paren_depth): New global.
3131 (d_parse): Initialize it.
3132 * c-exp.y (paren_depth): New global.
3133 (c_parse): Initialize it.
3134 * ada-lex.l (paren_depth): New global.
3135 (lexer_init): Initialize it.
3137 2019-04-04 Tom Tromey <tom@tromey.com>
3139 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3140 (rust_parser::convert_ast_to_type)
3141 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3142 * parser-defs.h (struct parser_state) <parser_state>: Add
3143 parameters. Initialize new members.
3144 <expression_context_block, expression_context_pc>: New members.
3145 * parse.c (expression_context_block, expression_context_pc):
3147 (parse_exp_in_context): Update.
3148 * p-exp.y: Update all rules.
3150 * m2-exp.y: Update all rules.
3152 * go-exp.y (yylex): Update.
3153 * f-exp.y (yylex): Update.
3154 * d-exp.y: Update all rules.
3156 * c-exp.y: Update all rules.
3157 (lex_one_token, classify_name, yylex, c_parse): Update.
3158 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3160 2019-04-04 Tom Tromey <tom@tromey.com>
3162 * gdbarch.h, gdbarch.c: Rebuild.
3163 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3165 (struct stap_parse_info): Replace "parser_state" with
3167 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3168 (parser_state): New class.
3169 * parse.c (expr_builder): Rename.
3170 (expr_builder::release): Rename.
3171 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3172 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3173 (write_exp_elt_longcst, write_exp_elt_floatcst)
3174 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3175 (write_exp_string_vector, write_exp_bitstring)
3176 (write_exp_msymbol, mark_struct_expression)
3177 (write_dollar_variable)
3178 (insert_type_address_space, increase_expout_size): Replace
3179 "parser_state" with "expr_builder".
3180 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3181 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3182 "parser_state" with "expr_builder".
3184 2019-04-04 Tom Tromey <tom@tromey.com>
3186 * rust-exp.y: Replace "parse_language" with method call.
3188 (yylex): Replace "parse_language" with method call.
3190 (yylex): Replace "parse_language" with method call.
3191 * go-exp.y (classify_name): Replace "parse_language" with method
3193 * f-exp.y (yylex): Replace "parse_language" with method call.
3194 * d-exp.y (lex_one_token): Replace "parse_language" with method
3197 (lex_one_token, classify_name, yylex): Replace "parse_language"
3199 * ada-exp.y (find_primitive_type, type_char)
3200 (type_system_address): Replace "parse_language" with method call.
3202 2019-04-04 Tom Tromey <tom@tromey.com>
3204 * rust-exp.y: Replace "parse_gdbarch" with method call.
3205 * parse.c (write_dollar_variable, insert_type_address_space):
3206 Replace "parse_gdbarch" with method call.
3207 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3209 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3211 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3212 "parse_gdbarch" with method call.
3213 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3215 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3216 "parse_gdbarch" with method call.
3217 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3218 "parse_gdbarch" with method call.
3219 * c-exp.y (parse_type, parse_number, classify_name): Replace
3220 "parse_gdbarch" with method call.
3221 * ada-lex.l: Replace "parse_gdbarch" with method call.
3222 * ada-exp.y (parse_type, find_primitive_type, type_char)
3223 (type_system_address): Replace "parse_gdbarch" with method call.
3225 2019-04-04 Tom Tromey <tom@tromey.com>
3227 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3228 * stap-probe.c (stap_parse_argument): Update.
3229 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3230 initial_size parameter.
3231 * rust-exp.y (rust_lex_tests): Update.
3232 * parse.c (parser_state): Update.
3233 (parse_exp_in_context): Update.
3234 * parser-defs.h (struct parser_state) <parser_state>: Remove
3235 "initial_size" parameter.
3237 2019-04-04 Tom Tromey <tom@tromey.com>
3239 * parser-defs.h (increase_expout_size): Don't declare.
3240 * parse.c (increase_expout_size): Now static.
3242 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3244 * gnu-nat.c (gnu_nat_target::wait): Fix
3245 target_waitstatus_to_string call.
3247 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3249 * eval.c (evaluate_subexp_standard): Handle internal functions
3250 during Fortran function call handling.
3252 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3254 * NEWS: Mention new internal functions.
3255 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3256 (read_base_type): Use dwarf2_init_complex_target_type.
3257 * value.c (creal_internal_fn): New function.
3258 (cimag_internal_fn): New function.
3259 (_initialize_values): Register new internal functions.
3261 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3263 * infrun.c (stop_all_threads): If debug_infrun, always
3264 trace the wait status after wait_one, using
3265 target_waitstatus_to_string and target_pid_to_str.
3266 (handle_inferior_event): Replace various trace of
3267 wait status kind by a single trace.
3268 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3269 wait status kind image by target_waitstatus_to_string.
3270 * target/waitstatus.c (target_waitstatus_to_string): Fix
3273 2019-04-01 Tom Tromey <tromey@adacore.com>
3276 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3278 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3279 Pedro Alves <palves@redhat.com>
3281 * top.c (quit_force): Call 'finalize_values'.
3282 * value.c (finalize_values): New function.
3283 * value.h (finalize_values): Declare.
3285 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3287 * NEWS: Announce $_gdb_major and $_gdb_minor.
3289 * top.c (init_gdb_version_vars): New function.
3290 (gdb_init): Call init_gdb_version_vars.
3292 2019-03-29 Tom Tromey <tromey@adacore.com>
3294 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3295 help text. Remove dead code.
3297 2019-03-29 Keith Seitz <keiths@redhat.com>
3299 From Siddhesh Poyarekar:
3300 * f-lang.h (f77_get_upperbound): Return LONGEST.
3301 (f77_get_lowerbound): Likewise.
3302 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3303 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3305 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3306 plongest to format print it.
3307 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3308 (f77_get_upperbound): Likewise.
3309 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3310 LOWER_BOUND to LONGEST.
3311 (f77_create_arrayprint_offset_tbl): Likewise.
3313 2019-03-29 Keith Seitz <keiths@redhat.com>
3315 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3316 %s/pulongest for TYPE_LENGTH instead of %d in format
3318 * ada-typerint.c (ada_print_type): Likewise.
3319 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3320 * compile/compile-c-support.c (generate_register_struct): Likewise.
3321 * gdbtypes.c (recursive_dump_type): Likewise.
3322 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3323 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3324 instead of %d in format strings.
3325 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3326 to std::min to ULONGEST.
3327 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3328 instead of %d in format strings.
3329 * tracepoint.c (info_scope_command): Likewise.
3330 * typeprint.c (print_offset_data::update)
3331 (print_offset_data::finish): Likewise.
3332 * xtensa-tdep.c (xtensa_store_return_value)
3333 (xtensa_push_dummy_call): Likewise.
3335 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3337 * windows-nat.c (display_selector): Fixed format specifications
3340 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3342 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3344 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3346 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3347 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3348 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3349 (nios2_linux_init_abi): Install it.
3351 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3353 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3355 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3357 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3359 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3360 Tom Tromey <tromey@adacore.com>
3362 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3364 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3366 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3367 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3368 method to compute the bounds of range types. Also print "[evaluated]"
3369 if the bounds' values come from a dynamic evaluation.
3371 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3373 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3374 whitespace when pretty printing is on.
3376 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3378 * ppc-linux-nat.c: Add include.
3380 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3382 * NEWS: Mention AArch64 Pointer Authentication.
3384 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3386 * arm-linux-nat.c: Add include.
3388 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3390 * source-cache.c (source_cache::get_source_lines): Re-read
3391 fullname after calling open_source_file.
3393 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3395 * NEWS: Mention TLS support for FreeBSD.
3397 2019-03-25 Tom Tromey <tromey@adacore.com>
3399 * minsyms.c (BUNCH_SIZE): Update comment.
3400 (~minimal_symbol_reader): Remove old comment.
3401 (compact_minimal_symbols): Update comment.
3402 (minimal_symbol_reader::install): Remove old comment. Update
3405 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3407 * s390-linux-nat.c: Add include.
3409 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3411 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3412 Call linux_get_hwcap.
3413 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3415 (aarch64_linux_get_hwcap): Remove function.
3416 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3418 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3420 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3421 * linux-tdep.c (linux_get_hwcap): Add function.
3422 (linux_get_hwcap2): Likewise.
3423 * linux-tdep.h (linux_get_hwcap): Add declaration.
3424 (linux_get_hwcap2): Likewise.
3425 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3426 (ppc_linux_get_hwcap2): Likewise.
3427 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3429 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3430 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3431 (ppc_linux_nat_target::read_description): Likewise.
3432 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3433 * s390-linux-nat.c: Likewise.
3434 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3436 2019-03-24 Tom Tromey <tom@tromey.com>
3438 * ada-lang.c (standard_lookup): Simplify initialization.
3439 (ada_lookup_symbol_nonlocal): Simplify return.
3440 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3441 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3442 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3443 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3445 * solib.c (solib_global_lookup): Simplify.
3446 * symtab.c (null_block_symbol): Remove.
3447 (symbol_cache_lookup): Simplify returns.
3448 (lookup_language_this): Simplify returns.
3449 (lookup_symbol_aux): Simplify return.
3450 (lookup_local_symbol): Simplify returns.
3451 (lookup_global_symbol_from_objfile): Simplify return.
3452 (lookup_symbol_in_objfile_symtabs)
3453 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3454 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3455 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3456 * cp-namespace.c (cp_lookup_bare_symbol)
3457 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3458 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3459 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3460 (cp_lookup_symbol_via_imports): Simplify initialization.
3461 (find_symbol_in_baseclass): Likewise.
3462 * symtab.h (null_block_symbol): Remove.
3463 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3464 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3465 (d_lookup_symbol_module): Likewise.
3466 (find_symbol_in_baseclass): Simplify initialization.
3468 2019-03-24 Tom Tromey <tom@tromey.com>
3470 * expression.h: Don't include symtab.h.
3471 (struct block): Forward declare.
3473 2019-03-24 Tom Tromey <tom@tromey.com>
3475 * c-exp.y (typebase): Remove casts.
3476 * gdbtypes.c (lookup_unsigned_typename, )
3477 (lookup_signed_typename): Remove cast.
3478 * eval.c (parse_to_comma_and_eval): Remove cast.
3479 * parse.c (write_dollar_variable): Remove cast.
3480 * block.h (struct block) <superblock>: Now const.
3481 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3482 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3483 (map_block): Make "block" const.
3484 * symfile.h (struct quick_symbol_functions)
3485 <map_matching_symbols>: Constify block argument to "callback".
3486 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3488 (find_pc_sect_compunit_symtab): Make "b" const.
3489 (find_symbol_at_address): Likewise.
3490 (search_symbols): Likewise.
3491 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3492 (dw2_debug_names_lookup_symbol): Likewise.
3493 (dw2_map_matching_symbols): Update.
3494 * p-valprint.c (pascal_val_print): Remove "block".
3495 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3496 (aux_add_nonlocal_symbols): Make "block" const.
3497 (resolve_subexp): Remove cast.
3498 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3500 (iterate_over_file_blocks): Likewise.
3501 * f-exp.y (%union) <bval>: Remove.
3502 * coffread.c (patch_opaque_types): Make "b" const.
3503 * spu-tdep.c (spu_catch_start): Make "block" const.
3504 * c-valprint.c (print_unpacked_pointer): Remove "block".
3505 * symmisc.c (dump_symtab_1): Make "b" const.
3506 (block_depth): Make "block" const.
3507 * d-exp.y (%union) <bval>: Remove.
3508 * cp-support.h (cp_lookup_rtti_type): Update.
3509 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3510 * psymtab.c (psym_lookup_symbol): Make "block" const.
3511 (maintenance_check_psymtabs): Make "b" const.
3512 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3513 (enumerate_locals, enumerate_args): Update.
3514 * python/py-symtab.c (stpy_global_block): Make "block" const.
3515 (stpy_static_block): Likewise.
3516 * inline-frame.c (block_starting_point_at): Make "new_block"
3518 * block.c (find_block_in_blockvector): Make return type const.
3519 (blockvector_for_pc_sect): Make "b" const.
3520 (find_block_in_blockvector): Make "b" const.
3522 2019-03-23 Tom Tromey <tom@tromey.com>
3524 * varobj.c (varobj_create): Update.
3525 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3526 * printcmd.c (display_command, do_one_display): Don't reset
3528 * parser-defs.h (enum innermost_block_tracker_type): Move to
3530 (innermost_block): Update comment.
3531 * parse.c (parse_exp_1): Add tracker_types parameter.
3532 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3533 tracker_types parameter. Reset innermost_block.
3534 (parse_exp_in_context): Remove.
3535 (parse_expression_for_completion): Update.
3536 * objfiles.c (~objfile): Don't reset expression_context_block or
3538 * expression.h (enum innermost_block_tracker_type): Move from
3540 (parse_exp_1): Add tracker_types parameter.
3541 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3542 reset innermost_block.
3544 2019-03-23 Tom Tromey <tom@tromey.com>
3546 * objfiles.h: Include bcache.h.
3548 2019-03-23 Tom Tromey <tom@tromey.com>
3550 * linespec.c (get_current_search_block): Use
3551 scoped_restore_current_language.
3552 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3554 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3555 Jiong Wang <jiong.wang@arm.com>
3557 * aarch64-linux-tdep.c
3558 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3560 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3562 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3563 Jiong Wang <jiong.wang@arm.com>
3565 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3567 (aarch64_analyze_prologue_test): Add PACIASP test.
3568 (aarch64_prologue_prev_register): Unmask PC value.
3570 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3571 Jiong Wang <jiong.wang@arm.com>
3573 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3574 (aarch64_dwarf2_prev_register): Unmask PC value.
3575 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3576 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3577 DW_CFA_AARCH64_negate_ra_state.
3578 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3580 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3581 Jiong Wang <jiong.wang@arm.com>
3583 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3585 (aarch64_pseudo_register_name): Likewise.
3586 (aarch64_pseudo_register_type): Likewise.
3587 (aarch64_pseudo_register_reggroup_p): Likewise.
3588 (aarch64_gdbarch_init): Add pauth registers.
3589 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3590 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3591 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3592 (struct gdbarch_tdep): Add regnum for ra_state.
3594 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3595 Jiong Wang <jiong.wang@arm.com>
3597 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3599 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3600 Jiong Wang <jiong.wang@arm.com>
3602 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3604 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3605 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3606 (aarch64_gdbarch_init): Add puth registers.
3607 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3608 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3609 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3611 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3612 Jiong Wang <jiong.wang@arm.com>
3614 * aarch64-linux-nat.c
3615 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3616 * aarch64-linux-tdep.c
3617 (aarch64_linux_core_read_description): Likewise.
3618 (aarch64_linux_get_hwcap): New function.
3619 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3620 (aarch64_linux_get_hwcap): New declaration.
3622 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3623 Jiong Wang <jiong.wang@arm.com>
3625 * aarch64-linux-nat.c
3626 (aarch64_linux_nat_target::read_description): Add pauth param.
3627 * aarch64-linux-tdep.c
3628 (aarch64_linux_core_read_description): Likewise.
3629 * aarch64-tdep.c (struct target_desc): Add in pauth.
3630 (aarch64_read_description): Add pauth param.
3631 (aarch64_gdbarch_init): Likewise.
3632 * aarch64-tdep.h (aarch64_read_description): Likewise.
3633 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3634 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3635 * features/Makefile: Add new files.
3636 * features/aarch64-pauth.c: New file.
3637 * features/aarch64-pauth.xml: New file.
3639 2019-03-20 Tom Tromey <tromey@adacore.com>
3641 * infrun.c (handle_inferior_event): Rename from
3642 handle_inferior_event_1. Create a scoped_value_mark.
3643 (handle_inferior_event): Remove.
3645 2019-03-19 Tom Tromey <tromey@adacore.com>
3647 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3648 * infrun.h (print_stop_event): Add "displays" parameter.
3649 * infrun.c (print_stop_event): Add "displays" parameter.
3651 2019-03-19 Pedro Alves <palves@redhat.com>
3653 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3654 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3655 to -1. Fix TABs vs spaces.
3656 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3657 * tui/tui-out.h (tui_ui_out) Add intro comments.
3658 <m_line, m_start_of_line>: In-class initialize, and add describing
3661 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3663 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3665 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3667 2019-03-18 Pedro Alves <palves@redhat.com>
3668 Eli Zaretskii <eliz@gnu.org>
3670 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3671 m_line and m_start_of_line.
3673 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3675 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3676 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3677 it returns a newline. This fixes a regression in TU mode, whereby
3678 the next line is output on the same screen line as the user input.
3680 2019-03-18 Tom Tromey <tromey@adacore.com>
3682 * minsyms.c (minimal_symbol_reader::install): Remove call to
3685 2019-03-18 Pedro Alves <palves@redhat.com>
3687 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3689 (apply_style): New, factored out from ...
3690 (apply_ansi_escape): ... this. Handle reverse video mode.
3691 (tui_set_reverse_mode): New function.
3692 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3693 * tui/tui-winsource.c (tui_show_source_line): Use
3694 tui_set_reverse_mode instead of setting A_STANDOUT.
3695 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3698 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3700 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3703 2019-03-18 Tom Tromey <tromey@adacore.com>
3705 * ada-lang.c (empty_array): Add "high" parameter.
3706 (ada_evaluate_subexp): Update.
3708 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3710 * unittests/string_view-selftests.c: Define
3711 _initialize_string_view_selftests unconditionally.
3713 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3716 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3718 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3721 * windows-nat.c (display_selector): Fix format specifiers.
3723 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3725 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3726 tui_refill_source_window instead of tui_refresh_win, to update the
3727 current execution line. This fixes redisplay of the current line
3728 when stepping through the code with "next" or "step".
3730 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3732 * source-cache.c (source_cache::get_source_lines): Call
3733 find_source_lines to initialize s->nlines. This fixes vertical
3734 scrolling of TUI source window when the DOWN arrow is pressed.
3736 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3738 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3739 linux-thread-db.c (_initialize_thread_db): Likewise.
3741 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3743 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3744 wclrtoeol in tui_show_source_line". This reverts changes made in
3745 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3747 2019-03-15 Tom Tromey <tom@tromey.com>
3749 * symtab.h (struct minimal_symbol): Derive from
3750 general_symbol_info.
3751 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3752 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3753 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3754 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3755 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3756 (MSYMBOL_SEARCH_NAME): Update.
3757 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3758 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3759 * minsyms.c (minimal_symbol_reader::record_full): Update.
3761 2019-03-15 Tom Tromey <tom@tromey.com>
3763 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3765 2019-03-15 Tom Tromey <tom@tromey.com>
3767 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3769 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3771 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3772 (build_minimal_symbol_hash_tables)
3773 (minimal_symbol_reader::install): Update.
3775 2019-03-15 Tom Tromey <tom@tromey.com>
3777 * symtab.c (create_demangled_names_hash): Update.
3778 (symbol_set_names): Update.
3779 * objfiles.h (struct objfile_per_bfd_storage)
3780 <demangled_names_hash>: Now an htab_up.
3781 * objfiles.c (objfile_per_bfd_storage): Simplify.
3783 2019-03-15 Tom Tromey <tom@tromey.com>
3785 * objfiles.h (struct objfile_per_bfd_storage): Declare
3787 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3789 (get_objfile_bfd_data): Use new. Don't initialize
3791 (free_objfile_per_bfd_storage): Remove.
3792 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3794 2019-03-15 Tom Tromey <tom@tromey.com>
3796 * symfile.c (reread_symbols): Update.
3797 * objfiles.c (objfile::objfile): Update.
3798 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3799 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3801 (minimal_symbol_reader::install): Update.
3802 (terminate_minimal_symbol_table): Remove.
3803 * jit.c (jit_object_close_impl): Update.
3805 2019-03-15 Tom Tromey <tom@tromey.com>
3807 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3810 2019-03-15 Tom Tromey <tom@tromey.com>
3812 * objfiles.h (struct objfile_per_bfd_storage)
3813 <demangled_hash_languages>: Now a bitset.
3814 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3815 (lookup_minimal_symbol): Update.
3817 2019-03-15 Tom Tromey <tom@tromey.com>
3819 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3820 Don't return the symbol.
3821 * coffread.c (record_minimal_symbol): Use record_full.
3823 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3825 The MS-Windows port of ncurses fails to switch to a color pair if
3826 one or both of the colors are the implicit default colors. This
3827 change records the default colors when TUI is initialized, and
3828 then specifies them explicitly when a color pair uses the default
3829 colors. This allows color styling in TUI mode on MS-Windows.
3831 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3833 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3834 colors in ncurses_norm_attr.
3835 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3836 "none", replace it with the default color recorded in
3839 2019-03-14 Tom Tromey <tromey@adacore.com>
3841 * source-cache.h (class source_cache) <get_source_lines>: Return
3843 * source-cache.c (source_cache::extract_lines): Handle case where
3844 first_pos==npos. Return std::string.
3845 (source_cache::get_source_lines): Update.
3847 2019-03-14 Tom Tromey <tromey@adacore.com>
3849 * NEWS: Add item for "style sources" commands.
3850 * source-cache.c (source_cache::get_source_lines): Check
3852 * cli/cli-style.c (source_styling): New global.
3853 (_initialize_cli_style): Add "style sources" commands.
3854 (show_style_sources): New function.
3855 * cli/cli-style.h (source_styling): Declare.
3857 2019-03-14 Pedro Alves <palves@redhat.com>
3858 Tom Tromey <tromey@adacore.com>
3860 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3861 * tui/tui-winsource.c (tui_refill_source_window): New function,
3863 (tui_horizontal_source_scroll): ... here. Move some logic.
3864 * cli/cli-style.c (set_style_enabled): Notify new observable.
3865 * tui/tui-hooks.c (tui_redisplay_source): New function.
3866 (tui_attach_detach_observers): Attach or detach
3867 tui_redisplay_source.
3868 * observable.h (source_styling_changed): New observable.
3869 * observable.c: Define source_styling_changed observable.
3871 2019-03-13 Tom Tromey <tromey@adacore.com>
3873 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3874 (i386_gnu_nat_target::store_registers): Update.
3875 * target-debug.h (target_debug_print_std_string): New macro.
3876 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3877 * windows-tdep.c (display_one_tib): Update.
3878 * tui/tui-stack.c (tui_make_status_line): Update.
3879 * top.c (print_inferior_quit_action): Update.
3880 * thread.c (thr_try_catch_cmd): Update.
3881 (add_thread_with_info): Update.
3882 (thread_target_id_str): Update.
3883 (thr_try_catch_cmd): Update.
3884 (thread_command): Update.
3885 (thread_find_command): Update.
3886 * record-btrace.c (record_btrace_target::info_record)
3887 (record_btrace_resume_thread, record_btrace_target::resume)
3888 (record_btrace_cancel_resume, record_btrace_step_thread)
3889 (record_btrace_target::wait, record_btrace_target::wait)
3890 (record_btrace_target::wait, record_btrace_target::stop): Update.
3891 * progspace.c (print_program_space): Update.
3892 * process-stratum-target.c
3893 (process_stratum_target::thread_address_space): Update.
3894 * linux-fork.c (linux_fork_mourn_inferior)
3895 (detach_checkpoint_command, info_checkpoints_command)
3896 (linux_fork_context): Update.
3897 (linux_fork_detach): Update.
3898 (class scoped_switch_fork_info): Update.
3899 (delete_checkpoint_command): Update.
3900 * infrun.c (follow_fork_inferior): Update.
3901 (follow_fork_inferior): Update.
3902 (proceed_after_vfork_done): Update.
3903 (handle_vfork_child_exec_or_exit): Update.
3904 (follow_exec): Update.
3905 (displaced_step_prepare_throw): Update.
3906 (displaced_step_restore): Update.
3907 (start_step_over): Update.
3909 (clear_proceed_status_thread): Update.
3911 (print_target_wait_results): Update.
3912 (do_target_wait): Update.
3913 (context_switch): Update.
3914 (stop_all_threads): Update.
3915 (restart_threads): Update.
3916 (finish_step_over): Update.
3917 (handle_signal_stop): Update.
3918 (switch_back_to_stepped_thread): Update.
3919 (keep_going_pass_signal): Update.
3920 (print_exited_reason): Update.
3921 (normal_stop): Update.
3922 * inferior.c (inferior_pid_to_str): Change return type.
3923 (print_selected_inferior): Update.
3924 (add_inferior): Update.
3925 (detach_inferior): Update.
3926 * dummy-frame.c (fprint_dummy_frames): Update.
3927 * dcache.c (dcache_info_1): Update.
3928 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3929 (btrace_fetch, btrace_clear): Update.
3930 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3931 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3933 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3934 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3935 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3936 * gdbarch.c, gdbarch.h: Rebuild.
3937 * gdbarch.sh (core_pid_to_str): Change return type.
3938 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3940 (windows_nat_target::pid_to_str): Change return type.
3941 (windows_delete_thread): Update.
3942 (windows_nat_target::attach): Update.
3943 (windows_nat_target::files_info): Update.
3944 * target-delegates.c: Rebuild.
3945 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3947 (sol_thread_target::pid_to_str): Change return type.
3948 * remote.c (class remote_target) <pid_to_str>: Change return
3950 (remote_target::pid_to_str): Change return type.
3951 (extended_remote_target::attach, remote_target::remote_stop_ns)
3952 (remote_target::remote_notif_remove_queued_reply)
3953 (remote_target::push_stop_reply, remote_target::disable_btrace):
3955 (extended_remote_target::attach): Update.
3956 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3958 (gdbsim_target::pid_to_str): Change return type.
3959 * ravenscar-thread.c (struct ravenscar_thread_target)
3960 <pid_to_str>: Change return type.
3961 (ravenscar_thread_target::pid_to_str): Change return type.
3962 * procfs.c (class procfs_target) <pid_to_str>: Change return
3964 (procfs_target::pid_to_str): Change return type.
3965 (procfs_target::attach): Update.
3966 (procfs_target::detach): Update.
3967 (procfs_target::fetch_registers): Update.
3968 (procfs_target::store_registers): Update.
3969 (procfs_target::wait): Update.
3970 (procfs_target::files_info): Update.
3971 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3972 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3974 (nto_procfs_target::pid_to_str): Change return type.
3975 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3976 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3978 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3980 (attach_proc_task_lwp_callback, get_detach_signal)
3981 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3982 (linux_nat_target::resume, wait_lwp, stop_callback)
3983 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3984 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3985 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3986 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3987 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3989 (inf_ptrace_target::attach): Update.
3990 (inf_ptrace_target::files_info): Update.
3991 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3993 (go32_nat_target::pid_to_str): Change return type.
3994 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3995 (gnu_nat_target::wait): Update.
3996 (gnu_nat_target::wait): Update.
3997 (gnu_nat_target::resume): Update.
3998 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3999 (fbsd_nat_target::wait): Update.
4000 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
4002 (darwin_nat_target::attach): Update.
4003 * corelow.c (class core_target) <pid_to_str>: Change return type.
4004 (core_target::pid_to_str): Change return type.
4005 * target.c (normal_pid_to_str): Change return type.
4006 (default_pid_to_str): Likewise.
4007 (target_pid_to_str): Change return type.
4008 (target_translate_tls_address): Update.
4009 (target_announce_detach): Update.
4010 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
4012 (bsd_uthread_target::pid_to_str): Change return type.
4013 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
4015 (bsd_kvm_target::pid_to_str): Change return type.
4016 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
4018 (aix_thread_target::pid_to_str): Change return type.
4019 * target.h (struct target_ops) <pid_to_str>: Change return type.
4020 (target_pid_to_str, normal_pid_to_str): Likewise.
4021 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4023 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4025 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4027 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4029 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4031 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4034 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4036 * NEWS: Mention that the new default MI version is 3. Mention
4037 changes to the output of commands and events that deal with
4038 multi-location breakpoints.
4039 * breakpoint.c: Include "mi/mi-out.h".
4040 (print_one_breakpoint): Change output syntax if using MI version
4042 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4044 (mi_multi_location_breakpoint_output_fixed): New.
4045 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4046 (mi_cmd_fix_multi_location_breakpoint_output): New.
4047 (mi_multi_location_breakpoint_output_fixed): New.
4048 * mi/mi-cmds.c (mi_cmds): Register command
4049 -fix-multi-location-breakpoint-output.
4050 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4053 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4055 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4056 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4057 instantiate mi_ui_out based on interpreter name.
4058 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4059 * mi/mi-main.c (mi_load_progress): Likewise.
4061 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4063 * NEWS: Combine separate "New targets" sections for 8.3.
4065 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4067 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4068 (ppcfbsd_init_abi): Install gdbarch
4069 "fetch_tls_load_module_address" and "get_thread_local_address"
4072 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4074 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4075 (riscv_fbsd_init_abi): Install gdbarch
4076 "fetch_tls_load_module_address" and "get_thread_local_address"
4079 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4081 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4082 (i386fbsd_init_abi): Install gdbarch
4083 "fetch_tls_load_module_address" and "get_thread_local_address"
4086 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4088 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4089 (amd64fbsd_init_abi): Install gdbarch
4090 "fetch_tls_load_module_address" and "get_thread_local_address"
4093 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4095 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4096 (struct fbsd_pspace_data): New type.
4097 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4098 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4099 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4100 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4101 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4103 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4105 * gdbtypes.c (lookup_struct_elt): New function.
4106 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4107 * gdbtypes.h (struct struct_elt): New type.
4108 (lookup_struct_elt): New prototype.
4110 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4112 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4113 remove disabled code block.
4115 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4117 * gdbarch.sh (get_thread_local_address): New method.
4118 * gdbarch.h, gdbarch.c: Regenerate.
4119 * target.c (target_translate_tls_address): Use
4120 gdbarch_get_thread_local_address if present instead of
4121 target::get_thread_local_address.
4123 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4125 * target.h (target::get_thread_local_address): Update comment.
4127 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4129 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4130 objfile->separate_debug_objfile_backlink if not NULL.
4132 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4134 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4135 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4136 (amd64bsd_store_inferior_registers): Likewise.
4137 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4138 Enable segment base registers.
4139 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4140 PT_GETFSBASE and PT_GETGSBASE.
4141 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4143 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4144 segment base registers.
4145 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4147 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4149 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4150 Update calls to i386_target_description to add 'segments'
4152 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4153 add segment base registers.
4154 * arch/i386.c (i386_create_target_description): Add 'segments'
4155 parameter to enable segment base registers.
4156 * arch/i386.h (i386_create_target_description): Likewise.
4157 * features/i386/32bit-segments.xml: New file.
4158 * features/i386/32bit-segments.c: Generate.
4159 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4160 call to i386_target_description to add 'segments' parameter.
4161 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4162 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4163 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4164 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4165 if feature is present.
4166 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4167 Add 'segments' parameter to call to i386_target_description.
4168 (i386_target_description): Add 'segments' parameter to enable
4169 segment base registers.
4170 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4171 to call to i386_target_description.
4172 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4173 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4174 Define I386_NUM_REGS.
4175 (i386_target_description): Add 'segments' parameter to enable
4176 segment base registers.
4178 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4181 * source-cache.c: #undef open and close, to avoid unresolved
4182 externals during linking.
4184 2019-03-12 Tom Tromey <tromey@adacore.com>
4186 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4187 const. Add initializers.
4188 (_initialize_remote): Don't initialize ptid globals.
4190 2019-03-12 Pedro Alves <palves@redhat.com>
4192 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4194 2019-03-12 Pedro Alves <palves@redhat.com>
4196 * cp-name-parser.y (main): Remove unused 'len' variable.
4198 2019-03-12 Tom Tromey <tromey@adacore.com>
4200 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4201 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4203 2019-03-12 Tom Tromey <tromey@adacore.com>
4205 * linux-nat.c (iterate_over_lwps): Update.
4206 (stop_callback): Remove parameter.
4207 (stop_wait_callback, detach_callback, resume_set_callback)
4208 (select_singlestep_lwp_callback, set_ignore_sigint)
4209 (status_callback, resumed_callback, resume_clear_callback)
4210 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4212 (linux_nat_target::detach, linux_nat_target::resume)
4213 (linux_stop_and_wait_all_lwps, select_event_lwp)
4214 (linux_nat_filter_event, linux_nat_wait_1)
4215 (linux_nat_target::kill, linux_nat_target::stop)
4216 (linux_nat_target::stop): Update.
4217 (linux_nat_resume_callback): Change type.
4218 (resume_stopped_resumed_lwps, count_events_callback)
4219 (select_event_lwp_callback): Likewise.
4220 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4221 * arm-linux-nat.c (struct update_registers_data): Remove.
4222 (update_registers_callback): Change type.
4223 (arm_linux_insert_hw_breakpoint1): Update.
4224 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4226 (x86_linux_dr_set_addr): Update.
4227 (x86_linux_dr_set_control): Update.
4228 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4229 (iterate_over_lwps): Use gdb::function_view.
4230 * nat/aarch64-linux-hw-point.c (struct
4231 aarch64_dr_update_callback_param): Remove.
4232 (debug_reg_change_callback): Change type.
4233 (aarch64_notify_debug_reg_change): Update.
4234 * s390-linux-nat.c (s390_refresh_per_info): Update.
4236 2019-03-11 Tom Tromey <tromey@adacore.com>
4238 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4239 redundant assignment to "this_cu".
4241 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4243 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4245 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4247 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4249 (rank_one_type): ... this.
4251 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4253 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4255 (rank_one_type): ... this.
4257 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4259 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4261 (rank_one_type): ... this.
4263 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4265 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4267 (rank_one_type): ... this.
4269 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4271 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4273 (rank_one_type): ... this.
4275 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4277 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4279 (rank_one_type): ... this.
4281 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4283 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4285 (rank_one_type): ... this.
4287 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4289 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4291 (rank_one_type): ... this.
4293 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4295 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4297 (rank_one_type): ... this.
4299 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4301 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4303 (rank_one_type): ... this.
4305 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4307 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4309 (rank_one_type): ... this.
4311 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4313 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4315 (rank_one_type): ... this.
4317 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4319 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4320 inferior-events' shows the example events.
4322 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4324 Support styling on native MS-Windows console
4327 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4328 on MS-Windows if $TERM is not defined.
4330 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4332 * posix-hdep.c (gdb_console_fputs):
4333 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4335 * ui-file.h (gdb_console_fputs): Add prototype.
4337 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4338 back to fputs only if the former returns zero.
4340 2019-03-07 Tom Tromey <tom@tromey.com>
4342 * symmisc.c (print_symbol_bcache_statistics): Update.
4343 (print_objfile_statistics): Update.
4344 * symfile.c (allocate_symtab): Update.
4345 * stabsread.c: Don't include bcache.h.
4346 * psymtab.h (struct psymbol_bcache): Don't declare.
4347 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4348 (psymbol_bcache_init, psymbol_bcache_free)
4349 (psymbol_bcache_get_bcache): Don't declare.
4350 * psymtab.c (struct psymbol_bcache): Remove.
4351 (psymtab_storage::psymtab_storage): Update.
4352 (psymtab_storage::~psymtab_storage): Update.
4353 (psymbol_bcache_init, psymbol_bcache_free)
4354 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4355 (add_psymbol_to_bcache): Update.
4356 (allocate_psymtab): Update.
4357 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4358 macro_cache>: No longer pointers.
4359 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4360 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4361 * macrotab.c (macro_bcache): Update.
4362 * macroexp.c: Don't include bcache.h.
4363 * gdbtypes.c (check_types_worklist): Update.
4364 (types_deeply_equal): Remove TRY/CATCH. Update.
4365 * elfread.c (elf_symtab_read): Update.
4366 * dwarf2read.c: Don't include bcache.h.
4367 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4368 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4369 (print_bcache_statistics, bcache_memory_used): Don't declare.
4370 (struct bcache): Move from bcache.c. Add constructor, destructor,
4371 methods. Rename all data members.
4372 * bcache.c (struct bcache): Move to bcache.h.
4373 (bcache::expand_hash_table): Rename from expand_hash_table.
4375 (bcache::insert): Rename from bcache_full.
4376 (bcache::compare): Rename from bcache_compare.
4377 (bcache_xmalloc): Remove.
4378 (bcache::~bcache): Rename from bcache_xfree.
4379 (bcache::print_statistics): Rename from print_bcache_statistics.
4380 (bcache::memory_used): Rename from bcache_memory_used.
4382 2019-03-07 Pedro Alves <palves@redhat.com>
4384 * infrun.c (normal_stop): Also check for
4385 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4387 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4389 * f-lang.c (value_from_host_double): Moved to...
4390 * value.c (value_from_host_double): ...here.
4391 * value.h (value_from_host_double): Declare.
4392 * guile/scm-math.c (vlscm_convert_typed_number): Use
4393 value_from_host_double.
4394 (vlscm_convert_number): Likewise.
4395 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4396 * python/py-value.c (convert_value_from_python): Likewise.
4398 2019-03-06 Tom Tromey <tom@tromey.com>
4400 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4402 2019-03-06 Tom Tromey <tom@tromey.com>
4404 * utils.h (free_current_contents): Don't declare.
4405 * utils.c (free_current_contents): Remove.
4407 2019-03-06 Tom Tromey <tom@tromey.com>
4409 * top.c (quit_force): Update.
4410 * main.c (captured_command_loop): Update.
4411 * common/new-op.c (operator new): Update.
4412 * common/common-exceptions.c (struct catcher)
4413 <save_cleanup_chain>: Remove member.
4414 (exceptions_state_mc_init): Update.
4415 (exception_try_scope_entry): Return nullptr.
4416 (exception_try_scope_exit, exception_rethrow)
4417 (throw_exception_sjlj, throw_exception_cxx): Update.
4418 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4419 (all_cleanups, do_cleanups, discard_cleanups)
4420 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4421 (restore_cleanups, restore_final_cleanups): Don't declare.
4422 (do_final_cleanups): Remove parameter.
4423 * common/cleanups.c (cleanup_chain, make_cleanup)
4424 (make_cleanup_dtor, all_cleanups, do_cleanups)
4425 (discard_my_cleanups, discard_cleanups)
4426 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4427 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4428 (null_cleanup): Remove.
4429 (do_final_cleanups): Remove parameter.
4431 2019-03-06 Tom Tromey <tom@tromey.com>
4433 * remote.c (remote_target::remote_parse_stop_reply): Use
4436 2019-03-06 Tom Tromey <tom@tromey.com>
4438 * stabsread.c (struct stabs_field_info): Rename from field_info.
4439 <list, fnlist>: Add initializers.
4440 <obstack>: New member.
4441 (read_member_functions, read_struct_fields, read_baseclasses):
4442 Allocate on obstack. Don't use cleanups.
4443 (read_one_struct_field, read_member_functions, read_struct_fields)
4444 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4445 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4446 (read_struct_type): Update.
4448 2019-03-06 Tom Tromey <tom@tromey.com>
4450 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4451 * common/filestuff.h (make_cleanup_close): Don't declare.
4452 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4455 2019-03-06 Tom Tromey <tom@tromey.com>
4457 * solib-aix.c: Use make_scope_exit.
4459 2019-03-06 Tom Tromey <tom@tromey.com>
4461 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4462 Use make_scope_exit.
4464 2019-03-06 Tom Tromey <tom@tromey.com>
4466 * solib-svr4.c (disable_probes_interface): Remove parameter.
4467 (svr4_handle_solib_event): Use make_scope_exit.
4469 2019-03-06 Tom Tromey <tom@tromey.com>
4471 * remote.c (struct stop_reply_deleter): Remove.
4472 (stop_reply_up): Update.
4473 (struct stop_reply): Derive from notif_event. Don't typedef.
4474 <regcache>: Now a std::vector.
4475 (stop_reply_xfree): Remove.
4476 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4477 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4478 (remote_target::discard_pending_stop_replies): Use delete.
4479 (remote_target::remote_parse_stop_reply): Update.
4480 (remote_target::process_stop_reply): Update.
4481 * remote-notif.h (struct notif_event): Add virtual destructor.
4482 Remove "dtr" member.
4483 (struct notif_client) <alloc_event>: Return a unique_ptr.
4484 (notif_event_xfree): Don't declare.
4485 (notif_event_up): New typedef.
4486 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4487 (notif_event_xfree, do_notif_event_xfree): Remove.
4488 (remote_notif_state_xfree): Update.
4490 2019-03-06 Tom Tromey <tom@tromey.com>
4492 * infrun.c (displaced_step_clear_cleanup): Now a
4493 forward_scope_exit type.
4494 (displaced_step_prepare_throw): Update.
4495 (displaced_step_fixup): Update.
4497 2019-03-06 Tom Tromey <tom@tromey.com>
4499 * inferior.h (class inferior): Update comment.
4500 * gdbthread.h (class thread_info): Update comment.
4502 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4503 Tom Tromey <tom@tromey.com>
4505 * stabsread.h (struct stab_section_list): Remove.
4506 (coffstab_build_psymtabs): Update.
4507 * dbxread.c (symbuf_sections): Now a std::vector.
4508 (sect_idx): New global.
4509 (fill_symbuf): Update.
4510 (coffstab_build_psymtabs): Change type of stabsects parameter.
4512 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4514 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4515 (coff_locate_sections): Update.
4516 (coff_symfile_read): Remove cleanups. Update.
4517 (init_stringtab): Add storage parameter.
4518 (free_stringtab, free_stringtab_cleanup): Remove.
4519 (init_lineno): Add storage parameter.
4520 (free_linetab, free_linetab_cleanup): Remove.
4522 2019-03-06 Pedro Alves <palves@redhat.com>
4524 * linux-fork.c (fork_info::clobber_regs): Delete.
4525 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4526 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4528 (scoped_switch_fork_info::scoped_switch_fork_info)
4529 (checkpoint_command, linux_fork_context): Adjust
4530 fork_save_infrun_state calls.
4532 2019-03-06 Pedro Alves <palves@redhat.com>
4534 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4535 (inf_has_multiple_threads): Return 'bool' and rewrite using
4536 inferior_info::threads().
4538 2019-03-06 Pedro Alves <palves@redhat.com>
4540 * linux-fork.c: Include <list>.
4541 (fork_list): Now a std::list instance.
4542 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4543 (forks_exist_p, find_last_fork): Adjust.
4547 (free_fork): Delete, folded into fork_info::~fork_info().
4548 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4550 (init_fork_list): Delete.
4551 (linux_fork_killall, linux_fork_mourn_inferior)
4552 (linux_fork_detach, info_checkpoints_command): Adjust.
4553 (_initialize_linux_fork): No longer call init_fork_list.
4555 2019-03-06 Pedro Alves <palves@redhat.com>
4557 * linux-fork.c (new_fork): New, split out of ...
4558 (add_fork): ... this. Return void. Move "first fork" special
4559 case from here, to ...
4560 (checkpoint_command): ... here.
4561 * linux-linux.h (add_fork): Return void.
4563 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4565 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4567 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4568 Chris January <chris.january@arm.com>
4569 David Lecomber <david.lecomber@arm.com>
4571 * f-exp.y: New token, UNOP_INTRINSIC.
4572 (exp): New pattern using UNOP_INTRINSIC token.
4573 (f77_keywords): Add 'abs' keyword.
4574 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4575 (value_from_host_double): New function.
4576 (evaluate_subexp_f): Support UNOP_ABS.
4578 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4580 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4583 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4585 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4586 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4587 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4589 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4591 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4593 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4594 Chris January <chris.january@arm.com>
4596 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4597 * f-exp.y: Define 'KIND' token.
4598 (exp): New pattern for KIND expressions.
4599 (ptype): Handle types with a kind extension.
4600 (direct_abs_decl): Extend to spot kind extensions.
4601 (f77_keywords): Add 'kind' to the list.
4602 (push_kind_type): New function.
4603 (convert_to_kind_type): New function.
4604 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4605 * parse.c (operator_length_standard): Likewise.
4606 * parser-defs.h (enum type_pieces): Add tp_kind.
4607 * std-operator.def: Add UNOP_KIND.
4609 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4611 * f-exp.y (f_parse): Set yydebug.
4613 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4615 * f-lang.c (evaluate_subexp_f): New function.
4616 (exp_descriptor_f): New global.
4617 (f_language_defn): Use exp_descriptor_f instead of
4618 exp_descriptor_standard.
4620 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4622 * f-exp.y (struct token): Add comments.
4623 (dot_ops): Remove uppercase versions and the end marker.
4624 (f77_keywords): Likewise.
4625 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4626 entries in the dot_ops array are case insensitive, and use
4627 strncasecmp to compare strings. Also some whitespace cleanup in
4628 this area. Similar for the f77_keywords array, except entries in
4629 this list might be case sensitive.
4631 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4633 * f-exp.y (struct f77_boolean_val): Add comments.
4634 (boolean_values): Remove uppercase versions, and end marker.
4635 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4636 and use strncasecmp to achieve case insensitivity. Additionally,
4637 perform whitespace cleanup around this code.
4639 2019-03-06 Tom Tromey <tromey@adacore.com>
4641 * remote-sim.c (gdbsim_target_open): Use result of
4644 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4645 Dirk Schubert <dirk.schubert@arm.com>
4646 Chris January <chris.january@arm.com>
4648 * eval.c (evaluate_subexp_standard): Call Fortran argument
4650 * f-lang.c (struct value): A value which can be passed into a
4651 Fortran function call.
4652 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4654 (struct type): Value ready for a Fortran function call.
4655 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4657 * f-lang.h (fortran_argument_convert): Declaration.
4658 (fortran_preserve_arg_pointer): Declaration.
4659 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4661 2019-03-05 Tom Tromey <tromey@adacore.com>
4663 * python/py-prettyprint.c (print_string_repr): Remove #if.
4664 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4666 2019-03-05 Tom Tromey <tromey@adacore.com>
4668 * target.c (the_dummy_target): Move later. Change type to
4670 (initialize_targets): Don't initialize the_dummy_target.
4672 2019-03-05 Tom Tromey <tromey@adacore.com>
4674 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4675 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4677 2019-03-05 Tom Tromey <tromey@adacore.com>
4679 * windows-nat.c (windows_nat_target::attach)
4680 (windows_nat_target::detach): Don't call gdb_flush.
4681 * valprint.c (generic_val_print, val_print, val_print_string):
4682 Don't call gdb_flush.
4683 * utils.c (defaulted_query): Don't call gdb_flush.
4684 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4685 * target.c (target_announce_detach): Don't call gdb_flush.
4686 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4687 * remote.c (extended_remote_target::attach): Don't call
4689 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4690 * printcmd.c (do_examine): Don't call gdb_flush.
4691 (info_display_command): Don't call gdb_flush.
4692 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4693 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4694 * memattr.c (info_mem_command): Don't call gdb_flush.
4695 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4696 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4697 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4698 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4699 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4700 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4701 (gnu_nat_target::detach): Don't call gdb_flush.
4702 * f-valprint.c (f_val_print): Don't call gdb_flush.
4703 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4704 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4705 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4707 * c-valprint.c (c_val_print): Don't call gdb_flush.
4708 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4710 2019-03-05 Tom Tromey <tromey@adacore.com>
4712 * varobj.c (update_dynamic_varobj_children): Update.
4713 (install_default_visualizer): Use reset, not release.
4714 * value.c (set_internalvar): Update.
4715 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4716 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4717 ATTRIBUTE_UNUSED_RESULT.
4719 2019-03-05 Tom Tromey <tromey@adacore.com>
4721 * remote.c (class scoped_remote_fd) <release>: Add
4722 ATTRIBUTE_UNUSED_RESULT.
4724 2019-03-05 Tom Tromey <tromey@adacore.com>
4726 * macroexp.c (struct macro_buffer) <release>: Add
4727 ATTRIBUTE_UNUSED_RESULT.
4729 2019-03-05 Tom Tromey <tromey@adacore.com>
4731 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4732 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4733 ATTRIBUTE_UNUSED_RESULT.
4735 2019-03-05 Tom Tromey <tromey@adacore.com>
4737 * common/scoped_fd.h (class scoped_fd) <release>: Add
4738 ATTRIBUTE_UNUSED_RESULT.
4740 2019-03-05 Tom Tromey <tromey@adacore.com>
4742 * parser-defs.h (struct parser_state) <release>: Add
4743 ATTRIBUTE_UNUSED_RESULT.
4745 2019-03-05 Tom Tromey <tromey@adacore.com>
4747 * utils.h (class gdb_argv) <release>: Add
4748 ATTRIBUTE_UNUSED_RESULT.
4749 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4751 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4753 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4754 for-loop range, to avoid compiler warnings.
4756 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4757 avoid compiler warnings about unused variables.
4759 * NEWS: Mention end of support for native debugging on MS-Windows
4763 * common/netstuff.c:
4764 * gdbserver/gdbreplay.c
4765 * gdbserver/remote-utils.c:
4767 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4768 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4769 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4770 'getaddrinfo' and 'freeaddrinfo' were not available before
4771 Windows XP, and mingw.org's MinGW headers by default define
4772 _WIN32_WINNT to 0x500.
4774 2019-03-01 Gary Benson <gbenson@redhat.com>
4776 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4778 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4779 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4782 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4783 set_sigint_trap, clear_sigint_trap.
4785 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4787 * target.c (target_detach): Clear the regcache and the
4790 2019-02-27 Pedro Alves <palves@redhat.com>
4792 * utils.c (set_screen_size): When we cap the height/width sizes,
4793 tweak the corresponding command variable to show "unlimited":
4795 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4796 Pedro Alves <palves@redhat.com>
4798 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4799 before calling rl_set_screen_size.
4801 2019-02-27 Tom Tromey <tromey@adacore.com>
4803 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4805 * python/py-value.c: Remove Python 2.4 workaround.
4806 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4808 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4809 Python 2.4 workaround.
4810 * python/python-internal.h: Remove Python 2.4 comment.
4811 (Py_ssize_t): Don't define.
4812 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4813 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4814 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4815 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4816 * python/python.c (do_start_initialization): Remove Python 2.4
4818 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4819 (print_children): Remove Python 2.4 workaround.
4820 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4822 (CHARBUFFERPROC_NAME): Remove.
4823 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4824 Python 2.4 workaround.
4826 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4828 * NEWS: Note minimum Python version.
4830 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4832 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4833 code from these functions. Remove corresponding ifdefs. Use
4834 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4835 Remove gotos and target of gotos.
4836 (infpy_search_memory): Likewise.
4838 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4840 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4841 (hppa_gdbarch_init): Don't register deleted functions with
4844 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4846 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4847 (h8300_unwind_sp): Delete.
4848 (h8300_dummy_id): Delete.
4849 (h8300_gdbarch_init): Don't register deleted functions with
4852 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4854 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4855 (ft32_unwind_pc): Delete.
4856 (ft32_unwind_sp): Delete.
4857 (ft32_gdbarch_init): Don't register deleted functions with
4860 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4862 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4863 (frv_unwind_pc): Delete.
4864 (frv_unwind_sp): Delete.
4865 (frv_gdbarch_init): Don't register deleted functions with
4868 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4870 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4871 (riscv_unwind_pc): Delete.
4872 (riscv_unwind_sp): Delete.
4873 (riscv_gdbarch_init): Don't register deleted functions with
4876 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4878 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4879 (csky_unwind_pc): Delete.
4880 (csky_unwind_sp): Delete.
4881 (csky_gdbarch_init): Don't register deleted functions with
4884 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4886 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4887 (cris_unwind_pc): Delete.
4888 (cris_unwind_sp): Delete.
4889 (cris_gdbarch_init): Don't register deleted functions with
4892 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4894 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4895 (bfin_unwind_pc): Delete.
4896 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4898 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4900 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4901 (arm_unwind_pc): Delete.
4902 (arm_unwind_sp): Delete.
4903 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4905 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4907 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4908 (arc_unwind_pc): Delete.
4909 (arc_unwind_sp): Delete.
4910 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4912 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4914 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4915 (alpha_unwind_pc): Delete.
4916 (alpha_gdbarch_init): Don't register deleted functions with
4919 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4921 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4922 (aarch64_unwind_pc): Delete.
4923 (aarch64_unwind_sp): Delete.
4924 (aarch64_gdbarch_init): Don't register deleted functions with
4927 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4929 * gdbtypes.c (type_align): Don't consider static members when
4930 computing structure alignment.
4932 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4934 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4935 return 0 for other types.
4936 * arch-utils.c (default_type_align): Always return 0.
4937 * gdbarch.h: Regenerate.
4938 * gdbarch.sh (type_align): Extend comment.
4939 * gdbtypes.c (type_align): Add additional comments, always call
4940 gdbarch_type_align before applying the default rules.
4941 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4942 generic code will then apply a suitable default.
4943 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4944 types, return 0 for other types.
4946 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4948 * NEWS: Create a new section for the next release branch.
4949 Rename the section of the current branch, now that it has
4952 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4954 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4955 * version.in: Bump version to 8.3.50.DATE-git.
4957 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4959 * aix-thread.c (ptid_cmp): Remove unused variable.
4960 (get_signaled_thread): Likewise.
4961 (store_regs_user_thread): Likewise.
4962 (store_regs_kernel_thread): Likewise.
4963 (fetch_regs_kernel_thread): Remove shadowed variable.
4965 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4967 * features/riscv/32bit-cpu.xml: Add register numbers.
4968 * features/riscv/32bit-fpu.c: Regenerate.
4969 * features/riscv/32bit-fpu.xml: Add register numbers.
4970 * features/riscv/64bit-cpu.xml: Add register numbers.
4971 * features/riscv/64bit-fpu.c: Regenerate.
4972 * features/riscv/64bit-fpu.xml: Add register numbers.
4974 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4976 * NEWS: Mention two argument form of gdb.Value constructor.
4977 * python/py-value.c (convert_buffer_and_type_to_value): New
4979 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4980 Add support for handling an optional second argument. Call
4981 convert_buffer_and_type_to_value as appropriate.
4982 * python/python-internal.h (Py_buffer_deleter): New struct.
4983 (Py_buffer_up): New typedef.
4985 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4987 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4988 instead of releasing ownership.
4990 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4992 * dwarf2read.c (open_and_init_dwp_file): Call
4993 elf_numsections instead of bfd_count_sections to initialize
4994 dwp_file->num_sections.
4996 2019-02-25 Tom Tromey <tromey@adacore.com>
4998 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
5000 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
5002 * gcore.in: Add '--readnever' option when invoking GDB.
5004 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5006 * MAINTAINERS: Update my email address.
5008 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5010 * build-id.c (build_id_to_debug_bfd_1): New function.
5011 (build_id_to_debug_bfd): Look for separate debug file in
5014 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
5016 * gdbarch.sh: Update the copyright year range that is placed into
5019 2019-02-22 Keith Seitz <keiths@redhat.com>
5022 * linespec.c (create_sals_line_offset): Search for the default
5023 symtab's filename instead of its fullname.
5025 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5027 * NEWS: Update style defaults.
5029 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5031 * main.c (captured_main_1): Disable styling in batch mode.
5033 2019-02-20 Tom Tromey <tom@tromey.com>
5035 * symtab.c (symtab_symbol_info): Fix typos.
5037 2019-02-20 Tom Tromey <tromey@adacore.com>
5039 * findcmd.c (_initialize_mem_search): Use upper case for
5040 metasyntactic variables.
5042 2019-02-20 Alan Hayward <alan.hayward@arm.com>
5044 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5045 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5047 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5049 * top.h (source_file_name): Change to std::string.
5050 * top.c (source_file_name): Likewise.
5051 (command_line_input): Adjust.
5052 * cli/cli-script.c (script_from_file): Adjust.
5054 2019-02-19 Tom Tromey <tromey@adacore.com>
5056 * ravenscar-thread.c
5057 (ravenscar_thread_target::update_thread_list): Don't call
5058 ada_build_task_list.
5059 * ada-lang.h (ada_build_task_list): Don't declare.
5060 * ada-tasks.c (struct ada_tasks_inferior_data)
5061 <task_list_valid_p>: Now bool.
5062 (read_known_tasks, ada_task_list_changed)
5063 (ada_tasks_invalidate_inferior_data): Update.
5064 (read_known_tasks_array): Return bool.
5065 (read_known_tasks_list): Likewise.
5066 (read_known_tasks): Return void.
5067 (ada_build_task_list): Now static.
5069 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5071 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5072 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5074 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5076 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5077 variant for ada_tasks_pspace_data_handle and
5078 ada_tasks_inferior_data_handle.
5079 (ada_tasks_pspace_data_cleanup): New function.
5080 (ada_tasks_inferior_data_cleanup): New function.
5082 2019-02-17 Tom Tromey <tom@tromey.com>
5084 * macrotab.h (macro_source_fullname): Return a std::string.
5085 * macrotab.c (macro_include, check_for_redefinition)
5086 (macro_undef, macro_lookup_definition, foreach_macro)
5087 (foreach_macro_in_scope): Update.
5088 (macro_source_fullname): Return a std::string.
5089 * macrocmd.c (show_pp_source_pos): Update.
5091 2019-02-17 Tom Tromey <tom@tromey.com>
5093 * macrocmd.c (show_pp_source_pos): Style the file names.
5095 2019-02-17 Tom Tromey <tom@tromey.com>
5098 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5100 2019-02-17 Tom Tromey <tom@tromey.com>
5102 * ada-lang.c (user_select_syms): Use filtered printing.
5103 * utils.c (wrap_style): New global.
5104 (desired_style): Remove.
5105 (emit_style_escape): Add stream parameter.
5106 (set_output_style, reset_terminal_style, prompt_for_continue):
5108 (flush_wrap_buffer): Only flush gdb_stdout.
5109 (wrap_here): Set wrap_style.
5110 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5111 treat escape sequences as a character. Change when wrap buffer is
5113 (fputs_styled): Do not set the output style when the default is
5115 * ui-style.h (struct ui_file_style) <is_default>: New method.
5116 * source.c (print_source_lines_base): Emit escape sequences in one
5119 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5121 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5122 integers and enumeration types.
5124 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5126 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5127 instead of lookup_symbol_in_language
5128 (do_exact_match): New function.
5129 (ada_get_symbol_name_matcher): Return do_exact_match when
5130 doing a verbatim match.
5132 2019-02-15 Tom Tromey <tromey@adacore.com>
5134 * ravenscar-thread.c (ravenscar_thread_target::resume)
5135 (ravenscar_thread_target::wait): Special case wildcard requests.
5137 2019-02-15 Tom Tromey <tromey@adacore.com>
5139 * ravenscar-thread.c (base_ptid): Remove.
5140 (struct ravenscar_thread_target) <close>: New method.
5141 <m_base_ptid>: New member.
5142 <update_inferior_ptid, active_task, task_is_currently_active,
5143 runtime_initialized>: Declare methods.
5144 <ravenscar_thread_target>: Add constructor.
5145 (ravenscar_thread_target::task_is_currently_active)
5146 (ravenscar_thread_target::update_inferior_ptid)
5147 (ravenscar_runtime_initialized): Rename. Now methods.
5148 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5149 (ravenscar_thread_target::update_thread_list): Update.
5150 (ravenscar_thread_target::active_task): Now method.
5151 (ravenscar_thread_target::store_registers)
5152 (ravenscar_thread_target::prepare_to_store)
5153 (ravenscar_thread_target::prepare_to_store)
5154 (ravenscar_thread_target::mourn_inferior): Update.
5155 (ravenscar_inferior_created): Use "new" to create target.
5156 (ravenscar_thread_target::get_ada_task_ptid): Update.
5157 (_initialize_ravenscar): Don't initialize base_ptid.
5158 (ravenscar_ops): Remove global.
5160 2019-02-15 Tom Tromey <tromey@adacore.com>
5162 * target.h (push_target): Declare new overload.
5163 * target.c (push_target): New overload, taking an rvalue reference.
5164 * remote.c (remote_target::open_1): Use push_target overload.
5165 * corelow.c (core_target_open): Use push_target overload.
5167 2019-02-15 Tom Tromey <tromey@adacore.com>
5169 * ravenscar-thread.c (is_ravenscar_task)
5170 (ravenscar_task_is_currently_active): Return bool.
5171 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5172 (_initialize_ravenscar): Remove "(void)".
5173 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5176 2019-02-15 Tom Tromey <tromey@adacore.com>
5178 * ravenscar-thread.c (ravenscar_runtime_initializer)
5179 (has_ravenscar_runtime, get_running_thread_id)
5180 (ravenscar_thread_target::resume): Fix indentation.
5182 2019-02-15 Tom Tromey <tromey@adacore.com>
5184 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5185 from ravenscar_arch_ops.
5186 (sparc_ravenscar_ops::fetch_registers)
5187 (sparc_ravenscar_ops::store_registers): Now methods.
5188 (sparc_ravenscar_prepare_to_store): Remove.
5189 (sparc_ravenscar_ops): Redefine.
5190 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5191 methods and destructor. Remove members.
5192 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5193 (ravenscar_thread_target::store_registers)
5194 (ravenscar_thread_target::prepare_to_store): Update.
5195 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5197 (struct ppc_ravenscar_powerpc_ops): Derive from
5199 (ppc_ravenscar_powerpc_ops::fetch_registers)
5200 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5201 (ppc_ravenscar_powerpc_ops): Redefine.
5202 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5203 (ppc_ravenscar_e500_ops::fetch_registers)
5204 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5205 (ppc_ravenscar_e500_ops): Redefine.
5206 * aarch64-ravenscar-thread.c
5207 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5208 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5209 (aarch64_ravenscar_fetch_registers)
5210 (aarch64_ravenscar_store_registers): Now methods.
5211 (aarch64_ravenscar_ops): Redefine.
5213 2019-02-15 Tom Tromey <tromey@adacore.com>
5215 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5216 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5217 (ravenscar_thread_target::stopped_by_watchpoint)
5218 (ravenscar_thread_target::stopped_data_address)
5219 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5221 2019-02-15 Tom Tromey <tromey@adacore.com>
5223 * ravenscar-thread.c: Fix some typos.
5225 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5226 Tom Tromey <tromey@adacore.com>
5228 * ada-lang.c (ada_exception_sal): Change addr_string to a
5230 (create_ada_exception_catchpoint): Update.
5232 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5233 Tom Tromey <tromey@adacore.com>
5235 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5236 (bp_location_ops): Remove.
5237 (base_breakpoint_allocate_location): Update.
5238 (free_bp_location): Update.
5239 * ada-lang.c (class ada_catchpoint_location)
5240 <ada_catchpoint_location>: Remove ops parameter.
5241 (ada_catchpoint_location_dtor): Remove.
5242 (ada_catchpoint_location_ops): Remove.
5243 (allocate_location_exception): Update.
5244 * breakpoint.h (struct bp_location_ops): Remove.
5245 (class bp_location) <bp_location>: Remove bp_location_ops
5247 <~bp_location>: Add destructor.
5250 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5251 Pedro Alves <palves@redhat.com>
5253 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5256 2019-02-14 David Michael <fedora.dm0@gmail.com>
5257 Samuel Thibault <samuel.thibault@gnu.org>
5258 Thomas Schwinge <thomas@codesourcery.com>
5260 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5261 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5263 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5265 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5266 (check_empty): Use "const char *".
5268 * gnu-nat.c (gnu_nat_target::detach): Instead of
5269 'detach_inferior (pid)' call
5270 'detach_inferior (find_inferior_pid (pid))'.
5272 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5273 'nat/fork-inferior.o'.
5274 * gnu-nat.c: #include "nat/fork-inferior.h".
5276 * gnu-nat.c (gnu_nat_target::detach): Instead of
5277 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5278 * gnu-nat.h: #include "inf-child.h".
5279 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5280 'i386_gnu_nat_target::fetch_registers'.
5281 (gnu_store_registers): Rename/move to
5282 'i386_gnu_nat_target::store_registers'.
5284 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5285 * gnu-nat.h (mach_thread_info): New function.
5286 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5288 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5290 2019-02-14 Frederic Konrad <konrad@adacore.com>
5292 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5294 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5296 * windows-nat.c (windows_add_thread): Add new parameter
5297 "main_thread_p" with default value set to false. Update
5298 function documentation as well as all callers.
5299 (windows_delete_thread): Likewise.
5300 (fake_create_process): Update call to windows_add_thread.
5301 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5302 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5303 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5304 call to windows_delete_thread.
5306 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5308 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5310 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5312 * symfile.c (find_separate_debug_file): Use canonical path of
5313 sysroot with child_path instead of gdb_sysroot if it is valid.
5315 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5317 * symfile.c (find_separate_debug_file): Use child_path to
5318 determine if an object file is under a sysroot.
5320 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5322 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5323 unittests/child-path-selftests.c.
5324 * common/pathstuff.c (child_path): New function.
5325 * common/pathstuff.h (child_path): New prototype.
5326 * unittests/child-path-selftests.c: New file.
5328 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5330 * symfile.c (find_separate_debug_file): Look for separate debug
5331 files in debug directories under the sysroot.
5333 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5335 * symtab.h (struct minimal_symbol data_p): New const method.
5336 (struct minimal_symbol text_p): Likewise.
5337 * symtab.c (output_source_filename): Use file name style
5339 (print_symbol_info): Likewise.
5340 (print_msymbol_info): Use address style to print addresses.
5341 Use function name style to print executable text symbols.
5342 (expand_symtab_containing_pc): Use data_p.
5343 (find_pc_sect_compunit_symtab): Likewise.
5345 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5347 * breakpoint.c (describe_other_breakpoints): Use address style
5349 (say_where): Likewise.
5351 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5353 * ada-typeprint.c (print_func_type): Print function name
5354 style to print function name.
5355 * c-typeprint.c (c_print_type_1): Likewise.
5357 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5359 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5362 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5364 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5367 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5369 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5370 TYPE_CODE_REF types.
5372 2019-02-08 Jim Wilson <jimw@sifive.com>
5374 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5375 (riscv_linux_fregset): New.
5376 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5378 2019-02-07 Tom Tromey <tom@tromey.com>
5380 * thread.c (thread_cancel_execution_command): Update.
5381 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5383 (struct thread_fsm_ops): Remove.
5384 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5385 (thread_fsm_should_stop, thread_fsm_return_value)
5386 (thread_fsm_set_finished, thread_fsm_finished_p)
5387 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5389 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5390 * infrun.c (clear_proceed_status_thread)
5391 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5392 (print_stop_event): Update.
5393 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5395 (step_command_fsm_ops): Remove.
5396 (new_step_command_fsm): Remove.
5398 (step_command_fsm::should_stop): Rename from
5399 step_command_fsm_should_stop.
5400 (step_command_fsm::clean_up): Rename from
5401 step_command_fsm_clean_up.
5402 (step_command_fsm::do_async_reply_reason): Rename from
5403 step_command_fsm_async_reply_reason.
5404 (struct until_next_fsm): Inherit from thread_fsm. Add
5406 (until_next_fsm_ops): Remove.
5407 (new_until_next_fsm): Remove.
5408 (until_next_fsm::should_stop): Rename from
5409 until_next_fsm_should_stop.
5410 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5411 (until_next_fsm::do_async_reply_reason): Rename from
5412 until_next_fsm_async_reply_reason.
5413 (struct finish_command_fsm): Inherit from thread_fsm. Add
5414 constructor. Change type of breakpoint.
5415 (finish_command_fsm_ops): Remove.
5416 (new_finish_command_fsm): Remove.
5417 (finish_command_fsm::should_stop): Rename from
5418 finish_command_fsm_should_stop.
5419 (finish_command_fsm::clean_up): Rename from
5420 finish_command_fsm_clean_up.
5421 (finish_command_fsm::return_value): Rename from
5422 finish_command_fsm_return_value.
5423 (finish_command_fsm::do_async_reply_reason): Rename from
5424 finish_command_fsm_async_reply_reason.
5425 (finish_command): Update.
5426 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5428 (call_thread_fsm_ops): Remove.
5429 (call_thread_fsm::call_thread_fsm): Rename from
5430 new_call_thread_fsm.
5431 (call_thread_fsm::should_stop): Rename from
5432 call_thread_fsm_should_stop.
5433 (call_thread_fsm::should_notify_stop): Rename from
5434 call_thread_fsm_should_notify_stop.
5435 (run_inferior_call, call_function_by_hand_dummy): Update.
5436 * cli/cli-interp.c (should_print_stop_to_console): Update.
5437 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5438 Add constructor. Change type of location_breakpoint,
5440 (until_break_fsm_ops): Remove.
5441 (new_until_break_fsm): Remove.
5442 (until_break_fsm::should_stop): Rename from
5443 until_break_fsm_should_stop.
5444 (until_break_fsm::clean_up): Rename from
5445 until_break_fsm_clean_up.
5446 (until_break_fsm::do_async_reply_reason): Rename from
5447 until_break_fsm_async_reply_reason.
5448 (until_break_command): Update.
5449 * thread-fsm.c: Remove.
5450 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5452 2019-02-07 Tom Tromey <tom@tromey.com>
5454 * yy-remap.h: Add include guard.
5455 * xtensa-tdep.h: Add include guard.
5456 * xcoffread.h: Rename include guard.
5457 * varobj-iter.h: Add include guard.
5458 * tui/tui.h: Rename include guard.
5459 * tui/tui-winsource.h: Rename include guard.
5460 * tui/tui-wingeneral.h: Rename include guard.
5461 * tui/tui-windata.h: Rename include guard.
5462 * tui/tui-win.h: Rename include guard.
5463 * tui/tui-stack.h: Rename include guard.
5464 * tui/tui-source.h: Rename include guard.
5465 * tui/tui-regs.h: Rename include guard.
5466 * tui/tui-out.h: Rename include guard.
5467 * tui/tui-layout.h: Rename include guard.
5468 * tui/tui-io.h: Rename include guard.
5469 * tui/tui-hooks.h: Rename include guard.
5470 * tui/tui-file.h: Rename include guard.
5471 * tui/tui-disasm.h: Rename include guard.
5472 * tui/tui-data.h: Rename include guard.
5473 * tui/tui-command.h: Rename include guard.
5474 * tic6x-tdep.h: Add include guard.
5475 * target/waitstatus.h: Rename include guard.
5476 * target/wait.h: Rename include guard.
5477 * target/target.h: Rename include guard.
5478 * target/resume.h: Rename include guard.
5479 * target-float.h: Rename include guard.
5480 * stabsread.h: Add include guard.
5481 * rs6000-tdep.h: Add include guard.
5482 * riscv-fbsd-tdep.h: Add include guard.
5483 * regformats/regdef.h: Rename include guard.
5484 * record.h: Rename include guard.
5485 * python/python.h: Rename include guard.
5486 * python/python-internal.h: Rename include guard.
5487 * python/py-stopevent.h: Rename include guard.
5488 * python/py-ref.h: Rename include guard.
5489 * python/py-record.h: Rename include guard.
5490 * python/py-record-full.h: Rename include guard.
5491 * python/py-record-btrace.h: Rename include guard.
5492 * python/py-instruction.h: Rename include guard.
5493 * python/py-events.h: Rename include guard.
5494 * python/py-event.h: Rename include guard.
5495 * procfs.h: Add include guard.
5496 * proc-utils.h: Add include guard.
5497 * p-lang.h: Add include guard.
5498 * or1k-tdep.h: Rename include guard.
5499 * observable.h: Rename include guard.
5500 * nto-tdep.h: Rename include guard.
5501 * nat/x86-linux.h: Rename include guard.
5502 * nat/x86-linux-dregs.h: Rename include guard.
5503 * nat/x86-gcc-cpuid.h: Add include guard.
5504 * nat/x86-dregs.h: Rename include guard.
5505 * nat/x86-cpuid.h: Rename include guard.
5506 * nat/ppc-linux.h: Rename include guard.
5507 * nat/mips-linux-watch.h: Rename include guard.
5508 * nat/linux-waitpid.h: Rename include guard.
5509 * nat/linux-ptrace.h: Rename include guard.
5510 * nat/linux-procfs.h: Rename include guard.
5511 * nat/linux-osdata.h: Rename include guard.
5512 * nat/linux-nat.h: Rename include guard.
5513 * nat/linux-namespaces.h: Rename include guard.
5514 * nat/linux-btrace.h: Rename include guard.
5515 * nat/glibc_thread_db.h: Rename include guard.
5516 * nat/gdb_thread_db.h: Rename include guard.
5517 * nat/gdb_ptrace.h: Rename include guard.
5518 * nat/fork-inferior.h: Rename include guard.
5519 * nat/amd64-linux-siginfo.h: Rename include guard.
5520 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5521 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5522 * nat/aarch64-linux.h: Rename include guard.
5523 * nat/aarch64-linux-hw-point.h: Rename include guard.
5524 * mn10300-tdep.h: Add include guard.
5525 * mips-linux-tdep.h: Add include guard.
5526 * mi/mi-parse.h: Rename include guard.
5527 * mi/mi-out.h: Rename include guard.
5528 * mi/mi-main.h: Rename include guard.
5529 * mi/mi-interp.h: Rename include guard.
5530 * mi/mi-getopt.h: Rename include guard.
5531 * mi/mi-console.h: Rename include guard.
5532 * mi/mi-common.h: Rename include guard.
5533 * mi/mi-cmds.h: Rename include guard.
5534 * mi/mi-cmd-break.h: Rename include guard.
5535 * m2-lang.h: Add include guard.
5536 * location.h: Rename include guard.
5537 * linux-record.h: Rename include guard.
5538 * linux-nat.h: Add include guard.
5539 * linux-fork.h: Add include guard.
5540 * i386-darwin-tdep.h: Rename include guard.
5541 * hppa-linux-offsets.h: Add include guard.
5542 * guile/guile.h: Rename include guard.
5543 * guile/guile-internal.h: Rename include guard.
5544 * gnu-nat.h: Rename include guard.
5545 * gdb-stabs.h: Rename include guard.
5546 * frv-tdep.h: Add include guard.
5547 * f-lang.h: Add include guard.
5548 * event-loop.h: Add include guard.
5549 * darwin-nat.h: Rename include guard.
5550 * cp-abi.h: Rename include guard.
5551 * config/sparc/nm-sol2.h: Rename include guard.
5552 * config/nm-nto.h: Rename include guard.
5553 * config/nm-linux.h: Add include guard.
5554 * config/i386/nm-i386gnu.h: Rename include guard.
5555 * config/djgpp/nl_types.h: Rename include guard.
5556 * config/djgpp/langinfo.h: Rename include guard.
5557 * compile/gcc-cp-plugin.h: Add include guard.
5558 * compile/gcc-c-plugin.h: Add include guard.
5559 * compile/compile.h: Rename include guard.
5560 * compile/compile-object-run.h: Rename include guard.
5561 * compile/compile-object-load.h: Rename include guard.
5562 * compile/compile-internal.h: Rename include guard.
5563 * compile/compile-cplus.h: Rename include guard.
5564 * compile/compile-c.h: Rename include guard.
5565 * common/xml-utils.h: Rename include guard.
5566 * common/x86-xstate.h: Rename include guard.
5567 * common/version.h: Rename include guard.
5568 * common/vec.h: Rename include guard.
5569 * common/tdesc.h: Rename include guard.
5570 * common/selftest.h: Rename include guard.
5571 * common/scoped_restore.h: Rename include guard.
5572 * common/scoped_mmap.h: Rename include guard.
5573 * common/scoped_fd.h: Rename include guard.
5574 * common/safe-iterator.h: Rename include guard.
5575 * common/run-time-clock.h: Rename include guard.
5576 * common/refcounted-object.h: Rename include guard.
5577 * common/queue.h: Rename include guard.
5578 * common/ptid.h: Rename include guard.
5579 * common/print-utils.h: Rename include guard.
5580 * common/preprocessor.h: Rename include guard.
5581 * common/pathstuff.h: Rename include guard.
5582 * common/observable.h: Rename include guard.
5583 * common/netstuff.h: Rename include guard.
5584 * common/job-control.h: Rename include guard.
5585 * common/host-defs.h: Rename include guard.
5586 * common/gdb_wait.h: Rename include guard.
5587 * common/gdb_vecs.h: Rename include guard.
5588 * common/gdb_unlinker.h: Rename include guard.
5589 * common/gdb_unique_ptr.h: Rename include guard.
5590 * common/gdb_tilde_expand.h: Rename include guard.
5591 * common/gdb_sys_time.h: Rename include guard.
5592 * common/gdb_string_view.h: Rename include guard.
5593 * common/gdb_splay_tree.h: Rename include guard.
5594 * common/gdb_setjmp.h: Rename include guard.
5595 * common/gdb_ref_ptr.h: Rename include guard.
5596 * common/gdb_optional.h: Rename include guard.
5597 * common/gdb_locale.h: Rename include guard.
5598 * common/gdb_assert.h: Rename include guard.
5599 * common/filtered-iterator.h: Rename include guard.
5600 * common/filestuff.h: Rename include guard.
5601 * common/fileio.h: Rename include guard.
5602 * common/environ.h: Rename include guard.
5603 * common/common-utils.h: Rename include guard.
5604 * common/common-types.h: Rename include guard.
5605 * common/common-regcache.h: Rename include guard.
5606 * common/common-inferior.h: Rename include guard.
5607 * common/common-gdbthread.h: Rename include guard.
5608 * common/common-exceptions.h: Rename include guard.
5609 * common/common-defs.h: Rename include guard.
5610 * common/common-debug.h: Rename include guard.
5611 * common/cleanups.h: Rename include guard.
5612 * common/buffer.h: Rename include guard.
5613 * common/btrace-common.h: Rename include guard.
5614 * common/break-common.h: Rename include guard.
5615 * cli/cli-utils.h: Rename include guard.
5616 * cli/cli-style.h: Rename include guard.
5617 * cli/cli-setshow.h: Rename include guard.
5618 * cli/cli-script.h: Rename include guard.
5619 * cli/cli-interp.h: Rename include guard.
5620 * cli/cli-decode.h: Rename include guard.
5621 * cli/cli-cmds.h: Rename include guard.
5622 * charset-list.h: Add include guard.
5623 * buildsym-legacy.h: Rename include guard.
5624 * bfin-tdep.h: Add include guard.
5625 * ax.h: Rename include guard.
5626 * arm-linux-tdep.h: Add include guard.
5627 * arm-fbsd-tdep.h: Add include guard.
5628 * arch/xtensa.h: Rename include guard.
5629 * arch/tic6x.h: Add include guard.
5630 * arch/i386.h: Add include guard.
5631 * arch/arm.h: Rename include guard.
5632 * arch/arm-linux.h: Rename include guard.
5633 * arch/arm-get-next-pcs.h: Rename include guard.
5634 * arch/amd64.h: Add include guard.
5635 * arch/aarch64-insn.h: Rename include guard.
5636 * arch-utils.h: Rename include guard.
5637 * annotate.h: Add include guard.
5638 * amd64-darwin-tdep.h: Rename include guard.
5639 * aarch64-linux-tdep.h: Add include guard.
5640 * aarch64-fbsd-tdep.h: Add include guard.
5641 * aarch32-linux-nat.h: Add include guard.
5643 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5645 * macrotab.c (macro_define_internal): New function that
5646 factorizes macro_define_object_internal and macro_define_function
5648 (macro_define_object_internal): Use macro_define_internal.
5649 (macro_define_function): Likewise.
5651 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5653 * macrocmd.c (extract_identifier): Return
5654 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5657 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5659 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5661 2019-02-05 Tom Tromey <tom@tromey.com>
5663 * target.c (target_stack::unpush): Move assertion earlier.
5665 2019-01-30 Tom Tromey <tom@tromey.com>
5668 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5669 (gdbpy_parse_and_eval): Likewise.
5670 * python/python-internal.h (gdbpy_allow_threads): New class.
5672 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5674 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5675 (aarch64_fbsd_fpregmap): Move earlier.
5676 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5677 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5678 instead of individual calls to trad_frame_set_reg_addr.
5679 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5681 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5682 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5683 instead of individual calls to trad_frame_set_reg_addr.
5685 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5687 * CONTRIBUTE: Replace contribution list with wiki link.
5689 2019-01-25 Tom Tromey <tom@tromey.com>
5691 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5693 2019-01-25 Tom Tromey <tom@tromey.com>
5695 * xtensa-linux-nat.c: Fix common/ includes.
5696 * xml-support.h: Fix common/ includes.
5697 * xml-support.c: Fix common/ includes.
5698 * x86-linux-nat.c: Fix common/ includes.
5699 * windows-nat.c: Fix common/ includes.
5700 * varobj.h: Fix common/ includes.
5701 * varobj.c: Fix common/ includes.
5702 * value.c: Fix common/ includes.
5703 * valops.c: Fix common/ includes.
5704 * utils.c: Fix common/ includes.
5705 * unittests/xml-utils-selftests.c: Fix common/ includes.
5706 * unittests/utils-selftests.c: Fix common/ includes.
5707 * unittests/unpack-selftests.c: Fix common/ includes.
5708 * unittests/tracepoint-selftests.c: Fix common/ includes.
5709 * unittests/style-selftests.c: Fix common/ includes.
5710 * unittests/string_view-selftests.c: Fix common/ includes.
5711 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5712 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5713 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5714 * unittests/rsp-low-selftests.c: Fix common/ includes.
5715 * unittests/parse-connection-spec-selftests.c: Fix common/
5717 * unittests/optional-selftests.c: Fix common/ includes.
5718 * unittests/offset-type-selftests.c: Fix common/ includes.
5719 * unittests/observable-selftests.c: Fix common/ includes.
5720 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5721 * unittests/memrange-selftests.c: Fix common/ includes.
5722 * unittests/memory-map-selftests.c: Fix common/ includes.
5723 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5724 * unittests/function-view-selftests.c: Fix common/ includes.
5725 * unittests/environ-selftests.c: Fix common/ includes.
5726 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5727 * unittests/common-utils-selftests.c: Fix common/ includes.
5728 * unittests/cli-utils-selftests.c: Fix common/ includes.
5729 * unittests/array-view-selftests.c: Fix common/ includes.
5730 * ui-file.c: Fix common/ includes.
5731 * tui/tui-io.c: Fix common/ includes.
5732 * tracepoint.h: Fix common/ includes.
5733 * tracepoint.c: Fix common/ includes.
5734 * tracefile-tfile.c: Fix common/ includes.
5735 * top.h: Fix common/ includes.
5736 * top.c: Fix common/ includes.
5737 * thread.c: Fix common/ includes.
5738 * target/waitstatus.h: Fix common/ includes.
5739 * target/waitstatus.c: Fix common/ includes.
5740 * target.h: Fix common/ includes.
5741 * target.c: Fix common/ includes.
5742 * target-memory.c: Fix common/ includes.
5743 * target-descriptions.c: Fix common/ includes.
5744 * symtab.h: Fix common/ includes.
5745 * symfile.c: Fix common/ includes.
5746 * stap-probe.c: Fix common/ includes.
5747 * spu-linux-nat.c: Fix common/ includes.
5748 * sparc-nat.c: Fix common/ includes.
5749 * source.c: Fix common/ includes.
5750 * solib.c: Fix common/ includes.
5751 * solib-target.c: Fix common/ includes.
5752 * ser-unix.c: Fix common/ includes.
5753 * ser-tcp.c: Fix common/ includes.
5754 * ser-pipe.c: Fix common/ includes.
5755 * ser-base.c: Fix common/ includes.
5756 * selftest-arch.c: Fix common/ includes.
5757 * s12z-tdep.c: Fix common/ includes.
5758 * rust-exp.y: Fix common/ includes.
5759 * rs6000-aix-tdep.c: Fix common/ includes.
5760 * riscv-tdep.c: Fix common/ includes.
5761 * remote.c: Fix common/ includes.
5762 * remote-notif.h: Fix common/ includes.
5763 * remote-fileio.h: Fix common/ includes.
5764 * remote-fileio.c: Fix common/ includes.
5765 * regcache.h: Fix common/ includes.
5766 * regcache.c: Fix common/ includes.
5767 * record-btrace.c: Fix common/ includes.
5768 * python/python.c: Fix common/ includes.
5769 * python/py-type.c: Fix common/ includes.
5770 * python/py-inferior.c: Fix common/ includes.
5771 * progspace.h: Fix common/ includes.
5772 * producer.c: Fix common/ includes.
5773 * procfs.c: Fix common/ includes.
5774 * proc-api.c: Fix common/ includes.
5775 * printcmd.c: Fix common/ includes.
5776 * ppc-linux-nat.c: Fix common/ includes.
5777 * parser-defs.h: Fix common/ includes.
5778 * osdata.c: Fix common/ includes.
5779 * obsd-nat.c: Fix common/ includes.
5780 * nat/x86-linux.c: Fix common/ includes.
5781 * nat/x86-linux-dregs.c: Fix common/ includes.
5782 * nat/x86-dregs.h: Fix common/ includes.
5783 * nat/x86-dregs.c: Fix common/ includes.
5784 * nat/ppc-linux.c: Fix common/ includes.
5785 * nat/mips-linux-watch.h: Fix common/ includes.
5786 * nat/mips-linux-watch.c: Fix common/ includes.
5787 * nat/linux-waitpid.c: Fix common/ includes.
5788 * nat/linux-ptrace.h: Fix common/ includes.
5789 * nat/linux-ptrace.c: Fix common/ includes.
5790 * nat/linux-procfs.c: Fix common/ includes.
5791 * nat/linux-personality.c: Fix common/ includes.
5792 * nat/linux-osdata.c: Fix common/ includes.
5793 * nat/linux-namespaces.c: Fix common/ includes.
5794 * nat/linux-btrace.h: Fix common/ includes.
5795 * nat/linux-btrace.c: Fix common/ includes.
5796 * nat/fork-inferior.c: Fix common/ includes.
5797 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5798 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5799 * nat/aarch64-linux.c: Fix common/ includes.
5800 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5801 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5802 * namespace.h: Fix common/ includes.
5803 * mips-linux-tdep.c: Fix common/ includes.
5804 * minsyms.c: Fix common/ includes.
5805 * mi/mi-parse.h: Fix common/ includes.
5806 * mi/mi-main.c: Fix common/ includes.
5807 * mi/mi-cmd-env.c: Fix common/ includes.
5808 * memrange.h: Fix common/ includes.
5809 * memattr.c: Fix common/ includes.
5810 * maint.h: Fix common/ includes.
5811 * maint.c: Fix common/ includes.
5812 * main.c: Fix common/ includes.
5813 * machoread.c: Fix common/ includes.
5814 * location.c: Fix common/ includes.
5815 * linux-thread-db.c: Fix common/ includes.
5816 * linux-nat.c: Fix common/ includes.
5817 * linux-fork.c: Fix common/ includes.
5818 * inline-frame.c: Fix common/ includes.
5819 * infrun.c: Fix common/ includes.
5820 * inflow.c: Fix common/ includes.
5821 * inferior.h: Fix common/ includes.
5822 * inferior.c: Fix common/ includes.
5823 * infcmd.c: Fix common/ includes.
5824 * inf-ptrace.c: Fix common/ includes.
5825 * inf-child.c: Fix common/ includes.
5826 * ia64-linux-nat.c: Fix common/ includes.
5827 * i387-tdep.c: Fix common/ includes.
5828 * i386-tdep.c: Fix common/ includes.
5829 * i386-linux-tdep.c: Fix common/ includes.
5830 * i386-linux-nat.c: Fix common/ includes.
5831 * i386-go32-tdep.c: Fix common/ includes.
5832 * i386-fbsd-tdep.c: Fix common/ includes.
5833 * i386-fbsd-nat.c: Fix common/ includes.
5834 * guile/scm-type.c: Fix common/ includes.
5835 * guile/guile.c: Fix common/ includes.
5836 * go32-nat.c: Fix common/ includes.
5837 * gnu-nat.c: Fix common/ includes.
5838 * gdbthread.h: Fix common/ includes.
5839 * gdbarch-selftests.c: Fix common/ includes.
5840 * gdb_usleep.c: Fix common/ includes.
5841 * gdb_select.h: Fix common/ includes.
5842 * gdb_bfd.c: Fix common/ includes.
5843 * gcore.c: Fix common/ includes.
5844 * fork-child.c: Fix common/ includes.
5845 * findvar.c: Fix common/ includes.
5846 * fbsd-nat.c: Fix common/ includes.
5847 * event-top.c: Fix common/ includes.
5848 * event-loop.c: Fix common/ includes.
5849 * dwarf2read.c: Fix common/ includes.
5850 * dwarf2loc.c: Fix common/ includes.
5851 * dwarf2-frame.c: Fix common/ includes.
5852 * dwarf-index-cache.c: Fix common/ includes.
5853 * dtrace-probe.c: Fix common/ includes.
5854 * disasm-selftests.c: Fix common/ includes.
5855 * defs.h: Fix common/ includes.
5856 * csky-tdep.c: Fix common/ includes.
5857 * cp-valprint.c: Fix common/ includes.
5858 * cp-support.h: Fix common/ includes.
5859 * cp-support.c: Fix common/ includes.
5860 * corelow.c: Fix common/ includes.
5861 * completer.h: Fix common/ includes.
5862 * completer.c: Fix common/ includes.
5863 * compile/compile.c: Fix common/ includes.
5864 * compile/compile-loc2c.c: Fix common/ includes.
5865 * compile/compile-cplus-types.c: Fix common/ includes.
5866 * compile/compile-cplus-symbols.c: Fix common/ includes.
5867 * command.h: Fix common/ includes.
5868 * cli/cli-dump.c: Fix common/ includes.
5869 * cli/cli-cmds.c: Fix common/ includes.
5870 * charset.c: Fix common/ includes.
5871 * build-id.c: Fix common/ includes.
5872 * btrace.h: Fix common/ includes.
5873 * btrace.c: Fix common/ includes.
5874 * breakpoint.h: Fix common/ includes.
5875 * breakpoint.c: Fix common/ includes.
5877 (enum agent_op): Fix common/ includes.
5878 * ax-general.c (struct aop_map): Fix common/ includes.
5879 * ax-gdb.c: Fix common/ includes.
5880 * auxv.c: Fix common/ includes.
5881 * auto-load.c: Fix common/ includes.
5882 * arm-tdep.c: Fix common/ includes.
5883 * arch/riscv.c: Fix common/ includes.
5884 * arch/ppc-linux-common.c: Fix common/ includes.
5885 * arch/i386.c: Fix common/ includes.
5886 * arch/arm.c: Fix common/ includes.
5887 * arch/arm-linux.c: Fix common/ includes.
5888 * arch/arm-get-next-pcs.c: Fix common/ includes.
5889 * arch/amd64.c: Fix common/ includes.
5890 * arch/aarch64.c: Fix common/ includes.
5891 * arch/aarch64-insn.c: Fix common/ includes.
5892 * arch-utils.c: Fix common/ includes.
5893 * amd64-windows-tdep.c: Fix common/ includes.
5894 * amd64-tdep.c: Fix common/ includes.
5895 * amd64-sol2-tdep.c: Fix common/ includes.
5896 * amd64-obsd-tdep.c: Fix common/ includes.
5897 * amd64-nbsd-tdep.c: Fix common/ includes.
5898 * amd64-linux-tdep.c: Fix common/ includes.
5899 * amd64-linux-nat.c: Fix common/ includes.
5900 * amd64-fbsd-tdep.c: Fix common/ includes.
5901 * amd64-fbsd-nat.c: Fix common/ includes.
5902 * amd64-dicos-tdep.c: Fix common/ includes.
5903 * amd64-darwin-tdep.c: Fix common/ includes.
5904 * agent.c: Fix common/ includes.
5905 * ada-lang.h: Fix common/ includes.
5906 * ada-lang.c: Fix common/ includes.
5907 * aarch64-tdep.c: Fix common/ includes.
5909 2019-01-25 Tom Tromey <tom@tromey.com>
5911 * common/create-version.sh: Use common/version.h.
5913 2019-01-24 Pedro Alves <palves@redhat.com>
5915 * infrun.c (signal_stop, signal_print, signal_program)
5916 (signal_catch, signal_pass): Now arrays instead of pointers.
5917 (update_signals_program_target, do_target_resume)
5918 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5919 * linux-nat.c (linux_nat_target::pass_signals)
5920 (linux_nat_target::create_inferior, linux_nat_target::attach):
5922 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5923 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5924 * procfs.c (procfs_target::pass_signals): Adjust.
5925 * record-full.c (record_full_target::resume): Adjust.
5926 * remote.c (remote_target::pass_signals)
5927 (remote_target::program_signals): Adjust.
5928 * target-debug.h (target_debug_print_signals): Now takes a
5929 gdb::array_view as parameter. Adjust.
5930 * target.h (target_ops) <pass_signals, program_signals>: Replace
5931 pointer and length parameters with gdb::array_view.
5932 (target_pass_signals, target_program_signals): Likewise.
5933 * target-delegates.c: Regenerate.
5935 2019-01-24 Pedro Alves <palves@redhat.com>
5937 * common/forward-scope-exit.h
5938 (forward_scope_exit::forward_scope_exit): Pass arguments to
5939 m_bind_function directly, instead of creating a std::bind and
5942 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5944 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5946 (pass_in_v_vfp_candidate): Likewise.
5948 2019-01-23 Tom Tromey <tom@tromey.com>
5949 Pedro Alves <palves@redhat.com>
5951 * regcache.c (class regcache_invalidator): Remove.
5952 (regcache::raw_write): Use make_scope_exit.
5954 2019-01-23 Tom Tromey <tom@tromey.com>
5956 * ui-out.h (class ui_out_emit_type): Update comment.
5958 2019-01-23 Tom Tromey <tom@tromey.com>
5960 * infrun.c (fetch_inferior_event): Update comment.
5962 2019-01-23 Tom Tromey <tom@tromey.com>
5963 Pedro Alves <palves@redhat.com>
5965 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5967 (fetch_inferior_event): Use SCOPE_EXIT.
5970 2019-01-23 Tom Tromey <tom@tromey.com>
5971 Pedro Alves <palves@redhat.com>
5973 * infrun.c (disable_thread_events): Delete.
5974 (stop_all_threads): Use SCOPE_EXIT.
5976 2019-01-23 Tom Tromey <tom@tromey.com>
5977 Pedro Alves <palves@redhat.com>
5979 * symfile.c: Include forward-scope-exit.h.
5980 (clear_symtab_users_cleanup): Replace forward declaration with
5981 a FORWARD_SCOPE_EXIT.
5982 (syms_from_objfile_1): Use the forward_scope_exit and
5983 gdb::optional instead of cleanup_function.
5984 (reread_symbols): Use the forward_scope_exit instead of
5986 (clear_symtab_users_cleanup): Remove function.
5988 2019-01-23 Tom Tromey <tom@tromey.com>
5989 Pedro Alves <palves@redhat.com>
5991 * linux-nat.c: Include scope-exit.h.
5992 (cleanup_target_stop): Remove.
5993 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5996 2019-01-23 Tom Tromey <tom@tromey.com>
5997 Pedro Alves <palves@redhat.com>
5999 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
6000 (call_function_by_hand_dummy): Use SCOPE_EXIT.
6002 2019-01-23 Tom Tromey <tom@tromey.com>
6003 Andrew Burgess <andrew.burgess@embecosm.com>
6004 Pedro Alves <palves@redhat.com>
6006 * infrun.c (fetch_inferior_event): Use scope_exit.
6007 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
6008 * top.c (execute_command): Use scope_exit.
6009 * breakpoint.c (bpstat_do_actions): Use scope_exit.
6010 * utils.c (do_bpstat_clear_actions_cleanup)
6011 (make_bpstat_clear_actions_cleanup): Remove.
6013 2019-01-23 Tom Tromey <tom@tromey.com>
6014 Pedro Alves <palves@redhat.com>
6016 * infrun.c: Include "common/scope-exit.h"
6017 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
6018 (wait_for_inferior): Use SCOPE_EXIT.
6019 (fetch_inferior_event): Use scope_exit.
6021 2019-01-23 Tom Tromey <tom@tromey.com>
6022 Pedro Alves <palves@redhat.com>
6024 * breakpoint.c (create_breakpoint): Remove cleanup.
6026 2019-01-23 Tom Tromey <tom@tromey.com>
6027 Andrew Burgess <andrew.burgess@embecosm.com>
6028 Pedro Alves <palves@redhat.com>
6030 2019-01-23 Pedro Alves <palves@redhat.com>
6032 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6034 2019-01-23 Pedro Alves <palves@redhat.com>
6035 Andrew Burgess <andrew.burgess@embecosm.com>
6037 * gdbthread.h: Include "common/forward-scope-exit.h".
6038 (scoped_finish_thread_state): Redefine custom class in terms of
6041 2019-01-23 Pedro Alves <palves@redhat.com>
6042 Andrew Burgess <andrew.burgess@embecosm.com>
6044 * common/forward-scope-exit.h: New file.
6046 2019-01-23 Pedro Alves <palves@redhat.com>
6047 Andrew Burgess <andrew.burgess@embecosm.com>
6048 Tom Tromey <tom@tromey.com>
6050 * common/scope-exit.h: New file.
6052 2019-01-23 Pedro Alves <palves@redhat.com>
6054 * common/preprocessor.h (ESC): Rename to ...
6055 (ESC_PARENS): ... this.
6056 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6057 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6059 2019-01-23 Tom Tromey <tom@tromey.com>
6061 * language.h (class scoped_switch_to_sym_language_if_auto):
6062 Initialize m_lang in both cases.
6064 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6066 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6069 2019-01-22 Tom Tromey <tom@tromey.com>
6071 * corelow.c: Do not include sys/file.h.
6073 2019-01-22 Tom Tromey <tom@tromey.com>
6075 * tui/tui-wingeneral.h: Include gdb_curses.h.
6077 2019-01-22 Tom Tromey <tom@tromey.com>
6079 * source-cache.h (class source_cache) <get_source_lines,
6080 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6082 2019-01-22 Tom Tromey <tom@tromey.com>
6084 * remote-fileio.h (struct remote_target): Declare.
6086 2019-01-22 Tom Tromey <tom@tromey.com>
6088 * python/py-arch.c: Do not include py-ref.h.
6089 * python/py-bpevent.c: Do not include py-ref.h.
6090 * python/py-cmd.c: Do not include py-ref.h.
6091 * python/py-continueevent.c: Do not include py-ref.h.
6092 * python/py-event.h: Do not include py-ref.h.
6093 * python/py-evtregistry.c: Do not include py-ref.h.
6094 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6095 * python/py-frame.c: Do not include py-ref.h.
6096 * python/py-framefilter.c: Do not include py-ref.h.
6097 * python/py-function.c: Do not include py-ref.h.
6098 * python/py-infevents.c: Do not include py-ref.h.
6099 * python/py-linetable.c: Do not include py-ref.h.
6100 * python/py-objfile.c: Do not include py-ref.h.
6101 * python/py-param.c: Do not include py-ref.h.
6102 * python/py-prettyprint.c: Do not include py-ref.h.
6103 * python/py-progspace.c: Do not include py-ref.h.
6104 * python/py-symbol.c: Do not include py-ref.h.
6105 * python/py-symtab.c: Do not include py-ref.h.
6106 * python/py-type.c: Do not include py-ref.h.
6107 * python/py-unwind.c: Do not include py-ref.h.
6108 * python/py-utils.c: Do not include py-ref.h.
6109 * python/py-value.c: Do not include py-ref.h.
6110 * python/py-varobj.c: Do not include py-ref.h.
6111 * python/py-xmethods.c: Do not include py-ref.h.
6112 * python/python.c: Do not include py-ref.h.
6113 * varobj.c: Do not include py-ref.h.
6115 2019-01-22 Tom Tromey <tom@tromey.com>
6117 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6120 2019-01-22 Tom Tromey <tom@tromey.com>
6122 * compile/compile-cplus-types.c: Remove a comment by #include.
6124 2019-01-22 Tom Tromey <tom@tromey.com>
6126 * compile/gcc-c-plugin.h: Include compile-internal.h.
6128 2019-01-22 Tom Tromey <tom@tromey.com>
6130 * stabsread.c (EXTERN): Do not define.
6131 (symnum, next_symbol_text_func, processing_gcc_compilation)
6132 (within_function, global_sym_chain, global_stabs)
6133 (previous_stab_code, this_object_header_files)
6134 (n_this_object_header_files)
6135 (n_allocated_this_object_header_files): Define.
6136 * stabsread.h (EXTERN): Never define. Use "extern".
6138 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6140 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6143 2019-01-21 Tom Tromey <tom@tromey.com>
6145 * ui-out.c: Fix includes.
6146 * tui/tui-source.c: Fix includes.
6147 * target.c: Fix includes.
6148 * remote.c: Fix includes.
6149 * regcache.c: Fix includes.
6150 * python/py-block.c: Fix includes.
6151 * printcmd.c: Fix includes.
6152 * or1k-tdep.c: Fix includes.
6153 * mi/mi-main.c: Fix includes.
6154 * m32r-tdep.c: Fix includes.
6155 * csky-tdep.c: Fix includes.
6156 * compile/compile-cplus-types.c: Fix includes.
6157 * cli/cli-interp.c: Fix includes.
6159 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6161 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6164 2019-01-16 Tom Tromey <tom@tromey.com>
6166 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6168 (struct objfile) <msymbols_range>: Move from top level.
6169 <msymbols>: New method.
6170 (class objfile_msymbols): Remove.
6171 * symtab.c (default_collect_symbol_completion_matches_break_on):
6173 * symmisc.c (dump_msymbols): Update.
6174 * stabsread.c (scan_file_globals): Update.
6175 * objc-lang.c (info_selectors_command, info_classes_command)
6176 (find_methods): Update.
6177 * minsyms.c (find_solib_trampoline_target): Update.
6178 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6179 * coffread.c (coff_symfile_read): Update.
6180 * ada-lang.c (ada_lookup_simple_minsym)
6181 (ada_collect_symbol_completion_matches): Update.
6183 2019-01-16 Tom Tromey <tom@tromey.com>
6185 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6186 type. Remove no-argument constructor.
6187 <iterator::operator++>: Simplify.
6189 <end>: Use minimal_symbol_count.
6191 2019-01-16 Tom Tromey <tom@tromey.com>
6193 * objfiles.h (struct objfile) <psymtabs>: New method.
6194 (class objfile_psymtabs): Remove.
6195 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6197 <range>: New method.
6198 (require_partial_symbols): Change return type.
6199 * psymtab.c (require_partial_symbols)
6200 (psym_expand_symtabs_matching): Update.
6201 * mdebugread.c (parse_partial_symbols): Update.
6202 * dbxread.c (dbx_end_psymtab): Update.
6204 2019-01-15 Tom Tromey <tom@tromey.com>
6206 * symtab.c (lookup_objfile_from_block)
6207 (lookup_symbol_in_objfile_symtabs)
6208 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6209 (find_line_symtab, info_sources_command)
6210 (default_collect_symbol_completion_matches_break_on)
6211 (make_source_files_completion_list): Update.
6212 * symmisc.c (print_objfile_statistics, dump_objfile)
6213 (maintenance_print_symbols, maintenance_info_symtabs)
6214 (maintenance_check_symtabs, maintenance_info_line_tables):
6216 * source.c (select_source_symtab)
6217 (forget_cached_source_info_for_objfile): Update.
6218 * objfiles.h (class objfile_compunits): Remove.
6219 (struct objfile) <compunits_range>: New typedef.
6220 (compunits): New method.
6221 * objfiles.c (objfile_relocate1): Update.
6222 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6223 * maint.c (count_symtabs_and_blocks): Update.
6224 * linespec.c (iterate_over_all_matching_symtabs): Update.
6225 * cp-support.c (add_symbol_overload_list_qualified): Update.
6226 * coffread.c (coff_symtab_read): Update.
6227 * ada-lang.c (add_nonlocal_symbols)
6228 (ada_collect_symbol_completion_matches)
6229 (ada_add_global_exceptions): Update.
6231 2019-01-15 Tom Tromey <tom@tromey.com>
6233 * progspace.h (program_space) <objfiles_safe_range>: New
6235 <objfiles_safe>: New method.
6236 * objfiles.h (class all_objfiles_safe): Remove.
6237 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6238 * jit.c (jit_inferior_exit_hook): Update.
6240 2019-01-17 Tom Tromey <tom@tromey.com>
6242 * progspace.h (program_space) <objfiles_range>: New typedef.
6243 <objfiles>: New method.
6244 <objfiles_head>: Rename from objfiles.
6245 (object_files): Update.
6246 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6247 * guile/scm-pretty-print.c
6248 (ppscm_find_pretty_printer_from_objfiles): Update.
6249 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6250 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6252 * python/py-progspace.c (pspy_get_objfiles): Update.
6253 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6255 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6256 (objfpy_lookup_objfile_by_build_id): Update.
6257 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6258 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6260 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6261 (expand_symtab_containing_pc, lookup_objfile_from_block)
6262 (lookup_static_symbol, basic_lookup_transparent_type)
6263 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6264 (find_line_symtab, info_sources_command)
6265 (default_collect_symbol_completion_matches_break_on)
6266 (make_source_files_completion_list, find_main_name): Update.
6267 * symmisc.c (print_symbol_bcache_statistics)
6268 (print_objfile_statistics, maintenance_print_symbols)
6269 (maintenance_print_msymbols, maintenance_print_objfiles)
6270 (maintenance_info_symtabs, maintenance_check_symtabs)
6271 (maintenance_expand_symtabs, maintenance_info_line_tables):
6273 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6274 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6275 (map_overlay_command, unmap_overlay_command)
6276 (simple_overlay_update, expand_symtabs_matching)
6277 (map_symbol_filenames): Update.
6278 * symfile-debug.c (set_debug_symfile): Update.
6279 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6281 * source.c (select_source_symtab, forget_cached_source_info):
6283 * solib.c (solib_read_symbols): Update.
6284 * solib-spu.c (append_ocl_sos): Update.
6285 * psymtab.c (maintenance_print_psymbols)
6286 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6287 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6288 * printcmd.c (info_symbol_command): Update.
6289 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6291 * objfiles.h (class all_objfiles): Remove.
6292 * objfiles.c (have_partial_symbols, have_full_symbols)
6293 (have_minimal_symbols, qsort_cmp, update_section_map)
6294 (shared_objfile_contains_address_p)
6295 (default_iterate_over_objfiles_in_search_order): Update.
6296 * objc-lang.c (info_selectors_command, info_classes_command)
6297 (find_methods): Update.
6298 * minsyms.c (find_solib_trampoline_target): Update.
6299 * maint.c (maintenance_info_sections)
6300 (maintenance_translate_address, count_symtabs_and_blocks):
6302 * main.c (captured_main_1): Update.
6303 * linux-thread-db.c (try_thread_db_load_from_pdir)
6304 (has_libpthread): Update.
6305 * linespec.c (iterate_over_all_matching_symtabs)
6306 (search_minsyms_for_name): Update.
6307 * jit.c (jit_find_objf_with_entry_addr): Update.
6308 * hppa-tdep.c (find_unwind_entry)
6309 (hppa_lookup_stub_minimal_symbol): Update.
6310 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6312 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6313 (elf_gnu_ifunc_resolve_by_got): Update.
6314 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6315 * dwarf-index-write.c (save_gdb_index_command): Update.
6316 * cp-support.c (add_symbol_overload_list_qualified): Update.
6317 * breakpoint.c (create_overlay_event_breakpoint)
6318 (create_longjmp_master_breakpoint)
6319 (create_std_terminate_master_breakpoint)
6320 (create_exception_master_breakpoint): Update.
6321 * blockframe.c (find_pc_partial_function): Update.
6322 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6323 (ada_collect_symbol_completion_matches)
6324 (ada_add_global_exceptions): Update.
6326 2019-01-17 Tom Tromey <tom@tromey.com>
6328 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6330 (solib_target_parse_libraries): Change return type.
6331 (library_list_start_segment, library_list_start_section)
6332 (library_list_end_library, library_list_start_library); Update.
6333 (solib_target_free_library_list): Remove.
6334 (solib_target_parse_libraries): Remove cleanup. Change return
6336 (solib_target_current_sos): Update.
6338 2019-01-17 Tom Tromey <tromey@bapiya>
6340 * valprint.c: Replace "the the" with "the".
6341 * symtab.c: Replace "the the" with "the".
6342 * solib.c: Replace "the the" with "the".
6343 * solib-dsbt.c: Replace "the the" with "the".
6344 * linespec.c: Replace "the the" with "the".
6345 * dwarf2loc.h: Replace "the the" with "the".
6346 * amd64-windows-tdep.c: Replace "the the" with "the".
6347 * aarch64-tdep.c: Replace "the the" with "the".
6349 2019-01-16 Keith Seitz <keiths@redhat.com>
6352 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6353 <builder>: Rename to ..
6354 <m_builder>: ... this and make private.
6355 (dwarf2_cu::get_builder): New method. Change all users of
6356 `builder' to use this method.
6357 (dwarf2_start_symtab): Move to ...
6358 (dwarf2_cu::start_symtab): ... here. Update all callers
6359 (setup_type_unit_groups): Move to ...
6360 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6362 (dwarf2_cu::reset_builder): New method.
6363 (process_full_compunit, process_full_type_unit): Use
6364 dwarf2_cu::reset_builder.
6365 (follow_die_offset): Record the ancestor CU if it is different
6366 from the followed DIE's CU.
6367 (follow_die_sig_1): Likewise.
6369 2019-01-15 Tom Tromey <tom@tromey.com>
6371 * remote.c (class remote_state) <buf>: Now a char_vector.
6373 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6375 (remote_target::getpkt_or_notif_sane_1)
6376 (remote_target::getpkt_sane)
6377 (remote_target::getpkt_or_notif_sane): Likewise.
6378 (class remote_target) <putpkt>: New overload.
6379 (remote_target::read_frame): Change type of "buf_p". Remove
6381 (packet_ok): New overload.
6382 (packet_check_result): New overload.
6385 2019-01-14 Tom Tromey <tom@tromey.com>
6387 * remote-notif.c (handle_notification, remote_notif_ack)
6388 (remote_notif_parse): Make "buf" const.
6389 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6391 (remote_notif_parse, remote_notif_ack, handle_notification):
6393 * remote.c (remote_notif_stop_parse): Make "buf" const.
6394 (remote_target::remote_parse_stop_reply): Make "buf" const.
6395 (remote_notif_stop_ack): Make "buf" const.
6397 2019-01-14 Tom Tromey <tom@tromey.com>
6399 * remote.c (remote_console_output): Make parameter const.
6401 2019-01-14 Tom Tromey <tom@tromey.com>
6403 * target-debug.h (target_debug_print_signals): Constify.
6404 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6405 * procfs.c (procfs_target::pass_signals): Update.
6406 * linux-nat.c (linux_nat_target::pass_signals): Update.
6407 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6408 * target-delegates.c: Rebuild.
6409 * remote.c (remote_target::program_signals): Update.
6410 (remote_target::pass_signals): Update.
6411 * target.c (target_pass_signals): Constify argument.
6412 (target_program_signals): Likewise.
6413 * target.h (struct target_ops) <pass_signals, program_signals>:
6415 (target_pass_signals, target_program_signals): Constify argument.
6417 2019-01-14 Tom Tromey <tom@tromey.com>
6420 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6422 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6424 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6426 * rs6000-tdep.c: Include reggroups.h.
6427 (IS_V_ALIAS_PSEUDOREG): Define.
6428 (rs6000_register_name): Return names for the "vX" aliases.
6429 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6430 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6431 aliases. Call default_register_reggroup_p for all other
6433 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6435 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6436 Handle "vX" aliases.
6437 (v_alias_pseudo_register_collect): New function.
6438 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6439 (rs6000_gdbarch_init): Initialize "vX" aliases as
6440 pseudo-registers. Restore registration of
6441 rs6000_pseudo_register_reggroup_p with
6442 set_tdesc_pseudo_register_reggroup_p.
6444 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6446 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6447 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6448 set_gdbarch_num_pseudo_regs.
6450 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6452 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6453 Remove arg prefixname, add do_set and do_show.
6454 Add member functions set_list and show_list.
6455 * cli/cli-style.c (class cli_style_option): Update accordingly.
6456 (style_set_list): Move to file scope.
6457 (style_show_list): Likewise.
6458 (set_style): Call help_list.
6459 (show_style): Call cmd_show_list.
6460 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6461 Update to use the new macro.
6463 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6465 * ada-lang.c (_initialize_ada_language): Expand the help text
6466 for the "catch exception" command.
6468 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6470 * symtab.c (matching_obj_sections): Initialize obj,
6471 declare it closer to its usage.
6473 2019-01-10 Tom Tromey <tom@tromey.com>
6475 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6476 (basic_inf_threads_range): Remove.
6477 (inf_threads_range, inf_non_exited_threads_range)
6478 (safe_inf_threads_range): Use next_adapter.
6480 2019-01-10 Keith Seitz <keiths@redhat.com>
6484 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6485 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6487 2019-01-10 Keith Seitz <keiths@redhat.com>
6491 * dictionary.c (pending_to_vector): Remove.
6492 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6493 Remove _1 suffix, replacing functions of the same name. Update
6495 (dict_create_hashed, dict_create_hashed_expandable)
6496 (dict_create_linear, dict_create_linear_expandable, dict_free)
6497 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6498 Make functions static.
6500 2019-01-10 Keith Seitz <keiths@redhat.com>
6504 * dictionary.h (struct dictionary): Replace declaration with
6506 (dict_create_hashed, dict_create_hashed_expandable)
6507 (dict_create_linear, dict_create_linear_expandable)
6508 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6509 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6510 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6511 taking multidictionary argument.
6512 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6513 * block.h (struct block) <dict>: Change to multidictionary
6514 and rename `multidict'.
6515 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6516 symmisc.c: Update all dictionary references to multidictionary.
6518 2019-01-10 Keith Seitz <keiths@redhat.com>
6522 * dictionary.c: Include unordered_map.
6523 (pending_to_vector): New function.
6524 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6525 Rewrite the non-"_1" functions to take vector instead
6527 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6528 "new" _1 versions of the same name.
6529 (multidictionary): Define.
6530 (std::hash<enum language): New definition.
6531 (collate_pending_symbols_by_language, mdict_create_hashed)
6532 (mdict_create_hashed_expandable, mdict_create_linear)
6533 (mdict_create_linear_expandable, mdict_free)
6534 (find_language_dictionary, create_new_language_dictionary)
6535 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6536 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6537 (mdict_size, mdict_empty): New functions.
6538 * dictionary.h (mdict_iterator): Define.
6540 2019-01-10 Pedro Alves <palves@redhat.com>
6542 * breakpoint.c (read_uploaded_action)
6543 (create_tracepoint_from_upload): Adjust to use
6544 gdb::unique_xmalloc_ptr.
6545 * ctf.c (ctf_write_uploaded_tp):
6546 (SET_ARRAY_FIELD): Use emplace_back.
6547 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6548 * tracefile-tfile.c (tfile_write_uploaded_tp):
6549 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6550 gdb::unique_xmalloc_ptr.
6551 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6552 at_string, cond_string, cmd_strings>: Replace char pointers
6553 with gdb::unique_xmalloc_ptr.
6555 2019-01-10 Pedro Alves <palves@redhat.com>
6557 * solib-target.c (library_list_start_library): Don't xstrdup name.
6559 2019-01-10 Pedro Alves <palves@redhat.com>
6561 * mdebugread.c (parse_partial_symbols): Use
6562 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6564 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6566 * linux-fork.c (scoped_switch_fork_info)
6567 <~scoped_switch_fork_info>: Fix incorrect variable name.
6569 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6571 * linux-fork.c (scoped_switch_fork_info)
6572 <scoped_switch_fork_info>: Make explicit.
6573 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6575 2019-01-10 Tom Tromey <tom@tromey.com>
6577 * objfiles.h (objfile::reset_psymtabs): Update.
6578 * objfiles.c (objfile::objfile): Update.
6579 * psymtab.h (psymtab_storage::obstack): Update.
6580 (psymtab_storage::m_obstack): Use gdb::optional.
6581 (class psymtab_storage): Update comment. Remove objfile
6583 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6585 2019-01-10 Tom Tromey <tom@tromey.com>
6587 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6588 <free_psymtabs>: Now private.
6589 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6590 (allocate_psymtab): Use new method.
6592 2019-01-10 Tom Tromey <tom@tromey.com>
6594 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6595 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6596 * mdebugread.c (parse_partial_symbols): Use
6597 allocate_dependencies.
6598 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6599 allocate_dependencies.
6600 (process_psymtab_comp_unit_reader)
6601 (build_type_psymtab_dependencies): Likewise.
6602 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6604 2019-01-10 Tom Tromey <tom@tromey.com>
6606 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6607 PSYMBOL_SET_LANGUAGE.
6608 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6610 2019-01-10 Tom Tromey <tom@tromey.com>
6612 * psymtab.h (psymtab_storage::obstack): New method.
6613 <m_obstack>: Rename from obstack; now private.
6614 * psymtab.c (psymtab_storage): Update.
6615 * dwarf2read.c (create_addrmap_from_index)
6616 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6619 2019-01-10 Tom Tromey <tom@tromey.com>
6621 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6622 * objfiles.h (objfile::reset_psymtabs): New method.
6624 2019-01-10 Tom Tromey <tom@tromey.com>
6626 * symmisc.c (print_symbol_bcache_statistics): Update.
6627 (print_objfile_statistics): Update.
6628 * symfile.c (reread_symbols): Update.
6629 * psymtab.h (class psymtab_storage): New.
6630 * psymtab.c (psymtab_storage): New constructor.
6631 (~psymtab_storage): New destructor.
6632 (require_partial_symbols): Update.
6633 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6634 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6635 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6636 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6637 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6638 (start_psymtab_common, end_psymtab_common)
6639 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6640 (allocate_psymtab): Update.
6641 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6643 (dump_psymtab_addrmap, maintenance_print_psymbols)
6644 (maintenance_check_psymtabs): Update.
6645 (class objfile_psymtabs): Move to objfiles.h.
6646 * psympriv.h (discard_psymtab): Now inline.
6647 (psymtab_discarder::psymtab_discarder): Update.
6648 (psymtab_discarder::~psymtab_discarder): Update.
6649 (ALL_OBJFILE_PSYMTABS): Rewrite.
6650 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6651 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6653 <partial_symtabs>: New field.
6654 (class objfile_psymtabs): Move from psymtab.h. Update.
6655 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6657 (objfile::~objfile): Don't destroy psymbol_cache.
6658 * mdebugread.c (parse_partial_symbols): Update.
6659 * dwarf2read.c (create_addrmap_from_index)
6660 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6661 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6662 (add_partial_subprogram, dwarf2_ranges_read): Update.
6663 * dwarf-index-write.c (write_address_map)
6664 (write_one_signatured_type, recursively_write_psymbols)
6665 (class debug_names, class debug_names, write_psymtabs_to_index):
6668 2019-01-10 Tom Tromey <tom@tromey.com>
6670 * symtab.h (SYMBOL_SET_NAMES): Update.
6671 (symbol_set_names): Update.
6672 (MSYMBOL_SET_NAMES): Update.
6673 * symtab.c (symbol_set_names): Change argument to be an
6674 objfile_per_bfd_storage.
6675 * psymtab.c (add_psymbol_to_bcache): Update.
6676 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6678 2019-01-10 Tom Tromey <tom@tromey.com>
6680 * symtab.c (create_demangled_names_hash): Change argument to be an
6681 objfile_per_bfd_storage.
6682 (symbol_set_names): Update.
6684 2019-01-10 Tom Tromey <tom@tromey.com>
6686 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6688 * psymtab.c (init_psymbol_list): Do nothing if already called.
6689 * psympriv.h (init_psymbol_list): Add comment.
6690 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6692 * dbxread.c (dbx_symfile_read): Unconditionally call
6695 2019-01-10 Tom Tromey <tom@tromey.com>
6697 * xcoffread.c (scan_xcoff_symtab): Update.
6698 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6700 * mdebugread.c (parse_partial_symbols)
6701 (handle_psymbol_enumerators): Update.
6702 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6703 * dbxread.c (read_dbx_symtab): Update.
6704 * psympriv.h (psymbol_placement): New enum.
6705 (add_psymbol_to_list): Update.
6707 2019-01-10 Tom Tromey <tom@tromey.com>
6709 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6710 static_psymbols parameters.
6711 (scan_xcoff_symtab): Update.
6712 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6713 static_psymbols parameters.
6714 * psympriv.h (start_psymtab_common): Update.
6715 * mdebugread.c (parse_partial_symbols): Update.
6716 * dwarf2read.c (create_partial_symtab): Update.
6717 * dbxread.c (read_dbx_symtab): Update.
6718 (start_psymtab): Remove global_psymbols and static_psymbols
6721 2019-01-10 Tom Tromey <tom@tromey.com>
6723 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6724 * psymtab.c (allocate_psymtab): Add comment.
6725 * psympriv.h (allocate_psymtab): Add comment.
6726 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6728 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6730 2019-01-10 Tom Tromey <tom@tromey.com>
6732 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6734 * mipsread.c: Include mdebugread.h.
6735 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6737 * elfread.c: Include mdebugread.h.
6739 2019-01-09 Tom Tromey <tom@tromey.com>
6741 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6742 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6743 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6744 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6745 (psym_lookup_symbol, psym_find_last_source_symtab)
6746 (psym_forget_cached_source_info, psym_print_stats)
6747 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6748 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6749 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6750 (psym_find_compunit_symtab_by_address)
6751 (maintenance_print_psymbols, maintenance_info_psymtabs)
6752 (maintenance_check_psymtabs): Use ranged for.
6753 * psymtab.h (class objfile_psymtabs): New.
6754 (require_partial_symbols): Return objfile_psymtabs.
6755 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6757 2019-01-09 Tom Tromey <tom@tromey.com>
6759 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6760 (find_pc_mapped_section, list_overlays_command)
6761 (map_overlay_command, unmap_overlay_command)
6762 (simple_overlay_update): Use all_objfiles.
6763 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6764 * printcmd.c (info_symbol_command): Use all_objfiles.
6765 * objfiles.h (ALL_OBJSECTIONS): Remove.
6766 * maint.c (maintenance_translate_address): Use all_objfiles.
6767 * gcore.c (gcore_create_callback): Use all_objfiles.
6768 (objfile_find_memory_regions): Likewise.
6770 2019-01-09 Tom Tromey <tom@tromey.com>
6772 * symtab.c (find_line_symtab, info_sources_command)
6773 (make_source_files_completion_list): Use objfile_compunits.
6774 * source.c (select_source_symtab): Use objfile_compunits.
6775 * objfiles.h (struct objfile): Update comment.
6776 (ALL_OBJFILES): Remove.
6777 (ALL_FILETABS): Remove.
6778 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6781 2019-01-09 Tom Tromey <tom@tromey.com>
6783 * symmisc.c (print_objfile_statistics, dump_objfile)
6784 (maintenance_print_symbols): Use compunit_filetabs.
6785 * source.c (forget_cached_source_info_for_objfile): Use
6787 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6788 (ALL_FILETABS): Use compunit_filetabs.
6789 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6790 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6792 2019-01-09 Tom Tromey <tom@tromey.com>
6794 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6795 (compunit_filetabs): New.
6796 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6798 (info_sources_command, make_source_files_completion_list): Remove
6800 * symmisc.c (print_objfile_statistics, dump_objfile)
6801 (maintenance_print_symbols): Remove declaration.
6802 (maintenance_info_symtabs): Use compunit_filetabs.
6803 (maintenance_info_line_tables): Likewise.
6804 * source.c (select_source_symtab): Change local variable name.
6805 (forget_cached_source_info_for_objfile): Remove declaration.
6806 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6807 * objfiles.c (objfile_relocate1): Remove declaration.
6808 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6810 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6811 * coffread.c (coff_symtab_read): Remove declaration.
6812 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6815 2019-01-09 Tom Tromey <tom@tromey.com>
6817 * symtab.c (lookup_objfile_from_block)
6818 (find_pc_sect_compunit_symtab, search_symbols)
6819 (default_collect_symbol_completion_matches_break_on): Use
6821 * objfiles.h (ALL_COMPUNITS): Remove.
6822 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6823 * cp-support.c (add_symbol_overload_list_qualified): Use
6825 * ada-lang.c (ada_collect_symbol_completion_matches)
6826 (ada_add_global_exceptions): Use objfile_compunits.
6828 2019-01-09 Tom Tromey <tom@tromey.com>
6830 * source.c (select_source_symtab)
6831 (forget_cached_source_info_for_objfile): Remove declaration.
6832 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6834 * maint.c (count_symtabs_and_blocks): Remove declaration.
6835 * cp-support.c (add_symbol_overload_list_qualified): Remove
6837 * coffread.c (coff_symtab_read): Remove declaration.
6838 * symtab.c (lookup_symbol_in_objfile_symtabs)
6839 (basic_lookup_transparent_type_1): Use objfile_compunits.
6840 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6841 (info_sources_command, search_symbols)
6842 (default_collect_symbol_completion_matches_break_on)
6843 (make_source_files_completion_list): Remove declaration.
6844 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6845 (ada_collect_symbol_completion_matches)
6846 (ada_add_global_exceptions): Remove declaration.
6847 * linespec.c (iterate_over_all_matching_symtabs): Use
6849 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6850 (class objfile_compunits): New.
6851 (ALL_COMPUNITS): Use objfile_compunits.
6852 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6853 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6855 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6857 2019-01-09 Tom Tromey <tom@tromey.com>
6859 * symtab.c (search_symbols)
6860 (default_collect_symbol_completion_matches_break_on): Use
6862 * ada-lang.c (ada_lookup_simple_minsym)
6863 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6864 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6865 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6867 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6868 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6869 * objc-lang.c (find_methods): Use objfile_msymbols.
6870 (info_selectors_command, info_classes_command): Likewise.
6871 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6872 * objfiles.h (class objfile_msymbols): New.
6873 (ALL_OBJFILE_MSYMBOLS): Remove.
6874 (ALL_MSYMBOLS): Remove.
6876 2019-01-09 Tom Tromey <tom@tromey.com>
6878 * common/next-iterator.h (next_adapter): Add Iterator template
6880 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6881 (class all_objfiles_safe): New.
6882 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6883 * objfiles.c (put_objfile_before): Update comment.
6884 (add_separate_debug_objfile): Likewise.
6885 (free_all_objfiles): Use all_objfiles_safe.
6886 (objfile_purge_solibs): Likewise.
6888 2019-01-09 Tom Tromey <tom@tromey.com>
6890 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6891 (expand_symtab_containing_pc, lookup_static_symbol)
6892 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6893 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6895 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6896 * breakpoint.c (create_overlay_event_breakpoint)
6897 (create_longjmp_master_breakpoint)
6898 (create_std_terminate_master_breakpoint)
6899 (create_exception_master_breakpoint): Use all_objfiles.
6900 * linux-thread-db.c (try_thread_db_load_from_pdir)
6901 (has_libpthread): Use all_objfiles.
6902 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6903 * linespec.c (iterate_over_all_matching_symtabs)
6904 (search_minsyms_for_name): Use all_objfiles.
6905 * maint.c (maintenance_info_sections): Use all_objfiles.
6906 * main.c (captured_main_1): Use all_objfiles.
6907 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6908 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6909 * guile/scm-pretty-print.c
6910 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6911 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6912 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6913 (maintenance_print_msymbols): Use all_objfiles.
6914 * source.c (select_source_symtab): Use all_objfiles.
6915 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6916 * symfile.c (remove_symbol_file_command)
6917 (expand_symtabs_matching, map_symbol_filenames): Use
6919 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6921 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6922 * objc-lang.c (find_methods): Use all_objfiles.
6923 * objfiles.c (have_partial_symbols, have_full_symbols)
6924 (have_minimal_symbols, qsort_cmp)
6925 (default_iterate_over_objfiles_in_search_order): Use
6927 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6928 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6929 (maintenance_check_psymtabs): Use all_objfiles.
6930 (ALL_PSYMTABS): Remove.
6931 * compile/compile-object-run.c (do_module_cleanup): Use
6933 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6934 * cp-support.c (add_symbol_overload_list_qualified): Use
6936 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6938 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6939 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6941 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6942 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6943 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6945 * solib.c (solib_read_symbols): Use all_objfiles
6947 2019-01-09 Tom Tromey <tom@tromey.com>
6949 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6950 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6952 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6953 * symmisc.c (print_symbol_bcache_statistics)
6954 (print_objfile_statistics, maintenance_print_objfiles)
6955 (maintenance_info_symtabs, maintenance_check_symtabs)
6956 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6958 * source.c (forget_cached_source_info): Use all_objfiles.
6959 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6960 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6961 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6962 * objfiles.c (update_section_map): Use all_objfiles.
6963 (shared_objfile_contains_address_p): Likewise.
6964 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6965 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6967 2019-01-09 Tom Tromey <tom@tromey.com>
6969 * common/next-iterator.h: New file.
6970 * objfiles.h (class all_objfiles): New.
6971 (struct objfile_iterator): New.
6973 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6975 * NEWS: Move the description of the changed "frame", "select-frame",
6976 and "info frame" commands to the Changed commands section.
6978 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6980 * gdbtypes.c (check_stub_method_group): Remove handling of old
6982 * linespec.c (find_methods): Likewise.
6983 * stabsread.c (read_member_functions): Likewise.
6984 * valops.c (search_struct_method): Likewise.
6985 (value_struct_elt_for_reference): Likewise.
6986 * NEWS: Mention this change.
6988 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6990 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6992 * source.c (print_source_lines_base): Update line number check.
6993 (print_source_lines): New function.
6994 (source_lines_range::source_lines_range): New function.
6995 * source.h (class source_lines_range): New class.
6996 (print_source_lines): New declaration.
6998 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7000 * linespec.c (linespec_state_destructor): Free self->canonical_names.
7002 2019-01-08 Tom Tromey <tom@tromey.com>
7003 Simon Marchi <simon.marchi@ericsson.com>
7006 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
7007 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
7008 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7009 * f-exp.y (DOLLAR_VARIABLE): Likewise.
7010 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
7011 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7013 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7015 * source.c (select_source_symtab): Move header comment to
7016 declaration in source.h.
7017 (forget_cached_source_info_for_objfile): Likewise.
7018 (forget_cached_source_info): Likewise.
7019 (identify_source_line): Likewise.
7020 * source.h (identify_source_line): Move declaration from symtab.h
7021 and add comment from source.c
7022 (print_source_lines): Likewise.
7023 (forget_cached_source_info_for_objfile): Likewise.
7024 (forget_cached_source_info): Likewise.
7025 (select_source_symtab): Likewise.
7026 (enum print_source_lines_flag): Move definition from symtab.h.
7027 * symtab.h (identify_source_line): Move declaration to source.h.
7028 (print_source_lines): Likewise.
7029 (forget_cached_source_info_for_objfile): Likewise.
7030 (forget_cached_source_info): Likewise.
7031 (select_source_symtab): Likewise.
7032 (enum print_source_lines_flag): Move definition to source.h.
7033 * tui/tui-hooks.c: Add 'source.h' include.
7035 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7037 * source.c (print_source_lines_base): Handle requests to print
7038 reverse line number sequences, and guard against empty lines
7041 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7043 * source.c (print_source_lines_base): Fix skip of '\r' if next
7046 2019-01-06 Tom Tromey <tom@tromey.com>
7048 * c-exp.y (struct c_parse_state) <macro_original_text,
7049 expansion_obstack>: New member.
7050 (macro_original_text, expansion_obstack): Remove globals.
7051 (scan_macro_expansion, scanning_macro_expansion)
7052 (finished_macro_expansion): Update.
7053 (scan_macro_cleanup): Remove.
7054 (yylex, c_parse): Update.
7056 2019-01-06 Tom Tromey <tom@tromey.com>
7058 * c-exp.y (struct c_parse_state) <strings>: New member.
7059 (operator_stoken): Update.
7061 2019-01-06 Tom Tromey <tom@tromey.com>
7063 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7064 (union type_stack_elt) <typelist_val>: Now a pointer to
7066 (type_stack_cleanup): Don't declare.
7067 (push_typelist): Update.
7068 * parse.c (pop_typelist): Return a std::vector.
7069 (push_typelist): Take a std::vector.
7070 (follow_types): Update. Do not free args.
7071 (type_stack_cleanup): Remove.
7072 * c-exp.y (struct c_parse_state): New.
7073 (cpstate): New global.
7074 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7075 (nonempty_typelist): Update.
7076 (func_mod): Create a new vector.
7077 (c_parse): Create a c_parse_state.
7078 (check_parameter_typelist): Do not delete params.
7079 (function_method): Update. Do not delete type_list.
7081 2019-01-06 Tom Tromey <tom@tromey.com>
7084 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7086 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7087 (print_return_value): Likewise.
7089 2019-01-05 Tom Tromey <tom@tromey.com>
7091 * contrib/cleanup_check.py: Remove.
7092 * contrib/gcc-with-excheck: Remove.
7093 * contrib/exsummary.py: Remove.
7094 * contrib/excheck.py: Remove.
7096 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7098 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7099 NULL. Initialize tpprev to NULL instead of assigning it
7100 to NULL on the next statement.
7101 * windows-nat.c (windows_delete_thread): Remove check for
7102 main_thread_id before printing thread exit notifications.
7103 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7104 Remove thread ID check against main_thread_id.
7105 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7106 windows_delete_thread.
7107 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7109 2019-01-04 Tom Tromey <tom@tromey.com>
7111 * compile/compile.c (_initialize_compile): Use upper case for
7112 metasyntactic variables.
7113 * symmisc.c (_initialize_symmisc): Use upper case for
7114 metasyntactic variables.
7115 * psymtab.c (_initialize_psymtab): Use upper case for
7116 metasyntactic variables.
7117 * demangle.c (demangle_command): Use upper case for metasyntactic
7119 (_initialize_demangler): Likewise.
7120 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7123 2019-01-03 Tom Tromey <tom@tromey.com>
7125 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7127 2019-01-03 Tom Tromey <tom@tromey.com>
7129 * python/py-symtab.c (salpy_str): Update.
7130 (struct salpy_sal_object) <symtab>: Now a PyObject.
7131 (salpy_dealloc): Update.
7132 (del_objfile_sal): Use gdbpy_ref.
7134 2019-01-03 Tom Tromey <tom@tromey.com>
7136 * python/py-type.c (convert_field): Use new_reference. Return
7138 (make_fielditem): Return gdbpy_ref.
7139 (typy_fields): Update.
7140 (typy_getitem): Update.
7141 (field_name): Return gdbpy_ref. Use new_reference.
7142 (typy_iterator_iternext): Update.
7144 2019-01-03 Tom Tromey <tom@tromey.com>
7146 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7148 2019-01-03 Tom Tromey <tom@tromey.com>
7150 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7151 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7152 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7153 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7154 (pspy_set_type_printers): Likewise.
7155 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7156 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7157 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7158 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7159 (objfpy_set_type_printers): Likewise.
7161 2019-01-03 Tom Tromey <tom@tromey.com>
7163 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7164 (gdbpy_print_stack): Use gdbpy_err_fetch.
7165 * python/python-internal.h (class gdbpy_err_fetch): New class.
7166 (class gdbpy_enter) <m_error_type, m_error_value,
7167 m_error_traceback>: Remove.
7168 <m_error>: New member.
7169 (gdbpy_exception_to_string): Don't declare.
7170 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7171 * python/py-value.c (convert_value_from_python): Use
7173 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7174 gdbpy_exception_to_string.
7175 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7176 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7179 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7181 * linux-nat.c (delete_lwp_cleanup): Delete.
7182 (struct lwp_deleter): New struct.
7183 (lwp_info_up): New typedef.
7184 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7187 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7189 * linux-fork.c (class scoped_switch_fork_info): New class.
7190 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7192 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7194 * valops.c (find_overload_match): Remove use of null_cleanup, and
7195 calls to do_cleanups.
7197 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7199 * compile/compile-cplus-types.c
7200 (compile_cplus_instance::decl_name): Handle changes to
7202 * cp-support.c (cp_func_name): Update header comment, update
7204 * cp-support.h (cp_func_name): Update return type in declaration.
7205 * valops.c (find_overload_match): Move temp_func local to top
7206 level of function and change its type. Use temp_func to hold and
7207 delete temporary string obtained from cp_func_name.
7209 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7211 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7212 gdb::char_vector, remove cleanup, and update uses of `msg`.
7214 2019-01-03 Jim Wilson <jimw@sifive.com>
7216 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7218 2019-01-02 Tom Tromey <tom@tromey.com>
7220 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7221 (tdesc_parse_xml): Remove cleanups.
7222 * target-descriptions.h (make_cleanup_free_target_description):
7224 (target_desc_deleter): New struct.
7225 (target_desc_up): New typedef.
7226 * target-descriptions.c (target_desc_deleter::operator()): Rename
7227 from free_target_description.
7228 (make_cleanup_free_target_description): Remove.
7230 2019-01-02 Tom Tromey <tom@tromey.com>
7232 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7233 constructor, destructor.
7234 (linespec_parser): Remove typedef.
7235 (~linespec_parser): Rename from linespec_parser_delete.
7236 (linespec_lex_to_end, linespec_complete_label)
7237 (linespec_complete): Update.
7238 (decode_line_full): Remove cleanups.
7239 (decode_line_1): Update.
7241 2019-01-02 Tom Tromey <tom@tromey.com>
7243 * python/python-internal.h (inferior_to_inferior_object): Change
7245 * python/py-exitedevent.c (create_exited_event_object): Update.
7246 * python/py-inferior.c (inferior_to_inferior_object): Return
7248 (python_new_inferior, python_inferior_deleted)
7249 (thread_to_thread_object, delete_thread_object)
7250 (build_inferior_list, gdbpy_selected_inferior): Update.
7251 * python/py-infthread.c (create_thread_object): Update. Also fail
7252 if inferior_to_inferior_object fails.
7254 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7256 * inferior.h (class inferior) <displaced_step_state>: New field.
7257 * infrun.h (struct displaced_step_state): Move here from
7258 infrun.c. Initialize fields, add constructor.
7259 <inf>: Remove field.
7260 <reset>: New method.
7261 * infrun.c (struct displaced_step_inferior_state): Move to
7263 (displaced_step_inferior_states): Remove.
7264 (get_displaced_stepping_state): Adust.
7265 (displaced_step_in_progress_any_inferior): Adjust.
7266 (displaced_step_in_progress_thread): Adjust.
7267 (displaced_step_in_progress): Adjust.
7268 (add_displaced_stepping_state): Remove.
7269 (get_displaced_step_closure_by_addr): Adjust.
7270 (remove_displaced_stepping_state): Remove.
7271 (infrun_inferior_exit): Call displaced_step_state.reset.
7272 (use_displaced_stepping): Don't check for NULL.
7273 (displaced_step_prepare_throw): Call
7274 get_displaced_stepping_state.
7275 (displaced_step_fixup): Don't check for NULL.
7276 (prepare_for_detach): Don't check for NULL.
7278 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7280 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7281 in case of call that did not complete.
7283 2019-01-02 Andrey Utkin <autkin@undo.io>
7285 * symfile.c (find_separate_debug_file): Fix search of debug files for
7288 2019-01-02 Tom Tromey <tom@tromey.com>
7290 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7292 * python/py-frame.c (frapy_older): Remove cast.
7293 (frapy_newer): Likewise.
7294 * python/py-breakpoint.c (local_setattro): Remove cast.
7295 * python/py-arch.c (archpy_name): Remove local variable.
7296 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7298 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7300 * unittests/basic_string_view/element_access/char/empty.cc:
7301 Fix year range in copyright header.
7303 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7305 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7307 <operator==>: Update with for removed field.
7309 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7310 <isa_features>: ...this.
7311 <abi_features>: New field.
7312 (riscv_isa_flen): Update comment.
7313 (riscv_abi_xlen): New declaration.
7314 (riscv_abi_flen): New declaration.
7315 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7317 (riscv_abi_xlen): New function.
7318 (riscv_isa_flen): Update to get answer from isa_features.
7319 (riscv_abi_flen): New function.
7320 (riscv_has_fp_abi): Update to get answer from abi_features.
7321 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7323 (riscv_call_info) <xlen, flen>: Update comment.
7324 (riscv_call_arg_struct): Remove invalid assertions
7325 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7327 (riscv_gdbarch_init): Gather isa features and abi features
7328 separately, ensure both match on the gdbarch when reusing an old
7329 gdbarch. Relax an error check to allow 32-bit abi float to run on
7330 a target with 64-bit float hardware.
7332 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7334 * source.c (search_command_helper): Stop reverse search
7335 when line 1 has been searched.
7337 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7339 * record-full.c (record_full_base_target::close): Rewrite
7340 record_full_core_buf_list free logic.
7342 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7344 * break-catch-syscall.c (print_one_catch_syscall): xfree
7347 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7349 * top.c (print_gdb_version): Update Copyright year in version
7352 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7354 Update copyright year range in all GDB files.
7356 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7358 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7360 For older changes see ChangeLog-2018.
7366 version-control: never