1 2019-06-11 Tom Tromey <tom@tromey.com>
3 * nat/linux-waitpid.c: Don't include server.h.
7 2019-06-11 Tom Tromey <tromey@adacore.com>
9 * infcall.c (_initialize_infcall): Remove trailing newline from
11 * user-regs.c (_initialize_user_regs): Remove trailing newline
13 * typeprint.c (_initialize_typeprint): Remove trailing newline
15 * reverse.c (_initialize_reverse): Remove trailing newlines from
17 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
19 * language.c (add_set_language_command): Remove trailing newline
21 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
23 * disasm.c (_initialize_disasm): Remove trailing newline from
25 * top.c (init_main): Remove trailing newline from help.
26 * interps.c (_initialize_interpreter): Remove trailing newline
28 * btrace.c (_initialize_btrace): Remove trailing newlines from
30 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
32 * python/python.c (_initialize_python): Remove trailing newline
34 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
36 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
37 from help. Reformat some text.
38 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
40 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
43 2019-06-11 Tom Tromey <tromey@adacore.com>
45 * darwin-nat.c (darwin_decode_exception_message)
46 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
48 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
50 * valops.c (value_slice): Check for not allocated or not
53 2019-06-10 Tom de Vries <tdevries@suse.de>
56 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
57 sure an empty slot (defined by a 32-bit zero pair) is recognized as
60 2019-06-10 Tom de Vries <tdevries@suse.de>
63 * linespec.c (linespec_lexer_lex_string): Remove incorrect
64 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
66 2019-06-10 Tom de Vries <tdevries@suse.de>
69 * symtab.c (struct demangled_name_entry): Add language field.
70 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
71 static minimal symbol". Set and use language field.
73 2019-06-10 Tom Tromey <tromey@adacore.com>
75 * ada-lang.c (_initialize_ada_language): Update help text.
77 2019-06-10 Tom Tromey <tromey@adacore.com>
79 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
81 * guile/guile.c (handle_boot_error): Don't end warning with a
83 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
84 warning with a newline.
85 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
87 (s12z_frame_cache): Likewise.
88 * dwarf-index-cache.c (index_cache::store): Don't end warning with
90 * solib-svr4.c (disable_probes_interface): Don't end warning with
92 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
94 * python/python.c (do_finish_initialization): Don't end warning
97 2019-06-10 Tom Tromey <tom@tromey.com>
99 * python/py-breakpoint.c (gdbpy_breakpoint_created)
100 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
103 2019-06-10 Tom Tromey <tromey@adacore.com>
105 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
107 (elf_new_init): Don't call stabsread_new_init.
108 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
109 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
110 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
112 2019-06-10 Tom de Vries <tdevries@suse.de>
116 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
118 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
120 * source.c (find_and_open_source): Also rewrite relative file
123 2019-04-26 Amos Bird <amosbird@gmail.com>
125 * annotate.c (annotate_thread_exited): Add "thread-exited"
128 2019-06-06 Tom Tromey <tromey@adacore.com>
130 * maint.h (class scoped_command_stats): Use
131 DISABLE_COPY_AND_ASSIGN.
132 <print_time>: New method.
133 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
135 (scoped_command_stats::print_time): New method.
137 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
139 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
140 instructions of lengths 6 or 8 bytes.
142 2019-06-04 Pedro Alves <palves@redhat.com>
144 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
146 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
147 * breakpoint.c (condition_completer): Likewise.
148 * cli/cli-dump.c (scan_expression): Likewise.
149 * common/filestuff.c (mkdir_recursive): Likewise.
150 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
151 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
152 (gdb_abspath): Likewise.
153 * compile/compile-cplus-types.c
154 (compile_cplus_instance::decl_name): Likewise.
155 * completer.c (complete_explicit_location):
156 (signal_completer, reg_or_group_completer_1): Likewise.
157 * cp-support.c (cp_remove_params_if_any): Likewise.
158 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
159 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
160 * infcmd.c (strip_bg_char): Likewise.
161 * linespec.c (copy_token_string): Likewise.
162 * mi/mi-main.c (output_cores): Likewise.
163 * psymtab.c (psymtab_search_name):
164 * symfile.c (test_set_ext_lang_command): Likewise.
165 * target.c (target_fileio_read_stralloc): Likewise.
166 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
167 * value.c (complete_internalvar): Likewise.
169 2019-06-04 Christian Biesinger <cbiesinger@google.com>
171 Add objfile property to gdb.Type.
172 * NEWS: Mention Python API addition.
173 * python/py-type.c (typy_get_objfile): New method.
175 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
177 * NEWS: Mention the new set|show style [title|highlight].
178 Mention changes to "show style", "help" and "apropos".
180 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
182 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
183 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
184 instead of print_help_for_command.
185 (print_doc_of_command): New function.
186 (help_list): Add 'apropos -v word' suggestion.
187 (print_help_for_command): Style the command name using title style.
188 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
189 (_initialize_cli_cmds): Describe -v in apropos_command help.
191 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
193 * cli/cli-style.h (cli_style_option): Add name in constructor,
194 add m_name class member, add constructor with intensity,
195 add name class function.
196 (cli_style_option::add_setshow_commands): Remove name argument.
197 (highlight_style, title_style): New styles.
198 * cli/cli-style.c (do_show): New function that shows a style
199 characteristic styling the style name with itself.
200 (set_style_name): New function.
201 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
202 Update all callers according to the changes in cli/cli-style.h.
203 * utils.h (fputs_highlighted): New function.
204 * utils.c (fputs_highlighted): Likewise.
206 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
208 * NEWS: Mention new pipe command and new convenience variables.
210 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
212 * cli/cli-cmds.c (pipe_command): New function.
213 (_initialize_cli_cmds): Call add_com for pipe_command.
214 Define | as an alias for pipe.
215 (exit_status_set_internal_vars): New function.
216 (shell_escape): Call exit_status_set_internal_vars.
217 cli/cli-decode.c (find_command_name_length): Recognize | as
218 a single character command.
220 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
222 * gdbcmd.h (execute_command_to_ui_file): New declaration.
223 top.c (execute_command_to_ui_file): New function, mostly a copy
224 of execute_command_to_string.
225 (execute_command_to_string): Implement by calling
226 execute_command_to_ui_file.
228 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
230 * top.h (saved_command_line): Remove declaration.
231 * top.c (previous_saved_command_line, previous_repeat_arguments):
233 (saved_command_line): Make static, define together with other
235 (dont_repeat): Clear repeat_arguments.
236 (repeat_previous, get_saved_command_line, save_command_line):
238 (gdb_init): Initialize saved_command_line
239 and previous_saved_command_line.
240 * main.c (captured_main_1): Remove saved_command_line initialization.
241 * event-top.c (handle_line_of_input): Update to use
242 the new 'repeat' related functions instead of direct access to
244 * command.h (repeat_previous, get_saved_command_line,
245 save_command_line): New declarations.
246 (dont_repeat): Add comment.
248 2019-05-30 Tom Tromey <tromey@adacore.com>
250 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
252 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
254 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
257 * completer.c (complete): Initialize variable word.
259 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
261 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
262 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
263 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
264 'body' is NULL to the outter 'if', protecting the '!is_define'
267 2019-05-29 Tom Tromey <tromey@adacore.com>
269 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
270 (dwarf_unknown): New function.
271 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
272 (dwarf_type_encoding_name): Use dwarf_unknown.
274 2019-05-29 Tom Tromey <tromey@adacore.com>
277 * cp-valprint.c (cp_print_value_fields): Call
278 cp_print_static_field inside "try".
280 2019-05-29 Tom Tromey <tromey@adacore.com>
282 * inflow.c (struct terminal_info): Add default operator=.
283 * configure: Rebuild.
284 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
285 -Wdeprecated-copy-dtor, -Wredundant-move.
287 2019-05-29 Tom Tromey <tromey@adacore.com>
290 * infcmd.c (print_return_value_1): Handle finish_print
292 (show_print_finish): New function.
293 (_initialize_infcmd): Add "set/show print finish" commands.
294 * valprint.c (user_print_options): Initialize new member.
295 * valprint.h (struct value_print_options) <finish_print>: New
298 2019-05-28 Tom Tromey <tromey@adacore.com>
300 * ada-lang.c (ada_remove_Xbn_suffix)
301 (find_old_style_renaming_symbol)
302 (parse_old_style_renaming): Remove.
303 (ada_find_renaming_symbol): Don't call
304 find_old_style_renaming_symbol.
305 (ada_is_renaming_symbol): Rename from
306 ada_find_renaming_symbol. Remove "block" parameter. Return
308 (ada_read_var_value): Update and simplify.
309 * ada-exp.y (write_var_or_type): Remove old code.
311 2019-05-28 Alan Hayward <alan.hayward@arm.com>
313 * event-top.c: Remove include comment.
314 * inflow.c (class scoped_ignore_sigttou): Move from here...
315 * inflow.h (class scoped_ignore_sigttou): ...to here.
316 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
317 * top.c: Remove include comment.
319 2019-05-27 Tom Tromey <tom@tromey.com>
323 2019-05-22 Tom Tromey <tromey@adacore.com>
325 * target.c (target_follow_exec): Constify parameter.
326 * target-delegates.c: Rebuild.
327 * remote.c (remote_target::follow_exec): Constify parameter.
328 * infrun.c (follow_exec): Constify parameter.
329 * target.h (struct target_ops) <follow_exec>: Constify parameter.
330 (target_follow_exec): Likewise.
332 2019-05-22 Alan Hayward <alan.hayward@arm.com>
334 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
335 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
337 2019-05-22 Alan Hayward <alan.hayward@arm.com>
339 * NEWS: Add debugredirect and testsuite sections.
341 2019-05-22 Simon Cook <simon.cook@embecosm.com>
343 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
344 target descriptions using exclusively floating point register name
347 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
350 * f-lang.c (build_fortran_types): Handle the case where
351 gdbarch_floatformat_for_type returns a nullptr.
353 2019-05-21 Tom de Vries <tdevries@suse.de>
356 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
358 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
361 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
363 * i386-tdep.c (i386_floatformat_for_type): Use
364 floatformats_ia64_quad for the 16-byte floating point component
365 within a fortran 32-byte complex number.
367 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
369 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
370 delete default constructor.
371 (find_partial_die): Update to return const struct.
372 (partial_die_parent_scope): Move variable declaration into scope
373 of its use and change its type to auto.
374 (guess_partial_die_structure_name): Likewise.
375 (partial_die_info::fixup): Likewise.
377 2019-05-17 Tom Tromey <tromey@adacore.com>
379 * source.c (find_and_open_source): Remove cast.
381 2019-05-17 Tom Tromey <tromey@adacore.com>
383 * annotate.c (annotate_source): Make "filename" const.
384 * annotate.h (annotate_source): Use const.
386 2019-05-17 Alan Hayward <alan.hayward@arm.com>
388 * disasm.c (set_disassembler_options): Send errors to stderr.
390 2019-05-17 Alan Hayward <alan.hayward@arm.com>
392 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
393 (cli_interp_base::set_logging): Check debug_redirect.
394 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
395 * cli/cli-logging.c (debug_redirect): Add static variable.
396 (pop_output_files): Add default param.
397 (handle_redirections): Print debug setting.
398 (show_logging_command): Likewise.
399 (_initialize_cli_logging): Add debugredirect command.
400 * interps.c (current_interp_set_logging): Add debug_redirect
402 * interps.h (set_logging): Add debug_redirect parameter.
403 (current_interp_set_logging): Likewise.
404 * mi/mi-common.h: Likewise.
405 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
407 2019-05-17 Alan Hayward <alan.hayward@arm.com>
408 Tom Tromey <tromey@adacore.com>
410 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
412 * cli/cli-interp.h (make_logging_output): Remove declaration.
413 * cli/cli-logging.c (make_logging_output): Remove function.
414 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
416 * ui-file.c (tee_file::tee_file): Remove bools.
417 (tee_file::~tee_file): Remove deletes.
418 * ui-file.h (tee_file): Remove bools.
420 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
422 * mi/mi-cmds.h (mi_cmd_complete): New function.
423 * mi/mi-main.c (mi_cmd_complete): Likewise.
424 * mi/mi-cmds.c: Define new MI command -complete.
425 * NEWS: Mention new -complete command.
427 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
429 * completer.h (complete): New function.
430 * completer.c (complete): Likewise.
431 * cli/cli-cmds.c: (complete_command): Update to use new complete()
432 function defined in completer.h.
434 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
436 * MAINTAINERS (Write After Approval): Add myself.
438 2019-05-17 Tom de Vries <tdevries@suse.de>
441 * dwarf2read.c (struct cu_partial_die_info): New struct.
442 (find_partial_die): Return cu_partial_die_info.
443 (partial_die_parent_scope, guess_partial_die_structure_name)
444 (partial_die_info::fixup): Handle new return type of find_partial_die.
446 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
448 * stap-probe.c (stap_parse_register_operand): Make "regname" an
449 "std::string", simplifying the algorithm.
451 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
453 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
454 (stap_static_probe_ops::get_probes): Likewise.
456 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
458 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
460 (stap_parse_single_operand): Join checks for
461 "gdbarch_stap_parse_special_token_p" and
462 "gdbarch_stap_parse_special_token" in the same "if" statement.
463 Invert check when verifying for operation on register
466 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
468 * stap-probe.c (stap_get_opcode): Update comment.
469 (stap_get_expected_argument_type): Likewise.
470 (handle_stap_probe): Likewise.
472 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
474 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
475 return type to 'bool'. Adjust comment. Use 'bool' when
477 (i386_stap_parse_special_token_three_arg_disp): Likewise.
478 * stap-probe.c (stap_parse_argument_1): Likewise.
479 (stap_is_operator): Likewise.
480 (stap_is_generic_prefix): Likewise.
481 (stap_is_register_prefix): Likewise.
482 (stap_is_register_indirection_prefix): Likewise.
483 (stap_is_integer_prefix): Likewise.
484 (stap_generic_check_suffix): Likewise.
485 (stap_check_integer_suffix): Likewise.
486 (stap_check_register_suffix): Likewise.
487 (stap_check_register_indirection_suffix): Likewise.
488 (stap_parse_register_operand): Likewise.
489 (stap_parse_single_operand): Likewise.
490 (stap_parse_argument_1): Likewise.
491 (stap_probe::get_argument_count): Likewise.
492 (stap_is_operator): Likewise.
494 2019-05-16 Tom Tromey <tromey@adacore.com>
496 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
499 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
501 * linux-thread-db.c (try_thread_db_load_1): Change return type
503 (try_thread_db_load): Likewise.
504 (try_thread_db_load_from_pdir_1): Likewise.
505 (try_thread_db_load_from_pdir): Likewise.
506 (try_thread_db_load_from_sdir): Likewise.
507 (try_thread_db_load_from_dir): Likewise.
508 (thread_db_load_search): Likewise.
509 (has_libpthread): Likewise.
510 (thread_db_load): Likewise.
512 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
514 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
515 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
516 NULL, and complain/return if that's the case.
518 2019-05-15 John Darrington <john@darrington.wattle.id.au>
520 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
521 (advance, posn, abstract_read_memory): New functions.
522 [struct mem_read_abstraction]: New struct.
523 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
525 2019-05-14 Tom Tromey <tromey@adacore.com>
527 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
528 value is not lval_memory.
530 2019-05-14 Tom Tromey <tromey@adacore.com>
532 * solib.c (info_sharedlibrary_command): Style the file name.
534 2019-05-14 Alan Hayward <alan.hayward@arm.com>
536 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
537 (aarch64_vnv_type): Likewise.
538 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
539 * common/tdesc.c: Likewise.
540 * common/tdesc.h (enum tdesc_type_kind): Likewise.
541 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
542 * features/aarch64-fpu.xml: Add ieee half view.
543 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
544 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
545 * gdbtypes.h (struct builtin_type): Likewise.
546 (struct objfile_type): Likewise.
548 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
550 * language.c (language_sniff_from_mangled_name): Fix "langauge"
552 * location.h (string_to_event_location): Likewise.
554 2019-05-11 Joel Brobecker <brobecker@adacore.com>
558 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
560 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
561 New variable declaration.
562 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
564 (print_one_breakpoint): Use ui_out::test_flags and new global
565 variable to compute use_fixed_output.
566 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
568 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
569 (mi_multi_location_breakpoint_output_fixed): Remove.
570 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
572 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
573 fix_multi_location_breakpoint_output flag if version >= 3.
574 * ui-out.h (enum ui_out_flag)
575 <fix_multi_location_breakpoint_output>: New enumerator.
577 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
579 * contrib/cc-with-tweaks.sh: Validate dwz's work.
581 2019-05-10 Tom Tromey <tromey@adacore.com>
583 * ada-lang.c (catch_ada_completer): New function.
584 (_initialize_ada_language): Use it.
586 2019-05-10 Tom Tromey <tromey@adacore.com>
588 * thread.c (print_thread_info): Make "requested_threads" const.
589 * gdbthread.h (print_thread_info): Make "requested_threads"
591 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
592 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
594 2019-05-08 Tom Tromey <tom@tromey.com>
596 * gdbtypes.c (objfile_type_data): Change type.
597 (objfile_type, _initialize_gdbtypes): Update.
599 2019-05-08 Tom Tromey <tom@tromey.com>
601 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
602 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
603 (_initialize_dwarf2_frame): Update.
605 2019-05-08 Tom Tromey <tom@tromey.com>
607 * objc-lang.c (objc_objfile_data): Change type.
608 (find_methods): Update.
609 (_initialize_objc_lang): Remove.
611 2019-05-08 Tom Tromey <tom@tromey.com>
613 * stabsread.c (rs6000_builtin_type_data): Change type.
614 (rs6000_builtin_type, _initialize_stabsread): Update.
616 2019-05-08 Tom Tromey <tom@tromey.com>
618 * mips-tdep.c (mips_pdr_data): Remove.
619 (_initialize_mips_tdep): Update.
621 2019-05-08 Tom Tromey <tom@tromey.com>
623 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
624 (hppa_init_objfile_priv_data, read_unwind_info)
625 (find_unwind_entry, _initialize_hppa_tdep): Update.
627 2019-05-08 Tom Tromey <tom@tromey.com>
629 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
630 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
632 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
634 2019-05-08 Tom Tromey <tom@tromey.com>
636 * mdebugread.c (basic_type_data): Change type.
637 (basic_type, _initialize_mdebugread): Update.
639 2019-05-08 Tom Tromey <tom@tromey.com>
641 * common/gdb_unique_ptr.h (struct noop_deleter): New.
643 2019-05-08 Tom Tromey <tom@tromey.com>
645 * nto-tdep.c (nto_inferior_data_reg): Change type.
646 (nto_inferior_data): Update.
647 (nto_inferior_data_cleanup, nto_new_inferior_data)
648 (_initialize_nto_tdep): Remove.
649 * nto-tdep.h (struct nto_inferior_data): Add initializers.
651 2019-05-08 Tom Tromey <tom@tromey.com>
653 * ada-lang.c (struct ada_inferior_data): Add initializers.
654 (ada_inferior_data): Change type.
655 (ada_inferior_data_cleanup): Remove.
656 (get_ada_inferior_data, ada_inferior_exit)
657 (struct ada_pspace_data): Add initializers, destructor.
658 (ada_pspace_data_handle): Change type.
659 (get_ada_pspace_data): Update.
660 (ada_pspace_data_cleanup): Remove.
662 2019-05-08 Tom Tromey <tom@tromey.com>
664 * coffread.c (struct coff_symfile_info): Add initializers.
665 (coff_objfile_data_key): Move lower. Change type.
666 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
668 (coff_free_info): Remove.
670 2019-05-08 Tom Tromey <tom@tromey.com>
672 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
673 (fbsd_pspace_data_handle): Move lower. Change type.
674 (get_fbsd_pspace_data): Update.
675 (fbsd_pspace_data_cleanup): Remove.
676 (_initialize_fbsd_tdep): Update.
678 2019-05-08 Tom Tromey <tom@tromey.com>
680 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
681 (get_ada_tasks_pspace_data): Update.
682 (ada_tasks_pspace_data_cleanup): Remove.
683 (_initialize_tasks): Update.
684 (ada_tasks_inferior_data_handle): Change type.
685 (get_ada_tasks_inferior_data): Update.
686 (ada_tasks_inferior_data_cleanup): Remove.
687 (struct ada_tasks_pspace_data): Add initializers.
689 2019-05-08 Tom Tromey <tom@tromey.com>
691 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
692 * symfile-debug.c (debug_sym_get_probes): Change type.
693 * stap-probe.c (handle_stap_probe):
694 (stap_static_probe_ops::get_probes): Change type.
695 * probe.h (class static_probe_ops) <get_probes>: Change type.
696 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
697 (parse_probes_in_pspace): Update.
698 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
700 (any_static_probe_ops::get_probes): Change type.
701 * elfread.c (elfread_data): New typedef.
702 (probe_key): Change type.
703 (elf_get_probes): Likewise. Update.
704 (probe_key_free): Remove.
705 (_initialize_elfread): Update.
706 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
708 (dtrace_process_dof_probe, dtrace_process_dof)
709 (dtrace_static_probe_ops::get_probe): Change type.
711 2019-05-08 Tom Tromey <tom@tromey.com>
713 * xcoffread.c (struct xcoff_symfile_info): Rename from
714 coff_symfile_info. Add initializers.
715 (xcoff_objfile_data_key): Move lower. Change type.
716 (XCOFF_DATA): Rewrite.
717 (xcoff_free_info): Remove.
718 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
719 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
720 (xcoff_initial_scan): Update.
722 2019-05-08 Tom Tromey <tom@tromey.com>
724 * solib-svr4.c (struct svr4_info): Add initializers and
726 <probes_table>: Now an htab_up.
727 (solib_svr4_pspace_data): Change type.
728 (free_probes_table): Simplify.
729 (~svr4_info): Rename from svr4_pspace_data_cleanup.
730 (get_svr4_info, probes_table_htab_remove_objfile_probes)
731 (probes_table_remove_objfile_probes, register_solib_event_probe)
732 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
733 (_initialize_svr4_solib): Update.
735 2019-05-08 Tom Tromey <tom@tromey.com>
737 * remote.c (remote_pspace_data): Change type.
738 (remote_pspace_data_cleanup): Remove.
739 (get_remote_exec_file, set_pspace_remote_exec_file)
740 (_initialize_remote): Update.
742 2019-05-08 Tom Tromey <tom@tromey.com>
744 * breakpoint.c (breakpoint_objfile_key): Change type.
745 (get_breakpoint_objfile_data): Update.
746 (free_breakpoint_objfile_data): Remove.
747 (_initialize_breakpoint): Update.
749 2019-05-08 Tom Tromey <tom@tromey.com>
751 * linux-tdep.c (struct linux_info): Add initializers.
752 (linux_inferior_data): Move. Change type.
753 (invalidate_linux_cache_inf): Update.
754 (linux_inferior_data_cleanup): Remove.
755 (get_linux_inferior_data, _initialize_linux_tdep): Update.
757 2019-05-08 Tom Tromey <tom@tromey.com>
759 * auxv.c (auxv_inferior_data): Move. Change type.
760 (auxv_inferior_data_cleanup): Remove.
761 (invalidate_auxv_cache_inf): Rewrite.
762 (get_auxv_inferior_data, _initialize_auxv): Update.
764 2019-05-08 Tom Tromey <tom@tromey.com>
766 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
767 (symfile_debug_objfile_data_key): Change type.
768 (symfile_debug_installed, debug_qf_has_symbols)
769 (debug_qf_find_last_source_symtab)
770 (debug_qf_forget_cached_source_info)
771 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
772 (debug_qf_print_stats, debug_qf_dump)
773 (debug_qf_expand_symtabs_for_function)
774 (debug_qf_expand_all_symtabs)
775 (debug_qf_expand_symtabs_with_fullname)
776 (debug_qf_map_matching_symbols)
777 (debug_qf_expand_symtabs_matching)
778 (debug_qf_find_pc_sect_compunit_symtab)
779 (debug_qf_map_symbol_filenames)
780 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
781 (debug_sym_new_init, debug_sym_init, debug_sym_read)
782 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
783 (debug_sym_read_linetable, debug_sym_relocate): Update.
784 (symfile_debug_free_objfile): Remove.
785 (install_symfile_debug_logging, _initialize_symfile_debug):
788 2019-05-08 Tom Tromey <tom@tromey.com>
790 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
792 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
793 (get_dwarf2_per_objfile): Update.
794 (set_dwarf2_per_objfile): Remove.
795 (dwarf2_has_info, dwarf2_get_section_info): Update.
796 (dwarf2_free_objfile): Remove.
797 (_initialize_dwarf2_read): Update.
799 2019-05-08 Tom Tromey <tom@tromey.com>
801 * auto-load.c (struct auto_load_pspace_info): Add destructor and
803 <unsupported_script_warning_printed,
804 script_not_found_warning_printed>: Now bool.
805 (auto_load_pspace_data): Change type.
806 (~auto_load_pspace_info): Rename from
807 auto_load_pspace_data_cleanup.
808 (get_auto_load_pspace_data, init_loaded_scripts_info)
809 (clear_section_scripts, maybe_print_unsupported_script_warning)
810 (maybe_print_script_not_found_warning, _initialize_auto_load):
813 2019-05-08 Tom Tromey <tom@tromey.com>
815 * objfiles.c (objfile_pspace_info): Add destructor and
817 (objfiles_pspace_data): Change type.
818 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
819 (get_objfile_pspace_data): Update.
820 (objfiles_bfd_data): Change type.
821 (get_objfile_bfd_data): Update.
822 (objfile_bfd_data_free, _initialize_objfiles): Remove.
824 2019-05-08 Tom Tromey <tom@tromey.com>
826 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
828 (get_catch_syscall_inferior_data): Update.
829 (catch_syscall_inferior_data_cleanup): Remove.
830 (_initialize_break_catch_syscall): Update.
832 2019-05-08 Tom Tromey <tom@tromey.com>
834 * inflow.c (struct terminal_info): Add destructor and
836 (inflow_inferior_data): Change type.
837 (~terminal_info): Rename from inflow_inferior_data_cleanup.
838 (get_inflow_inferior_data, inflow_inferior_exit)
839 (swap_terminal_info, _initialize_inflow): Update.
841 2019-05-08 Tom Tromey <tom@tromey.com>
843 * target-dcache.c (target_dcache_cleanup): Remove.
844 (target_dcache_aspace_key): Change type.
845 (target_dcache_init_p, target_dcache_invalidate)
846 (target_dcache_get, target_dcache_get_or_init)
847 (_initialize_target_dcache): Update.
848 * dcache.h (struct dcache_deleter): New.
850 2019-05-08 Tom Tromey <tom@tromey.com>
852 * symtab.c (struct symbol_cache): Add destructor and
854 (symbol_cache_key): Move. Change type.
855 (make_symbol_cache, free_symbol_cache): Remove.
856 (get_symbol_cache): Update.
857 (symbol_cache_cleanup): Remove.
858 (ALL_PSPACES, symbol_cache_flush)
859 (maintenance_print_symbol_cache)
860 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
863 2019-05-08 Tom Tromey <tom@tromey.com>
865 * symtab.c (struct main_info): Add destructor and initializers.
866 (main_progspace_key): Move. Change type.
867 (get_main_info): Update.
868 (main_info_cleanup): Remove.
869 (_initialize_symtab): Update.
871 2019-05-08 Tom Tromey <tom@tromey.com>
873 * registry.h (DECLARE_REGISTRY): Define the _key class.
875 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
877 * NEWS: Merge two 'New commands' sections.
879 2019-05-08 Joel Brobecker <brobecker@adacore.com>
881 * ada-valprint.c (ada_val_print_gnat_array): Remove language
882 parameter and use Ada language definition instead.
883 (ada_val_print_ptr): Remove unused language parameter.
884 (ada_val_print_num): Remove language parameter and use Ada language
886 (ada_val_print_enum, ada_val_print_flt): Remove unused language
888 (ada_val_print_struct_union, ada_val_print_ref): Remove language
889 parameter and use Ada language definition instead.
890 (ada_val_print_1): Update all ada_val_print_xxx calls.
891 Remove language parameter.
892 (ada_val_print): Update ada_val_print_1 call.
894 2019-05-08 Tom Tromey <tromey@adacore.com>
896 * remote.c (remote_hw_watchpoint_limit)
897 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
900 2019-05-08 Tom Tromey <tromey@adacore.com>
902 * maint.c (_initialize_maint_cmds): Move initialization code to
904 (watchdog, show_watchdog): Move to remote.c.
905 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
907 (_initialize_remote): Move initialization code from maint.c.
908 * defs.h (watchdog): Don't declare.
910 2019-05-08 Tom Tromey <tromey@adacore.com>
912 * tui/tui-interp.c: Include main.h.
913 * interps.c: Include main.h.
914 * main.h (interpreter_p): Declare.
915 * defs.h (interpreter_p): Don't declare.
917 2019-05-08 Tom Tromey <tromey@adacore.com>
919 * dwarf2loc.c: Include dwarf2read.h.
920 * defs.h (read_unsigned_leb128): Don't declare.
921 * dwarf2read.h (read_unsigned_leb128): Declare.
923 2019-05-08 Tom Tromey <tromey@adacore.com>
925 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
928 2019-05-08 Tom Tromey <tromey@adacore.com>
930 * utils.c (fputs_maybe_filtered): Reset style after paging, even
931 when no wrap column is set.
933 2019-05-08 Tom Tromey <tromey@adacore.com>
935 * c-lang.c (c_get_string): Handle non-C-style arrays.
937 2019-05-08 Tom Tromey <tromey@adacore.com>
939 * typeprint.c (print_offset_data::update): Print the bit offset,
940 not the number of bits remaining.
942 2019-05-08 Tom Tromey <tromey@adacore.com>
944 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
945 padding at end of comment.
947 2019-05-08 Tom Tromey <tromey@adacore.com>
949 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
952 2019-05-06 Tom Tromey <tom@tromey.com>
954 * common/scoped_mmap.c: Include common-defs.h.
955 * common/scoped_mmap.h: Don't include config.h.
957 2019-05-04 Tom Tromey <tom@tromey.com>
959 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
960 (struct aarch64_call_info): Add initializers.
961 <si>: Now a std::vector.
962 (pass_on_stack, aarch64_push_dummy_call): Update.
964 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
965 Tom Tromey <tom@tromey.com>
967 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
968 (ppc_threads): Now a std::vector. Now static.
969 (hwdebug_find_thread_points_by_tid)
970 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
973 2019-05-04 Tom Tromey <tom@tromey.com>
975 * arc-tdep.c (arc_tdesc_init): Return bool.
977 2019-05-04 Tom Tromey <tom@tromey.com>
979 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
980 Use gdb_assert_not_reached.
982 2019-05-04 Tom Tromey <tom@tromey.com>
984 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
987 2019-05-04 Tom Tromey <tom@tromey.com>
989 * arc-tdep.c (arc_tdesc_init): Use bool.
991 2019-05-04 Tom Tromey <tom@tromey.com>
993 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
995 2019-05-04 Tom Tromey <tom@tromey.com>
997 * cli/cli-cmds.c (valid_command_p): Return bool.
999 2019-05-04 Tom Tromey <tom@tromey.com>
1001 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1002 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1004 2019-05-04 Raul Tambre <raul@tambre.ee>
1006 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1007 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1008 operator for comparison.
1010 2019-05-04 Tom Tromey <tom@tromey.com>
1012 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1013 (lookup_partial_symbol, print_partial_symbols)
1014 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1015 (psymbol_compare): Update.
1016 (add_psymbol_to_bcache): Clear the entire psymbol.
1017 (maintenance_check_psymtabs): Update.
1018 * psympriv.h (struct partial_symbol): Don't derive from
1019 general_symbol_info.
1020 <obj_section, unrelocated_address, address,
1021 set_unrelocated_address>: Update.
1022 <ginfo>: New member.
1023 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1024 (debug_names::write_psymbols): Update.
1026 2019-05-04 Tom de Vries <tdevries@suse.de>
1028 * contrib/cc-with-tweaks.sh: Support -n arg.
1030 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1032 * corelow.c (core_target::detach): Ensure frame cache and
1033 register caches are cleared.
1034 inferior.c (exit_inferior_1): Likewise.
1036 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1037 Tom Tromey <tom@tromey.com>
1039 * dictionary.c (collate_pending_symbols_by_language): Remove
1040 "struct" from foreach.
1041 * symtab.c (lookup_global_symbol_from_objfile)
1042 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1044 * ser-tcp.c (net_open): Remove "struct" from foreach.
1045 * objfiles.c (objfile_relocate, objfile_rebase)
1046 (objfile_has_symbols): Remove "struct" from foreach.
1047 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1049 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1051 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1052 "struct" from foreach.
1053 * ada-lang.c (create_excep_cond_exprs)
1054 (ada_exception_catchpoint_cond_string): Remove "struct" from
1057 2019-05-03 Tom Tromey <tromey@adacore.com>
1059 * ada-exp.y (convert_char_literal): Check suffix of each
1062 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1065 * ada-exp.y (yywrap): Don't define.
1066 * ada-lex.l (%option): Add noyywrap
1069 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1071 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1072 _WIN32_WINNT to the XP level, unless already defined to a higher
1075 * unittests/parse-connection-spec-selftests.c:
1077 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1080 * symfile.c (find_separate_debug_file): Remove colon from the
1081 drive spec of DOS/Windows file names of the target, so that the
1082 file name produced from DEBUGDIR and the target's directory will
1083 be valid on DOS/Windows systems.
1085 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1087 * rust-lang.c (val_print_struct): Handle printing structures
1090 2019-05-02 Tom Tromey <tromey@adacore.com>
1092 * valarith.c (_initialize_valarith): Remove.
1094 2019-05-01 Tom Tromey <tromey@adacore.com>
1096 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1099 2019-05-01 Tom Tromey <tromey@adacore.com>
1101 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1102 for big-endian copies.
1104 2019-04-30 Ali Tamur <tamur@google.com>
1105 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1106 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1107 (read_3_bytes): New function.
1109 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1111 * windows-nat.c (main_thread_id): Delete.
1112 (handle_output_debug_string): Replace main_thread_id by
1113 current_event.dwThreadId.
1114 (fake_create_process): Likewise.
1115 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1116 Do not set main_thread_id.
1117 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1118 current_event.dwThreadId.
1119 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1121 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1123 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1124 Use current_event.dwThreadId instead of main_thread_id.
1126 2019-04-30 Tom Tromey <tromey@adacore.com>
1128 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1129 (create_excep_cond_exprs): Iterate over program spaces.
1130 (ada_exception_catchpoint_cond_string): Examine all minimal
1131 symbols for exception types.
1133 2019-04-30 Tom Tromey <tromey@adacore.com>
1136 * dwarf2read.c (process_structure_scope): Handle case where type
1137 has template parameters but no symbol was created.
1139 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1140 Chris January <chris.january@arm.com>
1142 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1144 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1146 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1148 * f-typeprint.c (f_print_type): Update rules for printing
1150 (f_type_print_varspec_suffix): Likewise.
1152 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1153 Chris January <chris.january@arm.com>
1155 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1158 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1160 * f-lang.c (build_fortran_types): Change name of void type to
1162 * f-typeprint.c (f_type_print_base): Print the name of the void
1163 type, rather than a fixed string.
1164 * f-valprint.c (f_decorations): Use lower case void string.
1166 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1167 Chris January <chris.january@arm.com>
1169 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1172 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1173 Chris January <chris.january@arm.com>
1174 David Lecomber <david.lecomber@arm.com>
1176 * f-exp.y (BINOP_INTRINSIC): New token.
1177 (exp): New parser rule handling BINOP_INTRINSIC.
1178 (f77_keywords): Add new builtin procedures.
1179 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1180 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1181 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1182 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1183 (print_unop_subexp_f): New function.
1184 (print_binop_subexp_f): New function.
1185 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1186 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1187 (dump_subexp_body_f): Likewise.
1188 (operator_check_f): Likewise.
1189 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1190 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1192 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1194 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1196 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1197 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1198 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1199 (operator_length_f): New fuction.
1200 (print_subexp_f): New function.
1201 (op_name_f): New function.
1202 (dump_subexp_body_f): New function.
1203 (operator_check_f): New function.
1204 (exp_descriptor_f): Replace standard expression handling functions
1206 * gdb/fortran-operator.def: New file.
1207 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1208 * gdb/std-operator.def: Remove UNOP_KIND.
1210 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1212 * std-operator.def: Remove unbalanced, stray double quote
1215 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1216 Chris January <chris.january@arm.com>
1217 Daniel Everett <daniel.everett@arm.com>
1218 Nick Forrington <nick.forrington@arm.com>
1219 Richard Bunt <richard.bunt@arm.com>
1221 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1222 of depth when printing anonymous structs or unions.
1223 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1224 Don't print either the top-level value, or the children if the
1225 max-depth is exceeded.
1226 (ppscm_print_children): When printing the key of a map, allow one
1227 extra level of depth.
1228 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1229 print either the top-level value, or the children if the max-depth
1231 (print_children): When printing the key of a map, allow one extra
1233 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1234 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1235 (user_print_options): Initialise max_depth field.
1236 (val_print_scalar_or_string_type_p): New function.
1237 (val_print): Check to see if the max depth has been reached.
1238 (val_print_check_max_depth): Define new function.
1239 (show_print_max_depth): New function.
1240 (_initialize_valprint): Add 'print max-depth' option.
1241 * valprint.h (struct value_print_options) <max_depth>: New field.
1242 (val_print_check_max_depth): Declare new function.
1243 * NEWS: Document new feature.
1245 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1247 * ada-lang.c (ada_language_defn): Initialise new field.
1248 * c-lang.c (c_is_string_type_p): New function.
1249 (c_language_defn): Initialise new field.
1250 (cplus_language_defn): Initialise new field.
1251 (asm_language_defn): Initialise new field.
1252 (minimal_language_defn): Initialise new field.
1253 * c-lang.h (c_is_string_type_p): Declare new function.
1254 * d-lang.c (d_language_defn): Initialise new field.
1255 * f-lang.c (f_is_string_type_p): New function.
1256 (f_language_defn): Initialise new field.
1257 * go-lang.c (go_is_string_type_p): New function.
1258 (go_language_defn): Initialise new field.
1259 * language.c (default_is_string_type_p): New function.
1260 (unknown_language_defn): Initialise new field.
1261 (auto_language_defn): Initialise new field.
1262 * language.h (struct language_defn) <la_is_string_type_p>: New
1264 (default_is_string_type_p): Declare new function.
1265 * m2-lang.c (m2_language_defn): Initialise new field.
1266 * objc-lang.c (objc_language_defn): Initialise new field.
1267 * opencl-lang.c (opencl_language_defn): Initialise new field.
1268 * p-lang.c (pascal_is_string_type_p): New function.
1269 (pascal_language_defn): Initialise new field.
1270 * rust-lang.c (rust_is_string_type_p): New function.
1271 (rust_language_defn): Initialise new field.
1273 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1275 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1277 * ada-lang.c (ada_language_defn): Initialise new field.
1278 * c-lang.c (c_language_defn): Likewise.
1279 (cplus_language_defn): Likewise.
1280 (asm_language_defn): Likewise.
1281 (minimal_language_defn): Likewise.
1282 * d-lang.c (d_language_defn): Likewise.
1283 * f-lang.c (f_language_defn): Likewise.
1284 * go-lang.c (go_language_defn): Likewise.
1285 * language.c (unknown_language_defn): Likewise.
1286 (auto_language_defn): Likewise.
1287 * m2-lang.c (m2_language_defn): Likewise.
1288 * objc-lang.c (objc_language_defn): Likewise.
1289 * opencl-lang.c (opencl_language_defn): Likewise.
1290 * p-lang.c (pascal_language_defn): Likewise.
1291 * rust-lang.c (rust_language_defn): Likewise.
1293 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1295 * ada-lang.c (ada_is_character_type): Change return type to bool.
1296 (ada_is_string_type): Likewise.
1297 * ada-lang.h (ada_is_character_type): Update declaration
1298 (ada_is_string_type): Likewise.
1300 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1302 Support style in 'frame|thread apply'
1304 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1305 * record.c (record_start, record_stop): Update callers of
1306 execute_command_to_string with false.
1307 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1308 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1310 (class string_file): New constructor with term_out parameter.
1311 Override methods term_out and can_emit_style_escape. New member
1313 (class stdio_file): Override can_emit_style_escape.
1314 (class tee_file): Override term_out and can_emit_style_escape.
1315 * utils.h (can_emit_style_escape): Remove.
1316 * utils.c (can_emit_style_escape): Likewise.
1317 Update all callers of can_emit_style_escape (SOMESTREAM) to
1318 SOMESTREAM->can_emit_style_escape.
1319 * source-cache.c (source_cache::get_source_lines): Likewise.
1320 * stack.c (frame_apply_command_count): Call execute_command_to_string
1321 passing the term_out characteristic of the current gdb_stdout.
1322 * thread.c (thr_try_catch_cmd): Likewise.
1323 * top.c (execute_command_to_string): pass term_out parameter
1324 to construct the string_file for the command output.
1325 * ui-file.c (term_cli_styling): New function (most code moved
1326 from utils.c can_emit_style_escape).
1327 (string_file::string_file, string_file::can_emit_style_escape,
1328 stdio_file::can_emit_style_escape, tee_file::term_out,
1329 tee_file::can_emit_style_escape): New functions.
1331 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1333 * NEWS: Mention the new set|show may-call-functions.
1334 * infcall.c (may_call_functions_p): New variable.
1335 (show_may_call_functions_p): New function.
1336 (call_function_by_hand_dummy): Throws an error if not
1338 (_initialize_infcall): Call add_setshow_boolean_cmd for
1341 2019-04-25 Keith Seitz <keiths@redhat.com>
1344 * cp-support.c (inspect_type): Don't attempt substitutions
1345 of symbol with the same name.
1347 2019-04-25 Tom Tromey <tromey@adacore.com>
1350 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1353 2019-04-25 Tom Tromey <tromey@adacore.com>
1355 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1357 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1358 (gdb_xml_parser::parse): Use std::move.
1359 * python/python-internal.h (gdbpy_convert_exception): Take a const
1361 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1363 * python/py-utils.c (gdbpy_convert_exception): Take a const
1365 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1367 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1369 * mi/mi-main.c (mi_print_exception): Take a const reference.
1370 * main.c (handle_command_errors): Take a const reference.
1371 * linespec.c (parse_linespec): Use std::move.
1372 * infcall.c (run_inferior_call): Use std::move.
1373 (call_function_by_hand_dummy): Use std::move.
1374 * exec.c (try_open_exec_file): Use std::move.
1375 * exceptions.h (exception_print, exception_fprintf)
1376 (exception_print_same): Update.
1377 * exceptions.c (print_exception, exception_print)
1378 (exception_fprintf, exception_print_same): Change parameters to
1380 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1381 * common/new-op.c: Use std::move.
1382 * common/common-exceptions.h (struct gdb_exception): Add move
1384 (struct gdb_exception_error, struct gdb_exception_quit, struct
1385 gdb_quit_bad_alloc): Change constructor to move constructor.
1386 (throw_exception): Change parameter to rvalue reference.
1387 * common/common-exceptions.c (throw_exception): Take rvalue
1389 * cli/cli-interp.c (safe_execute_command): Use std::move.
1390 * breakpoint.c (insert_bp_location, location_to_sals): Use
1393 2019-04-25 Tom Tromey <tromey@adacore.com>
1395 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1396 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1397 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1398 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1399 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1400 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1401 guile/scm-value.c: Use unpack.
1402 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1403 gdbscm_gdb_exception.
1404 (gdbscm_throw_gdb_exception): Likewise.
1405 (struct gdbscm_gdb_exception): New.
1406 (unpack): New function.
1407 (gdbscm_wrap): Use unpack.
1409 2019-04-25 Tom Tromey <tromey@adacore.com>
1411 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1412 (gdb_rl_callback_handler): Use std::move.
1413 * common/common-exceptions.h (struct gdb_exception): Add move
1414 assignment operator.
1415 (throw_exception_sjlj): Change "exception" to const reference.
1416 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1417 (throw_exception_sjlj): Change "exception" to const reference.
1419 2019-04-25 Tom Tromey <tromey@adacore.com>
1421 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1422 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1423 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1425 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1427 * mi/mi-interp.c (mi_interp::exec): Update.
1428 * linespec.c (parse_linespec): Update.
1429 * infcall.c (run_inferior_call): Update.
1430 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1431 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1432 (gdbscm_lookup_global_symbol): Update.
1433 * guile/scm-param.c (gdbscm_parameter_value): Update.
1434 * guile/scm-frame.c (gdbscm_frame_read_register)
1435 (gdbscm_frame_read_var): Update.
1436 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1437 * exec.c (try_open_exec_file): Update.
1438 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1439 (gdb_rl_callback_handler): Update.
1440 * common/common-exceptions.h (exception_none): Don't declare.
1441 * common/common-exceptions.c (exception_none): Don't define.
1442 (struct catcher) <exception>: Update.
1443 * cli/cli-interp.c (safe_execute_command): Update.
1444 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1446 2019-04-25 Ali Tamur <tamur@google.com>
1448 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1449 (read_attribute_value): Likewise.
1450 (dwarf2_read_addr_index): Update comment.
1451 (read_str_index): Add DW_FORM_strx.
1452 (dwarf2_string_attr): Likewise.
1453 (dwarf2_const_value_attr): Likewise.
1454 (dump_die_shallow): Likewise.
1455 (dwarf2_fetch_constant_bytes): Likewise.
1456 (skip_form_bytes): Likewise.
1457 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1459 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1463 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1464 OFFSET. Verify if current mapping contains an ELF header.
1465 (linux_find_memory_regions_full): Adjust call to
1468 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1469 Kang Li <kanglictf@gmail.com>
1473 * dwarf2-frame.c (read_initial_length): Be consistent about using
1474 unsigned representation of length.
1475 (decode_frame_entry_1): Likewise. Check for wraparound of
1476 end pointer as well as buffer overflow.
1478 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1480 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1483 2019-04-24 Tom Tromey <tromey@adacore.com>
1485 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1487 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1489 * s12z-tdep.c (s12z_unwind_pc): Delete.
1490 (s12z_unwind_sp): Delete.
1491 (s12z_gdbarch_init): Don't register deleted functions with
1494 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1496 * rl78-tdep.c (rl78_unwind_sp): Delete.
1497 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1499 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1501 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1502 (xstormy16_unwind_pc): Delete.
1503 (xstormy16_dummy_id): Delete.
1504 (xstormy16_gdbarch_init): Don't register deleted functions with
1507 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1509 * vax-tdep.c (vax_unwind_pc): Delete.
1510 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1512 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1514 * v850-tdep.c (v850_unwind_sp): Delete.
1515 (v850_unwind_pc): Delete.
1516 (v850_dummy_id): Delete.
1517 (v850_gdbarch_init): Don't register deleted functions with
1520 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1522 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1523 (tilegx_unwind_pc): Delete.
1524 (tilegx_unwind_dummy_id): Delete.
1525 (tilegx_gdbarch_init): Don't register deleted functions with
1528 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1530 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1531 (tic6x_dummy_id): Delete.
1532 (tic6x_gdbarch_init): Don't register deleted functions with
1535 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1537 * sparc-tdep.c (sparc_unwind_pc): Delete.
1538 (sparc32_gdbarch_init): Don't register deleted function with
1541 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1543 * sh-tdep.c (sh_unwind_sp): Delete.
1544 (sh_unwind_pc): Delete.
1545 (sh_dummy_id): Delete.
1546 (sh_gdbarch_init): Don't register deleted functions with
1549 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1551 * score-tdep.c (score_unwind_sp): Delete.
1552 (score_unwind_pc): Delete.
1553 (score_dummy_id): Delete.
1554 (score_gdbarch_init): Don't register deleted functions with
1557 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1559 * rx-tdep.c (rx_unwind_pc): Delete.
1560 (rx_unwind_sp): Delete.
1561 (rx_dummy_id): Delete.
1562 (rx_gdbarch_init): Don't register deleted functions with
1563 gdbarch. Update comment.
1565 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1567 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1568 (rs6000_dummy_id): Delete.
1569 (rs6000_gdbarch_init): Don't register deleted functions with
1572 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1574 * or1k-tdep.c (or1k_dummy_id): Delete.
1575 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1577 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1579 * nios2-tdep.c (nios2_dummy_id): Delete.
1580 (nios2_unwind_sp): Delete.
1581 (nios2_gdbarch_init): Don't register deleted functions with
1584 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1586 * nds32-tdep.c (nds32_dummy_id): Delete.
1587 (nds32_unwind_pc): Delete.
1588 (nds32_unwind_sp): Delete.
1589 (nds32_gdbarch_init): Don't register deleted functions with
1592 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1594 * msp430-tdep.c (msp430_unwind_pc): Delete.
1595 (msp430_unwind_sp): Delete.
1596 (msp430_dummy_id): Delete.
1597 (msp430_gdbarch_init): Don't register deleted functions with
1600 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1602 * moxie-tdep.c (moxie_unwind_sp): Delete.
1603 (moxie_unwind_pc): Delete.
1604 (moxie_dummy_id): Delete.
1605 (moxie_gdbarch_init): Don't register deleted functions with
1608 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1610 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1611 (mn10300_unwind_pc): Delete.
1612 (mn10300_unwind_sp): Delete.
1613 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1615 (mn10300_frame_unwind_init): Don't register deleted functions with
1618 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1620 * mep-tdep.c (mep_unwind_pc): Delete.
1621 (mep_unwind_sp): Delete.
1622 (mep_dummy_id): Delete.
1623 (mep_gdbarch_init): Don't register deleted functions with
1626 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1628 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1629 (m68hc11_unwind_sp): Delete.
1630 (m68hc11_gdbarch_init): Don't register deleted functions with
1633 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1635 * m32r-tdep.c (m32r_unwind_sp): Delete.
1636 (m32r_unwind_pc): Delete.
1637 (m32r_dummy_id): Delete.
1638 (m32r_gdbarch_init): Don't register deleted functions with
1641 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1643 * m32c-tdep.c (m32c_unwind_pc): Delete.
1644 (m32c_unwind_sp): Delete.
1645 (m32c_dummy_id): Delete.
1646 (m32c_gdbarch_init): Don't register deleted functions with
1649 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1651 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1652 (lm32_unwind_pc): Delete.
1653 (lm32_dummy_id): Delete.
1654 (lm32_gdbarch_init): Don't register deleted functions with
1657 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1659 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1660 (iq2000_unwind_pc): Delete.
1661 (iq2000_dummy_id): Delete.
1662 (iq2000_gdbarch_init): Don't register deleted functions with
1665 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1667 * nds32-tdep.c (nds32_type_align): Delete.
1668 (nds32_push_dummy_call): Use type_align instead.
1670 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1672 * arm-tdep.c (arm_type_align): Only handle vector override case.
1673 (arm_push_dummy_call): Use type_align.
1674 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1676 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1678 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1680 (pass_on_stack): Use type_align.
1681 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1684 2019-04-23 Tom Tromey <tromey@adacore.com>
1686 * dwarf2read.c (line_header::file_name_at): Remove unused
1689 2019-04-23 Tom de Vries <tdevries@suse.de>
1692 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1696 2019-03-27 Ali Tamur <tamur@google.com>
1698 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1699 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1700 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1701 (dwarf_expr_context::get_addr_index): Likewise
1702 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1703 (symbol_needs_eval_context::get_addr_index): Likewise
1704 (disassemble_dwarf_expression): Add DW_OP_addrx
1705 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1706 (read_cutu_die_from_dwo): Update comment
1707 (skip_one_die): Add DW_FORM_addrx
1708 (read_attribute_value): Likewise
1709 (var_decode_location): Add DW_OP_addrx
1710 (dwarf2_const_value_attr): Add DW_FORM_addrx
1711 (dump_die_shallow): Likewise
1712 (dwarf2_fetch_constant_bytes): Likewise
1713 (decode_locdesc): Add DW_OP_addrx
1714 (skip_form_bytes): Add DW_FORM_addrx
1716 2019-04-22 Ali Tamur <tamur@google.com>
1718 * MAINTAINERS (Write After Approval): Add self.
1720 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1722 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1723 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1724 (open_symbol_file_object): Likewise.
1725 (svr4_default_sos): Add info parameter.
1726 (svr4_read_so_list): Likewise.
1727 (svr4_current_sos_direct): Adjust functions calls to pass down
1729 (svr4_current_sos_1): Add info parameter.
1730 (svr4_current_sos): Call get_svr4_info, pass info down to
1732 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1734 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1736 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1738 (probes_table_remove_objfile_probes): Likewise.
1739 (register_solib_event_probe): Add info parameter.
1740 (solist_update_incremental): Pass info parameter down to
1742 (disable_probes_interface): Add info parameter.
1743 (svr4_handle_solib_event): Pass current_program_space to
1744 get_svr4_info. Adjust disable_probes_interface cleanup.
1745 (svr4_create_probe_breakpoints): Add info parameter, pass it
1746 down to register_solib_event_probe.
1747 (svr4_create_solib_event_breakpoints): Add info parameter,
1748 pass it down to svr4_create_probe_breakpoints.
1749 (enable_break): Pass info down to
1750 svr4_create_solib_event_breakpoints.
1751 (svr4_solib_create_inferior_hook): Pass current_program_space to
1753 (svr4_clear_solib): Likewise.
1755 2019-04-22 Pedro Alves <palves@redhat.com>
1757 * solib-svr4.c (svr4_free_objfile_observer): New.
1758 (probe_and_action::objfile): New field.
1759 (probes_table_htab_remove_objfile_probes)
1760 (probes_table_remove_objfile_probes): New functions.
1761 (register_solib_event_probe): Add 'objfile' parameter. Store it
1762 in the new probe_and_action. Don't store the probe in 'lookup'.
1763 (svr4_create_probe_breakpoints): Pass objfile to
1764 register_solib_event_probe.
1765 (_initialize_svr4_solib): Register a free_objfile observer.
1767 2019-04-19 Tom Tromey <tom@tromey.com>
1769 * common/queue.h: Remove.
1771 2019-04-19 Tom Tromey <tom@tromey.com>
1773 * event-loop.c: Don't include "common/queue.h".
1775 2019-04-19 Tom Tromey <tom@tromey.com>
1777 * remote.c (remote_target): Use delete.
1778 * remote-notif.h: Include <list>, not "common/queue.h".
1779 (notif_client_p): Remove typedef.
1780 (remote_notif_state): Add constructor, destructor, initializer.
1781 <notif_queue>: Now a std::list.
1782 (remote_notif_state_xfree): Don't declare.
1783 * remote-notif.c (remote_notif_process, handle_notification)
1784 (remote_notif_state_allocate): Update.
1785 (~remote_notif_state): Rename from remote_notif_state_xfree.
1787 2019-04-19 Tom Tromey <tom@tromey.com>
1789 * symfile.c (reread_symbols): Update.
1790 * objfiles.c (objfile_register_static_link)
1791 (objfile_lookup_static_link): Update
1792 (~objfile) Don't delete static_links.
1793 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1795 2019-04-19 Tom Tromey <tom@tromey.com>
1797 * type-stack.h (struct type_stack) <insert>: Constify string.
1798 * type-stack.c (type_stack::insert): Constify string.
1799 * gdbtypes.h (lookup_template_type): Update.
1800 (address_space_name_to_int): Update.
1801 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1803 (lookup_template_type): Make name const.
1804 * c-exp.y: Update rules.
1805 (lex_one_token, classify_name, classify_inner_name)
1806 (c_print_token): Update.
1807 * p-exp.y: Update rules.
1809 * f-exp.y: Update rules.
1811 * d-exp.y: Update rules.
1812 (lex_one_token, classify_name, classify_inner_name): Update.
1813 * parse.c (write_dollar_variable, copy_name): Return std::string.
1814 * parser-defs.h (copy_name): Change return type.
1815 * m2-exp.y: Update rules.
1817 * go-exp.y (lex_one_token): Update.
1819 (classify_unsafe_function, classify_packaged_name)
1820 (classify_name, yylex): Update.
1822 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1824 * configure.ac: add --enable-source-highlight switch.
1825 * configure: Regenerate.
1826 * top.c (print_gdb_version): plumb --enable-source-highlight
1827 status to "show configuration".
1829 2019-04-19 Tom Tromey <tromey@adacore.com>
1831 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1833 (empty_record, ada_template_to_fixed_record_type_1)
1834 (template_to_static_fixed_type)
1835 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1836 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1837 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1840 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1843 * source.c (print_source_lines_base): Advance "iter" when a
1844 control character is seen.
1846 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1848 * inferior.h (struct infcall_suspend_state_deleter):
1849 Catch exception in destructor to avoid crash.
1851 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1853 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1854 close to the add_com "shell".
1856 2019-04-18 Tom Tromey <tromey@adacore.com>
1858 * process-stratum-target.h (class process_stratum_target)
1859 <stratum>: Add "final".
1861 2019-04-17 Tom Tromey <tromey@adacore.com>
1863 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1864 against nullptr before use.
1866 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1868 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1870 2019-04-17 Jim Wilson <jimw@sifive.com>
1871 Andrew Burgess <andrew.burgess@embecosm.com>
1873 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1874 code read might fail, assume 4-byte breakpoint in that case.
1876 2019-04-15 Leszek Swirski <leszeks@google.com>
1878 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1879 rather than a hand-rolled POD check when checking for forced MEMORY
1882 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1884 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1885 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1887 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1888 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1889 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1892 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1894 * aarch64-linux-nat.c
1895 (aarch64_linux_nat_target::thread_architecture): Add override.
1896 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1899 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1901 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1903 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1905 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1906 target types of size 96-bits, add some additional comments, and
1907 check that the builtin type we found was the correct size.
1909 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1911 * utils.c (prompt_for_continue): Don't restore the styling at the
1912 end, as applied_style has the wrong value. This fixes styling in
1913 long lists of file names that are interrupted by the "Continue?"
1916 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1918 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1919 * c-lang.c (c_language_defn): Likewise.
1920 (cplus_language_defn): Likewise.
1921 (asm_language_defn): Likewise.
1922 (minimal_language_defn): Likewise.
1923 * d-lang.c (d_language_defn): Likewise.
1924 * f-lang.c (f_language_defn): Likewise.
1925 * go-lang.c (go_language_defn): Likewise.
1926 * language.c (unknown_language_defn): Likewise.
1927 (auto_language_defn): Likewise.
1928 * language.h (struct language_defn): Remove la_magic field.
1929 (LANG_MAGIC): Delete.
1930 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1931 * objc-lang.c (objc_language_defn): Likewise.
1932 * opencl-lang.c (opencl_language_defn): Likewise.
1933 * p-lang.c (pascal_language_defn): Likewise.
1934 * rust-lang.c (rust_language_defn): Likewise.
1936 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1938 * riscv-tdep.c (riscv_type_align): New function.
1939 (riscv_type_alignment): Delete.
1940 (riscv_arg_location): Use 'type_align'.
1941 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1943 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1945 * gdbtypes.c (type_align): A struct with no non-static fields also
1948 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1950 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1952 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1954 (riscv_struct_info::analyse): New implementation using new
1955 analyse_inner member function.
1956 (riscv_struct_info::field_offset): New member function.
1957 (riscv_struct_info::m_offsets): New member variable.
1958 (riscv_struct_info::analyse_inner): New private member function,
1959 takes the old implementation of riscv_struct_info::analyse but
1960 extended to track field offsets.
1961 (riscv_call_arg_struct): Update the struct folding special cases
1962 to handle cases where empty C++ structs, which are non-zero
1964 (riscv_arg_location): Initialise the length of each location, a
1965 non-zero length now indicates the location is in use.
1966 (riscv_push_dummy_call): Allow for the first location having a
1967 non-zero offset when setting up arguments.
1968 (riscv_return_value): Likewise, but for return values.
1970 2019-04-11 Tom Tromey <tromey@adacore.com>
1972 * utils.c (internal_vproblem): Make "msg" const.
1974 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1976 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1977 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1978 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1979 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1981 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1983 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1985 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1986 of amd64_collect_native_gregset.
1987 (amd64_linux_nat_target::store_registers): Likewise.
1989 2019-04-10 Tom Tromey <tom@tromey.com>
1991 * symtab.c (lookup_global_symbol_from_objfile)
1992 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1993 * objfiles.h (class separate_debug_iterator): New.
1994 (class separate_debug_range): New.
1995 (struct objfile) <separate_debug_objfiles>: New method.
1996 (objfile_separate_debug_iterate): Don't declare.
1997 * objfiles.c (separate_debug_iterator::operator++): Rename from
1998 objfile_separate_debug_iterate.
1999 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2001 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2004 2019-04-10 Tom Tromey <tom@tromey.com>
2006 * symfile.c (reread_symbols): Remove old comment.
2007 * objfiles.c (free_all_objfiles): Fix a typo.
2009 2019-04-10 Tom Tromey <tom@tromey.com>
2011 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2012 * minsyms.c (lookup_minimal_symbol): Use foreach.
2013 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2014 (lookup_minimal_symbol_solib_trampoline): Likewise.
2015 * symfile.c (reread_symbols): Use foreach.
2017 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2018 Tom Tromey <tromey@adacore.com>
2021 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2022 (rust_lex_int_test): Change "value" to be LONGEST.
2023 (rust_lex_tests): Add test for long integer literal.
2025 2019-04-09 Tom Tromey <tromey@adacore.com>
2027 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2029 (extended_remote_target::attach): Update.
2030 (remote_target::remote_notice_new_inferior): Update.
2031 (remote_target::add_current_inferior_and_thread): Update.
2032 * inferior.c (exit_inferior_1): Use "false".
2033 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2035 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2037 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2038 the "start" command.
2040 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2042 * python/py-inferior.c (infpy_thread_from_thread_handle):
2043 Adjust comments to reflect renaming of thread_from_thread_handle
2044 to thread_from_handle. Adjust keywords. Fix type error message.
2045 (inferior_object_methods): Add thread_from_handle. Retain
2046 thread_from_thread_handle, but mark it as deprecated.
2048 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2050 * gdbthread.h (find_thread_by_handle): Revise declaration.
2051 * thread.c (find_thread_by_handle): Likewise. Adjust
2053 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2054 support for buffer objects as handles.
2056 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2058 * python/py-infthread.c (thpy_thread_handle): New function.
2059 (thread_object_methods): Register thpy_thread_handle.
2061 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2063 * gdbthread.h (thread_to_thread_handle): Declare.
2064 * thread.c (gdbtypes.h): Include.
2065 (thread_to_thread_handle): New function.
2067 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2068 (target_thread_info_to_thread_handle): Declare.
2069 * target.c (target_thread_info_to_thread_handle): New function.
2070 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2071 * target-delegates.c: Regenerate.
2073 * linux-thread-db.c (class thread_db_target): Add method
2074 thread_info_to_thread_handle.
2075 (thread_db_target::thread_info_to_thread_handle): Define.
2076 * remote.c (class remote_target): Add new method
2077 thread_info_to_thread_handle.
2078 (remote_target::thread_info_to_thread_handle): Define.
2080 2019-04-08 Pedro Alves <palves@redhat.com>
2082 * common/common-exceptions.c (throw_exception): Don't create
2083 named object to throw; throw directly.
2084 (throw_it): Likewise. Don't initialize gdb_exception::message
2085 here, with new; pass FMT and AP to the ctor instead.
2086 * common/common-exceptions.h: Include <string>.
2087 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2088 const char *, va_list)): New ctor. Use std::make_shared.
2089 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2091 (gdb_exception_error::gdb_exception_error(enum errors, const char
2093 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2095 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2097 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2098 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2101 2019-04-08 Tom Tromey <tom@tromey.com>
2103 * valops.c (value_rtti_indirect_type): Replace throw_exception
2105 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2107 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2109 * target.c (target_translate_tls_address): Replace throw_exception
2111 * stack.c (frame_apply_command_count): Replace throw_exception
2113 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2115 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2117 * rs6000-tdep.c (rs6000_frame_cache)
2118 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2119 * remote.c: Replace throw_exception with throw.
2120 * record-full.c (record_full_message, record_full_wait_1)
2121 (record_full_restore): Replace throw_exception with throw.
2123 (get_thread_current_frame_id, record_btrace_start_replaying)
2124 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2125 (cmd_record_btrace_start): Replace throw_exception with throw.
2126 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2128 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2129 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2131 (find_linespec_symbols): Replace throw_exception with throw.
2132 * infrun.c (displaced_step_prepare, resume): Replace
2133 throw_exception with throw.
2134 * infcmd.c (post_create_inferior): Replace throw_exception with
2136 * inf-loop.c (inferior_event_handler): Replace throw_exception
2138 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2139 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2140 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2141 (get_prev_frame_always, get_frame_pc_if_available)
2142 (get_frame_address_in_block_if_available, get_frame_language):
2143 Replace throw_exception with throw.
2144 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2145 throw_exception with throw.
2146 * eval.c (fetch_subexp_value, evaluate_var_value)
2147 (evaluate_funcall, evaluate_subexp_standard): Replace
2148 throw_exception with throw.
2149 * dwarf2loc.c (call_site_find_chain)
2150 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2151 Replace throw_exception with throw.
2152 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2154 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2156 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2157 * completer.c (complete_line_internal): Replace throw_exception
2159 * compile/compile-object-run.c (compile_object_run): Replace
2160 throw_exception with throw.
2161 * cli/cli-script.c (process_next_line): Replace throw_exception
2163 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2164 (btrace_enable, btrace_maint_update_pt_packets): Replace
2165 throw_exception with throw.
2166 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2167 throw_exception with throw.
2168 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2169 throw_exception with throw.
2170 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2171 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2172 * aarch64-tdep.c (aarch64_make_prologue_cache)
2173 (aarch64_make_stub_cache): Replace throw_exception with throw.
2175 2019-04-08 Tom Tromey <tom@tromey.com>
2177 * common/common-exceptions.c (throw_exception): Rename from
2178 throw_exception_cxx. Remove old copy. Make argument const.
2179 (throw_it): Create and throw exception objects directly.
2180 * common/common-exceptions.h (throw_exception): Make argument
2182 (struct gdb_exception_error): Add constructor.
2183 (struct gdb_exception_quit): Add constructor.
2185 2019-04-08 Tom Tromey <tom@tromey.com>
2187 * common/common-exceptions.h (exception_rethrow): Don't declare.
2188 (TRY_SJLJ): Update comment.
2189 (TRY, CATCH, END_CATCH): Remove.
2190 * common/common-exceptions.c (exception_rethrow): Remove.
2192 2019-04-08 Tom Tromey <tom@tromey.com>
2194 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2196 (gdb_exception_error): Rename from
2197 gdb_exception_RETURN_MASK_ERROR.
2198 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2199 (gdb_quit_bad_alloc): Update.
2200 * aarch64-tdep.c: Update.
2201 * ada-lang.c: Update.
2202 * ada-typeprint.c: Update.
2203 * ada-valprint.c: Update.
2204 * amd64-tdep.c: Update.
2205 * arch-utils.c: Update.
2206 * break-catch-throw.c: Update.
2207 * breakpoint.c: Update.
2209 * c-varobj.c: Update.
2210 * cli/cli-cmds.c: Update.
2211 * cli/cli-interp.c: Update.
2212 * cli/cli-script.c: Update.
2213 * common/common-exceptions.c: Update.
2214 * common/new-op.c: Update.
2215 * common/selftest.c: Update.
2216 * compile/compile-c-symbols.c: Update.
2217 * compile/compile-cplus-symbols.c: Update.
2218 * compile/compile-object-load.c: Update.
2219 * compile/compile-object-run.c: Update.
2220 * completer.c: Update.
2221 * corelow.c: Update.
2223 * cp-support.c: Update.
2224 * cp-valprint.c: Update.
2225 * darwin-nat.c: Update.
2226 * disasm-selftests.c: Update.
2227 * dtrace-probe.c: Update.
2228 * dwarf-index-cache.c: Update.
2229 * dwarf-index-write.c: Update.
2230 * dwarf2-frame-tailcall.c: Update.
2231 * dwarf2-frame.c: Update.
2232 * dwarf2loc.c: Update.
2233 * dwarf2read.c: Update.
2235 * event-loop.c: Update.
2236 * event-top.c: Update.
2238 * f-valprint.c: Update.
2239 * fbsd-tdep.c: Update.
2240 * frame-unwind.c: Update.
2242 * gdbtypes.c: Update.
2243 * gnu-v3-abi.c: Update.
2244 * guile/guile-internal.h: Update.
2245 * guile/scm-block.c: Update.
2246 * guile/scm-breakpoint.c: Update.
2247 * guile/scm-cmd.c: Update.
2248 * guile/scm-disasm.c: Update.
2249 * guile/scm-frame.c: Update.
2250 * guile/scm-lazy-string.c: Update.
2251 * guile/scm-math.c: Update.
2252 * guile/scm-param.c: Update.
2253 * guile/scm-ports.c: Update.
2254 * guile/scm-pretty-print.c: Update.
2255 * guile/scm-symbol.c: Update.
2256 * guile/scm-symtab.c: Update.
2257 * guile/scm-type.c: Update.
2258 * guile/scm-value.c: Update.
2259 * i386-linux-tdep.c: Update.
2260 * i386-tdep.c: Update.
2261 * inf-loop.c: Update.
2262 * infcall.c: Update.
2266 * language.c: Update.
2267 * linespec.c: Update.
2268 * linux-fork.c: Update.
2269 * linux-nat.c: Update.
2270 * linux-tdep.c: Update.
2271 * linux-thread-db.c: Update.
2273 * mi/mi-cmd-break.c: Update.
2274 * mi/mi-cmd-stack.c: Update.
2275 * mi/mi-interp.c: Update.
2276 * mi/mi-main.c: Update.
2277 * objc-lang.c: Update.
2278 * p-valprint.c: Update.
2280 * ppc-linux-tdep.c: Update.
2281 * printcmd.c: Update.
2282 * python/py-arch.c: Update.
2283 * python/py-breakpoint.c: Update.
2284 * python/py-cmd.c: Update.
2285 * python/py-finishbreakpoint.c: Update.
2286 * python/py-frame.c: Update.
2287 * python/py-framefilter.c: Update.
2288 * python/py-gdb-readline.c: Update.
2289 * python/py-inferior.c: Update.
2290 * python/py-infthread.c: Update.
2291 * python/py-lazy-string.c: Update.
2292 * python/py-linetable.c: Update.
2293 * python/py-objfile.c: Update.
2294 * python/py-param.c: Update.
2295 * python/py-prettyprint.c: Update.
2296 * python/py-progspace.c: Update.
2297 * python/py-record-btrace.c: Update.
2298 * python/py-record.c: Update.
2299 * python/py-symbol.c: Update.
2300 * python/py-type.c: Update.
2301 * python/py-unwind.c: Update.
2302 * python/py-utils.c: Update.
2303 * python/py-value.c: Update.
2304 * python/python.c: Update.
2305 * record-btrace.c: Update.
2306 * record-full.c: Update.
2307 * remote-fileio.c: Update.
2309 * riscv-tdep.c: Update.
2310 * rs6000-aix-tdep.c: Update.
2311 * rs6000-tdep.c: Update.
2312 * rust-exp.y: Update.
2313 * rust-lang.c: Update.
2314 * s390-tdep.c: Update.
2315 * selftest-arch.c: Update.
2316 * solib-dsbt.c: Update.
2317 * solib-frv.c: Update.
2318 * solib-spu.c: Update.
2319 * solib-svr4.c: Update.
2321 * sparc64-linux-tdep.c: Update.
2323 * symfile-mem.c: Update.
2324 * symmisc.c: Update.
2328 * tracefile-tfile.c: Update.
2329 * tui/tui.c: Update.
2330 * typeprint.c: Update.
2331 * unittests/cli-utils-selftests.c: Update.
2332 * unittests/parse-connection-spec-selftests.c: Update.
2334 * valprint.c: Update.
2337 * windows-nat.c: Update.
2338 * x86-linux-nat.c: Update.
2339 * xml-support.c: Update.
2341 2019-04-08 Tom Tromey <tom@tromey.com>
2343 * xml-support.c: Use C++ exception handling.
2344 * x86-linux-nat.c: Use C++ exception handling.
2345 * windows-nat.c: Use C++ exception handling.
2346 * varobj.c: Use C++ exception handling.
2347 * value.c: Use C++ exception handling.
2348 * valprint.c: Use C++ exception handling.
2349 * valops.c: Use C++ exception handling.
2350 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2352 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2353 * typeprint.c: Use C++ exception handling.
2354 * tui/tui.c: Use C++ exception handling.
2355 * tracefile-tfile.c: Use C++ exception handling.
2356 * top.c: Use C++ exception handling.
2357 * thread.c: Use C++ exception handling.
2358 * target.c: Use C++ exception handling.
2359 * symmisc.c: Use C++ exception handling.
2360 * symfile-mem.c: Use C++ exception handling.
2361 * stack.c: Use C++ exception handling.
2362 * sparc64-linux-tdep.c: Use C++ exception handling.
2363 * solib.c: Use C++ exception handling.
2364 * solib-svr4.c: Use C++ exception handling.
2365 * solib-spu.c: Use C++ exception handling.
2366 * solib-frv.c: Use C++ exception handling.
2367 * solib-dsbt.c: Use C++ exception handling.
2368 * selftest-arch.c: Use C++ exception handling.
2369 * s390-tdep.c: Use C++ exception handling.
2370 * rust-lang.c: Use C++ exception handling.
2371 * rust-exp.y: Use C++ exception handling.
2372 * rs6000-tdep.c: Use C++ exception handling.
2373 * rs6000-aix-tdep.c: Use C++ exception handling.
2374 * riscv-tdep.c: Use C++ exception handling.
2375 * remote.c: Use C++ exception handling.
2376 * remote-fileio.c: Use C++ exception handling.
2377 * record-full.c: Use C++ exception handling.
2378 * record-btrace.c: Use C++ exception handling.
2379 * python/python.c: Use C++ exception handling.
2380 * python/py-value.c: Use C++ exception handling.
2381 * python/py-utils.c: Use C++ exception handling.
2382 * python/py-unwind.c: Use C++ exception handling.
2383 * python/py-type.c: Use C++ exception handling.
2384 * python/py-symbol.c: Use C++ exception handling.
2385 * python/py-record.c: Use C++ exception handling.
2386 * python/py-record-btrace.c: Use C++ exception handling.
2387 * python/py-progspace.c: Use C++ exception handling.
2388 * python/py-prettyprint.c: Use C++ exception handling.
2389 * python/py-param.c: Use C++ exception handling.
2390 * python/py-objfile.c: Use C++ exception handling.
2391 * python/py-linetable.c: Use C++ exception handling.
2392 * python/py-lazy-string.c: Use C++ exception handling.
2393 * python/py-infthread.c: Use C++ exception handling.
2394 * python/py-inferior.c: Use C++ exception handling.
2395 * python/py-gdb-readline.c: Use C++ exception handling.
2396 * python/py-framefilter.c: Use C++ exception handling.
2397 * python/py-frame.c: Use C++ exception handling.
2398 * python/py-finishbreakpoint.c: Use C++ exception handling.
2399 * python/py-cmd.c: Use C++ exception handling.
2400 * python/py-breakpoint.c: Use C++ exception handling.
2401 * python/py-arch.c: Use C++ exception handling.
2402 * printcmd.c: Use C++ exception handling.
2403 * ppc-linux-tdep.c: Use C++ exception handling.
2404 * parse.c: Use C++ exception handling.
2405 * p-valprint.c: Use C++ exception handling.
2406 * objc-lang.c: Use C++ exception handling.
2407 * mi/mi-main.c: Use C++ exception handling.
2408 * mi/mi-interp.c: Use C++ exception handling.
2409 * mi/mi-cmd-stack.c: Use C++ exception handling.
2410 * mi/mi-cmd-break.c: Use C++ exception handling.
2411 * main.c: Use C++ exception handling.
2412 * linux-thread-db.c: Use C++ exception handling.
2413 * linux-tdep.c: Use C++ exception handling.
2414 * linux-nat.c: Use C++ exception handling.
2415 * linux-fork.c: Use C++ exception handling.
2416 * linespec.c: Use C++ exception handling.
2417 * language.c: Use C++ exception handling.
2418 * jit.c: Use C++ exception handling.
2419 * infrun.c: Use C++ exception handling.
2420 * infcmd.c: Use C++ exception handling.
2421 * infcall.c: Use C++ exception handling.
2422 * inf-loop.c: Use C++ exception handling.
2423 * i386-tdep.c: Use C++ exception handling.
2424 * i386-linux-tdep.c: Use C++ exception handling.
2425 * guile/scm-value.c: Use C++ exception handling.
2426 * guile/scm-type.c: Use C++ exception handling.
2427 * guile/scm-symtab.c: Use C++ exception handling.
2428 * guile/scm-symbol.c: Use C++ exception handling.
2429 * guile/scm-pretty-print.c: Use C++ exception handling.
2430 * guile/scm-ports.c: Use C++ exception handling.
2431 * guile/scm-param.c: Use C++ exception handling.
2432 * guile/scm-math.c: Use C++ exception handling.
2433 * guile/scm-lazy-string.c: Use C++ exception handling.
2434 * guile/scm-frame.c: Use C++ exception handling.
2435 * guile/scm-disasm.c: Use C++ exception handling.
2436 * guile/scm-cmd.c: Use C++ exception handling.
2437 * guile/scm-breakpoint.c: Use C++ exception handling.
2438 * guile/scm-block.c: Use C++ exception handling.
2439 * guile/guile-internal.h: Use C++ exception handling.
2440 * gnu-v3-abi.c: Use C++ exception handling.
2441 * gdbtypes.c: Use C++ exception handling.
2442 * frame.c: Use C++ exception handling.
2443 * frame-unwind.c: Use C++ exception handling.
2444 * fbsd-tdep.c: Use C++ exception handling.
2445 * f-valprint.c: Use C++ exception handling.
2446 * exec.c: Use C++ exception handling.
2447 * event-top.c: Use C++ exception handling.
2448 * event-loop.c: Use C++ exception handling.
2449 * eval.c: Use C++ exception handling.
2450 * dwarf2read.c: Use C++ exception handling.
2451 * dwarf2loc.c: Use C++ exception handling.
2452 * dwarf2-frame.c: Use C++ exception handling.
2453 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2454 * dwarf-index-write.c: Use C++ exception handling.
2455 * dwarf-index-cache.c: Use C++ exception handling.
2456 * dtrace-probe.c: Use C++ exception handling.
2457 * disasm-selftests.c: Use C++ exception handling.
2458 * darwin-nat.c: Use C++ exception handling.
2459 * cp-valprint.c: Use C++ exception handling.
2460 * cp-support.c: Use C++ exception handling.
2461 * cp-abi.c: Use C++ exception handling.
2462 * corelow.c: Use C++ exception handling.
2463 * completer.c: Use C++ exception handling.
2464 * compile/compile-object-run.c: Use C++ exception handling.
2465 * compile/compile-object-load.c: Use C++ exception handling.
2466 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2467 * compile/compile-c-symbols.c: Use C++ exception handling.
2468 * common/selftest.c: Use C++ exception handling.
2469 * common/new-op.c: Use C++ exception handling.
2470 * cli/cli-script.c: Use C++ exception handling.
2471 * cli/cli-interp.c: Use C++ exception handling.
2472 * cli/cli-cmds.c: Use C++ exception handling.
2473 * c-varobj.c: Use C++ exception handling.
2474 * btrace.c: Use C++ exception handling.
2475 * breakpoint.c: Use C++ exception handling.
2476 * break-catch-throw.c: Use C++ exception handling.
2477 * arch-utils.c: Use C++ exception handling.
2478 * amd64-tdep.c: Use C++ exception handling.
2479 * ada-valprint.c: Use C++ exception handling.
2480 * ada-typeprint.c: Use C++ exception handling.
2481 * ada-lang.c: Use C++ exception handling.
2482 * aarch64-tdep.c: Use C++ exception handling.
2484 2019-04-08 Tom Tromey <tom@tromey.com>
2486 * xml-support.c (gdb_xml_parser::parse): Update.
2487 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2488 * value.c (show_convenience): Update.
2489 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2490 (test_parse_flags_qcs): Update.
2491 * thread.c (thr_try_catch_cmd): Update.
2492 * target.c (target_translate_tls_address): Update.
2493 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2494 (info_frame_command_core, frame_apply_command_count): Update.
2495 * rust-exp.y (rust_lex_exception_test): Update.
2496 * riscv-tdep.c (riscv_print_one_register_info): Update.
2497 * remote.c (remote_target::enable_btrace): Update.
2498 * record-btrace.c (record_btrace_enable_warn): Update.
2499 * python/py-utils.c (gdbpy_convert_exception): Update.
2500 * printcmd.c (do_one_display, print_variable_and_value): Update.
2501 * mi/mi-main.c (mi_print_exception): Update.
2502 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2503 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2504 * linux-nat.c (linux_nat_target::attach): Update.
2505 * linux-fork.c (class scoped_switch_fork_info): Update.
2506 * infrun.c (displaced_step_prepare): Update.
2507 * infcall.c (call_function_by_hand_dummy): Update.
2508 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2509 * gnu-v3-abi.c (print_one_vtable): Update.
2510 * frame.c (get_prev_frame_always): Update.
2511 * f-valprint.c (info_common_command_for_block): Update.
2512 * exec.c (try_open_exec_file): Update.
2513 * exceptions.c (print_exception, exception_print)
2514 (exception_fprintf, exception_print_same): Update.
2515 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2516 * dwarf-index-cache.c (index_cache::store)
2517 (index_cache::lookup_gdb_index): Update.
2518 * darwin-nat.c (maybe_cache_shell): Update.
2519 * cp-valprint.c (cp_print_value_fields): Update.
2520 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2521 (gcc_cplus_symbol_address): Update.
2522 * compile/compile-c-symbols.c (gcc_convert_symbol)
2523 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2524 * common/selftest.c: Update.
2525 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2527 (exception_try_scope_entry, exception_try_scope_exit): Don't
2529 (struct exception_try_scope): Remove.
2530 (TRY): Don't use exception_try_scope.
2531 (struct gdb_exception): Add constructor, operator=.
2533 (struct gdb_exception_RETURN_MASK_ALL)
2534 (struct gdb_exception_RETURN_MASK_ERROR)
2535 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2536 (struct gdb_quit_bad_alloc): Update.
2537 * common/common-exceptions.c (exception_none): Change
2539 (struct catcher) <state, exception>: Initialize inline.
2540 <prev>: Remove member.
2541 (current_catcher): Remove.
2542 (catchers): New global.
2543 (exceptions_state_mc_init): Simplify.
2544 (catcher_pop): Remove.
2545 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2546 (try_scope_depth, exception_try_scope_entry)
2547 (exception_try_scope_exit): Remove.
2548 (throw_exception_sjlj): Update.
2549 (exception_messages, exception_messages_size): Remove.
2550 (throw_it): Simplify.
2551 (gdb_exception_sliced_copy): Remove.
2552 (throw_exception_cxx): Update.
2553 * cli/cli-script.c (script_from_file): Update.
2554 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2556 * ada-valprint.c (ada_val_print): Update.
2557 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2558 (create_excep_cond_exprs): Update.
2560 2019-04-08 Tom Tromey <tom@tromey.com>
2562 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2563 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2564 (TRY, CATCH, END_CATCH): Remove some definitions.
2565 * common/common-exceptions.c: Don't use GDB_XCPT.
2566 (catcher_list_size): Remove.
2567 (throw_exception, throw_it): Simplify.
2569 2019-04-05 Tom Tromey <tom@tromey.com>
2571 Revert the header-sorting patch.
2572 * ft32-tdep.c: Revert.
2573 * frv-tdep.c: Revert.
2574 * frv-linux-tdep.c: Revert.
2576 * frame-unwind.c: Revert.
2577 * frame-base.c: Revert.
2578 * fork-child.c: Revert.
2579 * findvar.c: Revert.
2580 * findcmd.c: Revert.
2581 * filesystem.c: Revert.
2582 * filename-seen-cache.h: Revert.
2583 * filename-seen-cache.c: Revert.
2584 * fbsd-tdep.c: Revert.
2585 * fbsd-nat.h: Revert.
2586 * fbsd-nat.c: Revert.
2587 * f-valprint.c: Revert.
2588 * f-typeprint.c: Revert.
2590 * extension.h: Revert.
2591 * extension.c: Revert.
2592 * extension-priv.h: Revert.
2593 * expprint.c: Revert.
2596 * exceptions.c: Revert.
2597 * event-top.c: Revert.
2598 * event-loop.c: Revert.
2600 * elfread.c: Revert.
2601 * dwarf2read.h: Revert.
2602 * dwarf2read.c: Revert.
2603 * dwarf2loc.c: Revert.
2604 * dwarf2expr.h: Revert.
2605 * dwarf2expr.c: Revert.
2606 * dwarf2-frame.c: Revert.
2607 * dwarf2-frame-tailcall.c: Revert.
2608 * dwarf-index-write.h: Revert.
2609 * dwarf-index-write.c: Revert.
2610 * dwarf-index-common.c: Revert.
2611 * dwarf-index-cache.h: Revert.
2612 * dwarf-index-cache.c: Revert.
2613 * dummy-frame.c: Revert.
2614 * dtrace-probe.c: Revert.
2617 * disasm-selftests.c: Revert.
2618 * dictionary.c: Revert.
2619 * dicos-tdep.c: Revert.
2620 * demangle.c: Revert.
2623 * darwin-nat.h: Revert.
2624 * darwin-nat.c: Revert.
2625 * darwin-nat-info.c: Revert.
2626 * d-valprint.c: Revert.
2627 * d-namespace.c: Revert.
2630 * csky-tdep.c: Revert.
2631 * csky-linux-tdep.c: Revert.
2632 * cris-tdep.c: Revert.
2633 * cris-linux-tdep.c: Revert.
2634 * cp-valprint.c: Revert.
2635 * cp-support.c: Revert.
2636 * cp-namespace.c: Revert.
2638 * corelow.c: Revert.
2639 * corefile.c: Revert.
2640 * continuations.c: Revert.
2641 * completer.h: Revert.
2642 * completer.c: Revert.
2643 * complaints.c: Revert.
2644 * coffread.c: Revert.
2645 * coff-pe-read.c: Revert.
2646 * cli-out.h: Revert.
2647 * cli-out.c: Revert.
2648 * charset.c: Revert.
2649 * c-varobj.c: Revert.
2650 * c-valprint.c: Revert.
2651 * c-typeprint.c: Revert.
2653 * buildsym.c: Revert.
2654 * buildsym-legacy.c: Revert.
2655 * build-id.h: Revert.
2656 * build-id.c: Revert.
2658 * bsd-uthread.c: Revert.
2659 * breakpoint.h: Revert.
2660 * breakpoint.c: Revert.
2661 * break-catch-throw.c: Revert.
2662 * break-catch-syscall.c: Revert.
2663 * break-catch-sig.c: Revert.
2664 * blockframe.c: Revert.
2666 * bfin-tdep.c: Revert.
2667 * bfin-linux-tdep.c: Revert.
2668 * bfd-target.c: Revert.
2670 * ax-general.c: Revert.
2673 * avr-tdep.c: Revert.
2675 * auto-load.c: Revert.
2676 * arm-wince-tdep.c: Revert.
2677 * arm-tdep.c: Revert.
2678 * arm-symbian-tdep.c: Revert.
2679 * arm-pikeos-tdep.c: Revert.
2680 * arm-obsd-tdep.c: Revert.
2681 * arm-nbsd-tdep.c: Revert.
2682 * arm-nbsd-nat.c: Revert.
2683 * arm-linux-tdep.c: Revert.
2684 * arm-linux-nat.c: Revert.
2685 * arm-fbsd-tdep.c: Revert.
2686 * arm-fbsd-nat.c: Revert.
2687 * arm-bsd-tdep.c: Revert.
2688 * arch-utils.c: Revert.
2689 * arc-tdep.c: Revert.
2690 * arc-newlib-tdep.c: Revert.
2691 * annotate.h: Revert.
2692 * annotate.c: Revert.
2693 * amd64-windows-tdep.c: Revert.
2694 * amd64-windows-nat.c: Revert.
2695 * amd64-tdep.c: Revert.
2696 * amd64-sol2-tdep.c: Revert.
2697 * amd64-obsd-tdep.c: Revert.
2698 * amd64-obsd-nat.c: Revert.
2699 * amd64-nbsd-tdep.c: Revert.
2700 * amd64-nbsd-nat.c: Revert.
2701 * amd64-nat.c: Revert.
2702 * amd64-linux-tdep.c: Revert.
2703 * amd64-linux-nat.c: Revert.
2704 * amd64-fbsd-tdep.c: Revert.
2705 * amd64-fbsd-nat.c: Revert.
2706 * amd64-dicos-tdep.c: Revert.
2707 * amd64-darwin-tdep.c: Revert.
2708 * amd64-bsd-nat.c: Revert.
2709 * alpha-tdep.c: Revert.
2710 * alpha-obsd-tdep.c: Revert.
2711 * alpha-nbsd-tdep.c: Revert.
2712 * alpha-mdebug-tdep.c: Revert.
2713 * alpha-linux-tdep.c: Revert.
2714 * alpha-linux-nat.c: Revert.
2715 * alpha-bsd-tdep.c: Revert.
2716 * alpha-bsd-nat.c: Revert.
2717 * aix-thread.c: Revert.
2719 * addrmap.c: Revert.
2720 * ada-varobj.c: Revert.
2721 * ada-valprint.c: Revert.
2722 * ada-typeprint.c: Revert.
2723 * ada-tasks.c: Revert.
2724 * ada-lang.c: Revert.
2725 * aarch64-tdep.c: Revert.
2726 * aarch64-ravenscar-thread.c: Revert.
2727 * aarch64-newlib-tdep.c: Revert.
2728 * aarch64-linux-tdep.c: Revert.
2729 * aarch64-linux-nat.c: Revert.
2730 * aarch64-fbsd-tdep.c: Revert.
2731 * aarch64-fbsd-nat.c: Revert.
2732 * aarch32-linux-nat.c: Revert.
2734 2019-04-05 Tom Tromey <tom@tromey.com>
2736 * ft32-tdep.c: Sort headers.
2737 * frv-tdep.c: Sort headers.
2738 * frv-linux-tdep.c: Sort headers.
2739 * frame.c: Sort headers.
2740 * frame-unwind.c: Sort headers.
2741 * frame-base.c: Sort headers.
2742 * fork-child.c: Sort headers.
2743 * findvar.c: Sort headers.
2744 * findcmd.c: Sort headers.
2745 * filesystem.c: Sort headers.
2746 * filename-seen-cache.h: Sort headers.
2747 * filename-seen-cache.c: Sort headers.
2748 * fbsd-tdep.c: Sort headers.
2749 * fbsd-nat.h: Sort headers.
2750 * fbsd-nat.c: Sort headers.
2751 * f-valprint.c: Sort headers.
2752 * f-typeprint.c: Sort headers.
2753 * f-lang.c: Sort headers.
2754 * extension.h: Sort headers.
2755 * extension.c: Sort headers.
2756 * extension-priv.h: Sort headers.
2757 * expprint.c: Sort headers.
2758 * exec.h: Sort headers.
2759 * exec.c: Sort headers.
2760 * exceptions.c: Sort headers.
2761 * event-top.c: Sort headers.
2762 * event-loop.c: Sort headers.
2763 * eval.c: Sort headers.
2764 * elfread.c: Sort headers.
2765 * dwarf2read.h: Sort headers.
2766 * dwarf2read.c: Sort headers.
2767 * dwarf2loc.c: Sort headers.
2768 * dwarf2expr.h: Sort headers.
2769 * dwarf2expr.c: Sort headers.
2770 * dwarf2-frame.c: Sort headers.
2771 * dwarf2-frame-tailcall.c: Sort headers.
2772 * dwarf-index-write.h: Sort headers.
2773 * dwarf-index-write.c: Sort headers.
2774 * dwarf-index-common.c: Sort headers.
2775 * dwarf-index-cache.h: Sort headers.
2776 * dwarf-index-cache.c: Sort headers.
2777 * dummy-frame.c: Sort headers.
2778 * dtrace-probe.c: Sort headers.
2779 * disasm.h: Sort headers.
2780 * disasm.c: Sort headers.
2781 * disasm-selftests.c: Sort headers.
2782 * dictionary.c: Sort headers.
2783 * dicos-tdep.c: Sort headers.
2784 * demangle.c: Sort headers.
2785 * dcache.h: Sort headers.
2786 * dcache.c: Sort headers.
2787 * darwin-nat.h: Sort headers.
2788 * darwin-nat.c: Sort headers.
2789 * darwin-nat-info.c: Sort headers.
2790 * d-valprint.c: Sort headers.
2791 * d-namespace.c: Sort headers.
2792 * d-lang.c: Sort headers.
2793 * ctf.c: Sort headers.
2794 * csky-tdep.c: Sort headers.
2795 * csky-linux-tdep.c: Sort headers.
2796 * cris-tdep.c: Sort headers.
2797 * cris-linux-tdep.c: Sort headers.
2798 * cp-valprint.c: Sort headers.
2799 * cp-support.c: Sort headers.
2800 * cp-namespace.c: Sort headers.
2801 * cp-abi.c: Sort headers.
2802 * corelow.c: Sort headers.
2803 * corefile.c: Sort headers.
2804 * continuations.c: Sort headers.
2805 * completer.h: Sort headers.
2806 * completer.c: Sort headers.
2807 * complaints.c: Sort headers.
2808 * coffread.c: Sort headers.
2809 * coff-pe-read.c: Sort headers.
2810 * cli-out.h: Sort headers.
2811 * cli-out.c: Sort headers.
2812 * charset.c: Sort headers.
2813 * c-varobj.c: Sort headers.
2814 * c-valprint.c: Sort headers.
2815 * c-typeprint.c: Sort headers.
2816 * c-lang.c: Sort headers.
2817 * buildsym.c: Sort headers.
2818 * buildsym-legacy.c: Sort headers.
2819 * build-id.h: Sort headers.
2820 * build-id.c: Sort headers.
2821 * btrace.c: Sort headers.
2822 * bsd-uthread.c: Sort headers.
2823 * breakpoint.h: Sort headers.
2824 * breakpoint.c: Sort headers.
2825 * break-catch-throw.c: Sort headers.
2826 * break-catch-syscall.c: Sort headers.
2827 * break-catch-sig.c: Sort headers.
2828 * blockframe.c: Sort headers.
2829 * block.c: Sort headers.
2830 * bfin-tdep.c: Sort headers.
2831 * bfin-linux-tdep.c: Sort headers.
2832 * bfd-target.c: Sort headers.
2833 * bcache.c: Sort headers.
2834 * ax-general.c: Sort headers.
2835 * ax-gdb.h: Sort headers.
2836 * ax-gdb.c: Sort headers.
2837 * avr-tdep.c: Sort headers.
2838 * auxv.c: Sort headers.
2839 * auto-load.c: Sort headers.
2840 * arm-wince-tdep.c: Sort headers.
2841 * arm-tdep.c: Sort headers.
2842 * arm-symbian-tdep.c: Sort headers.
2843 * arm-pikeos-tdep.c: Sort headers.
2844 * arm-obsd-tdep.c: Sort headers.
2845 * arm-nbsd-tdep.c: Sort headers.
2846 * arm-nbsd-nat.c: Sort headers.
2847 * arm-linux-tdep.c: Sort headers.
2848 * arm-linux-nat.c: Sort headers.
2849 * arm-fbsd-tdep.c: Sort headers.
2850 * arm-fbsd-nat.c: Sort headers.
2851 * arm-bsd-tdep.c: Sort headers.
2852 * arch-utils.c: Sort headers.
2853 * arc-tdep.c: Sort headers.
2854 * arc-newlib-tdep.c: Sort headers.
2855 * annotate.h: Sort headers.
2856 * annotate.c: Sort headers.
2857 * amd64-windows-tdep.c: Sort headers.
2858 * amd64-windows-nat.c: Sort headers.
2859 * amd64-tdep.c: Sort headers.
2860 * amd64-sol2-tdep.c: Sort headers.
2861 * amd64-obsd-tdep.c: Sort headers.
2862 * amd64-obsd-nat.c: Sort headers.
2863 * amd64-nbsd-tdep.c: Sort headers.
2864 * amd64-nbsd-nat.c: Sort headers.
2865 * amd64-nat.c: Sort headers.
2866 * amd64-linux-tdep.c: Sort headers.
2867 * amd64-linux-nat.c: Sort headers.
2868 * amd64-fbsd-tdep.c: Sort headers.
2869 * amd64-fbsd-nat.c: Sort headers.
2870 * amd64-dicos-tdep.c: Sort headers.
2871 * amd64-darwin-tdep.c: Sort headers.
2872 * amd64-bsd-nat.c: Sort headers.
2873 * alpha-tdep.c: Sort headers.
2874 * alpha-obsd-tdep.c: Sort headers.
2875 * alpha-nbsd-tdep.c: Sort headers.
2876 * alpha-mdebug-tdep.c: Sort headers.
2877 * alpha-linux-tdep.c: Sort headers.
2878 * alpha-linux-nat.c: Sort headers.
2879 * alpha-bsd-tdep.c: Sort headers.
2880 * alpha-bsd-nat.c: Sort headers.
2881 * aix-thread.c: Sort headers.
2882 * agent.c: Sort headers.
2883 * addrmap.c: Sort headers.
2884 * ada-varobj.c: Sort headers.
2885 * ada-valprint.c: Sort headers.
2886 * ada-typeprint.c: Sort headers.
2887 * ada-tasks.c: Sort headers.
2888 * ada-lang.c: Sort headers.
2889 * aarch64-tdep.c: Sort headers.
2890 * aarch64-ravenscar-thread.c: Sort headers.
2891 * aarch64-newlib-tdep.c: Sort headers.
2892 * aarch64-linux-tdep.c: Sort headers.
2893 * aarch64-linux-nat.c: Sort headers.
2894 * aarch64-fbsd-tdep.c: Sort headers.
2895 * aarch64-fbsd-nat.c: Sort headers.
2896 * aarch32-linux-nat.c: Sort headers.
2898 2019-04-04 Tom Tromey <tom@tromey.com>
2900 * varobj.c (varobj_create): Update.
2901 * rust-exp.y (struct rust_parser) <update_innermost_block,
2902 lookup_symbol>: New methods.
2903 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2905 (rust_parser::rust_lookup_type)
2906 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2907 * printcmd.c (display_command, do_one_display): Update.
2908 * parser-defs.h (struct parser_state) <parser_state>: Add
2909 "tracker" parameter.
2910 (block_tracker): New member.
2911 (class innermost_block_tracker) <innermost_block_tracker>: Add
2913 <reset>: Remove method.
2914 (innermost_block): Don't declare.
2915 (null_post_parser): Update.
2916 * parse.c (innermost_block): Remove global.
2917 (write_dollar_variable): Update.
2918 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2919 Remove "tracker_types" parameter.
2920 (parse_expression): Add "tracker" parameter.
2921 (parse_expression_for_completion): Update.
2922 (null_post_parser): Add "tracker" parameter.
2923 * p-exp.y: Update rules.
2924 * m2-exp.y: Update rules.
2925 * language.h (struct language_defn) <la_post_parser>: Add
2926 "tracker" parameter.
2927 * go-exp.y: Update rules.
2928 * f-exp.y: Update rules.
2929 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2931 * d-exp.y: Update rules.
2932 * c-exp.y: Update rules.
2933 * breakpoint.c (set_breakpoint_condition): Create an
2934 innermost_block_tracker.
2935 (watch_command_1): Likewise.
2936 * ada-lang.c (resolve): Add "tracker" parameter.
2937 (resolve_subexp): Likewise.
2938 * ada-exp.y (write_var_from_sym): Update.
2940 2019-04-04 Tom Tromey <tom@tromey.com>
2942 * type-stack.h: New file.
2943 * type-stack.c: New file.
2944 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2946 (insert_into_type_stack, insert_type, push_type, push_type_int)
2947 (insert_type_address_space, pop_type, pop_type_int)
2948 (pop_typelist, pop_type_stack, append_type_stack)
2949 (push_type_stack, get_type_stack, push_typelist)
2950 (follow_type_instance_flags, follow_types): Don't declare.
2951 * parse.c (type_stack): Remove global.
2952 (parse_exp_in_context): Update.
2953 (insert_into_type_stack, insert_type, push_type, push_type_int)
2954 (insert_type_address_space, pop_type, pop_type_int)
2955 (pop_typelist, pop_type_stack, append_type_stack)
2956 (push_type_stack, get_type_stack, push_typelist)
2957 (follow_type_instance_flags, follow_types): Remove (moved to
2959 * f-exp.y (type_stack): New global.
2961 (push_kind_type, f_parse): Update.
2962 * d-exp.y (type_stack): New global.
2965 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2967 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2968 (HFILES_NO_SRCDIR): Add type-stack.h.
2970 2019-04-04 Tom Tromey <tom@tromey.com>
2972 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2973 (rust_parser::convert_ast_to_expression, rust_parse)
2974 (rust_lex_test_completion, rust_lex_tests): Update.
2975 * parser-defs.h (struct expr_completion_state): New.
2976 (struct parser_state) <parser_state>: Add completion parameter.
2977 <mark_struct_expression, mark_completion_tag>: New methods.
2978 <parse_completion, m_completion_state>: New members.
2979 (prefixify_expression, null_post_parser): Update.
2980 (mark_struct_expression, mark_completion_tag): Don't declare.
2981 * parse.c (parse_completion, expout_last_struct)
2982 (expout_tag_completion_type, expout_completion_name): Remove
2984 (parser_state::mark_struct_expression)
2985 (parser_state::mark_completion_tag): Now methods.
2986 (prefixify_expression): Add last_struct parameter.
2987 (prefixify_subexp): Likewise.
2988 (parse_exp_1): Update.
2989 (parse_exp_in_context): Add cstate parameter. Update.
2990 (parse_expression_for_completion): Create an
2991 expr_completion_state.
2992 (null_post_parser): Add "completion" parameter.
2993 * p-exp.y: Update rules.
2995 * language.h (struct language_defn) <la_post_parser>: Add
2996 "completing" parameter.
2997 * go-exp.y: Update rules.
2998 (lex_one_token): Update.
2999 * expression.h (parse_completion): Don't declare.
3000 * d-exp.y: Update rules.
3001 (lex_one_token): Update rules.
3002 * c-exp.y: Update rules.
3003 (lex_one_token): Update.
3004 * ada-lang.c (resolve): Add "parse_completion" parameter.
3005 (resolve_subexp): Likewise.
3006 (ada_resolve_function): Likewise.
3008 2019-04-04 Tom Tromey <tom@tromey.com>
3010 * parser-defs.h (struct parser_state) <start_arglist,
3011 end_arglist>: New methods.
3012 <arglist_len, m_funcall_chain>: New members.
3013 (arglist_len, start_arglist, end_arglist): Don't declare.
3014 * parse.c (arglist_len, funcall_chain): Remove global.
3015 (start_arglist, end_arglist): Remove functions.
3016 (parse_exp_in_context): Update.
3017 * p-exp.y: Update rules.
3018 * m2-exp.y: Update rules.
3019 * go-exp.y: Update rules.
3020 * f-exp.y: Update rules.
3021 * d-exp.y: Update rules.
3022 * c-exp.y: Update rules.
3024 2019-04-04 Tom Tromey <tom@tromey.com>
3026 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3027 lex_operator, push_back>: New methods.
3029 (rust_parser::lex_hex, lex_escape): Rename and update.
3030 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3031 (rust_parser::lex_operator): Rename and update.
3032 (rust_parser::lex_number, rustyylex, rustyyerror)
3033 (rust_lex_test_init, rust_lex_test_sequence)
3034 (rust_lex_test_push_back, rust_lex_tests): Update.
3035 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3037 <lexptr, prev_lexptr>: New members.
3038 (lexptr, prev_lexptr): Don't declare.
3039 * parse.c (lexptr, prev_lexptr): Remove globals.
3040 (parse_exp_in_context): Update.
3041 * p-exp.y (yylex, yyerror): Update.
3042 * m2-exp.y (parse_number, yylex, yyerror): Update.
3043 * go-exp.y (lex_one_token, yyerror): Update.
3044 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3045 * d-exp.y (lex_one_token, yyerror): Update.
3046 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3047 (lex_one_token, yyerror): Update.
3048 * ada-lex.l (YY_INPUT): Update.
3049 (rewind_to_char): Update.
3050 * ada-exp.y (yyerror): Update.
3052 2019-04-04 Tom Tromey <tom@tromey.com>
3054 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3055 * parser-defs.h (struct parser_state) <parser_state>: Add new
3057 <comma_terminates>: New member.
3058 (comma_terminates): Don't declare global.
3059 * parse.c (comma_terminates): Remove global.
3060 (parse_exp_in_context): Update.
3061 * p-exp.y (yylex): Update.
3062 * m2-exp.y (yylex): Update.
3063 * go-exp.y (lex_one_token): Update.
3064 * f-exp.y (yylex): Update.
3065 * d-exp.y (lex_one_token): Update.
3066 * c-exp.y (lex_one_token): Update.
3067 * ada-lex.l: Update.
3069 2019-04-04 Tom Tromey <tom@tromey.com>
3071 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3072 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3073 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3074 * parser-defs.h (paren_depth): Don't declare.
3075 * parse.c (paren_depth): Remove global.
3076 (parse_exp_in_context): Update.
3077 * p-exp.y (paren_depth): New global.
3078 (pascal_parse): Initialize it.
3079 * m2-exp.y (paren_depth): New global.
3080 (m2_parse): Initialize it.
3081 * go-exp.y (paren_depth): New global.
3082 (go_parse): Initialize it.
3083 * f-exp.y (paren_depth): New global.
3084 (f_parse): Initialize it.
3085 * d-exp.y (paren_depth): New global.
3086 (d_parse): Initialize it.
3087 * c-exp.y (paren_depth): New global.
3088 (c_parse): Initialize it.
3089 * ada-lex.l (paren_depth): New global.
3090 (lexer_init): Initialize it.
3092 2019-04-04 Tom Tromey <tom@tromey.com>
3094 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3095 (rust_parser::convert_ast_to_type)
3096 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3097 * parser-defs.h (struct parser_state) <parser_state>: Add
3098 parameters. Initialize new members.
3099 <expression_context_block, expression_context_pc>: New members.
3100 * parse.c (expression_context_block, expression_context_pc):
3102 (parse_exp_in_context): Update.
3103 * p-exp.y: Update all rules.
3105 * m2-exp.y: Update all rules.
3107 * go-exp.y (yylex): Update.
3108 * f-exp.y (yylex): Update.
3109 * d-exp.y: Update all rules.
3111 * c-exp.y: Update all rules.
3112 (lex_one_token, classify_name, yylex, c_parse): Update.
3113 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3115 2019-04-04 Tom Tromey <tom@tromey.com>
3117 * gdbarch.h, gdbarch.c: Rebuild.
3118 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3120 (struct stap_parse_info): Replace "parser_state" with
3122 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3123 (parser_state): New class.
3124 * parse.c (expr_builder): Rename.
3125 (expr_builder::release): Rename.
3126 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3127 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3128 (write_exp_elt_longcst, write_exp_elt_floatcst)
3129 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3130 (write_exp_string_vector, write_exp_bitstring)
3131 (write_exp_msymbol, mark_struct_expression)
3132 (write_dollar_variable)
3133 (insert_type_address_space, increase_expout_size): Replace
3134 "parser_state" with "expr_builder".
3135 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3136 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3137 "parser_state" with "expr_builder".
3139 2019-04-04 Tom Tromey <tom@tromey.com>
3141 * rust-exp.y: Replace "parse_language" with method call.
3143 (yylex): Replace "parse_language" with method call.
3145 (yylex): Replace "parse_language" with method call.
3146 * go-exp.y (classify_name): Replace "parse_language" with method
3148 * f-exp.y (yylex): Replace "parse_language" with method call.
3149 * d-exp.y (lex_one_token): Replace "parse_language" with method
3152 (lex_one_token, classify_name, yylex): Replace "parse_language"
3154 * ada-exp.y (find_primitive_type, type_char)
3155 (type_system_address): Replace "parse_language" with method call.
3157 2019-04-04 Tom Tromey <tom@tromey.com>
3159 * rust-exp.y: Replace "parse_gdbarch" with method call.
3160 * parse.c (write_dollar_variable, insert_type_address_space):
3161 Replace "parse_gdbarch" with method call.
3162 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3164 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3166 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3167 "parse_gdbarch" with method call.
3168 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3170 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3171 "parse_gdbarch" with method call.
3172 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3173 "parse_gdbarch" with method call.
3174 * c-exp.y (parse_type, parse_number, classify_name): Replace
3175 "parse_gdbarch" with method call.
3176 * ada-lex.l: Replace "parse_gdbarch" with method call.
3177 * ada-exp.y (parse_type, find_primitive_type, type_char)
3178 (type_system_address): Replace "parse_gdbarch" with method call.
3180 2019-04-04 Tom Tromey <tom@tromey.com>
3182 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3183 * stap-probe.c (stap_parse_argument): Update.
3184 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3185 initial_size parameter.
3186 * rust-exp.y (rust_lex_tests): Update.
3187 * parse.c (parser_state): Update.
3188 (parse_exp_in_context): Update.
3189 * parser-defs.h (struct parser_state) <parser_state>: Remove
3190 "initial_size" parameter.
3192 2019-04-04 Tom Tromey <tom@tromey.com>
3194 * parser-defs.h (increase_expout_size): Don't declare.
3195 * parse.c (increase_expout_size): Now static.
3197 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3199 * gnu-nat.c (gnu_nat_target::wait): Fix
3200 target_waitstatus_to_string call.
3202 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3204 * eval.c (evaluate_subexp_standard): Handle internal functions
3205 during Fortran function call handling.
3207 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3209 * NEWS: Mention new internal functions.
3210 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3211 (read_base_type): Use dwarf2_init_complex_target_type.
3212 * value.c (creal_internal_fn): New function.
3213 (cimag_internal_fn): New function.
3214 (_initialize_values): Register new internal functions.
3216 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3218 * infrun.c (stop_all_threads): If debug_infrun, always
3219 trace the wait status after wait_one, using
3220 target_waitstatus_to_string and target_pid_to_str.
3221 (handle_inferior_event): Replace various trace of
3222 wait status kind by a single trace.
3223 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3224 wait status kind image by target_waitstatus_to_string.
3225 * target/waitstatus.c (target_waitstatus_to_string): Fix
3228 2019-04-01 Tom Tromey <tromey@adacore.com>
3231 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3233 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3234 Pedro Alves <palves@redhat.com>
3236 * top.c (quit_force): Call 'finalize_values'.
3237 * value.c (finalize_values): New function.
3238 * value.h (finalize_values): Declare.
3240 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3242 * NEWS: Announce $_gdb_major and $_gdb_minor.
3244 * top.c (init_gdb_version_vars): New function.
3245 (gdb_init): Call init_gdb_version_vars.
3247 2019-03-29 Tom Tromey <tromey@adacore.com>
3249 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3250 help text. Remove dead code.
3252 2019-03-29 Keith Seitz <keiths@redhat.com>
3254 From Siddhesh Poyarekar:
3255 * f-lang.h (f77_get_upperbound): Return LONGEST.
3256 (f77_get_lowerbound): Likewise.
3257 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3258 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3260 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3261 plongest to format print it.
3262 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3263 (f77_get_upperbound): Likewise.
3264 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3265 LOWER_BOUND to LONGEST.
3266 (f77_create_arrayprint_offset_tbl): Likewise.
3268 2019-03-29 Keith Seitz <keiths@redhat.com>
3270 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3271 %s/pulongest for TYPE_LENGTH instead of %d in format
3273 * ada-typerint.c (ada_print_type): Likewise.
3274 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3275 * compile/compile-c-support.c (generate_register_struct): Likewise.
3276 * gdbtypes.c (recursive_dump_type): Likewise.
3277 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3278 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3279 instead of %d in format strings.
3280 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3281 to std::min to ULONGEST.
3282 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3283 instead of %d in format strings.
3284 * tracepoint.c (info_scope_command): Likewise.
3285 * typeprint.c (print_offset_data::update)
3286 (print_offset_data::finish): Likewise.
3287 * xtensa-tdep.c (xtensa_store_return_value)
3288 (xtensa_push_dummy_call): Likewise.
3290 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3292 * windows-nat.c (display_selector): Fixed format specifications
3295 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3297 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3299 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3301 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3302 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3303 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3304 (nios2_linux_init_abi): Install it.
3306 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3308 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3310 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3312 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3314 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3315 Tom Tromey <tromey@adacore.com>
3317 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3319 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3321 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3322 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3323 method to compute the bounds of range types. Also print "[evaluated]"
3324 if the bounds' values come from a dynamic evaluation.
3326 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3328 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3329 whitespace when pretty printing is on.
3331 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3333 * ppc-linux-nat.c: Add include.
3335 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3337 * NEWS: Mention AArch64 Pointer Authentication.
3339 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3341 * arm-linux-nat.c: Add include.
3343 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3345 * source-cache.c (source_cache::get_source_lines): Re-read
3346 fullname after calling open_source_file.
3348 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3350 * NEWS: Mention TLS support for FreeBSD.
3352 2019-03-25 Tom Tromey <tromey@adacore.com>
3354 * minsyms.c (BUNCH_SIZE): Update comment.
3355 (~minimal_symbol_reader): Remove old comment.
3356 (compact_minimal_symbols): Update comment.
3357 (minimal_symbol_reader::install): Remove old comment. Update
3360 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3362 * s390-linux-nat.c: Add include.
3364 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3366 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3367 Call linux_get_hwcap.
3368 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3370 (aarch64_linux_get_hwcap): Remove function.
3371 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3373 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3375 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3376 * linux-tdep.c (linux_get_hwcap): Add function.
3377 (linux_get_hwcap2): Likewise.
3378 * linux-tdep.h (linux_get_hwcap): Add declaration.
3379 (linux_get_hwcap2): Likewise.
3380 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3381 (ppc_linux_get_hwcap2): Likewise.
3382 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3384 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3385 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3386 (ppc_linux_nat_target::read_description): Likewise.
3387 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3388 * s390-linux-nat.c: Likewise.
3389 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3391 2019-03-24 Tom Tromey <tom@tromey.com>
3393 * ada-lang.c (standard_lookup): Simplify initialization.
3394 (ada_lookup_symbol_nonlocal): Simplify return.
3395 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3396 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3397 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3398 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3400 * solib.c (solib_global_lookup): Simplify.
3401 * symtab.c (null_block_symbol): Remove.
3402 (symbol_cache_lookup): Simplify returns.
3403 (lookup_language_this): Simplify returns.
3404 (lookup_symbol_aux): Simplify return.
3405 (lookup_local_symbol): Simplify returns.
3406 (lookup_global_symbol_from_objfile): Simplify return.
3407 (lookup_symbol_in_objfile_symtabs)
3408 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3409 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3410 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3411 * cp-namespace.c (cp_lookup_bare_symbol)
3412 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3413 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3414 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3415 (cp_lookup_symbol_via_imports): Simplify initialization.
3416 (find_symbol_in_baseclass): Likewise.
3417 * symtab.h (null_block_symbol): Remove.
3418 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3419 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3420 (d_lookup_symbol_module): Likewise.
3421 (find_symbol_in_baseclass): Simplify initialization.
3423 2019-03-24 Tom Tromey <tom@tromey.com>
3425 * expression.h: Don't include symtab.h.
3426 (struct block): Forward declare.
3428 2019-03-24 Tom Tromey <tom@tromey.com>
3430 * c-exp.y (typebase): Remove casts.
3431 * gdbtypes.c (lookup_unsigned_typename, )
3432 (lookup_signed_typename): Remove cast.
3433 * eval.c (parse_to_comma_and_eval): Remove cast.
3434 * parse.c (write_dollar_variable): Remove cast.
3435 * block.h (struct block) <superblock>: Now const.
3436 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3437 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3438 (map_block): Make "block" const.
3439 * symfile.h (struct quick_symbol_functions)
3440 <map_matching_symbols>: Constify block argument to "callback".
3441 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3443 (find_pc_sect_compunit_symtab): Make "b" const.
3444 (find_symbol_at_address): Likewise.
3445 (search_symbols): Likewise.
3446 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3447 (dw2_debug_names_lookup_symbol): Likewise.
3448 (dw2_map_matching_symbols): Update.
3449 * p-valprint.c (pascal_val_print): Remove "block".
3450 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3451 (aux_add_nonlocal_symbols): Make "block" const.
3452 (resolve_subexp): Remove cast.
3453 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3455 (iterate_over_file_blocks): Likewise.
3456 * f-exp.y (%union) <bval>: Remove.
3457 * coffread.c (patch_opaque_types): Make "b" const.
3458 * spu-tdep.c (spu_catch_start): Make "block" const.
3459 * c-valprint.c (print_unpacked_pointer): Remove "block".
3460 * symmisc.c (dump_symtab_1): Make "b" const.
3461 (block_depth): Make "block" const.
3462 * d-exp.y (%union) <bval>: Remove.
3463 * cp-support.h (cp_lookup_rtti_type): Update.
3464 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3465 * psymtab.c (psym_lookup_symbol): Make "block" const.
3466 (maintenance_check_psymtabs): Make "b" const.
3467 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3468 (enumerate_locals, enumerate_args): Update.
3469 * python/py-symtab.c (stpy_global_block): Make "block" const.
3470 (stpy_static_block): Likewise.
3471 * inline-frame.c (block_starting_point_at): Make "new_block"
3473 * block.c (find_block_in_blockvector): Make return type const.
3474 (blockvector_for_pc_sect): Make "b" const.
3475 (find_block_in_blockvector): Make "b" const.
3477 2019-03-23 Tom Tromey <tom@tromey.com>
3479 * varobj.c (varobj_create): Update.
3480 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3481 * printcmd.c (display_command, do_one_display): Don't reset
3483 * parser-defs.h (enum innermost_block_tracker_type): Move to
3485 (innermost_block): Update comment.
3486 * parse.c (parse_exp_1): Add tracker_types parameter.
3487 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3488 tracker_types parameter. Reset innermost_block.
3489 (parse_exp_in_context): Remove.
3490 (parse_expression_for_completion): Update.
3491 * objfiles.c (~objfile): Don't reset expression_context_block or
3493 * expression.h (enum innermost_block_tracker_type): Move from
3495 (parse_exp_1): Add tracker_types parameter.
3496 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3497 reset innermost_block.
3499 2019-03-23 Tom Tromey <tom@tromey.com>
3501 * objfiles.h: Include bcache.h.
3503 2019-03-23 Tom Tromey <tom@tromey.com>
3505 * linespec.c (get_current_search_block): Use
3506 scoped_restore_current_language.
3507 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3509 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3510 Jiong Wang <jiong.wang@arm.com>
3512 * aarch64-linux-tdep.c
3513 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3515 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3517 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3518 Jiong Wang <jiong.wang@arm.com>
3520 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3522 (aarch64_analyze_prologue_test): Add PACIASP test.
3523 (aarch64_prologue_prev_register): Unmask PC value.
3525 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3526 Jiong Wang <jiong.wang@arm.com>
3528 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3529 (aarch64_dwarf2_prev_register): Unmask PC value.
3530 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3531 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3532 DW_CFA_AARCH64_negate_ra_state.
3533 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3535 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3536 Jiong Wang <jiong.wang@arm.com>
3538 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3540 (aarch64_pseudo_register_name): Likewise.
3541 (aarch64_pseudo_register_type): Likewise.
3542 (aarch64_pseudo_register_reggroup_p): Likewise.
3543 (aarch64_gdbarch_init): Add pauth registers.
3544 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3545 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3546 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3547 (struct gdbarch_tdep): Add regnum for ra_state.
3549 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3550 Jiong Wang <jiong.wang@arm.com>
3552 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3554 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3555 Jiong Wang <jiong.wang@arm.com>
3557 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3559 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3560 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3561 (aarch64_gdbarch_init): Add puth registers.
3562 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3563 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3564 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3566 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3567 Jiong Wang <jiong.wang@arm.com>
3569 * aarch64-linux-nat.c
3570 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3571 * aarch64-linux-tdep.c
3572 (aarch64_linux_core_read_description): Likewise.
3573 (aarch64_linux_get_hwcap): New function.
3574 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3575 (aarch64_linux_get_hwcap): New declaration.
3577 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3578 Jiong Wang <jiong.wang@arm.com>
3580 * aarch64-linux-nat.c
3581 (aarch64_linux_nat_target::read_description): Add pauth param.
3582 * aarch64-linux-tdep.c
3583 (aarch64_linux_core_read_description): Likewise.
3584 * aarch64-tdep.c (struct target_desc): Add in pauth.
3585 (aarch64_read_description): Add pauth param.
3586 (aarch64_gdbarch_init): Likewise.
3587 * aarch64-tdep.h (aarch64_read_description): Likewise.
3588 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3589 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3590 * features/Makefile: Add new files.
3591 * features/aarch64-pauth.c: New file.
3592 * features/aarch64-pauth.xml: New file.
3594 2019-03-20 Tom Tromey <tromey@adacore.com>
3596 * infrun.c (handle_inferior_event): Rename from
3597 handle_inferior_event_1. Create a scoped_value_mark.
3598 (handle_inferior_event): Remove.
3600 2019-03-19 Tom Tromey <tromey@adacore.com>
3602 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3603 * infrun.h (print_stop_event): Add "displays" parameter.
3604 * infrun.c (print_stop_event): Add "displays" parameter.
3606 2019-03-19 Pedro Alves <palves@redhat.com>
3608 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3609 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3610 to -1. Fix TABs vs spaces.
3611 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3612 * tui/tui-out.h (tui_ui_out) Add intro comments.
3613 <m_line, m_start_of_line>: In-class initialize, and add describing
3616 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3618 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3620 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3622 2019-03-18 Pedro Alves <palves@redhat.com>
3623 Eli Zaretskii <eliz@gnu.org>
3625 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3626 m_line and m_start_of_line.
3628 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3630 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3631 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3632 it returns a newline. This fixes a regression in TU mode, whereby
3633 the next line is output on the same screen line as the user input.
3635 2019-03-18 Tom Tromey <tromey@adacore.com>
3637 * minsyms.c (minimal_symbol_reader::install): Remove call to
3640 2019-03-18 Pedro Alves <palves@redhat.com>
3642 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3644 (apply_style): New, factored out from ...
3645 (apply_ansi_escape): ... this. Handle reverse video mode.
3646 (tui_set_reverse_mode): New function.
3647 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3648 * tui/tui-winsource.c (tui_show_source_line): Use
3649 tui_set_reverse_mode instead of setting A_STANDOUT.
3650 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3653 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3655 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3658 2019-03-18 Tom Tromey <tromey@adacore.com>
3660 * ada-lang.c (empty_array): Add "high" parameter.
3661 (ada_evaluate_subexp): Update.
3663 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3665 * unittests/string_view-selftests.c: Define
3666 _initialize_string_view_selftests unconditionally.
3668 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3671 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3673 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3676 * windows-nat.c (display_selector): Fix format specifiers.
3678 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3680 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3681 tui_refill_source_window instead of tui_refresh_win, to update the
3682 current execution line. This fixes redisplay of the current line
3683 when stepping through the code with "next" or "step".
3685 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3687 * source-cache.c (source_cache::get_source_lines): Call
3688 find_source_lines to initialize s->nlines. This fixes vertical
3689 scrolling of TUI source window when the DOWN arrow is pressed.
3691 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3693 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3694 linux-thread-db.c (_initialize_thread_db): Likewise.
3696 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3698 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3699 wclrtoeol in tui_show_source_line". This reverts changes made in
3700 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3702 2019-03-15 Tom Tromey <tom@tromey.com>
3704 * symtab.h (struct minimal_symbol): Derive from
3705 general_symbol_info.
3706 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3707 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3708 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3709 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3710 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3711 (MSYMBOL_SEARCH_NAME): Update.
3712 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3713 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3714 * minsyms.c (minimal_symbol_reader::record_full): Update.
3716 2019-03-15 Tom Tromey <tom@tromey.com>
3718 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3720 2019-03-15 Tom Tromey <tom@tromey.com>
3722 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3724 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3726 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3727 (build_minimal_symbol_hash_tables)
3728 (minimal_symbol_reader::install): Update.
3730 2019-03-15 Tom Tromey <tom@tromey.com>
3732 * symtab.c (create_demangled_names_hash): Update.
3733 (symbol_set_names): Update.
3734 * objfiles.h (struct objfile_per_bfd_storage)
3735 <demangled_names_hash>: Now an htab_up.
3736 * objfiles.c (objfile_per_bfd_storage): Simplify.
3738 2019-03-15 Tom Tromey <tom@tromey.com>
3740 * objfiles.h (struct objfile_per_bfd_storage): Declare
3742 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3744 (get_objfile_bfd_data): Use new. Don't initialize
3746 (free_objfile_per_bfd_storage): Remove.
3747 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3749 2019-03-15 Tom Tromey <tom@tromey.com>
3751 * symfile.c (reread_symbols): Update.
3752 * objfiles.c (objfile::objfile): Update.
3753 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3754 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3756 (minimal_symbol_reader::install): Update.
3757 (terminate_minimal_symbol_table): Remove.
3758 * jit.c (jit_object_close_impl): Update.
3760 2019-03-15 Tom Tromey <tom@tromey.com>
3762 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3765 2019-03-15 Tom Tromey <tom@tromey.com>
3767 * objfiles.h (struct objfile_per_bfd_storage)
3768 <demangled_hash_languages>: Now a bitset.
3769 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3770 (lookup_minimal_symbol): Update.
3772 2019-03-15 Tom Tromey <tom@tromey.com>
3774 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3775 Don't return the symbol.
3776 * coffread.c (record_minimal_symbol): Use record_full.
3778 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3780 The MS-Windows port of ncurses fails to switch to a color pair if
3781 one or both of the colors are the implicit default colors. This
3782 change records the default colors when TUI is initialized, and
3783 then specifies them explicitly when a color pair uses the default
3784 colors. This allows color styling in TUI mode on MS-Windows.
3786 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3788 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3789 colors in ncurses_norm_attr.
3790 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3791 "none", replace it with the default color recorded in
3794 2019-03-14 Tom Tromey <tromey@adacore.com>
3796 * source-cache.h (class source_cache) <get_source_lines>: Return
3798 * source-cache.c (source_cache::extract_lines): Handle case where
3799 first_pos==npos. Return std::string.
3800 (source_cache::get_source_lines): Update.
3802 2019-03-14 Tom Tromey <tromey@adacore.com>
3804 * NEWS: Add item for "style sources" commands.
3805 * source-cache.c (source_cache::get_source_lines): Check
3807 * cli/cli-style.c (source_styling): New global.
3808 (_initialize_cli_style): Add "style sources" commands.
3809 (show_style_sources): New function.
3810 * cli/cli-style.h (source_styling): Declare.
3812 2019-03-14 Pedro Alves <palves@redhat.com>
3813 Tom Tromey <tromey@adacore.com>
3815 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3816 * tui/tui-winsource.c (tui_refill_source_window): New function,
3818 (tui_horizontal_source_scroll): ... here. Move some logic.
3819 * cli/cli-style.c (set_style_enabled): Notify new observable.
3820 * tui/tui-hooks.c (tui_redisplay_source): New function.
3821 (tui_attach_detach_observers): Attach or detach
3822 tui_redisplay_source.
3823 * observable.h (source_styling_changed): New observable.
3824 * observable.c: Define source_styling_changed observable.
3826 2019-03-13 Tom Tromey <tromey@adacore.com>
3828 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3829 (i386_gnu_nat_target::store_registers): Update.
3830 * target-debug.h (target_debug_print_std_string): New macro.
3831 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3832 * windows-tdep.c (display_one_tib): Update.
3833 * tui/tui-stack.c (tui_make_status_line): Update.
3834 * top.c (print_inferior_quit_action): Update.
3835 * thread.c (thr_try_catch_cmd): Update.
3836 (add_thread_with_info): Update.
3837 (thread_target_id_str): Update.
3838 (thr_try_catch_cmd): Update.
3839 (thread_command): Update.
3840 (thread_find_command): Update.
3841 * record-btrace.c (record_btrace_target::info_record)
3842 (record_btrace_resume_thread, record_btrace_target::resume)
3843 (record_btrace_cancel_resume, record_btrace_step_thread)
3844 (record_btrace_target::wait, record_btrace_target::wait)
3845 (record_btrace_target::wait, record_btrace_target::stop): Update.
3846 * progspace.c (print_program_space): Update.
3847 * process-stratum-target.c
3848 (process_stratum_target::thread_address_space): Update.
3849 * linux-fork.c (linux_fork_mourn_inferior)
3850 (detach_checkpoint_command, info_checkpoints_command)
3851 (linux_fork_context): Update.
3852 (linux_fork_detach): Update.
3853 (class scoped_switch_fork_info): Update.
3854 (delete_checkpoint_command): Update.
3855 * infrun.c (follow_fork_inferior): Update.
3856 (follow_fork_inferior): Update.
3857 (proceed_after_vfork_done): Update.
3858 (handle_vfork_child_exec_or_exit): Update.
3859 (follow_exec): Update.
3860 (displaced_step_prepare_throw): Update.
3861 (displaced_step_restore): Update.
3862 (start_step_over): Update.
3864 (clear_proceed_status_thread): Update.
3866 (print_target_wait_results): Update.
3867 (do_target_wait): Update.
3868 (context_switch): Update.
3869 (stop_all_threads): Update.
3870 (restart_threads): Update.
3871 (finish_step_over): Update.
3872 (handle_signal_stop): Update.
3873 (switch_back_to_stepped_thread): Update.
3874 (keep_going_pass_signal): Update.
3875 (print_exited_reason): Update.
3876 (normal_stop): Update.
3877 * inferior.c (inferior_pid_to_str): Change return type.
3878 (print_selected_inferior): Update.
3879 (add_inferior): Update.
3880 (detach_inferior): Update.
3881 * dummy-frame.c (fprint_dummy_frames): Update.
3882 * dcache.c (dcache_info_1): Update.
3883 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3884 (btrace_fetch, btrace_clear): Update.
3885 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3886 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3888 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3889 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3890 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3891 * gdbarch.c, gdbarch.h: Rebuild.
3892 * gdbarch.sh (core_pid_to_str): Change return type.
3893 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3895 (windows_nat_target::pid_to_str): Change return type.
3896 (windows_delete_thread): Update.
3897 (windows_nat_target::attach): Update.
3898 (windows_nat_target::files_info): Update.
3899 * target-delegates.c: Rebuild.
3900 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3902 (sol_thread_target::pid_to_str): Change return type.
3903 * remote.c (class remote_target) <pid_to_str>: Change return
3905 (remote_target::pid_to_str): Change return type.
3906 (extended_remote_target::attach, remote_target::remote_stop_ns)
3907 (remote_target::remote_notif_remove_queued_reply)
3908 (remote_target::push_stop_reply, remote_target::disable_btrace):
3910 (extended_remote_target::attach): Update.
3911 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3913 (gdbsim_target::pid_to_str): Change return type.
3914 * ravenscar-thread.c (struct ravenscar_thread_target)
3915 <pid_to_str>: Change return type.
3916 (ravenscar_thread_target::pid_to_str): Change return type.
3917 * procfs.c (class procfs_target) <pid_to_str>: Change return
3919 (procfs_target::pid_to_str): Change return type.
3920 (procfs_target::attach): Update.
3921 (procfs_target::detach): Update.
3922 (procfs_target::fetch_registers): Update.
3923 (procfs_target::store_registers): Update.
3924 (procfs_target::wait): Update.
3925 (procfs_target::files_info): Update.
3926 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3927 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3929 (nto_procfs_target::pid_to_str): Change return type.
3930 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3931 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3933 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3935 (attach_proc_task_lwp_callback, get_detach_signal)
3936 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3937 (linux_nat_target::resume, wait_lwp, stop_callback)
3938 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3939 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3940 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3941 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3942 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3944 (inf_ptrace_target::attach): Update.
3945 (inf_ptrace_target::files_info): Update.
3946 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3948 (go32_nat_target::pid_to_str): Change return type.
3949 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3950 (gnu_nat_target::wait): Update.
3951 (gnu_nat_target::wait): Update.
3952 (gnu_nat_target::resume): Update.
3953 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3954 (fbsd_nat_target::wait): Update.
3955 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3957 (darwin_nat_target::attach): Update.
3958 * corelow.c (class core_target) <pid_to_str>: Change return type.
3959 (core_target::pid_to_str): Change return type.
3960 * target.c (normal_pid_to_str): Change return type.
3961 (default_pid_to_str): Likewise.
3962 (target_pid_to_str): Change return type.
3963 (target_translate_tls_address): Update.
3964 (target_announce_detach): Update.
3965 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3967 (bsd_uthread_target::pid_to_str): Change return type.
3968 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3970 (bsd_kvm_target::pid_to_str): Change return type.
3971 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3973 (aix_thread_target::pid_to_str): Change return type.
3974 * target.h (struct target_ops) <pid_to_str>: Change return type.
3975 (target_pid_to_str, normal_pid_to_str): Likewise.
3976 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3978 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3980 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3982 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3984 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3986 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3989 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3991 * NEWS: Mention that the new default MI version is 3. Mention
3992 changes to the output of commands and events that deal with
3993 multi-location breakpoints.
3994 * breakpoint.c: Include "mi/mi-out.h".
3995 (print_one_breakpoint): Change output syntax if using MI version
3997 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3999 (mi_multi_location_breakpoint_output_fixed): New.
4000 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4001 (mi_cmd_fix_multi_location_breakpoint_output): New.
4002 (mi_multi_location_breakpoint_output_fixed): New.
4003 * mi/mi-cmds.c (mi_cmds): Register command
4004 -fix-multi-location-breakpoint-output.
4005 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4008 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4010 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4011 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4012 instantiate mi_ui_out based on interpreter name.
4013 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4014 * mi/mi-main.c (mi_load_progress): Likewise.
4016 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4018 * NEWS: Combine separate "New targets" sections for 8.3.
4020 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4022 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4023 (ppcfbsd_init_abi): Install gdbarch
4024 "fetch_tls_load_module_address" and "get_thread_local_address"
4027 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4029 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4030 (riscv_fbsd_init_abi): Install gdbarch
4031 "fetch_tls_load_module_address" and "get_thread_local_address"
4034 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4036 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4037 (i386fbsd_init_abi): Install gdbarch
4038 "fetch_tls_load_module_address" and "get_thread_local_address"
4041 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4043 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4044 (amd64fbsd_init_abi): Install gdbarch
4045 "fetch_tls_load_module_address" and "get_thread_local_address"
4048 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4050 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4051 (struct fbsd_pspace_data): New type.
4052 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4053 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4054 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4055 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4056 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4058 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4060 * gdbtypes.c (lookup_struct_elt): New function.
4061 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4062 * gdbtypes.h (struct struct_elt): New type.
4063 (lookup_struct_elt): New prototype.
4065 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4067 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4068 remove disabled code block.
4070 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4072 * gdbarch.sh (get_thread_local_address): New method.
4073 * gdbarch.h, gdbarch.c: Regenerate.
4074 * target.c (target_translate_tls_address): Use
4075 gdbarch_get_thread_local_address if present instead of
4076 target::get_thread_local_address.
4078 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4080 * target.h (target::get_thread_local_address): Update comment.
4082 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4084 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4085 objfile->separate_debug_objfile_backlink if not NULL.
4087 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4089 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4090 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4091 (amd64bsd_store_inferior_registers): Likewise.
4092 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4093 Enable segment base registers.
4094 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4095 PT_GETFSBASE and PT_GETGSBASE.
4096 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4098 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4099 segment base registers.
4100 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4102 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4104 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4105 Update calls to i386_target_description to add 'segments'
4107 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4108 add segment base registers.
4109 * arch/i386.c (i386_create_target_description): Add 'segments'
4110 parameter to enable segment base registers.
4111 * arch/i386.h (i386_create_target_description): Likewise.
4112 * features/i386/32bit-segments.xml: New file.
4113 * features/i386/32bit-segments.c: Generate.
4114 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4115 call to i386_target_description to add 'segments' parameter.
4116 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4117 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4118 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4119 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4120 if feature is present.
4121 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4122 Add 'segments' parameter to call to i386_target_description.
4123 (i386_target_description): Add 'segments' parameter to enable
4124 segment base registers.
4125 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4126 to call to i386_target_description.
4127 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4128 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4129 Define I386_NUM_REGS.
4130 (i386_target_description): Add 'segments' parameter to enable
4131 segment base registers.
4133 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4136 * source-cache.c: #undef open and close, to avoid unresolved
4137 externals during linking.
4139 2019-03-12 Tom Tromey <tromey@adacore.com>
4141 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4142 const. Add initializers.
4143 (_initialize_remote): Don't initialize ptid globals.
4145 2019-03-12 Pedro Alves <palves@redhat.com>
4147 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4149 2019-03-12 Pedro Alves <palves@redhat.com>
4151 * cp-name-parser.y (main): Remove unused 'len' variable.
4153 2019-03-12 Tom Tromey <tromey@adacore.com>
4155 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4156 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4158 2019-03-12 Tom Tromey <tromey@adacore.com>
4160 * linux-nat.c (iterate_over_lwps): Update.
4161 (stop_callback): Remove parameter.
4162 (stop_wait_callback, detach_callback, resume_set_callback)
4163 (select_singlestep_lwp_callback, set_ignore_sigint)
4164 (status_callback, resumed_callback, resume_clear_callback)
4165 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4167 (linux_nat_target::detach, linux_nat_target::resume)
4168 (linux_stop_and_wait_all_lwps, select_event_lwp)
4169 (linux_nat_filter_event, linux_nat_wait_1)
4170 (linux_nat_target::kill, linux_nat_target::stop)
4171 (linux_nat_target::stop): Update.
4172 (linux_nat_resume_callback): Change type.
4173 (resume_stopped_resumed_lwps, count_events_callback)
4174 (select_event_lwp_callback): Likewise.
4175 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4176 * arm-linux-nat.c (struct update_registers_data): Remove.
4177 (update_registers_callback): Change type.
4178 (arm_linux_insert_hw_breakpoint1): Update.
4179 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4181 (x86_linux_dr_set_addr): Update.
4182 (x86_linux_dr_set_control): Update.
4183 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4184 (iterate_over_lwps): Use gdb::function_view.
4185 * nat/aarch64-linux-hw-point.c (struct
4186 aarch64_dr_update_callback_param): Remove.
4187 (debug_reg_change_callback): Change type.
4188 (aarch64_notify_debug_reg_change): Update.
4189 * s390-linux-nat.c (s390_refresh_per_info): Update.
4191 2019-03-11 Tom Tromey <tromey@adacore.com>
4193 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4194 redundant assignment to "this_cu".
4196 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4198 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4200 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4202 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4204 (rank_one_type): ... this.
4206 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4208 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4210 (rank_one_type): ... this.
4212 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4214 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4216 (rank_one_type): ... this.
4218 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4220 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4222 (rank_one_type): ... this.
4224 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4226 * gdbtypes.c (rank_one_type_parm_bool): 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_range): 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_char): 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_enum): 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_int): 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_func): 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_array): 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_ptr): New function extracted
4270 (rank_one_type): ... this.
4272 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4274 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4275 inferior-events' shows the example events.
4277 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4279 Support styling on native MS-Windows console
4282 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4283 on MS-Windows if $TERM is not defined.
4285 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4287 * posix-hdep.c (gdb_console_fputs):
4288 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4290 * ui-file.h (gdb_console_fputs): Add prototype.
4292 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4293 back to fputs only if the former returns zero.
4295 2019-03-07 Tom Tromey <tom@tromey.com>
4297 * symmisc.c (print_symbol_bcache_statistics): Update.
4298 (print_objfile_statistics): Update.
4299 * symfile.c (allocate_symtab): Update.
4300 * stabsread.c: Don't include bcache.h.
4301 * psymtab.h (struct psymbol_bcache): Don't declare.
4302 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4303 (psymbol_bcache_init, psymbol_bcache_free)
4304 (psymbol_bcache_get_bcache): Don't declare.
4305 * psymtab.c (struct psymbol_bcache): Remove.
4306 (psymtab_storage::psymtab_storage): Update.
4307 (psymtab_storage::~psymtab_storage): Update.
4308 (psymbol_bcache_init, psymbol_bcache_free)
4309 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4310 (add_psymbol_to_bcache): Update.
4311 (allocate_psymtab): Update.
4312 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4313 macro_cache>: No longer pointers.
4314 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4315 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4316 * macrotab.c (macro_bcache): Update.
4317 * macroexp.c: Don't include bcache.h.
4318 * gdbtypes.c (check_types_worklist): Update.
4319 (types_deeply_equal): Remove TRY/CATCH. Update.
4320 * elfread.c (elf_symtab_read): Update.
4321 * dwarf2read.c: Don't include bcache.h.
4322 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4323 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4324 (print_bcache_statistics, bcache_memory_used): Don't declare.
4325 (struct bcache): Move from bcache.c. Add constructor, destructor,
4326 methods. Rename all data members.
4327 * bcache.c (struct bcache): Move to bcache.h.
4328 (bcache::expand_hash_table): Rename from expand_hash_table.
4330 (bcache::insert): Rename from bcache_full.
4331 (bcache::compare): Rename from bcache_compare.
4332 (bcache_xmalloc): Remove.
4333 (bcache::~bcache): Rename from bcache_xfree.
4334 (bcache::print_statistics): Rename from print_bcache_statistics.
4335 (bcache::memory_used): Rename from bcache_memory_used.
4337 2019-03-07 Pedro Alves <palves@redhat.com>
4339 * infrun.c (normal_stop): Also check for
4340 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4342 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4344 * f-lang.c (value_from_host_double): Moved to...
4345 * value.c (value_from_host_double): ...here.
4346 * value.h (value_from_host_double): Declare.
4347 * guile/scm-math.c (vlscm_convert_typed_number): Use
4348 value_from_host_double.
4349 (vlscm_convert_number): Likewise.
4350 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4351 * python/py-value.c (convert_value_from_python): Likewise.
4353 2019-03-06 Tom Tromey <tom@tromey.com>
4355 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4357 2019-03-06 Tom Tromey <tom@tromey.com>
4359 * utils.h (free_current_contents): Don't declare.
4360 * utils.c (free_current_contents): Remove.
4362 2019-03-06 Tom Tromey <tom@tromey.com>
4364 * top.c (quit_force): Update.
4365 * main.c (captured_command_loop): Update.
4366 * common/new-op.c (operator new): Update.
4367 * common/common-exceptions.c (struct catcher)
4368 <save_cleanup_chain>: Remove member.
4369 (exceptions_state_mc_init): Update.
4370 (exception_try_scope_entry): Return nullptr.
4371 (exception_try_scope_exit, exception_rethrow)
4372 (throw_exception_sjlj, throw_exception_cxx): Update.
4373 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4374 (all_cleanups, do_cleanups, discard_cleanups)
4375 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4376 (restore_cleanups, restore_final_cleanups): Don't declare.
4377 (do_final_cleanups): Remove parameter.
4378 * common/cleanups.c (cleanup_chain, make_cleanup)
4379 (make_cleanup_dtor, all_cleanups, do_cleanups)
4380 (discard_my_cleanups, discard_cleanups)
4381 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4382 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4383 (null_cleanup): Remove.
4384 (do_final_cleanups): Remove parameter.
4386 2019-03-06 Tom Tromey <tom@tromey.com>
4388 * remote.c (remote_target::remote_parse_stop_reply): Use
4391 2019-03-06 Tom Tromey <tom@tromey.com>
4393 * stabsread.c (struct stabs_field_info): Rename from field_info.
4394 <list, fnlist>: Add initializers.
4395 <obstack>: New member.
4396 (read_member_functions, read_struct_fields, read_baseclasses):
4397 Allocate on obstack. Don't use cleanups.
4398 (read_one_struct_field, read_member_functions, read_struct_fields)
4399 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4400 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4401 (read_struct_type): Update.
4403 2019-03-06 Tom Tromey <tom@tromey.com>
4405 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4406 * common/filestuff.h (make_cleanup_close): Don't declare.
4407 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4410 2019-03-06 Tom Tromey <tom@tromey.com>
4412 * solib-aix.c: Use make_scope_exit.
4414 2019-03-06 Tom Tromey <tom@tromey.com>
4416 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4417 Use make_scope_exit.
4419 2019-03-06 Tom Tromey <tom@tromey.com>
4421 * solib-svr4.c (disable_probes_interface): Remove parameter.
4422 (svr4_handle_solib_event): Use make_scope_exit.
4424 2019-03-06 Tom Tromey <tom@tromey.com>
4426 * remote.c (struct stop_reply_deleter): Remove.
4427 (stop_reply_up): Update.
4428 (struct stop_reply): Derive from notif_event. Don't typedef.
4429 <regcache>: Now a std::vector.
4430 (stop_reply_xfree): Remove.
4431 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4432 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4433 (remote_target::discard_pending_stop_replies): Use delete.
4434 (remote_target::remote_parse_stop_reply): Update.
4435 (remote_target::process_stop_reply): Update.
4436 * remote-notif.h (struct notif_event): Add virtual destructor.
4437 Remove "dtr" member.
4438 (struct notif_client) <alloc_event>: Return a unique_ptr.
4439 (notif_event_xfree): Don't declare.
4440 (notif_event_up): New typedef.
4441 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4442 (notif_event_xfree, do_notif_event_xfree): Remove.
4443 (remote_notif_state_xfree): Update.
4445 2019-03-06 Tom Tromey <tom@tromey.com>
4447 * infrun.c (displaced_step_clear_cleanup): Now a
4448 forward_scope_exit type.
4449 (displaced_step_prepare_throw): Update.
4450 (displaced_step_fixup): Update.
4452 2019-03-06 Tom Tromey <tom@tromey.com>
4454 * inferior.h (class inferior): Update comment.
4455 * gdbthread.h (class thread_info): Update comment.
4457 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4458 Tom Tromey <tom@tromey.com>
4460 * stabsread.h (struct stab_section_list): Remove.
4461 (coffstab_build_psymtabs): Update.
4462 * dbxread.c (symbuf_sections): Now a std::vector.
4463 (sect_idx): New global.
4464 (fill_symbuf): Update.
4465 (coffstab_build_psymtabs): Change type of stabsects parameter.
4467 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4469 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4470 (coff_locate_sections): Update.
4471 (coff_symfile_read): Remove cleanups. Update.
4472 (init_stringtab): Add storage parameter.
4473 (free_stringtab, free_stringtab_cleanup): Remove.
4474 (init_lineno): Add storage parameter.
4475 (free_linetab, free_linetab_cleanup): Remove.
4477 2019-03-06 Pedro Alves <palves@redhat.com>
4479 * linux-fork.c (fork_info::clobber_regs): Delete.
4480 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4481 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4483 (scoped_switch_fork_info::scoped_switch_fork_info)
4484 (checkpoint_command, linux_fork_context): Adjust
4485 fork_save_infrun_state calls.
4487 2019-03-06 Pedro Alves <palves@redhat.com>
4489 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4490 (inf_has_multiple_threads): Return 'bool' and rewrite using
4491 inferior_info::threads().
4493 2019-03-06 Pedro Alves <palves@redhat.com>
4495 * linux-fork.c: Include <list>.
4496 (fork_list): Now a std::list instance.
4497 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4498 (forks_exist_p, find_last_fork): Adjust.
4502 (free_fork): Delete, folded into fork_info::~fork_info().
4503 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4505 (init_fork_list): Delete.
4506 (linux_fork_killall, linux_fork_mourn_inferior)
4507 (linux_fork_detach, info_checkpoints_command): Adjust.
4508 (_initialize_linux_fork): No longer call init_fork_list.
4510 2019-03-06 Pedro Alves <palves@redhat.com>
4512 * linux-fork.c (new_fork): New, split out of ...
4513 (add_fork): ... this. Return void. Move "first fork" special
4514 case from here, to ...
4515 (checkpoint_command): ... here.
4516 * linux-linux.h (add_fork): Return void.
4518 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4520 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4522 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4523 Chris January <chris.january@arm.com>
4524 David Lecomber <david.lecomber@arm.com>
4526 * f-exp.y: New token, UNOP_INTRINSIC.
4527 (exp): New pattern using UNOP_INTRINSIC token.
4528 (f77_keywords): Add 'abs' keyword.
4529 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4530 (value_from_host_double): New function.
4531 (evaluate_subexp_f): Support UNOP_ABS.
4533 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4535 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4538 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4540 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4541 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4542 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4544 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4546 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4548 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4549 Chris January <chris.january@arm.com>
4551 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4552 * f-exp.y: Define 'KIND' token.
4553 (exp): New pattern for KIND expressions.
4554 (ptype): Handle types with a kind extension.
4555 (direct_abs_decl): Extend to spot kind extensions.
4556 (f77_keywords): Add 'kind' to the list.
4557 (push_kind_type): New function.
4558 (convert_to_kind_type): New function.
4559 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4560 * parse.c (operator_length_standard): Likewise.
4561 * parser-defs.h (enum type_pieces): Add tp_kind.
4562 * std-operator.def: Add UNOP_KIND.
4564 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4566 * f-exp.y (f_parse): Set yydebug.
4568 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4570 * f-lang.c (evaluate_subexp_f): New function.
4571 (exp_descriptor_f): New global.
4572 (f_language_defn): Use exp_descriptor_f instead of
4573 exp_descriptor_standard.
4575 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4577 * f-exp.y (struct token): Add comments.
4578 (dot_ops): Remove uppercase versions and the end marker.
4579 (f77_keywords): Likewise.
4580 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4581 entries in the dot_ops array are case insensitive, and use
4582 strncasecmp to compare strings. Also some whitespace cleanup in
4583 this area. Similar for the f77_keywords array, except entries in
4584 this list might be case sensitive.
4586 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4588 * f-exp.y (struct f77_boolean_val): Add comments.
4589 (boolean_values): Remove uppercase versions, and end marker.
4590 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4591 and use strncasecmp to achieve case insensitivity. Additionally,
4592 perform whitespace cleanup around this code.
4594 2019-03-06 Tom Tromey <tromey@adacore.com>
4596 * remote-sim.c (gdbsim_target_open): Use result of
4599 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4600 Dirk Schubert <dirk.schubert@arm.com>
4601 Chris January <chris.january@arm.com>
4603 * eval.c (evaluate_subexp_standard): Call Fortran argument
4605 * f-lang.c (struct value): A value which can be passed into a
4606 Fortran function call.
4607 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4609 (struct type): Value ready for a Fortran function call.
4610 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4612 * f-lang.h (fortran_argument_convert): Declaration.
4613 (fortran_preserve_arg_pointer): Declaration.
4614 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4616 2019-03-05 Tom Tromey <tromey@adacore.com>
4618 * python/py-prettyprint.c (print_string_repr): Remove #if.
4619 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4621 2019-03-05 Tom Tromey <tromey@adacore.com>
4623 * target.c (the_dummy_target): Move later. Change type to
4625 (initialize_targets): Don't initialize the_dummy_target.
4627 2019-03-05 Tom Tromey <tromey@adacore.com>
4629 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4630 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4632 2019-03-05 Tom Tromey <tromey@adacore.com>
4634 * windows-nat.c (windows_nat_target::attach)
4635 (windows_nat_target::detach): Don't call gdb_flush.
4636 * valprint.c (generic_val_print, val_print, val_print_string):
4637 Don't call gdb_flush.
4638 * utils.c (defaulted_query): Don't call gdb_flush.
4639 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4640 * target.c (target_announce_detach): Don't call gdb_flush.
4641 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4642 * remote.c (extended_remote_target::attach): Don't call
4644 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4645 * printcmd.c (do_examine): Don't call gdb_flush.
4646 (info_display_command): Don't call gdb_flush.
4647 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4648 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4649 * memattr.c (info_mem_command): Don't call gdb_flush.
4650 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4651 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4652 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4653 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4654 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4655 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4656 (gnu_nat_target::detach): Don't call gdb_flush.
4657 * f-valprint.c (f_val_print): Don't call gdb_flush.
4658 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4659 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4660 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4662 * c-valprint.c (c_val_print): Don't call gdb_flush.
4663 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4665 2019-03-05 Tom Tromey <tromey@adacore.com>
4667 * varobj.c (update_dynamic_varobj_children): Update.
4668 (install_default_visualizer): Use reset, not release.
4669 * value.c (set_internalvar): Update.
4670 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4671 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4672 ATTRIBUTE_UNUSED_RESULT.
4674 2019-03-05 Tom Tromey <tromey@adacore.com>
4676 * remote.c (class scoped_remote_fd) <release>: Add
4677 ATTRIBUTE_UNUSED_RESULT.
4679 2019-03-05 Tom Tromey <tromey@adacore.com>
4681 * macroexp.c (struct macro_buffer) <release>: Add
4682 ATTRIBUTE_UNUSED_RESULT.
4684 2019-03-05 Tom Tromey <tromey@adacore.com>
4686 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4687 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4688 ATTRIBUTE_UNUSED_RESULT.
4690 2019-03-05 Tom Tromey <tromey@adacore.com>
4692 * common/scoped_fd.h (class scoped_fd) <release>: Add
4693 ATTRIBUTE_UNUSED_RESULT.
4695 2019-03-05 Tom Tromey <tromey@adacore.com>
4697 * parser-defs.h (struct parser_state) <release>: Add
4698 ATTRIBUTE_UNUSED_RESULT.
4700 2019-03-05 Tom Tromey <tromey@adacore.com>
4702 * utils.h (class gdb_argv) <release>: Add
4703 ATTRIBUTE_UNUSED_RESULT.
4704 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4706 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4708 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4709 for-loop range, to avoid compiler warnings.
4711 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4712 avoid compiler warnings about unused variables.
4714 * NEWS: Mention end of support for native debugging on MS-Windows
4718 * common/netstuff.c:
4719 * gdbserver/gdbreplay.c
4720 * gdbserver/remote-utils.c:
4722 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4723 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4724 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4725 'getaddrinfo' and 'freeaddrinfo' were not available before
4726 Windows XP, and mingw.org's MinGW headers by default define
4727 _WIN32_WINNT to 0x500.
4729 2019-03-01 Gary Benson <gbenson@redhat.com>
4731 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4733 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4734 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4737 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4738 set_sigint_trap, clear_sigint_trap.
4740 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4742 * target.c (target_detach): Clear the regcache and the
4745 2019-02-27 Pedro Alves <palves@redhat.com>
4747 * utils.c (set_screen_size): When we cap the height/width sizes,
4748 tweak the corresponding command variable to show "unlimited":
4750 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4751 Pedro Alves <palves@redhat.com>
4753 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4754 before calling rl_set_screen_size.
4756 2019-02-27 Tom Tromey <tromey@adacore.com>
4758 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4760 * python/py-value.c: Remove Python 2.4 workaround.
4761 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4763 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4764 Python 2.4 workaround.
4765 * python/python-internal.h: Remove Python 2.4 comment.
4766 (Py_ssize_t): Don't define.
4767 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4768 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4769 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4770 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4771 * python/python.c (do_start_initialization): Remove Python 2.4
4773 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4774 (print_children): Remove Python 2.4 workaround.
4775 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4777 (CHARBUFFERPROC_NAME): Remove.
4778 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4779 Python 2.4 workaround.
4781 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4783 * NEWS: Note minimum Python version.
4785 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4787 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4788 code from these functions. Remove corresponding ifdefs. Use
4789 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4790 Remove gotos and target of gotos.
4791 (infpy_search_memory): Likewise.
4793 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4795 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4796 (hppa_gdbarch_init): Don't register deleted functions with
4799 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4801 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4802 (h8300_unwind_sp): Delete.
4803 (h8300_dummy_id): Delete.
4804 (h8300_gdbarch_init): Don't register deleted functions with
4807 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4809 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4810 (ft32_unwind_pc): Delete.
4811 (ft32_unwind_sp): Delete.
4812 (ft32_gdbarch_init): Don't register deleted functions with
4815 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4817 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4818 (frv_unwind_pc): Delete.
4819 (frv_unwind_sp): Delete.
4820 (frv_gdbarch_init): Don't register deleted functions with
4823 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4825 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4826 (riscv_unwind_pc): Delete.
4827 (riscv_unwind_sp): Delete.
4828 (riscv_gdbarch_init): Don't register deleted functions with
4831 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4833 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4834 (csky_unwind_pc): Delete.
4835 (csky_unwind_sp): Delete.
4836 (csky_gdbarch_init): Don't register deleted functions with
4839 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4841 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4842 (cris_unwind_pc): Delete.
4843 (cris_unwind_sp): Delete.
4844 (cris_gdbarch_init): Don't register deleted functions with
4847 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4849 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4850 (bfin_unwind_pc): Delete.
4851 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4853 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4855 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4856 (arm_unwind_pc): Delete.
4857 (arm_unwind_sp): Delete.
4858 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4860 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4862 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4863 (arc_unwind_pc): Delete.
4864 (arc_unwind_sp): Delete.
4865 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4867 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4869 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4870 (alpha_unwind_pc): Delete.
4871 (alpha_gdbarch_init): Don't register deleted functions with
4874 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4876 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4877 (aarch64_unwind_pc): Delete.
4878 (aarch64_unwind_sp): Delete.
4879 (aarch64_gdbarch_init): Don't register deleted functions with
4882 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4884 * gdbtypes.c (type_align): Don't consider static members when
4885 computing structure alignment.
4887 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4889 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4890 return 0 for other types.
4891 * arch-utils.c (default_type_align): Always return 0.
4892 * gdbarch.h: Regenerate.
4893 * gdbarch.sh (type_align): Extend comment.
4894 * gdbtypes.c (type_align): Add additional comments, always call
4895 gdbarch_type_align before applying the default rules.
4896 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4897 generic code will then apply a suitable default.
4898 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4899 types, return 0 for other types.
4901 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4903 * NEWS: Create a new section for the next release branch.
4904 Rename the section of the current branch, now that it has
4907 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4909 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4910 * version.in: Bump version to 8.3.50.DATE-git.
4912 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4914 * aix-thread.c (ptid_cmp): Remove unused variable.
4915 (get_signaled_thread): Likewise.
4916 (store_regs_user_thread): Likewise.
4917 (store_regs_kernel_thread): Likewise.
4918 (fetch_regs_kernel_thread): Remove shadowed variable.
4920 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4922 * features/riscv/32bit-cpu.xml: Add register numbers.
4923 * features/riscv/32bit-fpu.c: Regenerate.
4924 * features/riscv/32bit-fpu.xml: Add register numbers.
4925 * features/riscv/64bit-cpu.xml: Add register numbers.
4926 * features/riscv/64bit-fpu.c: Regenerate.
4927 * features/riscv/64bit-fpu.xml: Add register numbers.
4929 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4931 * NEWS: Mention two argument form of gdb.Value constructor.
4932 * python/py-value.c (convert_buffer_and_type_to_value): New
4934 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4935 Add support for handling an optional second argument. Call
4936 convert_buffer_and_type_to_value as appropriate.
4937 * python/python-internal.h (Py_buffer_deleter): New struct.
4938 (Py_buffer_up): New typedef.
4940 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4942 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4943 instead of releasing ownership.
4945 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4947 * dwarf2read.c (open_and_init_dwp_file): Call
4948 elf_numsections instead of bfd_count_sections to initialize
4949 dwp_file->num_sections.
4951 2019-02-25 Tom Tromey <tromey@adacore.com>
4953 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4955 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4957 * gcore.in: Add '--readnever' option when invoking GDB.
4959 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4961 * MAINTAINERS: Update my email address.
4963 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4965 * build-id.c (build_id_to_debug_bfd_1): New function.
4966 (build_id_to_debug_bfd): Look for separate debug file in
4969 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4971 * gdbarch.sh: Update the copyright year range that is placed into
4974 2019-02-22 Keith Seitz <keiths@redhat.com>
4977 * linespec.c (create_sals_line_offset): Search for the default
4978 symtab's filename instead of its fullname.
4980 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4982 * NEWS: Update style defaults.
4984 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4986 * main.c (captured_main_1): Disable styling in batch mode.
4988 2019-02-20 Tom Tromey <tom@tromey.com>
4990 * symtab.c (symtab_symbol_info): Fix typos.
4992 2019-02-20 Tom Tromey <tromey@adacore.com>
4994 * findcmd.c (_initialize_mem_search): Use upper case for
4995 metasyntactic variables.
4997 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4999 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5000 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5002 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5004 * top.h (source_file_name): Change to std::string.
5005 * top.c (source_file_name): Likewise.
5006 (command_line_input): Adjust.
5007 * cli/cli-script.c (script_from_file): Adjust.
5009 2019-02-19 Tom Tromey <tromey@adacore.com>
5011 * ravenscar-thread.c
5012 (ravenscar_thread_target::update_thread_list): Don't call
5013 ada_build_task_list.
5014 * ada-lang.h (ada_build_task_list): Don't declare.
5015 * ada-tasks.c (struct ada_tasks_inferior_data)
5016 <task_list_valid_p>: Now bool.
5017 (read_known_tasks, ada_task_list_changed)
5018 (ada_tasks_invalidate_inferior_data): Update.
5019 (read_known_tasks_array): Return bool.
5020 (read_known_tasks_list): Likewise.
5021 (read_known_tasks): Return void.
5022 (ada_build_task_list): Now static.
5024 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5026 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5027 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5029 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5031 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5032 variant for ada_tasks_pspace_data_handle and
5033 ada_tasks_inferior_data_handle.
5034 (ada_tasks_pspace_data_cleanup): New function.
5035 (ada_tasks_inferior_data_cleanup): New function.
5037 2019-02-17 Tom Tromey <tom@tromey.com>
5039 * macrotab.h (macro_source_fullname): Return a std::string.
5040 * macrotab.c (macro_include, check_for_redefinition)
5041 (macro_undef, macro_lookup_definition, foreach_macro)
5042 (foreach_macro_in_scope): Update.
5043 (macro_source_fullname): Return a std::string.
5044 * macrocmd.c (show_pp_source_pos): Update.
5046 2019-02-17 Tom Tromey <tom@tromey.com>
5048 * macrocmd.c (show_pp_source_pos): Style the file names.
5050 2019-02-17 Tom Tromey <tom@tromey.com>
5053 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5055 2019-02-17 Tom Tromey <tom@tromey.com>
5057 * ada-lang.c (user_select_syms): Use filtered printing.
5058 * utils.c (wrap_style): New global.
5059 (desired_style): Remove.
5060 (emit_style_escape): Add stream parameter.
5061 (set_output_style, reset_terminal_style, prompt_for_continue):
5063 (flush_wrap_buffer): Only flush gdb_stdout.
5064 (wrap_here): Set wrap_style.
5065 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5066 treat escape sequences as a character. Change when wrap buffer is
5068 (fputs_styled): Do not set the output style when the default is
5070 * ui-style.h (struct ui_file_style) <is_default>: New method.
5071 * source.c (print_source_lines_base): Emit escape sequences in one
5074 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5076 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5077 integers and enumeration types.
5079 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5081 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5082 instead of lookup_symbol_in_language
5083 (do_exact_match): New function.
5084 (ada_get_symbol_name_matcher): Return do_exact_match when
5085 doing a verbatim match.
5087 2019-02-15 Tom Tromey <tromey@adacore.com>
5089 * ravenscar-thread.c (ravenscar_thread_target::resume)
5090 (ravenscar_thread_target::wait): Special case wildcard requests.
5092 2019-02-15 Tom Tromey <tromey@adacore.com>
5094 * ravenscar-thread.c (base_ptid): Remove.
5095 (struct ravenscar_thread_target) <close>: New method.
5096 <m_base_ptid>: New member.
5097 <update_inferior_ptid, active_task, task_is_currently_active,
5098 runtime_initialized>: Declare methods.
5099 <ravenscar_thread_target>: Add constructor.
5100 (ravenscar_thread_target::task_is_currently_active)
5101 (ravenscar_thread_target::update_inferior_ptid)
5102 (ravenscar_runtime_initialized): Rename. Now methods.
5103 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5104 (ravenscar_thread_target::update_thread_list): Update.
5105 (ravenscar_thread_target::active_task): Now method.
5106 (ravenscar_thread_target::store_registers)
5107 (ravenscar_thread_target::prepare_to_store)
5108 (ravenscar_thread_target::prepare_to_store)
5109 (ravenscar_thread_target::mourn_inferior): Update.
5110 (ravenscar_inferior_created): Use "new" to create target.
5111 (ravenscar_thread_target::get_ada_task_ptid): Update.
5112 (_initialize_ravenscar): Don't initialize base_ptid.
5113 (ravenscar_ops): Remove global.
5115 2019-02-15 Tom Tromey <tromey@adacore.com>
5117 * target.h (push_target): Declare new overload.
5118 * target.c (push_target): New overload, taking an rvalue reference.
5119 * remote.c (remote_target::open_1): Use push_target overload.
5120 * corelow.c (core_target_open): Use push_target overload.
5122 2019-02-15 Tom Tromey <tromey@adacore.com>
5124 * ravenscar-thread.c (is_ravenscar_task)
5125 (ravenscar_task_is_currently_active): Return bool.
5126 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5127 (_initialize_ravenscar): Remove "(void)".
5128 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5131 2019-02-15 Tom Tromey <tromey@adacore.com>
5133 * ravenscar-thread.c (ravenscar_runtime_initializer)
5134 (has_ravenscar_runtime, get_running_thread_id)
5135 (ravenscar_thread_target::resume): Fix indentation.
5137 2019-02-15 Tom Tromey <tromey@adacore.com>
5139 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5140 from ravenscar_arch_ops.
5141 (sparc_ravenscar_ops::fetch_registers)
5142 (sparc_ravenscar_ops::store_registers): Now methods.
5143 (sparc_ravenscar_prepare_to_store): Remove.
5144 (sparc_ravenscar_ops): Redefine.
5145 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5146 methods and destructor. Remove members.
5147 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5148 (ravenscar_thread_target::store_registers)
5149 (ravenscar_thread_target::prepare_to_store): Update.
5150 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5152 (struct ppc_ravenscar_powerpc_ops): Derive from
5154 (ppc_ravenscar_powerpc_ops::fetch_registers)
5155 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5156 (ppc_ravenscar_powerpc_ops): Redefine.
5157 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5158 (ppc_ravenscar_e500_ops::fetch_registers)
5159 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5160 (ppc_ravenscar_e500_ops): Redefine.
5161 * aarch64-ravenscar-thread.c
5162 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5163 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5164 (aarch64_ravenscar_fetch_registers)
5165 (aarch64_ravenscar_store_registers): Now methods.
5166 (aarch64_ravenscar_ops): Redefine.
5168 2019-02-15 Tom Tromey <tromey@adacore.com>
5170 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5171 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5172 (ravenscar_thread_target::stopped_by_watchpoint)
5173 (ravenscar_thread_target::stopped_data_address)
5174 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5176 2019-02-15 Tom Tromey <tromey@adacore.com>
5178 * ravenscar-thread.c: Fix some typos.
5180 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5181 Tom Tromey <tromey@adacore.com>
5183 * ada-lang.c (ada_exception_sal): Change addr_string to a
5185 (create_ada_exception_catchpoint): Update.
5187 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5188 Tom Tromey <tromey@adacore.com>
5190 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5191 (bp_location_ops): Remove.
5192 (base_breakpoint_allocate_location): Update.
5193 (free_bp_location): Update.
5194 * ada-lang.c (class ada_catchpoint_location)
5195 <ada_catchpoint_location>: Remove ops parameter.
5196 (ada_catchpoint_location_dtor): Remove.
5197 (ada_catchpoint_location_ops): Remove.
5198 (allocate_location_exception): Update.
5199 * breakpoint.h (struct bp_location_ops): Remove.
5200 (class bp_location) <bp_location>: Remove bp_location_ops
5202 <~bp_location>: Add destructor.
5205 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5206 Pedro Alves <palves@redhat.com>
5208 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5211 2019-02-14 David Michael <fedora.dm0@gmail.com>
5212 Samuel Thibault <samuel.thibault@gnu.org>
5213 Thomas Schwinge <thomas@codesourcery.com>
5215 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5216 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5218 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5220 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5221 (check_empty): Use "const char *".
5223 * gnu-nat.c (gnu_nat_target::detach): Instead of
5224 'detach_inferior (pid)' call
5225 'detach_inferior (find_inferior_pid (pid))'.
5227 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5228 'nat/fork-inferior.o'.
5229 * gnu-nat.c: #include "nat/fork-inferior.h".
5231 * gnu-nat.c (gnu_nat_target::detach): Instead of
5232 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5233 * gnu-nat.h: #include "inf-child.h".
5234 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5235 'i386_gnu_nat_target::fetch_registers'.
5236 (gnu_store_registers): Rename/move to
5237 'i386_gnu_nat_target::store_registers'.
5239 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5240 * gnu-nat.h (mach_thread_info): New function.
5241 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5243 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5245 2019-02-14 Frederic Konrad <konrad@adacore.com>
5247 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5249 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5251 * windows-nat.c (windows_add_thread): Add new parameter
5252 "main_thread_p" with default value set to false. Update
5253 function documentation as well as all callers.
5254 (windows_delete_thread): Likewise.
5255 (fake_create_process): Update call to windows_add_thread.
5256 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5257 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5258 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5259 call to windows_delete_thread.
5261 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5263 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5265 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5267 * symfile.c (find_separate_debug_file): Use canonical path of
5268 sysroot with child_path instead of gdb_sysroot if it is valid.
5270 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5272 * symfile.c (find_separate_debug_file): Use child_path to
5273 determine if an object file is under a sysroot.
5275 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5277 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5278 unittests/child-path-selftests.c.
5279 * common/pathstuff.c (child_path): New function.
5280 * common/pathstuff.h (child_path): New prototype.
5281 * unittests/child-path-selftests.c: New file.
5283 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5285 * symfile.c (find_separate_debug_file): Look for separate debug
5286 files in debug directories under the sysroot.
5288 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5290 * symtab.h (struct minimal_symbol data_p): New const method.
5291 (struct minimal_symbol text_p): Likewise.
5292 * symtab.c (output_source_filename): Use file name style
5294 (print_symbol_info): Likewise.
5295 (print_msymbol_info): Use address style to print addresses.
5296 Use function name style to print executable text symbols.
5297 (expand_symtab_containing_pc): Use data_p.
5298 (find_pc_sect_compunit_symtab): Likewise.
5300 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5302 * breakpoint.c (describe_other_breakpoints): Use address style
5304 (say_where): Likewise.
5306 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5308 * ada-typeprint.c (print_func_type): Print function name
5309 style to print function name.
5310 * c-typeprint.c (c_print_type_1): Likewise.
5312 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5314 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5317 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5319 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5322 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5324 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5325 TYPE_CODE_REF types.
5327 2019-02-08 Jim Wilson <jimw@sifive.com>
5329 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5330 (riscv_linux_fregset): New.
5331 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5333 2019-02-07 Tom Tromey <tom@tromey.com>
5335 * thread.c (thread_cancel_execution_command): Update.
5336 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5338 (struct thread_fsm_ops): Remove.
5339 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5340 (thread_fsm_should_stop, thread_fsm_return_value)
5341 (thread_fsm_set_finished, thread_fsm_finished_p)
5342 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5344 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5345 * infrun.c (clear_proceed_status_thread)
5346 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5347 (print_stop_event): Update.
5348 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5350 (step_command_fsm_ops): Remove.
5351 (new_step_command_fsm): Remove.
5353 (step_command_fsm::should_stop): Rename from
5354 step_command_fsm_should_stop.
5355 (step_command_fsm::clean_up): Rename from
5356 step_command_fsm_clean_up.
5357 (step_command_fsm::do_async_reply_reason): Rename from
5358 step_command_fsm_async_reply_reason.
5359 (struct until_next_fsm): Inherit from thread_fsm. Add
5361 (until_next_fsm_ops): Remove.
5362 (new_until_next_fsm): Remove.
5363 (until_next_fsm::should_stop): Rename from
5364 until_next_fsm_should_stop.
5365 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5366 (until_next_fsm::do_async_reply_reason): Rename from
5367 until_next_fsm_async_reply_reason.
5368 (struct finish_command_fsm): Inherit from thread_fsm. Add
5369 constructor. Change type of breakpoint.
5370 (finish_command_fsm_ops): Remove.
5371 (new_finish_command_fsm): Remove.
5372 (finish_command_fsm::should_stop): Rename from
5373 finish_command_fsm_should_stop.
5374 (finish_command_fsm::clean_up): Rename from
5375 finish_command_fsm_clean_up.
5376 (finish_command_fsm::return_value): Rename from
5377 finish_command_fsm_return_value.
5378 (finish_command_fsm::do_async_reply_reason): Rename from
5379 finish_command_fsm_async_reply_reason.
5380 (finish_command): Update.
5381 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5383 (call_thread_fsm_ops): Remove.
5384 (call_thread_fsm::call_thread_fsm): Rename from
5385 new_call_thread_fsm.
5386 (call_thread_fsm::should_stop): Rename from
5387 call_thread_fsm_should_stop.
5388 (call_thread_fsm::should_notify_stop): Rename from
5389 call_thread_fsm_should_notify_stop.
5390 (run_inferior_call, call_function_by_hand_dummy): Update.
5391 * cli/cli-interp.c (should_print_stop_to_console): Update.
5392 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5393 Add constructor. Change type of location_breakpoint,
5395 (until_break_fsm_ops): Remove.
5396 (new_until_break_fsm): Remove.
5397 (until_break_fsm::should_stop): Rename from
5398 until_break_fsm_should_stop.
5399 (until_break_fsm::clean_up): Rename from
5400 until_break_fsm_clean_up.
5401 (until_break_fsm::do_async_reply_reason): Rename from
5402 until_break_fsm_async_reply_reason.
5403 (until_break_command): Update.
5404 * thread-fsm.c: Remove.
5405 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5407 2019-02-07 Tom Tromey <tom@tromey.com>
5409 * yy-remap.h: Add include guard.
5410 * xtensa-tdep.h: Add include guard.
5411 * xcoffread.h: Rename include guard.
5412 * varobj-iter.h: Add include guard.
5413 * tui/tui.h: Rename include guard.
5414 * tui/tui-winsource.h: Rename include guard.
5415 * tui/tui-wingeneral.h: Rename include guard.
5416 * tui/tui-windata.h: Rename include guard.
5417 * tui/tui-win.h: Rename include guard.
5418 * tui/tui-stack.h: Rename include guard.
5419 * tui/tui-source.h: Rename include guard.
5420 * tui/tui-regs.h: Rename include guard.
5421 * tui/tui-out.h: Rename include guard.
5422 * tui/tui-layout.h: Rename include guard.
5423 * tui/tui-io.h: Rename include guard.
5424 * tui/tui-hooks.h: Rename include guard.
5425 * tui/tui-file.h: Rename include guard.
5426 * tui/tui-disasm.h: Rename include guard.
5427 * tui/tui-data.h: Rename include guard.
5428 * tui/tui-command.h: Rename include guard.
5429 * tic6x-tdep.h: Add include guard.
5430 * target/waitstatus.h: Rename include guard.
5431 * target/wait.h: Rename include guard.
5432 * target/target.h: Rename include guard.
5433 * target/resume.h: Rename include guard.
5434 * target-float.h: Rename include guard.
5435 * stabsread.h: Add include guard.
5436 * rs6000-tdep.h: Add include guard.
5437 * riscv-fbsd-tdep.h: Add include guard.
5438 * regformats/regdef.h: Rename include guard.
5439 * record.h: Rename include guard.
5440 * python/python.h: Rename include guard.
5441 * python/python-internal.h: Rename include guard.
5442 * python/py-stopevent.h: Rename include guard.
5443 * python/py-ref.h: Rename include guard.
5444 * python/py-record.h: Rename include guard.
5445 * python/py-record-full.h: Rename include guard.
5446 * python/py-record-btrace.h: Rename include guard.
5447 * python/py-instruction.h: Rename include guard.
5448 * python/py-events.h: Rename include guard.
5449 * python/py-event.h: Rename include guard.
5450 * procfs.h: Add include guard.
5451 * proc-utils.h: Add include guard.
5452 * p-lang.h: Add include guard.
5453 * or1k-tdep.h: Rename include guard.
5454 * observable.h: Rename include guard.
5455 * nto-tdep.h: Rename include guard.
5456 * nat/x86-linux.h: Rename include guard.
5457 * nat/x86-linux-dregs.h: Rename include guard.
5458 * nat/x86-gcc-cpuid.h: Add include guard.
5459 * nat/x86-dregs.h: Rename include guard.
5460 * nat/x86-cpuid.h: Rename include guard.
5461 * nat/ppc-linux.h: Rename include guard.
5462 * nat/mips-linux-watch.h: Rename include guard.
5463 * nat/linux-waitpid.h: Rename include guard.
5464 * nat/linux-ptrace.h: Rename include guard.
5465 * nat/linux-procfs.h: Rename include guard.
5466 * nat/linux-osdata.h: Rename include guard.
5467 * nat/linux-nat.h: Rename include guard.
5468 * nat/linux-namespaces.h: Rename include guard.
5469 * nat/linux-btrace.h: Rename include guard.
5470 * nat/glibc_thread_db.h: Rename include guard.
5471 * nat/gdb_thread_db.h: Rename include guard.
5472 * nat/gdb_ptrace.h: Rename include guard.
5473 * nat/fork-inferior.h: Rename include guard.
5474 * nat/amd64-linux-siginfo.h: Rename include guard.
5475 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5476 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5477 * nat/aarch64-linux.h: Rename include guard.
5478 * nat/aarch64-linux-hw-point.h: Rename include guard.
5479 * mn10300-tdep.h: Add include guard.
5480 * mips-linux-tdep.h: Add include guard.
5481 * mi/mi-parse.h: Rename include guard.
5482 * mi/mi-out.h: Rename include guard.
5483 * mi/mi-main.h: Rename include guard.
5484 * mi/mi-interp.h: Rename include guard.
5485 * mi/mi-getopt.h: Rename include guard.
5486 * mi/mi-console.h: Rename include guard.
5487 * mi/mi-common.h: Rename include guard.
5488 * mi/mi-cmds.h: Rename include guard.
5489 * mi/mi-cmd-break.h: Rename include guard.
5490 * m2-lang.h: Add include guard.
5491 * location.h: Rename include guard.
5492 * linux-record.h: Rename include guard.
5493 * linux-nat.h: Add include guard.
5494 * linux-fork.h: Add include guard.
5495 * i386-darwin-tdep.h: Rename include guard.
5496 * hppa-linux-offsets.h: Add include guard.
5497 * guile/guile.h: Rename include guard.
5498 * guile/guile-internal.h: Rename include guard.
5499 * gnu-nat.h: Rename include guard.
5500 * gdb-stabs.h: Rename include guard.
5501 * frv-tdep.h: Add include guard.
5502 * f-lang.h: Add include guard.
5503 * event-loop.h: Add include guard.
5504 * darwin-nat.h: Rename include guard.
5505 * cp-abi.h: Rename include guard.
5506 * config/sparc/nm-sol2.h: Rename include guard.
5507 * config/nm-nto.h: Rename include guard.
5508 * config/nm-linux.h: Add include guard.
5509 * config/i386/nm-i386gnu.h: Rename include guard.
5510 * config/djgpp/nl_types.h: Rename include guard.
5511 * config/djgpp/langinfo.h: Rename include guard.
5512 * compile/gcc-cp-plugin.h: Add include guard.
5513 * compile/gcc-c-plugin.h: Add include guard.
5514 * compile/compile.h: Rename include guard.
5515 * compile/compile-object-run.h: Rename include guard.
5516 * compile/compile-object-load.h: Rename include guard.
5517 * compile/compile-internal.h: Rename include guard.
5518 * compile/compile-cplus.h: Rename include guard.
5519 * compile/compile-c.h: Rename include guard.
5520 * common/xml-utils.h: Rename include guard.
5521 * common/x86-xstate.h: Rename include guard.
5522 * common/version.h: Rename include guard.
5523 * common/vec.h: Rename include guard.
5524 * common/tdesc.h: Rename include guard.
5525 * common/selftest.h: Rename include guard.
5526 * common/scoped_restore.h: Rename include guard.
5527 * common/scoped_mmap.h: Rename include guard.
5528 * common/scoped_fd.h: Rename include guard.
5529 * common/safe-iterator.h: Rename include guard.
5530 * common/run-time-clock.h: Rename include guard.
5531 * common/refcounted-object.h: Rename include guard.
5532 * common/queue.h: Rename include guard.
5533 * common/ptid.h: Rename include guard.
5534 * common/print-utils.h: Rename include guard.
5535 * common/preprocessor.h: Rename include guard.
5536 * common/pathstuff.h: Rename include guard.
5537 * common/observable.h: Rename include guard.
5538 * common/netstuff.h: Rename include guard.
5539 * common/job-control.h: Rename include guard.
5540 * common/host-defs.h: Rename include guard.
5541 * common/gdb_wait.h: Rename include guard.
5542 * common/gdb_vecs.h: Rename include guard.
5543 * common/gdb_unlinker.h: Rename include guard.
5544 * common/gdb_unique_ptr.h: Rename include guard.
5545 * common/gdb_tilde_expand.h: Rename include guard.
5546 * common/gdb_sys_time.h: Rename include guard.
5547 * common/gdb_string_view.h: Rename include guard.
5548 * common/gdb_splay_tree.h: Rename include guard.
5549 * common/gdb_setjmp.h: Rename include guard.
5550 * common/gdb_ref_ptr.h: Rename include guard.
5551 * common/gdb_optional.h: Rename include guard.
5552 * common/gdb_locale.h: Rename include guard.
5553 * common/gdb_assert.h: Rename include guard.
5554 * common/filtered-iterator.h: Rename include guard.
5555 * common/filestuff.h: Rename include guard.
5556 * common/fileio.h: Rename include guard.
5557 * common/environ.h: Rename include guard.
5558 * common/common-utils.h: Rename include guard.
5559 * common/common-types.h: Rename include guard.
5560 * common/common-regcache.h: Rename include guard.
5561 * common/common-inferior.h: Rename include guard.
5562 * common/common-gdbthread.h: Rename include guard.
5563 * common/common-exceptions.h: Rename include guard.
5564 * common/common-defs.h: Rename include guard.
5565 * common/common-debug.h: Rename include guard.
5566 * common/cleanups.h: Rename include guard.
5567 * common/buffer.h: Rename include guard.
5568 * common/btrace-common.h: Rename include guard.
5569 * common/break-common.h: Rename include guard.
5570 * cli/cli-utils.h: Rename include guard.
5571 * cli/cli-style.h: Rename include guard.
5572 * cli/cli-setshow.h: Rename include guard.
5573 * cli/cli-script.h: Rename include guard.
5574 * cli/cli-interp.h: Rename include guard.
5575 * cli/cli-decode.h: Rename include guard.
5576 * cli/cli-cmds.h: Rename include guard.
5577 * charset-list.h: Add include guard.
5578 * buildsym-legacy.h: Rename include guard.
5579 * bfin-tdep.h: Add include guard.
5580 * ax.h: Rename include guard.
5581 * arm-linux-tdep.h: Add include guard.
5582 * arm-fbsd-tdep.h: Add include guard.
5583 * arch/xtensa.h: Rename include guard.
5584 * arch/tic6x.h: Add include guard.
5585 * arch/i386.h: Add include guard.
5586 * arch/arm.h: Rename include guard.
5587 * arch/arm-linux.h: Rename include guard.
5588 * arch/arm-get-next-pcs.h: Rename include guard.
5589 * arch/amd64.h: Add include guard.
5590 * arch/aarch64-insn.h: Rename include guard.
5591 * arch-utils.h: Rename include guard.
5592 * annotate.h: Add include guard.
5593 * amd64-darwin-tdep.h: Rename include guard.
5594 * aarch64-linux-tdep.h: Add include guard.
5595 * aarch64-fbsd-tdep.h: Add include guard.
5596 * aarch32-linux-nat.h: Add include guard.
5598 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5600 * macrotab.c (macro_define_internal): New function that
5601 factorizes macro_define_object_internal and macro_define_function
5603 (macro_define_object_internal): Use macro_define_internal.
5604 (macro_define_function): Likewise.
5606 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5608 * macrocmd.c (extract_identifier): Return
5609 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5612 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5614 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5616 2019-02-05 Tom Tromey <tom@tromey.com>
5618 * target.c (target_stack::unpush): Move assertion earlier.
5620 2019-01-30 Tom Tromey <tom@tromey.com>
5623 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5624 (gdbpy_parse_and_eval): Likewise.
5625 * python/python-internal.h (gdbpy_allow_threads): New class.
5627 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5629 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5630 (aarch64_fbsd_fpregmap): Move earlier.
5631 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5632 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5633 instead of individual calls to trad_frame_set_reg_addr.
5634 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5636 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5637 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5638 instead of individual calls to trad_frame_set_reg_addr.
5640 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5642 * CONTRIBUTE: Replace contribution list with wiki link.
5644 2019-01-25 Tom Tromey <tom@tromey.com>
5646 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5648 2019-01-25 Tom Tromey <tom@tromey.com>
5650 * xtensa-linux-nat.c: Fix common/ includes.
5651 * xml-support.h: Fix common/ includes.
5652 * xml-support.c: Fix common/ includes.
5653 * x86-linux-nat.c: Fix common/ includes.
5654 * windows-nat.c: Fix common/ includes.
5655 * varobj.h: Fix common/ includes.
5656 * varobj.c: Fix common/ includes.
5657 * value.c: Fix common/ includes.
5658 * valops.c: Fix common/ includes.
5659 * utils.c: Fix common/ includes.
5660 * unittests/xml-utils-selftests.c: Fix common/ includes.
5661 * unittests/utils-selftests.c: Fix common/ includes.
5662 * unittests/unpack-selftests.c: Fix common/ includes.
5663 * unittests/tracepoint-selftests.c: Fix common/ includes.
5664 * unittests/style-selftests.c: Fix common/ includes.
5665 * unittests/string_view-selftests.c: Fix common/ includes.
5666 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5667 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5668 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5669 * unittests/rsp-low-selftests.c: Fix common/ includes.
5670 * unittests/parse-connection-spec-selftests.c: Fix common/
5672 * unittests/optional-selftests.c: Fix common/ includes.
5673 * unittests/offset-type-selftests.c: Fix common/ includes.
5674 * unittests/observable-selftests.c: Fix common/ includes.
5675 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5676 * unittests/memrange-selftests.c: Fix common/ includes.
5677 * unittests/memory-map-selftests.c: Fix common/ includes.
5678 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5679 * unittests/function-view-selftests.c: Fix common/ includes.
5680 * unittests/environ-selftests.c: Fix common/ includes.
5681 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5682 * unittests/common-utils-selftests.c: Fix common/ includes.
5683 * unittests/cli-utils-selftests.c: Fix common/ includes.
5684 * unittests/array-view-selftests.c: Fix common/ includes.
5685 * ui-file.c: Fix common/ includes.
5686 * tui/tui-io.c: Fix common/ includes.
5687 * tracepoint.h: Fix common/ includes.
5688 * tracepoint.c: Fix common/ includes.
5689 * tracefile-tfile.c: Fix common/ includes.
5690 * top.h: Fix common/ includes.
5691 * top.c: Fix common/ includes.
5692 * thread.c: Fix common/ includes.
5693 * target/waitstatus.h: Fix common/ includes.
5694 * target/waitstatus.c: Fix common/ includes.
5695 * target.h: Fix common/ includes.
5696 * target.c: Fix common/ includes.
5697 * target-memory.c: Fix common/ includes.
5698 * target-descriptions.c: Fix common/ includes.
5699 * symtab.h: Fix common/ includes.
5700 * symfile.c: Fix common/ includes.
5701 * stap-probe.c: Fix common/ includes.
5702 * spu-linux-nat.c: Fix common/ includes.
5703 * sparc-nat.c: Fix common/ includes.
5704 * source.c: Fix common/ includes.
5705 * solib.c: Fix common/ includes.
5706 * solib-target.c: Fix common/ includes.
5707 * ser-unix.c: Fix common/ includes.
5708 * ser-tcp.c: Fix common/ includes.
5709 * ser-pipe.c: Fix common/ includes.
5710 * ser-base.c: Fix common/ includes.
5711 * selftest-arch.c: Fix common/ includes.
5712 * s12z-tdep.c: Fix common/ includes.
5713 * rust-exp.y: Fix common/ includes.
5714 * rs6000-aix-tdep.c: Fix common/ includes.
5715 * riscv-tdep.c: Fix common/ includes.
5716 * remote.c: Fix common/ includes.
5717 * remote-notif.h: Fix common/ includes.
5718 * remote-fileio.h: Fix common/ includes.
5719 * remote-fileio.c: Fix common/ includes.
5720 * regcache.h: Fix common/ includes.
5721 * regcache.c: Fix common/ includes.
5722 * record-btrace.c: Fix common/ includes.
5723 * python/python.c: Fix common/ includes.
5724 * python/py-type.c: Fix common/ includes.
5725 * python/py-inferior.c: Fix common/ includes.
5726 * progspace.h: Fix common/ includes.
5727 * producer.c: Fix common/ includes.
5728 * procfs.c: Fix common/ includes.
5729 * proc-api.c: Fix common/ includes.
5730 * printcmd.c: Fix common/ includes.
5731 * ppc-linux-nat.c: Fix common/ includes.
5732 * parser-defs.h: Fix common/ includes.
5733 * osdata.c: Fix common/ includes.
5734 * obsd-nat.c: Fix common/ includes.
5735 * nat/x86-linux.c: Fix common/ includes.
5736 * nat/x86-linux-dregs.c: Fix common/ includes.
5737 * nat/x86-dregs.h: Fix common/ includes.
5738 * nat/x86-dregs.c: Fix common/ includes.
5739 * nat/ppc-linux.c: Fix common/ includes.
5740 * nat/mips-linux-watch.h: Fix common/ includes.
5741 * nat/mips-linux-watch.c: Fix common/ includes.
5742 * nat/linux-waitpid.c: Fix common/ includes.
5743 * nat/linux-ptrace.h: Fix common/ includes.
5744 * nat/linux-ptrace.c: Fix common/ includes.
5745 * nat/linux-procfs.c: Fix common/ includes.
5746 * nat/linux-personality.c: Fix common/ includes.
5747 * nat/linux-osdata.c: Fix common/ includes.
5748 * nat/linux-namespaces.c: Fix common/ includes.
5749 * nat/linux-btrace.h: Fix common/ includes.
5750 * nat/linux-btrace.c: Fix common/ includes.
5751 * nat/fork-inferior.c: Fix common/ includes.
5752 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5753 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5754 * nat/aarch64-linux.c: Fix common/ includes.
5755 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5756 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5757 * namespace.h: Fix common/ includes.
5758 * mips-linux-tdep.c: Fix common/ includes.
5759 * minsyms.c: Fix common/ includes.
5760 * mi/mi-parse.h: Fix common/ includes.
5761 * mi/mi-main.c: Fix common/ includes.
5762 * mi/mi-cmd-env.c: Fix common/ includes.
5763 * memrange.h: Fix common/ includes.
5764 * memattr.c: Fix common/ includes.
5765 * maint.h: Fix common/ includes.
5766 * maint.c: Fix common/ includes.
5767 * main.c: Fix common/ includes.
5768 * machoread.c: Fix common/ includes.
5769 * location.c: Fix common/ includes.
5770 * linux-thread-db.c: Fix common/ includes.
5771 * linux-nat.c: Fix common/ includes.
5772 * linux-fork.c: Fix common/ includes.
5773 * inline-frame.c: Fix common/ includes.
5774 * infrun.c: Fix common/ includes.
5775 * inflow.c: Fix common/ includes.
5776 * inferior.h: Fix common/ includes.
5777 * inferior.c: Fix common/ includes.
5778 * infcmd.c: Fix common/ includes.
5779 * inf-ptrace.c: Fix common/ includes.
5780 * inf-child.c: Fix common/ includes.
5781 * ia64-linux-nat.c: Fix common/ includes.
5782 * i387-tdep.c: Fix common/ includes.
5783 * i386-tdep.c: Fix common/ includes.
5784 * i386-linux-tdep.c: Fix common/ includes.
5785 * i386-linux-nat.c: Fix common/ includes.
5786 * i386-go32-tdep.c: Fix common/ includes.
5787 * i386-fbsd-tdep.c: Fix common/ includes.
5788 * i386-fbsd-nat.c: Fix common/ includes.
5789 * guile/scm-type.c: Fix common/ includes.
5790 * guile/guile.c: Fix common/ includes.
5791 * go32-nat.c: Fix common/ includes.
5792 * gnu-nat.c: Fix common/ includes.
5793 * gdbthread.h: Fix common/ includes.
5794 * gdbarch-selftests.c: Fix common/ includes.
5795 * gdb_usleep.c: Fix common/ includes.
5796 * gdb_select.h: Fix common/ includes.
5797 * gdb_bfd.c: Fix common/ includes.
5798 * gcore.c: Fix common/ includes.
5799 * fork-child.c: Fix common/ includes.
5800 * findvar.c: Fix common/ includes.
5801 * fbsd-nat.c: Fix common/ includes.
5802 * event-top.c: Fix common/ includes.
5803 * event-loop.c: Fix common/ includes.
5804 * dwarf2read.c: Fix common/ includes.
5805 * dwarf2loc.c: Fix common/ includes.
5806 * dwarf2-frame.c: Fix common/ includes.
5807 * dwarf-index-cache.c: Fix common/ includes.
5808 * dtrace-probe.c: Fix common/ includes.
5809 * disasm-selftests.c: Fix common/ includes.
5810 * defs.h: Fix common/ includes.
5811 * csky-tdep.c: Fix common/ includes.
5812 * cp-valprint.c: Fix common/ includes.
5813 * cp-support.h: Fix common/ includes.
5814 * cp-support.c: Fix common/ includes.
5815 * corelow.c: Fix common/ includes.
5816 * completer.h: Fix common/ includes.
5817 * completer.c: Fix common/ includes.
5818 * compile/compile.c: Fix common/ includes.
5819 * compile/compile-loc2c.c: Fix common/ includes.
5820 * compile/compile-cplus-types.c: Fix common/ includes.
5821 * compile/compile-cplus-symbols.c: Fix common/ includes.
5822 * command.h: Fix common/ includes.
5823 * cli/cli-dump.c: Fix common/ includes.
5824 * cli/cli-cmds.c: Fix common/ includes.
5825 * charset.c: Fix common/ includes.
5826 * build-id.c: Fix common/ includes.
5827 * btrace.h: Fix common/ includes.
5828 * btrace.c: Fix common/ includes.
5829 * breakpoint.h: Fix common/ includes.
5830 * breakpoint.c: Fix common/ includes.
5832 (enum agent_op): Fix common/ includes.
5833 * ax-general.c (struct aop_map): Fix common/ includes.
5834 * ax-gdb.c: Fix common/ includes.
5835 * auxv.c: Fix common/ includes.
5836 * auto-load.c: Fix common/ includes.
5837 * arm-tdep.c: Fix common/ includes.
5838 * arch/riscv.c: Fix common/ includes.
5839 * arch/ppc-linux-common.c: Fix common/ includes.
5840 * arch/i386.c: Fix common/ includes.
5841 * arch/arm.c: Fix common/ includes.
5842 * arch/arm-linux.c: Fix common/ includes.
5843 * arch/arm-get-next-pcs.c: Fix common/ includes.
5844 * arch/amd64.c: Fix common/ includes.
5845 * arch/aarch64.c: Fix common/ includes.
5846 * arch/aarch64-insn.c: Fix common/ includes.
5847 * arch-utils.c: Fix common/ includes.
5848 * amd64-windows-tdep.c: Fix common/ includes.
5849 * amd64-tdep.c: Fix common/ includes.
5850 * amd64-sol2-tdep.c: Fix common/ includes.
5851 * amd64-obsd-tdep.c: Fix common/ includes.
5852 * amd64-nbsd-tdep.c: Fix common/ includes.
5853 * amd64-linux-tdep.c: Fix common/ includes.
5854 * amd64-linux-nat.c: Fix common/ includes.
5855 * amd64-fbsd-tdep.c: Fix common/ includes.
5856 * amd64-fbsd-nat.c: Fix common/ includes.
5857 * amd64-dicos-tdep.c: Fix common/ includes.
5858 * amd64-darwin-tdep.c: Fix common/ includes.
5859 * agent.c: Fix common/ includes.
5860 * ada-lang.h: Fix common/ includes.
5861 * ada-lang.c: Fix common/ includes.
5862 * aarch64-tdep.c: Fix common/ includes.
5864 2019-01-25 Tom Tromey <tom@tromey.com>
5866 * common/create-version.sh: Use common/version.h.
5868 2019-01-24 Pedro Alves <palves@redhat.com>
5870 * infrun.c (signal_stop, signal_print, signal_program)
5871 (signal_catch, signal_pass): Now arrays instead of pointers.
5872 (update_signals_program_target, do_target_resume)
5873 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5874 * linux-nat.c (linux_nat_target::pass_signals)
5875 (linux_nat_target::create_inferior, linux_nat_target::attach):
5877 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5878 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5879 * procfs.c (procfs_target::pass_signals): Adjust.
5880 * record-full.c (record_full_target::resume): Adjust.
5881 * remote.c (remote_target::pass_signals)
5882 (remote_target::program_signals): Adjust.
5883 * target-debug.h (target_debug_print_signals): Now takes a
5884 gdb::array_view as parameter. Adjust.
5885 * target.h (target_ops) <pass_signals, program_signals>: Replace
5886 pointer and length parameters with gdb::array_view.
5887 (target_pass_signals, target_program_signals): Likewise.
5888 * target-delegates.c: Regenerate.
5890 2019-01-24 Pedro Alves <palves@redhat.com>
5892 * common/forward-scope-exit.h
5893 (forward_scope_exit::forward_scope_exit): Pass arguments to
5894 m_bind_function directly, instead of creating a std::bind and
5897 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5899 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5901 (pass_in_v_vfp_candidate): Likewise.
5903 2019-01-23 Tom Tromey <tom@tromey.com>
5904 Pedro Alves <palves@redhat.com>
5906 * regcache.c (class regcache_invalidator): Remove.
5907 (regcache::raw_write): Use make_scope_exit.
5909 2019-01-23 Tom Tromey <tom@tromey.com>
5911 * ui-out.h (class ui_out_emit_type): Update comment.
5913 2019-01-23 Tom Tromey <tom@tromey.com>
5915 * infrun.c (fetch_inferior_event): Update comment.
5917 2019-01-23 Tom Tromey <tom@tromey.com>
5918 Pedro Alves <palves@redhat.com>
5920 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5922 (fetch_inferior_event): Use SCOPE_EXIT.
5925 2019-01-23 Tom Tromey <tom@tromey.com>
5926 Pedro Alves <palves@redhat.com>
5928 * infrun.c (disable_thread_events): Delete.
5929 (stop_all_threads): Use SCOPE_EXIT.
5931 2019-01-23 Tom Tromey <tom@tromey.com>
5932 Pedro Alves <palves@redhat.com>
5934 * symfile.c: Include forward-scope-exit.h.
5935 (clear_symtab_users_cleanup): Replace forward declaration with
5936 a FORWARD_SCOPE_EXIT.
5937 (syms_from_objfile_1): Use the forward_scope_exit and
5938 gdb::optional instead of cleanup_function.
5939 (reread_symbols): Use the forward_scope_exit instead of
5941 (clear_symtab_users_cleanup): Remove function.
5943 2019-01-23 Tom Tromey <tom@tromey.com>
5944 Pedro Alves <palves@redhat.com>
5946 * linux-nat.c: Include scope-exit.h.
5947 (cleanup_target_stop): Remove.
5948 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5951 2019-01-23 Tom Tromey <tom@tromey.com>
5952 Pedro Alves <palves@redhat.com>
5954 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5955 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5957 2019-01-23 Tom Tromey <tom@tromey.com>
5958 Andrew Burgess <andrew.burgess@embecosm.com>
5959 Pedro Alves <palves@redhat.com>
5961 * infrun.c (fetch_inferior_event): Use scope_exit.
5962 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5963 * top.c (execute_command): Use scope_exit.
5964 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5965 * utils.c (do_bpstat_clear_actions_cleanup)
5966 (make_bpstat_clear_actions_cleanup): Remove.
5968 2019-01-23 Tom Tromey <tom@tromey.com>
5969 Pedro Alves <palves@redhat.com>
5971 * infrun.c: Include "common/scope-exit.h"
5972 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5973 (wait_for_inferior): Use SCOPE_EXIT.
5974 (fetch_inferior_event): Use scope_exit.
5976 2019-01-23 Tom Tromey <tom@tromey.com>
5977 Pedro Alves <palves@redhat.com>
5979 * breakpoint.c (create_breakpoint): Remove cleanup.
5981 2019-01-23 Tom Tromey <tom@tromey.com>
5982 Andrew Burgess <andrew.burgess@embecosm.com>
5983 Pedro Alves <palves@redhat.com>
5985 2019-01-23 Pedro Alves <palves@redhat.com>
5987 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5989 2019-01-23 Pedro Alves <palves@redhat.com>
5990 Andrew Burgess <andrew.burgess@embecosm.com>
5992 * gdbthread.h: Include "common/forward-scope-exit.h".
5993 (scoped_finish_thread_state): Redefine custom class in terms of
5996 2019-01-23 Pedro Alves <palves@redhat.com>
5997 Andrew Burgess <andrew.burgess@embecosm.com>
5999 * common/forward-scope-exit.h: New file.
6001 2019-01-23 Pedro Alves <palves@redhat.com>
6002 Andrew Burgess <andrew.burgess@embecosm.com>
6003 Tom Tromey <tom@tromey.com>
6005 * common/scope-exit.h: New file.
6007 2019-01-23 Pedro Alves <palves@redhat.com>
6009 * common/preprocessor.h (ESC): Rename to ...
6010 (ESC_PARENS): ... this.
6011 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6012 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6014 2019-01-23 Tom Tromey <tom@tromey.com>
6016 * language.h (class scoped_switch_to_sym_language_if_auto):
6017 Initialize m_lang in both cases.
6019 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6021 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6024 2019-01-22 Tom Tromey <tom@tromey.com>
6026 * corelow.c: Do not include sys/file.h.
6028 2019-01-22 Tom Tromey <tom@tromey.com>
6030 * tui/tui-wingeneral.h: Include gdb_curses.h.
6032 2019-01-22 Tom Tromey <tom@tromey.com>
6034 * source-cache.h (class source_cache) <get_source_lines,
6035 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6037 2019-01-22 Tom Tromey <tom@tromey.com>
6039 * remote-fileio.h (struct remote_target): Declare.
6041 2019-01-22 Tom Tromey <tom@tromey.com>
6043 * python/py-arch.c: Do not include py-ref.h.
6044 * python/py-bpevent.c: Do not include py-ref.h.
6045 * python/py-cmd.c: Do not include py-ref.h.
6046 * python/py-continueevent.c: Do not include py-ref.h.
6047 * python/py-event.h: Do not include py-ref.h.
6048 * python/py-evtregistry.c: Do not include py-ref.h.
6049 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6050 * python/py-frame.c: Do not include py-ref.h.
6051 * python/py-framefilter.c: Do not include py-ref.h.
6052 * python/py-function.c: Do not include py-ref.h.
6053 * python/py-infevents.c: Do not include py-ref.h.
6054 * python/py-linetable.c: Do not include py-ref.h.
6055 * python/py-objfile.c: Do not include py-ref.h.
6056 * python/py-param.c: Do not include py-ref.h.
6057 * python/py-prettyprint.c: Do not include py-ref.h.
6058 * python/py-progspace.c: Do not include py-ref.h.
6059 * python/py-symbol.c: Do not include py-ref.h.
6060 * python/py-symtab.c: Do not include py-ref.h.
6061 * python/py-type.c: Do not include py-ref.h.
6062 * python/py-unwind.c: Do not include py-ref.h.
6063 * python/py-utils.c: Do not include py-ref.h.
6064 * python/py-value.c: Do not include py-ref.h.
6065 * python/py-varobj.c: Do not include py-ref.h.
6066 * python/py-xmethods.c: Do not include py-ref.h.
6067 * python/python.c: Do not include py-ref.h.
6068 * varobj.c: Do not include py-ref.h.
6070 2019-01-22 Tom Tromey <tom@tromey.com>
6072 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6075 2019-01-22 Tom Tromey <tom@tromey.com>
6077 * compile/compile-cplus-types.c: Remove a comment by #include.
6079 2019-01-22 Tom Tromey <tom@tromey.com>
6081 * compile/gcc-c-plugin.h: Include compile-internal.h.
6083 2019-01-22 Tom Tromey <tom@tromey.com>
6085 * stabsread.c (EXTERN): Do not define.
6086 (symnum, next_symbol_text_func, processing_gcc_compilation)
6087 (within_function, global_sym_chain, global_stabs)
6088 (previous_stab_code, this_object_header_files)
6089 (n_this_object_header_files)
6090 (n_allocated_this_object_header_files): Define.
6091 * stabsread.h (EXTERN): Never define. Use "extern".
6093 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6095 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6098 2019-01-21 Tom Tromey <tom@tromey.com>
6100 * ui-out.c: Fix includes.
6101 * tui/tui-source.c: Fix includes.
6102 * target.c: Fix includes.
6103 * remote.c: Fix includes.
6104 * regcache.c: Fix includes.
6105 * python/py-block.c: Fix includes.
6106 * printcmd.c: Fix includes.
6107 * or1k-tdep.c: Fix includes.
6108 * mi/mi-main.c: Fix includes.
6109 * m32r-tdep.c: Fix includes.
6110 * csky-tdep.c: Fix includes.
6111 * compile/compile-cplus-types.c: Fix includes.
6112 * cli/cli-interp.c: Fix includes.
6114 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6116 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6119 2019-01-16 Tom Tromey <tom@tromey.com>
6121 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6123 (struct objfile) <msymbols_range>: Move from top level.
6124 <msymbols>: New method.
6125 (class objfile_msymbols): Remove.
6126 * symtab.c (default_collect_symbol_completion_matches_break_on):
6128 * symmisc.c (dump_msymbols): Update.
6129 * stabsread.c (scan_file_globals): Update.
6130 * objc-lang.c (info_selectors_command, info_classes_command)
6131 (find_methods): Update.
6132 * minsyms.c (find_solib_trampoline_target): Update.
6133 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6134 * coffread.c (coff_symfile_read): Update.
6135 * ada-lang.c (ada_lookup_simple_minsym)
6136 (ada_collect_symbol_completion_matches): Update.
6138 2019-01-16 Tom Tromey <tom@tromey.com>
6140 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6141 type. Remove no-argument constructor.
6142 <iterator::operator++>: Simplify.
6144 <end>: Use minimal_symbol_count.
6146 2019-01-16 Tom Tromey <tom@tromey.com>
6148 * objfiles.h (struct objfile) <psymtabs>: New method.
6149 (class objfile_psymtabs): Remove.
6150 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6152 <range>: New method.
6153 (require_partial_symbols): Change return type.
6154 * psymtab.c (require_partial_symbols)
6155 (psym_expand_symtabs_matching): Update.
6156 * mdebugread.c (parse_partial_symbols): Update.
6157 * dbxread.c (dbx_end_psymtab): Update.
6159 2019-01-15 Tom Tromey <tom@tromey.com>
6161 * symtab.c (lookup_objfile_from_block)
6162 (lookup_symbol_in_objfile_symtabs)
6163 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6164 (find_line_symtab, info_sources_command)
6165 (default_collect_symbol_completion_matches_break_on)
6166 (make_source_files_completion_list): Update.
6167 * symmisc.c (print_objfile_statistics, dump_objfile)
6168 (maintenance_print_symbols, maintenance_info_symtabs)
6169 (maintenance_check_symtabs, maintenance_info_line_tables):
6171 * source.c (select_source_symtab)
6172 (forget_cached_source_info_for_objfile): Update.
6173 * objfiles.h (class objfile_compunits): Remove.
6174 (struct objfile) <compunits_range>: New typedef.
6175 (compunits): New method.
6176 * objfiles.c (objfile_relocate1): Update.
6177 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6178 * maint.c (count_symtabs_and_blocks): Update.
6179 * linespec.c (iterate_over_all_matching_symtabs): Update.
6180 * cp-support.c (add_symbol_overload_list_qualified): Update.
6181 * coffread.c (coff_symtab_read): Update.
6182 * ada-lang.c (add_nonlocal_symbols)
6183 (ada_collect_symbol_completion_matches)
6184 (ada_add_global_exceptions): Update.
6186 2019-01-15 Tom Tromey <tom@tromey.com>
6188 * progspace.h (program_space) <objfiles_safe_range>: New
6190 <objfiles_safe>: New method.
6191 * objfiles.h (class all_objfiles_safe): Remove.
6192 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6193 * jit.c (jit_inferior_exit_hook): Update.
6195 2019-01-17 Tom Tromey <tom@tromey.com>
6197 * progspace.h (program_space) <objfiles_range>: New typedef.
6198 <objfiles>: New method.
6199 <objfiles_head>: Rename from objfiles.
6200 (object_files): Update.
6201 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6202 * guile/scm-pretty-print.c
6203 (ppscm_find_pretty_printer_from_objfiles): Update.
6204 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6205 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6207 * python/py-progspace.c (pspy_get_objfiles): Update.
6208 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6210 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6211 (objfpy_lookup_objfile_by_build_id): Update.
6212 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6213 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6215 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6216 (expand_symtab_containing_pc, lookup_objfile_from_block)
6217 (lookup_static_symbol, basic_lookup_transparent_type)
6218 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6219 (find_line_symtab, info_sources_command)
6220 (default_collect_symbol_completion_matches_break_on)
6221 (make_source_files_completion_list, find_main_name): Update.
6222 * symmisc.c (print_symbol_bcache_statistics)
6223 (print_objfile_statistics, maintenance_print_symbols)
6224 (maintenance_print_msymbols, maintenance_print_objfiles)
6225 (maintenance_info_symtabs, maintenance_check_symtabs)
6226 (maintenance_expand_symtabs, maintenance_info_line_tables):
6228 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6229 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6230 (map_overlay_command, unmap_overlay_command)
6231 (simple_overlay_update, expand_symtabs_matching)
6232 (map_symbol_filenames): Update.
6233 * symfile-debug.c (set_debug_symfile): Update.
6234 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6236 * source.c (select_source_symtab, forget_cached_source_info):
6238 * solib.c (solib_read_symbols): Update.
6239 * solib-spu.c (append_ocl_sos): Update.
6240 * psymtab.c (maintenance_print_psymbols)
6241 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6242 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6243 * printcmd.c (info_symbol_command): Update.
6244 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6246 * objfiles.h (class all_objfiles): Remove.
6247 * objfiles.c (have_partial_symbols, have_full_symbols)
6248 (have_minimal_symbols, qsort_cmp, update_section_map)
6249 (shared_objfile_contains_address_p)
6250 (default_iterate_over_objfiles_in_search_order): Update.
6251 * objc-lang.c (info_selectors_command, info_classes_command)
6252 (find_methods): Update.
6253 * minsyms.c (find_solib_trampoline_target): Update.
6254 * maint.c (maintenance_info_sections)
6255 (maintenance_translate_address, count_symtabs_and_blocks):
6257 * main.c (captured_main_1): Update.
6258 * linux-thread-db.c (try_thread_db_load_from_pdir)
6259 (has_libpthread): Update.
6260 * linespec.c (iterate_over_all_matching_symtabs)
6261 (search_minsyms_for_name): Update.
6262 * jit.c (jit_find_objf_with_entry_addr): Update.
6263 * hppa-tdep.c (find_unwind_entry)
6264 (hppa_lookup_stub_minimal_symbol): Update.
6265 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6267 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6268 (elf_gnu_ifunc_resolve_by_got): Update.
6269 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6270 * dwarf-index-write.c (save_gdb_index_command): Update.
6271 * cp-support.c (add_symbol_overload_list_qualified): Update.
6272 * breakpoint.c (create_overlay_event_breakpoint)
6273 (create_longjmp_master_breakpoint)
6274 (create_std_terminate_master_breakpoint)
6275 (create_exception_master_breakpoint): Update.
6276 * blockframe.c (find_pc_partial_function): Update.
6277 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6278 (ada_collect_symbol_completion_matches)
6279 (ada_add_global_exceptions): Update.
6281 2019-01-17 Tom Tromey <tom@tromey.com>
6283 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6285 (solib_target_parse_libraries): Change return type.
6286 (library_list_start_segment, library_list_start_section)
6287 (library_list_end_library, library_list_start_library); Update.
6288 (solib_target_free_library_list): Remove.
6289 (solib_target_parse_libraries): Remove cleanup. Change return
6291 (solib_target_current_sos): Update.
6293 2019-01-17 Tom Tromey <tromey@bapiya>
6295 * valprint.c: Replace "the the" with "the".
6296 * symtab.c: Replace "the the" with "the".
6297 * solib.c: Replace "the the" with "the".
6298 * solib-dsbt.c: Replace "the the" with "the".
6299 * linespec.c: Replace "the the" with "the".
6300 * dwarf2loc.h: Replace "the the" with "the".
6301 * amd64-windows-tdep.c: Replace "the the" with "the".
6302 * aarch64-tdep.c: Replace "the the" with "the".
6304 2019-01-16 Keith Seitz <keiths@redhat.com>
6307 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6308 <builder>: Rename to ..
6309 <m_builder>: ... this and make private.
6310 (dwarf2_cu::get_builder): New method. Change all users of
6311 `builder' to use this method.
6312 (dwarf2_start_symtab): Move to ...
6313 (dwarf2_cu::start_symtab): ... here. Update all callers
6314 (setup_type_unit_groups): Move to ...
6315 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6317 (dwarf2_cu::reset_builder): New method.
6318 (process_full_compunit, process_full_type_unit): Use
6319 dwarf2_cu::reset_builder.
6320 (follow_die_offset): Record the ancestor CU if it is different
6321 from the followed DIE's CU.
6322 (follow_die_sig_1): Likewise.
6324 2019-01-15 Tom Tromey <tom@tromey.com>
6326 * remote.c (class remote_state) <buf>: Now a char_vector.
6328 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6330 (remote_target::getpkt_or_notif_sane_1)
6331 (remote_target::getpkt_sane)
6332 (remote_target::getpkt_or_notif_sane): Likewise.
6333 (class remote_target) <putpkt>: New overload.
6334 (remote_target::read_frame): Change type of "buf_p". Remove
6336 (packet_ok): New overload.
6337 (packet_check_result): New overload.
6340 2019-01-14 Tom Tromey <tom@tromey.com>
6342 * remote-notif.c (handle_notification, remote_notif_ack)
6343 (remote_notif_parse): Make "buf" const.
6344 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6346 (remote_notif_parse, remote_notif_ack, handle_notification):
6348 * remote.c (remote_notif_stop_parse): Make "buf" const.
6349 (remote_target::remote_parse_stop_reply): Make "buf" const.
6350 (remote_notif_stop_ack): Make "buf" const.
6352 2019-01-14 Tom Tromey <tom@tromey.com>
6354 * remote.c (remote_console_output): Make parameter const.
6356 2019-01-14 Tom Tromey <tom@tromey.com>
6358 * target-debug.h (target_debug_print_signals): Constify.
6359 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6360 * procfs.c (procfs_target::pass_signals): Update.
6361 * linux-nat.c (linux_nat_target::pass_signals): Update.
6362 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6363 * target-delegates.c: Rebuild.
6364 * remote.c (remote_target::program_signals): Update.
6365 (remote_target::pass_signals): Update.
6366 * target.c (target_pass_signals): Constify argument.
6367 (target_program_signals): Likewise.
6368 * target.h (struct target_ops) <pass_signals, program_signals>:
6370 (target_pass_signals, target_program_signals): Constify argument.
6372 2019-01-14 Tom Tromey <tom@tromey.com>
6375 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6377 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6379 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6381 * rs6000-tdep.c: Include reggroups.h.
6382 (IS_V_ALIAS_PSEUDOREG): Define.
6383 (rs6000_register_name): Return names for the "vX" aliases.
6384 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6385 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6386 aliases. Call default_register_reggroup_p for all other
6388 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6390 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6391 Handle "vX" aliases.
6392 (v_alias_pseudo_register_collect): New function.
6393 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6394 (rs6000_gdbarch_init): Initialize "vX" aliases as
6395 pseudo-registers. Restore registration of
6396 rs6000_pseudo_register_reggroup_p with
6397 set_tdesc_pseudo_register_reggroup_p.
6399 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6401 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6402 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6403 set_gdbarch_num_pseudo_regs.
6405 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6407 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6408 Remove arg prefixname, add do_set and do_show.
6409 Add member functions set_list and show_list.
6410 * cli/cli-style.c (class cli_style_option): Update accordingly.
6411 (style_set_list): Move to file scope.
6412 (style_show_list): Likewise.
6413 (set_style): Call help_list.
6414 (show_style): Call cmd_show_list.
6415 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6416 Update to use the new macro.
6418 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6420 * ada-lang.c (_initialize_ada_language): Expand the help text
6421 for the "catch exception" command.
6423 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6425 * symtab.c (matching_obj_sections): Initialize obj,
6426 declare it closer to its usage.
6428 2019-01-10 Tom Tromey <tom@tromey.com>
6430 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6431 (basic_inf_threads_range): Remove.
6432 (inf_threads_range, inf_non_exited_threads_range)
6433 (safe_inf_threads_range): Use next_adapter.
6435 2019-01-10 Keith Seitz <keiths@redhat.com>
6439 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6440 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6442 2019-01-10 Keith Seitz <keiths@redhat.com>
6446 * dictionary.c (pending_to_vector): Remove.
6447 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6448 Remove _1 suffix, replacing functions of the same name. Update
6450 (dict_create_hashed, dict_create_hashed_expandable)
6451 (dict_create_linear, dict_create_linear_expandable, dict_free)
6452 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6453 Make functions static.
6455 2019-01-10 Keith Seitz <keiths@redhat.com>
6459 * dictionary.h (struct dictionary): Replace declaration with
6461 (dict_create_hashed, dict_create_hashed_expandable)
6462 (dict_create_linear, dict_create_linear_expandable)
6463 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6464 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6465 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6466 taking multidictionary argument.
6467 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6468 * block.h (struct block) <dict>: Change to multidictionary
6469 and rename `multidict'.
6470 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6471 symmisc.c: Update all dictionary references to multidictionary.
6473 2019-01-10 Keith Seitz <keiths@redhat.com>
6477 * dictionary.c: Include unordered_map.
6478 (pending_to_vector): New function.
6479 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6480 Rewrite the non-"_1" functions to take vector instead
6482 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6483 "new" _1 versions of the same name.
6484 (multidictionary): Define.
6485 (std::hash<enum language): New definition.
6486 (collate_pending_symbols_by_language, mdict_create_hashed)
6487 (mdict_create_hashed_expandable, mdict_create_linear)
6488 (mdict_create_linear_expandable, mdict_free)
6489 (find_language_dictionary, create_new_language_dictionary)
6490 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6491 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6492 (mdict_size, mdict_empty): New functions.
6493 * dictionary.h (mdict_iterator): Define.
6495 2019-01-10 Pedro Alves <palves@redhat.com>
6497 * breakpoint.c (read_uploaded_action)
6498 (create_tracepoint_from_upload): Adjust to use
6499 gdb::unique_xmalloc_ptr.
6500 * ctf.c (ctf_write_uploaded_tp):
6501 (SET_ARRAY_FIELD): Use emplace_back.
6502 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6503 * tracefile-tfile.c (tfile_write_uploaded_tp):
6504 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6505 gdb::unique_xmalloc_ptr.
6506 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6507 at_string, cond_string, cmd_strings>: Replace char pointers
6508 with gdb::unique_xmalloc_ptr.
6510 2019-01-10 Pedro Alves <palves@redhat.com>
6512 * solib-target.c (library_list_start_library): Don't xstrdup name.
6514 2019-01-10 Pedro Alves <palves@redhat.com>
6516 * mdebugread.c (parse_partial_symbols): Use
6517 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6519 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6521 * linux-fork.c (scoped_switch_fork_info)
6522 <~scoped_switch_fork_info>: Fix incorrect variable name.
6524 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6526 * linux-fork.c (scoped_switch_fork_info)
6527 <scoped_switch_fork_info>: Make explicit.
6528 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6530 2019-01-10 Tom Tromey <tom@tromey.com>
6532 * objfiles.h (objfile::reset_psymtabs): Update.
6533 * objfiles.c (objfile::objfile): Update.
6534 * psymtab.h (psymtab_storage::obstack): Update.
6535 (psymtab_storage::m_obstack): Use gdb::optional.
6536 (class psymtab_storage): Update comment. Remove objfile
6538 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6540 2019-01-10 Tom Tromey <tom@tromey.com>
6542 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6543 <free_psymtabs>: Now private.
6544 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6545 (allocate_psymtab): Use new method.
6547 2019-01-10 Tom Tromey <tom@tromey.com>
6549 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6550 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6551 * mdebugread.c (parse_partial_symbols): Use
6552 allocate_dependencies.
6553 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6554 allocate_dependencies.
6555 (process_psymtab_comp_unit_reader)
6556 (build_type_psymtab_dependencies): Likewise.
6557 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6559 2019-01-10 Tom Tromey <tom@tromey.com>
6561 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6562 PSYMBOL_SET_LANGUAGE.
6563 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6565 2019-01-10 Tom Tromey <tom@tromey.com>
6567 * psymtab.h (psymtab_storage::obstack): New method.
6568 <m_obstack>: Rename from obstack; now private.
6569 * psymtab.c (psymtab_storage): Update.
6570 * dwarf2read.c (create_addrmap_from_index)
6571 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6574 2019-01-10 Tom Tromey <tom@tromey.com>
6576 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6577 * objfiles.h (objfile::reset_psymtabs): New method.
6579 2019-01-10 Tom Tromey <tom@tromey.com>
6581 * symmisc.c (print_symbol_bcache_statistics): Update.
6582 (print_objfile_statistics): Update.
6583 * symfile.c (reread_symbols): Update.
6584 * psymtab.h (class psymtab_storage): New.
6585 * psymtab.c (psymtab_storage): New constructor.
6586 (~psymtab_storage): New destructor.
6587 (require_partial_symbols): Update.
6588 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6589 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6590 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6591 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6592 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6593 (start_psymtab_common, end_psymtab_common)
6594 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6595 (allocate_psymtab): Update.
6596 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6598 (dump_psymtab_addrmap, maintenance_print_psymbols)
6599 (maintenance_check_psymtabs): Update.
6600 (class objfile_psymtabs): Move to objfiles.h.
6601 * psympriv.h (discard_psymtab): Now inline.
6602 (psymtab_discarder::psymtab_discarder): Update.
6603 (psymtab_discarder::~psymtab_discarder): Update.
6604 (ALL_OBJFILE_PSYMTABS): Rewrite.
6605 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6606 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6608 <partial_symtabs>: New field.
6609 (class objfile_psymtabs): Move from psymtab.h. Update.
6610 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6612 (objfile::~objfile): Don't destroy psymbol_cache.
6613 * mdebugread.c (parse_partial_symbols): Update.
6614 * dwarf2read.c (create_addrmap_from_index)
6615 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6616 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6617 (add_partial_subprogram, dwarf2_ranges_read): Update.
6618 * dwarf-index-write.c (write_address_map)
6619 (write_one_signatured_type, recursively_write_psymbols)
6620 (class debug_names, class debug_names, write_psymtabs_to_index):
6623 2019-01-10 Tom Tromey <tom@tromey.com>
6625 * symtab.h (SYMBOL_SET_NAMES): Update.
6626 (symbol_set_names): Update.
6627 (MSYMBOL_SET_NAMES): Update.
6628 * symtab.c (symbol_set_names): Change argument to be an
6629 objfile_per_bfd_storage.
6630 * psymtab.c (add_psymbol_to_bcache): Update.
6631 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6633 2019-01-10 Tom Tromey <tom@tromey.com>
6635 * symtab.c (create_demangled_names_hash): Change argument to be an
6636 objfile_per_bfd_storage.
6637 (symbol_set_names): Update.
6639 2019-01-10 Tom Tromey <tom@tromey.com>
6641 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6643 * psymtab.c (init_psymbol_list): Do nothing if already called.
6644 * psympriv.h (init_psymbol_list): Add comment.
6645 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6647 * dbxread.c (dbx_symfile_read): Unconditionally call
6650 2019-01-10 Tom Tromey <tom@tromey.com>
6652 * xcoffread.c (scan_xcoff_symtab): Update.
6653 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6655 * mdebugread.c (parse_partial_symbols)
6656 (handle_psymbol_enumerators): Update.
6657 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6658 * dbxread.c (read_dbx_symtab): Update.
6659 * psympriv.h (psymbol_placement): New enum.
6660 (add_psymbol_to_list): Update.
6662 2019-01-10 Tom Tromey <tom@tromey.com>
6664 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6665 static_psymbols parameters.
6666 (scan_xcoff_symtab): Update.
6667 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6668 static_psymbols parameters.
6669 * psympriv.h (start_psymtab_common): Update.
6670 * mdebugread.c (parse_partial_symbols): Update.
6671 * dwarf2read.c (create_partial_symtab): Update.
6672 * dbxread.c (read_dbx_symtab): Update.
6673 (start_psymtab): Remove global_psymbols and static_psymbols
6676 2019-01-10 Tom Tromey <tom@tromey.com>
6678 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6679 * psymtab.c (allocate_psymtab): Add comment.
6680 * psympriv.h (allocate_psymtab): Add comment.
6681 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6683 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6685 2019-01-10 Tom Tromey <tom@tromey.com>
6687 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6689 * mipsread.c: Include mdebugread.h.
6690 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6692 * elfread.c: Include mdebugread.h.
6694 2019-01-09 Tom Tromey <tom@tromey.com>
6696 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6697 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6698 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6699 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6700 (psym_lookup_symbol, psym_find_last_source_symtab)
6701 (psym_forget_cached_source_info, psym_print_stats)
6702 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6703 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6704 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6705 (psym_find_compunit_symtab_by_address)
6706 (maintenance_print_psymbols, maintenance_info_psymtabs)
6707 (maintenance_check_psymtabs): Use ranged for.
6708 * psymtab.h (class objfile_psymtabs): New.
6709 (require_partial_symbols): Return objfile_psymtabs.
6710 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6712 2019-01-09 Tom Tromey <tom@tromey.com>
6714 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6715 (find_pc_mapped_section, list_overlays_command)
6716 (map_overlay_command, unmap_overlay_command)
6717 (simple_overlay_update): Use all_objfiles.
6718 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6719 * printcmd.c (info_symbol_command): Use all_objfiles.
6720 * objfiles.h (ALL_OBJSECTIONS): Remove.
6721 * maint.c (maintenance_translate_address): Use all_objfiles.
6722 * gcore.c (gcore_create_callback): Use all_objfiles.
6723 (objfile_find_memory_regions): Likewise.
6725 2019-01-09 Tom Tromey <tom@tromey.com>
6727 * symtab.c (find_line_symtab, info_sources_command)
6728 (make_source_files_completion_list): Use objfile_compunits.
6729 * source.c (select_source_symtab): Use objfile_compunits.
6730 * objfiles.h (struct objfile): Update comment.
6731 (ALL_OBJFILES): Remove.
6732 (ALL_FILETABS): Remove.
6733 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6736 2019-01-09 Tom Tromey <tom@tromey.com>
6738 * symmisc.c (print_objfile_statistics, dump_objfile)
6739 (maintenance_print_symbols): Use compunit_filetabs.
6740 * source.c (forget_cached_source_info_for_objfile): Use
6742 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6743 (ALL_FILETABS): Use compunit_filetabs.
6744 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6745 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6747 2019-01-09 Tom Tromey <tom@tromey.com>
6749 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6750 (compunit_filetabs): New.
6751 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6753 (info_sources_command, make_source_files_completion_list): Remove
6755 * symmisc.c (print_objfile_statistics, dump_objfile)
6756 (maintenance_print_symbols): Remove declaration.
6757 (maintenance_info_symtabs): Use compunit_filetabs.
6758 (maintenance_info_line_tables): Likewise.
6759 * source.c (select_source_symtab): Change local variable name.
6760 (forget_cached_source_info_for_objfile): Remove declaration.
6761 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6762 * objfiles.c (objfile_relocate1): Remove declaration.
6763 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6765 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6766 * coffread.c (coff_symtab_read): Remove declaration.
6767 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6770 2019-01-09 Tom Tromey <tom@tromey.com>
6772 * symtab.c (lookup_objfile_from_block)
6773 (find_pc_sect_compunit_symtab, search_symbols)
6774 (default_collect_symbol_completion_matches_break_on): Use
6776 * objfiles.h (ALL_COMPUNITS): Remove.
6777 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6778 * cp-support.c (add_symbol_overload_list_qualified): Use
6780 * ada-lang.c (ada_collect_symbol_completion_matches)
6781 (ada_add_global_exceptions): Use objfile_compunits.
6783 2019-01-09 Tom Tromey <tom@tromey.com>
6785 * source.c (select_source_symtab)
6786 (forget_cached_source_info_for_objfile): Remove declaration.
6787 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6789 * maint.c (count_symtabs_and_blocks): Remove declaration.
6790 * cp-support.c (add_symbol_overload_list_qualified): Remove
6792 * coffread.c (coff_symtab_read): Remove declaration.
6793 * symtab.c (lookup_symbol_in_objfile_symtabs)
6794 (basic_lookup_transparent_type_1): Use objfile_compunits.
6795 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6796 (info_sources_command, search_symbols)
6797 (default_collect_symbol_completion_matches_break_on)
6798 (make_source_files_completion_list): Remove declaration.
6799 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6800 (ada_collect_symbol_completion_matches)
6801 (ada_add_global_exceptions): Remove declaration.
6802 * linespec.c (iterate_over_all_matching_symtabs): Use
6804 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6805 (class objfile_compunits): New.
6806 (ALL_COMPUNITS): Use objfile_compunits.
6807 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6808 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6810 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6812 2019-01-09 Tom Tromey <tom@tromey.com>
6814 * symtab.c (search_symbols)
6815 (default_collect_symbol_completion_matches_break_on): Use
6817 * ada-lang.c (ada_lookup_simple_minsym)
6818 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6819 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6820 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6822 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6823 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6824 * objc-lang.c (find_methods): Use objfile_msymbols.
6825 (info_selectors_command, info_classes_command): Likewise.
6826 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6827 * objfiles.h (class objfile_msymbols): New.
6828 (ALL_OBJFILE_MSYMBOLS): Remove.
6829 (ALL_MSYMBOLS): Remove.
6831 2019-01-09 Tom Tromey <tom@tromey.com>
6833 * common/next-iterator.h (next_adapter): Add Iterator template
6835 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6836 (class all_objfiles_safe): New.
6837 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6838 * objfiles.c (put_objfile_before): Update comment.
6839 (add_separate_debug_objfile): Likewise.
6840 (free_all_objfiles): Use all_objfiles_safe.
6841 (objfile_purge_solibs): Likewise.
6843 2019-01-09 Tom Tromey <tom@tromey.com>
6845 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6846 (expand_symtab_containing_pc, lookup_static_symbol)
6847 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6848 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6850 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6851 * breakpoint.c (create_overlay_event_breakpoint)
6852 (create_longjmp_master_breakpoint)
6853 (create_std_terminate_master_breakpoint)
6854 (create_exception_master_breakpoint): Use all_objfiles.
6855 * linux-thread-db.c (try_thread_db_load_from_pdir)
6856 (has_libpthread): Use all_objfiles.
6857 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6858 * linespec.c (iterate_over_all_matching_symtabs)
6859 (search_minsyms_for_name): Use all_objfiles.
6860 * maint.c (maintenance_info_sections): Use all_objfiles.
6861 * main.c (captured_main_1): Use all_objfiles.
6862 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6863 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6864 * guile/scm-pretty-print.c
6865 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6866 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6867 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6868 (maintenance_print_msymbols): Use all_objfiles.
6869 * source.c (select_source_symtab): Use all_objfiles.
6870 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6871 * symfile.c (remove_symbol_file_command)
6872 (expand_symtabs_matching, map_symbol_filenames): Use
6874 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6876 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6877 * objc-lang.c (find_methods): Use all_objfiles.
6878 * objfiles.c (have_partial_symbols, have_full_symbols)
6879 (have_minimal_symbols, qsort_cmp)
6880 (default_iterate_over_objfiles_in_search_order): Use
6882 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6883 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6884 (maintenance_check_psymtabs): Use all_objfiles.
6885 (ALL_PSYMTABS): Remove.
6886 * compile/compile-object-run.c (do_module_cleanup): Use
6888 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6889 * cp-support.c (add_symbol_overload_list_qualified): Use
6891 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6893 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6894 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6896 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6897 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6898 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6900 * solib.c (solib_read_symbols): Use all_objfiles
6902 2019-01-09 Tom Tromey <tom@tromey.com>
6904 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6905 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6907 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6908 * symmisc.c (print_symbol_bcache_statistics)
6909 (print_objfile_statistics, maintenance_print_objfiles)
6910 (maintenance_info_symtabs, maintenance_check_symtabs)
6911 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6913 * source.c (forget_cached_source_info): Use all_objfiles.
6914 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6915 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6916 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6917 * objfiles.c (update_section_map): Use all_objfiles.
6918 (shared_objfile_contains_address_p): Likewise.
6919 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6920 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6922 2019-01-09 Tom Tromey <tom@tromey.com>
6924 * common/next-iterator.h: New file.
6925 * objfiles.h (class all_objfiles): New.
6926 (struct objfile_iterator): New.
6928 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6930 * NEWS: Move the description of the changed "frame", "select-frame",
6931 and "info frame" commands to the Changed commands section.
6933 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6935 * gdbtypes.c (check_stub_method_group): Remove handling of old
6937 * linespec.c (find_methods): Likewise.
6938 * stabsread.c (read_member_functions): Likewise.
6939 * valops.c (search_struct_method): Likewise.
6940 (value_struct_elt_for_reference): Likewise.
6941 * NEWS: Mention this change.
6943 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6945 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6947 * source.c (print_source_lines_base): Update line number check.
6948 (print_source_lines): New function.
6949 (source_lines_range::source_lines_range): New function.
6950 * source.h (class source_lines_range): New class.
6951 (print_source_lines): New declaration.
6953 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6955 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6957 2019-01-08 Tom Tromey <tom@tromey.com>
6958 Simon Marchi <simon.marchi@ericsson.com>
6961 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6962 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6963 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6964 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6965 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6966 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6968 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6970 * source.c (select_source_symtab): Move header comment to
6971 declaration in source.h.
6972 (forget_cached_source_info_for_objfile): Likewise.
6973 (forget_cached_source_info): Likewise.
6974 (identify_source_line): Likewise.
6975 * source.h (identify_source_line): Move declaration from symtab.h
6976 and add comment from source.c
6977 (print_source_lines): Likewise.
6978 (forget_cached_source_info_for_objfile): Likewise.
6979 (forget_cached_source_info): Likewise.
6980 (select_source_symtab): Likewise.
6981 (enum print_source_lines_flag): Move definition from symtab.h.
6982 * symtab.h (identify_source_line): Move declaration to source.h.
6983 (print_source_lines): Likewise.
6984 (forget_cached_source_info_for_objfile): Likewise.
6985 (forget_cached_source_info): Likewise.
6986 (select_source_symtab): Likewise.
6987 (enum print_source_lines_flag): Move definition to source.h.
6988 * tui/tui-hooks.c: Add 'source.h' include.
6990 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6992 * source.c (print_source_lines_base): Handle requests to print
6993 reverse line number sequences, and guard against empty lines
6996 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6998 * source.c (print_source_lines_base): Fix skip of '\r' if next
7001 2019-01-06 Tom Tromey <tom@tromey.com>
7003 * c-exp.y (struct c_parse_state) <macro_original_text,
7004 expansion_obstack>: New member.
7005 (macro_original_text, expansion_obstack): Remove globals.
7006 (scan_macro_expansion, scanning_macro_expansion)
7007 (finished_macro_expansion): Update.
7008 (scan_macro_cleanup): Remove.
7009 (yylex, c_parse): Update.
7011 2019-01-06 Tom Tromey <tom@tromey.com>
7013 * c-exp.y (struct c_parse_state) <strings>: New member.
7014 (operator_stoken): Update.
7016 2019-01-06 Tom Tromey <tom@tromey.com>
7018 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7019 (union type_stack_elt) <typelist_val>: Now a pointer to
7021 (type_stack_cleanup): Don't declare.
7022 (push_typelist): Update.
7023 * parse.c (pop_typelist): Return a std::vector.
7024 (push_typelist): Take a std::vector.
7025 (follow_types): Update. Do not free args.
7026 (type_stack_cleanup): Remove.
7027 * c-exp.y (struct c_parse_state): New.
7028 (cpstate): New global.
7029 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7030 (nonempty_typelist): Update.
7031 (func_mod): Create a new vector.
7032 (c_parse): Create a c_parse_state.
7033 (check_parameter_typelist): Do not delete params.
7034 (function_method): Update. Do not delete type_list.
7036 2019-01-06 Tom Tromey <tom@tromey.com>
7039 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7041 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7042 (print_return_value): Likewise.
7044 2019-01-05 Tom Tromey <tom@tromey.com>
7046 * contrib/cleanup_check.py: Remove.
7047 * contrib/gcc-with-excheck: Remove.
7048 * contrib/exsummary.py: Remove.
7049 * contrib/excheck.py: Remove.
7051 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7053 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7054 NULL. Initialize tpprev to NULL instead of assigning it
7055 to NULL on the next statement.
7056 * windows-nat.c (windows_delete_thread): Remove check for
7057 main_thread_id before printing thread exit notifications.
7058 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7059 Remove thread ID check against main_thread_id.
7060 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7061 windows_delete_thread.
7062 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7064 2019-01-04 Tom Tromey <tom@tromey.com>
7066 * compile/compile.c (_initialize_compile): Use upper case for
7067 metasyntactic variables.
7068 * symmisc.c (_initialize_symmisc): Use upper case for
7069 metasyntactic variables.
7070 * psymtab.c (_initialize_psymtab): Use upper case for
7071 metasyntactic variables.
7072 * demangle.c (demangle_command): Use upper case for metasyntactic
7074 (_initialize_demangler): Likewise.
7075 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7078 2019-01-03 Tom Tromey <tom@tromey.com>
7080 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7082 2019-01-03 Tom Tromey <tom@tromey.com>
7084 * python/py-symtab.c (salpy_str): Update.
7085 (struct salpy_sal_object) <symtab>: Now a PyObject.
7086 (salpy_dealloc): Update.
7087 (del_objfile_sal): Use gdbpy_ref.
7089 2019-01-03 Tom Tromey <tom@tromey.com>
7091 * python/py-type.c (convert_field): Use new_reference. Return
7093 (make_fielditem): Return gdbpy_ref.
7094 (typy_fields): Update.
7095 (typy_getitem): Update.
7096 (field_name): Return gdbpy_ref. Use new_reference.
7097 (typy_iterator_iternext): Update.
7099 2019-01-03 Tom Tromey <tom@tromey.com>
7101 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7103 2019-01-03 Tom Tromey <tom@tromey.com>
7105 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7106 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7107 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7108 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7109 (pspy_set_type_printers): Likewise.
7110 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7111 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7112 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7113 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7114 (objfpy_set_type_printers): Likewise.
7116 2019-01-03 Tom Tromey <tom@tromey.com>
7118 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7119 (gdbpy_print_stack): Use gdbpy_err_fetch.
7120 * python/python-internal.h (class gdbpy_err_fetch): New class.
7121 (class gdbpy_enter) <m_error_type, m_error_value,
7122 m_error_traceback>: Remove.
7123 <m_error>: New member.
7124 (gdbpy_exception_to_string): Don't declare.
7125 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7126 * python/py-value.c (convert_value_from_python): Use
7128 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7129 gdbpy_exception_to_string.
7130 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7131 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7134 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7136 * linux-nat.c (delete_lwp_cleanup): Delete.
7137 (struct lwp_deleter): New struct.
7138 (lwp_info_up): New typedef.
7139 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7142 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7144 * linux-fork.c (class scoped_switch_fork_info): New class.
7145 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7147 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7149 * valops.c (find_overload_match): Remove use of null_cleanup, and
7150 calls to do_cleanups.
7152 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7154 * compile/compile-cplus-types.c
7155 (compile_cplus_instance::decl_name): Handle changes to
7157 * cp-support.c (cp_func_name): Update header comment, update
7159 * cp-support.h (cp_func_name): Update return type in declaration.
7160 * valops.c (find_overload_match): Move temp_func local to top
7161 level of function and change its type. Use temp_func to hold and
7162 delete temporary string obtained from cp_func_name.
7164 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7166 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7167 gdb::char_vector, remove cleanup, and update uses of `msg`.
7169 2019-01-03 Jim Wilson <jimw@sifive.com>
7171 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7173 2019-01-02 Tom Tromey <tom@tromey.com>
7175 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7176 (tdesc_parse_xml): Remove cleanups.
7177 * target-descriptions.h (make_cleanup_free_target_description):
7179 (target_desc_deleter): New struct.
7180 (target_desc_up): New typedef.
7181 * target-descriptions.c (target_desc_deleter::operator()): Rename
7182 from free_target_description.
7183 (make_cleanup_free_target_description): Remove.
7185 2019-01-02 Tom Tromey <tom@tromey.com>
7187 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7188 constructor, destructor.
7189 (linespec_parser): Remove typedef.
7190 (~linespec_parser): Rename from linespec_parser_delete.
7191 (linespec_lex_to_end, linespec_complete_label)
7192 (linespec_complete): Update.
7193 (decode_line_full): Remove cleanups.
7194 (decode_line_1): Update.
7196 2019-01-02 Tom Tromey <tom@tromey.com>
7198 * python/python-internal.h (inferior_to_inferior_object): Change
7200 * python/py-exitedevent.c (create_exited_event_object): Update.
7201 * python/py-inferior.c (inferior_to_inferior_object): Return
7203 (python_new_inferior, python_inferior_deleted)
7204 (thread_to_thread_object, delete_thread_object)
7205 (build_inferior_list, gdbpy_selected_inferior): Update.
7206 * python/py-infthread.c (create_thread_object): Update. Also fail
7207 if inferior_to_inferior_object fails.
7209 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7211 * inferior.h (class inferior) <displaced_step_state>: New field.
7212 * infrun.h (struct displaced_step_state): Move here from
7213 infrun.c. Initialize fields, add constructor.
7214 <inf>: Remove field.
7215 <reset>: New method.
7216 * infrun.c (struct displaced_step_inferior_state): Move to
7218 (displaced_step_inferior_states): Remove.
7219 (get_displaced_stepping_state): Adust.
7220 (displaced_step_in_progress_any_inferior): Adjust.
7221 (displaced_step_in_progress_thread): Adjust.
7222 (displaced_step_in_progress): Adjust.
7223 (add_displaced_stepping_state): Remove.
7224 (get_displaced_step_closure_by_addr): Adjust.
7225 (remove_displaced_stepping_state): Remove.
7226 (infrun_inferior_exit): Call displaced_step_state.reset.
7227 (use_displaced_stepping): Don't check for NULL.
7228 (displaced_step_prepare_throw): Call
7229 get_displaced_stepping_state.
7230 (displaced_step_fixup): Don't check for NULL.
7231 (prepare_for_detach): Don't check for NULL.
7233 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7235 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7236 in case of call that did not complete.
7238 2019-01-02 Andrey Utkin <autkin@undo.io>
7240 * symfile.c (find_separate_debug_file): Fix search of debug files for
7243 2019-01-02 Tom Tromey <tom@tromey.com>
7245 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7247 * python/py-frame.c (frapy_older): Remove cast.
7248 (frapy_newer): Likewise.
7249 * python/py-breakpoint.c (local_setattro): Remove cast.
7250 * python/py-arch.c (archpy_name): Remove local variable.
7251 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7253 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7255 * unittests/basic_string_view/element_access/char/empty.cc:
7256 Fix year range in copyright header.
7258 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7260 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7262 <operator==>: Update with for removed field.
7264 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7265 <isa_features>: ...this.
7266 <abi_features>: New field.
7267 (riscv_isa_flen): Update comment.
7268 (riscv_abi_xlen): New declaration.
7269 (riscv_abi_flen): New declaration.
7270 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7272 (riscv_abi_xlen): New function.
7273 (riscv_isa_flen): Update to get answer from isa_features.
7274 (riscv_abi_flen): New function.
7275 (riscv_has_fp_abi): Update to get answer from abi_features.
7276 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7278 (riscv_call_info) <xlen, flen>: Update comment.
7279 (riscv_call_arg_struct): Remove invalid assertions
7280 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7282 (riscv_gdbarch_init): Gather isa features and abi features
7283 separately, ensure both match on the gdbarch when reusing an old
7284 gdbarch. Relax an error check to allow 32-bit abi float to run on
7285 a target with 64-bit float hardware.
7287 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7289 * source.c (search_command_helper): Stop reverse search
7290 when line 1 has been searched.
7292 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7294 * record-full.c (record_full_base_target::close): Rewrite
7295 record_full_core_buf_list free logic.
7297 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7299 * break-catch-syscall.c (print_one_catch_syscall): xfree
7302 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7304 * top.c (print_gdb_version): Update Copyright year in version
7307 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7309 Update copyright year range in all GDB files.
7311 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7313 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7315 For older changes see ChangeLog-2018.
7321 version-control: never