1 2019-06-13 Pedro Alves <palves@redhat.com>
3 * completer.c (complete_line_internal_1): Rewind completion word
5 (completion_tracker::advance_custom_word_point_by): Change
7 * completer.h (completion_tracker::advance_custom_word_point_by):
10 2019-06-13 Pedro Alves <palves@redhat.com>
12 * completer.c (advance_to_completion_word): Handle delimiters.
14 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
16 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
18 2019-06-11 Tom Tromey <tom@tromey.com>
20 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
21 (xmalloc_failed): Move to alloc.c.
23 * Makefile.in (COMMON_SFILES): Add alloc.c.
25 2019-06-11 Tom Tromey <tom@tromey.com>
27 * nat/linux-waitpid.c: Don't include server.h.
28 (linux_debug): Remove.
31 2019-06-11 Tom Tromey <tromey@adacore.com>
33 * infcall.c (_initialize_infcall): Remove trailing newline from
35 * user-regs.c (_initialize_user_regs): Remove trailing newline
37 * typeprint.c (_initialize_typeprint): Remove trailing newline
39 * reverse.c (_initialize_reverse): Remove trailing newlines from
41 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
43 * language.c (add_set_language_command): Remove trailing newline
45 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
47 * disasm.c (_initialize_disasm): Remove trailing newline from
49 * top.c (init_main): Remove trailing newline from help.
50 * interps.c (_initialize_interpreter): Remove trailing newline
52 * btrace.c (_initialize_btrace): Remove trailing newlines from
54 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
56 * python/python.c (_initialize_python): Remove trailing newline
58 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
60 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
61 from help. Reformat some text.
62 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
64 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
67 2019-06-11 Tom Tromey <tromey@adacore.com>
69 * darwin-nat.c (darwin_decode_exception_message)
70 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
72 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
74 * valops.c (value_slice): Check for not allocated or not
77 2019-06-10 Tom de Vries <tdevries@suse.de>
80 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
81 sure an empty slot (defined by a 32-bit zero pair) is recognized as
84 2019-06-10 Tom de Vries <tdevries@suse.de>
87 * linespec.c (linespec_lexer_lex_string): Remove incorrect
88 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
90 2019-06-10 Tom de Vries <tdevries@suse.de>
93 * symtab.c (struct demangled_name_entry): Add language field.
94 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
95 static minimal symbol". Set and use language field.
97 2019-06-10 Tom Tromey <tromey@adacore.com>
99 * ada-lang.c (_initialize_ada_language): Update help text.
101 2019-06-10 Tom Tromey <tromey@adacore.com>
103 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
105 * guile/guile.c (handle_boot_error): Don't end warning with a
107 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
108 warning with a newline.
109 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
111 (s12z_frame_cache): Likewise.
112 * dwarf-index-cache.c (index_cache::store): Don't end warning with
114 * solib-svr4.c (disable_probes_interface): Don't end warning with
116 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
118 * python/python.c (do_finish_initialization): Don't end warning
121 2019-06-10 Tom Tromey <tom@tromey.com>
123 * python/py-breakpoint.c (gdbpy_breakpoint_created)
124 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
127 2019-06-10 Tom Tromey <tromey@adacore.com>
129 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
131 (elf_new_init): Don't call stabsread_new_init.
132 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
133 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
134 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
136 2019-06-10 Tom de Vries <tdevries@suse.de>
140 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
142 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
144 * source.c (find_and_open_source): Also rewrite relative file
147 2019-04-26 Amos Bird <amosbird@gmail.com>
149 * annotate.c (annotate_thread_exited): Add "thread-exited"
152 2019-06-06 Tom Tromey <tromey@adacore.com>
154 * maint.h (class scoped_command_stats): Use
155 DISABLE_COPY_AND_ASSIGN.
156 <print_time>: New method.
157 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
159 (scoped_command_stats::print_time): New method.
161 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
163 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
164 instructions of lengths 6 or 8 bytes.
166 2019-06-04 Pedro Alves <palves@redhat.com>
168 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
170 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
171 * breakpoint.c (condition_completer): Likewise.
172 * cli/cli-dump.c (scan_expression): Likewise.
173 * common/filestuff.c (mkdir_recursive): Likewise.
174 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
175 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
176 (gdb_abspath): Likewise.
177 * compile/compile-cplus-types.c
178 (compile_cplus_instance::decl_name): Likewise.
179 * completer.c (complete_explicit_location):
180 (signal_completer, reg_or_group_completer_1): Likewise.
181 * cp-support.c (cp_remove_params_if_any): Likewise.
182 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
183 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
184 * infcmd.c (strip_bg_char): Likewise.
185 * linespec.c (copy_token_string): Likewise.
186 * mi/mi-main.c (output_cores): Likewise.
187 * psymtab.c (psymtab_search_name):
188 * symfile.c (test_set_ext_lang_command): Likewise.
189 * target.c (target_fileio_read_stralloc): Likewise.
190 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
191 * value.c (complete_internalvar): Likewise.
193 2019-06-04 Christian Biesinger <cbiesinger@google.com>
195 Add objfile property to gdb.Type.
196 * NEWS: Mention Python API addition.
197 * python/py-type.c (typy_get_objfile): New method.
199 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
201 * NEWS: Mention the new set|show style [title|highlight].
202 Mention changes to "show style", "help" and "apropos".
204 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
206 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
207 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
208 instead of print_help_for_command.
209 (print_doc_of_command): New function.
210 (help_list): Add 'apropos -v word' suggestion.
211 (print_help_for_command): Style the command name using title style.
212 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
213 (_initialize_cli_cmds): Describe -v in apropos_command help.
215 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
217 * cli/cli-style.h (cli_style_option): Add name in constructor,
218 add m_name class member, add constructor with intensity,
219 add name class function.
220 (cli_style_option::add_setshow_commands): Remove name argument.
221 (highlight_style, title_style): New styles.
222 * cli/cli-style.c (do_show): New function that shows a style
223 characteristic styling the style name with itself.
224 (set_style_name): New function.
225 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
226 Update all callers according to the changes in cli/cli-style.h.
227 * utils.h (fputs_highlighted): New function.
228 * utils.c (fputs_highlighted): Likewise.
230 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
232 * NEWS: Mention new pipe command and new convenience variables.
234 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
236 * cli/cli-cmds.c (pipe_command): New function.
237 (_initialize_cli_cmds): Call add_com for pipe_command.
238 Define | as an alias for pipe.
239 (exit_status_set_internal_vars): New function.
240 (shell_escape): Call exit_status_set_internal_vars.
241 cli/cli-decode.c (find_command_name_length): Recognize | as
242 a single character command.
244 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
246 * gdbcmd.h (execute_command_to_ui_file): New declaration.
247 top.c (execute_command_to_ui_file): New function, mostly a copy
248 of execute_command_to_string.
249 (execute_command_to_string): Implement by calling
250 execute_command_to_ui_file.
252 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
254 * top.h (saved_command_line): Remove declaration.
255 * top.c (previous_saved_command_line, previous_repeat_arguments):
257 (saved_command_line): Make static, define together with other
259 (dont_repeat): Clear repeat_arguments.
260 (repeat_previous, get_saved_command_line, save_command_line):
262 (gdb_init): Initialize saved_command_line
263 and previous_saved_command_line.
264 * main.c (captured_main_1): Remove saved_command_line initialization.
265 * event-top.c (handle_line_of_input): Update to use
266 the new 'repeat' related functions instead of direct access to
268 * command.h (repeat_previous, get_saved_command_line,
269 save_command_line): New declarations.
270 (dont_repeat): Add comment.
272 2019-05-30 Tom Tromey <tromey@adacore.com>
274 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
276 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
278 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
281 * completer.c (complete): Initialize variable word.
283 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
285 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
286 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
287 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
288 'body' is NULL to the outter 'if', protecting the '!is_define'
291 2019-05-29 Tom Tromey <tromey@adacore.com>
293 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
294 (dwarf_unknown): New function.
295 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
296 (dwarf_type_encoding_name): Use dwarf_unknown.
298 2019-05-29 Tom Tromey <tromey@adacore.com>
301 * cp-valprint.c (cp_print_value_fields): Call
302 cp_print_static_field inside "try".
304 2019-05-29 Tom Tromey <tromey@adacore.com>
306 * inflow.c (struct terminal_info): Add default operator=.
307 * configure: Rebuild.
308 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
309 -Wdeprecated-copy-dtor, -Wredundant-move.
311 2019-05-29 Tom Tromey <tromey@adacore.com>
314 * infcmd.c (print_return_value_1): Handle finish_print
316 (show_print_finish): New function.
317 (_initialize_infcmd): Add "set/show print finish" commands.
318 * valprint.c (user_print_options): Initialize new member.
319 * valprint.h (struct value_print_options) <finish_print>: New
322 2019-05-28 Tom Tromey <tromey@adacore.com>
324 * ada-lang.c (ada_remove_Xbn_suffix)
325 (find_old_style_renaming_symbol)
326 (parse_old_style_renaming): Remove.
327 (ada_find_renaming_symbol): Don't call
328 find_old_style_renaming_symbol.
329 (ada_is_renaming_symbol): Rename from
330 ada_find_renaming_symbol. Remove "block" parameter. Return
332 (ada_read_var_value): Update and simplify.
333 * ada-exp.y (write_var_or_type): Remove old code.
335 2019-05-28 Alan Hayward <alan.hayward@arm.com>
337 * event-top.c: Remove include comment.
338 * inflow.c (class scoped_ignore_sigttou): Move from here...
339 * inflow.h (class scoped_ignore_sigttou): ...to here.
340 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
341 * top.c: Remove include comment.
343 2019-05-27 Tom Tromey <tom@tromey.com>
347 2019-05-22 Tom Tromey <tromey@adacore.com>
349 * target.c (target_follow_exec): Constify parameter.
350 * target-delegates.c: Rebuild.
351 * remote.c (remote_target::follow_exec): Constify parameter.
352 * infrun.c (follow_exec): Constify parameter.
353 * target.h (struct target_ops) <follow_exec>: Constify parameter.
354 (target_follow_exec): Likewise.
356 2019-05-22 Alan Hayward <alan.hayward@arm.com>
358 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
359 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
361 2019-05-22 Alan Hayward <alan.hayward@arm.com>
363 * NEWS: Add debugredirect and testsuite sections.
365 2019-05-22 Simon Cook <simon.cook@embecosm.com>
367 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
368 target descriptions using exclusively floating point register name
371 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
374 * f-lang.c (build_fortran_types): Handle the case where
375 gdbarch_floatformat_for_type returns a nullptr.
377 2019-05-21 Tom de Vries <tdevries@suse.de>
380 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
382 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
385 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
387 * i386-tdep.c (i386_floatformat_for_type): Use
388 floatformats_ia64_quad for the 16-byte floating point component
389 within a fortran 32-byte complex number.
391 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
393 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
394 delete default constructor.
395 (find_partial_die): Update to return const struct.
396 (partial_die_parent_scope): Move variable declaration into scope
397 of its use and change its type to auto.
398 (guess_partial_die_structure_name): Likewise.
399 (partial_die_info::fixup): Likewise.
401 2019-05-17 Tom Tromey <tromey@adacore.com>
403 * source.c (find_and_open_source): Remove cast.
405 2019-05-17 Tom Tromey <tromey@adacore.com>
407 * annotate.c (annotate_source): Make "filename" const.
408 * annotate.h (annotate_source): Use const.
410 2019-05-17 Alan Hayward <alan.hayward@arm.com>
412 * disasm.c (set_disassembler_options): Send errors to stderr.
414 2019-05-17 Alan Hayward <alan.hayward@arm.com>
416 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
417 (cli_interp_base::set_logging): Check debug_redirect.
418 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
419 * cli/cli-logging.c (debug_redirect): Add static variable.
420 (pop_output_files): Add default param.
421 (handle_redirections): Print debug setting.
422 (show_logging_command): Likewise.
423 (_initialize_cli_logging): Add debugredirect command.
424 * interps.c (current_interp_set_logging): Add debug_redirect
426 * interps.h (set_logging): Add debug_redirect parameter.
427 (current_interp_set_logging): Likewise.
428 * mi/mi-common.h: Likewise.
429 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
431 2019-05-17 Alan Hayward <alan.hayward@arm.com>
432 Tom Tromey <tromey@adacore.com>
434 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
436 * cli/cli-interp.h (make_logging_output): Remove declaration.
437 * cli/cli-logging.c (make_logging_output): Remove function.
438 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
440 * ui-file.c (tee_file::tee_file): Remove bools.
441 (tee_file::~tee_file): Remove deletes.
442 * ui-file.h (tee_file): Remove bools.
444 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
446 * mi/mi-cmds.h (mi_cmd_complete): New function.
447 * mi/mi-main.c (mi_cmd_complete): Likewise.
448 * mi/mi-cmds.c: Define new MI command -complete.
449 * NEWS: Mention new -complete command.
451 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
453 * completer.h (complete): New function.
454 * completer.c (complete): Likewise.
455 * cli/cli-cmds.c: (complete_command): Update to use new complete()
456 function defined in completer.h.
458 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
460 * MAINTAINERS (Write After Approval): Add myself.
462 2019-05-17 Tom de Vries <tdevries@suse.de>
465 * dwarf2read.c (struct cu_partial_die_info): New struct.
466 (find_partial_die): Return cu_partial_die_info.
467 (partial_die_parent_scope, guess_partial_die_structure_name)
468 (partial_die_info::fixup): Handle new return type of find_partial_die.
470 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
472 * stap-probe.c (stap_parse_register_operand): Make "regname" an
473 "std::string", simplifying the algorithm.
475 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
477 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
478 (stap_static_probe_ops::get_probes): Likewise.
480 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
482 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
484 (stap_parse_single_operand): Join checks for
485 "gdbarch_stap_parse_special_token_p" and
486 "gdbarch_stap_parse_special_token" in the same "if" statement.
487 Invert check when verifying for operation on register
490 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
492 * stap-probe.c (stap_get_opcode): Update comment.
493 (stap_get_expected_argument_type): Likewise.
494 (handle_stap_probe): Likewise.
496 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
498 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
499 return type to 'bool'. Adjust comment. Use 'bool' when
501 (i386_stap_parse_special_token_three_arg_disp): Likewise.
502 * stap-probe.c (stap_parse_argument_1): Likewise.
503 (stap_is_operator): Likewise.
504 (stap_is_generic_prefix): Likewise.
505 (stap_is_register_prefix): Likewise.
506 (stap_is_register_indirection_prefix): Likewise.
507 (stap_is_integer_prefix): Likewise.
508 (stap_generic_check_suffix): Likewise.
509 (stap_check_integer_suffix): Likewise.
510 (stap_check_register_suffix): Likewise.
511 (stap_check_register_indirection_suffix): Likewise.
512 (stap_parse_register_operand): Likewise.
513 (stap_parse_single_operand): Likewise.
514 (stap_parse_argument_1): Likewise.
515 (stap_probe::get_argument_count): Likewise.
516 (stap_is_operator): Likewise.
518 2019-05-16 Tom Tromey <tromey@adacore.com>
520 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
523 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
525 * linux-thread-db.c (try_thread_db_load_1): Change return type
527 (try_thread_db_load): Likewise.
528 (try_thread_db_load_from_pdir_1): Likewise.
529 (try_thread_db_load_from_pdir): Likewise.
530 (try_thread_db_load_from_sdir): Likewise.
531 (try_thread_db_load_from_dir): Likewise.
532 (thread_db_load_search): Likewise.
533 (has_libpthread): Likewise.
534 (thread_db_load): Likewise.
536 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
538 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
539 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
540 NULL, and complain/return if that's the case.
542 2019-05-15 John Darrington <john@darrington.wattle.id.au>
544 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
545 (advance, posn, abstract_read_memory): New functions.
546 [struct mem_read_abstraction]: New struct.
547 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
549 2019-05-14 Tom Tromey <tromey@adacore.com>
551 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
552 value is not lval_memory.
554 2019-05-14 Tom Tromey <tromey@adacore.com>
556 * solib.c (info_sharedlibrary_command): Style the file name.
558 2019-05-14 Alan Hayward <alan.hayward@arm.com>
560 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
561 (aarch64_vnv_type): Likewise.
562 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
563 * common/tdesc.c: Likewise.
564 * common/tdesc.h (enum tdesc_type_kind): Likewise.
565 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
566 * features/aarch64-fpu.xml: Add ieee half view.
567 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
568 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
569 * gdbtypes.h (struct builtin_type): Likewise.
570 (struct objfile_type): Likewise.
572 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
574 * language.c (language_sniff_from_mangled_name): Fix "langauge"
576 * location.h (string_to_event_location): Likewise.
578 2019-05-11 Joel Brobecker <brobecker@adacore.com>
582 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
584 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
585 New variable declaration.
586 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
588 (print_one_breakpoint): Use ui_out::test_flags and new global
589 variable to compute use_fixed_output.
590 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
592 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
593 (mi_multi_location_breakpoint_output_fixed): Remove.
594 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
596 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
597 fix_multi_location_breakpoint_output flag if version >= 3.
598 * ui-out.h (enum ui_out_flag)
599 <fix_multi_location_breakpoint_output>: New enumerator.
601 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
603 * contrib/cc-with-tweaks.sh: Validate dwz's work.
605 2019-05-10 Tom Tromey <tromey@adacore.com>
607 * ada-lang.c (catch_ada_completer): New function.
608 (_initialize_ada_language): Use it.
610 2019-05-10 Tom Tromey <tromey@adacore.com>
612 * thread.c (print_thread_info): Make "requested_threads" const.
613 * gdbthread.h (print_thread_info): Make "requested_threads"
615 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
616 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
618 2019-05-08 Tom Tromey <tom@tromey.com>
620 * gdbtypes.c (objfile_type_data): Change type.
621 (objfile_type, _initialize_gdbtypes): Update.
623 2019-05-08 Tom Tromey <tom@tromey.com>
625 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
626 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
627 (_initialize_dwarf2_frame): Update.
629 2019-05-08 Tom Tromey <tom@tromey.com>
631 * objc-lang.c (objc_objfile_data): Change type.
632 (find_methods): Update.
633 (_initialize_objc_lang): Remove.
635 2019-05-08 Tom Tromey <tom@tromey.com>
637 * stabsread.c (rs6000_builtin_type_data): Change type.
638 (rs6000_builtin_type, _initialize_stabsread): Update.
640 2019-05-08 Tom Tromey <tom@tromey.com>
642 * mips-tdep.c (mips_pdr_data): Remove.
643 (_initialize_mips_tdep): Update.
645 2019-05-08 Tom Tromey <tom@tromey.com>
647 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
648 (hppa_init_objfile_priv_data, read_unwind_info)
649 (find_unwind_entry, _initialize_hppa_tdep): Update.
651 2019-05-08 Tom Tromey <tom@tromey.com>
653 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
654 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
656 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
658 2019-05-08 Tom Tromey <tom@tromey.com>
660 * mdebugread.c (basic_type_data): Change type.
661 (basic_type, _initialize_mdebugread): Update.
663 2019-05-08 Tom Tromey <tom@tromey.com>
665 * common/gdb_unique_ptr.h (struct noop_deleter): New.
667 2019-05-08 Tom Tromey <tom@tromey.com>
669 * nto-tdep.c (nto_inferior_data_reg): Change type.
670 (nto_inferior_data): Update.
671 (nto_inferior_data_cleanup, nto_new_inferior_data)
672 (_initialize_nto_tdep): Remove.
673 * nto-tdep.h (struct nto_inferior_data): Add initializers.
675 2019-05-08 Tom Tromey <tom@tromey.com>
677 * ada-lang.c (struct ada_inferior_data): Add initializers.
678 (ada_inferior_data): Change type.
679 (ada_inferior_data_cleanup): Remove.
680 (get_ada_inferior_data, ada_inferior_exit)
681 (struct ada_pspace_data): Add initializers, destructor.
682 (ada_pspace_data_handle): Change type.
683 (get_ada_pspace_data): Update.
684 (ada_pspace_data_cleanup): Remove.
686 2019-05-08 Tom Tromey <tom@tromey.com>
688 * coffread.c (struct coff_symfile_info): Add initializers.
689 (coff_objfile_data_key): Move lower. Change type.
690 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
692 (coff_free_info): Remove.
694 2019-05-08 Tom Tromey <tom@tromey.com>
696 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
697 (fbsd_pspace_data_handle): Move lower. Change type.
698 (get_fbsd_pspace_data): Update.
699 (fbsd_pspace_data_cleanup): Remove.
700 (_initialize_fbsd_tdep): Update.
702 2019-05-08 Tom Tromey <tom@tromey.com>
704 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
705 (get_ada_tasks_pspace_data): Update.
706 (ada_tasks_pspace_data_cleanup): Remove.
707 (_initialize_tasks): Update.
708 (ada_tasks_inferior_data_handle): Change type.
709 (get_ada_tasks_inferior_data): Update.
710 (ada_tasks_inferior_data_cleanup): Remove.
711 (struct ada_tasks_pspace_data): Add initializers.
713 2019-05-08 Tom Tromey <tom@tromey.com>
715 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
716 * symfile-debug.c (debug_sym_get_probes): Change type.
717 * stap-probe.c (handle_stap_probe):
718 (stap_static_probe_ops::get_probes): Change type.
719 * probe.h (class static_probe_ops) <get_probes>: Change type.
720 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
721 (parse_probes_in_pspace): Update.
722 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
724 (any_static_probe_ops::get_probes): Change type.
725 * elfread.c (elfread_data): New typedef.
726 (probe_key): Change type.
727 (elf_get_probes): Likewise. Update.
728 (probe_key_free): Remove.
729 (_initialize_elfread): Update.
730 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
732 (dtrace_process_dof_probe, dtrace_process_dof)
733 (dtrace_static_probe_ops::get_probe): Change type.
735 2019-05-08 Tom Tromey <tom@tromey.com>
737 * xcoffread.c (struct xcoff_symfile_info): Rename from
738 coff_symfile_info. Add initializers.
739 (xcoff_objfile_data_key): Move lower. Change type.
740 (XCOFF_DATA): Rewrite.
741 (xcoff_free_info): Remove.
742 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
743 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
744 (xcoff_initial_scan): Update.
746 2019-05-08 Tom Tromey <tom@tromey.com>
748 * solib-svr4.c (struct svr4_info): Add initializers and
750 <probes_table>: Now an htab_up.
751 (solib_svr4_pspace_data): Change type.
752 (free_probes_table): Simplify.
753 (~svr4_info): Rename from svr4_pspace_data_cleanup.
754 (get_svr4_info, probes_table_htab_remove_objfile_probes)
755 (probes_table_remove_objfile_probes, register_solib_event_probe)
756 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
757 (_initialize_svr4_solib): Update.
759 2019-05-08 Tom Tromey <tom@tromey.com>
761 * remote.c (remote_pspace_data): Change type.
762 (remote_pspace_data_cleanup): Remove.
763 (get_remote_exec_file, set_pspace_remote_exec_file)
764 (_initialize_remote): Update.
766 2019-05-08 Tom Tromey <tom@tromey.com>
768 * breakpoint.c (breakpoint_objfile_key): Change type.
769 (get_breakpoint_objfile_data): Update.
770 (free_breakpoint_objfile_data): Remove.
771 (_initialize_breakpoint): Update.
773 2019-05-08 Tom Tromey <tom@tromey.com>
775 * linux-tdep.c (struct linux_info): Add initializers.
776 (linux_inferior_data): Move. Change type.
777 (invalidate_linux_cache_inf): Update.
778 (linux_inferior_data_cleanup): Remove.
779 (get_linux_inferior_data, _initialize_linux_tdep): Update.
781 2019-05-08 Tom Tromey <tom@tromey.com>
783 * auxv.c (auxv_inferior_data): Move. Change type.
784 (auxv_inferior_data_cleanup): Remove.
785 (invalidate_auxv_cache_inf): Rewrite.
786 (get_auxv_inferior_data, _initialize_auxv): Update.
788 2019-05-08 Tom Tromey <tom@tromey.com>
790 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
791 (symfile_debug_objfile_data_key): Change type.
792 (symfile_debug_installed, debug_qf_has_symbols)
793 (debug_qf_find_last_source_symtab)
794 (debug_qf_forget_cached_source_info)
795 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
796 (debug_qf_print_stats, debug_qf_dump)
797 (debug_qf_expand_symtabs_for_function)
798 (debug_qf_expand_all_symtabs)
799 (debug_qf_expand_symtabs_with_fullname)
800 (debug_qf_map_matching_symbols)
801 (debug_qf_expand_symtabs_matching)
802 (debug_qf_find_pc_sect_compunit_symtab)
803 (debug_qf_map_symbol_filenames)
804 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
805 (debug_sym_new_init, debug_sym_init, debug_sym_read)
806 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
807 (debug_sym_read_linetable, debug_sym_relocate): Update.
808 (symfile_debug_free_objfile): Remove.
809 (install_symfile_debug_logging, _initialize_symfile_debug):
812 2019-05-08 Tom Tromey <tom@tromey.com>
814 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
816 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
817 (get_dwarf2_per_objfile): Update.
818 (set_dwarf2_per_objfile): Remove.
819 (dwarf2_has_info, dwarf2_get_section_info): Update.
820 (dwarf2_free_objfile): Remove.
821 (_initialize_dwarf2_read): Update.
823 2019-05-08 Tom Tromey <tom@tromey.com>
825 * auto-load.c (struct auto_load_pspace_info): Add destructor and
827 <unsupported_script_warning_printed,
828 script_not_found_warning_printed>: Now bool.
829 (auto_load_pspace_data): Change type.
830 (~auto_load_pspace_info): Rename from
831 auto_load_pspace_data_cleanup.
832 (get_auto_load_pspace_data, init_loaded_scripts_info)
833 (clear_section_scripts, maybe_print_unsupported_script_warning)
834 (maybe_print_script_not_found_warning, _initialize_auto_load):
837 2019-05-08 Tom Tromey <tom@tromey.com>
839 * objfiles.c (objfile_pspace_info): Add destructor and
841 (objfiles_pspace_data): Change type.
842 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
843 (get_objfile_pspace_data): Update.
844 (objfiles_bfd_data): Change type.
845 (get_objfile_bfd_data): Update.
846 (objfile_bfd_data_free, _initialize_objfiles): Remove.
848 2019-05-08 Tom Tromey <tom@tromey.com>
850 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
852 (get_catch_syscall_inferior_data): Update.
853 (catch_syscall_inferior_data_cleanup): Remove.
854 (_initialize_break_catch_syscall): Update.
856 2019-05-08 Tom Tromey <tom@tromey.com>
858 * inflow.c (struct terminal_info): Add destructor and
860 (inflow_inferior_data): Change type.
861 (~terminal_info): Rename from inflow_inferior_data_cleanup.
862 (get_inflow_inferior_data, inflow_inferior_exit)
863 (swap_terminal_info, _initialize_inflow): Update.
865 2019-05-08 Tom Tromey <tom@tromey.com>
867 * target-dcache.c (target_dcache_cleanup): Remove.
868 (target_dcache_aspace_key): Change type.
869 (target_dcache_init_p, target_dcache_invalidate)
870 (target_dcache_get, target_dcache_get_or_init)
871 (_initialize_target_dcache): Update.
872 * dcache.h (struct dcache_deleter): New.
874 2019-05-08 Tom Tromey <tom@tromey.com>
876 * symtab.c (struct symbol_cache): Add destructor and
878 (symbol_cache_key): Move. Change type.
879 (make_symbol_cache, free_symbol_cache): Remove.
880 (get_symbol_cache): Update.
881 (symbol_cache_cleanup): Remove.
882 (ALL_PSPACES, symbol_cache_flush)
883 (maintenance_print_symbol_cache)
884 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
887 2019-05-08 Tom Tromey <tom@tromey.com>
889 * symtab.c (struct main_info): Add destructor and initializers.
890 (main_progspace_key): Move. Change type.
891 (get_main_info): Update.
892 (main_info_cleanup): Remove.
893 (_initialize_symtab): Update.
895 2019-05-08 Tom Tromey <tom@tromey.com>
897 * registry.h (DECLARE_REGISTRY): Define the _key class.
899 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
901 * NEWS: Merge two 'New commands' sections.
903 2019-05-08 Joel Brobecker <brobecker@adacore.com>
905 * ada-valprint.c (ada_val_print_gnat_array): Remove language
906 parameter and use Ada language definition instead.
907 (ada_val_print_ptr): Remove unused language parameter.
908 (ada_val_print_num): Remove language parameter and use Ada language
910 (ada_val_print_enum, ada_val_print_flt): Remove unused language
912 (ada_val_print_struct_union, ada_val_print_ref): Remove language
913 parameter and use Ada language definition instead.
914 (ada_val_print_1): Update all ada_val_print_xxx calls.
915 Remove language parameter.
916 (ada_val_print): Update ada_val_print_1 call.
918 2019-05-08 Tom Tromey <tromey@adacore.com>
920 * remote.c (remote_hw_watchpoint_limit)
921 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
924 2019-05-08 Tom Tromey <tromey@adacore.com>
926 * maint.c (_initialize_maint_cmds): Move initialization code to
928 (watchdog, show_watchdog): Move to remote.c.
929 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
931 (_initialize_remote): Move initialization code from maint.c.
932 * defs.h (watchdog): Don't declare.
934 2019-05-08 Tom Tromey <tromey@adacore.com>
936 * tui/tui-interp.c: Include main.h.
937 * interps.c: Include main.h.
938 * main.h (interpreter_p): Declare.
939 * defs.h (interpreter_p): Don't declare.
941 2019-05-08 Tom Tromey <tromey@adacore.com>
943 * dwarf2loc.c: Include dwarf2read.h.
944 * defs.h (read_unsigned_leb128): Don't declare.
945 * dwarf2read.h (read_unsigned_leb128): Declare.
947 2019-05-08 Tom Tromey <tromey@adacore.com>
949 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
952 2019-05-08 Tom Tromey <tromey@adacore.com>
954 * utils.c (fputs_maybe_filtered): Reset style after paging, even
955 when no wrap column is set.
957 2019-05-08 Tom Tromey <tromey@adacore.com>
959 * c-lang.c (c_get_string): Handle non-C-style arrays.
961 2019-05-08 Tom Tromey <tromey@adacore.com>
963 * typeprint.c (print_offset_data::update): Print the bit offset,
964 not the number of bits remaining.
966 2019-05-08 Tom Tromey <tromey@adacore.com>
968 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
969 padding at end of comment.
971 2019-05-08 Tom Tromey <tromey@adacore.com>
973 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
976 2019-05-06 Tom Tromey <tom@tromey.com>
978 * common/scoped_mmap.c: Include common-defs.h.
979 * common/scoped_mmap.h: Don't include config.h.
981 2019-05-04 Tom Tromey <tom@tromey.com>
983 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
984 (struct aarch64_call_info): Add initializers.
985 <si>: Now a std::vector.
986 (pass_on_stack, aarch64_push_dummy_call): Update.
988 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
989 Tom Tromey <tom@tromey.com>
991 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
992 (ppc_threads): Now a std::vector. Now static.
993 (hwdebug_find_thread_points_by_tid)
994 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
997 2019-05-04 Tom Tromey <tom@tromey.com>
999 * arc-tdep.c (arc_tdesc_init): Return bool.
1001 2019-05-04 Tom Tromey <tom@tromey.com>
1003 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1004 Use gdb_assert_not_reached.
1006 2019-05-04 Tom Tromey <tom@tromey.com>
1008 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1011 2019-05-04 Tom Tromey <tom@tromey.com>
1013 * arc-tdep.c (arc_tdesc_init): Use bool.
1015 2019-05-04 Tom Tromey <tom@tromey.com>
1017 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1019 2019-05-04 Tom Tromey <tom@tromey.com>
1021 * cli/cli-cmds.c (valid_command_p): Return bool.
1023 2019-05-04 Tom Tromey <tom@tromey.com>
1025 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1026 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1028 2019-05-04 Raul Tambre <raul@tambre.ee>
1030 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1031 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1032 operator for comparison.
1034 2019-05-04 Tom Tromey <tom@tromey.com>
1036 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1037 (lookup_partial_symbol, print_partial_symbols)
1038 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1039 (psymbol_compare): Update.
1040 (add_psymbol_to_bcache): Clear the entire psymbol.
1041 (maintenance_check_psymtabs): Update.
1042 * psympriv.h (struct partial_symbol): Don't derive from
1043 general_symbol_info.
1044 <obj_section, unrelocated_address, address,
1045 set_unrelocated_address>: Update.
1046 <ginfo>: New member.
1047 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1048 (debug_names::write_psymbols): Update.
1050 2019-05-04 Tom de Vries <tdevries@suse.de>
1052 * contrib/cc-with-tweaks.sh: Support -n arg.
1054 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1056 * corelow.c (core_target::detach): Ensure frame cache and
1057 register caches are cleared.
1058 inferior.c (exit_inferior_1): Likewise.
1060 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1061 Tom Tromey <tom@tromey.com>
1063 * dictionary.c (collate_pending_symbols_by_language): Remove
1064 "struct" from foreach.
1065 * symtab.c (lookup_global_symbol_from_objfile)
1066 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1068 * ser-tcp.c (net_open): Remove "struct" from foreach.
1069 * objfiles.c (objfile_relocate, objfile_rebase)
1070 (objfile_has_symbols): Remove "struct" from foreach.
1071 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1073 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1075 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1076 "struct" from foreach.
1077 * ada-lang.c (create_excep_cond_exprs)
1078 (ada_exception_catchpoint_cond_string): Remove "struct" from
1081 2019-05-03 Tom Tromey <tromey@adacore.com>
1083 * ada-exp.y (convert_char_literal): Check suffix of each
1086 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1089 * ada-exp.y (yywrap): Don't define.
1090 * ada-lex.l (%option): Add noyywrap
1093 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1095 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1096 _WIN32_WINNT to the XP level, unless already defined to a higher
1099 * unittests/parse-connection-spec-selftests.c:
1101 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1104 * symfile.c (find_separate_debug_file): Remove colon from the
1105 drive spec of DOS/Windows file names of the target, so that the
1106 file name produced from DEBUGDIR and the target's directory will
1107 be valid on DOS/Windows systems.
1109 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1111 * rust-lang.c (val_print_struct): Handle printing structures
1114 2019-05-02 Tom Tromey <tromey@adacore.com>
1116 * valarith.c (_initialize_valarith): Remove.
1118 2019-05-01 Tom Tromey <tromey@adacore.com>
1120 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1123 2019-05-01 Tom Tromey <tromey@adacore.com>
1125 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1126 for big-endian copies.
1128 2019-04-30 Ali Tamur <tamur@google.com>
1129 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1130 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1131 (read_3_bytes): New function.
1133 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1135 * windows-nat.c (main_thread_id): Delete.
1136 (handle_output_debug_string): Replace main_thread_id by
1137 current_event.dwThreadId.
1138 (fake_create_process): Likewise.
1139 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1140 Do not set main_thread_id.
1141 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1142 current_event.dwThreadId.
1143 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1145 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1147 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1148 Use current_event.dwThreadId instead of main_thread_id.
1150 2019-04-30 Tom Tromey <tromey@adacore.com>
1152 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1153 (create_excep_cond_exprs): Iterate over program spaces.
1154 (ada_exception_catchpoint_cond_string): Examine all minimal
1155 symbols for exception types.
1157 2019-04-30 Tom Tromey <tromey@adacore.com>
1160 * dwarf2read.c (process_structure_scope): Handle case where type
1161 has template parameters but no symbol was created.
1163 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1164 Chris January <chris.january@arm.com>
1166 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1168 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1170 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1172 * f-typeprint.c (f_print_type): Update rules for printing
1174 (f_type_print_varspec_suffix): Likewise.
1176 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1177 Chris January <chris.january@arm.com>
1179 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1182 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1184 * f-lang.c (build_fortran_types): Change name of void type to
1186 * f-typeprint.c (f_type_print_base): Print the name of the void
1187 type, rather than a fixed string.
1188 * f-valprint.c (f_decorations): Use lower case void string.
1190 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1191 Chris January <chris.january@arm.com>
1193 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1196 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1197 Chris January <chris.january@arm.com>
1198 David Lecomber <david.lecomber@arm.com>
1200 * f-exp.y (BINOP_INTRINSIC): New token.
1201 (exp): New parser rule handling BINOP_INTRINSIC.
1202 (f77_keywords): Add new builtin procedures.
1203 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1204 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1205 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1206 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1207 (print_unop_subexp_f): New function.
1208 (print_binop_subexp_f): New function.
1209 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1210 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1211 (dump_subexp_body_f): Likewise.
1212 (operator_check_f): Likewise.
1213 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1214 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1216 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1218 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1220 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1221 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1222 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1223 (operator_length_f): New fuction.
1224 (print_subexp_f): New function.
1225 (op_name_f): New function.
1226 (dump_subexp_body_f): New function.
1227 (operator_check_f): New function.
1228 (exp_descriptor_f): Replace standard expression handling functions
1230 * gdb/fortran-operator.def: New file.
1231 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1232 * gdb/std-operator.def: Remove UNOP_KIND.
1234 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1236 * std-operator.def: Remove unbalanced, stray double quote
1239 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1240 Chris January <chris.january@arm.com>
1241 Daniel Everett <daniel.everett@arm.com>
1242 Nick Forrington <nick.forrington@arm.com>
1243 Richard Bunt <richard.bunt@arm.com>
1245 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1246 of depth when printing anonymous structs or unions.
1247 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1248 Don't print either the top-level value, or the children if the
1249 max-depth is exceeded.
1250 (ppscm_print_children): When printing the key of a map, allow one
1251 extra level of depth.
1252 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1253 print either the top-level value, or the children if the max-depth
1255 (print_children): When printing the key of a map, allow one extra
1257 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1258 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1259 (user_print_options): Initialise max_depth field.
1260 (val_print_scalar_or_string_type_p): New function.
1261 (val_print): Check to see if the max depth has been reached.
1262 (val_print_check_max_depth): Define new function.
1263 (show_print_max_depth): New function.
1264 (_initialize_valprint): Add 'print max-depth' option.
1265 * valprint.h (struct value_print_options) <max_depth>: New field.
1266 (val_print_check_max_depth): Declare new function.
1267 * NEWS: Document new feature.
1269 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1271 * ada-lang.c (ada_language_defn): Initialise new field.
1272 * c-lang.c (c_is_string_type_p): New function.
1273 (c_language_defn): Initialise new field.
1274 (cplus_language_defn): Initialise new field.
1275 (asm_language_defn): Initialise new field.
1276 (minimal_language_defn): Initialise new field.
1277 * c-lang.h (c_is_string_type_p): Declare new function.
1278 * d-lang.c (d_language_defn): Initialise new field.
1279 * f-lang.c (f_is_string_type_p): New function.
1280 (f_language_defn): Initialise new field.
1281 * go-lang.c (go_is_string_type_p): New function.
1282 (go_language_defn): Initialise new field.
1283 * language.c (default_is_string_type_p): New function.
1284 (unknown_language_defn): Initialise new field.
1285 (auto_language_defn): Initialise new field.
1286 * language.h (struct language_defn) <la_is_string_type_p>: New
1288 (default_is_string_type_p): Declare new function.
1289 * m2-lang.c (m2_language_defn): Initialise new field.
1290 * objc-lang.c (objc_language_defn): Initialise new field.
1291 * opencl-lang.c (opencl_language_defn): Initialise new field.
1292 * p-lang.c (pascal_is_string_type_p): New function.
1293 (pascal_language_defn): Initialise new field.
1294 * rust-lang.c (rust_is_string_type_p): New function.
1295 (rust_language_defn): Initialise new field.
1297 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1299 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1301 * ada-lang.c (ada_language_defn): Initialise new field.
1302 * c-lang.c (c_language_defn): Likewise.
1303 (cplus_language_defn): Likewise.
1304 (asm_language_defn): Likewise.
1305 (minimal_language_defn): Likewise.
1306 * d-lang.c (d_language_defn): Likewise.
1307 * f-lang.c (f_language_defn): Likewise.
1308 * go-lang.c (go_language_defn): Likewise.
1309 * language.c (unknown_language_defn): Likewise.
1310 (auto_language_defn): Likewise.
1311 * m2-lang.c (m2_language_defn): Likewise.
1312 * objc-lang.c (objc_language_defn): Likewise.
1313 * opencl-lang.c (opencl_language_defn): Likewise.
1314 * p-lang.c (pascal_language_defn): Likewise.
1315 * rust-lang.c (rust_language_defn): Likewise.
1317 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1319 * ada-lang.c (ada_is_character_type): Change return type to bool.
1320 (ada_is_string_type): Likewise.
1321 * ada-lang.h (ada_is_character_type): Update declaration
1322 (ada_is_string_type): Likewise.
1324 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1326 Support style in 'frame|thread apply'
1328 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1329 * record.c (record_start, record_stop): Update callers of
1330 execute_command_to_string with false.
1331 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1332 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1334 (class string_file): New constructor with term_out parameter.
1335 Override methods term_out and can_emit_style_escape. New member
1337 (class stdio_file): Override can_emit_style_escape.
1338 (class tee_file): Override term_out and can_emit_style_escape.
1339 * utils.h (can_emit_style_escape): Remove.
1340 * utils.c (can_emit_style_escape): Likewise.
1341 Update all callers of can_emit_style_escape (SOMESTREAM) to
1342 SOMESTREAM->can_emit_style_escape.
1343 * source-cache.c (source_cache::get_source_lines): Likewise.
1344 * stack.c (frame_apply_command_count): Call execute_command_to_string
1345 passing the term_out characteristic of the current gdb_stdout.
1346 * thread.c (thr_try_catch_cmd): Likewise.
1347 * top.c (execute_command_to_string): pass term_out parameter
1348 to construct the string_file for the command output.
1349 * ui-file.c (term_cli_styling): New function (most code moved
1350 from utils.c can_emit_style_escape).
1351 (string_file::string_file, string_file::can_emit_style_escape,
1352 stdio_file::can_emit_style_escape, tee_file::term_out,
1353 tee_file::can_emit_style_escape): New functions.
1355 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1357 * NEWS: Mention the new set|show may-call-functions.
1358 * infcall.c (may_call_functions_p): New variable.
1359 (show_may_call_functions_p): New function.
1360 (call_function_by_hand_dummy): Throws an error if not
1362 (_initialize_infcall): Call add_setshow_boolean_cmd for
1365 2019-04-25 Keith Seitz <keiths@redhat.com>
1368 * cp-support.c (inspect_type): Don't attempt substitutions
1369 of symbol with the same name.
1371 2019-04-25 Tom Tromey <tromey@adacore.com>
1374 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1377 2019-04-25 Tom Tromey <tromey@adacore.com>
1379 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1381 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1382 (gdb_xml_parser::parse): Use std::move.
1383 * python/python-internal.h (gdbpy_convert_exception): Take a const
1385 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1387 * python/py-utils.c (gdbpy_convert_exception): Take a const
1389 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1391 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1393 * mi/mi-main.c (mi_print_exception): Take a const reference.
1394 * main.c (handle_command_errors): Take a const reference.
1395 * linespec.c (parse_linespec): Use std::move.
1396 * infcall.c (run_inferior_call): Use std::move.
1397 (call_function_by_hand_dummy): Use std::move.
1398 * exec.c (try_open_exec_file): Use std::move.
1399 * exceptions.h (exception_print, exception_fprintf)
1400 (exception_print_same): Update.
1401 * exceptions.c (print_exception, exception_print)
1402 (exception_fprintf, exception_print_same): Change parameters to
1404 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1405 * common/new-op.c: Use std::move.
1406 * common/common-exceptions.h (struct gdb_exception): Add move
1408 (struct gdb_exception_error, struct gdb_exception_quit, struct
1409 gdb_quit_bad_alloc): Change constructor to move constructor.
1410 (throw_exception): Change parameter to rvalue reference.
1411 * common/common-exceptions.c (throw_exception): Take rvalue
1413 * cli/cli-interp.c (safe_execute_command): Use std::move.
1414 * breakpoint.c (insert_bp_location, location_to_sals): Use
1417 2019-04-25 Tom Tromey <tromey@adacore.com>
1419 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1420 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1421 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1422 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1423 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1424 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1425 guile/scm-value.c: Use unpack.
1426 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1427 gdbscm_gdb_exception.
1428 (gdbscm_throw_gdb_exception): Likewise.
1429 (struct gdbscm_gdb_exception): New.
1430 (unpack): New function.
1431 (gdbscm_wrap): Use unpack.
1433 2019-04-25 Tom Tromey <tromey@adacore.com>
1435 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1436 (gdb_rl_callback_handler): Use std::move.
1437 * common/common-exceptions.h (struct gdb_exception): Add move
1438 assignment operator.
1439 (throw_exception_sjlj): Change "exception" to const reference.
1440 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1441 (throw_exception_sjlj): Change "exception" to const reference.
1443 2019-04-25 Tom Tromey <tromey@adacore.com>
1445 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1446 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1447 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1449 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1451 * mi/mi-interp.c (mi_interp::exec): Update.
1452 * linespec.c (parse_linespec): Update.
1453 * infcall.c (run_inferior_call): Update.
1454 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1455 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1456 (gdbscm_lookup_global_symbol): Update.
1457 * guile/scm-param.c (gdbscm_parameter_value): Update.
1458 * guile/scm-frame.c (gdbscm_frame_read_register)
1459 (gdbscm_frame_read_var): Update.
1460 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1461 * exec.c (try_open_exec_file): Update.
1462 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1463 (gdb_rl_callback_handler): Update.
1464 * common/common-exceptions.h (exception_none): Don't declare.
1465 * common/common-exceptions.c (exception_none): Don't define.
1466 (struct catcher) <exception>: Update.
1467 * cli/cli-interp.c (safe_execute_command): Update.
1468 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1470 2019-04-25 Ali Tamur <tamur@google.com>
1472 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1473 (read_attribute_value): Likewise.
1474 (dwarf2_read_addr_index): Update comment.
1475 (read_str_index): Add DW_FORM_strx.
1476 (dwarf2_string_attr): Likewise.
1477 (dwarf2_const_value_attr): Likewise.
1478 (dump_die_shallow): Likewise.
1479 (dwarf2_fetch_constant_bytes): Likewise.
1480 (skip_form_bytes): Likewise.
1481 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1483 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1487 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1488 OFFSET. Verify if current mapping contains an ELF header.
1489 (linux_find_memory_regions_full): Adjust call to
1492 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1493 Kang Li <kanglictf@gmail.com>
1497 * dwarf2-frame.c (read_initial_length): Be consistent about using
1498 unsigned representation of length.
1499 (decode_frame_entry_1): Likewise. Check for wraparound of
1500 end pointer as well as buffer overflow.
1502 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1504 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1507 2019-04-24 Tom Tromey <tromey@adacore.com>
1509 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1511 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1513 * s12z-tdep.c (s12z_unwind_pc): Delete.
1514 (s12z_unwind_sp): Delete.
1515 (s12z_gdbarch_init): Don't register deleted functions with
1518 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1520 * rl78-tdep.c (rl78_unwind_sp): Delete.
1521 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1523 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1525 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1526 (xstormy16_unwind_pc): Delete.
1527 (xstormy16_dummy_id): Delete.
1528 (xstormy16_gdbarch_init): Don't register deleted functions with
1531 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1533 * vax-tdep.c (vax_unwind_pc): Delete.
1534 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1536 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1538 * v850-tdep.c (v850_unwind_sp): Delete.
1539 (v850_unwind_pc): Delete.
1540 (v850_dummy_id): Delete.
1541 (v850_gdbarch_init): Don't register deleted functions with
1544 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1546 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1547 (tilegx_unwind_pc): Delete.
1548 (tilegx_unwind_dummy_id): Delete.
1549 (tilegx_gdbarch_init): Don't register deleted functions with
1552 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1554 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1555 (tic6x_dummy_id): Delete.
1556 (tic6x_gdbarch_init): Don't register deleted functions with
1559 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1561 * sparc-tdep.c (sparc_unwind_pc): Delete.
1562 (sparc32_gdbarch_init): Don't register deleted function with
1565 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1567 * sh-tdep.c (sh_unwind_sp): Delete.
1568 (sh_unwind_pc): Delete.
1569 (sh_dummy_id): Delete.
1570 (sh_gdbarch_init): Don't register deleted functions with
1573 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1575 * score-tdep.c (score_unwind_sp): Delete.
1576 (score_unwind_pc): Delete.
1577 (score_dummy_id): Delete.
1578 (score_gdbarch_init): Don't register deleted functions with
1581 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1583 * rx-tdep.c (rx_unwind_pc): Delete.
1584 (rx_unwind_sp): Delete.
1585 (rx_dummy_id): Delete.
1586 (rx_gdbarch_init): Don't register deleted functions with
1587 gdbarch. Update comment.
1589 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1591 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1592 (rs6000_dummy_id): Delete.
1593 (rs6000_gdbarch_init): Don't register deleted functions with
1596 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1598 * or1k-tdep.c (or1k_dummy_id): Delete.
1599 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1601 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1603 * nios2-tdep.c (nios2_dummy_id): Delete.
1604 (nios2_unwind_sp): Delete.
1605 (nios2_gdbarch_init): Don't register deleted functions with
1608 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1610 * nds32-tdep.c (nds32_dummy_id): Delete.
1611 (nds32_unwind_pc): Delete.
1612 (nds32_unwind_sp): Delete.
1613 (nds32_gdbarch_init): Don't register deleted functions with
1616 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1618 * msp430-tdep.c (msp430_unwind_pc): Delete.
1619 (msp430_unwind_sp): Delete.
1620 (msp430_dummy_id): Delete.
1621 (msp430_gdbarch_init): Don't register deleted functions with
1624 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1626 * moxie-tdep.c (moxie_unwind_sp): Delete.
1627 (moxie_unwind_pc): Delete.
1628 (moxie_dummy_id): Delete.
1629 (moxie_gdbarch_init): Don't register deleted functions with
1632 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1634 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1635 (mn10300_unwind_pc): Delete.
1636 (mn10300_unwind_sp): Delete.
1637 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1639 (mn10300_frame_unwind_init): Don't register deleted functions with
1642 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1644 * mep-tdep.c (mep_unwind_pc): Delete.
1645 (mep_unwind_sp): Delete.
1646 (mep_dummy_id): Delete.
1647 (mep_gdbarch_init): Don't register deleted functions with
1650 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1652 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1653 (m68hc11_unwind_sp): Delete.
1654 (m68hc11_gdbarch_init): Don't register deleted functions with
1657 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1659 * m32r-tdep.c (m32r_unwind_sp): Delete.
1660 (m32r_unwind_pc): Delete.
1661 (m32r_dummy_id): Delete.
1662 (m32r_gdbarch_init): Don't register deleted functions with
1665 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1667 * m32c-tdep.c (m32c_unwind_pc): Delete.
1668 (m32c_unwind_sp): Delete.
1669 (m32c_dummy_id): Delete.
1670 (m32c_gdbarch_init): Don't register deleted functions with
1673 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1675 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1676 (lm32_unwind_pc): Delete.
1677 (lm32_dummy_id): Delete.
1678 (lm32_gdbarch_init): Don't register deleted functions with
1681 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1683 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1684 (iq2000_unwind_pc): Delete.
1685 (iq2000_dummy_id): Delete.
1686 (iq2000_gdbarch_init): Don't register deleted functions with
1689 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1691 * nds32-tdep.c (nds32_type_align): Delete.
1692 (nds32_push_dummy_call): Use type_align instead.
1694 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1696 * arm-tdep.c (arm_type_align): Only handle vector override case.
1697 (arm_push_dummy_call): Use type_align.
1698 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1700 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1702 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1704 (pass_on_stack): Use type_align.
1705 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1708 2019-04-23 Tom Tromey <tromey@adacore.com>
1710 * dwarf2read.c (line_header::file_name_at): Remove unused
1713 2019-04-23 Tom de Vries <tdevries@suse.de>
1716 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1720 2019-03-27 Ali Tamur <tamur@google.com>
1722 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1723 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1724 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1725 (dwarf_expr_context::get_addr_index): Likewise
1726 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1727 (symbol_needs_eval_context::get_addr_index): Likewise
1728 (disassemble_dwarf_expression): Add DW_OP_addrx
1729 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1730 (read_cutu_die_from_dwo): Update comment
1731 (skip_one_die): Add DW_FORM_addrx
1732 (read_attribute_value): Likewise
1733 (var_decode_location): Add DW_OP_addrx
1734 (dwarf2_const_value_attr): Add DW_FORM_addrx
1735 (dump_die_shallow): Likewise
1736 (dwarf2_fetch_constant_bytes): Likewise
1737 (decode_locdesc): Add DW_OP_addrx
1738 (skip_form_bytes): Add DW_FORM_addrx
1740 2019-04-22 Ali Tamur <tamur@google.com>
1742 * MAINTAINERS (Write After Approval): Add self.
1744 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1746 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1747 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1748 (open_symbol_file_object): Likewise.
1749 (svr4_default_sos): Add info parameter.
1750 (svr4_read_so_list): Likewise.
1751 (svr4_current_sos_direct): Adjust functions calls to pass down
1753 (svr4_current_sos_1): Add info parameter.
1754 (svr4_current_sos): Call get_svr4_info, pass info down to
1756 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1758 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1760 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1762 (probes_table_remove_objfile_probes): Likewise.
1763 (register_solib_event_probe): Add info parameter.
1764 (solist_update_incremental): Pass info parameter down to
1766 (disable_probes_interface): Add info parameter.
1767 (svr4_handle_solib_event): Pass current_program_space to
1768 get_svr4_info. Adjust disable_probes_interface cleanup.
1769 (svr4_create_probe_breakpoints): Add info parameter, pass it
1770 down to register_solib_event_probe.
1771 (svr4_create_solib_event_breakpoints): Add info parameter,
1772 pass it down to svr4_create_probe_breakpoints.
1773 (enable_break): Pass info down to
1774 svr4_create_solib_event_breakpoints.
1775 (svr4_solib_create_inferior_hook): Pass current_program_space to
1777 (svr4_clear_solib): Likewise.
1779 2019-04-22 Pedro Alves <palves@redhat.com>
1781 * solib-svr4.c (svr4_free_objfile_observer): New.
1782 (probe_and_action::objfile): New field.
1783 (probes_table_htab_remove_objfile_probes)
1784 (probes_table_remove_objfile_probes): New functions.
1785 (register_solib_event_probe): Add 'objfile' parameter. Store it
1786 in the new probe_and_action. Don't store the probe in 'lookup'.
1787 (svr4_create_probe_breakpoints): Pass objfile to
1788 register_solib_event_probe.
1789 (_initialize_svr4_solib): Register a free_objfile observer.
1791 2019-04-19 Tom Tromey <tom@tromey.com>
1793 * common/queue.h: Remove.
1795 2019-04-19 Tom Tromey <tom@tromey.com>
1797 * event-loop.c: Don't include "common/queue.h".
1799 2019-04-19 Tom Tromey <tom@tromey.com>
1801 * remote.c (remote_target): Use delete.
1802 * remote-notif.h: Include <list>, not "common/queue.h".
1803 (notif_client_p): Remove typedef.
1804 (remote_notif_state): Add constructor, destructor, initializer.
1805 <notif_queue>: Now a std::list.
1806 (remote_notif_state_xfree): Don't declare.
1807 * remote-notif.c (remote_notif_process, handle_notification)
1808 (remote_notif_state_allocate): Update.
1809 (~remote_notif_state): Rename from remote_notif_state_xfree.
1811 2019-04-19 Tom Tromey <tom@tromey.com>
1813 * symfile.c (reread_symbols): Update.
1814 * objfiles.c (objfile_register_static_link)
1815 (objfile_lookup_static_link): Update
1816 (~objfile) Don't delete static_links.
1817 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1819 2019-04-19 Tom Tromey <tom@tromey.com>
1821 * type-stack.h (struct type_stack) <insert>: Constify string.
1822 * type-stack.c (type_stack::insert): Constify string.
1823 * gdbtypes.h (lookup_template_type): Update.
1824 (address_space_name_to_int): Update.
1825 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1827 (lookup_template_type): Make name const.
1828 * c-exp.y: Update rules.
1829 (lex_one_token, classify_name, classify_inner_name)
1830 (c_print_token): Update.
1831 * p-exp.y: Update rules.
1833 * f-exp.y: Update rules.
1835 * d-exp.y: Update rules.
1836 (lex_one_token, classify_name, classify_inner_name): Update.
1837 * parse.c (write_dollar_variable, copy_name): Return std::string.
1838 * parser-defs.h (copy_name): Change return type.
1839 * m2-exp.y: Update rules.
1841 * go-exp.y (lex_one_token): Update.
1843 (classify_unsafe_function, classify_packaged_name)
1844 (classify_name, yylex): Update.
1846 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1848 * configure.ac: add --enable-source-highlight switch.
1849 * configure: Regenerate.
1850 * top.c (print_gdb_version): plumb --enable-source-highlight
1851 status to "show configuration".
1853 2019-04-19 Tom Tromey <tromey@adacore.com>
1855 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1857 (empty_record, ada_template_to_fixed_record_type_1)
1858 (template_to_static_fixed_type)
1859 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1860 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1861 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1864 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1867 * source.c (print_source_lines_base): Advance "iter" when a
1868 control character is seen.
1870 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1872 * inferior.h (struct infcall_suspend_state_deleter):
1873 Catch exception in destructor to avoid crash.
1875 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1877 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1878 close to the add_com "shell".
1880 2019-04-18 Tom Tromey <tromey@adacore.com>
1882 * process-stratum-target.h (class process_stratum_target)
1883 <stratum>: Add "final".
1885 2019-04-17 Tom Tromey <tromey@adacore.com>
1887 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1888 against nullptr before use.
1890 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1892 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1894 2019-04-17 Jim Wilson <jimw@sifive.com>
1895 Andrew Burgess <andrew.burgess@embecosm.com>
1897 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1898 code read might fail, assume 4-byte breakpoint in that case.
1900 2019-04-15 Leszek Swirski <leszeks@google.com>
1902 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1903 rather than a hand-rolled POD check when checking for forced MEMORY
1906 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1908 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1909 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1911 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1912 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1913 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1916 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1918 * aarch64-linux-nat.c
1919 (aarch64_linux_nat_target::thread_architecture): Add override.
1920 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1923 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1925 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1927 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1929 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1930 target types of size 96-bits, add some additional comments, and
1931 check that the builtin type we found was the correct size.
1933 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1935 * utils.c (prompt_for_continue): Don't restore the styling at the
1936 end, as applied_style has the wrong value. This fixes styling in
1937 long lists of file names that are interrupted by the "Continue?"
1940 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1942 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1943 * c-lang.c (c_language_defn): Likewise.
1944 (cplus_language_defn): Likewise.
1945 (asm_language_defn): Likewise.
1946 (minimal_language_defn): Likewise.
1947 * d-lang.c (d_language_defn): Likewise.
1948 * f-lang.c (f_language_defn): Likewise.
1949 * go-lang.c (go_language_defn): Likewise.
1950 * language.c (unknown_language_defn): Likewise.
1951 (auto_language_defn): Likewise.
1952 * language.h (struct language_defn): Remove la_magic field.
1953 (LANG_MAGIC): Delete.
1954 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1955 * objc-lang.c (objc_language_defn): Likewise.
1956 * opencl-lang.c (opencl_language_defn): Likewise.
1957 * p-lang.c (pascal_language_defn): Likewise.
1958 * rust-lang.c (rust_language_defn): Likewise.
1960 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1962 * riscv-tdep.c (riscv_type_align): New function.
1963 (riscv_type_alignment): Delete.
1964 (riscv_arg_location): Use 'type_align'.
1965 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1967 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1969 * gdbtypes.c (type_align): A struct with no non-static fields also
1972 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1974 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1976 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1978 (riscv_struct_info::analyse): New implementation using new
1979 analyse_inner member function.
1980 (riscv_struct_info::field_offset): New member function.
1981 (riscv_struct_info::m_offsets): New member variable.
1982 (riscv_struct_info::analyse_inner): New private member function,
1983 takes the old implementation of riscv_struct_info::analyse but
1984 extended to track field offsets.
1985 (riscv_call_arg_struct): Update the struct folding special cases
1986 to handle cases where empty C++ structs, which are non-zero
1988 (riscv_arg_location): Initialise the length of each location, a
1989 non-zero length now indicates the location is in use.
1990 (riscv_push_dummy_call): Allow for the first location having a
1991 non-zero offset when setting up arguments.
1992 (riscv_return_value): Likewise, but for return values.
1994 2019-04-11 Tom Tromey <tromey@adacore.com>
1996 * utils.c (internal_vproblem): Make "msg" const.
1998 2019-04-11 Alan Hayward <alan.hayward@arm.com>
2000 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2001 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2002 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2003 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2005 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2007 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2009 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2010 of amd64_collect_native_gregset.
2011 (amd64_linux_nat_target::store_registers): Likewise.
2013 2019-04-10 Tom Tromey <tom@tromey.com>
2015 * symtab.c (lookup_global_symbol_from_objfile)
2016 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2017 * objfiles.h (class separate_debug_iterator): New.
2018 (class separate_debug_range): New.
2019 (struct objfile) <separate_debug_objfiles>: New method.
2020 (objfile_separate_debug_iterate): Don't declare.
2021 * objfiles.c (separate_debug_iterator::operator++): Rename from
2022 objfile_separate_debug_iterate.
2023 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2025 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2028 2019-04-10 Tom Tromey <tom@tromey.com>
2030 * symfile.c (reread_symbols): Remove old comment.
2031 * objfiles.c (free_all_objfiles): Fix a typo.
2033 2019-04-10 Tom Tromey <tom@tromey.com>
2035 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2036 * minsyms.c (lookup_minimal_symbol): Use foreach.
2037 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2038 (lookup_minimal_symbol_solib_trampoline): Likewise.
2039 * symfile.c (reread_symbols): Use foreach.
2041 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2042 Tom Tromey <tromey@adacore.com>
2045 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2046 (rust_lex_int_test): Change "value" to be LONGEST.
2047 (rust_lex_tests): Add test for long integer literal.
2049 2019-04-09 Tom Tromey <tromey@adacore.com>
2051 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2053 (extended_remote_target::attach): Update.
2054 (remote_target::remote_notice_new_inferior): Update.
2055 (remote_target::add_current_inferior_and_thread): Update.
2056 * inferior.c (exit_inferior_1): Use "false".
2057 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2059 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2061 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2062 the "start" command.
2064 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2066 * python/py-inferior.c (infpy_thread_from_thread_handle):
2067 Adjust comments to reflect renaming of thread_from_thread_handle
2068 to thread_from_handle. Adjust keywords. Fix type error message.
2069 (inferior_object_methods): Add thread_from_handle. Retain
2070 thread_from_thread_handle, but mark it as deprecated.
2072 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2074 * gdbthread.h (find_thread_by_handle): Revise declaration.
2075 * thread.c (find_thread_by_handle): Likewise. Adjust
2077 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2078 support for buffer objects as handles.
2080 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2082 * python/py-infthread.c (thpy_thread_handle): New function.
2083 (thread_object_methods): Register thpy_thread_handle.
2085 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2087 * gdbthread.h (thread_to_thread_handle): Declare.
2088 * thread.c (gdbtypes.h): Include.
2089 (thread_to_thread_handle): New function.
2091 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2092 (target_thread_info_to_thread_handle): Declare.
2093 * target.c (target_thread_info_to_thread_handle): New function.
2094 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2095 * target-delegates.c: Regenerate.
2097 * linux-thread-db.c (class thread_db_target): Add method
2098 thread_info_to_thread_handle.
2099 (thread_db_target::thread_info_to_thread_handle): Define.
2100 * remote.c (class remote_target): Add new method
2101 thread_info_to_thread_handle.
2102 (remote_target::thread_info_to_thread_handle): Define.
2104 2019-04-08 Pedro Alves <palves@redhat.com>
2106 * common/common-exceptions.c (throw_exception): Don't create
2107 named object to throw; throw directly.
2108 (throw_it): Likewise. Don't initialize gdb_exception::message
2109 here, with new; pass FMT and AP to the ctor instead.
2110 * common/common-exceptions.h: Include <string>.
2111 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2112 const char *, va_list)): New ctor. Use std::make_shared.
2113 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2115 (gdb_exception_error::gdb_exception_error(enum errors, const char
2117 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2119 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2121 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2122 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2125 2019-04-08 Tom Tromey <tom@tromey.com>
2127 * valops.c (value_rtti_indirect_type): Replace throw_exception
2129 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2131 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2133 * target.c (target_translate_tls_address): Replace throw_exception
2135 * stack.c (frame_apply_command_count): Replace throw_exception
2137 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2139 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2141 * rs6000-tdep.c (rs6000_frame_cache)
2142 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2143 * remote.c: Replace throw_exception with throw.
2144 * record-full.c (record_full_message, record_full_wait_1)
2145 (record_full_restore): Replace throw_exception with throw.
2147 (get_thread_current_frame_id, record_btrace_start_replaying)
2148 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2149 (cmd_record_btrace_start): Replace throw_exception with throw.
2150 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2152 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2153 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2155 (find_linespec_symbols): Replace throw_exception with throw.
2156 * infrun.c (displaced_step_prepare, resume): Replace
2157 throw_exception with throw.
2158 * infcmd.c (post_create_inferior): Replace throw_exception with
2160 * inf-loop.c (inferior_event_handler): Replace throw_exception
2162 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2163 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2164 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2165 (get_prev_frame_always, get_frame_pc_if_available)
2166 (get_frame_address_in_block_if_available, get_frame_language):
2167 Replace throw_exception with throw.
2168 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2169 throw_exception with throw.
2170 * eval.c (fetch_subexp_value, evaluate_var_value)
2171 (evaluate_funcall, evaluate_subexp_standard): Replace
2172 throw_exception with throw.
2173 * dwarf2loc.c (call_site_find_chain)
2174 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2175 Replace throw_exception with throw.
2176 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2178 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2180 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2181 * completer.c (complete_line_internal): Replace throw_exception
2183 * compile/compile-object-run.c (compile_object_run): Replace
2184 throw_exception with throw.
2185 * cli/cli-script.c (process_next_line): Replace throw_exception
2187 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2188 (btrace_enable, btrace_maint_update_pt_packets): Replace
2189 throw_exception with throw.
2190 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2191 throw_exception with throw.
2192 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2193 throw_exception with throw.
2194 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2195 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2196 * aarch64-tdep.c (aarch64_make_prologue_cache)
2197 (aarch64_make_stub_cache): Replace throw_exception with throw.
2199 2019-04-08 Tom Tromey <tom@tromey.com>
2201 * common/common-exceptions.c (throw_exception): Rename from
2202 throw_exception_cxx. Remove old copy. Make argument const.
2203 (throw_it): Create and throw exception objects directly.
2204 * common/common-exceptions.h (throw_exception): Make argument
2206 (struct gdb_exception_error): Add constructor.
2207 (struct gdb_exception_quit): Add constructor.
2209 2019-04-08 Tom Tromey <tom@tromey.com>
2211 * common/common-exceptions.h (exception_rethrow): Don't declare.
2212 (TRY_SJLJ): Update comment.
2213 (TRY, CATCH, END_CATCH): Remove.
2214 * common/common-exceptions.c (exception_rethrow): Remove.
2216 2019-04-08 Tom Tromey <tom@tromey.com>
2218 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2220 (gdb_exception_error): Rename from
2221 gdb_exception_RETURN_MASK_ERROR.
2222 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2223 (gdb_quit_bad_alloc): Update.
2224 * aarch64-tdep.c: Update.
2225 * ada-lang.c: Update.
2226 * ada-typeprint.c: Update.
2227 * ada-valprint.c: Update.
2228 * amd64-tdep.c: Update.
2229 * arch-utils.c: Update.
2230 * break-catch-throw.c: Update.
2231 * breakpoint.c: Update.
2233 * c-varobj.c: Update.
2234 * cli/cli-cmds.c: Update.
2235 * cli/cli-interp.c: Update.
2236 * cli/cli-script.c: Update.
2237 * common/common-exceptions.c: Update.
2238 * common/new-op.c: Update.
2239 * common/selftest.c: Update.
2240 * compile/compile-c-symbols.c: Update.
2241 * compile/compile-cplus-symbols.c: Update.
2242 * compile/compile-object-load.c: Update.
2243 * compile/compile-object-run.c: Update.
2244 * completer.c: Update.
2245 * corelow.c: Update.
2247 * cp-support.c: Update.
2248 * cp-valprint.c: Update.
2249 * darwin-nat.c: Update.
2250 * disasm-selftests.c: Update.
2251 * dtrace-probe.c: Update.
2252 * dwarf-index-cache.c: Update.
2253 * dwarf-index-write.c: Update.
2254 * dwarf2-frame-tailcall.c: Update.
2255 * dwarf2-frame.c: Update.
2256 * dwarf2loc.c: Update.
2257 * dwarf2read.c: Update.
2259 * event-loop.c: Update.
2260 * event-top.c: Update.
2262 * f-valprint.c: Update.
2263 * fbsd-tdep.c: Update.
2264 * frame-unwind.c: Update.
2266 * gdbtypes.c: Update.
2267 * gnu-v3-abi.c: Update.
2268 * guile/guile-internal.h: Update.
2269 * guile/scm-block.c: Update.
2270 * guile/scm-breakpoint.c: Update.
2271 * guile/scm-cmd.c: Update.
2272 * guile/scm-disasm.c: Update.
2273 * guile/scm-frame.c: Update.
2274 * guile/scm-lazy-string.c: Update.
2275 * guile/scm-math.c: Update.
2276 * guile/scm-param.c: Update.
2277 * guile/scm-ports.c: Update.
2278 * guile/scm-pretty-print.c: Update.
2279 * guile/scm-symbol.c: Update.
2280 * guile/scm-symtab.c: Update.
2281 * guile/scm-type.c: Update.
2282 * guile/scm-value.c: Update.
2283 * i386-linux-tdep.c: Update.
2284 * i386-tdep.c: Update.
2285 * inf-loop.c: Update.
2286 * infcall.c: Update.
2290 * language.c: Update.
2291 * linespec.c: Update.
2292 * linux-fork.c: Update.
2293 * linux-nat.c: Update.
2294 * linux-tdep.c: Update.
2295 * linux-thread-db.c: Update.
2297 * mi/mi-cmd-break.c: Update.
2298 * mi/mi-cmd-stack.c: Update.
2299 * mi/mi-interp.c: Update.
2300 * mi/mi-main.c: Update.
2301 * objc-lang.c: Update.
2302 * p-valprint.c: Update.
2304 * ppc-linux-tdep.c: Update.
2305 * printcmd.c: Update.
2306 * python/py-arch.c: Update.
2307 * python/py-breakpoint.c: Update.
2308 * python/py-cmd.c: Update.
2309 * python/py-finishbreakpoint.c: Update.
2310 * python/py-frame.c: Update.
2311 * python/py-framefilter.c: Update.
2312 * python/py-gdb-readline.c: Update.
2313 * python/py-inferior.c: Update.
2314 * python/py-infthread.c: Update.
2315 * python/py-lazy-string.c: Update.
2316 * python/py-linetable.c: Update.
2317 * python/py-objfile.c: Update.
2318 * python/py-param.c: Update.
2319 * python/py-prettyprint.c: Update.
2320 * python/py-progspace.c: Update.
2321 * python/py-record-btrace.c: Update.
2322 * python/py-record.c: Update.
2323 * python/py-symbol.c: Update.
2324 * python/py-type.c: Update.
2325 * python/py-unwind.c: Update.
2326 * python/py-utils.c: Update.
2327 * python/py-value.c: Update.
2328 * python/python.c: Update.
2329 * record-btrace.c: Update.
2330 * record-full.c: Update.
2331 * remote-fileio.c: Update.
2333 * riscv-tdep.c: Update.
2334 * rs6000-aix-tdep.c: Update.
2335 * rs6000-tdep.c: Update.
2336 * rust-exp.y: Update.
2337 * rust-lang.c: Update.
2338 * s390-tdep.c: Update.
2339 * selftest-arch.c: Update.
2340 * solib-dsbt.c: Update.
2341 * solib-frv.c: Update.
2342 * solib-spu.c: Update.
2343 * solib-svr4.c: Update.
2345 * sparc64-linux-tdep.c: Update.
2347 * symfile-mem.c: Update.
2348 * symmisc.c: Update.
2352 * tracefile-tfile.c: Update.
2353 * tui/tui.c: Update.
2354 * typeprint.c: Update.
2355 * unittests/cli-utils-selftests.c: Update.
2356 * unittests/parse-connection-spec-selftests.c: Update.
2358 * valprint.c: Update.
2361 * windows-nat.c: Update.
2362 * x86-linux-nat.c: Update.
2363 * xml-support.c: Update.
2365 2019-04-08 Tom Tromey <tom@tromey.com>
2367 * xml-support.c: Use C++ exception handling.
2368 * x86-linux-nat.c: Use C++ exception handling.
2369 * windows-nat.c: Use C++ exception handling.
2370 * varobj.c: Use C++ exception handling.
2371 * value.c: Use C++ exception handling.
2372 * valprint.c: Use C++ exception handling.
2373 * valops.c: Use C++ exception handling.
2374 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2376 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2377 * typeprint.c: Use C++ exception handling.
2378 * tui/tui.c: Use C++ exception handling.
2379 * tracefile-tfile.c: Use C++ exception handling.
2380 * top.c: Use C++ exception handling.
2381 * thread.c: Use C++ exception handling.
2382 * target.c: Use C++ exception handling.
2383 * symmisc.c: Use C++ exception handling.
2384 * symfile-mem.c: Use C++ exception handling.
2385 * stack.c: Use C++ exception handling.
2386 * sparc64-linux-tdep.c: Use C++ exception handling.
2387 * solib.c: Use C++ exception handling.
2388 * solib-svr4.c: Use C++ exception handling.
2389 * solib-spu.c: Use C++ exception handling.
2390 * solib-frv.c: Use C++ exception handling.
2391 * solib-dsbt.c: Use C++ exception handling.
2392 * selftest-arch.c: Use C++ exception handling.
2393 * s390-tdep.c: Use C++ exception handling.
2394 * rust-lang.c: Use C++ exception handling.
2395 * rust-exp.y: Use C++ exception handling.
2396 * rs6000-tdep.c: Use C++ exception handling.
2397 * rs6000-aix-tdep.c: Use C++ exception handling.
2398 * riscv-tdep.c: Use C++ exception handling.
2399 * remote.c: Use C++ exception handling.
2400 * remote-fileio.c: Use C++ exception handling.
2401 * record-full.c: Use C++ exception handling.
2402 * record-btrace.c: Use C++ exception handling.
2403 * python/python.c: Use C++ exception handling.
2404 * python/py-value.c: Use C++ exception handling.
2405 * python/py-utils.c: Use C++ exception handling.
2406 * python/py-unwind.c: Use C++ exception handling.
2407 * python/py-type.c: Use C++ exception handling.
2408 * python/py-symbol.c: Use C++ exception handling.
2409 * python/py-record.c: Use C++ exception handling.
2410 * python/py-record-btrace.c: Use C++ exception handling.
2411 * python/py-progspace.c: Use C++ exception handling.
2412 * python/py-prettyprint.c: Use C++ exception handling.
2413 * python/py-param.c: Use C++ exception handling.
2414 * python/py-objfile.c: Use C++ exception handling.
2415 * python/py-linetable.c: Use C++ exception handling.
2416 * python/py-lazy-string.c: Use C++ exception handling.
2417 * python/py-infthread.c: Use C++ exception handling.
2418 * python/py-inferior.c: Use C++ exception handling.
2419 * python/py-gdb-readline.c: Use C++ exception handling.
2420 * python/py-framefilter.c: Use C++ exception handling.
2421 * python/py-frame.c: Use C++ exception handling.
2422 * python/py-finishbreakpoint.c: Use C++ exception handling.
2423 * python/py-cmd.c: Use C++ exception handling.
2424 * python/py-breakpoint.c: Use C++ exception handling.
2425 * python/py-arch.c: Use C++ exception handling.
2426 * printcmd.c: Use C++ exception handling.
2427 * ppc-linux-tdep.c: Use C++ exception handling.
2428 * parse.c: Use C++ exception handling.
2429 * p-valprint.c: Use C++ exception handling.
2430 * objc-lang.c: Use C++ exception handling.
2431 * mi/mi-main.c: Use C++ exception handling.
2432 * mi/mi-interp.c: Use C++ exception handling.
2433 * mi/mi-cmd-stack.c: Use C++ exception handling.
2434 * mi/mi-cmd-break.c: Use C++ exception handling.
2435 * main.c: Use C++ exception handling.
2436 * linux-thread-db.c: Use C++ exception handling.
2437 * linux-tdep.c: Use C++ exception handling.
2438 * linux-nat.c: Use C++ exception handling.
2439 * linux-fork.c: Use C++ exception handling.
2440 * linespec.c: Use C++ exception handling.
2441 * language.c: Use C++ exception handling.
2442 * jit.c: Use C++ exception handling.
2443 * infrun.c: Use C++ exception handling.
2444 * infcmd.c: Use C++ exception handling.
2445 * infcall.c: Use C++ exception handling.
2446 * inf-loop.c: Use C++ exception handling.
2447 * i386-tdep.c: Use C++ exception handling.
2448 * i386-linux-tdep.c: Use C++ exception handling.
2449 * guile/scm-value.c: Use C++ exception handling.
2450 * guile/scm-type.c: Use C++ exception handling.
2451 * guile/scm-symtab.c: Use C++ exception handling.
2452 * guile/scm-symbol.c: Use C++ exception handling.
2453 * guile/scm-pretty-print.c: Use C++ exception handling.
2454 * guile/scm-ports.c: Use C++ exception handling.
2455 * guile/scm-param.c: Use C++ exception handling.
2456 * guile/scm-math.c: Use C++ exception handling.
2457 * guile/scm-lazy-string.c: Use C++ exception handling.
2458 * guile/scm-frame.c: Use C++ exception handling.
2459 * guile/scm-disasm.c: Use C++ exception handling.
2460 * guile/scm-cmd.c: Use C++ exception handling.
2461 * guile/scm-breakpoint.c: Use C++ exception handling.
2462 * guile/scm-block.c: Use C++ exception handling.
2463 * guile/guile-internal.h: Use C++ exception handling.
2464 * gnu-v3-abi.c: Use C++ exception handling.
2465 * gdbtypes.c: Use C++ exception handling.
2466 * frame.c: Use C++ exception handling.
2467 * frame-unwind.c: Use C++ exception handling.
2468 * fbsd-tdep.c: Use C++ exception handling.
2469 * f-valprint.c: Use C++ exception handling.
2470 * exec.c: Use C++ exception handling.
2471 * event-top.c: Use C++ exception handling.
2472 * event-loop.c: Use C++ exception handling.
2473 * eval.c: Use C++ exception handling.
2474 * dwarf2read.c: Use C++ exception handling.
2475 * dwarf2loc.c: Use C++ exception handling.
2476 * dwarf2-frame.c: Use C++ exception handling.
2477 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2478 * dwarf-index-write.c: Use C++ exception handling.
2479 * dwarf-index-cache.c: Use C++ exception handling.
2480 * dtrace-probe.c: Use C++ exception handling.
2481 * disasm-selftests.c: Use C++ exception handling.
2482 * darwin-nat.c: Use C++ exception handling.
2483 * cp-valprint.c: Use C++ exception handling.
2484 * cp-support.c: Use C++ exception handling.
2485 * cp-abi.c: Use C++ exception handling.
2486 * corelow.c: Use C++ exception handling.
2487 * completer.c: Use C++ exception handling.
2488 * compile/compile-object-run.c: Use C++ exception handling.
2489 * compile/compile-object-load.c: Use C++ exception handling.
2490 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2491 * compile/compile-c-symbols.c: Use C++ exception handling.
2492 * common/selftest.c: Use C++ exception handling.
2493 * common/new-op.c: Use C++ exception handling.
2494 * cli/cli-script.c: Use C++ exception handling.
2495 * cli/cli-interp.c: Use C++ exception handling.
2496 * cli/cli-cmds.c: Use C++ exception handling.
2497 * c-varobj.c: Use C++ exception handling.
2498 * btrace.c: Use C++ exception handling.
2499 * breakpoint.c: Use C++ exception handling.
2500 * break-catch-throw.c: Use C++ exception handling.
2501 * arch-utils.c: Use C++ exception handling.
2502 * amd64-tdep.c: Use C++ exception handling.
2503 * ada-valprint.c: Use C++ exception handling.
2504 * ada-typeprint.c: Use C++ exception handling.
2505 * ada-lang.c: Use C++ exception handling.
2506 * aarch64-tdep.c: Use C++ exception handling.
2508 2019-04-08 Tom Tromey <tom@tromey.com>
2510 * xml-support.c (gdb_xml_parser::parse): Update.
2511 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2512 * value.c (show_convenience): Update.
2513 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2514 (test_parse_flags_qcs): Update.
2515 * thread.c (thr_try_catch_cmd): Update.
2516 * target.c (target_translate_tls_address): Update.
2517 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2518 (info_frame_command_core, frame_apply_command_count): Update.
2519 * rust-exp.y (rust_lex_exception_test): Update.
2520 * riscv-tdep.c (riscv_print_one_register_info): Update.
2521 * remote.c (remote_target::enable_btrace): Update.
2522 * record-btrace.c (record_btrace_enable_warn): Update.
2523 * python/py-utils.c (gdbpy_convert_exception): Update.
2524 * printcmd.c (do_one_display, print_variable_and_value): Update.
2525 * mi/mi-main.c (mi_print_exception): Update.
2526 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2527 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2528 * linux-nat.c (linux_nat_target::attach): Update.
2529 * linux-fork.c (class scoped_switch_fork_info): Update.
2530 * infrun.c (displaced_step_prepare): Update.
2531 * infcall.c (call_function_by_hand_dummy): Update.
2532 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2533 * gnu-v3-abi.c (print_one_vtable): Update.
2534 * frame.c (get_prev_frame_always): Update.
2535 * f-valprint.c (info_common_command_for_block): Update.
2536 * exec.c (try_open_exec_file): Update.
2537 * exceptions.c (print_exception, exception_print)
2538 (exception_fprintf, exception_print_same): Update.
2539 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2540 * dwarf-index-cache.c (index_cache::store)
2541 (index_cache::lookup_gdb_index): Update.
2542 * darwin-nat.c (maybe_cache_shell): Update.
2543 * cp-valprint.c (cp_print_value_fields): Update.
2544 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2545 (gcc_cplus_symbol_address): Update.
2546 * compile/compile-c-symbols.c (gcc_convert_symbol)
2547 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2548 * common/selftest.c: Update.
2549 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2551 (exception_try_scope_entry, exception_try_scope_exit): Don't
2553 (struct exception_try_scope): Remove.
2554 (TRY): Don't use exception_try_scope.
2555 (struct gdb_exception): Add constructor, operator=.
2557 (struct gdb_exception_RETURN_MASK_ALL)
2558 (struct gdb_exception_RETURN_MASK_ERROR)
2559 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2560 (struct gdb_quit_bad_alloc): Update.
2561 * common/common-exceptions.c (exception_none): Change
2563 (struct catcher) <state, exception>: Initialize inline.
2564 <prev>: Remove member.
2565 (current_catcher): Remove.
2566 (catchers): New global.
2567 (exceptions_state_mc_init): Simplify.
2568 (catcher_pop): Remove.
2569 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2570 (try_scope_depth, exception_try_scope_entry)
2571 (exception_try_scope_exit): Remove.
2572 (throw_exception_sjlj): Update.
2573 (exception_messages, exception_messages_size): Remove.
2574 (throw_it): Simplify.
2575 (gdb_exception_sliced_copy): Remove.
2576 (throw_exception_cxx): Update.
2577 * cli/cli-script.c (script_from_file): Update.
2578 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2580 * ada-valprint.c (ada_val_print): Update.
2581 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2582 (create_excep_cond_exprs): Update.
2584 2019-04-08 Tom Tromey <tom@tromey.com>
2586 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2587 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2588 (TRY, CATCH, END_CATCH): Remove some definitions.
2589 * common/common-exceptions.c: Don't use GDB_XCPT.
2590 (catcher_list_size): Remove.
2591 (throw_exception, throw_it): Simplify.
2593 2019-04-05 Tom Tromey <tom@tromey.com>
2595 Revert the header-sorting patch.
2596 * ft32-tdep.c: Revert.
2597 * frv-tdep.c: Revert.
2598 * frv-linux-tdep.c: Revert.
2600 * frame-unwind.c: Revert.
2601 * frame-base.c: Revert.
2602 * fork-child.c: Revert.
2603 * findvar.c: Revert.
2604 * findcmd.c: Revert.
2605 * filesystem.c: Revert.
2606 * filename-seen-cache.h: Revert.
2607 * filename-seen-cache.c: Revert.
2608 * fbsd-tdep.c: Revert.
2609 * fbsd-nat.h: Revert.
2610 * fbsd-nat.c: Revert.
2611 * f-valprint.c: Revert.
2612 * f-typeprint.c: Revert.
2614 * extension.h: Revert.
2615 * extension.c: Revert.
2616 * extension-priv.h: Revert.
2617 * expprint.c: Revert.
2620 * exceptions.c: Revert.
2621 * event-top.c: Revert.
2622 * event-loop.c: Revert.
2624 * elfread.c: Revert.
2625 * dwarf2read.h: Revert.
2626 * dwarf2read.c: Revert.
2627 * dwarf2loc.c: Revert.
2628 * dwarf2expr.h: Revert.
2629 * dwarf2expr.c: Revert.
2630 * dwarf2-frame.c: Revert.
2631 * dwarf2-frame-tailcall.c: Revert.
2632 * dwarf-index-write.h: Revert.
2633 * dwarf-index-write.c: Revert.
2634 * dwarf-index-common.c: Revert.
2635 * dwarf-index-cache.h: Revert.
2636 * dwarf-index-cache.c: Revert.
2637 * dummy-frame.c: Revert.
2638 * dtrace-probe.c: Revert.
2641 * disasm-selftests.c: Revert.
2642 * dictionary.c: Revert.
2643 * dicos-tdep.c: Revert.
2644 * demangle.c: Revert.
2647 * darwin-nat.h: Revert.
2648 * darwin-nat.c: Revert.
2649 * darwin-nat-info.c: Revert.
2650 * d-valprint.c: Revert.
2651 * d-namespace.c: Revert.
2654 * csky-tdep.c: Revert.
2655 * csky-linux-tdep.c: Revert.
2656 * cris-tdep.c: Revert.
2657 * cris-linux-tdep.c: Revert.
2658 * cp-valprint.c: Revert.
2659 * cp-support.c: Revert.
2660 * cp-namespace.c: Revert.
2662 * corelow.c: Revert.
2663 * corefile.c: Revert.
2664 * continuations.c: Revert.
2665 * completer.h: Revert.
2666 * completer.c: Revert.
2667 * complaints.c: Revert.
2668 * coffread.c: Revert.
2669 * coff-pe-read.c: Revert.
2670 * cli-out.h: Revert.
2671 * cli-out.c: Revert.
2672 * charset.c: Revert.
2673 * c-varobj.c: Revert.
2674 * c-valprint.c: Revert.
2675 * c-typeprint.c: Revert.
2677 * buildsym.c: Revert.
2678 * buildsym-legacy.c: Revert.
2679 * build-id.h: Revert.
2680 * build-id.c: Revert.
2682 * bsd-uthread.c: Revert.
2683 * breakpoint.h: Revert.
2684 * breakpoint.c: Revert.
2685 * break-catch-throw.c: Revert.
2686 * break-catch-syscall.c: Revert.
2687 * break-catch-sig.c: Revert.
2688 * blockframe.c: Revert.
2690 * bfin-tdep.c: Revert.
2691 * bfin-linux-tdep.c: Revert.
2692 * bfd-target.c: Revert.
2694 * ax-general.c: Revert.
2697 * avr-tdep.c: Revert.
2699 * auto-load.c: Revert.
2700 * arm-wince-tdep.c: Revert.
2701 * arm-tdep.c: Revert.
2702 * arm-symbian-tdep.c: Revert.
2703 * arm-pikeos-tdep.c: Revert.
2704 * arm-obsd-tdep.c: Revert.
2705 * arm-nbsd-tdep.c: Revert.
2706 * arm-nbsd-nat.c: Revert.
2707 * arm-linux-tdep.c: Revert.
2708 * arm-linux-nat.c: Revert.
2709 * arm-fbsd-tdep.c: Revert.
2710 * arm-fbsd-nat.c: Revert.
2711 * arm-bsd-tdep.c: Revert.
2712 * arch-utils.c: Revert.
2713 * arc-tdep.c: Revert.
2714 * arc-newlib-tdep.c: Revert.
2715 * annotate.h: Revert.
2716 * annotate.c: Revert.
2717 * amd64-windows-tdep.c: Revert.
2718 * amd64-windows-nat.c: Revert.
2719 * amd64-tdep.c: Revert.
2720 * amd64-sol2-tdep.c: Revert.
2721 * amd64-obsd-tdep.c: Revert.
2722 * amd64-obsd-nat.c: Revert.
2723 * amd64-nbsd-tdep.c: Revert.
2724 * amd64-nbsd-nat.c: Revert.
2725 * amd64-nat.c: Revert.
2726 * amd64-linux-tdep.c: Revert.
2727 * amd64-linux-nat.c: Revert.
2728 * amd64-fbsd-tdep.c: Revert.
2729 * amd64-fbsd-nat.c: Revert.
2730 * amd64-dicos-tdep.c: Revert.
2731 * amd64-darwin-tdep.c: Revert.
2732 * amd64-bsd-nat.c: Revert.
2733 * alpha-tdep.c: Revert.
2734 * alpha-obsd-tdep.c: Revert.
2735 * alpha-nbsd-tdep.c: Revert.
2736 * alpha-mdebug-tdep.c: Revert.
2737 * alpha-linux-tdep.c: Revert.
2738 * alpha-linux-nat.c: Revert.
2739 * alpha-bsd-tdep.c: Revert.
2740 * alpha-bsd-nat.c: Revert.
2741 * aix-thread.c: Revert.
2743 * addrmap.c: Revert.
2744 * ada-varobj.c: Revert.
2745 * ada-valprint.c: Revert.
2746 * ada-typeprint.c: Revert.
2747 * ada-tasks.c: Revert.
2748 * ada-lang.c: Revert.
2749 * aarch64-tdep.c: Revert.
2750 * aarch64-ravenscar-thread.c: Revert.
2751 * aarch64-newlib-tdep.c: Revert.
2752 * aarch64-linux-tdep.c: Revert.
2753 * aarch64-linux-nat.c: Revert.
2754 * aarch64-fbsd-tdep.c: Revert.
2755 * aarch64-fbsd-nat.c: Revert.
2756 * aarch32-linux-nat.c: Revert.
2758 2019-04-05 Tom Tromey <tom@tromey.com>
2760 * ft32-tdep.c: Sort headers.
2761 * frv-tdep.c: Sort headers.
2762 * frv-linux-tdep.c: Sort headers.
2763 * frame.c: Sort headers.
2764 * frame-unwind.c: Sort headers.
2765 * frame-base.c: Sort headers.
2766 * fork-child.c: Sort headers.
2767 * findvar.c: Sort headers.
2768 * findcmd.c: Sort headers.
2769 * filesystem.c: Sort headers.
2770 * filename-seen-cache.h: Sort headers.
2771 * filename-seen-cache.c: Sort headers.
2772 * fbsd-tdep.c: Sort headers.
2773 * fbsd-nat.h: Sort headers.
2774 * fbsd-nat.c: Sort headers.
2775 * f-valprint.c: Sort headers.
2776 * f-typeprint.c: Sort headers.
2777 * f-lang.c: Sort headers.
2778 * extension.h: Sort headers.
2779 * extension.c: Sort headers.
2780 * extension-priv.h: Sort headers.
2781 * expprint.c: Sort headers.
2782 * exec.h: Sort headers.
2783 * exec.c: Sort headers.
2784 * exceptions.c: Sort headers.
2785 * event-top.c: Sort headers.
2786 * event-loop.c: Sort headers.
2787 * eval.c: Sort headers.
2788 * elfread.c: Sort headers.
2789 * dwarf2read.h: Sort headers.
2790 * dwarf2read.c: Sort headers.
2791 * dwarf2loc.c: Sort headers.
2792 * dwarf2expr.h: Sort headers.
2793 * dwarf2expr.c: Sort headers.
2794 * dwarf2-frame.c: Sort headers.
2795 * dwarf2-frame-tailcall.c: Sort headers.
2796 * dwarf-index-write.h: Sort headers.
2797 * dwarf-index-write.c: Sort headers.
2798 * dwarf-index-common.c: Sort headers.
2799 * dwarf-index-cache.h: Sort headers.
2800 * dwarf-index-cache.c: Sort headers.
2801 * dummy-frame.c: Sort headers.
2802 * dtrace-probe.c: Sort headers.
2803 * disasm.h: Sort headers.
2804 * disasm.c: Sort headers.
2805 * disasm-selftests.c: Sort headers.
2806 * dictionary.c: Sort headers.
2807 * dicos-tdep.c: Sort headers.
2808 * demangle.c: Sort headers.
2809 * dcache.h: Sort headers.
2810 * dcache.c: Sort headers.
2811 * darwin-nat.h: Sort headers.
2812 * darwin-nat.c: Sort headers.
2813 * darwin-nat-info.c: Sort headers.
2814 * d-valprint.c: Sort headers.
2815 * d-namespace.c: Sort headers.
2816 * d-lang.c: Sort headers.
2817 * ctf.c: Sort headers.
2818 * csky-tdep.c: Sort headers.
2819 * csky-linux-tdep.c: Sort headers.
2820 * cris-tdep.c: Sort headers.
2821 * cris-linux-tdep.c: Sort headers.
2822 * cp-valprint.c: Sort headers.
2823 * cp-support.c: Sort headers.
2824 * cp-namespace.c: Sort headers.
2825 * cp-abi.c: Sort headers.
2826 * corelow.c: Sort headers.
2827 * corefile.c: Sort headers.
2828 * continuations.c: Sort headers.
2829 * completer.h: Sort headers.
2830 * completer.c: Sort headers.
2831 * complaints.c: Sort headers.
2832 * coffread.c: Sort headers.
2833 * coff-pe-read.c: Sort headers.
2834 * cli-out.h: Sort headers.
2835 * cli-out.c: Sort headers.
2836 * charset.c: Sort headers.
2837 * c-varobj.c: Sort headers.
2838 * c-valprint.c: Sort headers.
2839 * c-typeprint.c: Sort headers.
2840 * c-lang.c: Sort headers.
2841 * buildsym.c: Sort headers.
2842 * buildsym-legacy.c: Sort headers.
2843 * build-id.h: Sort headers.
2844 * build-id.c: Sort headers.
2845 * btrace.c: Sort headers.
2846 * bsd-uthread.c: Sort headers.
2847 * breakpoint.h: Sort headers.
2848 * breakpoint.c: Sort headers.
2849 * break-catch-throw.c: Sort headers.
2850 * break-catch-syscall.c: Sort headers.
2851 * break-catch-sig.c: Sort headers.
2852 * blockframe.c: Sort headers.
2853 * block.c: Sort headers.
2854 * bfin-tdep.c: Sort headers.
2855 * bfin-linux-tdep.c: Sort headers.
2856 * bfd-target.c: Sort headers.
2857 * bcache.c: Sort headers.
2858 * ax-general.c: Sort headers.
2859 * ax-gdb.h: Sort headers.
2860 * ax-gdb.c: Sort headers.
2861 * avr-tdep.c: Sort headers.
2862 * auxv.c: Sort headers.
2863 * auto-load.c: Sort headers.
2864 * arm-wince-tdep.c: Sort headers.
2865 * arm-tdep.c: Sort headers.
2866 * arm-symbian-tdep.c: Sort headers.
2867 * arm-pikeos-tdep.c: Sort headers.
2868 * arm-obsd-tdep.c: Sort headers.
2869 * arm-nbsd-tdep.c: Sort headers.
2870 * arm-nbsd-nat.c: Sort headers.
2871 * arm-linux-tdep.c: Sort headers.
2872 * arm-linux-nat.c: Sort headers.
2873 * arm-fbsd-tdep.c: Sort headers.
2874 * arm-fbsd-nat.c: Sort headers.
2875 * arm-bsd-tdep.c: Sort headers.
2876 * arch-utils.c: Sort headers.
2877 * arc-tdep.c: Sort headers.
2878 * arc-newlib-tdep.c: Sort headers.
2879 * annotate.h: Sort headers.
2880 * annotate.c: Sort headers.
2881 * amd64-windows-tdep.c: Sort headers.
2882 * amd64-windows-nat.c: Sort headers.
2883 * amd64-tdep.c: Sort headers.
2884 * amd64-sol2-tdep.c: Sort headers.
2885 * amd64-obsd-tdep.c: Sort headers.
2886 * amd64-obsd-nat.c: Sort headers.
2887 * amd64-nbsd-tdep.c: Sort headers.
2888 * amd64-nbsd-nat.c: Sort headers.
2889 * amd64-nat.c: Sort headers.
2890 * amd64-linux-tdep.c: Sort headers.
2891 * amd64-linux-nat.c: Sort headers.
2892 * amd64-fbsd-tdep.c: Sort headers.
2893 * amd64-fbsd-nat.c: Sort headers.
2894 * amd64-dicos-tdep.c: Sort headers.
2895 * amd64-darwin-tdep.c: Sort headers.
2896 * amd64-bsd-nat.c: Sort headers.
2897 * alpha-tdep.c: Sort headers.
2898 * alpha-obsd-tdep.c: Sort headers.
2899 * alpha-nbsd-tdep.c: Sort headers.
2900 * alpha-mdebug-tdep.c: Sort headers.
2901 * alpha-linux-tdep.c: Sort headers.
2902 * alpha-linux-nat.c: Sort headers.
2903 * alpha-bsd-tdep.c: Sort headers.
2904 * alpha-bsd-nat.c: Sort headers.
2905 * aix-thread.c: Sort headers.
2906 * agent.c: Sort headers.
2907 * addrmap.c: Sort headers.
2908 * ada-varobj.c: Sort headers.
2909 * ada-valprint.c: Sort headers.
2910 * ada-typeprint.c: Sort headers.
2911 * ada-tasks.c: Sort headers.
2912 * ada-lang.c: Sort headers.
2913 * aarch64-tdep.c: Sort headers.
2914 * aarch64-ravenscar-thread.c: Sort headers.
2915 * aarch64-newlib-tdep.c: Sort headers.
2916 * aarch64-linux-tdep.c: Sort headers.
2917 * aarch64-linux-nat.c: Sort headers.
2918 * aarch64-fbsd-tdep.c: Sort headers.
2919 * aarch64-fbsd-nat.c: Sort headers.
2920 * aarch32-linux-nat.c: Sort headers.
2922 2019-04-04 Tom Tromey <tom@tromey.com>
2924 * varobj.c (varobj_create): Update.
2925 * rust-exp.y (struct rust_parser) <update_innermost_block,
2926 lookup_symbol>: New methods.
2927 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2929 (rust_parser::rust_lookup_type)
2930 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2931 * printcmd.c (display_command, do_one_display): Update.
2932 * parser-defs.h (struct parser_state) <parser_state>: Add
2933 "tracker" parameter.
2934 (block_tracker): New member.
2935 (class innermost_block_tracker) <innermost_block_tracker>: Add
2937 <reset>: Remove method.
2938 (innermost_block): Don't declare.
2939 (null_post_parser): Update.
2940 * parse.c (innermost_block): Remove global.
2941 (write_dollar_variable): Update.
2942 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2943 Remove "tracker_types" parameter.
2944 (parse_expression): Add "tracker" parameter.
2945 (parse_expression_for_completion): Update.
2946 (null_post_parser): Add "tracker" parameter.
2947 * p-exp.y: Update rules.
2948 * m2-exp.y: Update rules.
2949 * language.h (struct language_defn) <la_post_parser>: Add
2950 "tracker" parameter.
2951 * go-exp.y: Update rules.
2952 * f-exp.y: Update rules.
2953 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2955 * d-exp.y: Update rules.
2956 * c-exp.y: Update rules.
2957 * breakpoint.c (set_breakpoint_condition): Create an
2958 innermost_block_tracker.
2959 (watch_command_1): Likewise.
2960 * ada-lang.c (resolve): Add "tracker" parameter.
2961 (resolve_subexp): Likewise.
2962 * ada-exp.y (write_var_from_sym): Update.
2964 2019-04-04 Tom Tromey <tom@tromey.com>
2966 * type-stack.h: New file.
2967 * type-stack.c: New file.
2968 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2970 (insert_into_type_stack, insert_type, push_type, push_type_int)
2971 (insert_type_address_space, pop_type, pop_type_int)
2972 (pop_typelist, pop_type_stack, append_type_stack)
2973 (push_type_stack, get_type_stack, push_typelist)
2974 (follow_type_instance_flags, follow_types): Don't declare.
2975 * parse.c (type_stack): Remove global.
2976 (parse_exp_in_context): Update.
2977 (insert_into_type_stack, insert_type, push_type, push_type_int)
2978 (insert_type_address_space, pop_type, pop_type_int)
2979 (pop_typelist, pop_type_stack, append_type_stack)
2980 (push_type_stack, get_type_stack, push_typelist)
2981 (follow_type_instance_flags, follow_types): Remove (moved to
2983 * f-exp.y (type_stack): New global.
2985 (push_kind_type, f_parse): Update.
2986 * d-exp.y (type_stack): New global.
2989 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2991 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2992 (HFILES_NO_SRCDIR): Add type-stack.h.
2994 2019-04-04 Tom Tromey <tom@tromey.com>
2996 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2997 (rust_parser::convert_ast_to_expression, rust_parse)
2998 (rust_lex_test_completion, rust_lex_tests): Update.
2999 * parser-defs.h (struct expr_completion_state): New.
3000 (struct parser_state) <parser_state>: Add completion parameter.
3001 <mark_struct_expression, mark_completion_tag>: New methods.
3002 <parse_completion, m_completion_state>: New members.
3003 (prefixify_expression, null_post_parser): Update.
3004 (mark_struct_expression, mark_completion_tag): Don't declare.
3005 * parse.c (parse_completion, expout_last_struct)
3006 (expout_tag_completion_type, expout_completion_name): Remove
3008 (parser_state::mark_struct_expression)
3009 (parser_state::mark_completion_tag): Now methods.
3010 (prefixify_expression): Add last_struct parameter.
3011 (prefixify_subexp): Likewise.
3012 (parse_exp_1): Update.
3013 (parse_exp_in_context): Add cstate parameter. Update.
3014 (parse_expression_for_completion): Create an
3015 expr_completion_state.
3016 (null_post_parser): Add "completion" parameter.
3017 * p-exp.y: Update rules.
3019 * language.h (struct language_defn) <la_post_parser>: Add
3020 "completing" parameter.
3021 * go-exp.y: Update rules.
3022 (lex_one_token): Update.
3023 * expression.h (parse_completion): Don't declare.
3024 * d-exp.y: Update rules.
3025 (lex_one_token): Update rules.
3026 * c-exp.y: Update rules.
3027 (lex_one_token): Update.
3028 * ada-lang.c (resolve): Add "parse_completion" parameter.
3029 (resolve_subexp): Likewise.
3030 (ada_resolve_function): Likewise.
3032 2019-04-04 Tom Tromey <tom@tromey.com>
3034 * parser-defs.h (struct parser_state) <start_arglist,
3035 end_arglist>: New methods.
3036 <arglist_len, m_funcall_chain>: New members.
3037 (arglist_len, start_arglist, end_arglist): Don't declare.
3038 * parse.c (arglist_len, funcall_chain): Remove global.
3039 (start_arglist, end_arglist): Remove functions.
3040 (parse_exp_in_context): Update.
3041 * p-exp.y: Update rules.
3042 * m2-exp.y: Update rules.
3043 * go-exp.y: Update rules.
3044 * f-exp.y: Update rules.
3045 * d-exp.y: Update rules.
3046 * c-exp.y: Update rules.
3048 2019-04-04 Tom Tromey <tom@tromey.com>
3050 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3051 lex_operator, push_back>: New methods.
3053 (rust_parser::lex_hex, lex_escape): Rename and update.
3054 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3055 (rust_parser::lex_operator): Rename and update.
3056 (rust_parser::lex_number, rustyylex, rustyyerror)
3057 (rust_lex_test_init, rust_lex_test_sequence)
3058 (rust_lex_test_push_back, rust_lex_tests): Update.
3059 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3061 <lexptr, prev_lexptr>: New members.
3062 (lexptr, prev_lexptr): Don't declare.
3063 * parse.c (lexptr, prev_lexptr): Remove globals.
3064 (parse_exp_in_context): Update.
3065 * p-exp.y (yylex, yyerror): Update.
3066 * m2-exp.y (parse_number, yylex, yyerror): Update.
3067 * go-exp.y (lex_one_token, yyerror): Update.
3068 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3069 * d-exp.y (lex_one_token, yyerror): Update.
3070 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3071 (lex_one_token, yyerror): Update.
3072 * ada-lex.l (YY_INPUT): Update.
3073 (rewind_to_char): Update.
3074 * ada-exp.y (yyerror): Update.
3076 2019-04-04 Tom Tromey <tom@tromey.com>
3078 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3079 * parser-defs.h (struct parser_state) <parser_state>: Add new
3081 <comma_terminates>: New member.
3082 (comma_terminates): Don't declare global.
3083 * parse.c (comma_terminates): Remove global.
3084 (parse_exp_in_context): Update.
3085 * p-exp.y (yylex): Update.
3086 * m2-exp.y (yylex): Update.
3087 * go-exp.y (lex_one_token): Update.
3088 * f-exp.y (yylex): Update.
3089 * d-exp.y (lex_one_token): Update.
3090 * c-exp.y (lex_one_token): Update.
3091 * ada-lex.l: Update.
3093 2019-04-04 Tom Tromey <tom@tromey.com>
3095 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3096 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3097 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3098 * parser-defs.h (paren_depth): Don't declare.
3099 * parse.c (paren_depth): Remove global.
3100 (parse_exp_in_context): Update.
3101 * p-exp.y (paren_depth): New global.
3102 (pascal_parse): Initialize it.
3103 * m2-exp.y (paren_depth): New global.
3104 (m2_parse): Initialize it.
3105 * go-exp.y (paren_depth): New global.
3106 (go_parse): Initialize it.
3107 * f-exp.y (paren_depth): New global.
3108 (f_parse): Initialize it.
3109 * d-exp.y (paren_depth): New global.
3110 (d_parse): Initialize it.
3111 * c-exp.y (paren_depth): New global.
3112 (c_parse): Initialize it.
3113 * ada-lex.l (paren_depth): New global.
3114 (lexer_init): Initialize it.
3116 2019-04-04 Tom Tromey <tom@tromey.com>
3118 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3119 (rust_parser::convert_ast_to_type)
3120 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3121 * parser-defs.h (struct parser_state) <parser_state>: Add
3122 parameters. Initialize new members.
3123 <expression_context_block, expression_context_pc>: New members.
3124 * parse.c (expression_context_block, expression_context_pc):
3126 (parse_exp_in_context): Update.
3127 * p-exp.y: Update all rules.
3129 * m2-exp.y: Update all rules.
3131 * go-exp.y (yylex): Update.
3132 * f-exp.y (yylex): Update.
3133 * d-exp.y: Update all rules.
3135 * c-exp.y: Update all rules.
3136 (lex_one_token, classify_name, yylex, c_parse): Update.
3137 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3139 2019-04-04 Tom Tromey <tom@tromey.com>
3141 * gdbarch.h, gdbarch.c: Rebuild.
3142 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3144 (struct stap_parse_info): Replace "parser_state" with
3146 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3147 (parser_state): New class.
3148 * parse.c (expr_builder): Rename.
3149 (expr_builder::release): Rename.
3150 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3151 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3152 (write_exp_elt_longcst, write_exp_elt_floatcst)
3153 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3154 (write_exp_string_vector, write_exp_bitstring)
3155 (write_exp_msymbol, mark_struct_expression)
3156 (write_dollar_variable)
3157 (insert_type_address_space, increase_expout_size): Replace
3158 "parser_state" with "expr_builder".
3159 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3160 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3161 "parser_state" with "expr_builder".
3163 2019-04-04 Tom Tromey <tom@tromey.com>
3165 * rust-exp.y: Replace "parse_language" with method call.
3167 (yylex): Replace "parse_language" with method call.
3169 (yylex): Replace "parse_language" with method call.
3170 * go-exp.y (classify_name): Replace "parse_language" with method
3172 * f-exp.y (yylex): Replace "parse_language" with method call.
3173 * d-exp.y (lex_one_token): Replace "parse_language" with method
3176 (lex_one_token, classify_name, yylex): Replace "parse_language"
3178 * ada-exp.y (find_primitive_type, type_char)
3179 (type_system_address): Replace "parse_language" with method call.
3181 2019-04-04 Tom Tromey <tom@tromey.com>
3183 * rust-exp.y: Replace "parse_gdbarch" with method call.
3184 * parse.c (write_dollar_variable, insert_type_address_space):
3185 Replace "parse_gdbarch" with method call.
3186 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3188 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3190 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3191 "parse_gdbarch" with method call.
3192 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3194 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3195 "parse_gdbarch" with method call.
3196 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3197 "parse_gdbarch" with method call.
3198 * c-exp.y (parse_type, parse_number, classify_name): Replace
3199 "parse_gdbarch" with method call.
3200 * ada-lex.l: Replace "parse_gdbarch" with method call.
3201 * ada-exp.y (parse_type, find_primitive_type, type_char)
3202 (type_system_address): Replace "parse_gdbarch" with method call.
3204 2019-04-04 Tom Tromey <tom@tromey.com>
3206 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3207 * stap-probe.c (stap_parse_argument): Update.
3208 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3209 initial_size parameter.
3210 * rust-exp.y (rust_lex_tests): Update.
3211 * parse.c (parser_state): Update.
3212 (parse_exp_in_context): Update.
3213 * parser-defs.h (struct parser_state) <parser_state>: Remove
3214 "initial_size" parameter.
3216 2019-04-04 Tom Tromey <tom@tromey.com>
3218 * parser-defs.h (increase_expout_size): Don't declare.
3219 * parse.c (increase_expout_size): Now static.
3221 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3223 * gnu-nat.c (gnu_nat_target::wait): Fix
3224 target_waitstatus_to_string call.
3226 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3228 * eval.c (evaluate_subexp_standard): Handle internal functions
3229 during Fortran function call handling.
3231 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3233 * NEWS: Mention new internal functions.
3234 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3235 (read_base_type): Use dwarf2_init_complex_target_type.
3236 * value.c (creal_internal_fn): New function.
3237 (cimag_internal_fn): New function.
3238 (_initialize_values): Register new internal functions.
3240 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3242 * infrun.c (stop_all_threads): If debug_infrun, always
3243 trace the wait status after wait_one, using
3244 target_waitstatus_to_string and target_pid_to_str.
3245 (handle_inferior_event): Replace various trace of
3246 wait status kind by a single trace.
3247 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3248 wait status kind image by target_waitstatus_to_string.
3249 * target/waitstatus.c (target_waitstatus_to_string): Fix
3252 2019-04-01 Tom Tromey <tromey@adacore.com>
3255 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3257 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3258 Pedro Alves <palves@redhat.com>
3260 * top.c (quit_force): Call 'finalize_values'.
3261 * value.c (finalize_values): New function.
3262 * value.h (finalize_values): Declare.
3264 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3266 * NEWS: Announce $_gdb_major and $_gdb_minor.
3268 * top.c (init_gdb_version_vars): New function.
3269 (gdb_init): Call init_gdb_version_vars.
3271 2019-03-29 Tom Tromey <tromey@adacore.com>
3273 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3274 help text. Remove dead code.
3276 2019-03-29 Keith Seitz <keiths@redhat.com>
3278 From Siddhesh Poyarekar:
3279 * f-lang.h (f77_get_upperbound): Return LONGEST.
3280 (f77_get_lowerbound): Likewise.
3281 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3282 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3284 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3285 plongest to format print it.
3286 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3287 (f77_get_upperbound): Likewise.
3288 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3289 LOWER_BOUND to LONGEST.
3290 (f77_create_arrayprint_offset_tbl): Likewise.
3292 2019-03-29 Keith Seitz <keiths@redhat.com>
3294 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3295 %s/pulongest for TYPE_LENGTH instead of %d in format
3297 * ada-typerint.c (ada_print_type): Likewise.
3298 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3299 * compile/compile-c-support.c (generate_register_struct): Likewise.
3300 * gdbtypes.c (recursive_dump_type): Likewise.
3301 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3302 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3303 instead of %d in format strings.
3304 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3305 to std::min to ULONGEST.
3306 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3307 instead of %d in format strings.
3308 * tracepoint.c (info_scope_command): Likewise.
3309 * typeprint.c (print_offset_data::update)
3310 (print_offset_data::finish): Likewise.
3311 * xtensa-tdep.c (xtensa_store_return_value)
3312 (xtensa_push_dummy_call): Likewise.
3314 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3316 * windows-nat.c (display_selector): Fixed format specifications
3319 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3321 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3323 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3325 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3326 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3327 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3328 (nios2_linux_init_abi): Install it.
3330 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3332 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3334 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3336 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3338 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3339 Tom Tromey <tromey@adacore.com>
3341 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3343 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3345 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3346 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3347 method to compute the bounds of range types. Also print "[evaluated]"
3348 if the bounds' values come from a dynamic evaluation.
3350 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3352 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3353 whitespace when pretty printing is on.
3355 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3357 * ppc-linux-nat.c: Add include.
3359 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3361 * NEWS: Mention AArch64 Pointer Authentication.
3363 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3365 * arm-linux-nat.c: Add include.
3367 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3369 * source-cache.c (source_cache::get_source_lines): Re-read
3370 fullname after calling open_source_file.
3372 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3374 * NEWS: Mention TLS support for FreeBSD.
3376 2019-03-25 Tom Tromey <tromey@adacore.com>
3378 * minsyms.c (BUNCH_SIZE): Update comment.
3379 (~minimal_symbol_reader): Remove old comment.
3380 (compact_minimal_symbols): Update comment.
3381 (minimal_symbol_reader::install): Remove old comment. Update
3384 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3386 * s390-linux-nat.c: Add include.
3388 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3390 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3391 Call linux_get_hwcap.
3392 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3394 (aarch64_linux_get_hwcap): Remove function.
3395 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3397 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3399 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3400 * linux-tdep.c (linux_get_hwcap): Add function.
3401 (linux_get_hwcap2): Likewise.
3402 * linux-tdep.h (linux_get_hwcap): Add declaration.
3403 (linux_get_hwcap2): Likewise.
3404 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3405 (ppc_linux_get_hwcap2): Likewise.
3406 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3408 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3409 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3410 (ppc_linux_nat_target::read_description): Likewise.
3411 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3412 * s390-linux-nat.c: Likewise.
3413 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3415 2019-03-24 Tom Tromey <tom@tromey.com>
3417 * ada-lang.c (standard_lookup): Simplify initialization.
3418 (ada_lookup_symbol_nonlocal): Simplify return.
3419 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3420 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3421 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3422 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3424 * solib.c (solib_global_lookup): Simplify.
3425 * symtab.c (null_block_symbol): Remove.
3426 (symbol_cache_lookup): Simplify returns.
3427 (lookup_language_this): Simplify returns.
3428 (lookup_symbol_aux): Simplify return.
3429 (lookup_local_symbol): Simplify returns.
3430 (lookup_global_symbol_from_objfile): Simplify return.
3431 (lookup_symbol_in_objfile_symtabs)
3432 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3433 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3434 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3435 * cp-namespace.c (cp_lookup_bare_symbol)
3436 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3437 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3438 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3439 (cp_lookup_symbol_via_imports): Simplify initialization.
3440 (find_symbol_in_baseclass): Likewise.
3441 * symtab.h (null_block_symbol): Remove.
3442 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3443 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3444 (d_lookup_symbol_module): Likewise.
3445 (find_symbol_in_baseclass): Simplify initialization.
3447 2019-03-24 Tom Tromey <tom@tromey.com>
3449 * expression.h: Don't include symtab.h.
3450 (struct block): Forward declare.
3452 2019-03-24 Tom Tromey <tom@tromey.com>
3454 * c-exp.y (typebase): Remove casts.
3455 * gdbtypes.c (lookup_unsigned_typename, )
3456 (lookup_signed_typename): Remove cast.
3457 * eval.c (parse_to_comma_and_eval): Remove cast.
3458 * parse.c (write_dollar_variable): Remove cast.
3459 * block.h (struct block) <superblock>: Now const.
3460 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3461 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3462 (map_block): Make "block" const.
3463 * symfile.h (struct quick_symbol_functions)
3464 <map_matching_symbols>: Constify block argument to "callback".
3465 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3467 (find_pc_sect_compunit_symtab): Make "b" const.
3468 (find_symbol_at_address): Likewise.
3469 (search_symbols): Likewise.
3470 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3471 (dw2_debug_names_lookup_symbol): Likewise.
3472 (dw2_map_matching_symbols): Update.
3473 * p-valprint.c (pascal_val_print): Remove "block".
3474 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3475 (aux_add_nonlocal_symbols): Make "block" const.
3476 (resolve_subexp): Remove cast.
3477 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3479 (iterate_over_file_blocks): Likewise.
3480 * f-exp.y (%union) <bval>: Remove.
3481 * coffread.c (patch_opaque_types): Make "b" const.
3482 * spu-tdep.c (spu_catch_start): Make "block" const.
3483 * c-valprint.c (print_unpacked_pointer): Remove "block".
3484 * symmisc.c (dump_symtab_1): Make "b" const.
3485 (block_depth): Make "block" const.
3486 * d-exp.y (%union) <bval>: Remove.
3487 * cp-support.h (cp_lookup_rtti_type): Update.
3488 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3489 * psymtab.c (psym_lookup_symbol): Make "block" const.
3490 (maintenance_check_psymtabs): Make "b" const.
3491 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3492 (enumerate_locals, enumerate_args): Update.
3493 * python/py-symtab.c (stpy_global_block): Make "block" const.
3494 (stpy_static_block): Likewise.
3495 * inline-frame.c (block_starting_point_at): Make "new_block"
3497 * block.c (find_block_in_blockvector): Make return type const.
3498 (blockvector_for_pc_sect): Make "b" const.
3499 (find_block_in_blockvector): Make "b" const.
3501 2019-03-23 Tom Tromey <tom@tromey.com>
3503 * varobj.c (varobj_create): Update.
3504 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3505 * printcmd.c (display_command, do_one_display): Don't reset
3507 * parser-defs.h (enum innermost_block_tracker_type): Move to
3509 (innermost_block): Update comment.
3510 * parse.c (parse_exp_1): Add tracker_types parameter.
3511 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3512 tracker_types parameter. Reset innermost_block.
3513 (parse_exp_in_context): Remove.
3514 (parse_expression_for_completion): Update.
3515 * objfiles.c (~objfile): Don't reset expression_context_block or
3517 * expression.h (enum innermost_block_tracker_type): Move from
3519 (parse_exp_1): Add tracker_types parameter.
3520 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3521 reset innermost_block.
3523 2019-03-23 Tom Tromey <tom@tromey.com>
3525 * objfiles.h: Include bcache.h.
3527 2019-03-23 Tom Tromey <tom@tromey.com>
3529 * linespec.c (get_current_search_block): Use
3530 scoped_restore_current_language.
3531 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3533 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3534 Jiong Wang <jiong.wang@arm.com>
3536 * aarch64-linux-tdep.c
3537 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3539 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3541 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3542 Jiong Wang <jiong.wang@arm.com>
3544 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3546 (aarch64_analyze_prologue_test): Add PACIASP test.
3547 (aarch64_prologue_prev_register): Unmask PC value.
3549 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3550 Jiong Wang <jiong.wang@arm.com>
3552 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3553 (aarch64_dwarf2_prev_register): Unmask PC value.
3554 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3555 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3556 DW_CFA_AARCH64_negate_ra_state.
3557 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3559 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3560 Jiong Wang <jiong.wang@arm.com>
3562 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3564 (aarch64_pseudo_register_name): Likewise.
3565 (aarch64_pseudo_register_type): Likewise.
3566 (aarch64_pseudo_register_reggroup_p): Likewise.
3567 (aarch64_gdbarch_init): Add pauth registers.
3568 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3569 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3570 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3571 (struct gdbarch_tdep): Add regnum for ra_state.
3573 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3574 Jiong Wang <jiong.wang@arm.com>
3576 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3578 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3579 Jiong Wang <jiong.wang@arm.com>
3581 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3583 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3584 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3585 (aarch64_gdbarch_init): Add puth registers.
3586 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3587 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3588 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3590 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3591 Jiong Wang <jiong.wang@arm.com>
3593 * aarch64-linux-nat.c
3594 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3595 * aarch64-linux-tdep.c
3596 (aarch64_linux_core_read_description): Likewise.
3597 (aarch64_linux_get_hwcap): New function.
3598 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3599 (aarch64_linux_get_hwcap): New declaration.
3601 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3602 Jiong Wang <jiong.wang@arm.com>
3604 * aarch64-linux-nat.c
3605 (aarch64_linux_nat_target::read_description): Add pauth param.
3606 * aarch64-linux-tdep.c
3607 (aarch64_linux_core_read_description): Likewise.
3608 * aarch64-tdep.c (struct target_desc): Add in pauth.
3609 (aarch64_read_description): Add pauth param.
3610 (aarch64_gdbarch_init): Likewise.
3611 * aarch64-tdep.h (aarch64_read_description): Likewise.
3612 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3613 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3614 * features/Makefile: Add new files.
3615 * features/aarch64-pauth.c: New file.
3616 * features/aarch64-pauth.xml: New file.
3618 2019-03-20 Tom Tromey <tromey@adacore.com>
3620 * infrun.c (handle_inferior_event): Rename from
3621 handle_inferior_event_1. Create a scoped_value_mark.
3622 (handle_inferior_event): Remove.
3624 2019-03-19 Tom Tromey <tromey@adacore.com>
3626 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3627 * infrun.h (print_stop_event): Add "displays" parameter.
3628 * infrun.c (print_stop_event): Add "displays" parameter.
3630 2019-03-19 Pedro Alves <palves@redhat.com>
3632 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3633 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3634 to -1. Fix TABs vs spaces.
3635 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3636 * tui/tui-out.h (tui_ui_out) Add intro comments.
3637 <m_line, m_start_of_line>: In-class initialize, and add describing
3640 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3642 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3644 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3646 2019-03-18 Pedro Alves <palves@redhat.com>
3647 Eli Zaretskii <eliz@gnu.org>
3649 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3650 m_line and m_start_of_line.
3652 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3654 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3655 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3656 it returns a newline. This fixes a regression in TU mode, whereby
3657 the next line is output on the same screen line as the user input.
3659 2019-03-18 Tom Tromey <tromey@adacore.com>
3661 * minsyms.c (minimal_symbol_reader::install): Remove call to
3664 2019-03-18 Pedro Alves <palves@redhat.com>
3666 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3668 (apply_style): New, factored out from ...
3669 (apply_ansi_escape): ... this. Handle reverse video mode.
3670 (tui_set_reverse_mode): New function.
3671 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3672 * tui/tui-winsource.c (tui_show_source_line): Use
3673 tui_set_reverse_mode instead of setting A_STANDOUT.
3674 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3677 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3679 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3682 2019-03-18 Tom Tromey <tromey@adacore.com>
3684 * ada-lang.c (empty_array): Add "high" parameter.
3685 (ada_evaluate_subexp): Update.
3687 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3689 * unittests/string_view-selftests.c: Define
3690 _initialize_string_view_selftests unconditionally.
3692 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3695 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3697 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3700 * windows-nat.c (display_selector): Fix format specifiers.
3702 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3704 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3705 tui_refill_source_window instead of tui_refresh_win, to update the
3706 current execution line. This fixes redisplay of the current line
3707 when stepping through the code with "next" or "step".
3709 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3711 * source-cache.c (source_cache::get_source_lines): Call
3712 find_source_lines to initialize s->nlines. This fixes vertical
3713 scrolling of TUI source window when the DOWN arrow is pressed.
3715 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3717 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3718 linux-thread-db.c (_initialize_thread_db): Likewise.
3720 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3722 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3723 wclrtoeol in tui_show_source_line". This reverts changes made in
3724 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3726 2019-03-15 Tom Tromey <tom@tromey.com>
3728 * symtab.h (struct minimal_symbol): Derive from
3729 general_symbol_info.
3730 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3731 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3732 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3733 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3734 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3735 (MSYMBOL_SEARCH_NAME): Update.
3736 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3737 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3738 * minsyms.c (minimal_symbol_reader::record_full): Update.
3740 2019-03-15 Tom Tromey <tom@tromey.com>
3742 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3744 2019-03-15 Tom Tromey <tom@tromey.com>
3746 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3748 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3750 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3751 (build_minimal_symbol_hash_tables)
3752 (minimal_symbol_reader::install): Update.
3754 2019-03-15 Tom Tromey <tom@tromey.com>
3756 * symtab.c (create_demangled_names_hash): Update.
3757 (symbol_set_names): Update.
3758 * objfiles.h (struct objfile_per_bfd_storage)
3759 <demangled_names_hash>: Now an htab_up.
3760 * objfiles.c (objfile_per_bfd_storage): Simplify.
3762 2019-03-15 Tom Tromey <tom@tromey.com>
3764 * objfiles.h (struct objfile_per_bfd_storage): Declare
3766 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3768 (get_objfile_bfd_data): Use new. Don't initialize
3770 (free_objfile_per_bfd_storage): Remove.
3771 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3773 2019-03-15 Tom Tromey <tom@tromey.com>
3775 * symfile.c (reread_symbols): Update.
3776 * objfiles.c (objfile::objfile): Update.
3777 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3778 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3780 (minimal_symbol_reader::install): Update.
3781 (terminate_minimal_symbol_table): Remove.
3782 * jit.c (jit_object_close_impl): Update.
3784 2019-03-15 Tom Tromey <tom@tromey.com>
3786 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3789 2019-03-15 Tom Tromey <tom@tromey.com>
3791 * objfiles.h (struct objfile_per_bfd_storage)
3792 <demangled_hash_languages>: Now a bitset.
3793 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3794 (lookup_minimal_symbol): Update.
3796 2019-03-15 Tom Tromey <tom@tromey.com>
3798 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3799 Don't return the symbol.
3800 * coffread.c (record_minimal_symbol): Use record_full.
3802 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3804 The MS-Windows port of ncurses fails to switch to a color pair if
3805 one or both of the colors are the implicit default colors. This
3806 change records the default colors when TUI is initialized, and
3807 then specifies them explicitly when a color pair uses the default
3808 colors. This allows color styling in TUI mode on MS-Windows.
3810 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3812 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3813 colors in ncurses_norm_attr.
3814 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3815 "none", replace it with the default color recorded in
3818 2019-03-14 Tom Tromey <tromey@adacore.com>
3820 * source-cache.h (class source_cache) <get_source_lines>: Return
3822 * source-cache.c (source_cache::extract_lines): Handle case where
3823 first_pos==npos. Return std::string.
3824 (source_cache::get_source_lines): Update.
3826 2019-03-14 Tom Tromey <tromey@adacore.com>
3828 * NEWS: Add item for "style sources" commands.
3829 * source-cache.c (source_cache::get_source_lines): Check
3831 * cli/cli-style.c (source_styling): New global.
3832 (_initialize_cli_style): Add "style sources" commands.
3833 (show_style_sources): New function.
3834 * cli/cli-style.h (source_styling): Declare.
3836 2019-03-14 Pedro Alves <palves@redhat.com>
3837 Tom Tromey <tromey@adacore.com>
3839 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3840 * tui/tui-winsource.c (tui_refill_source_window): New function,
3842 (tui_horizontal_source_scroll): ... here. Move some logic.
3843 * cli/cli-style.c (set_style_enabled): Notify new observable.
3844 * tui/tui-hooks.c (tui_redisplay_source): New function.
3845 (tui_attach_detach_observers): Attach or detach
3846 tui_redisplay_source.
3847 * observable.h (source_styling_changed): New observable.
3848 * observable.c: Define source_styling_changed observable.
3850 2019-03-13 Tom Tromey <tromey@adacore.com>
3852 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3853 (i386_gnu_nat_target::store_registers): Update.
3854 * target-debug.h (target_debug_print_std_string): New macro.
3855 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3856 * windows-tdep.c (display_one_tib): Update.
3857 * tui/tui-stack.c (tui_make_status_line): Update.
3858 * top.c (print_inferior_quit_action): Update.
3859 * thread.c (thr_try_catch_cmd): Update.
3860 (add_thread_with_info): Update.
3861 (thread_target_id_str): Update.
3862 (thr_try_catch_cmd): Update.
3863 (thread_command): Update.
3864 (thread_find_command): Update.
3865 * record-btrace.c (record_btrace_target::info_record)
3866 (record_btrace_resume_thread, record_btrace_target::resume)
3867 (record_btrace_cancel_resume, record_btrace_step_thread)
3868 (record_btrace_target::wait, record_btrace_target::wait)
3869 (record_btrace_target::wait, record_btrace_target::stop): Update.
3870 * progspace.c (print_program_space): Update.
3871 * process-stratum-target.c
3872 (process_stratum_target::thread_address_space): Update.
3873 * linux-fork.c (linux_fork_mourn_inferior)
3874 (detach_checkpoint_command, info_checkpoints_command)
3875 (linux_fork_context): Update.
3876 (linux_fork_detach): Update.
3877 (class scoped_switch_fork_info): Update.
3878 (delete_checkpoint_command): Update.
3879 * infrun.c (follow_fork_inferior): Update.
3880 (follow_fork_inferior): Update.
3881 (proceed_after_vfork_done): Update.
3882 (handle_vfork_child_exec_or_exit): Update.
3883 (follow_exec): Update.
3884 (displaced_step_prepare_throw): Update.
3885 (displaced_step_restore): Update.
3886 (start_step_over): Update.
3888 (clear_proceed_status_thread): Update.
3890 (print_target_wait_results): Update.
3891 (do_target_wait): Update.
3892 (context_switch): Update.
3893 (stop_all_threads): Update.
3894 (restart_threads): Update.
3895 (finish_step_over): Update.
3896 (handle_signal_stop): Update.
3897 (switch_back_to_stepped_thread): Update.
3898 (keep_going_pass_signal): Update.
3899 (print_exited_reason): Update.
3900 (normal_stop): Update.
3901 * inferior.c (inferior_pid_to_str): Change return type.
3902 (print_selected_inferior): Update.
3903 (add_inferior): Update.
3904 (detach_inferior): Update.
3905 * dummy-frame.c (fprint_dummy_frames): Update.
3906 * dcache.c (dcache_info_1): Update.
3907 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3908 (btrace_fetch, btrace_clear): Update.
3909 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3910 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3912 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3913 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3914 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3915 * gdbarch.c, gdbarch.h: Rebuild.
3916 * gdbarch.sh (core_pid_to_str): Change return type.
3917 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3919 (windows_nat_target::pid_to_str): Change return type.
3920 (windows_delete_thread): Update.
3921 (windows_nat_target::attach): Update.
3922 (windows_nat_target::files_info): Update.
3923 * target-delegates.c: Rebuild.
3924 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3926 (sol_thread_target::pid_to_str): Change return type.
3927 * remote.c (class remote_target) <pid_to_str>: Change return
3929 (remote_target::pid_to_str): Change return type.
3930 (extended_remote_target::attach, remote_target::remote_stop_ns)
3931 (remote_target::remote_notif_remove_queued_reply)
3932 (remote_target::push_stop_reply, remote_target::disable_btrace):
3934 (extended_remote_target::attach): Update.
3935 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3937 (gdbsim_target::pid_to_str): Change return type.
3938 * ravenscar-thread.c (struct ravenscar_thread_target)
3939 <pid_to_str>: Change return type.
3940 (ravenscar_thread_target::pid_to_str): Change return type.
3941 * procfs.c (class procfs_target) <pid_to_str>: Change return
3943 (procfs_target::pid_to_str): Change return type.
3944 (procfs_target::attach): Update.
3945 (procfs_target::detach): Update.
3946 (procfs_target::fetch_registers): Update.
3947 (procfs_target::store_registers): Update.
3948 (procfs_target::wait): Update.
3949 (procfs_target::files_info): Update.
3950 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3951 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3953 (nto_procfs_target::pid_to_str): Change return type.
3954 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3955 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3957 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3959 (attach_proc_task_lwp_callback, get_detach_signal)
3960 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3961 (linux_nat_target::resume, wait_lwp, stop_callback)
3962 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3963 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3964 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3965 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3966 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3968 (inf_ptrace_target::attach): Update.
3969 (inf_ptrace_target::files_info): Update.
3970 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3972 (go32_nat_target::pid_to_str): Change return type.
3973 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3974 (gnu_nat_target::wait): Update.
3975 (gnu_nat_target::wait): Update.
3976 (gnu_nat_target::resume): Update.
3977 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3978 (fbsd_nat_target::wait): Update.
3979 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3981 (darwin_nat_target::attach): Update.
3982 * corelow.c (class core_target) <pid_to_str>: Change return type.
3983 (core_target::pid_to_str): Change return type.
3984 * target.c (normal_pid_to_str): Change return type.
3985 (default_pid_to_str): Likewise.
3986 (target_pid_to_str): Change return type.
3987 (target_translate_tls_address): Update.
3988 (target_announce_detach): Update.
3989 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3991 (bsd_uthread_target::pid_to_str): Change return type.
3992 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3994 (bsd_kvm_target::pid_to_str): Change return type.
3995 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3997 (aix_thread_target::pid_to_str): Change return type.
3998 * target.h (struct target_ops) <pid_to_str>: Change return type.
3999 (target_pid_to_str, normal_pid_to_str): Likewise.
4000 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4002 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4004 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4006 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4008 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4010 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4013 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4015 * NEWS: Mention that the new default MI version is 3. Mention
4016 changes to the output of commands and events that deal with
4017 multi-location breakpoints.
4018 * breakpoint.c: Include "mi/mi-out.h".
4019 (print_one_breakpoint): Change output syntax if using MI version
4021 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4023 (mi_multi_location_breakpoint_output_fixed): New.
4024 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4025 (mi_cmd_fix_multi_location_breakpoint_output): New.
4026 (mi_multi_location_breakpoint_output_fixed): New.
4027 * mi/mi-cmds.c (mi_cmds): Register command
4028 -fix-multi-location-breakpoint-output.
4029 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4032 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4034 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4035 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4036 instantiate mi_ui_out based on interpreter name.
4037 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4038 * mi/mi-main.c (mi_load_progress): Likewise.
4040 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4042 * NEWS: Combine separate "New targets" sections for 8.3.
4044 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4046 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4047 (ppcfbsd_init_abi): Install gdbarch
4048 "fetch_tls_load_module_address" and "get_thread_local_address"
4051 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4053 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4054 (riscv_fbsd_init_abi): Install gdbarch
4055 "fetch_tls_load_module_address" and "get_thread_local_address"
4058 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4060 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4061 (i386fbsd_init_abi): Install gdbarch
4062 "fetch_tls_load_module_address" and "get_thread_local_address"
4065 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4067 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4068 (amd64fbsd_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 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4075 (struct fbsd_pspace_data): New type.
4076 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4077 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4078 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4079 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4080 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4082 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4084 * gdbtypes.c (lookup_struct_elt): New function.
4085 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4086 * gdbtypes.h (struct struct_elt): New type.
4087 (lookup_struct_elt): New prototype.
4089 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4091 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4092 remove disabled code block.
4094 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4096 * gdbarch.sh (get_thread_local_address): New method.
4097 * gdbarch.h, gdbarch.c: Regenerate.
4098 * target.c (target_translate_tls_address): Use
4099 gdbarch_get_thread_local_address if present instead of
4100 target::get_thread_local_address.
4102 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4104 * target.h (target::get_thread_local_address): Update comment.
4106 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4108 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4109 objfile->separate_debug_objfile_backlink if not NULL.
4111 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4113 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4114 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4115 (amd64bsd_store_inferior_registers): Likewise.
4116 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4117 Enable segment base registers.
4118 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4119 PT_GETFSBASE and PT_GETGSBASE.
4120 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4122 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4123 segment base registers.
4124 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4126 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4128 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4129 Update calls to i386_target_description to add 'segments'
4131 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4132 add segment base registers.
4133 * arch/i386.c (i386_create_target_description): Add 'segments'
4134 parameter to enable segment base registers.
4135 * arch/i386.h (i386_create_target_description): Likewise.
4136 * features/i386/32bit-segments.xml: New file.
4137 * features/i386/32bit-segments.c: Generate.
4138 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4139 call to i386_target_description to add 'segments' parameter.
4140 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4141 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4142 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4143 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4144 if feature is present.
4145 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4146 Add 'segments' parameter to call to i386_target_description.
4147 (i386_target_description): Add 'segments' parameter to enable
4148 segment base registers.
4149 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4150 to call to i386_target_description.
4151 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4152 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4153 Define I386_NUM_REGS.
4154 (i386_target_description): Add 'segments' parameter to enable
4155 segment base registers.
4157 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4160 * source-cache.c: #undef open and close, to avoid unresolved
4161 externals during linking.
4163 2019-03-12 Tom Tromey <tromey@adacore.com>
4165 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4166 const. Add initializers.
4167 (_initialize_remote): Don't initialize ptid globals.
4169 2019-03-12 Pedro Alves <palves@redhat.com>
4171 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4173 2019-03-12 Pedro Alves <palves@redhat.com>
4175 * cp-name-parser.y (main): Remove unused 'len' variable.
4177 2019-03-12 Tom Tromey <tromey@adacore.com>
4179 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4180 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4182 2019-03-12 Tom Tromey <tromey@adacore.com>
4184 * linux-nat.c (iterate_over_lwps): Update.
4185 (stop_callback): Remove parameter.
4186 (stop_wait_callback, detach_callback, resume_set_callback)
4187 (select_singlestep_lwp_callback, set_ignore_sigint)
4188 (status_callback, resumed_callback, resume_clear_callback)
4189 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4191 (linux_nat_target::detach, linux_nat_target::resume)
4192 (linux_stop_and_wait_all_lwps, select_event_lwp)
4193 (linux_nat_filter_event, linux_nat_wait_1)
4194 (linux_nat_target::kill, linux_nat_target::stop)
4195 (linux_nat_target::stop): Update.
4196 (linux_nat_resume_callback): Change type.
4197 (resume_stopped_resumed_lwps, count_events_callback)
4198 (select_event_lwp_callback): Likewise.
4199 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4200 * arm-linux-nat.c (struct update_registers_data): Remove.
4201 (update_registers_callback): Change type.
4202 (arm_linux_insert_hw_breakpoint1): Update.
4203 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4205 (x86_linux_dr_set_addr): Update.
4206 (x86_linux_dr_set_control): Update.
4207 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4208 (iterate_over_lwps): Use gdb::function_view.
4209 * nat/aarch64-linux-hw-point.c (struct
4210 aarch64_dr_update_callback_param): Remove.
4211 (debug_reg_change_callback): Change type.
4212 (aarch64_notify_debug_reg_change): Update.
4213 * s390-linux-nat.c (s390_refresh_per_info): Update.
4215 2019-03-11 Tom Tromey <tromey@adacore.com>
4217 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4218 redundant assignment to "this_cu".
4220 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4222 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4224 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4226 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4228 (rank_one_type): ... this.
4230 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4232 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4234 (rank_one_type): ... this.
4236 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4238 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4240 (rank_one_type): ... this.
4242 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4244 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4246 (rank_one_type): ... this.
4248 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4250 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4252 (rank_one_type): ... this.
4254 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4256 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4258 (rank_one_type): ... this.
4260 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4262 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4264 (rank_one_type): ... this.
4266 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4268 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4270 (rank_one_type): ... this.
4272 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4274 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4276 (rank_one_type): ... this.
4278 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4280 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4282 (rank_one_type): ... this.
4284 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4286 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4288 (rank_one_type): ... this.
4290 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4292 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4294 (rank_one_type): ... this.
4296 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4298 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4299 inferior-events' shows the example events.
4301 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4303 Support styling on native MS-Windows console
4306 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4307 on MS-Windows if $TERM is not defined.
4309 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4311 * posix-hdep.c (gdb_console_fputs):
4312 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4314 * ui-file.h (gdb_console_fputs): Add prototype.
4316 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4317 back to fputs only if the former returns zero.
4319 2019-03-07 Tom Tromey <tom@tromey.com>
4321 * symmisc.c (print_symbol_bcache_statistics): Update.
4322 (print_objfile_statistics): Update.
4323 * symfile.c (allocate_symtab): Update.
4324 * stabsread.c: Don't include bcache.h.
4325 * psymtab.h (struct psymbol_bcache): Don't declare.
4326 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4327 (psymbol_bcache_init, psymbol_bcache_free)
4328 (psymbol_bcache_get_bcache): Don't declare.
4329 * psymtab.c (struct psymbol_bcache): Remove.
4330 (psymtab_storage::psymtab_storage): Update.
4331 (psymtab_storage::~psymtab_storage): Update.
4332 (psymbol_bcache_init, psymbol_bcache_free)
4333 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4334 (add_psymbol_to_bcache): Update.
4335 (allocate_psymtab): Update.
4336 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4337 macro_cache>: No longer pointers.
4338 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4339 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4340 * macrotab.c (macro_bcache): Update.
4341 * macroexp.c: Don't include bcache.h.
4342 * gdbtypes.c (check_types_worklist): Update.
4343 (types_deeply_equal): Remove TRY/CATCH. Update.
4344 * elfread.c (elf_symtab_read): Update.
4345 * dwarf2read.c: Don't include bcache.h.
4346 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4347 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4348 (print_bcache_statistics, bcache_memory_used): Don't declare.
4349 (struct bcache): Move from bcache.c. Add constructor, destructor,
4350 methods. Rename all data members.
4351 * bcache.c (struct bcache): Move to bcache.h.
4352 (bcache::expand_hash_table): Rename from expand_hash_table.
4354 (bcache::insert): Rename from bcache_full.
4355 (bcache::compare): Rename from bcache_compare.
4356 (bcache_xmalloc): Remove.
4357 (bcache::~bcache): Rename from bcache_xfree.
4358 (bcache::print_statistics): Rename from print_bcache_statistics.
4359 (bcache::memory_used): Rename from bcache_memory_used.
4361 2019-03-07 Pedro Alves <palves@redhat.com>
4363 * infrun.c (normal_stop): Also check for
4364 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4366 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4368 * f-lang.c (value_from_host_double): Moved to...
4369 * value.c (value_from_host_double): ...here.
4370 * value.h (value_from_host_double): Declare.
4371 * guile/scm-math.c (vlscm_convert_typed_number): Use
4372 value_from_host_double.
4373 (vlscm_convert_number): Likewise.
4374 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4375 * python/py-value.c (convert_value_from_python): Likewise.
4377 2019-03-06 Tom Tromey <tom@tromey.com>
4379 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4381 2019-03-06 Tom Tromey <tom@tromey.com>
4383 * utils.h (free_current_contents): Don't declare.
4384 * utils.c (free_current_contents): Remove.
4386 2019-03-06 Tom Tromey <tom@tromey.com>
4388 * top.c (quit_force): Update.
4389 * main.c (captured_command_loop): Update.
4390 * common/new-op.c (operator new): Update.
4391 * common/common-exceptions.c (struct catcher)
4392 <save_cleanup_chain>: Remove member.
4393 (exceptions_state_mc_init): Update.
4394 (exception_try_scope_entry): Return nullptr.
4395 (exception_try_scope_exit, exception_rethrow)
4396 (throw_exception_sjlj, throw_exception_cxx): Update.
4397 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4398 (all_cleanups, do_cleanups, discard_cleanups)
4399 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4400 (restore_cleanups, restore_final_cleanups): Don't declare.
4401 (do_final_cleanups): Remove parameter.
4402 * common/cleanups.c (cleanup_chain, make_cleanup)
4403 (make_cleanup_dtor, all_cleanups, do_cleanups)
4404 (discard_my_cleanups, discard_cleanups)
4405 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4406 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4407 (null_cleanup): Remove.
4408 (do_final_cleanups): Remove parameter.
4410 2019-03-06 Tom Tromey <tom@tromey.com>
4412 * remote.c (remote_target::remote_parse_stop_reply): Use
4415 2019-03-06 Tom Tromey <tom@tromey.com>
4417 * stabsread.c (struct stabs_field_info): Rename from field_info.
4418 <list, fnlist>: Add initializers.
4419 <obstack>: New member.
4420 (read_member_functions, read_struct_fields, read_baseclasses):
4421 Allocate on obstack. Don't use cleanups.
4422 (read_one_struct_field, read_member_functions, read_struct_fields)
4423 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4424 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4425 (read_struct_type): Update.
4427 2019-03-06 Tom Tromey <tom@tromey.com>
4429 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4430 * common/filestuff.h (make_cleanup_close): Don't declare.
4431 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4434 2019-03-06 Tom Tromey <tom@tromey.com>
4436 * solib-aix.c: Use make_scope_exit.
4438 2019-03-06 Tom Tromey <tom@tromey.com>
4440 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4441 Use make_scope_exit.
4443 2019-03-06 Tom Tromey <tom@tromey.com>
4445 * solib-svr4.c (disable_probes_interface): Remove parameter.
4446 (svr4_handle_solib_event): Use make_scope_exit.
4448 2019-03-06 Tom Tromey <tom@tromey.com>
4450 * remote.c (struct stop_reply_deleter): Remove.
4451 (stop_reply_up): Update.
4452 (struct stop_reply): Derive from notif_event. Don't typedef.
4453 <regcache>: Now a std::vector.
4454 (stop_reply_xfree): Remove.
4455 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4456 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4457 (remote_target::discard_pending_stop_replies): Use delete.
4458 (remote_target::remote_parse_stop_reply): Update.
4459 (remote_target::process_stop_reply): Update.
4460 * remote-notif.h (struct notif_event): Add virtual destructor.
4461 Remove "dtr" member.
4462 (struct notif_client) <alloc_event>: Return a unique_ptr.
4463 (notif_event_xfree): Don't declare.
4464 (notif_event_up): New typedef.
4465 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4466 (notif_event_xfree, do_notif_event_xfree): Remove.
4467 (remote_notif_state_xfree): Update.
4469 2019-03-06 Tom Tromey <tom@tromey.com>
4471 * infrun.c (displaced_step_clear_cleanup): Now a
4472 forward_scope_exit type.
4473 (displaced_step_prepare_throw): Update.
4474 (displaced_step_fixup): Update.
4476 2019-03-06 Tom Tromey <tom@tromey.com>
4478 * inferior.h (class inferior): Update comment.
4479 * gdbthread.h (class thread_info): Update comment.
4481 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4482 Tom Tromey <tom@tromey.com>
4484 * stabsread.h (struct stab_section_list): Remove.
4485 (coffstab_build_psymtabs): Update.
4486 * dbxread.c (symbuf_sections): Now a std::vector.
4487 (sect_idx): New global.
4488 (fill_symbuf): Update.
4489 (coffstab_build_psymtabs): Change type of stabsects parameter.
4491 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4493 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4494 (coff_locate_sections): Update.
4495 (coff_symfile_read): Remove cleanups. Update.
4496 (init_stringtab): Add storage parameter.
4497 (free_stringtab, free_stringtab_cleanup): Remove.
4498 (init_lineno): Add storage parameter.
4499 (free_linetab, free_linetab_cleanup): Remove.
4501 2019-03-06 Pedro Alves <palves@redhat.com>
4503 * linux-fork.c (fork_info::clobber_regs): Delete.
4504 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4505 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4507 (scoped_switch_fork_info::scoped_switch_fork_info)
4508 (checkpoint_command, linux_fork_context): Adjust
4509 fork_save_infrun_state calls.
4511 2019-03-06 Pedro Alves <palves@redhat.com>
4513 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4514 (inf_has_multiple_threads): Return 'bool' and rewrite using
4515 inferior_info::threads().
4517 2019-03-06 Pedro Alves <palves@redhat.com>
4519 * linux-fork.c: Include <list>.
4520 (fork_list): Now a std::list instance.
4521 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4522 (forks_exist_p, find_last_fork): Adjust.
4526 (free_fork): Delete, folded into fork_info::~fork_info().
4527 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4529 (init_fork_list): Delete.
4530 (linux_fork_killall, linux_fork_mourn_inferior)
4531 (linux_fork_detach, info_checkpoints_command): Adjust.
4532 (_initialize_linux_fork): No longer call init_fork_list.
4534 2019-03-06 Pedro Alves <palves@redhat.com>
4536 * linux-fork.c (new_fork): New, split out of ...
4537 (add_fork): ... this. Return void. Move "first fork" special
4538 case from here, to ...
4539 (checkpoint_command): ... here.
4540 * linux-linux.h (add_fork): Return void.
4542 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4544 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4546 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4547 Chris January <chris.january@arm.com>
4548 David Lecomber <david.lecomber@arm.com>
4550 * f-exp.y: New token, UNOP_INTRINSIC.
4551 (exp): New pattern using UNOP_INTRINSIC token.
4552 (f77_keywords): Add 'abs' keyword.
4553 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4554 (value_from_host_double): New function.
4555 (evaluate_subexp_f): Support UNOP_ABS.
4557 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4559 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4562 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4564 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4565 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4566 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4568 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4570 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4572 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4573 Chris January <chris.january@arm.com>
4575 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4576 * f-exp.y: Define 'KIND' token.
4577 (exp): New pattern for KIND expressions.
4578 (ptype): Handle types with a kind extension.
4579 (direct_abs_decl): Extend to spot kind extensions.
4580 (f77_keywords): Add 'kind' to the list.
4581 (push_kind_type): New function.
4582 (convert_to_kind_type): New function.
4583 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4584 * parse.c (operator_length_standard): Likewise.
4585 * parser-defs.h (enum type_pieces): Add tp_kind.
4586 * std-operator.def: Add UNOP_KIND.
4588 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4590 * f-exp.y (f_parse): Set yydebug.
4592 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4594 * f-lang.c (evaluate_subexp_f): New function.
4595 (exp_descriptor_f): New global.
4596 (f_language_defn): Use exp_descriptor_f instead of
4597 exp_descriptor_standard.
4599 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4601 * f-exp.y (struct token): Add comments.
4602 (dot_ops): Remove uppercase versions and the end marker.
4603 (f77_keywords): Likewise.
4604 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4605 entries in the dot_ops array are case insensitive, and use
4606 strncasecmp to compare strings. Also some whitespace cleanup in
4607 this area. Similar for the f77_keywords array, except entries in
4608 this list might be case sensitive.
4610 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4612 * f-exp.y (struct f77_boolean_val): Add comments.
4613 (boolean_values): Remove uppercase versions, and end marker.
4614 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4615 and use strncasecmp to achieve case insensitivity. Additionally,
4616 perform whitespace cleanup around this code.
4618 2019-03-06 Tom Tromey <tromey@adacore.com>
4620 * remote-sim.c (gdbsim_target_open): Use result of
4623 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4624 Dirk Schubert <dirk.schubert@arm.com>
4625 Chris January <chris.january@arm.com>
4627 * eval.c (evaluate_subexp_standard): Call Fortran argument
4629 * f-lang.c (struct value): A value which can be passed into a
4630 Fortran function call.
4631 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4633 (struct type): Value ready for a Fortran function call.
4634 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4636 * f-lang.h (fortran_argument_convert): Declaration.
4637 (fortran_preserve_arg_pointer): Declaration.
4638 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4640 2019-03-05 Tom Tromey <tromey@adacore.com>
4642 * python/py-prettyprint.c (print_string_repr): Remove #if.
4643 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4645 2019-03-05 Tom Tromey <tromey@adacore.com>
4647 * target.c (the_dummy_target): Move later. Change type to
4649 (initialize_targets): Don't initialize the_dummy_target.
4651 2019-03-05 Tom Tromey <tromey@adacore.com>
4653 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4654 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4656 2019-03-05 Tom Tromey <tromey@adacore.com>
4658 * windows-nat.c (windows_nat_target::attach)
4659 (windows_nat_target::detach): Don't call gdb_flush.
4660 * valprint.c (generic_val_print, val_print, val_print_string):
4661 Don't call gdb_flush.
4662 * utils.c (defaulted_query): Don't call gdb_flush.
4663 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4664 * target.c (target_announce_detach): Don't call gdb_flush.
4665 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4666 * remote.c (extended_remote_target::attach): Don't call
4668 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4669 * printcmd.c (do_examine): Don't call gdb_flush.
4670 (info_display_command): Don't call gdb_flush.
4671 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4672 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4673 * memattr.c (info_mem_command): Don't call gdb_flush.
4674 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4675 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4676 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4677 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4678 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4679 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4680 (gnu_nat_target::detach): Don't call gdb_flush.
4681 * f-valprint.c (f_val_print): Don't call gdb_flush.
4682 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4683 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4684 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4686 * c-valprint.c (c_val_print): Don't call gdb_flush.
4687 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4689 2019-03-05 Tom Tromey <tromey@adacore.com>
4691 * varobj.c (update_dynamic_varobj_children): Update.
4692 (install_default_visualizer): Use reset, not release.
4693 * value.c (set_internalvar): Update.
4694 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4695 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4696 ATTRIBUTE_UNUSED_RESULT.
4698 2019-03-05 Tom Tromey <tromey@adacore.com>
4700 * remote.c (class scoped_remote_fd) <release>: Add
4701 ATTRIBUTE_UNUSED_RESULT.
4703 2019-03-05 Tom Tromey <tromey@adacore.com>
4705 * macroexp.c (struct macro_buffer) <release>: Add
4706 ATTRIBUTE_UNUSED_RESULT.
4708 2019-03-05 Tom Tromey <tromey@adacore.com>
4710 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4711 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4712 ATTRIBUTE_UNUSED_RESULT.
4714 2019-03-05 Tom Tromey <tromey@adacore.com>
4716 * common/scoped_fd.h (class scoped_fd) <release>: Add
4717 ATTRIBUTE_UNUSED_RESULT.
4719 2019-03-05 Tom Tromey <tromey@adacore.com>
4721 * parser-defs.h (struct parser_state) <release>: Add
4722 ATTRIBUTE_UNUSED_RESULT.
4724 2019-03-05 Tom Tromey <tromey@adacore.com>
4726 * utils.h (class gdb_argv) <release>: Add
4727 ATTRIBUTE_UNUSED_RESULT.
4728 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4730 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4732 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4733 for-loop range, to avoid compiler warnings.
4735 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4736 avoid compiler warnings about unused variables.
4738 * NEWS: Mention end of support for native debugging on MS-Windows
4742 * common/netstuff.c:
4743 * gdbserver/gdbreplay.c
4744 * gdbserver/remote-utils.c:
4746 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4747 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4748 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4749 'getaddrinfo' and 'freeaddrinfo' were not available before
4750 Windows XP, and mingw.org's MinGW headers by default define
4751 _WIN32_WINNT to 0x500.
4753 2019-03-01 Gary Benson <gbenson@redhat.com>
4755 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4757 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4758 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4761 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4762 set_sigint_trap, clear_sigint_trap.
4764 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4766 * target.c (target_detach): Clear the regcache and the
4769 2019-02-27 Pedro Alves <palves@redhat.com>
4771 * utils.c (set_screen_size): When we cap the height/width sizes,
4772 tweak the corresponding command variable to show "unlimited":
4774 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4775 Pedro Alves <palves@redhat.com>
4777 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4778 before calling rl_set_screen_size.
4780 2019-02-27 Tom Tromey <tromey@adacore.com>
4782 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4784 * python/py-value.c: Remove Python 2.4 workaround.
4785 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4787 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4788 Python 2.4 workaround.
4789 * python/python-internal.h: Remove Python 2.4 comment.
4790 (Py_ssize_t): Don't define.
4791 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4792 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4793 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4794 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4795 * python/python.c (do_start_initialization): Remove Python 2.4
4797 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4798 (print_children): Remove Python 2.4 workaround.
4799 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4801 (CHARBUFFERPROC_NAME): Remove.
4802 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4803 Python 2.4 workaround.
4805 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4807 * NEWS: Note minimum Python version.
4809 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4811 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4812 code from these functions. Remove corresponding ifdefs. Use
4813 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4814 Remove gotos and target of gotos.
4815 (infpy_search_memory): Likewise.
4817 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4819 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4820 (hppa_gdbarch_init): Don't register deleted functions with
4823 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4825 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4826 (h8300_unwind_sp): Delete.
4827 (h8300_dummy_id): Delete.
4828 (h8300_gdbarch_init): Don't register deleted functions with
4831 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4833 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4834 (ft32_unwind_pc): Delete.
4835 (ft32_unwind_sp): Delete.
4836 (ft32_gdbarch_init): Don't register deleted functions with
4839 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4841 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4842 (frv_unwind_pc): Delete.
4843 (frv_unwind_sp): Delete.
4844 (frv_gdbarch_init): Don't register deleted functions with
4847 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4849 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4850 (riscv_unwind_pc): Delete.
4851 (riscv_unwind_sp): Delete.
4852 (riscv_gdbarch_init): Don't register deleted functions with
4855 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4857 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4858 (csky_unwind_pc): Delete.
4859 (csky_unwind_sp): Delete.
4860 (csky_gdbarch_init): Don't register deleted functions with
4863 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4865 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4866 (cris_unwind_pc): Delete.
4867 (cris_unwind_sp): Delete.
4868 (cris_gdbarch_init): Don't register deleted functions with
4871 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4873 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4874 (bfin_unwind_pc): Delete.
4875 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4877 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4879 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4880 (arm_unwind_pc): Delete.
4881 (arm_unwind_sp): Delete.
4882 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4884 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4886 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4887 (arc_unwind_pc): Delete.
4888 (arc_unwind_sp): Delete.
4889 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4891 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4893 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4894 (alpha_unwind_pc): Delete.
4895 (alpha_gdbarch_init): Don't register deleted functions with
4898 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4900 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4901 (aarch64_unwind_pc): Delete.
4902 (aarch64_unwind_sp): Delete.
4903 (aarch64_gdbarch_init): Don't register deleted functions with
4906 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4908 * gdbtypes.c (type_align): Don't consider static members when
4909 computing structure alignment.
4911 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4913 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4914 return 0 for other types.
4915 * arch-utils.c (default_type_align): Always return 0.
4916 * gdbarch.h: Regenerate.
4917 * gdbarch.sh (type_align): Extend comment.
4918 * gdbtypes.c (type_align): Add additional comments, always call
4919 gdbarch_type_align before applying the default rules.
4920 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4921 generic code will then apply a suitable default.
4922 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4923 types, return 0 for other types.
4925 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4927 * NEWS: Create a new section for the next release branch.
4928 Rename the section of the current branch, now that it has
4931 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4933 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4934 * version.in: Bump version to 8.3.50.DATE-git.
4936 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4938 * aix-thread.c (ptid_cmp): Remove unused variable.
4939 (get_signaled_thread): Likewise.
4940 (store_regs_user_thread): Likewise.
4941 (store_regs_kernel_thread): Likewise.
4942 (fetch_regs_kernel_thread): Remove shadowed variable.
4944 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4946 * features/riscv/32bit-cpu.xml: Add register numbers.
4947 * features/riscv/32bit-fpu.c: Regenerate.
4948 * features/riscv/32bit-fpu.xml: Add register numbers.
4949 * features/riscv/64bit-cpu.xml: Add register numbers.
4950 * features/riscv/64bit-fpu.c: Regenerate.
4951 * features/riscv/64bit-fpu.xml: Add register numbers.
4953 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4955 * NEWS: Mention two argument form of gdb.Value constructor.
4956 * python/py-value.c (convert_buffer_and_type_to_value): New
4958 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4959 Add support for handling an optional second argument. Call
4960 convert_buffer_and_type_to_value as appropriate.
4961 * python/python-internal.h (Py_buffer_deleter): New struct.
4962 (Py_buffer_up): New typedef.
4964 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4966 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4967 instead of releasing ownership.
4969 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4971 * dwarf2read.c (open_and_init_dwp_file): Call
4972 elf_numsections instead of bfd_count_sections to initialize
4973 dwp_file->num_sections.
4975 2019-02-25 Tom Tromey <tromey@adacore.com>
4977 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4979 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4981 * gcore.in: Add '--readnever' option when invoking GDB.
4983 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4985 * MAINTAINERS: Update my email address.
4987 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4989 * build-id.c (build_id_to_debug_bfd_1): New function.
4990 (build_id_to_debug_bfd): Look for separate debug file in
4993 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4995 * gdbarch.sh: Update the copyright year range that is placed into
4998 2019-02-22 Keith Seitz <keiths@redhat.com>
5001 * linespec.c (create_sals_line_offset): Search for the default
5002 symtab's filename instead of its fullname.
5004 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5006 * NEWS: Update style defaults.
5008 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5010 * main.c (captured_main_1): Disable styling in batch mode.
5012 2019-02-20 Tom Tromey <tom@tromey.com>
5014 * symtab.c (symtab_symbol_info): Fix typos.
5016 2019-02-20 Tom Tromey <tromey@adacore.com>
5018 * findcmd.c (_initialize_mem_search): Use upper case for
5019 metasyntactic variables.
5021 2019-02-20 Alan Hayward <alan.hayward@arm.com>
5023 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5024 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5026 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5028 * top.h (source_file_name): Change to std::string.
5029 * top.c (source_file_name): Likewise.
5030 (command_line_input): Adjust.
5031 * cli/cli-script.c (script_from_file): Adjust.
5033 2019-02-19 Tom Tromey <tromey@adacore.com>
5035 * ravenscar-thread.c
5036 (ravenscar_thread_target::update_thread_list): Don't call
5037 ada_build_task_list.
5038 * ada-lang.h (ada_build_task_list): Don't declare.
5039 * ada-tasks.c (struct ada_tasks_inferior_data)
5040 <task_list_valid_p>: Now bool.
5041 (read_known_tasks, ada_task_list_changed)
5042 (ada_tasks_invalidate_inferior_data): Update.
5043 (read_known_tasks_array): Return bool.
5044 (read_known_tasks_list): Likewise.
5045 (read_known_tasks): Return void.
5046 (ada_build_task_list): Now static.
5048 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5050 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5051 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5053 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5055 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5056 variant for ada_tasks_pspace_data_handle and
5057 ada_tasks_inferior_data_handle.
5058 (ada_tasks_pspace_data_cleanup): New function.
5059 (ada_tasks_inferior_data_cleanup): New function.
5061 2019-02-17 Tom Tromey <tom@tromey.com>
5063 * macrotab.h (macro_source_fullname): Return a std::string.
5064 * macrotab.c (macro_include, check_for_redefinition)
5065 (macro_undef, macro_lookup_definition, foreach_macro)
5066 (foreach_macro_in_scope): Update.
5067 (macro_source_fullname): Return a std::string.
5068 * macrocmd.c (show_pp_source_pos): Update.
5070 2019-02-17 Tom Tromey <tom@tromey.com>
5072 * macrocmd.c (show_pp_source_pos): Style the file names.
5074 2019-02-17 Tom Tromey <tom@tromey.com>
5077 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5079 2019-02-17 Tom Tromey <tom@tromey.com>
5081 * ada-lang.c (user_select_syms): Use filtered printing.
5082 * utils.c (wrap_style): New global.
5083 (desired_style): Remove.
5084 (emit_style_escape): Add stream parameter.
5085 (set_output_style, reset_terminal_style, prompt_for_continue):
5087 (flush_wrap_buffer): Only flush gdb_stdout.
5088 (wrap_here): Set wrap_style.
5089 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5090 treat escape sequences as a character. Change when wrap buffer is
5092 (fputs_styled): Do not set the output style when the default is
5094 * ui-style.h (struct ui_file_style) <is_default>: New method.
5095 * source.c (print_source_lines_base): Emit escape sequences in one
5098 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5100 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5101 integers and enumeration types.
5103 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5105 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5106 instead of lookup_symbol_in_language
5107 (do_exact_match): New function.
5108 (ada_get_symbol_name_matcher): Return do_exact_match when
5109 doing a verbatim match.
5111 2019-02-15 Tom Tromey <tromey@adacore.com>
5113 * ravenscar-thread.c (ravenscar_thread_target::resume)
5114 (ravenscar_thread_target::wait): Special case wildcard requests.
5116 2019-02-15 Tom Tromey <tromey@adacore.com>
5118 * ravenscar-thread.c (base_ptid): Remove.
5119 (struct ravenscar_thread_target) <close>: New method.
5120 <m_base_ptid>: New member.
5121 <update_inferior_ptid, active_task, task_is_currently_active,
5122 runtime_initialized>: Declare methods.
5123 <ravenscar_thread_target>: Add constructor.
5124 (ravenscar_thread_target::task_is_currently_active)
5125 (ravenscar_thread_target::update_inferior_ptid)
5126 (ravenscar_runtime_initialized): Rename. Now methods.
5127 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5128 (ravenscar_thread_target::update_thread_list): Update.
5129 (ravenscar_thread_target::active_task): Now method.
5130 (ravenscar_thread_target::store_registers)
5131 (ravenscar_thread_target::prepare_to_store)
5132 (ravenscar_thread_target::prepare_to_store)
5133 (ravenscar_thread_target::mourn_inferior): Update.
5134 (ravenscar_inferior_created): Use "new" to create target.
5135 (ravenscar_thread_target::get_ada_task_ptid): Update.
5136 (_initialize_ravenscar): Don't initialize base_ptid.
5137 (ravenscar_ops): Remove global.
5139 2019-02-15 Tom Tromey <tromey@adacore.com>
5141 * target.h (push_target): Declare new overload.
5142 * target.c (push_target): New overload, taking an rvalue reference.
5143 * remote.c (remote_target::open_1): Use push_target overload.
5144 * corelow.c (core_target_open): Use push_target overload.
5146 2019-02-15 Tom Tromey <tromey@adacore.com>
5148 * ravenscar-thread.c (is_ravenscar_task)
5149 (ravenscar_task_is_currently_active): Return bool.
5150 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5151 (_initialize_ravenscar): Remove "(void)".
5152 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5155 2019-02-15 Tom Tromey <tromey@adacore.com>
5157 * ravenscar-thread.c (ravenscar_runtime_initializer)
5158 (has_ravenscar_runtime, get_running_thread_id)
5159 (ravenscar_thread_target::resume): Fix indentation.
5161 2019-02-15 Tom Tromey <tromey@adacore.com>
5163 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5164 from ravenscar_arch_ops.
5165 (sparc_ravenscar_ops::fetch_registers)
5166 (sparc_ravenscar_ops::store_registers): Now methods.
5167 (sparc_ravenscar_prepare_to_store): Remove.
5168 (sparc_ravenscar_ops): Redefine.
5169 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5170 methods and destructor. Remove members.
5171 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5172 (ravenscar_thread_target::store_registers)
5173 (ravenscar_thread_target::prepare_to_store): Update.
5174 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5176 (struct ppc_ravenscar_powerpc_ops): Derive from
5178 (ppc_ravenscar_powerpc_ops::fetch_registers)
5179 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5180 (ppc_ravenscar_powerpc_ops): Redefine.
5181 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5182 (ppc_ravenscar_e500_ops::fetch_registers)
5183 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5184 (ppc_ravenscar_e500_ops): Redefine.
5185 * aarch64-ravenscar-thread.c
5186 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5187 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5188 (aarch64_ravenscar_fetch_registers)
5189 (aarch64_ravenscar_store_registers): Now methods.
5190 (aarch64_ravenscar_ops): Redefine.
5192 2019-02-15 Tom Tromey <tromey@adacore.com>
5194 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5195 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5196 (ravenscar_thread_target::stopped_by_watchpoint)
5197 (ravenscar_thread_target::stopped_data_address)
5198 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5200 2019-02-15 Tom Tromey <tromey@adacore.com>
5202 * ravenscar-thread.c: Fix some typos.
5204 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5205 Tom Tromey <tromey@adacore.com>
5207 * ada-lang.c (ada_exception_sal): Change addr_string to a
5209 (create_ada_exception_catchpoint): Update.
5211 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5212 Tom Tromey <tromey@adacore.com>
5214 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5215 (bp_location_ops): Remove.
5216 (base_breakpoint_allocate_location): Update.
5217 (free_bp_location): Update.
5218 * ada-lang.c (class ada_catchpoint_location)
5219 <ada_catchpoint_location>: Remove ops parameter.
5220 (ada_catchpoint_location_dtor): Remove.
5221 (ada_catchpoint_location_ops): Remove.
5222 (allocate_location_exception): Update.
5223 * breakpoint.h (struct bp_location_ops): Remove.
5224 (class bp_location) <bp_location>: Remove bp_location_ops
5226 <~bp_location>: Add destructor.
5229 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5230 Pedro Alves <palves@redhat.com>
5232 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5235 2019-02-14 David Michael <fedora.dm0@gmail.com>
5236 Samuel Thibault <samuel.thibault@gnu.org>
5237 Thomas Schwinge <thomas@codesourcery.com>
5239 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5240 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5242 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5244 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5245 (check_empty): Use "const char *".
5247 * gnu-nat.c (gnu_nat_target::detach): Instead of
5248 'detach_inferior (pid)' call
5249 'detach_inferior (find_inferior_pid (pid))'.
5251 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5252 'nat/fork-inferior.o'.
5253 * gnu-nat.c: #include "nat/fork-inferior.h".
5255 * gnu-nat.c (gnu_nat_target::detach): Instead of
5256 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5257 * gnu-nat.h: #include "inf-child.h".
5258 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5259 'i386_gnu_nat_target::fetch_registers'.
5260 (gnu_store_registers): Rename/move to
5261 'i386_gnu_nat_target::store_registers'.
5263 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5264 * gnu-nat.h (mach_thread_info): New function.
5265 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5267 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5269 2019-02-14 Frederic Konrad <konrad@adacore.com>
5271 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5273 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5275 * windows-nat.c (windows_add_thread): Add new parameter
5276 "main_thread_p" with default value set to false. Update
5277 function documentation as well as all callers.
5278 (windows_delete_thread): Likewise.
5279 (fake_create_process): Update call to windows_add_thread.
5280 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5281 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5282 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5283 call to windows_delete_thread.
5285 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5287 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5289 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5291 * symfile.c (find_separate_debug_file): Use canonical path of
5292 sysroot with child_path instead of gdb_sysroot if it is valid.
5294 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5296 * symfile.c (find_separate_debug_file): Use child_path to
5297 determine if an object file is under a sysroot.
5299 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5301 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5302 unittests/child-path-selftests.c.
5303 * common/pathstuff.c (child_path): New function.
5304 * common/pathstuff.h (child_path): New prototype.
5305 * unittests/child-path-selftests.c: New file.
5307 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5309 * symfile.c (find_separate_debug_file): Look for separate debug
5310 files in debug directories under the sysroot.
5312 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5314 * symtab.h (struct minimal_symbol data_p): New const method.
5315 (struct minimal_symbol text_p): Likewise.
5316 * symtab.c (output_source_filename): Use file name style
5318 (print_symbol_info): Likewise.
5319 (print_msymbol_info): Use address style to print addresses.
5320 Use function name style to print executable text symbols.
5321 (expand_symtab_containing_pc): Use data_p.
5322 (find_pc_sect_compunit_symtab): Likewise.
5324 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5326 * breakpoint.c (describe_other_breakpoints): Use address style
5328 (say_where): Likewise.
5330 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5332 * ada-typeprint.c (print_func_type): Print function name
5333 style to print function name.
5334 * c-typeprint.c (c_print_type_1): Likewise.
5336 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5338 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5341 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5343 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5346 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5348 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5349 TYPE_CODE_REF types.
5351 2019-02-08 Jim Wilson <jimw@sifive.com>
5353 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5354 (riscv_linux_fregset): New.
5355 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5357 2019-02-07 Tom Tromey <tom@tromey.com>
5359 * thread.c (thread_cancel_execution_command): Update.
5360 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5362 (struct thread_fsm_ops): Remove.
5363 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5364 (thread_fsm_should_stop, thread_fsm_return_value)
5365 (thread_fsm_set_finished, thread_fsm_finished_p)
5366 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5368 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5369 * infrun.c (clear_proceed_status_thread)
5370 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5371 (print_stop_event): Update.
5372 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5374 (step_command_fsm_ops): Remove.
5375 (new_step_command_fsm): Remove.
5377 (step_command_fsm::should_stop): Rename from
5378 step_command_fsm_should_stop.
5379 (step_command_fsm::clean_up): Rename from
5380 step_command_fsm_clean_up.
5381 (step_command_fsm::do_async_reply_reason): Rename from
5382 step_command_fsm_async_reply_reason.
5383 (struct until_next_fsm): Inherit from thread_fsm. Add
5385 (until_next_fsm_ops): Remove.
5386 (new_until_next_fsm): Remove.
5387 (until_next_fsm::should_stop): Rename from
5388 until_next_fsm_should_stop.
5389 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5390 (until_next_fsm::do_async_reply_reason): Rename from
5391 until_next_fsm_async_reply_reason.
5392 (struct finish_command_fsm): Inherit from thread_fsm. Add
5393 constructor. Change type of breakpoint.
5394 (finish_command_fsm_ops): Remove.
5395 (new_finish_command_fsm): Remove.
5396 (finish_command_fsm::should_stop): Rename from
5397 finish_command_fsm_should_stop.
5398 (finish_command_fsm::clean_up): Rename from
5399 finish_command_fsm_clean_up.
5400 (finish_command_fsm::return_value): Rename from
5401 finish_command_fsm_return_value.
5402 (finish_command_fsm::do_async_reply_reason): Rename from
5403 finish_command_fsm_async_reply_reason.
5404 (finish_command): Update.
5405 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5407 (call_thread_fsm_ops): Remove.
5408 (call_thread_fsm::call_thread_fsm): Rename from
5409 new_call_thread_fsm.
5410 (call_thread_fsm::should_stop): Rename from
5411 call_thread_fsm_should_stop.
5412 (call_thread_fsm::should_notify_stop): Rename from
5413 call_thread_fsm_should_notify_stop.
5414 (run_inferior_call, call_function_by_hand_dummy): Update.
5415 * cli/cli-interp.c (should_print_stop_to_console): Update.
5416 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5417 Add constructor. Change type of location_breakpoint,
5419 (until_break_fsm_ops): Remove.
5420 (new_until_break_fsm): Remove.
5421 (until_break_fsm::should_stop): Rename from
5422 until_break_fsm_should_stop.
5423 (until_break_fsm::clean_up): Rename from
5424 until_break_fsm_clean_up.
5425 (until_break_fsm::do_async_reply_reason): Rename from
5426 until_break_fsm_async_reply_reason.
5427 (until_break_command): Update.
5428 * thread-fsm.c: Remove.
5429 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5431 2019-02-07 Tom Tromey <tom@tromey.com>
5433 * yy-remap.h: Add include guard.
5434 * xtensa-tdep.h: Add include guard.
5435 * xcoffread.h: Rename include guard.
5436 * varobj-iter.h: Add include guard.
5437 * tui/tui.h: Rename include guard.
5438 * tui/tui-winsource.h: Rename include guard.
5439 * tui/tui-wingeneral.h: Rename include guard.
5440 * tui/tui-windata.h: Rename include guard.
5441 * tui/tui-win.h: Rename include guard.
5442 * tui/tui-stack.h: Rename include guard.
5443 * tui/tui-source.h: Rename include guard.
5444 * tui/tui-regs.h: Rename include guard.
5445 * tui/tui-out.h: Rename include guard.
5446 * tui/tui-layout.h: Rename include guard.
5447 * tui/tui-io.h: Rename include guard.
5448 * tui/tui-hooks.h: Rename include guard.
5449 * tui/tui-file.h: Rename include guard.
5450 * tui/tui-disasm.h: Rename include guard.
5451 * tui/tui-data.h: Rename include guard.
5452 * tui/tui-command.h: Rename include guard.
5453 * tic6x-tdep.h: Add include guard.
5454 * target/waitstatus.h: Rename include guard.
5455 * target/wait.h: Rename include guard.
5456 * target/target.h: Rename include guard.
5457 * target/resume.h: Rename include guard.
5458 * target-float.h: Rename include guard.
5459 * stabsread.h: Add include guard.
5460 * rs6000-tdep.h: Add include guard.
5461 * riscv-fbsd-tdep.h: Add include guard.
5462 * regformats/regdef.h: Rename include guard.
5463 * record.h: Rename include guard.
5464 * python/python.h: Rename include guard.
5465 * python/python-internal.h: Rename include guard.
5466 * python/py-stopevent.h: Rename include guard.
5467 * python/py-ref.h: Rename include guard.
5468 * python/py-record.h: Rename include guard.
5469 * python/py-record-full.h: Rename include guard.
5470 * python/py-record-btrace.h: Rename include guard.
5471 * python/py-instruction.h: Rename include guard.
5472 * python/py-events.h: Rename include guard.
5473 * python/py-event.h: Rename include guard.
5474 * procfs.h: Add include guard.
5475 * proc-utils.h: Add include guard.
5476 * p-lang.h: Add include guard.
5477 * or1k-tdep.h: Rename include guard.
5478 * observable.h: Rename include guard.
5479 * nto-tdep.h: Rename include guard.
5480 * nat/x86-linux.h: Rename include guard.
5481 * nat/x86-linux-dregs.h: Rename include guard.
5482 * nat/x86-gcc-cpuid.h: Add include guard.
5483 * nat/x86-dregs.h: Rename include guard.
5484 * nat/x86-cpuid.h: Rename include guard.
5485 * nat/ppc-linux.h: Rename include guard.
5486 * nat/mips-linux-watch.h: Rename include guard.
5487 * nat/linux-waitpid.h: Rename include guard.
5488 * nat/linux-ptrace.h: Rename include guard.
5489 * nat/linux-procfs.h: Rename include guard.
5490 * nat/linux-osdata.h: Rename include guard.
5491 * nat/linux-nat.h: Rename include guard.
5492 * nat/linux-namespaces.h: Rename include guard.
5493 * nat/linux-btrace.h: Rename include guard.
5494 * nat/glibc_thread_db.h: Rename include guard.
5495 * nat/gdb_thread_db.h: Rename include guard.
5496 * nat/gdb_ptrace.h: Rename include guard.
5497 * nat/fork-inferior.h: Rename include guard.
5498 * nat/amd64-linux-siginfo.h: Rename include guard.
5499 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5500 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5501 * nat/aarch64-linux.h: Rename include guard.
5502 * nat/aarch64-linux-hw-point.h: Rename include guard.
5503 * mn10300-tdep.h: Add include guard.
5504 * mips-linux-tdep.h: Add include guard.
5505 * mi/mi-parse.h: Rename include guard.
5506 * mi/mi-out.h: Rename include guard.
5507 * mi/mi-main.h: Rename include guard.
5508 * mi/mi-interp.h: Rename include guard.
5509 * mi/mi-getopt.h: Rename include guard.
5510 * mi/mi-console.h: Rename include guard.
5511 * mi/mi-common.h: Rename include guard.
5512 * mi/mi-cmds.h: Rename include guard.
5513 * mi/mi-cmd-break.h: Rename include guard.
5514 * m2-lang.h: Add include guard.
5515 * location.h: Rename include guard.
5516 * linux-record.h: Rename include guard.
5517 * linux-nat.h: Add include guard.
5518 * linux-fork.h: Add include guard.
5519 * i386-darwin-tdep.h: Rename include guard.
5520 * hppa-linux-offsets.h: Add include guard.
5521 * guile/guile.h: Rename include guard.
5522 * guile/guile-internal.h: Rename include guard.
5523 * gnu-nat.h: Rename include guard.
5524 * gdb-stabs.h: Rename include guard.
5525 * frv-tdep.h: Add include guard.
5526 * f-lang.h: Add include guard.
5527 * event-loop.h: Add include guard.
5528 * darwin-nat.h: Rename include guard.
5529 * cp-abi.h: Rename include guard.
5530 * config/sparc/nm-sol2.h: Rename include guard.
5531 * config/nm-nto.h: Rename include guard.
5532 * config/nm-linux.h: Add include guard.
5533 * config/i386/nm-i386gnu.h: Rename include guard.
5534 * config/djgpp/nl_types.h: Rename include guard.
5535 * config/djgpp/langinfo.h: Rename include guard.
5536 * compile/gcc-cp-plugin.h: Add include guard.
5537 * compile/gcc-c-plugin.h: Add include guard.
5538 * compile/compile.h: Rename include guard.
5539 * compile/compile-object-run.h: Rename include guard.
5540 * compile/compile-object-load.h: Rename include guard.
5541 * compile/compile-internal.h: Rename include guard.
5542 * compile/compile-cplus.h: Rename include guard.
5543 * compile/compile-c.h: Rename include guard.
5544 * common/xml-utils.h: Rename include guard.
5545 * common/x86-xstate.h: Rename include guard.
5546 * common/version.h: Rename include guard.
5547 * common/vec.h: Rename include guard.
5548 * common/tdesc.h: Rename include guard.
5549 * common/selftest.h: Rename include guard.
5550 * common/scoped_restore.h: Rename include guard.
5551 * common/scoped_mmap.h: Rename include guard.
5552 * common/scoped_fd.h: Rename include guard.
5553 * common/safe-iterator.h: Rename include guard.
5554 * common/run-time-clock.h: Rename include guard.
5555 * common/refcounted-object.h: Rename include guard.
5556 * common/queue.h: Rename include guard.
5557 * common/ptid.h: Rename include guard.
5558 * common/print-utils.h: Rename include guard.
5559 * common/preprocessor.h: Rename include guard.
5560 * common/pathstuff.h: Rename include guard.
5561 * common/observable.h: Rename include guard.
5562 * common/netstuff.h: Rename include guard.
5563 * common/job-control.h: Rename include guard.
5564 * common/host-defs.h: Rename include guard.
5565 * common/gdb_wait.h: Rename include guard.
5566 * common/gdb_vecs.h: Rename include guard.
5567 * common/gdb_unlinker.h: Rename include guard.
5568 * common/gdb_unique_ptr.h: Rename include guard.
5569 * common/gdb_tilde_expand.h: Rename include guard.
5570 * common/gdb_sys_time.h: Rename include guard.
5571 * common/gdb_string_view.h: Rename include guard.
5572 * common/gdb_splay_tree.h: Rename include guard.
5573 * common/gdb_setjmp.h: Rename include guard.
5574 * common/gdb_ref_ptr.h: Rename include guard.
5575 * common/gdb_optional.h: Rename include guard.
5576 * common/gdb_locale.h: Rename include guard.
5577 * common/gdb_assert.h: Rename include guard.
5578 * common/filtered-iterator.h: Rename include guard.
5579 * common/filestuff.h: Rename include guard.
5580 * common/fileio.h: Rename include guard.
5581 * common/environ.h: Rename include guard.
5582 * common/common-utils.h: Rename include guard.
5583 * common/common-types.h: Rename include guard.
5584 * common/common-regcache.h: Rename include guard.
5585 * common/common-inferior.h: Rename include guard.
5586 * common/common-gdbthread.h: Rename include guard.
5587 * common/common-exceptions.h: Rename include guard.
5588 * common/common-defs.h: Rename include guard.
5589 * common/common-debug.h: Rename include guard.
5590 * common/cleanups.h: Rename include guard.
5591 * common/buffer.h: Rename include guard.
5592 * common/btrace-common.h: Rename include guard.
5593 * common/break-common.h: Rename include guard.
5594 * cli/cli-utils.h: Rename include guard.
5595 * cli/cli-style.h: Rename include guard.
5596 * cli/cli-setshow.h: Rename include guard.
5597 * cli/cli-script.h: Rename include guard.
5598 * cli/cli-interp.h: Rename include guard.
5599 * cli/cli-decode.h: Rename include guard.
5600 * cli/cli-cmds.h: Rename include guard.
5601 * charset-list.h: Add include guard.
5602 * buildsym-legacy.h: Rename include guard.
5603 * bfin-tdep.h: Add include guard.
5604 * ax.h: Rename include guard.
5605 * arm-linux-tdep.h: Add include guard.
5606 * arm-fbsd-tdep.h: Add include guard.
5607 * arch/xtensa.h: Rename include guard.
5608 * arch/tic6x.h: Add include guard.
5609 * arch/i386.h: Add include guard.
5610 * arch/arm.h: Rename include guard.
5611 * arch/arm-linux.h: Rename include guard.
5612 * arch/arm-get-next-pcs.h: Rename include guard.
5613 * arch/amd64.h: Add include guard.
5614 * arch/aarch64-insn.h: Rename include guard.
5615 * arch-utils.h: Rename include guard.
5616 * annotate.h: Add include guard.
5617 * amd64-darwin-tdep.h: Rename include guard.
5618 * aarch64-linux-tdep.h: Add include guard.
5619 * aarch64-fbsd-tdep.h: Add include guard.
5620 * aarch32-linux-nat.h: Add include guard.
5622 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5624 * macrotab.c (macro_define_internal): New function that
5625 factorizes macro_define_object_internal and macro_define_function
5627 (macro_define_object_internal): Use macro_define_internal.
5628 (macro_define_function): Likewise.
5630 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5632 * macrocmd.c (extract_identifier): Return
5633 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5636 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5638 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5640 2019-02-05 Tom Tromey <tom@tromey.com>
5642 * target.c (target_stack::unpush): Move assertion earlier.
5644 2019-01-30 Tom Tromey <tom@tromey.com>
5647 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5648 (gdbpy_parse_and_eval): Likewise.
5649 * python/python-internal.h (gdbpy_allow_threads): New class.
5651 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5653 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5654 (aarch64_fbsd_fpregmap): Move earlier.
5655 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5656 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5657 instead of individual calls to trad_frame_set_reg_addr.
5658 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5660 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5661 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5662 instead of individual calls to trad_frame_set_reg_addr.
5664 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5666 * CONTRIBUTE: Replace contribution list with wiki link.
5668 2019-01-25 Tom Tromey <tom@tromey.com>
5670 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5672 2019-01-25 Tom Tromey <tom@tromey.com>
5674 * xtensa-linux-nat.c: Fix common/ includes.
5675 * xml-support.h: Fix common/ includes.
5676 * xml-support.c: Fix common/ includes.
5677 * x86-linux-nat.c: Fix common/ includes.
5678 * windows-nat.c: Fix common/ includes.
5679 * varobj.h: Fix common/ includes.
5680 * varobj.c: Fix common/ includes.
5681 * value.c: Fix common/ includes.
5682 * valops.c: Fix common/ includes.
5683 * utils.c: Fix common/ includes.
5684 * unittests/xml-utils-selftests.c: Fix common/ includes.
5685 * unittests/utils-selftests.c: Fix common/ includes.
5686 * unittests/unpack-selftests.c: Fix common/ includes.
5687 * unittests/tracepoint-selftests.c: Fix common/ includes.
5688 * unittests/style-selftests.c: Fix common/ includes.
5689 * unittests/string_view-selftests.c: Fix common/ includes.
5690 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5691 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5692 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5693 * unittests/rsp-low-selftests.c: Fix common/ includes.
5694 * unittests/parse-connection-spec-selftests.c: Fix common/
5696 * unittests/optional-selftests.c: Fix common/ includes.
5697 * unittests/offset-type-selftests.c: Fix common/ includes.
5698 * unittests/observable-selftests.c: Fix common/ includes.
5699 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5700 * unittests/memrange-selftests.c: Fix common/ includes.
5701 * unittests/memory-map-selftests.c: Fix common/ includes.
5702 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5703 * unittests/function-view-selftests.c: Fix common/ includes.
5704 * unittests/environ-selftests.c: Fix common/ includes.
5705 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5706 * unittests/common-utils-selftests.c: Fix common/ includes.
5707 * unittests/cli-utils-selftests.c: Fix common/ includes.
5708 * unittests/array-view-selftests.c: Fix common/ includes.
5709 * ui-file.c: Fix common/ includes.
5710 * tui/tui-io.c: Fix common/ includes.
5711 * tracepoint.h: Fix common/ includes.
5712 * tracepoint.c: Fix common/ includes.
5713 * tracefile-tfile.c: Fix common/ includes.
5714 * top.h: Fix common/ includes.
5715 * top.c: Fix common/ includes.
5716 * thread.c: Fix common/ includes.
5717 * target/waitstatus.h: Fix common/ includes.
5718 * target/waitstatus.c: Fix common/ includes.
5719 * target.h: Fix common/ includes.
5720 * target.c: Fix common/ includes.
5721 * target-memory.c: Fix common/ includes.
5722 * target-descriptions.c: Fix common/ includes.
5723 * symtab.h: Fix common/ includes.
5724 * symfile.c: Fix common/ includes.
5725 * stap-probe.c: Fix common/ includes.
5726 * spu-linux-nat.c: Fix common/ includes.
5727 * sparc-nat.c: Fix common/ includes.
5728 * source.c: Fix common/ includes.
5729 * solib.c: Fix common/ includes.
5730 * solib-target.c: Fix common/ includes.
5731 * ser-unix.c: Fix common/ includes.
5732 * ser-tcp.c: Fix common/ includes.
5733 * ser-pipe.c: Fix common/ includes.
5734 * ser-base.c: Fix common/ includes.
5735 * selftest-arch.c: Fix common/ includes.
5736 * s12z-tdep.c: Fix common/ includes.
5737 * rust-exp.y: Fix common/ includes.
5738 * rs6000-aix-tdep.c: Fix common/ includes.
5739 * riscv-tdep.c: Fix common/ includes.
5740 * remote.c: Fix common/ includes.
5741 * remote-notif.h: Fix common/ includes.
5742 * remote-fileio.h: Fix common/ includes.
5743 * remote-fileio.c: Fix common/ includes.
5744 * regcache.h: Fix common/ includes.
5745 * regcache.c: Fix common/ includes.
5746 * record-btrace.c: Fix common/ includes.
5747 * python/python.c: Fix common/ includes.
5748 * python/py-type.c: Fix common/ includes.
5749 * python/py-inferior.c: Fix common/ includes.
5750 * progspace.h: Fix common/ includes.
5751 * producer.c: Fix common/ includes.
5752 * procfs.c: Fix common/ includes.
5753 * proc-api.c: Fix common/ includes.
5754 * printcmd.c: Fix common/ includes.
5755 * ppc-linux-nat.c: Fix common/ includes.
5756 * parser-defs.h: Fix common/ includes.
5757 * osdata.c: Fix common/ includes.
5758 * obsd-nat.c: Fix common/ includes.
5759 * nat/x86-linux.c: Fix common/ includes.
5760 * nat/x86-linux-dregs.c: Fix common/ includes.
5761 * nat/x86-dregs.h: Fix common/ includes.
5762 * nat/x86-dregs.c: Fix common/ includes.
5763 * nat/ppc-linux.c: Fix common/ includes.
5764 * nat/mips-linux-watch.h: Fix common/ includes.
5765 * nat/mips-linux-watch.c: Fix common/ includes.
5766 * nat/linux-waitpid.c: Fix common/ includes.
5767 * nat/linux-ptrace.h: Fix common/ includes.
5768 * nat/linux-ptrace.c: Fix common/ includes.
5769 * nat/linux-procfs.c: Fix common/ includes.
5770 * nat/linux-personality.c: Fix common/ includes.
5771 * nat/linux-osdata.c: Fix common/ includes.
5772 * nat/linux-namespaces.c: Fix common/ includes.
5773 * nat/linux-btrace.h: Fix common/ includes.
5774 * nat/linux-btrace.c: Fix common/ includes.
5775 * nat/fork-inferior.c: Fix common/ includes.
5776 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5777 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5778 * nat/aarch64-linux.c: Fix common/ includes.
5779 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5780 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5781 * namespace.h: Fix common/ includes.
5782 * mips-linux-tdep.c: Fix common/ includes.
5783 * minsyms.c: Fix common/ includes.
5784 * mi/mi-parse.h: Fix common/ includes.
5785 * mi/mi-main.c: Fix common/ includes.
5786 * mi/mi-cmd-env.c: Fix common/ includes.
5787 * memrange.h: Fix common/ includes.
5788 * memattr.c: Fix common/ includes.
5789 * maint.h: Fix common/ includes.
5790 * maint.c: Fix common/ includes.
5791 * main.c: Fix common/ includes.
5792 * machoread.c: Fix common/ includes.
5793 * location.c: Fix common/ includes.
5794 * linux-thread-db.c: Fix common/ includes.
5795 * linux-nat.c: Fix common/ includes.
5796 * linux-fork.c: Fix common/ includes.
5797 * inline-frame.c: Fix common/ includes.
5798 * infrun.c: Fix common/ includes.
5799 * inflow.c: Fix common/ includes.
5800 * inferior.h: Fix common/ includes.
5801 * inferior.c: Fix common/ includes.
5802 * infcmd.c: Fix common/ includes.
5803 * inf-ptrace.c: Fix common/ includes.
5804 * inf-child.c: Fix common/ includes.
5805 * ia64-linux-nat.c: Fix common/ includes.
5806 * i387-tdep.c: Fix common/ includes.
5807 * i386-tdep.c: Fix common/ includes.
5808 * i386-linux-tdep.c: Fix common/ includes.
5809 * i386-linux-nat.c: Fix common/ includes.
5810 * i386-go32-tdep.c: Fix common/ includes.
5811 * i386-fbsd-tdep.c: Fix common/ includes.
5812 * i386-fbsd-nat.c: Fix common/ includes.
5813 * guile/scm-type.c: Fix common/ includes.
5814 * guile/guile.c: Fix common/ includes.
5815 * go32-nat.c: Fix common/ includes.
5816 * gnu-nat.c: Fix common/ includes.
5817 * gdbthread.h: Fix common/ includes.
5818 * gdbarch-selftests.c: Fix common/ includes.
5819 * gdb_usleep.c: Fix common/ includes.
5820 * gdb_select.h: Fix common/ includes.
5821 * gdb_bfd.c: Fix common/ includes.
5822 * gcore.c: Fix common/ includes.
5823 * fork-child.c: Fix common/ includes.
5824 * findvar.c: Fix common/ includes.
5825 * fbsd-nat.c: Fix common/ includes.
5826 * event-top.c: Fix common/ includes.
5827 * event-loop.c: Fix common/ includes.
5828 * dwarf2read.c: Fix common/ includes.
5829 * dwarf2loc.c: Fix common/ includes.
5830 * dwarf2-frame.c: Fix common/ includes.
5831 * dwarf-index-cache.c: Fix common/ includes.
5832 * dtrace-probe.c: Fix common/ includes.
5833 * disasm-selftests.c: Fix common/ includes.
5834 * defs.h: Fix common/ includes.
5835 * csky-tdep.c: Fix common/ includes.
5836 * cp-valprint.c: Fix common/ includes.
5837 * cp-support.h: Fix common/ includes.
5838 * cp-support.c: Fix common/ includes.
5839 * corelow.c: Fix common/ includes.
5840 * completer.h: Fix common/ includes.
5841 * completer.c: Fix common/ includes.
5842 * compile/compile.c: Fix common/ includes.
5843 * compile/compile-loc2c.c: Fix common/ includes.
5844 * compile/compile-cplus-types.c: Fix common/ includes.
5845 * compile/compile-cplus-symbols.c: Fix common/ includes.
5846 * command.h: Fix common/ includes.
5847 * cli/cli-dump.c: Fix common/ includes.
5848 * cli/cli-cmds.c: Fix common/ includes.
5849 * charset.c: Fix common/ includes.
5850 * build-id.c: Fix common/ includes.
5851 * btrace.h: Fix common/ includes.
5852 * btrace.c: Fix common/ includes.
5853 * breakpoint.h: Fix common/ includes.
5854 * breakpoint.c: Fix common/ includes.
5856 (enum agent_op): Fix common/ includes.
5857 * ax-general.c (struct aop_map): Fix common/ includes.
5858 * ax-gdb.c: Fix common/ includes.
5859 * auxv.c: Fix common/ includes.
5860 * auto-load.c: Fix common/ includes.
5861 * arm-tdep.c: Fix common/ includes.
5862 * arch/riscv.c: Fix common/ includes.
5863 * arch/ppc-linux-common.c: Fix common/ includes.
5864 * arch/i386.c: Fix common/ includes.
5865 * arch/arm.c: Fix common/ includes.
5866 * arch/arm-linux.c: Fix common/ includes.
5867 * arch/arm-get-next-pcs.c: Fix common/ includes.
5868 * arch/amd64.c: Fix common/ includes.
5869 * arch/aarch64.c: Fix common/ includes.
5870 * arch/aarch64-insn.c: Fix common/ includes.
5871 * arch-utils.c: Fix common/ includes.
5872 * amd64-windows-tdep.c: Fix common/ includes.
5873 * amd64-tdep.c: Fix common/ includes.
5874 * amd64-sol2-tdep.c: Fix common/ includes.
5875 * amd64-obsd-tdep.c: Fix common/ includes.
5876 * amd64-nbsd-tdep.c: Fix common/ includes.
5877 * amd64-linux-tdep.c: Fix common/ includes.
5878 * amd64-linux-nat.c: Fix common/ includes.
5879 * amd64-fbsd-tdep.c: Fix common/ includes.
5880 * amd64-fbsd-nat.c: Fix common/ includes.
5881 * amd64-dicos-tdep.c: Fix common/ includes.
5882 * amd64-darwin-tdep.c: Fix common/ includes.
5883 * agent.c: Fix common/ includes.
5884 * ada-lang.h: Fix common/ includes.
5885 * ada-lang.c: Fix common/ includes.
5886 * aarch64-tdep.c: Fix common/ includes.
5888 2019-01-25 Tom Tromey <tom@tromey.com>
5890 * common/create-version.sh: Use common/version.h.
5892 2019-01-24 Pedro Alves <palves@redhat.com>
5894 * infrun.c (signal_stop, signal_print, signal_program)
5895 (signal_catch, signal_pass): Now arrays instead of pointers.
5896 (update_signals_program_target, do_target_resume)
5897 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5898 * linux-nat.c (linux_nat_target::pass_signals)
5899 (linux_nat_target::create_inferior, linux_nat_target::attach):
5901 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5902 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5903 * procfs.c (procfs_target::pass_signals): Adjust.
5904 * record-full.c (record_full_target::resume): Adjust.
5905 * remote.c (remote_target::pass_signals)
5906 (remote_target::program_signals): Adjust.
5907 * target-debug.h (target_debug_print_signals): Now takes a
5908 gdb::array_view as parameter. Adjust.
5909 * target.h (target_ops) <pass_signals, program_signals>: Replace
5910 pointer and length parameters with gdb::array_view.
5911 (target_pass_signals, target_program_signals): Likewise.
5912 * target-delegates.c: Regenerate.
5914 2019-01-24 Pedro Alves <palves@redhat.com>
5916 * common/forward-scope-exit.h
5917 (forward_scope_exit::forward_scope_exit): Pass arguments to
5918 m_bind_function directly, instead of creating a std::bind and
5921 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5923 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5925 (pass_in_v_vfp_candidate): Likewise.
5927 2019-01-23 Tom Tromey <tom@tromey.com>
5928 Pedro Alves <palves@redhat.com>
5930 * regcache.c (class regcache_invalidator): Remove.
5931 (regcache::raw_write): Use make_scope_exit.
5933 2019-01-23 Tom Tromey <tom@tromey.com>
5935 * ui-out.h (class ui_out_emit_type): Update comment.
5937 2019-01-23 Tom Tromey <tom@tromey.com>
5939 * infrun.c (fetch_inferior_event): Update comment.
5941 2019-01-23 Tom Tromey <tom@tromey.com>
5942 Pedro Alves <palves@redhat.com>
5944 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5946 (fetch_inferior_event): Use SCOPE_EXIT.
5949 2019-01-23 Tom Tromey <tom@tromey.com>
5950 Pedro Alves <palves@redhat.com>
5952 * infrun.c (disable_thread_events): Delete.
5953 (stop_all_threads): Use SCOPE_EXIT.
5955 2019-01-23 Tom Tromey <tom@tromey.com>
5956 Pedro Alves <palves@redhat.com>
5958 * symfile.c: Include forward-scope-exit.h.
5959 (clear_symtab_users_cleanup): Replace forward declaration with
5960 a FORWARD_SCOPE_EXIT.
5961 (syms_from_objfile_1): Use the forward_scope_exit and
5962 gdb::optional instead of cleanup_function.
5963 (reread_symbols): Use the forward_scope_exit instead of
5965 (clear_symtab_users_cleanup): Remove function.
5967 2019-01-23 Tom Tromey <tom@tromey.com>
5968 Pedro Alves <palves@redhat.com>
5970 * linux-nat.c: Include scope-exit.h.
5971 (cleanup_target_stop): Remove.
5972 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5975 2019-01-23 Tom Tromey <tom@tromey.com>
5976 Pedro Alves <palves@redhat.com>
5978 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5979 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5981 2019-01-23 Tom Tromey <tom@tromey.com>
5982 Andrew Burgess <andrew.burgess@embecosm.com>
5983 Pedro Alves <palves@redhat.com>
5985 * infrun.c (fetch_inferior_event): Use scope_exit.
5986 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5987 * top.c (execute_command): Use scope_exit.
5988 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5989 * utils.c (do_bpstat_clear_actions_cleanup)
5990 (make_bpstat_clear_actions_cleanup): Remove.
5992 2019-01-23 Tom Tromey <tom@tromey.com>
5993 Pedro Alves <palves@redhat.com>
5995 * infrun.c: Include "common/scope-exit.h"
5996 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5997 (wait_for_inferior): Use SCOPE_EXIT.
5998 (fetch_inferior_event): Use scope_exit.
6000 2019-01-23 Tom Tromey <tom@tromey.com>
6001 Pedro Alves <palves@redhat.com>
6003 * breakpoint.c (create_breakpoint): Remove cleanup.
6005 2019-01-23 Tom Tromey <tom@tromey.com>
6006 Andrew Burgess <andrew.burgess@embecosm.com>
6007 Pedro Alves <palves@redhat.com>
6009 2019-01-23 Pedro Alves <palves@redhat.com>
6011 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6013 2019-01-23 Pedro Alves <palves@redhat.com>
6014 Andrew Burgess <andrew.burgess@embecosm.com>
6016 * gdbthread.h: Include "common/forward-scope-exit.h".
6017 (scoped_finish_thread_state): Redefine custom class in terms of
6020 2019-01-23 Pedro Alves <palves@redhat.com>
6021 Andrew Burgess <andrew.burgess@embecosm.com>
6023 * common/forward-scope-exit.h: New file.
6025 2019-01-23 Pedro Alves <palves@redhat.com>
6026 Andrew Burgess <andrew.burgess@embecosm.com>
6027 Tom Tromey <tom@tromey.com>
6029 * common/scope-exit.h: New file.
6031 2019-01-23 Pedro Alves <palves@redhat.com>
6033 * common/preprocessor.h (ESC): Rename to ...
6034 (ESC_PARENS): ... this.
6035 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6036 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6038 2019-01-23 Tom Tromey <tom@tromey.com>
6040 * language.h (class scoped_switch_to_sym_language_if_auto):
6041 Initialize m_lang in both cases.
6043 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6045 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6048 2019-01-22 Tom Tromey <tom@tromey.com>
6050 * corelow.c: Do not include sys/file.h.
6052 2019-01-22 Tom Tromey <tom@tromey.com>
6054 * tui/tui-wingeneral.h: Include gdb_curses.h.
6056 2019-01-22 Tom Tromey <tom@tromey.com>
6058 * source-cache.h (class source_cache) <get_source_lines,
6059 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6061 2019-01-22 Tom Tromey <tom@tromey.com>
6063 * remote-fileio.h (struct remote_target): Declare.
6065 2019-01-22 Tom Tromey <tom@tromey.com>
6067 * python/py-arch.c: Do not include py-ref.h.
6068 * python/py-bpevent.c: Do not include py-ref.h.
6069 * python/py-cmd.c: Do not include py-ref.h.
6070 * python/py-continueevent.c: Do not include py-ref.h.
6071 * python/py-event.h: Do not include py-ref.h.
6072 * python/py-evtregistry.c: Do not include py-ref.h.
6073 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6074 * python/py-frame.c: Do not include py-ref.h.
6075 * python/py-framefilter.c: Do not include py-ref.h.
6076 * python/py-function.c: Do not include py-ref.h.
6077 * python/py-infevents.c: Do not include py-ref.h.
6078 * python/py-linetable.c: Do not include py-ref.h.
6079 * python/py-objfile.c: Do not include py-ref.h.
6080 * python/py-param.c: Do not include py-ref.h.
6081 * python/py-prettyprint.c: Do not include py-ref.h.
6082 * python/py-progspace.c: Do not include py-ref.h.
6083 * python/py-symbol.c: Do not include py-ref.h.
6084 * python/py-symtab.c: Do not include py-ref.h.
6085 * python/py-type.c: Do not include py-ref.h.
6086 * python/py-unwind.c: Do not include py-ref.h.
6087 * python/py-utils.c: Do not include py-ref.h.
6088 * python/py-value.c: Do not include py-ref.h.
6089 * python/py-varobj.c: Do not include py-ref.h.
6090 * python/py-xmethods.c: Do not include py-ref.h.
6091 * python/python.c: Do not include py-ref.h.
6092 * varobj.c: Do not include py-ref.h.
6094 2019-01-22 Tom Tromey <tom@tromey.com>
6096 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6099 2019-01-22 Tom Tromey <tom@tromey.com>
6101 * compile/compile-cplus-types.c: Remove a comment by #include.
6103 2019-01-22 Tom Tromey <tom@tromey.com>
6105 * compile/gcc-c-plugin.h: Include compile-internal.h.
6107 2019-01-22 Tom Tromey <tom@tromey.com>
6109 * stabsread.c (EXTERN): Do not define.
6110 (symnum, next_symbol_text_func, processing_gcc_compilation)
6111 (within_function, global_sym_chain, global_stabs)
6112 (previous_stab_code, this_object_header_files)
6113 (n_this_object_header_files)
6114 (n_allocated_this_object_header_files): Define.
6115 * stabsread.h (EXTERN): Never define. Use "extern".
6117 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6119 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6122 2019-01-21 Tom Tromey <tom@tromey.com>
6124 * ui-out.c: Fix includes.
6125 * tui/tui-source.c: Fix includes.
6126 * target.c: Fix includes.
6127 * remote.c: Fix includes.
6128 * regcache.c: Fix includes.
6129 * python/py-block.c: Fix includes.
6130 * printcmd.c: Fix includes.
6131 * or1k-tdep.c: Fix includes.
6132 * mi/mi-main.c: Fix includes.
6133 * m32r-tdep.c: Fix includes.
6134 * csky-tdep.c: Fix includes.
6135 * compile/compile-cplus-types.c: Fix includes.
6136 * cli/cli-interp.c: Fix includes.
6138 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6140 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6143 2019-01-16 Tom Tromey <tom@tromey.com>
6145 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6147 (struct objfile) <msymbols_range>: Move from top level.
6148 <msymbols>: New method.
6149 (class objfile_msymbols): Remove.
6150 * symtab.c (default_collect_symbol_completion_matches_break_on):
6152 * symmisc.c (dump_msymbols): Update.
6153 * stabsread.c (scan_file_globals): Update.
6154 * objc-lang.c (info_selectors_command, info_classes_command)
6155 (find_methods): Update.
6156 * minsyms.c (find_solib_trampoline_target): Update.
6157 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6158 * coffread.c (coff_symfile_read): Update.
6159 * ada-lang.c (ada_lookup_simple_minsym)
6160 (ada_collect_symbol_completion_matches): Update.
6162 2019-01-16 Tom Tromey <tom@tromey.com>
6164 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6165 type. Remove no-argument constructor.
6166 <iterator::operator++>: Simplify.
6168 <end>: Use minimal_symbol_count.
6170 2019-01-16 Tom Tromey <tom@tromey.com>
6172 * objfiles.h (struct objfile) <psymtabs>: New method.
6173 (class objfile_psymtabs): Remove.
6174 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6176 <range>: New method.
6177 (require_partial_symbols): Change return type.
6178 * psymtab.c (require_partial_symbols)
6179 (psym_expand_symtabs_matching): Update.
6180 * mdebugread.c (parse_partial_symbols): Update.
6181 * dbxread.c (dbx_end_psymtab): Update.
6183 2019-01-15 Tom Tromey <tom@tromey.com>
6185 * symtab.c (lookup_objfile_from_block)
6186 (lookup_symbol_in_objfile_symtabs)
6187 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6188 (find_line_symtab, info_sources_command)
6189 (default_collect_symbol_completion_matches_break_on)
6190 (make_source_files_completion_list): Update.
6191 * symmisc.c (print_objfile_statistics, dump_objfile)
6192 (maintenance_print_symbols, maintenance_info_symtabs)
6193 (maintenance_check_symtabs, maintenance_info_line_tables):
6195 * source.c (select_source_symtab)
6196 (forget_cached_source_info_for_objfile): Update.
6197 * objfiles.h (class objfile_compunits): Remove.
6198 (struct objfile) <compunits_range>: New typedef.
6199 (compunits): New method.
6200 * objfiles.c (objfile_relocate1): Update.
6201 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6202 * maint.c (count_symtabs_and_blocks): Update.
6203 * linespec.c (iterate_over_all_matching_symtabs): Update.
6204 * cp-support.c (add_symbol_overload_list_qualified): Update.
6205 * coffread.c (coff_symtab_read): Update.
6206 * ada-lang.c (add_nonlocal_symbols)
6207 (ada_collect_symbol_completion_matches)
6208 (ada_add_global_exceptions): Update.
6210 2019-01-15 Tom Tromey <tom@tromey.com>
6212 * progspace.h (program_space) <objfiles_safe_range>: New
6214 <objfiles_safe>: New method.
6215 * objfiles.h (class all_objfiles_safe): Remove.
6216 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6217 * jit.c (jit_inferior_exit_hook): Update.
6219 2019-01-17 Tom Tromey <tom@tromey.com>
6221 * progspace.h (program_space) <objfiles_range>: New typedef.
6222 <objfiles>: New method.
6223 <objfiles_head>: Rename from objfiles.
6224 (object_files): Update.
6225 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6226 * guile/scm-pretty-print.c
6227 (ppscm_find_pretty_printer_from_objfiles): Update.
6228 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6229 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6231 * python/py-progspace.c (pspy_get_objfiles): Update.
6232 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6234 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6235 (objfpy_lookup_objfile_by_build_id): Update.
6236 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6237 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6239 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6240 (expand_symtab_containing_pc, lookup_objfile_from_block)
6241 (lookup_static_symbol, basic_lookup_transparent_type)
6242 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6243 (find_line_symtab, info_sources_command)
6244 (default_collect_symbol_completion_matches_break_on)
6245 (make_source_files_completion_list, find_main_name): Update.
6246 * symmisc.c (print_symbol_bcache_statistics)
6247 (print_objfile_statistics, maintenance_print_symbols)
6248 (maintenance_print_msymbols, maintenance_print_objfiles)
6249 (maintenance_info_symtabs, maintenance_check_symtabs)
6250 (maintenance_expand_symtabs, maintenance_info_line_tables):
6252 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6253 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6254 (map_overlay_command, unmap_overlay_command)
6255 (simple_overlay_update, expand_symtabs_matching)
6256 (map_symbol_filenames): Update.
6257 * symfile-debug.c (set_debug_symfile): Update.
6258 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6260 * source.c (select_source_symtab, forget_cached_source_info):
6262 * solib.c (solib_read_symbols): Update.
6263 * solib-spu.c (append_ocl_sos): Update.
6264 * psymtab.c (maintenance_print_psymbols)
6265 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6266 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6267 * printcmd.c (info_symbol_command): Update.
6268 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6270 * objfiles.h (class all_objfiles): Remove.
6271 * objfiles.c (have_partial_symbols, have_full_symbols)
6272 (have_minimal_symbols, qsort_cmp, update_section_map)
6273 (shared_objfile_contains_address_p)
6274 (default_iterate_over_objfiles_in_search_order): Update.
6275 * objc-lang.c (info_selectors_command, info_classes_command)
6276 (find_methods): Update.
6277 * minsyms.c (find_solib_trampoline_target): Update.
6278 * maint.c (maintenance_info_sections)
6279 (maintenance_translate_address, count_symtabs_and_blocks):
6281 * main.c (captured_main_1): Update.
6282 * linux-thread-db.c (try_thread_db_load_from_pdir)
6283 (has_libpthread): Update.
6284 * linespec.c (iterate_over_all_matching_symtabs)
6285 (search_minsyms_for_name): Update.
6286 * jit.c (jit_find_objf_with_entry_addr): Update.
6287 * hppa-tdep.c (find_unwind_entry)
6288 (hppa_lookup_stub_minimal_symbol): Update.
6289 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6291 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6292 (elf_gnu_ifunc_resolve_by_got): Update.
6293 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6294 * dwarf-index-write.c (save_gdb_index_command): Update.
6295 * cp-support.c (add_symbol_overload_list_qualified): Update.
6296 * breakpoint.c (create_overlay_event_breakpoint)
6297 (create_longjmp_master_breakpoint)
6298 (create_std_terminate_master_breakpoint)
6299 (create_exception_master_breakpoint): Update.
6300 * blockframe.c (find_pc_partial_function): Update.
6301 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6302 (ada_collect_symbol_completion_matches)
6303 (ada_add_global_exceptions): Update.
6305 2019-01-17 Tom Tromey <tom@tromey.com>
6307 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6309 (solib_target_parse_libraries): Change return type.
6310 (library_list_start_segment, library_list_start_section)
6311 (library_list_end_library, library_list_start_library); Update.
6312 (solib_target_free_library_list): Remove.
6313 (solib_target_parse_libraries): Remove cleanup. Change return
6315 (solib_target_current_sos): Update.
6317 2019-01-17 Tom Tromey <tromey@bapiya>
6319 * valprint.c: Replace "the the" with "the".
6320 * symtab.c: Replace "the the" with "the".
6321 * solib.c: Replace "the the" with "the".
6322 * solib-dsbt.c: Replace "the the" with "the".
6323 * linespec.c: Replace "the the" with "the".
6324 * dwarf2loc.h: Replace "the the" with "the".
6325 * amd64-windows-tdep.c: Replace "the the" with "the".
6326 * aarch64-tdep.c: Replace "the the" with "the".
6328 2019-01-16 Keith Seitz <keiths@redhat.com>
6331 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6332 <builder>: Rename to ..
6333 <m_builder>: ... this and make private.
6334 (dwarf2_cu::get_builder): New method. Change all users of
6335 `builder' to use this method.
6336 (dwarf2_start_symtab): Move to ...
6337 (dwarf2_cu::start_symtab): ... here. Update all callers
6338 (setup_type_unit_groups): Move to ...
6339 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6341 (dwarf2_cu::reset_builder): New method.
6342 (process_full_compunit, process_full_type_unit): Use
6343 dwarf2_cu::reset_builder.
6344 (follow_die_offset): Record the ancestor CU if it is different
6345 from the followed DIE's CU.
6346 (follow_die_sig_1): Likewise.
6348 2019-01-15 Tom Tromey <tom@tromey.com>
6350 * remote.c (class remote_state) <buf>: Now a char_vector.
6352 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6354 (remote_target::getpkt_or_notif_sane_1)
6355 (remote_target::getpkt_sane)
6356 (remote_target::getpkt_or_notif_sane): Likewise.
6357 (class remote_target) <putpkt>: New overload.
6358 (remote_target::read_frame): Change type of "buf_p". Remove
6360 (packet_ok): New overload.
6361 (packet_check_result): New overload.
6364 2019-01-14 Tom Tromey <tom@tromey.com>
6366 * remote-notif.c (handle_notification, remote_notif_ack)
6367 (remote_notif_parse): Make "buf" const.
6368 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6370 (remote_notif_parse, remote_notif_ack, handle_notification):
6372 * remote.c (remote_notif_stop_parse): Make "buf" const.
6373 (remote_target::remote_parse_stop_reply): Make "buf" const.
6374 (remote_notif_stop_ack): Make "buf" const.
6376 2019-01-14 Tom Tromey <tom@tromey.com>
6378 * remote.c (remote_console_output): Make parameter const.
6380 2019-01-14 Tom Tromey <tom@tromey.com>
6382 * target-debug.h (target_debug_print_signals): Constify.
6383 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6384 * procfs.c (procfs_target::pass_signals): Update.
6385 * linux-nat.c (linux_nat_target::pass_signals): Update.
6386 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6387 * target-delegates.c: Rebuild.
6388 * remote.c (remote_target::program_signals): Update.
6389 (remote_target::pass_signals): Update.
6390 * target.c (target_pass_signals): Constify argument.
6391 (target_program_signals): Likewise.
6392 * target.h (struct target_ops) <pass_signals, program_signals>:
6394 (target_pass_signals, target_program_signals): Constify argument.
6396 2019-01-14 Tom Tromey <tom@tromey.com>
6399 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6401 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6403 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6405 * rs6000-tdep.c: Include reggroups.h.
6406 (IS_V_ALIAS_PSEUDOREG): Define.
6407 (rs6000_register_name): Return names for the "vX" aliases.
6408 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6409 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6410 aliases. Call default_register_reggroup_p for all other
6412 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6414 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6415 Handle "vX" aliases.
6416 (v_alias_pseudo_register_collect): New function.
6417 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6418 (rs6000_gdbarch_init): Initialize "vX" aliases as
6419 pseudo-registers. Restore registration of
6420 rs6000_pseudo_register_reggroup_p with
6421 set_tdesc_pseudo_register_reggroup_p.
6423 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6425 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6426 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6427 set_gdbarch_num_pseudo_regs.
6429 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6431 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6432 Remove arg prefixname, add do_set and do_show.
6433 Add member functions set_list and show_list.
6434 * cli/cli-style.c (class cli_style_option): Update accordingly.
6435 (style_set_list): Move to file scope.
6436 (style_show_list): Likewise.
6437 (set_style): Call help_list.
6438 (show_style): Call cmd_show_list.
6439 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6440 Update to use the new macro.
6442 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6444 * ada-lang.c (_initialize_ada_language): Expand the help text
6445 for the "catch exception" command.
6447 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6449 * symtab.c (matching_obj_sections): Initialize obj,
6450 declare it closer to its usage.
6452 2019-01-10 Tom Tromey <tom@tromey.com>
6454 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6455 (basic_inf_threads_range): Remove.
6456 (inf_threads_range, inf_non_exited_threads_range)
6457 (safe_inf_threads_range): Use next_adapter.
6459 2019-01-10 Keith Seitz <keiths@redhat.com>
6463 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6464 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6466 2019-01-10 Keith Seitz <keiths@redhat.com>
6470 * dictionary.c (pending_to_vector): Remove.
6471 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6472 Remove _1 suffix, replacing functions of the same name. Update
6474 (dict_create_hashed, dict_create_hashed_expandable)
6475 (dict_create_linear, dict_create_linear_expandable, dict_free)
6476 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6477 Make functions static.
6479 2019-01-10 Keith Seitz <keiths@redhat.com>
6483 * dictionary.h (struct dictionary): Replace declaration with
6485 (dict_create_hashed, dict_create_hashed_expandable)
6486 (dict_create_linear, dict_create_linear_expandable)
6487 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6488 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6489 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6490 taking multidictionary argument.
6491 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6492 * block.h (struct block) <dict>: Change to multidictionary
6493 and rename `multidict'.
6494 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6495 symmisc.c: Update all dictionary references to multidictionary.
6497 2019-01-10 Keith Seitz <keiths@redhat.com>
6501 * dictionary.c: Include unordered_map.
6502 (pending_to_vector): New function.
6503 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6504 Rewrite the non-"_1" functions to take vector instead
6506 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6507 "new" _1 versions of the same name.
6508 (multidictionary): Define.
6509 (std::hash<enum language): New definition.
6510 (collate_pending_symbols_by_language, mdict_create_hashed)
6511 (mdict_create_hashed_expandable, mdict_create_linear)
6512 (mdict_create_linear_expandable, mdict_free)
6513 (find_language_dictionary, create_new_language_dictionary)
6514 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6515 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6516 (mdict_size, mdict_empty): New functions.
6517 * dictionary.h (mdict_iterator): Define.
6519 2019-01-10 Pedro Alves <palves@redhat.com>
6521 * breakpoint.c (read_uploaded_action)
6522 (create_tracepoint_from_upload): Adjust to use
6523 gdb::unique_xmalloc_ptr.
6524 * ctf.c (ctf_write_uploaded_tp):
6525 (SET_ARRAY_FIELD): Use emplace_back.
6526 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6527 * tracefile-tfile.c (tfile_write_uploaded_tp):
6528 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6529 gdb::unique_xmalloc_ptr.
6530 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6531 at_string, cond_string, cmd_strings>: Replace char pointers
6532 with gdb::unique_xmalloc_ptr.
6534 2019-01-10 Pedro Alves <palves@redhat.com>
6536 * solib-target.c (library_list_start_library): Don't xstrdup name.
6538 2019-01-10 Pedro Alves <palves@redhat.com>
6540 * mdebugread.c (parse_partial_symbols): Use
6541 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6543 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6545 * linux-fork.c (scoped_switch_fork_info)
6546 <~scoped_switch_fork_info>: Fix incorrect variable name.
6548 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6550 * linux-fork.c (scoped_switch_fork_info)
6551 <scoped_switch_fork_info>: Make explicit.
6552 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6554 2019-01-10 Tom Tromey <tom@tromey.com>
6556 * objfiles.h (objfile::reset_psymtabs): Update.
6557 * objfiles.c (objfile::objfile): Update.
6558 * psymtab.h (psymtab_storage::obstack): Update.
6559 (psymtab_storage::m_obstack): Use gdb::optional.
6560 (class psymtab_storage): Update comment. Remove objfile
6562 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6564 2019-01-10 Tom Tromey <tom@tromey.com>
6566 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6567 <free_psymtabs>: Now private.
6568 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6569 (allocate_psymtab): Use new method.
6571 2019-01-10 Tom Tromey <tom@tromey.com>
6573 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6574 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6575 * mdebugread.c (parse_partial_symbols): Use
6576 allocate_dependencies.
6577 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6578 allocate_dependencies.
6579 (process_psymtab_comp_unit_reader)
6580 (build_type_psymtab_dependencies): Likewise.
6581 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6583 2019-01-10 Tom Tromey <tom@tromey.com>
6585 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6586 PSYMBOL_SET_LANGUAGE.
6587 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6589 2019-01-10 Tom Tromey <tom@tromey.com>
6591 * psymtab.h (psymtab_storage::obstack): New method.
6592 <m_obstack>: Rename from obstack; now private.
6593 * psymtab.c (psymtab_storage): Update.
6594 * dwarf2read.c (create_addrmap_from_index)
6595 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6598 2019-01-10 Tom Tromey <tom@tromey.com>
6600 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6601 * objfiles.h (objfile::reset_psymtabs): New method.
6603 2019-01-10 Tom Tromey <tom@tromey.com>
6605 * symmisc.c (print_symbol_bcache_statistics): Update.
6606 (print_objfile_statistics): Update.
6607 * symfile.c (reread_symbols): Update.
6608 * psymtab.h (class psymtab_storage): New.
6609 * psymtab.c (psymtab_storage): New constructor.
6610 (~psymtab_storage): New destructor.
6611 (require_partial_symbols): Update.
6612 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6613 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6614 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6615 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6616 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6617 (start_psymtab_common, end_psymtab_common)
6618 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6619 (allocate_psymtab): Update.
6620 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6622 (dump_psymtab_addrmap, maintenance_print_psymbols)
6623 (maintenance_check_psymtabs): Update.
6624 (class objfile_psymtabs): Move to objfiles.h.
6625 * psympriv.h (discard_psymtab): Now inline.
6626 (psymtab_discarder::psymtab_discarder): Update.
6627 (psymtab_discarder::~psymtab_discarder): Update.
6628 (ALL_OBJFILE_PSYMTABS): Rewrite.
6629 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6630 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6632 <partial_symtabs>: New field.
6633 (class objfile_psymtabs): Move from psymtab.h. Update.
6634 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6636 (objfile::~objfile): Don't destroy psymbol_cache.
6637 * mdebugread.c (parse_partial_symbols): Update.
6638 * dwarf2read.c (create_addrmap_from_index)
6639 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6640 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6641 (add_partial_subprogram, dwarf2_ranges_read): Update.
6642 * dwarf-index-write.c (write_address_map)
6643 (write_one_signatured_type, recursively_write_psymbols)
6644 (class debug_names, class debug_names, write_psymtabs_to_index):
6647 2019-01-10 Tom Tromey <tom@tromey.com>
6649 * symtab.h (SYMBOL_SET_NAMES): Update.
6650 (symbol_set_names): Update.
6651 (MSYMBOL_SET_NAMES): Update.
6652 * symtab.c (symbol_set_names): Change argument to be an
6653 objfile_per_bfd_storage.
6654 * psymtab.c (add_psymbol_to_bcache): Update.
6655 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6657 2019-01-10 Tom Tromey <tom@tromey.com>
6659 * symtab.c (create_demangled_names_hash): Change argument to be an
6660 objfile_per_bfd_storage.
6661 (symbol_set_names): Update.
6663 2019-01-10 Tom Tromey <tom@tromey.com>
6665 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6667 * psymtab.c (init_psymbol_list): Do nothing if already called.
6668 * psympriv.h (init_psymbol_list): Add comment.
6669 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6671 * dbxread.c (dbx_symfile_read): Unconditionally call
6674 2019-01-10 Tom Tromey <tom@tromey.com>
6676 * xcoffread.c (scan_xcoff_symtab): Update.
6677 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6679 * mdebugread.c (parse_partial_symbols)
6680 (handle_psymbol_enumerators): Update.
6681 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6682 * dbxread.c (read_dbx_symtab): Update.
6683 * psympriv.h (psymbol_placement): New enum.
6684 (add_psymbol_to_list): Update.
6686 2019-01-10 Tom Tromey <tom@tromey.com>
6688 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6689 static_psymbols parameters.
6690 (scan_xcoff_symtab): Update.
6691 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6692 static_psymbols parameters.
6693 * psympriv.h (start_psymtab_common): Update.
6694 * mdebugread.c (parse_partial_symbols): Update.
6695 * dwarf2read.c (create_partial_symtab): Update.
6696 * dbxread.c (read_dbx_symtab): Update.
6697 (start_psymtab): Remove global_psymbols and static_psymbols
6700 2019-01-10 Tom Tromey <tom@tromey.com>
6702 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6703 * psymtab.c (allocate_psymtab): Add comment.
6704 * psympriv.h (allocate_psymtab): Add comment.
6705 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6707 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6709 2019-01-10 Tom Tromey <tom@tromey.com>
6711 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6713 * mipsread.c: Include mdebugread.h.
6714 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6716 * elfread.c: Include mdebugread.h.
6718 2019-01-09 Tom Tromey <tom@tromey.com>
6720 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6721 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6722 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6723 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6724 (psym_lookup_symbol, psym_find_last_source_symtab)
6725 (psym_forget_cached_source_info, psym_print_stats)
6726 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6727 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6728 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6729 (psym_find_compunit_symtab_by_address)
6730 (maintenance_print_psymbols, maintenance_info_psymtabs)
6731 (maintenance_check_psymtabs): Use ranged for.
6732 * psymtab.h (class objfile_psymtabs): New.
6733 (require_partial_symbols): Return objfile_psymtabs.
6734 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6736 2019-01-09 Tom Tromey <tom@tromey.com>
6738 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6739 (find_pc_mapped_section, list_overlays_command)
6740 (map_overlay_command, unmap_overlay_command)
6741 (simple_overlay_update): Use all_objfiles.
6742 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6743 * printcmd.c (info_symbol_command): Use all_objfiles.
6744 * objfiles.h (ALL_OBJSECTIONS): Remove.
6745 * maint.c (maintenance_translate_address): Use all_objfiles.
6746 * gcore.c (gcore_create_callback): Use all_objfiles.
6747 (objfile_find_memory_regions): Likewise.
6749 2019-01-09 Tom Tromey <tom@tromey.com>
6751 * symtab.c (find_line_symtab, info_sources_command)
6752 (make_source_files_completion_list): Use objfile_compunits.
6753 * source.c (select_source_symtab): Use objfile_compunits.
6754 * objfiles.h (struct objfile): Update comment.
6755 (ALL_OBJFILES): Remove.
6756 (ALL_FILETABS): Remove.
6757 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6760 2019-01-09 Tom Tromey <tom@tromey.com>
6762 * symmisc.c (print_objfile_statistics, dump_objfile)
6763 (maintenance_print_symbols): Use compunit_filetabs.
6764 * source.c (forget_cached_source_info_for_objfile): Use
6766 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6767 (ALL_FILETABS): Use compunit_filetabs.
6768 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6769 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6771 2019-01-09 Tom Tromey <tom@tromey.com>
6773 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6774 (compunit_filetabs): New.
6775 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6777 (info_sources_command, make_source_files_completion_list): Remove
6779 * symmisc.c (print_objfile_statistics, dump_objfile)
6780 (maintenance_print_symbols): Remove declaration.
6781 (maintenance_info_symtabs): Use compunit_filetabs.
6782 (maintenance_info_line_tables): Likewise.
6783 * source.c (select_source_symtab): Change local variable name.
6784 (forget_cached_source_info_for_objfile): Remove declaration.
6785 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6786 * objfiles.c (objfile_relocate1): Remove declaration.
6787 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6789 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6790 * coffread.c (coff_symtab_read): Remove declaration.
6791 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6794 2019-01-09 Tom Tromey <tom@tromey.com>
6796 * symtab.c (lookup_objfile_from_block)
6797 (find_pc_sect_compunit_symtab, search_symbols)
6798 (default_collect_symbol_completion_matches_break_on): Use
6800 * objfiles.h (ALL_COMPUNITS): Remove.
6801 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6802 * cp-support.c (add_symbol_overload_list_qualified): Use
6804 * ada-lang.c (ada_collect_symbol_completion_matches)
6805 (ada_add_global_exceptions): Use objfile_compunits.
6807 2019-01-09 Tom Tromey <tom@tromey.com>
6809 * source.c (select_source_symtab)
6810 (forget_cached_source_info_for_objfile): Remove declaration.
6811 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6813 * maint.c (count_symtabs_and_blocks): Remove declaration.
6814 * cp-support.c (add_symbol_overload_list_qualified): Remove
6816 * coffread.c (coff_symtab_read): Remove declaration.
6817 * symtab.c (lookup_symbol_in_objfile_symtabs)
6818 (basic_lookup_transparent_type_1): Use objfile_compunits.
6819 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6820 (info_sources_command, search_symbols)
6821 (default_collect_symbol_completion_matches_break_on)
6822 (make_source_files_completion_list): Remove declaration.
6823 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6824 (ada_collect_symbol_completion_matches)
6825 (ada_add_global_exceptions): Remove declaration.
6826 * linespec.c (iterate_over_all_matching_symtabs): Use
6828 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6829 (class objfile_compunits): New.
6830 (ALL_COMPUNITS): Use objfile_compunits.
6831 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6832 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6834 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6836 2019-01-09 Tom Tromey <tom@tromey.com>
6838 * symtab.c (search_symbols)
6839 (default_collect_symbol_completion_matches_break_on): Use
6841 * ada-lang.c (ada_lookup_simple_minsym)
6842 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6843 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6844 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6846 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6847 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6848 * objc-lang.c (find_methods): Use objfile_msymbols.
6849 (info_selectors_command, info_classes_command): Likewise.
6850 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6851 * objfiles.h (class objfile_msymbols): New.
6852 (ALL_OBJFILE_MSYMBOLS): Remove.
6853 (ALL_MSYMBOLS): Remove.
6855 2019-01-09 Tom Tromey <tom@tromey.com>
6857 * common/next-iterator.h (next_adapter): Add Iterator template
6859 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6860 (class all_objfiles_safe): New.
6861 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6862 * objfiles.c (put_objfile_before): Update comment.
6863 (add_separate_debug_objfile): Likewise.
6864 (free_all_objfiles): Use all_objfiles_safe.
6865 (objfile_purge_solibs): Likewise.
6867 2019-01-09 Tom Tromey <tom@tromey.com>
6869 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6870 (expand_symtab_containing_pc, lookup_static_symbol)
6871 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6872 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6874 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6875 * breakpoint.c (create_overlay_event_breakpoint)
6876 (create_longjmp_master_breakpoint)
6877 (create_std_terminate_master_breakpoint)
6878 (create_exception_master_breakpoint): Use all_objfiles.
6879 * linux-thread-db.c (try_thread_db_load_from_pdir)
6880 (has_libpthread): Use all_objfiles.
6881 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6882 * linespec.c (iterate_over_all_matching_symtabs)
6883 (search_minsyms_for_name): Use all_objfiles.
6884 * maint.c (maintenance_info_sections): Use all_objfiles.
6885 * main.c (captured_main_1): Use all_objfiles.
6886 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6887 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6888 * guile/scm-pretty-print.c
6889 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6890 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6891 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6892 (maintenance_print_msymbols): Use all_objfiles.
6893 * source.c (select_source_symtab): Use all_objfiles.
6894 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6895 * symfile.c (remove_symbol_file_command)
6896 (expand_symtabs_matching, map_symbol_filenames): Use
6898 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6900 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6901 * objc-lang.c (find_methods): Use all_objfiles.
6902 * objfiles.c (have_partial_symbols, have_full_symbols)
6903 (have_minimal_symbols, qsort_cmp)
6904 (default_iterate_over_objfiles_in_search_order): Use
6906 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6907 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6908 (maintenance_check_psymtabs): Use all_objfiles.
6909 (ALL_PSYMTABS): Remove.
6910 * compile/compile-object-run.c (do_module_cleanup): Use
6912 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6913 * cp-support.c (add_symbol_overload_list_qualified): Use
6915 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6917 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6918 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6920 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6921 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6922 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6924 * solib.c (solib_read_symbols): Use all_objfiles
6926 2019-01-09 Tom Tromey <tom@tromey.com>
6928 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6929 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6931 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6932 * symmisc.c (print_symbol_bcache_statistics)
6933 (print_objfile_statistics, maintenance_print_objfiles)
6934 (maintenance_info_symtabs, maintenance_check_symtabs)
6935 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6937 * source.c (forget_cached_source_info): Use all_objfiles.
6938 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6939 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6940 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6941 * objfiles.c (update_section_map): Use all_objfiles.
6942 (shared_objfile_contains_address_p): Likewise.
6943 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6944 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6946 2019-01-09 Tom Tromey <tom@tromey.com>
6948 * common/next-iterator.h: New file.
6949 * objfiles.h (class all_objfiles): New.
6950 (struct objfile_iterator): New.
6952 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6954 * NEWS: Move the description of the changed "frame", "select-frame",
6955 and "info frame" commands to the Changed commands section.
6957 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6959 * gdbtypes.c (check_stub_method_group): Remove handling of old
6961 * linespec.c (find_methods): Likewise.
6962 * stabsread.c (read_member_functions): Likewise.
6963 * valops.c (search_struct_method): Likewise.
6964 (value_struct_elt_for_reference): Likewise.
6965 * NEWS: Mention this change.
6967 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6969 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6971 * source.c (print_source_lines_base): Update line number check.
6972 (print_source_lines): New function.
6973 (source_lines_range::source_lines_range): New function.
6974 * source.h (class source_lines_range): New class.
6975 (print_source_lines): New declaration.
6977 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6979 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6981 2019-01-08 Tom Tromey <tom@tromey.com>
6982 Simon Marchi <simon.marchi@ericsson.com>
6985 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6986 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6987 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6988 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6989 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6990 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6992 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6994 * source.c (select_source_symtab): Move header comment to
6995 declaration in source.h.
6996 (forget_cached_source_info_for_objfile): Likewise.
6997 (forget_cached_source_info): Likewise.
6998 (identify_source_line): Likewise.
6999 * source.h (identify_source_line): Move declaration from symtab.h
7000 and add comment from source.c
7001 (print_source_lines): Likewise.
7002 (forget_cached_source_info_for_objfile): Likewise.
7003 (forget_cached_source_info): Likewise.
7004 (select_source_symtab): Likewise.
7005 (enum print_source_lines_flag): Move definition from symtab.h.
7006 * symtab.h (identify_source_line): Move declaration to source.h.
7007 (print_source_lines): Likewise.
7008 (forget_cached_source_info_for_objfile): Likewise.
7009 (forget_cached_source_info): Likewise.
7010 (select_source_symtab): Likewise.
7011 (enum print_source_lines_flag): Move definition to source.h.
7012 * tui/tui-hooks.c: Add 'source.h' include.
7014 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7016 * source.c (print_source_lines_base): Handle requests to print
7017 reverse line number sequences, and guard against empty lines
7020 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7022 * source.c (print_source_lines_base): Fix skip of '\r' if next
7025 2019-01-06 Tom Tromey <tom@tromey.com>
7027 * c-exp.y (struct c_parse_state) <macro_original_text,
7028 expansion_obstack>: New member.
7029 (macro_original_text, expansion_obstack): Remove globals.
7030 (scan_macro_expansion, scanning_macro_expansion)
7031 (finished_macro_expansion): Update.
7032 (scan_macro_cleanup): Remove.
7033 (yylex, c_parse): Update.
7035 2019-01-06 Tom Tromey <tom@tromey.com>
7037 * c-exp.y (struct c_parse_state) <strings>: New member.
7038 (operator_stoken): Update.
7040 2019-01-06 Tom Tromey <tom@tromey.com>
7042 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7043 (union type_stack_elt) <typelist_val>: Now a pointer to
7045 (type_stack_cleanup): Don't declare.
7046 (push_typelist): Update.
7047 * parse.c (pop_typelist): Return a std::vector.
7048 (push_typelist): Take a std::vector.
7049 (follow_types): Update. Do not free args.
7050 (type_stack_cleanup): Remove.
7051 * c-exp.y (struct c_parse_state): New.
7052 (cpstate): New global.
7053 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7054 (nonempty_typelist): Update.
7055 (func_mod): Create a new vector.
7056 (c_parse): Create a c_parse_state.
7057 (check_parameter_typelist): Do not delete params.
7058 (function_method): Update. Do not delete type_list.
7060 2019-01-06 Tom Tromey <tom@tromey.com>
7063 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7065 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7066 (print_return_value): Likewise.
7068 2019-01-05 Tom Tromey <tom@tromey.com>
7070 * contrib/cleanup_check.py: Remove.
7071 * contrib/gcc-with-excheck: Remove.
7072 * contrib/exsummary.py: Remove.
7073 * contrib/excheck.py: Remove.
7075 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7077 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7078 NULL. Initialize tpprev to NULL instead of assigning it
7079 to NULL on the next statement.
7080 * windows-nat.c (windows_delete_thread): Remove check for
7081 main_thread_id before printing thread exit notifications.
7082 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7083 Remove thread ID check against main_thread_id.
7084 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7085 windows_delete_thread.
7086 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7088 2019-01-04 Tom Tromey <tom@tromey.com>
7090 * compile/compile.c (_initialize_compile): Use upper case for
7091 metasyntactic variables.
7092 * symmisc.c (_initialize_symmisc): Use upper case for
7093 metasyntactic variables.
7094 * psymtab.c (_initialize_psymtab): Use upper case for
7095 metasyntactic variables.
7096 * demangle.c (demangle_command): Use upper case for metasyntactic
7098 (_initialize_demangler): Likewise.
7099 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7102 2019-01-03 Tom Tromey <tom@tromey.com>
7104 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7106 2019-01-03 Tom Tromey <tom@tromey.com>
7108 * python/py-symtab.c (salpy_str): Update.
7109 (struct salpy_sal_object) <symtab>: Now a PyObject.
7110 (salpy_dealloc): Update.
7111 (del_objfile_sal): Use gdbpy_ref.
7113 2019-01-03 Tom Tromey <tom@tromey.com>
7115 * python/py-type.c (convert_field): Use new_reference. Return
7117 (make_fielditem): Return gdbpy_ref.
7118 (typy_fields): Update.
7119 (typy_getitem): Update.
7120 (field_name): Return gdbpy_ref. Use new_reference.
7121 (typy_iterator_iternext): Update.
7123 2019-01-03 Tom Tromey <tom@tromey.com>
7125 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7127 2019-01-03 Tom Tromey <tom@tromey.com>
7129 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7130 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7131 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7132 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7133 (pspy_set_type_printers): Likewise.
7134 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7135 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7136 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7137 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7138 (objfpy_set_type_printers): Likewise.
7140 2019-01-03 Tom Tromey <tom@tromey.com>
7142 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7143 (gdbpy_print_stack): Use gdbpy_err_fetch.
7144 * python/python-internal.h (class gdbpy_err_fetch): New class.
7145 (class gdbpy_enter) <m_error_type, m_error_value,
7146 m_error_traceback>: Remove.
7147 <m_error>: New member.
7148 (gdbpy_exception_to_string): Don't declare.
7149 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7150 * python/py-value.c (convert_value_from_python): Use
7152 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7153 gdbpy_exception_to_string.
7154 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7155 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7158 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7160 * linux-nat.c (delete_lwp_cleanup): Delete.
7161 (struct lwp_deleter): New struct.
7162 (lwp_info_up): New typedef.
7163 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7166 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7168 * linux-fork.c (class scoped_switch_fork_info): New class.
7169 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7171 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7173 * valops.c (find_overload_match): Remove use of null_cleanup, and
7174 calls to do_cleanups.
7176 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7178 * compile/compile-cplus-types.c
7179 (compile_cplus_instance::decl_name): Handle changes to
7181 * cp-support.c (cp_func_name): Update header comment, update
7183 * cp-support.h (cp_func_name): Update return type in declaration.
7184 * valops.c (find_overload_match): Move temp_func local to top
7185 level of function and change its type. Use temp_func to hold and
7186 delete temporary string obtained from cp_func_name.
7188 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7190 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7191 gdb::char_vector, remove cleanup, and update uses of `msg`.
7193 2019-01-03 Jim Wilson <jimw@sifive.com>
7195 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7197 2019-01-02 Tom Tromey <tom@tromey.com>
7199 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7200 (tdesc_parse_xml): Remove cleanups.
7201 * target-descriptions.h (make_cleanup_free_target_description):
7203 (target_desc_deleter): New struct.
7204 (target_desc_up): New typedef.
7205 * target-descriptions.c (target_desc_deleter::operator()): Rename
7206 from free_target_description.
7207 (make_cleanup_free_target_description): Remove.
7209 2019-01-02 Tom Tromey <tom@tromey.com>
7211 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7212 constructor, destructor.
7213 (linespec_parser): Remove typedef.
7214 (~linespec_parser): Rename from linespec_parser_delete.
7215 (linespec_lex_to_end, linespec_complete_label)
7216 (linespec_complete): Update.
7217 (decode_line_full): Remove cleanups.
7218 (decode_line_1): Update.
7220 2019-01-02 Tom Tromey <tom@tromey.com>
7222 * python/python-internal.h (inferior_to_inferior_object): Change
7224 * python/py-exitedevent.c (create_exited_event_object): Update.
7225 * python/py-inferior.c (inferior_to_inferior_object): Return
7227 (python_new_inferior, python_inferior_deleted)
7228 (thread_to_thread_object, delete_thread_object)
7229 (build_inferior_list, gdbpy_selected_inferior): Update.
7230 * python/py-infthread.c (create_thread_object): Update. Also fail
7231 if inferior_to_inferior_object fails.
7233 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7235 * inferior.h (class inferior) <displaced_step_state>: New field.
7236 * infrun.h (struct displaced_step_state): Move here from
7237 infrun.c. Initialize fields, add constructor.
7238 <inf>: Remove field.
7239 <reset>: New method.
7240 * infrun.c (struct displaced_step_inferior_state): Move to
7242 (displaced_step_inferior_states): Remove.
7243 (get_displaced_stepping_state): Adust.
7244 (displaced_step_in_progress_any_inferior): Adjust.
7245 (displaced_step_in_progress_thread): Adjust.
7246 (displaced_step_in_progress): Adjust.
7247 (add_displaced_stepping_state): Remove.
7248 (get_displaced_step_closure_by_addr): Adjust.
7249 (remove_displaced_stepping_state): Remove.
7250 (infrun_inferior_exit): Call displaced_step_state.reset.
7251 (use_displaced_stepping): Don't check for NULL.
7252 (displaced_step_prepare_throw): Call
7253 get_displaced_stepping_state.
7254 (displaced_step_fixup): Don't check for NULL.
7255 (prepare_for_detach): Don't check for NULL.
7257 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7259 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7260 in case of call that did not complete.
7262 2019-01-02 Andrey Utkin <autkin@undo.io>
7264 * symfile.c (find_separate_debug_file): Fix search of debug files for
7267 2019-01-02 Tom Tromey <tom@tromey.com>
7269 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7271 * python/py-frame.c (frapy_older): Remove cast.
7272 (frapy_newer): Likewise.
7273 * python/py-breakpoint.c (local_setattro): Remove cast.
7274 * python/py-arch.c (archpy_name): Remove local variable.
7275 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7277 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7279 * unittests/basic_string_view/element_access/char/empty.cc:
7280 Fix year range in copyright header.
7282 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7284 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7286 <operator==>: Update with for removed field.
7288 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7289 <isa_features>: ...this.
7290 <abi_features>: New field.
7291 (riscv_isa_flen): Update comment.
7292 (riscv_abi_xlen): New declaration.
7293 (riscv_abi_flen): New declaration.
7294 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7296 (riscv_abi_xlen): New function.
7297 (riscv_isa_flen): Update to get answer from isa_features.
7298 (riscv_abi_flen): New function.
7299 (riscv_has_fp_abi): Update to get answer from abi_features.
7300 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7302 (riscv_call_info) <xlen, flen>: Update comment.
7303 (riscv_call_arg_struct): Remove invalid assertions
7304 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7306 (riscv_gdbarch_init): Gather isa features and abi features
7307 separately, ensure both match on the gdbarch when reusing an old
7308 gdbarch. Relax an error check to allow 32-bit abi float to run on
7309 a target with 64-bit float hardware.
7311 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7313 * source.c (search_command_helper): Stop reverse search
7314 when line 1 has been searched.
7316 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7318 * record-full.c (record_full_base_target::close): Rewrite
7319 record_full_core_buf_list free logic.
7321 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7323 * break-catch-syscall.c (print_one_catch_syscall): xfree
7326 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7328 * top.c (print_gdb_version): Update Copyright year in version
7331 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7333 Update copyright year range in all GDB files.
7335 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7337 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7339 For older changes see ChangeLog-2018.
7345 version-control: never