1 2019-06-11 Tom Tromey <tromey@adacore.com>
3 * infcall.c (_initialize_infcall): Remove trailing newline from
5 * user-regs.c (_initialize_user_regs): Remove trailing newline
7 * typeprint.c (_initialize_typeprint): Remove trailing newline
9 * reverse.c (_initialize_reverse): Remove trailing newlines from
11 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
13 * language.c (add_set_language_command): Remove trailing newline
15 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
17 * disasm.c (_initialize_disasm): Remove trailing newline from
19 * top.c (init_main): Remove trailing newline from help.
20 * interps.c (_initialize_interpreter): Remove trailing newline
22 * btrace.c (_initialize_btrace): Remove trailing newlines from
24 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
26 * python/python.c (_initialize_python): Remove trailing newline
28 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
30 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
31 from help. Reformat some text.
32 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
34 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
37 2019-06-11 Tom Tromey <tromey@adacore.com>
39 * darwin-nat.c (darwin_decode_exception_message)
40 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
42 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
44 * valops.c (value_slice): Check for not allocated or not
47 2019-06-10 Tom de Vries <tdevries@suse.de>
50 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
51 sure an empty slot (defined by a 32-bit zero pair) is recognized as
54 2019-06-10 Tom de Vries <tdevries@suse.de>
57 * linespec.c (linespec_lexer_lex_string): Remove incorrect
58 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
60 2019-06-10 Tom de Vries <tdevries@suse.de>
63 * symtab.c (struct demangled_name_entry): Add language field.
64 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
65 static minimal symbol". Set and use language field.
67 2019-06-10 Tom Tromey <tromey@adacore.com>
69 * ada-lang.c (_initialize_ada_language): Update help text.
71 2019-06-10 Tom Tromey <tromey@adacore.com>
73 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
75 * guile/guile.c (handle_boot_error): Don't end warning with a
77 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
78 warning with a newline.
79 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
81 (s12z_frame_cache): Likewise.
82 * dwarf-index-cache.c (index_cache::store): Don't end warning with
84 * solib-svr4.c (disable_probes_interface): Don't end warning with
86 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
88 * python/python.c (do_finish_initialization): Don't end warning
91 2019-06-10 Tom Tromey <tom@tromey.com>
93 * python/py-breakpoint.c (gdbpy_breakpoint_created)
94 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
97 2019-06-10 Tom Tromey <tromey@adacore.com>
99 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
101 (elf_new_init): Don't call stabsread_new_init.
102 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
103 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
104 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
106 2019-06-10 Tom de Vries <tdevries@suse.de>
110 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
112 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
114 * source.c (find_and_open_source): Also rewrite relative file
117 2019-04-26 Amos Bird <amosbird@gmail.com>
119 * annotate.c (annotate_thread_exited): Add "thread-exited"
122 2019-06-06 Tom Tromey <tromey@adacore.com>
124 * maint.h (class scoped_command_stats): Use
125 DISABLE_COPY_AND_ASSIGN.
126 <print_time>: New method.
127 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
129 (scoped_command_stats::print_time): New method.
131 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
133 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
134 instructions of lengths 6 or 8 bytes.
136 2019-06-04 Pedro Alves <palves@redhat.com>
138 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
140 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
141 * breakpoint.c (condition_completer): Likewise.
142 * cli/cli-dump.c (scan_expression): Likewise.
143 * common/filestuff.c (mkdir_recursive): Likewise.
144 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
145 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
146 (gdb_abspath): Likewise.
147 * compile/compile-cplus-types.c
148 (compile_cplus_instance::decl_name): Likewise.
149 * completer.c (complete_explicit_location):
150 (signal_completer, reg_or_group_completer_1): Likewise.
151 * cp-support.c (cp_remove_params_if_any): Likewise.
152 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
153 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
154 * infcmd.c (strip_bg_char): Likewise.
155 * linespec.c (copy_token_string): Likewise.
156 * mi/mi-main.c (output_cores): Likewise.
157 * psymtab.c (psymtab_search_name):
158 * symfile.c (test_set_ext_lang_command): Likewise.
159 * target.c (target_fileio_read_stralloc): Likewise.
160 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
161 * value.c (complete_internalvar): Likewise.
163 2019-06-04 Christian Biesinger <cbiesinger@google.com>
165 Add objfile property to gdb.Type.
166 * NEWS: Mention Python API addition.
167 * python/py-type.c (typy_get_objfile): New method.
169 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
171 * NEWS: Mention the new set|show style [title|highlight].
172 Mention changes to "show style", "help" and "apropos".
174 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
176 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
177 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
178 instead of print_help_for_command.
179 (print_doc_of_command): New function.
180 (help_list): Add 'apropos -v word' suggestion.
181 (print_help_for_command): Style the command name using title style.
182 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
183 (_initialize_cli_cmds): Describe -v in apropos_command help.
185 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
187 * cli/cli-style.h (cli_style_option): Add name in constructor,
188 add m_name class member, add constructor with intensity,
189 add name class function.
190 (cli_style_option::add_setshow_commands): Remove name argument.
191 (highlight_style, title_style): New styles.
192 * cli/cli-style.c (do_show): New function that shows a style
193 characteristic styling the style name with itself.
194 (set_style_name): New function.
195 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
196 Update all callers according to the changes in cli/cli-style.h.
197 * utils.h (fputs_highlighted): New function.
198 * utils.c (fputs_highlighted): Likewise.
200 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
202 * NEWS: Mention new pipe command and new convenience variables.
204 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
206 * cli/cli-cmds.c (pipe_command): New function.
207 (_initialize_cli_cmds): Call add_com for pipe_command.
208 Define | as an alias for pipe.
209 (exit_status_set_internal_vars): New function.
210 (shell_escape): Call exit_status_set_internal_vars.
211 cli/cli-decode.c (find_command_name_length): Recognize | as
212 a single character command.
214 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
216 * gdbcmd.h (execute_command_to_ui_file): New declaration.
217 top.c (execute_command_to_ui_file): New function, mostly a copy
218 of execute_command_to_string.
219 (execute_command_to_string): Implement by calling
220 execute_command_to_ui_file.
222 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
224 * top.h (saved_command_line): Remove declaration.
225 * top.c (previous_saved_command_line, previous_repeat_arguments):
227 (saved_command_line): Make static, define together with other
229 (dont_repeat): Clear repeat_arguments.
230 (repeat_previous, get_saved_command_line, save_command_line):
232 (gdb_init): Initialize saved_command_line
233 and previous_saved_command_line.
234 * main.c (captured_main_1): Remove saved_command_line initialization.
235 * event-top.c (handle_line_of_input): Update to use
236 the new 'repeat' related functions instead of direct access to
238 * command.h (repeat_previous, get_saved_command_line,
239 save_command_line): New declarations.
240 (dont_repeat): Add comment.
242 2019-05-30 Tom Tromey <tromey@adacore.com>
244 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
246 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
248 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
251 * completer.c (complete): Initialize variable word.
253 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
255 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
256 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
257 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
258 'body' is NULL to the outter 'if', protecting the '!is_define'
261 2019-05-29 Tom Tromey <tromey@adacore.com>
263 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
264 (dwarf_unknown): New function.
265 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
266 (dwarf_type_encoding_name): Use dwarf_unknown.
268 2019-05-29 Tom Tromey <tromey@adacore.com>
271 * cp-valprint.c (cp_print_value_fields): Call
272 cp_print_static_field inside "try".
274 2019-05-29 Tom Tromey <tromey@adacore.com>
276 * inflow.c (struct terminal_info): Add default operator=.
277 * configure: Rebuild.
278 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
279 -Wdeprecated-copy-dtor, -Wredundant-move.
281 2019-05-29 Tom Tromey <tromey@adacore.com>
284 * infcmd.c (print_return_value_1): Handle finish_print
286 (show_print_finish): New function.
287 (_initialize_infcmd): Add "set/show print finish" commands.
288 * valprint.c (user_print_options): Initialize new member.
289 * valprint.h (struct value_print_options) <finish_print>: New
292 2019-05-28 Tom Tromey <tromey@adacore.com>
294 * ada-lang.c (ada_remove_Xbn_suffix)
295 (find_old_style_renaming_symbol)
296 (parse_old_style_renaming): Remove.
297 (ada_find_renaming_symbol): Don't call
298 find_old_style_renaming_symbol.
299 (ada_is_renaming_symbol): Rename from
300 ada_find_renaming_symbol. Remove "block" parameter. Return
302 (ada_read_var_value): Update and simplify.
303 * ada-exp.y (write_var_or_type): Remove old code.
305 2019-05-28 Alan Hayward <alan.hayward@arm.com>
307 * event-top.c: Remove include comment.
308 * inflow.c (class scoped_ignore_sigttou): Move from here...
309 * inflow.h (class scoped_ignore_sigttou): ...to here.
310 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
311 * top.c: Remove include comment.
313 2019-05-27 Tom Tromey <tom@tromey.com>
317 2019-05-22 Tom Tromey <tromey@adacore.com>
319 * target.c (target_follow_exec): Constify parameter.
320 * target-delegates.c: Rebuild.
321 * remote.c (remote_target::follow_exec): Constify parameter.
322 * infrun.c (follow_exec): Constify parameter.
323 * target.h (struct target_ops) <follow_exec>: Constify parameter.
324 (target_follow_exec): Likewise.
326 2019-05-22 Alan Hayward <alan.hayward@arm.com>
328 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
329 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
331 2019-05-22 Alan Hayward <alan.hayward@arm.com>
333 * NEWS: Add debugredirect and testsuite sections.
335 2019-05-22 Simon Cook <simon.cook@embecosm.com>
337 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
338 target descriptions using exclusively floating point register name
341 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
344 * f-lang.c (build_fortran_types): Handle the case where
345 gdbarch_floatformat_for_type returns a nullptr.
347 2019-05-21 Tom de Vries <tdevries@suse.de>
350 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
352 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
355 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
357 * i386-tdep.c (i386_floatformat_for_type): Use
358 floatformats_ia64_quad for the 16-byte floating point component
359 within a fortran 32-byte complex number.
361 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
363 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
364 delete default constructor.
365 (find_partial_die): Update to return const struct.
366 (partial_die_parent_scope): Move variable declaration into scope
367 of its use and change its type to auto.
368 (guess_partial_die_structure_name): Likewise.
369 (partial_die_info::fixup): Likewise.
371 2019-05-17 Tom Tromey <tromey@adacore.com>
373 * source.c (find_and_open_source): Remove cast.
375 2019-05-17 Tom Tromey <tromey@adacore.com>
377 * annotate.c (annotate_source): Make "filename" const.
378 * annotate.h (annotate_source): Use const.
380 2019-05-17 Alan Hayward <alan.hayward@arm.com>
382 * disasm.c (set_disassembler_options): Send errors to stderr.
384 2019-05-17 Alan Hayward <alan.hayward@arm.com>
386 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
387 (cli_interp_base::set_logging): Check debug_redirect.
388 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
389 * cli/cli-logging.c (debug_redirect): Add static variable.
390 (pop_output_files): Add default param.
391 (handle_redirections): Print debug setting.
392 (show_logging_command): Likewise.
393 (_initialize_cli_logging): Add debugredirect command.
394 * interps.c (current_interp_set_logging): Add debug_redirect
396 * interps.h (set_logging): Add debug_redirect parameter.
397 (current_interp_set_logging): Likewise.
398 * mi/mi-common.h: Likewise.
399 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
401 2019-05-17 Alan Hayward <alan.hayward@arm.com>
402 Tom Tromey <tromey@adacore.com>
404 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
406 * cli/cli-interp.h (make_logging_output): Remove declaration.
407 * cli/cli-logging.c (make_logging_output): Remove function.
408 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
410 * ui-file.c (tee_file::tee_file): Remove bools.
411 (tee_file::~tee_file): Remove deletes.
412 * ui-file.h (tee_file): Remove bools.
414 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
416 * mi/mi-cmds.h (mi_cmd_complete): New function.
417 * mi/mi-main.c (mi_cmd_complete): Likewise.
418 * mi/mi-cmds.c: Define new MI command -complete.
419 * NEWS: Mention new -complete command.
421 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
423 * completer.h (complete): New function.
424 * completer.c (complete): Likewise.
425 * cli/cli-cmds.c: (complete_command): Update to use new complete()
426 function defined in completer.h.
428 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
430 * MAINTAINERS (Write After Approval): Add myself.
432 2019-05-17 Tom de Vries <tdevries@suse.de>
435 * dwarf2read.c (struct cu_partial_die_info): New struct.
436 (find_partial_die): Return cu_partial_die_info.
437 (partial_die_parent_scope, guess_partial_die_structure_name)
438 (partial_die_info::fixup): Handle new return type of find_partial_die.
440 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
442 * stap-probe.c (stap_parse_register_operand): Make "regname" an
443 "std::string", simplifying the algorithm.
445 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
447 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
448 (stap_static_probe_ops::get_probes): Likewise.
450 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
452 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
454 (stap_parse_single_operand): Join checks for
455 "gdbarch_stap_parse_special_token_p" and
456 "gdbarch_stap_parse_special_token" in the same "if" statement.
457 Invert check when verifying for operation on register
460 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
462 * stap-probe.c (stap_get_opcode): Update comment.
463 (stap_get_expected_argument_type): Likewise.
464 (handle_stap_probe): Likewise.
466 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
468 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
469 return type to 'bool'. Adjust comment. Use 'bool' when
471 (i386_stap_parse_special_token_three_arg_disp): Likewise.
472 * stap-probe.c (stap_parse_argument_1): Likewise.
473 (stap_is_operator): Likewise.
474 (stap_is_generic_prefix): Likewise.
475 (stap_is_register_prefix): Likewise.
476 (stap_is_register_indirection_prefix): Likewise.
477 (stap_is_integer_prefix): Likewise.
478 (stap_generic_check_suffix): Likewise.
479 (stap_check_integer_suffix): Likewise.
480 (stap_check_register_suffix): Likewise.
481 (stap_check_register_indirection_suffix): Likewise.
482 (stap_parse_register_operand): Likewise.
483 (stap_parse_single_operand): Likewise.
484 (stap_parse_argument_1): Likewise.
485 (stap_probe::get_argument_count): Likewise.
486 (stap_is_operator): Likewise.
488 2019-05-16 Tom Tromey <tromey@adacore.com>
490 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
493 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
495 * linux-thread-db.c (try_thread_db_load_1): Change return type
497 (try_thread_db_load): Likewise.
498 (try_thread_db_load_from_pdir_1): Likewise.
499 (try_thread_db_load_from_pdir): Likewise.
500 (try_thread_db_load_from_sdir): Likewise.
501 (try_thread_db_load_from_dir): Likewise.
502 (thread_db_load_search): Likewise.
503 (has_libpthread): Likewise.
504 (thread_db_load): Likewise.
506 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
508 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
509 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
510 NULL, and complain/return if that's the case.
512 2019-05-15 John Darrington <john@darrington.wattle.id.au>
514 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
515 (advance, posn, abstract_read_memory): New functions.
516 [struct mem_read_abstraction]: New struct.
517 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
519 2019-05-14 Tom Tromey <tromey@adacore.com>
521 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
522 value is not lval_memory.
524 2019-05-14 Tom Tromey <tromey@adacore.com>
526 * solib.c (info_sharedlibrary_command): Style the file name.
528 2019-05-14 Alan Hayward <alan.hayward@arm.com>
530 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
531 (aarch64_vnv_type): Likewise.
532 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
533 * common/tdesc.c: Likewise.
534 * common/tdesc.h (enum tdesc_type_kind): Likewise.
535 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
536 * features/aarch64-fpu.xml: Add ieee half view.
537 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
538 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
539 * gdbtypes.h (struct builtin_type): Likewise.
540 (struct objfile_type): Likewise.
542 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
544 * language.c (language_sniff_from_mangled_name): Fix "langauge"
546 * location.h (string_to_event_location): Likewise.
548 2019-05-11 Joel Brobecker <brobecker@adacore.com>
552 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
554 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
555 New variable declaration.
556 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
558 (print_one_breakpoint): Use ui_out::test_flags and new global
559 variable to compute use_fixed_output.
560 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
562 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
563 (mi_multi_location_breakpoint_output_fixed): Remove.
564 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
566 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
567 fix_multi_location_breakpoint_output flag if version >= 3.
568 * ui-out.h (enum ui_out_flag)
569 <fix_multi_location_breakpoint_output>: New enumerator.
571 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
573 * contrib/cc-with-tweaks.sh: Validate dwz's work.
575 2019-05-10 Tom Tromey <tromey@adacore.com>
577 * ada-lang.c (catch_ada_completer): New function.
578 (_initialize_ada_language): Use it.
580 2019-05-10 Tom Tromey <tromey@adacore.com>
582 * thread.c (print_thread_info): Make "requested_threads" const.
583 * gdbthread.h (print_thread_info): Make "requested_threads"
585 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
586 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
588 2019-05-08 Tom Tromey <tom@tromey.com>
590 * gdbtypes.c (objfile_type_data): Change type.
591 (objfile_type, _initialize_gdbtypes): Update.
593 2019-05-08 Tom Tromey <tom@tromey.com>
595 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
596 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
597 (_initialize_dwarf2_frame): Update.
599 2019-05-08 Tom Tromey <tom@tromey.com>
601 * objc-lang.c (objc_objfile_data): Change type.
602 (find_methods): Update.
603 (_initialize_objc_lang): Remove.
605 2019-05-08 Tom Tromey <tom@tromey.com>
607 * stabsread.c (rs6000_builtin_type_data): Change type.
608 (rs6000_builtin_type, _initialize_stabsread): Update.
610 2019-05-08 Tom Tromey <tom@tromey.com>
612 * mips-tdep.c (mips_pdr_data): Remove.
613 (_initialize_mips_tdep): Update.
615 2019-05-08 Tom Tromey <tom@tromey.com>
617 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
618 (hppa_init_objfile_priv_data, read_unwind_info)
619 (find_unwind_entry, _initialize_hppa_tdep): Update.
621 2019-05-08 Tom Tromey <tom@tromey.com>
623 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
624 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
626 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
628 2019-05-08 Tom Tromey <tom@tromey.com>
630 * mdebugread.c (basic_type_data): Change type.
631 (basic_type, _initialize_mdebugread): Update.
633 2019-05-08 Tom Tromey <tom@tromey.com>
635 * common/gdb_unique_ptr.h (struct noop_deleter): New.
637 2019-05-08 Tom Tromey <tom@tromey.com>
639 * nto-tdep.c (nto_inferior_data_reg): Change type.
640 (nto_inferior_data): Update.
641 (nto_inferior_data_cleanup, nto_new_inferior_data)
642 (_initialize_nto_tdep): Remove.
643 * nto-tdep.h (struct nto_inferior_data): Add initializers.
645 2019-05-08 Tom Tromey <tom@tromey.com>
647 * ada-lang.c (struct ada_inferior_data): Add initializers.
648 (ada_inferior_data): Change type.
649 (ada_inferior_data_cleanup): Remove.
650 (get_ada_inferior_data, ada_inferior_exit)
651 (struct ada_pspace_data): Add initializers, destructor.
652 (ada_pspace_data_handle): Change type.
653 (get_ada_pspace_data): Update.
654 (ada_pspace_data_cleanup): Remove.
656 2019-05-08 Tom Tromey <tom@tromey.com>
658 * coffread.c (struct coff_symfile_info): Add initializers.
659 (coff_objfile_data_key): Move lower. Change type.
660 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
662 (coff_free_info): Remove.
664 2019-05-08 Tom Tromey <tom@tromey.com>
666 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
667 (fbsd_pspace_data_handle): Move lower. Change type.
668 (get_fbsd_pspace_data): Update.
669 (fbsd_pspace_data_cleanup): Remove.
670 (_initialize_fbsd_tdep): Update.
672 2019-05-08 Tom Tromey <tom@tromey.com>
674 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
675 (get_ada_tasks_pspace_data): Update.
676 (ada_tasks_pspace_data_cleanup): Remove.
677 (_initialize_tasks): Update.
678 (ada_tasks_inferior_data_handle): Change type.
679 (get_ada_tasks_inferior_data): Update.
680 (ada_tasks_inferior_data_cleanup): Remove.
681 (struct ada_tasks_pspace_data): Add initializers.
683 2019-05-08 Tom Tromey <tom@tromey.com>
685 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
686 * symfile-debug.c (debug_sym_get_probes): Change type.
687 * stap-probe.c (handle_stap_probe):
688 (stap_static_probe_ops::get_probes): Change type.
689 * probe.h (class static_probe_ops) <get_probes>: Change type.
690 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
691 (parse_probes_in_pspace): Update.
692 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
694 (any_static_probe_ops::get_probes): Change type.
695 * elfread.c (elfread_data): New typedef.
696 (probe_key): Change type.
697 (elf_get_probes): Likewise. Update.
698 (probe_key_free): Remove.
699 (_initialize_elfread): Update.
700 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
702 (dtrace_process_dof_probe, dtrace_process_dof)
703 (dtrace_static_probe_ops::get_probe): Change type.
705 2019-05-08 Tom Tromey <tom@tromey.com>
707 * xcoffread.c (struct xcoff_symfile_info): Rename from
708 coff_symfile_info. Add initializers.
709 (xcoff_objfile_data_key): Move lower. Change type.
710 (XCOFF_DATA): Rewrite.
711 (xcoff_free_info): Remove.
712 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
713 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
714 (xcoff_initial_scan): Update.
716 2019-05-08 Tom Tromey <tom@tromey.com>
718 * solib-svr4.c (struct svr4_info): Add initializers and
720 <probes_table>: Now an htab_up.
721 (solib_svr4_pspace_data): Change type.
722 (free_probes_table): Simplify.
723 (~svr4_info): Rename from svr4_pspace_data_cleanup.
724 (get_svr4_info, probes_table_htab_remove_objfile_probes)
725 (probes_table_remove_objfile_probes, register_solib_event_probe)
726 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
727 (_initialize_svr4_solib): Update.
729 2019-05-08 Tom Tromey <tom@tromey.com>
731 * remote.c (remote_pspace_data): Change type.
732 (remote_pspace_data_cleanup): Remove.
733 (get_remote_exec_file, set_pspace_remote_exec_file)
734 (_initialize_remote): Update.
736 2019-05-08 Tom Tromey <tom@tromey.com>
738 * breakpoint.c (breakpoint_objfile_key): Change type.
739 (get_breakpoint_objfile_data): Update.
740 (free_breakpoint_objfile_data): Remove.
741 (_initialize_breakpoint): Update.
743 2019-05-08 Tom Tromey <tom@tromey.com>
745 * linux-tdep.c (struct linux_info): Add initializers.
746 (linux_inferior_data): Move. Change type.
747 (invalidate_linux_cache_inf): Update.
748 (linux_inferior_data_cleanup): Remove.
749 (get_linux_inferior_data, _initialize_linux_tdep): Update.
751 2019-05-08 Tom Tromey <tom@tromey.com>
753 * auxv.c (auxv_inferior_data): Move. Change type.
754 (auxv_inferior_data_cleanup): Remove.
755 (invalidate_auxv_cache_inf): Rewrite.
756 (get_auxv_inferior_data, _initialize_auxv): Update.
758 2019-05-08 Tom Tromey <tom@tromey.com>
760 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
761 (symfile_debug_objfile_data_key): Change type.
762 (symfile_debug_installed, debug_qf_has_symbols)
763 (debug_qf_find_last_source_symtab)
764 (debug_qf_forget_cached_source_info)
765 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
766 (debug_qf_print_stats, debug_qf_dump)
767 (debug_qf_expand_symtabs_for_function)
768 (debug_qf_expand_all_symtabs)
769 (debug_qf_expand_symtabs_with_fullname)
770 (debug_qf_map_matching_symbols)
771 (debug_qf_expand_symtabs_matching)
772 (debug_qf_find_pc_sect_compunit_symtab)
773 (debug_qf_map_symbol_filenames)
774 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
775 (debug_sym_new_init, debug_sym_init, debug_sym_read)
776 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
777 (debug_sym_read_linetable, debug_sym_relocate): Update.
778 (symfile_debug_free_objfile): Remove.
779 (install_symfile_debug_logging, _initialize_symfile_debug):
782 2019-05-08 Tom Tromey <tom@tromey.com>
784 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
786 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
787 (get_dwarf2_per_objfile): Update.
788 (set_dwarf2_per_objfile): Remove.
789 (dwarf2_has_info, dwarf2_get_section_info): Update.
790 (dwarf2_free_objfile): Remove.
791 (_initialize_dwarf2_read): Update.
793 2019-05-08 Tom Tromey <tom@tromey.com>
795 * auto-load.c (struct auto_load_pspace_info): Add destructor and
797 <unsupported_script_warning_printed,
798 script_not_found_warning_printed>: Now bool.
799 (auto_load_pspace_data): Change type.
800 (~auto_load_pspace_info): Rename from
801 auto_load_pspace_data_cleanup.
802 (get_auto_load_pspace_data, init_loaded_scripts_info)
803 (clear_section_scripts, maybe_print_unsupported_script_warning)
804 (maybe_print_script_not_found_warning, _initialize_auto_load):
807 2019-05-08 Tom Tromey <tom@tromey.com>
809 * objfiles.c (objfile_pspace_info): Add destructor and
811 (objfiles_pspace_data): Change type.
812 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
813 (get_objfile_pspace_data): Update.
814 (objfiles_bfd_data): Change type.
815 (get_objfile_bfd_data): Update.
816 (objfile_bfd_data_free, _initialize_objfiles): Remove.
818 2019-05-08 Tom Tromey <tom@tromey.com>
820 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
822 (get_catch_syscall_inferior_data): Update.
823 (catch_syscall_inferior_data_cleanup): Remove.
824 (_initialize_break_catch_syscall): Update.
826 2019-05-08 Tom Tromey <tom@tromey.com>
828 * inflow.c (struct terminal_info): Add destructor and
830 (inflow_inferior_data): Change type.
831 (~terminal_info): Rename from inflow_inferior_data_cleanup.
832 (get_inflow_inferior_data, inflow_inferior_exit)
833 (swap_terminal_info, _initialize_inflow): Update.
835 2019-05-08 Tom Tromey <tom@tromey.com>
837 * target-dcache.c (target_dcache_cleanup): Remove.
838 (target_dcache_aspace_key): Change type.
839 (target_dcache_init_p, target_dcache_invalidate)
840 (target_dcache_get, target_dcache_get_or_init)
841 (_initialize_target_dcache): Update.
842 * dcache.h (struct dcache_deleter): New.
844 2019-05-08 Tom Tromey <tom@tromey.com>
846 * symtab.c (struct symbol_cache): Add destructor and
848 (symbol_cache_key): Move. Change type.
849 (make_symbol_cache, free_symbol_cache): Remove.
850 (get_symbol_cache): Update.
851 (symbol_cache_cleanup): Remove.
852 (ALL_PSPACES, symbol_cache_flush)
853 (maintenance_print_symbol_cache)
854 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
857 2019-05-08 Tom Tromey <tom@tromey.com>
859 * symtab.c (struct main_info): Add destructor and initializers.
860 (main_progspace_key): Move. Change type.
861 (get_main_info): Update.
862 (main_info_cleanup): Remove.
863 (_initialize_symtab): Update.
865 2019-05-08 Tom Tromey <tom@tromey.com>
867 * registry.h (DECLARE_REGISTRY): Define the _key class.
869 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
871 * NEWS: Merge two 'New commands' sections.
873 2019-05-08 Joel Brobecker <brobecker@adacore.com>
875 * ada-valprint.c (ada_val_print_gnat_array): Remove language
876 parameter and use Ada language definition instead.
877 (ada_val_print_ptr): Remove unused language parameter.
878 (ada_val_print_num): Remove language parameter and use Ada language
880 (ada_val_print_enum, ada_val_print_flt): Remove unused language
882 (ada_val_print_struct_union, ada_val_print_ref): Remove language
883 parameter and use Ada language definition instead.
884 (ada_val_print_1): Update all ada_val_print_xxx calls.
885 Remove language parameter.
886 (ada_val_print): Update ada_val_print_1 call.
888 2019-05-08 Tom Tromey <tromey@adacore.com>
890 * remote.c (remote_hw_watchpoint_limit)
891 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
894 2019-05-08 Tom Tromey <tromey@adacore.com>
896 * maint.c (_initialize_maint_cmds): Move initialization code to
898 (watchdog, show_watchdog): Move to remote.c.
899 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
901 (_initialize_remote): Move initialization code from maint.c.
902 * defs.h (watchdog): Don't declare.
904 2019-05-08 Tom Tromey <tromey@adacore.com>
906 * tui/tui-interp.c: Include main.h.
907 * interps.c: Include main.h.
908 * main.h (interpreter_p): Declare.
909 * defs.h (interpreter_p): Don't declare.
911 2019-05-08 Tom Tromey <tromey@adacore.com>
913 * dwarf2loc.c: Include dwarf2read.h.
914 * defs.h (read_unsigned_leb128): Don't declare.
915 * dwarf2read.h (read_unsigned_leb128): Declare.
917 2019-05-08 Tom Tromey <tromey@adacore.com>
919 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
922 2019-05-08 Tom Tromey <tromey@adacore.com>
924 * utils.c (fputs_maybe_filtered): Reset style after paging, even
925 when no wrap column is set.
927 2019-05-08 Tom Tromey <tromey@adacore.com>
929 * c-lang.c (c_get_string): Handle non-C-style arrays.
931 2019-05-08 Tom Tromey <tromey@adacore.com>
933 * typeprint.c (print_offset_data::update): Print the bit offset,
934 not the number of bits remaining.
936 2019-05-08 Tom Tromey <tromey@adacore.com>
938 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
939 padding at end of comment.
941 2019-05-08 Tom Tromey <tromey@adacore.com>
943 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
946 2019-05-06 Tom Tromey <tom@tromey.com>
948 * common/scoped_mmap.c: Include common-defs.h.
949 * common/scoped_mmap.h: Don't include config.h.
951 2019-05-04 Tom Tromey <tom@tromey.com>
953 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
954 (struct aarch64_call_info): Add initializers.
955 <si>: Now a std::vector.
956 (pass_on_stack, aarch64_push_dummy_call): Update.
958 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
959 Tom Tromey <tom@tromey.com>
961 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
962 (ppc_threads): Now a std::vector. Now static.
963 (hwdebug_find_thread_points_by_tid)
964 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
967 2019-05-04 Tom Tromey <tom@tromey.com>
969 * arc-tdep.c (arc_tdesc_init): Return bool.
971 2019-05-04 Tom Tromey <tom@tromey.com>
973 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
974 Use gdb_assert_not_reached.
976 2019-05-04 Tom Tromey <tom@tromey.com>
978 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
981 2019-05-04 Tom Tromey <tom@tromey.com>
983 * arc-tdep.c (arc_tdesc_init): Use bool.
985 2019-05-04 Tom Tromey <tom@tromey.com>
987 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
989 2019-05-04 Tom Tromey <tom@tromey.com>
991 * cli/cli-cmds.c (valid_command_p): Return bool.
993 2019-05-04 Tom Tromey <tom@tromey.com>
995 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
996 * command.h (valid_user_defined_cmd_name_p): Channge return type.
998 2019-05-04 Raul Tambre <raul@tambre.ee>
1000 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1001 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1002 operator for comparison.
1004 2019-05-04 Tom Tromey <tom@tromey.com>
1006 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1007 (lookup_partial_symbol, print_partial_symbols)
1008 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1009 (psymbol_compare): Update.
1010 (add_psymbol_to_bcache): Clear the entire psymbol.
1011 (maintenance_check_psymtabs): Update.
1012 * psympriv.h (struct partial_symbol): Don't derive from
1013 general_symbol_info.
1014 <obj_section, unrelocated_address, address,
1015 set_unrelocated_address>: Update.
1016 <ginfo>: New member.
1017 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1018 (debug_names::write_psymbols): Update.
1020 2019-05-04 Tom de Vries <tdevries@suse.de>
1022 * contrib/cc-with-tweaks.sh: Support -n arg.
1024 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1026 * corelow.c (core_target::detach): Ensure frame cache and
1027 register caches are cleared.
1028 inferior.c (exit_inferior_1): Likewise.
1030 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1031 Tom Tromey <tom@tromey.com>
1033 * dictionary.c (collate_pending_symbols_by_language): Remove
1034 "struct" from foreach.
1035 * symtab.c (lookup_global_symbol_from_objfile)
1036 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1038 * ser-tcp.c (net_open): Remove "struct" from foreach.
1039 * objfiles.c (objfile_relocate, objfile_rebase)
1040 (objfile_has_symbols): Remove "struct" from foreach.
1041 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1043 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1045 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1046 "struct" from foreach.
1047 * ada-lang.c (create_excep_cond_exprs)
1048 (ada_exception_catchpoint_cond_string): Remove "struct" from
1051 2019-05-03 Tom Tromey <tromey@adacore.com>
1053 * ada-exp.y (convert_char_literal): Check suffix of each
1056 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1059 * ada-exp.y (yywrap): Don't define.
1060 * ada-lex.l (%option): Add noyywrap
1063 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1065 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1066 _WIN32_WINNT to the XP level, unless already defined to a higher
1069 * unittests/parse-connection-spec-selftests.c:
1071 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1074 * symfile.c (find_separate_debug_file): Remove colon from the
1075 drive spec of DOS/Windows file names of the target, so that the
1076 file name produced from DEBUGDIR and the target's directory will
1077 be valid on DOS/Windows systems.
1079 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1081 * rust-lang.c (val_print_struct): Handle printing structures
1084 2019-05-02 Tom Tromey <tromey@adacore.com>
1086 * valarith.c (_initialize_valarith): Remove.
1088 2019-05-01 Tom Tromey <tromey@adacore.com>
1090 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1093 2019-05-01 Tom Tromey <tromey@adacore.com>
1095 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1096 for big-endian copies.
1098 2019-04-30 Ali Tamur <tamur@google.com>
1099 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1100 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1101 (read_3_bytes): New function.
1103 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1105 * windows-nat.c (main_thread_id): Delete.
1106 (handle_output_debug_string): Replace main_thread_id by
1107 current_event.dwThreadId.
1108 (fake_create_process): Likewise.
1109 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1110 Do not set main_thread_id.
1111 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1112 current_event.dwThreadId.
1113 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1115 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1117 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1118 Use current_event.dwThreadId instead of main_thread_id.
1120 2019-04-30 Tom Tromey <tromey@adacore.com>
1122 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1123 (create_excep_cond_exprs): Iterate over program spaces.
1124 (ada_exception_catchpoint_cond_string): Examine all minimal
1125 symbols for exception types.
1127 2019-04-30 Tom Tromey <tromey@adacore.com>
1130 * dwarf2read.c (process_structure_scope): Handle case where type
1131 has template parameters but no symbol was created.
1133 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1134 Chris January <chris.january@arm.com>
1136 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1138 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1140 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1142 * f-typeprint.c (f_print_type): Update rules for printing
1144 (f_type_print_varspec_suffix): Likewise.
1146 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1147 Chris January <chris.january@arm.com>
1149 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1152 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1154 * f-lang.c (build_fortran_types): Change name of void type to
1156 * f-typeprint.c (f_type_print_base): Print the name of the void
1157 type, rather than a fixed string.
1158 * f-valprint.c (f_decorations): Use lower case void string.
1160 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1161 Chris January <chris.january@arm.com>
1163 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1166 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1167 Chris January <chris.january@arm.com>
1168 David Lecomber <david.lecomber@arm.com>
1170 * f-exp.y (BINOP_INTRINSIC): New token.
1171 (exp): New parser rule handling BINOP_INTRINSIC.
1172 (f77_keywords): Add new builtin procedures.
1173 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1174 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1175 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1176 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1177 (print_unop_subexp_f): New function.
1178 (print_binop_subexp_f): New function.
1179 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1180 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1181 (dump_subexp_body_f): Likewise.
1182 (operator_check_f): Likewise.
1183 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1184 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1186 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1188 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1190 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1191 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1192 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1193 (operator_length_f): New fuction.
1194 (print_subexp_f): New function.
1195 (op_name_f): New function.
1196 (dump_subexp_body_f): New function.
1197 (operator_check_f): New function.
1198 (exp_descriptor_f): Replace standard expression handling functions
1200 * gdb/fortran-operator.def: New file.
1201 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1202 * gdb/std-operator.def: Remove UNOP_KIND.
1204 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1206 * std-operator.def: Remove unbalanced, stray double quote
1209 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1210 Chris January <chris.january@arm.com>
1211 Daniel Everett <daniel.everett@arm.com>
1212 Nick Forrington <nick.forrington@arm.com>
1213 Richard Bunt <richard.bunt@arm.com>
1215 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1216 of depth when printing anonymous structs or unions.
1217 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1218 Don't print either the top-level value, or the children if the
1219 max-depth is exceeded.
1220 (ppscm_print_children): When printing the key of a map, allow one
1221 extra level of depth.
1222 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1223 print either the top-level value, or the children if the max-depth
1225 (print_children): When printing the key of a map, allow one extra
1227 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1228 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1229 (user_print_options): Initialise max_depth field.
1230 (val_print_scalar_or_string_type_p): New function.
1231 (val_print): Check to see if the max depth has been reached.
1232 (val_print_check_max_depth): Define new function.
1233 (show_print_max_depth): New function.
1234 (_initialize_valprint): Add 'print max-depth' option.
1235 * valprint.h (struct value_print_options) <max_depth>: New field.
1236 (val_print_check_max_depth): Declare new function.
1237 * NEWS: Document new feature.
1239 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1241 * ada-lang.c (ada_language_defn): Initialise new field.
1242 * c-lang.c (c_is_string_type_p): New function.
1243 (c_language_defn): Initialise new field.
1244 (cplus_language_defn): Initialise new field.
1245 (asm_language_defn): Initialise new field.
1246 (minimal_language_defn): Initialise new field.
1247 * c-lang.h (c_is_string_type_p): Declare new function.
1248 * d-lang.c (d_language_defn): Initialise new field.
1249 * f-lang.c (f_is_string_type_p): New function.
1250 (f_language_defn): Initialise new field.
1251 * go-lang.c (go_is_string_type_p): New function.
1252 (go_language_defn): Initialise new field.
1253 * language.c (default_is_string_type_p): New function.
1254 (unknown_language_defn): Initialise new field.
1255 (auto_language_defn): Initialise new field.
1256 * language.h (struct language_defn) <la_is_string_type_p>: New
1258 (default_is_string_type_p): Declare new function.
1259 * m2-lang.c (m2_language_defn): Initialise new field.
1260 * objc-lang.c (objc_language_defn): Initialise new field.
1261 * opencl-lang.c (opencl_language_defn): Initialise new field.
1262 * p-lang.c (pascal_is_string_type_p): New function.
1263 (pascal_language_defn): Initialise new field.
1264 * rust-lang.c (rust_is_string_type_p): New function.
1265 (rust_language_defn): Initialise new field.
1267 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1269 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1271 * ada-lang.c (ada_language_defn): Initialise new field.
1272 * c-lang.c (c_language_defn): Likewise.
1273 (cplus_language_defn): Likewise.
1274 (asm_language_defn): Likewise.
1275 (minimal_language_defn): Likewise.
1276 * d-lang.c (d_language_defn): Likewise.
1277 * f-lang.c (f_language_defn): Likewise.
1278 * go-lang.c (go_language_defn): Likewise.
1279 * language.c (unknown_language_defn): Likewise.
1280 (auto_language_defn): Likewise.
1281 * m2-lang.c (m2_language_defn): Likewise.
1282 * objc-lang.c (objc_language_defn): Likewise.
1283 * opencl-lang.c (opencl_language_defn): Likewise.
1284 * p-lang.c (pascal_language_defn): Likewise.
1285 * rust-lang.c (rust_language_defn): Likewise.
1287 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1289 * ada-lang.c (ada_is_character_type): Change return type to bool.
1290 (ada_is_string_type): Likewise.
1291 * ada-lang.h (ada_is_character_type): Update declaration
1292 (ada_is_string_type): Likewise.
1294 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1296 Support style in 'frame|thread apply'
1298 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1299 * record.c (record_start, record_stop): Update callers of
1300 execute_command_to_string with false.
1301 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1302 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1304 (class string_file): New constructor with term_out parameter.
1305 Override methods term_out and can_emit_style_escape. New member
1307 (class stdio_file): Override can_emit_style_escape.
1308 (class tee_file): Override term_out and can_emit_style_escape.
1309 * utils.h (can_emit_style_escape): Remove.
1310 * utils.c (can_emit_style_escape): Likewise.
1311 Update all callers of can_emit_style_escape (SOMESTREAM) to
1312 SOMESTREAM->can_emit_style_escape.
1313 * source-cache.c (source_cache::get_source_lines): Likewise.
1314 * stack.c (frame_apply_command_count): Call execute_command_to_string
1315 passing the term_out characteristic of the current gdb_stdout.
1316 * thread.c (thr_try_catch_cmd): Likewise.
1317 * top.c (execute_command_to_string): pass term_out parameter
1318 to construct the string_file for the command output.
1319 * ui-file.c (term_cli_styling): New function (most code moved
1320 from utils.c can_emit_style_escape).
1321 (string_file::string_file, string_file::can_emit_style_escape,
1322 stdio_file::can_emit_style_escape, tee_file::term_out,
1323 tee_file::can_emit_style_escape): New functions.
1325 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1327 * NEWS: Mention the new set|show may-call-functions.
1328 * infcall.c (may_call_functions_p): New variable.
1329 (show_may_call_functions_p): New function.
1330 (call_function_by_hand_dummy): Throws an error if not
1332 (_initialize_infcall): Call add_setshow_boolean_cmd for
1335 2019-04-25 Keith Seitz <keiths@redhat.com>
1338 * cp-support.c (inspect_type): Don't attempt substitutions
1339 of symbol with the same name.
1341 2019-04-25 Tom Tromey <tromey@adacore.com>
1344 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1347 2019-04-25 Tom Tromey <tromey@adacore.com>
1349 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1351 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1352 (gdb_xml_parser::parse): Use std::move.
1353 * python/python-internal.h (gdbpy_convert_exception): Take a const
1355 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1357 * python/py-utils.c (gdbpy_convert_exception): Take a const
1359 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1361 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1363 * mi/mi-main.c (mi_print_exception): Take a const reference.
1364 * main.c (handle_command_errors): Take a const reference.
1365 * linespec.c (parse_linespec): Use std::move.
1366 * infcall.c (run_inferior_call): Use std::move.
1367 (call_function_by_hand_dummy): Use std::move.
1368 * exec.c (try_open_exec_file): Use std::move.
1369 * exceptions.h (exception_print, exception_fprintf)
1370 (exception_print_same): Update.
1371 * exceptions.c (print_exception, exception_print)
1372 (exception_fprintf, exception_print_same): Change parameters to
1374 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1375 * common/new-op.c: Use std::move.
1376 * common/common-exceptions.h (struct gdb_exception): Add move
1378 (struct gdb_exception_error, struct gdb_exception_quit, struct
1379 gdb_quit_bad_alloc): Change constructor to move constructor.
1380 (throw_exception): Change parameter to rvalue reference.
1381 * common/common-exceptions.c (throw_exception): Take rvalue
1383 * cli/cli-interp.c (safe_execute_command): Use std::move.
1384 * breakpoint.c (insert_bp_location, location_to_sals): Use
1387 2019-04-25 Tom Tromey <tromey@adacore.com>
1389 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1390 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1391 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1392 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1393 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1394 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1395 guile/scm-value.c: Use unpack.
1396 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1397 gdbscm_gdb_exception.
1398 (gdbscm_throw_gdb_exception): Likewise.
1399 (struct gdbscm_gdb_exception): New.
1400 (unpack): New function.
1401 (gdbscm_wrap): Use unpack.
1403 2019-04-25 Tom Tromey <tromey@adacore.com>
1405 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1406 (gdb_rl_callback_handler): Use std::move.
1407 * common/common-exceptions.h (struct gdb_exception): Add move
1408 assignment operator.
1409 (throw_exception_sjlj): Change "exception" to const reference.
1410 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1411 (throw_exception_sjlj): Change "exception" to const reference.
1413 2019-04-25 Tom Tromey <tromey@adacore.com>
1415 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1416 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1417 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1419 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1421 * mi/mi-interp.c (mi_interp::exec): Update.
1422 * linespec.c (parse_linespec): Update.
1423 * infcall.c (run_inferior_call): Update.
1424 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1425 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1426 (gdbscm_lookup_global_symbol): Update.
1427 * guile/scm-param.c (gdbscm_parameter_value): Update.
1428 * guile/scm-frame.c (gdbscm_frame_read_register)
1429 (gdbscm_frame_read_var): Update.
1430 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1431 * exec.c (try_open_exec_file): Update.
1432 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1433 (gdb_rl_callback_handler): Update.
1434 * common/common-exceptions.h (exception_none): Don't declare.
1435 * common/common-exceptions.c (exception_none): Don't define.
1436 (struct catcher) <exception>: Update.
1437 * cli/cli-interp.c (safe_execute_command): Update.
1438 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1440 2019-04-25 Ali Tamur <tamur@google.com>
1442 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1443 (read_attribute_value): Likewise.
1444 (dwarf2_read_addr_index): Update comment.
1445 (read_str_index): Add DW_FORM_strx.
1446 (dwarf2_string_attr): Likewise.
1447 (dwarf2_const_value_attr): Likewise.
1448 (dump_die_shallow): Likewise.
1449 (dwarf2_fetch_constant_bytes): Likewise.
1450 (skip_form_bytes): Likewise.
1451 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1453 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1457 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1458 OFFSET. Verify if current mapping contains an ELF header.
1459 (linux_find_memory_regions_full): Adjust call to
1462 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1463 Kang Li <kanglictf@gmail.com>
1467 * dwarf2-frame.c (read_initial_length): Be consistent about using
1468 unsigned representation of length.
1469 (decode_frame_entry_1): Likewise. Check for wraparound of
1470 end pointer as well as buffer overflow.
1472 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1474 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1477 2019-04-24 Tom Tromey <tromey@adacore.com>
1479 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1481 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1483 * s12z-tdep.c (s12z_unwind_pc): Delete.
1484 (s12z_unwind_sp): Delete.
1485 (s12z_gdbarch_init): Don't register deleted functions with
1488 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1490 * rl78-tdep.c (rl78_unwind_sp): Delete.
1491 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1493 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1495 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1496 (xstormy16_unwind_pc): Delete.
1497 (xstormy16_dummy_id): Delete.
1498 (xstormy16_gdbarch_init): Don't register deleted functions with
1501 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1503 * vax-tdep.c (vax_unwind_pc): Delete.
1504 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1506 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1508 * v850-tdep.c (v850_unwind_sp): Delete.
1509 (v850_unwind_pc): Delete.
1510 (v850_dummy_id): Delete.
1511 (v850_gdbarch_init): Don't register deleted functions with
1514 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1516 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1517 (tilegx_unwind_pc): Delete.
1518 (tilegx_unwind_dummy_id): Delete.
1519 (tilegx_gdbarch_init): Don't register deleted functions with
1522 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1524 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1525 (tic6x_dummy_id): Delete.
1526 (tic6x_gdbarch_init): Don't register deleted functions with
1529 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1531 * sparc-tdep.c (sparc_unwind_pc): Delete.
1532 (sparc32_gdbarch_init): Don't register deleted function with
1535 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1537 * sh-tdep.c (sh_unwind_sp): Delete.
1538 (sh_unwind_pc): Delete.
1539 (sh_dummy_id): Delete.
1540 (sh_gdbarch_init): Don't register deleted functions with
1543 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1545 * score-tdep.c (score_unwind_sp): Delete.
1546 (score_unwind_pc): Delete.
1547 (score_dummy_id): Delete.
1548 (score_gdbarch_init): Don't register deleted functions with
1551 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1553 * rx-tdep.c (rx_unwind_pc): Delete.
1554 (rx_unwind_sp): Delete.
1555 (rx_dummy_id): Delete.
1556 (rx_gdbarch_init): Don't register deleted functions with
1557 gdbarch. Update comment.
1559 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1561 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1562 (rs6000_dummy_id): Delete.
1563 (rs6000_gdbarch_init): Don't register deleted functions with
1566 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1568 * or1k-tdep.c (or1k_dummy_id): Delete.
1569 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1571 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1573 * nios2-tdep.c (nios2_dummy_id): Delete.
1574 (nios2_unwind_sp): Delete.
1575 (nios2_gdbarch_init): Don't register deleted functions with
1578 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1580 * nds32-tdep.c (nds32_dummy_id): Delete.
1581 (nds32_unwind_pc): Delete.
1582 (nds32_unwind_sp): Delete.
1583 (nds32_gdbarch_init): Don't register deleted functions with
1586 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1588 * msp430-tdep.c (msp430_unwind_pc): Delete.
1589 (msp430_unwind_sp): Delete.
1590 (msp430_dummy_id): Delete.
1591 (msp430_gdbarch_init): Don't register deleted functions with
1594 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1596 * moxie-tdep.c (moxie_unwind_sp): Delete.
1597 (moxie_unwind_pc): Delete.
1598 (moxie_dummy_id): Delete.
1599 (moxie_gdbarch_init): Don't register deleted functions with
1602 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1604 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1605 (mn10300_unwind_pc): Delete.
1606 (mn10300_unwind_sp): Delete.
1607 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1609 (mn10300_frame_unwind_init): Don't register deleted functions with
1612 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1614 * mep-tdep.c (mep_unwind_pc): Delete.
1615 (mep_unwind_sp): Delete.
1616 (mep_dummy_id): Delete.
1617 (mep_gdbarch_init): Don't register deleted functions with
1620 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1622 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1623 (m68hc11_unwind_sp): Delete.
1624 (m68hc11_gdbarch_init): Don't register deleted functions with
1627 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1629 * m32r-tdep.c (m32r_unwind_sp): Delete.
1630 (m32r_unwind_pc): Delete.
1631 (m32r_dummy_id): Delete.
1632 (m32r_gdbarch_init): Don't register deleted functions with
1635 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1637 * m32c-tdep.c (m32c_unwind_pc): Delete.
1638 (m32c_unwind_sp): Delete.
1639 (m32c_dummy_id): Delete.
1640 (m32c_gdbarch_init): Don't register deleted functions with
1643 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1645 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1646 (lm32_unwind_pc): Delete.
1647 (lm32_dummy_id): Delete.
1648 (lm32_gdbarch_init): Don't register deleted functions with
1651 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1653 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1654 (iq2000_unwind_pc): Delete.
1655 (iq2000_dummy_id): Delete.
1656 (iq2000_gdbarch_init): Don't register deleted functions with
1659 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1661 * nds32-tdep.c (nds32_type_align): Delete.
1662 (nds32_push_dummy_call): Use type_align instead.
1664 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1666 * arm-tdep.c (arm_type_align): Only handle vector override case.
1667 (arm_push_dummy_call): Use type_align.
1668 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1670 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1672 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1674 (pass_on_stack): Use type_align.
1675 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1678 2019-04-23 Tom Tromey <tromey@adacore.com>
1680 * dwarf2read.c (line_header::file_name_at): Remove unused
1683 2019-04-23 Tom de Vries <tdevries@suse.de>
1686 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1690 2019-03-27 Ali Tamur <tamur@google.com>
1692 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1693 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1694 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1695 (dwarf_expr_context::get_addr_index): Likewise
1696 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1697 (symbol_needs_eval_context::get_addr_index): Likewise
1698 (disassemble_dwarf_expression): Add DW_OP_addrx
1699 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1700 (read_cutu_die_from_dwo): Update comment
1701 (skip_one_die): Add DW_FORM_addrx
1702 (read_attribute_value): Likewise
1703 (var_decode_location): Add DW_OP_addrx
1704 (dwarf2_const_value_attr): Add DW_FORM_addrx
1705 (dump_die_shallow): Likewise
1706 (dwarf2_fetch_constant_bytes): Likewise
1707 (decode_locdesc): Add DW_OP_addrx
1708 (skip_form_bytes): Add DW_FORM_addrx
1710 2019-04-22 Ali Tamur <tamur@google.com>
1712 * MAINTAINERS (Write After Approval): Add self.
1714 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1716 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1717 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1718 (open_symbol_file_object): Likewise.
1719 (svr4_default_sos): Add info parameter.
1720 (svr4_read_so_list): Likewise.
1721 (svr4_current_sos_direct): Adjust functions calls to pass down
1723 (svr4_current_sos_1): Add info parameter.
1724 (svr4_current_sos): Call get_svr4_info, pass info down to
1726 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1728 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1730 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1732 (probes_table_remove_objfile_probes): Likewise.
1733 (register_solib_event_probe): Add info parameter.
1734 (solist_update_incremental): Pass info parameter down to
1736 (disable_probes_interface): Add info parameter.
1737 (svr4_handle_solib_event): Pass current_program_space to
1738 get_svr4_info. Adjust disable_probes_interface cleanup.
1739 (svr4_create_probe_breakpoints): Add info parameter, pass it
1740 down to register_solib_event_probe.
1741 (svr4_create_solib_event_breakpoints): Add info parameter,
1742 pass it down to svr4_create_probe_breakpoints.
1743 (enable_break): Pass info down to
1744 svr4_create_solib_event_breakpoints.
1745 (svr4_solib_create_inferior_hook): Pass current_program_space to
1747 (svr4_clear_solib): Likewise.
1749 2019-04-22 Pedro Alves <palves@redhat.com>
1751 * solib-svr4.c (svr4_free_objfile_observer): New.
1752 (probe_and_action::objfile): New field.
1753 (probes_table_htab_remove_objfile_probes)
1754 (probes_table_remove_objfile_probes): New functions.
1755 (register_solib_event_probe): Add 'objfile' parameter. Store it
1756 in the new probe_and_action. Don't store the probe in 'lookup'.
1757 (svr4_create_probe_breakpoints): Pass objfile to
1758 register_solib_event_probe.
1759 (_initialize_svr4_solib): Register a free_objfile observer.
1761 2019-04-19 Tom Tromey <tom@tromey.com>
1763 * common/queue.h: Remove.
1765 2019-04-19 Tom Tromey <tom@tromey.com>
1767 * event-loop.c: Don't include "common/queue.h".
1769 2019-04-19 Tom Tromey <tom@tromey.com>
1771 * remote.c (remote_target): Use delete.
1772 * remote-notif.h: Include <list>, not "common/queue.h".
1773 (notif_client_p): Remove typedef.
1774 (remote_notif_state): Add constructor, destructor, initializer.
1775 <notif_queue>: Now a std::list.
1776 (remote_notif_state_xfree): Don't declare.
1777 * remote-notif.c (remote_notif_process, handle_notification)
1778 (remote_notif_state_allocate): Update.
1779 (~remote_notif_state): Rename from remote_notif_state_xfree.
1781 2019-04-19 Tom Tromey <tom@tromey.com>
1783 * symfile.c (reread_symbols): Update.
1784 * objfiles.c (objfile_register_static_link)
1785 (objfile_lookup_static_link): Update
1786 (~objfile) Don't delete static_links.
1787 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1789 2019-04-19 Tom Tromey <tom@tromey.com>
1791 * type-stack.h (struct type_stack) <insert>: Constify string.
1792 * type-stack.c (type_stack::insert): Constify string.
1793 * gdbtypes.h (lookup_template_type): Update.
1794 (address_space_name_to_int): Update.
1795 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1797 (lookup_template_type): Make name const.
1798 * c-exp.y: Update rules.
1799 (lex_one_token, classify_name, classify_inner_name)
1800 (c_print_token): Update.
1801 * p-exp.y: Update rules.
1803 * f-exp.y: Update rules.
1805 * d-exp.y: Update rules.
1806 (lex_one_token, classify_name, classify_inner_name): Update.
1807 * parse.c (write_dollar_variable, copy_name): Return std::string.
1808 * parser-defs.h (copy_name): Change return type.
1809 * m2-exp.y: Update rules.
1811 * go-exp.y (lex_one_token): Update.
1813 (classify_unsafe_function, classify_packaged_name)
1814 (classify_name, yylex): Update.
1816 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1818 * configure.ac: add --enable-source-highlight switch.
1819 * configure: Regenerate.
1820 * top.c (print_gdb_version): plumb --enable-source-highlight
1821 status to "show configuration".
1823 2019-04-19 Tom Tromey <tromey@adacore.com>
1825 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1827 (empty_record, ada_template_to_fixed_record_type_1)
1828 (template_to_static_fixed_type)
1829 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1830 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1831 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1834 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1837 * source.c (print_source_lines_base): Advance "iter" when a
1838 control character is seen.
1840 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1842 * inferior.h (struct infcall_suspend_state_deleter):
1843 Catch exception in destructor to avoid crash.
1845 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1847 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1848 close to the add_com "shell".
1850 2019-04-18 Tom Tromey <tromey@adacore.com>
1852 * process-stratum-target.h (class process_stratum_target)
1853 <stratum>: Add "final".
1855 2019-04-17 Tom Tromey <tromey@adacore.com>
1857 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1858 against nullptr before use.
1860 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1862 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1864 2019-04-17 Jim Wilson <jimw@sifive.com>
1865 Andrew Burgess <andrew.burgess@embecosm.com>
1867 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1868 code read might fail, assume 4-byte breakpoint in that case.
1870 2019-04-15 Leszek Swirski <leszeks@google.com>
1872 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1873 rather than a hand-rolled POD check when checking for forced MEMORY
1876 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1878 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1879 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1881 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1882 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1883 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1886 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1888 * aarch64-linux-nat.c
1889 (aarch64_linux_nat_target::thread_architecture): Add override.
1890 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1893 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1895 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1897 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1899 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1900 target types of size 96-bits, add some additional comments, and
1901 check that the builtin type we found was the correct size.
1903 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1905 * utils.c (prompt_for_continue): Don't restore the styling at the
1906 end, as applied_style has the wrong value. This fixes styling in
1907 long lists of file names that are interrupted by the "Continue?"
1910 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1912 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1913 * c-lang.c (c_language_defn): Likewise.
1914 (cplus_language_defn): Likewise.
1915 (asm_language_defn): Likewise.
1916 (minimal_language_defn): Likewise.
1917 * d-lang.c (d_language_defn): Likewise.
1918 * f-lang.c (f_language_defn): Likewise.
1919 * go-lang.c (go_language_defn): Likewise.
1920 * language.c (unknown_language_defn): Likewise.
1921 (auto_language_defn): Likewise.
1922 * language.h (struct language_defn): Remove la_magic field.
1923 (LANG_MAGIC): Delete.
1924 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1925 * objc-lang.c (objc_language_defn): Likewise.
1926 * opencl-lang.c (opencl_language_defn): Likewise.
1927 * p-lang.c (pascal_language_defn): Likewise.
1928 * rust-lang.c (rust_language_defn): Likewise.
1930 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1932 * riscv-tdep.c (riscv_type_align): New function.
1933 (riscv_type_alignment): Delete.
1934 (riscv_arg_location): Use 'type_align'.
1935 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1937 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1939 * gdbtypes.c (type_align): A struct with no non-static fields also
1942 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1944 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1946 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1948 (riscv_struct_info::analyse): New implementation using new
1949 analyse_inner member function.
1950 (riscv_struct_info::field_offset): New member function.
1951 (riscv_struct_info::m_offsets): New member variable.
1952 (riscv_struct_info::analyse_inner): New private member function,
1953 takes the old implementation of riscv_struct_info::analyse but
1954 extended to track field offsets.
1955 (riscv_call_arg_struct): Update the struct folding special cases
1956 to handle cases where empty C++ structs, which are non-zero
1958 (riscv_arg_location): Initialise the length of each location, a
1959 non-zero length now indicates the location is in use.
1960 (riscv_push_dummy_call): Allow for the first location having a
1961 non-zero offset when setting up arguments.
1962 (riscv_return_value): Likewise, but for return values.
1964 2019-04-11 Tom Tromey <tromey@adacore.com>
1966 * utils.c (internal_vproblem): Make "msg" const.
1968 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1970 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1971 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1972 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1973 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1975 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1977 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1979 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1980 of amd64_collect_native_gregset.
1981 (amd64_linux_nat_target::store_registers): Likewise.
1983 2019-04-10 Tom Tromey <tom@tromey.com>
1985 * symtab.c (lookup_global_symbol_from_objfile)
1986 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1987 * objfiles.h (class separate_debug_iterator): New.
1988 (class separate_debug_range): New.
1989 (struct objfile) <separate_debug_objfiles>: New method.
1990 (objfile_separate_debug_iterate): Don't declare.
1991 * objfiles.c (separate_debug_iterator::operator++): Rename from
1992 objfile_separate_debug_iterate.
1993 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1995 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1998 2019-04-10 Tom Tromey <tom@tromey.com>
2000 * symfile.c (reread_symbols): Remove old comment.
2001 * objfiles.c (free_all_objfiles): Fix a typo.
2003 2019-04-10 Tom Tromey <tom@tromey.com>
2005 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2006 * minsyms.c (lookup_minimal_symbol): Use foreach.
2007 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2008 (lookup_minimal_symbol_solib_trampoline): Likewise.
2009 * symfile.c (reread_symbols): Use foreach.
2011 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2012 Tom Tromey <tromey@adacore.com>
2015 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2016 (rust_lex_int_test): Change "value" to be LONGEST.
2017 (rust_lex_tests): Add test for long integer literal.
2019 2019-04-09 Tom Tromey <tromey@adacore.com>
2021 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2023 (extended_remote_target::attach): Update.
2024 (remote_target::remote_notice_new_inferior): Update.
2025 (remote_target::add_current_inferior_and_thread): Update.
2026 * inferior.c (exit_inferior_1): Use "false".
2027 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2029 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2031 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2032 the "start" command.
2034 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2036 * python/py-inferior.c (infpy_thread_from_thread_handle):
2037 Adjust comments to reflect renaming of thread_from_thread_handle
2038 to thread_from_handle. Adjust keywords. Fix type error message.
2039 (inferior_object_methods): Add thread_from_handle. Retain
2040 thread_from_thread_handle, but mark it as deprecated.
2042 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2044 * gdbthread.h (find_thread_by_handle): Revise declaration.
2045 * thread.c (find_thread_by_handle): Likewise. Adjust
2047 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2048 support for buffer objects as handles.
2050 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2052 * python/py-infthread.c (thpy_thread_handle): New function.
2053 (thread_object_methods): Register thpy_thread_handle.
2055 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2057 * gdbthread.h (thread_to_thread_handle): Declare.
2058 * thread.c (gdbtypes.h): Include.
2059 (thread_to_thread_handle): New function.
2061 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2062 (target_thread_info_to_thread_handle): Declare.
2063 * target.c (target_thread_info_to_thread_handle): New function.
2064 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2065 * target-delegates.c: Regenerate.
2067 * linux-thread-db.c (class thread_db_target): Add method
2068 thread_info_to_thread_handle.
2069 (thread_db_target::thread_info_to_thread_handle): Define.
2070 * remote.c (class remote_target): Add new method
2071 thread_info_to_thread_handle.
2072 (remote_target::thread_info_to_thread_handle): Define.
2074 2019-04-08 Pedro Alves <palves@redhat.com>
2076 * common/common-exceptions.c (throw_exception): Don't create
2077 named object to throw; throw directly.
2078 (throw_it): Likewise. Don't initialize gdb_exception::message
2079 here, with new; pass FMT and AP to the ctor instead.
2080 * common/common-exceptions.h: Include <string>.
2081 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2082 const char *, va_list)): New ctor. Use std::make_shared.
2083 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2085 (gdb_exception_error::gdb_exception_error(enum errors, const char
2087 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2089 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2091 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2092 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2095 2019-04-08 Tom Tromey <tom@tromey.com>
2097 * valops.c (value_rtti_indirect_type): Replace throw_exception
2099 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2101 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2103 * target.c (target_translate_tls_address): Replace throw_exception
2105 * stack.c (frame_apply_command_count): Replace throw_exception
2107 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2109 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2111 * rs6000-tdep.c (rs6000_frame_cache)
2112 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2113 * remote.c: Replace throw_exception with throw.
2114 * record-full.c (record_full_message, record_full_wait_1)
2115 (record_full_restore): Replace throw_exception with throw.
2117 (get_thread_current_frame_id, record_btrace_start_replaying)
2118 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2119 (cmd_record_btrace_start): Replace throw_exception with throw.
2120 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2122 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2123 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2125 (find_linespec_symbols): Replace throw_exception with throw.
2126 * infrun.c (displaced_step_prepare, resume): Replace
2127 throw_exception with throw.
2128 * infcmd.c (post_create_inferior): Replace throw_exception with
2130 * inf-loop.c (inferior_event_handler): Replace throw_exception
2132 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2133 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2134 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2135 (get_prev_frame_always, get_frame_pc_if_available)
2136 (get_frame_address_in_block_if_available, get_frame_language):
2137 Replace throw_exception with throw.
2138 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2139 throw_exception with throw.
2140 * eval.c (fetch_subexp_value, evaluate_var_value)
2141 (evaluate_funcall, evaluate_subexp_standard): Replace
2142 throw_exception with throw.
2143 * dwarf2loc.c (call_site_find_chain)
2144 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2145 Replace throw_exception with throw.
2146 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2148 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2150 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2151 * completer.c (complete_line_internal): Replace throw_exception
2153 * compile/compile-object-run.c (compile_object_run): Replace
2154 throw_exception with throw.
2155 * cli/cli-script.c (process_next_line): Replace throw_exception
2157 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2158 (btrace_enable, btrace_maint_update_pt_packets): Replace
2159 throw_exception with throw.
2160 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2161 throw_exception with throw.
2162 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2163 throw_exception with throw.
2164 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2165 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2166 * aarch64-tdep.c (aarch64_make_prologue_cache)
2167 (aarch64_make_stub_cache): Replace throw_exception with throw.
2169 2019-04-08 Tom Tromey <tom@tromey.com>
2171 * common/common-exceptions.c (throw_exception): Rename from
2172 throw_exception_cxx. Remove old copy. Make argument const.
2173 (throw_it): Create and throw exception objects directly.
2174 * common/common-exceptions.h (throw_exception): Make argument
2176 (struct gdb_exception_error): Add constructor.
2177 (struct gdb_exception_quit): Add constructor.
2179 2019-04-08 Tom Tromey <tom@tromey.com>
2181 * common/common-exceptions.h (exception_rethrow): Don't declare.
2182 (TRY_SJLJ): Update comment.
2183 (TRY, CATCH, END_CATCH): Remove.
2184 * common/common-exceptions.c (exception_rethrow): Remove.
2186 2019-04-08 Tom Tromey <tom@tromey.com>
2188 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2190 (gdb_exception_error): Rename from
2191 gdb_exception_RETURN_MASK_ERROR.
2192 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2193 (gdb_quit_bad_alloc): Update.
2194 * aarch64-tdep.c: Update.
2195 * ada-lang.c: Update.
2196 * ada-typeprint.c: Update.
2197 * ada-valprint.c: Update.
2198 * amd64-tdep.c: Update.
2199 * arch-utils.c: Update.
2200 * break-catch-throw.c: Update.
2201 * breakpoint.c: Update.
2203 * c-varobj.c: Update.
2204 * cli/cli-cmds.c: Update.
2205 * cli/cli-interp.c: Update.
2206 * cli/cli-script.c: Update.
2207 * common/common-exceptions.c: Update.
2208 * common/new-op.c: Update.
2209 * common/selftest.c: Update.
2210 * compile/compile-c-symbols.c: Update.
2211 * compile/compile-cplus-symbols.c: Update.
2212 * compile/compile-object-load.c: Update.
2213 * compile/compile-object-run.c: Update.
2214 * completer.c: Update.
2215 * corelow.c: Update.
2217 * cp-support.c: Update.
2218 * cp-valprint.c: Update.
2219 * darwin-nat.c: Update.
2220 * disasm-selftests.c: Update.
2221 * dtrace-probe.c: Update.
2222 * dwarf-index-cache.c: Update.
2223 * dwarf-index-write.c: Update.
2224 * dwarf2-frame-tailcall.c: Update.
2225 * dwarf2-frame.c: Update.
2226 * dwarf2loc.c: Update.
2227 * dwarf2read.c: Update.
2229 * event-loop.c: Update.
2230 * event-top.c: Update.
2232 * f-valprint.c: Update.
2233 * fbsd-tdep.c: Update.
2234 * frame-unwind.c: Update.
2236 * gdbtypes.c: Update.
2237 * gnu-v3-abi.c: Update.
2238 * guile/guile-internal.h: Update.
2239 * guile/scm-block.c: Update.
2240 * guile/scm-breakpoint.c: Update.
2241 * guile/scm-cmd.c: Update.
2242 * guile/scm-disasm.c: Update.
2243 * guile/scm-frame.c: Update.
2244 * guile/scm-lazy-string.c: Update.
2245 * guile/scm-math.c: Update.
2246 * guile/scm-param.c: Update.
2247 * guile/scm-ports.c: Update.
2248 * guile/scm-pretty-print.c: Update.
2249 * guile/scm-symbol.c: Update.
2250 * guile/scm-symtab.c: Update.
2251 * guile/scm-type.c: Update.
2252 * guile/scm-value.c: Update.
2253 * i386-linux-tdep.c: Update.
2254 * i386-tdep.c: Update.
2255 * inf-loop.c: Update.
2256 * infcall.c: Update.
2260 * language.c: Update.
2261 * linespec.c: Update.
2262 * linux-fork.c: Update.
2263 * linux-nat.c: Update.
2264 * linux-tdep.c: Update.
2265 * linux-thread-db.c: Update.
2267 * mi/mi-cmd-break.c: Update.
2268 * mi/mi-cmd-stack.c: Update.
2269 * mi/mi-interp.c: Update.
2270 * mi/mi-main.c: Update.
2271 * objc-lang.c: Update.
2272 * p-valprint.c: Update.
2274 * ppc-linux-tdep.c: Update.
2275 * printcmd.c: Update.
2276 * python/py-arch.c: Update.
2277 * python/py-breakpoint.c: Update.
2278 * python/py-cmd.c: Update.
2279 * python/py-finishbreakpoint.c: Update.
2280 * python/py-frame.c: Update.
2281 * python/py-framefilter.c: Update.
2282 * python/py-gdb-readline.c: Update.
2283 * python/py-inferior.c: Update.
2284 * python/py-infthread.c: Update.
2285 * python/py-lazy-string.c: Update.
2286 * python/py-linetable.c: Update.
2287 * python/py-objfile.c: Update.
2288 * python/py-param.c: Update.
2289 * python/py-prettyprint.c: Update.
2290 * python/py-progspace.c: Update.
2291 * python/py-record-btrace.c: Update.
2292 * python/py-record.c: Update.
2293 * python/py-symbol.c: Update.
2294 * python/py-type.c: Update.
2295 * python/py-unwind.c: Update.
2296 * python/py-utils.c: Update.
2297 * python/py-value.c: Update.
2298 * python/python.c: Update.
2299 * record-btrace.c: Update.
2300 * record-full.c: Update.
2301 * remote-fileio.c: Update.
2303 * riscv-tdep.c: Update.
2304 * rs6000-aix-tdep.c: Update.
2305 * rs6000-tdep.c: Update.
2306 * rust-exp.y: Update.
2307 * rust-lang.c: Update.
2308 * s390-tdep.c: Update.
2309 * selftest-arch.c: Update.
2310 * solib-dsbt.c: Update.
2311 * solib-frv.c: Update.
2312 * solib-spu.c: Update.
2313 * solib-svr4.c: Update.
2315 * sparc64-linux-tdep.c: Update.
2317 * symfile-mem.c: Update.
2318 * symmisc.c: Update.
2322 * tracefile-tfile.c: Update.
2323 * tui/tui.c: Update.
2324 * typeprint.c: Update.
2325 * unittests/cli-utils-selftests.c: Update.
2326 * unittests/parse-connection-spec-selftests.c: Update.
2328 * valprint.c: Update.
2331 * windows-nat.c: Update.
2332 * x86-linux-nat.c: Update.
2333 * xml-support.c: Update.
2335 2019-04-08 Tom Tromey <tom@tromey.com>
2337 * xml-support.c: Use C++ exception handling.
2338 * x86-linux-nat.c: Use C++ exception handling.
2339 * windows-nat.c: Use C++ exception handling.
2340 * varobj.c: Use C++ exception handling.
2341 * value.c: Use C++ exception handling.
2342 * valprint.c: Use C++ exception handling.
2343 * valops.c: Use C++ exception handling.
2344 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2346 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2347 * typeprint.c: Use C++ exception handling.
2348 * tui/tui.c: Use C++ exception handling.
2349 * tracefile-tfile.c: Use C++ exception handling.
2350 * top.c: Use C++ exception handling.
2351 * thread.c: Use C++ exception handling.
2352 * target.c: Use C++ exception handling.
2353 * symmisc.c: Use C++ exception handling.
2354 * symfile-mem.c: Use C++ exception handling.
2355 * stack.c: Use C++ exception handling.
2356 * sparc64-linux-tdep.c: Use C++ exception handling.
2357 * solib.c: Use C++ exception handling.
2358 * solib-svr4.c: Use C++ exception handling.
2359 * solib-spu.c: Use C++ exception handling.
2360 * solib-frv.c: Use C++ exception handling.
2361 * solib-dsbt.c: Use C++ exception handling.
2362 * selftest-arch.c: Use C++ exception handling.
2363 * s390-tdep.c: Use C++ exception handling.
2364 * rust-lang.c: Use C++ exception handling.
2365 * rust-exp.y: Use C++ exception handling.
2366 * rs6000-tdep.c: Use C++ exception handling.
2367 * rs6000-aix-tdep.c: Use C++ exception handling.
2368 * riscv-tdep.c: Use C++ exception handling.
2369 * remote.c: Use C++ exception handling.
2370 * remote-fileio.c: Use C++ exception handling.
2371 * record-full.c: Use C++ exception handling.
2372 * record-btrace.c: Use C++ exception handling.
2373 * python/python.c: Use C++ exception handling.
2374 * python/py-value.c: Use C++ exception handling.
2375 * python/py-utils.c: Use C++ exception handling.
2376 * python/py-unwind.c: Use C++ exception handling.
2377 * python/py-type.c: Use C++ exception handling.
2378 * python/py-symbol.c: Use C++ exception handling.
2379 * python/py-record.c: Use C++ exception handling.
2380 * python/py-record-btrace.c: Use C++ exception handling.
2381 * python/py-progspace.c: Use C++ exception handling.
2382 * python/py-prettyprint.c: Use C++ exception handling.
2383 * python/py-param.c: Use C++ exception handling.
2384 * python/py-objfile.c: Use C++ exception handling.
2385 * python/py-linetable.c: Use C++ exception handling.
2386 * python/py-lazy-string.c: Use C++ exception handling.
2387 * python/py-infthread.c: Use C++ exception handling.
2388 * python/py-inferior.c: Use C++ exception handling.
2389 * python/py-gdb-readline.c: Use C++ exception handling.
2390 * python/py-framefilter.c: Use C++ exception handling.
2391 * python/py-frame.c: Use C++ exception handling.
2392 * python/py-finishbreakpoint.c: Use C++ exception handling.
2393 * python/py-cmd.c: Use C++ exception handling.
2394 * python/py-breakpoint.c: Use C++ exception handling.
2395 * python/py-arch.c: Use C++ exception handling.
2396 * printcmd.c: Use C++ exception handling.
2397 * ppc-linux-tdep.c: Use C++ exception handling.
2398 * parse.c: Use C++ exception handling.
2399 * p-valprint.c: Use C++ exception handling.
2400 * objc-lang.c: Use C++ exception handling.
2401 * mi/mi-main.c: Use C++ exception handling.
2402 * mi/mi-interp.c: Use C++ exception handling.
2403 * mi/mi-cmd-stack.c: Use C++ exception handling.
2404 * mi/mi-cmd-break.c: Use C++ exception handling.
2405 * main.c: Use C++ exception handling.
2406 * linux-thread-db.c: Use C++ exception handling.
2407 * linux-tdep.c: Use C++ exception handling.
2408 * linux-nat.c: Use C++ exception handling.
2409 * linux-fork.c: Use C++ exception handling.
2410 * linespec.c: Use C++ exception handling.
2411 * language.c: Use C++ exception handling.
2412 * jit.c: Use C++ exception handling.
2413 * infrun.c: Use C++ exception handling.
2414 * infcmd.c: Use C++ exception handling.
2415 * infcall.c: Use C++ exception handling.
2416 * inf-loop.c: Use C++ exception handling.
2417 * i386-tdep.c: Use C++ exception handling.
2418 * i386-linux-tdep.c: Use C++ exception handling.
2419 * guile/scm-value.c: Use C++ exception handling.
2420 * guile/scm-type.c: Use C++ exception handling.
2421 * guile/scm-symtab.c: Use C++ exception handling.
2422 * guile/scm-symbol.c: Use C++ exception handling.
2423 * guile/scm-pretty-print.c: Use C++ exception handling.
2424 * guile/scm-ports.c: Use C++ exception handling.
2425 * guile/scm-param.c: Use C++ exception handling.
2426 * guile/scm-math.c: Use C++ exception handling.
2427 * guile/scm-lazy-string.c: Use C++ exception handling.
2428 * guile/scm-frame.c: Use C++ exception handling.
2429 * guile/scm-disasm.c: Use C++ exception handling.
2430 * guile/scm-cmd.c: Use C++ exception handling.
2431 * guile/scm-breakpoint.c: Use C++ exception handling.
2432 * guile/scm-block.c: Use C++ exception handling.
2433 * guile/guile-internal.h: Use C++ exception handling.
2434 * gnu-v3-abi.c: Use C++ exception handling.
2435 * gdbtypes.c: Use C++ exception handling.
2436 * frame.c: Use C++ exception handling.
2437 * frame-unwind.c: Use C++ exception handling.
2438 * fbsd-tdep.c: Use C++ exception handling.
2439 * f-valprint.c: Use C++ exception handling.
2440 * exec.c: Use C++ exception handling.
2441 * event-top.c: Use C++ exception handling.
2442 * event-loop.c: Use C++ exception handling.
2443 * eval.c: Use C++ exception handling.
2444 * dwarf2read.c: Use C++ exception handling.
2445 * dwarf2loc.c: Use C++ exception handling.
2446 * dwarf2-frame.c: Use C++ exception handling.
2447 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2448 * dwarf-index-write.c: Use C++ exception handling.
2449 * dwarf-index-cache.c: Use C++ exception handling.
2450 * dtrace-probe.c: Use C++ exception handling.
2451 * disasm-selftests.c: Use C++ exception handling.
2452 * darwin-nat.c: Use C++ exception handling.
2453 * cp-valprint.c: Use C++ exception handling.
2454 * cp-support.c: Use C++ exception handling.
2455 * cp-abi.c: Use C++ exception handling.
2456 * corelow.c: Use C++ exception handling.
2457 * completer.c: Use C++ exception handling.
2458 * compile/compile-object-run.c: Use C++ exception handling.
2459 * compile/compile-object-load.c: Use C++ exception handling.
2460 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2461 * compile/compile-c-symbols.c: Use C++ exception handling.
2462 * common/selftest.c: Use C++ exception handling.
2463 * common/new-op.c: Use C++ exception handling.
2464 * cli/cli-script.c: Use C++ exception handling.
2465 * cli/cli-interp.c: Use C++ exception handling.
2466 * cli/cli-cmds.c: Use C++ exception handling.
2467 * c-varobj.c: Use C++ exception handling.
2468 * btrace.c: Use C++ exception handling.
2469 * breakpoint.c: Use C++ exception handling.
2470 * break-catch-throw.c: Use C++ exception handling.
2471 * arch-utils.c: Use C++ exception handling.
2472 * amd64-tdep.c: Use C++ exception handling.
2473 * ada-valprint.c: Use C++ exception handling.
2474 * ada-typeprint.c: Use C++ exception handling.
2475 * ada-lang.c: Use C++ exception handling.
2476 * aarch64-tdep.c: Use C++ exception handling.
2478 2019-04-08 Tom Tromey <tom@tromey.com>
2480 * xml-support.c (gdb_xml_parser::parse): Update.
2481 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2482 * value.c (show_convenience): Update.
2483 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2484 (test_parse_flags_qcs): Update.
2485 * thread.c (thr_try_catch_cmd): Update.
2486 * target.c (target_translate_tls_address): Update.
2487 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2488 (info_frame_command_core, frame_apply_command_count): Update.
2489 * rust-exp.y (rust_lex_exception_test): Update.
2490 * riscv-tdep.c (riscv_print_one_register_info): Update.
2491 * remote.c (remote_target::enable_btrace): Update.
2492 * record-btrace.c (record_btrace_enable_warn): Update.
2493 * python/py-utils.c (gdbpy_convert_exception): Update.
2494 * printcmd.c (do_one_display, print_variable_and_value): Update.
2495 * mi/mi-main.c (mi_print_exception): Update.
2496 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2497 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2498 * linux-nat.c (linux_nat_target::attach): Update.
2499 * linux-fork.c (class scoped_switch_fork_info): Update.
2500 * infrun.c (displaced_step_prepare): Update.
2501 * infcall.c (call_function_by_hand_dummy): Update.
2502 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2503 * gnu-v3-abi.c (print_one_vtable): Update.
2504 * frame.c (get_prev_frame_always): Update.
2505 * f-valprint.c (info_common_command_for_block): Update.
2506 * exec.c (try_open_exec_file): Update.
2507 * exceptions.c (print_exception, exception_print)
2508 (exception_fprintf, exception_print_same): Update.
2509 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2510 * dwarf-index-cache.c (index_cache::store)
2511 (index_cache::lookup_gdb_index): Update.
2512 * darwin-nat.c (maybe_cache_shell): Update.
2513 * cp-valprint.c (cp_print_value_fields): Update.
2514 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2515 (gcc_cplus_symbol_address): Update.
2516 * compile/compile-c-symbols.c (gcc_convert_symbol)
2517 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2518 * common/selftest.c: Update.
2519 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2521 (exception_try_scope_entry, exception_try_scope_exit): Don't
2523 (struct exception_try_scope): Remove.
2524 (TRY): Don't use exception_try_scope.
2525 (struct gdb_exception): Add constructor, operator=.
2527 (struct gdb_exception_RETURN_MASK_ALL)
2528 (struct gdb_exception_RETURN_MASK_ERROR)
2529 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2530 (struct gdb_quit_bad_alloc): Update.
2531 * common/common-exceptions.c (exception_none): Change
2533 (struct catcher) <state, exception>: Initialize inline.
2534 <prev>: Remove member.
2535 (current_catcher): Remove.
2536 (catchers): New global.
2537 (exceptions_state_mc_init): Simplify.
2538 (catcher_pop): Remove.
2539 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2540 (try_scope_depth, exception_try_scope_entry)
2541 (exception_try_scope_exit): Remove.
2542 (throw_exception_sjlj): Update.
2543 (exception_messages, exception_messages_size): Remove.
2544 (throw_it): Simplify.
2545 (gdb_exception_sliced_copy): Remove.
2546 (throw_exception_cxx): Update.
2547 * cli/cli-script.c (script_from_file): Update.
2548 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2550 * ada-valprint.c (ada_val_print): Update.
2551 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2552 (create_excep_cond_exprs): Update.
2554 2019-04-08 Tom Tromey <tom@tromey.com>
2556 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2557 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2558 (TRY, CATCH, END_CATCH): Remove some definitions.
2559 * common/common-exceptions.c: Don't use GDB_XCPT.
2560 (catcher_list_size): Remove.
2561 (throw_exception, throw_it): Simplify.
2563 2019-04-05 Tom Tromey <tom@tromey.com>
2565 Revert the header-sorting patch.
2566 * ft32-tdep.c: Revert.
2567 * frv-tdep.c: Revert.
2568 * frv-linux-tdep.c: Revert.
2570 * frame-unwind.c: Revert.
2571 * frame-base.c: Revert.
2572 * fork-child.c: Revert.
2573 * findvar.c: Revert.
2574 * findcmd.c: Revert.
2575 * filesystem.c: Revert.
2576 * filename-seen-cache.h: Revert.
2577 * filename-seen-cache.c: Revert.
2578 * fbsd-tdep.c: Revert.
2579 * fbsd-nat.h: Revert.
2580 * fbsd-nat.c: Revert.
2581 * f-valprint.c: Revert.
2582 * f-typeprint.c: Revert.
2584 * extension.h: Revert.
2585 * extension.c: Revert.
2586 * extension-priv.h: Revert.
2587 * expprint.c: Revert.
2590 * exceptions.c: Revert.
2591 * event-top.c: Revert.
2592 * event-loop.c: Revert.
2594 * elfread.c: Revert.
2595 * dwarf2read.h: Revert.
2596 * dwarf2read.c: Revert.
2597 * dwarf2loc.c: Revert.
2598 * dwarf2expr.h: Revert.
2599 * dwarf2expr.c: Revert.
2600 * dwarf2-frame.c: Revert.
2601 * dwarf2-frame-tailcall.c: Revert.
2602 * dwarf-index-write.h: Revert.
2603 * dwarf-index-write.c: Revert.
2604 * dwarf-index-common.c: Revert.
2605 * dwarf-index-cache.h: Revert.
2606 * dwarf-index-cache.c: Revert.
2607 * dummy-frame.c: Revert.
2608 * dtrace-probe.c: Revert.
2611 * disasm-selftests.c: Revert.
2612 * dictionary.c: Revert.
2613 * dicos-tdep.c: Revert.
2614 * demangle.c: Revert.
2617 * darwin-nat.h: Revert.
2618 * darwin-nat.c: Revert.
2619 * darwin-nat-info.c: Revert.
2620 * d-valprint.c: Revert.
2621 * d-namespace.c: Revert.
2624 * csky-tdep.c: Revert.
2625 * csky-linux-tdep.c: Revert.
2626 * cris-tdep.c: Revert.
2627 * cris-linux-tdep.c: Revert.
2628 * cp-valprint.c: Revert.
2629 * cp-support.c: Revert.
2630 * cp-namespace.c: Revert.
2632 * corelow.c: Revert.
2633 * corefile.c: Revert.
2634 * continuations.c: Revert.
2635 * completer.h: Revert.
2636 * completer.c: Revert.
2637 * complaints.c: Revert.
2638 * coffread.c: Revert.
2639 * coff-pe-read.c: Revert.
2640 * cli-out.h: Revert.
2641 * cli-out.c: Revert.
2642 * charset.c: Revert.
2643 * c-varobj.c: Revert.
2644 * c-valprint.c: Revert.
2645 * c-typeprint.c: Revert.
2647 * buildsym.c: Revert.
2648 * buildsym-legacy.c: Revert.
2649 * build-id.h: Revert.
2650 * build-id.c: Revert.
2652 * bsd-uthread.c: Revert.
2653 * breakpoint.h: Revert.
2654 * breakpoint.c: Revert.
2655 * break-catch-throw.c: Revert.
2656 * break-catch-syscall.c: Revert.
2657 * break-catch-sig.c: Revert.
2658 * blockframe.c: Revert.
2660 * bfin-tdep.c: Revert.
2661 * bfin-linux-tdep.c: Revert.
2662 * bfd-target.c: Revert.
2664 * ax-general.c: Revert.
2667 * avr-tdep.c: Revert.
2669 * auto-load.c: Revert.
2670 * arm-wince-tdep.c: Revert.
2671 * arm-tdep.c: Revert.
2672 * arm-symbian-tdep.c: Revert.
2673 * arm-pikeos-tdep.c: Revert.
2674 * arm-obsd-tdep.c: Revert.
2675 * arm-nbsd-tdep.c: Revert.
2676 * arm-nbsd-nat.c: Revert.
2677 * arm-linux-tdep.c: Revert.
2678 * arm-linux-nat.c: Revert.
2679 * arm-fbsd-tdep.c: Revert.
2680 * arm-fbsd-nat.c: Revert.
2681 * arm-bsd-tdep.c: Revert.
2682 * arch-utils.c: Revert.
2683 * arc-tdep.c: Revert.
2684 * arc-newlib-tdep.c: Revert.
2685 * annotate.h: Revert.
2686 * annotate.c: Revert.
2687 * amd64-windows-tdep.c: Revert.
2688 * amd64-windows-nat.c: Revert.
2689 * amd64-tdep.c: Revert.
2690 * amd64-sol2-tdep.c: Revert.
2691 * amd64-obsd-tdep.c: Revert.
2692 * amd64-obsd-nat.c: Revert.
2693 * amd64-nbsd-tdep.c: Revert.
2694 * amd64-nbsd-nat.c: Revert.
2695 * amd64-nat.c: Revert.
2696 * amd64-linux-tdep.c: Revert.
2697 * amd64-linux-nat.c: Revert.
2698 * amd64-fbsd-tdep.c: Revert.
2699 * amd64-fbsd-nat.c: Revert.
2700 * amd64-dicos-tdep.c: Revert.
2701 * amd64-darwin-tdep.c: Revert.
2702 * amd64-bsd-nat.c: Revert.
2703 * alpha-tdep.c: Revert.
2704 * alpha-obsd-tdep.c: Revert.
2705 * alpha-nbsd-tdep.c: Revert.
2706 * alpha-mdebug-tdep.c: Revert.
2707 * alpha-linux-tdep.c: Revert.
2708 * alpha-linux-nat.c: Revert.
2709 * alpha-bsd-tdep.c: Revert.
2710 * alpha-bsd-nat.c: Revert.
2711 * aix-thread.c: Revert.
2713 * addrmap.c: Revert.
2714 * ada-varobj.c: Revert.
2715 * ada-valprint.c: Revert.
2716 * ada-typeprint.c: Revert.
2717 * ada-tasks.c: Revert.
2718 * ada-lang.c: Revert.
2719 * aarch64-tdep.c: Revert.
2720 * aarch64-ravenscar-thread.c: Revert.
2721 * aarch64-newlib-tdep.c: Revert.
2722 * aarch64-linux-tdep.c: Revert.
2723 * aarch64-linux-nat.c: Revert.
2724 * aarch64-fbsd-tdep.c: Revert.
2725 * aarch64-fbsd-nat.c: Revert.
2726 * aarch32-linux-nat.c: Revert.
2728 2019-04-05 Tom Tromey <tom@tromey.com>
2730 * ft32-tdep.c: Sort headers.
2731 * frv-tdep.c: Sort headers.
2732 * frv-linux-tdep.c: Sort headers.
2733 * frame.c: Sort headers.
2734 * frame-unwind.c: Sort headers.
2735 * frame-base.c: Sort headers.
2736 * fork-child.c: Sort headers.
2737 * findvar.c: Sort headers.
2738 * findcmd.c: Sort headers.
2739 * filesystem.c: Sort headers.
2740 * filename-seen-cache.h: Sort headers.
2741 * filename-seen-cache.c: Sort headers.
2742 * fbsd-tdep.c: Sort headers.
2743 * fbsd-nat.h: Sort headers.
2744 * fbsd-nat.c: Sort headers.
2745 * f-valprint.c: Sort headers.
2746 * f-typeprint.c: Sort headers.
2747 * f-lang.c: Sort headers.
2748 * extension.h: Sort headers.
2749 * extension.c: Sort headers.
2750 * extension-priv.h: Sort headers.
2751 * expprint.c: Sort headers.
2752 * exec.h: Sort headers.
2753 * exec.c: Sort headers.
2754 * exceptions.c: Sort headers.
2755 * event-top.c: Sort headers.
2756 * event-loop.c: Sort headers.
2757 * eval.c: Sort headers.
2758 * elfread.c: Sort headers.
2759 * dwarf2read.h: Sort headers.
2760 * dwarf2read.c: Sort headers.
2761 * dwarf2loc.c: Sort headers.
2762 * dwarf2expr.h: Sort headers.
2763 * dwarf2expr.c: Sort headers.
2764 * dwarf2-frame.c: Sort headers.
2765 * dwarf2-frame-tailcall.c: Sort headers.
2766 * dwarf-index-write.h: Sort headers.
2767 * dwarf-index-write.c: Sort headers.
2768 * dwarf-index-common.c: Sort headers.
2769 * dwarf-index-cache.h: Sort headers.
2770 * dwarf-index-cache.c: Sort headers.
2771 * dummy-frame.c: Sort headers.
2772 * dtrace-probe.c: Sort headers.
2773 * disasm.h: Sort headers.
2774 * disasm.c: Sort headers.
2775 * disasm-selftests.c: Sort headers.
2776 * dictionary.c: Sort headers.
2777 * dicos-tdep.c: Sort headers.
2778 * demangle.c: Sort headers.
2779 * dcache.h: Sort headers.
2780 * dcache.c: Sort headers.
2781 * darwin-nat.h: Sort headers.
2782 * darwin-nat.c: Sort headers.
2783 * darwin-nat-info.c: Sort headers.
2784 * d-valprint.c: Sort headers.
2785 * d-namespace.c: Sort headers.
2786 * d-lang.c: Sort headers.
2787 * ctf.c: Sort headers.
2788 * csky-tdep.c: Sort headers.
2789 * csky-linux-tdep.c: Sort headers.
2790 * cris-tdep.c: Sort headers.
2791 * cris-linux-tdep.c: Sort headers.
2792 * cp-valprint.c: Sort headers.
2793 * cp-support.c: Sort headers.
2794 * cp-namespace.c: Sort headers.
2795 * cp-abi.c: Sort headers.
2796 * corelow.c: Sort headers.
2797 * corefile.c: Sort headers.
2798 * continuations.c: Sort headers.
2799 * completer.h: Sort headers.
2800 * completer.c: Sort headers.
2801 * complaints.c: Sort headers.
2802 * coffread.c: Sort headers.
2803 * coff-pe-read.c: Sort headers.
2804 * cli-out.h: Sort headers.
2805 * cli-out.c: Sort headers.
2806 * charset.c: Sort headers.
2807 * c-varobj.c: Sort headers.
2808 * c-valprint.c: Sort headers.
2809 * c-typeprint.c: Sort headers.
2810 * c-lang.c: Sort headers.
2811 * buildsym.c: Sort headers.
2812 * buildsym-legacy.c: Sort headers.
2813 * build-id.h: Sort headers.
2814 * build-id.c: Sort headers.
2815 * btrace.c: Sort headers.
2816 * bsd-uthread.c: Sort headers.
2817 * breakpoint.h: Sort headers.
2818 * breakpoint.c: Sort headers.
2819 * break-catch-throw.c: Sort headers.
2820 * break-catch-syscall.c: Sort headers.
2821 * break-catch-sig.c: Sort headers.
2822 * blockframe.c: Sort headers.
2823 * block.c: Sort headers.
2824 * bfin-tdep.c: Sort headers.
2825 * bfin-linux-tdep.c: Sort headers.
2826 * bfd-target.c: Sort headers.
2827 * bcache.c: Sort headers.
2828 * ax-general.c: Sort headers.
2829 * ax-gdb.h: Sort headers.
2830 * ax-gdb.c: Sort headers.
2831 * avr-tdep.c: Sort headers.
2832 * auxv.c: Sort headers.
2833 * auto-load.c: Sort headers.
2834 * arm-wince-tdep.c: Sort headers.
2835 * arm-tdep.c: Sort headers.
2836 * arm-symbian-tdep.c: Sort headers.
2837 * arm-pikeos-tdep.c: Sort headers.
2838 * arm-obsd-tdep.c: Sort headers.
2839 * arm-nbsd-tdep.c: Sort headers.
2840 * arm-nbsd-nat.c: Sort headers.
2841 * arm-linux-tdep.c: Sort headers.
2842 * arm-linux-nat.c: Sort headers.
2843 * arm-fbsd-tdep.c: Sort headers.
2844 * arm-fbsd-nat.c: Sort headers.
2845 * arm-bsd-tdep.c: Sort headers.
2846 * arch-utils.c: Sort headers.
2847 * arc-tdep.c: Sort headers.
2848 * arc-newlib-tdep.c: Sort headers.
2849 * annotate.h: Sort headers.
2850 * annotate.c: Sort headers.
2851 * amd64-windows-tdep.c: Sort headers.
2852 * amd64-windows-nat.c: Sort headers.
2853 * amd64-tdep.c: Sort headers.
2854 * amd64-sol2-tdep.c: Sort headers.
2855 * amd64-obsd-tdep.c: Sort headers.
2856 * amd64-obsd-nat.c: Sort headers.
2857 * amd64-nbsd-tdep.c: Sort headers.
2858 * amd64-nbsd-nat.c: Sort headers.
2859 * amd64-nat.c: Sort headers.
2860 * amd64-linux-tdep.c: Sort headers.
2861 * amd64-linux-nat.c: Sort headers.
2862 * amd64-fbsd-tdep.c: Sort headers.
2863 * amd64-fbsd-nat.c: Sort headers.
2864 * amd64-dicos-tdep.c: Sort headers.
2865 * amd64-darwin-tdep.c: Sort headers.
2866 * amd64-bsd-nat.c: Sort headers.
2867 * alpha-tdep.c: Sort headers.
2868 * alpha-obsd-tdep.c: Sort headers.
2869 * alpha-nbsd-tdep.c: Sort headers.
2870 * alpha-mdebug-tdep.c: Sort headers.
2871 * alpha-linux-tdep.c: Sort headers.
2872 * alpha-linux-nat.c: Sort headers.
2873 * alpha-bsd-tdep.c: Sort headers.
2874 * alpha-bsd-nat.c: Sort headers.
2875 * aix-thread.c: Sort headers.
2876 * agent.c: Sort headers.
2877 * addrmap.c: Sort headers.
2878 * ada-varobj.c: Sort headers.
2879 * ada-valprint.c: Sort headers.
2880 * ada-typeprint.c: Sort headers.
2881 * ada-tasks.c: Sort headers.
2882 * ada-lang.c: Sort headers.
2883 * aarch64-tdep.c: Sort headers.
2884 * aarch64-ravenscar-thread.c: Sort headers.
2885 * aarch64-newlib-tdep.c: Sort headers.
2886 * aarch64-linux-tdep.c: Sort headers.
2887 * aarch64-linux-nat.c: Sort headers.
2888 * aarch64-fbsd-tdep.c: Sort headers.
2889 * aarch64-fbsd-nat.c: Sort headers.
2890 * aarch32-linux-nat.c: Sort headers.
2892 2019-04-04 Tom Tromey <tom@tromey.com>
2894 * varobj.c (varobj_create): Update.
2895 * rust-exp.y (struct rust_parser) <update_innermost_block,
2896 lookup_symbol>: New methods.
2897 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2899 (rust_parser::rust_lookup_type)
2900 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2901 * printcmd.c (display_command, do_one_display): Update.
2902 * parser-defs.h (struct parser_state) <parser_state>: Add
2903 "tracker" parameter.
2904 (block_tracker): New member.
2905 (class innermost_block_tracker) <innermost_block_tracker>: Add
2907 <reset>: Remove method.
2908 (innermost_block): Don't declare.
2909 (null_post_parser): Update.
2910 * parse.c (innermost_block): Remove global.
2911 (write_dollar_variable): Update.
2912 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2913 Remove "tracker_types" parameter.
2914 (parse_expression): Add "tracker" parameter.
2915 (parse_expression_for_completion): Update.
2916 (null_post_parser): Add "tracker" parameter.
2917 * p-exp.y: Update rules.
2918 * m2-exp.y: Update rules.
2919 * language.h (struct language_defn) <la_post_parser>: Add
2920 "tracker" parameter.
2921 * go-exp.y: Update rules.
2922 * f-exp.y: Update rules.
2923 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2925 * d-exp.y: Update rules.
2926 * c-exp.y: Update rules.
2927 * breakpoint.c (set_breakpoint_condition): Create an
2928 innermost_block_tracker.
2929 (watch_command_1): Likewise.
2930 * ada-lang.c (resolve): Add "tracker" parameter.
2931 (resolve_subexp): Likewise.
2932 * ada-exp.y (write_var_from_sym): Update.
2934 2019-04-04 Tom Tromey <tom@tromey.com>
2936 * type-stack.h: New file.
2937 * type-stack.c: New file.
2938 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2940 (insert_into_type_stack, insert_type, push_type, push_type_int)
2941 (insert_type_address_space, pop_type, pop_type_int)
2942 (pop_typelist, pop_type_stack, append_type_stack)
2943 (push_type_stack, get_type_stack, push_typelist)
2944 (follow_type_instance_flags, follow_types): Don't declare.
2945 * parse.c (type_stack): Remove global.
2946 (parse_exp_in_context): Update.
2947 (insert_into_type_stack, insert_type, push_type, push_type_int)
2948 (insert_type_address_space, pop_type, pop_type_int)
2949 (pop_typelist, pop_type_stack, append_type_stack)
2950 (push_type_stack, get_type_stack, push_typelist)
2951 (follow_type_instance_flags, follow_types): Remove (moved to
2953 * f-exp.y (type_stack): New global.
2955 (push_kind_type, f_parse): Update.
2956 * d-exp.y (type_stack): New global.
2959 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2961 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2962 (HFILES_NO_SRCDIR): Add type-stack.h.
2964 2019-04-04 Tom Tromey <tom@tromey.com>
2966 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2967 (rust_parser::convert_ast_to_expression, rust_parse)
2968 (rust_lex_test_completion, rust_lex_tests): Update.
2969 * parser-defs.h (struct expr_completion_state): New.
2970 (struct parser_state) <parser_state>: Add completion parameter.
2971 <mark_struct_expression, mark_completion_tag>: New methods.
2972 <parse_completion, m_completion_state>: New members.
2973 (prefixify_expression, null_post_parser): Update.
2974 (mark_struct_expression, mark_completion_tag): Don't declare.
2975 * parse.c (parse_completion, expout_last_struct)
2976 (expout_tag_completion_type, expout_completion_name): Remove
2978 (parser_state::mark_struct_expression)
2979 (parser_state::mark_completion_tag): Now methods.
2980 (prefixify_expression): Add last_struct parameter.
2981 (prefixify_subexp): Likewise.
2982 (parse_exp_1): Update.
2983 (parse_exp_in_context): Add cstate parameter. Update.
2984 (parse_expression_for_completion): Create an
2985 expr_completion_state.
2986 (null_post_parser): Add "completion" parameter.
2987 * p-exp.y: Update rules.
2989 * language.h (struct language_defn) <la_post_parser>: Add
2990 "completing" parameter.
2991 * go-exp.y: Update rules.
2992 (lex_one_token): Update.
2993 * expression.h (parse_completion): Don't declare.
2994 * d-exp.y: Update rules.
2995 (lex_one_token): Update rules.
2996 * c-exp.y: Update rules.
2997 (lex_one_token): Update.
2998 * ada-lang.c (resolve): Add "parse_completion" parameter.
2999 (resolve_subexp): Likewise.
3000 (ada_resolve_function): Likewise.
3002 2019-04-04 Tom Tromey <tom@tromey.com>
3004 * parser-defs.h (struct parser_state) <start_arglist,
3005 end_arglist>: New methods.
3006 <arglist_len, m_funcall_chain>: New members.
3007 (arglist_len, start_arglist, end_arglist): Don't declare.
3008 * parse.c (arglist_len, funcall_chain): Remove global.
3009 (start_arglist, end_arglist): Remove functions.
3010 (parse_exp_in_context): Update.
3011 * p-exp.y: Update rules.
3012 * m2-exp.y: Update rules.
3013 * go-exp.y: Update rules.
3014 * f-exp.y: Update rules.
3015 * d-exp.y: Update rules.
3016 * c-exp.y: Update rules.
3018 2019-04-04 Tom Tromey <tom@tromey.com>
3020 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3021 lex_operator, push_back>: New methods.
3023 (rust_parser::lex_hex, lex_escape): Rename and update.
3024 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3025 (rust_parser::lex_operator): Rename and update.
3026 (rust_parser::lex_number, rustyylex, rustyyerror)
3027 (rust_lex_test_init, rust_lex_test_sequence)
3028 (rust_lex_test_push_back, rust_lex_tests): Update.
3029 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3031 <lexptr, prev_lexptr>: New members.
3032 (lexptr, prev_lexptr): Don't declare.
3033 * parse.c (lexptr, prev_lexptr): Remove globals.
3034 (parse_exp_in_context): Update.
3035 * p-exp.y (yylex, yyerror): Update.
3036 * m2-exp.y (parse_number, yylex, yyerror): Update.
3037 * go-exp.y (lex_one_token, yyerror): Update.
3038 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3039 * d-exp.y (lex_one_token, yyerror): Update.
3040 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3041 (lex_one_token, yyerror): Update.
3042 * ada-lex.l (YY_INPUT): Update.
3043 (rewind_to_char): Update.
3044 * ada-exp.y (yyerror): Update.
3046 2019-04-04 Tom Tromey <tom@tromey.com>
3048 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3049 * parser-defs.h (struct parser_state) <parser_state>: Add new
3051 <comma_terminates>: New member.
3052 (comma_terminates): Don't declare global.
3053 * parse.c (comma_terminates): Remove global.
3054 (parse_exp_in_context): Update.
3055 * p-exp.y (yylex): Update.
3056 * m2-exp.y (yylex): Update.
3057 * go-exp.y (lex_one_token): Update.
3058 * f-exp.y (yylex): Update.
3059 * d-exp.y (lex_one_token): Update.
3060 * c-exp.y (lex_one_token): Update.
3061 * ada-lex.l: Update.
3063 2019-04-04 Tom Tromey <tom@tromey.com>
3065 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3066 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3067 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3068 * parser-defs.h (paren_depth): Don't declare.
3069 * parse.c (paren_depth): Remove global.
3070 (parse_exp_in_context): Update.
3071 * p-exp.y (paren_depth): New global.
3072 (pascal_parse): Initialize it.
3073 * m2-exp.y (paren_depth): New global.
3074 (m2_parse): Initialize it.
3075 * go-exp.y (paren_depth): New global.
3076 (go_parse): Initialize it.
3077 * f-exp.y (paren_depth): New global.
3078 (f_parse): Initialize it.
3079 * d-exp.y (paren_depth): New global.
3080 (d_parse): Initialize it.
3081 * c-exp.y (paren_depth): New global.
3082 (c_parse): Initialize it.
3083 * ada-lex.l (paren_depth): New global.
3084 (lexer_init): Initialize it.
3086 2019-04-04 Tom Tromey <tom@tromey.com>
3088 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3089 (rust_parser::convert_ast_to_type)
3090 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3091 * parser-defs.h (struct parser_state) <parser_state>: Add
3092 parameters. Initialize new members.
3093 <expression_context_block, expression_context_pc>: New members.
3094 * parse.c (expression_context_block, expression_context_pc):
3096 (parse_exp_in_context): Update.
3097 * p-exp.y: Update all rules.
3099 * m2-exp.y: Update all rules.
3101 * go-exp.y (yylex): Update.
3102 * f-exp.y (yylex): Update.
3103 * d-exp.y: Update all rules.
3105 * c-exp.y: Update all rules.
3106 (lex_one_token, classify_name, yylex, c_parse): Update.
3107 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3109 2019-04-04 Tom Tromey <tom@tromey.com>
3111 * gdbarch.h, gdbarch.c: Rebuild.
3112 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3114 (struct stap_parse_info): Replace "parser_state" with
3116 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3117 (parser_state): New class.
3118 * parse.c (expr_builder): Rename.
3119 (expr_builder::release): Rename.
3120 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3121 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3122 (write_exp_elt_longcst, write_exp_elt_floatcst)
3123 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3124 (write_exp_string_vector, write_exp_bitstring)
3125 (write_exp_msymbol, mark_struct_expression)
3126 (write_dollar_variable)
3127 (insert_type_address_space, increase_expout_size): Replace
3128 "parser_state" with "expr_builder".
3129 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3130 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3131 "parser_state" with "expr_builder".
3133 2019-04-04 Tom Tromey <tom@tromey.com>
3135 * rust-exp.y: Replace "parse_language" with method call.
3137 (yylex): Replace "parse_language" with method call.
3139 (yylex): Replace "parse_language" with method call.
3140 * go-exp.y (classify_name): Replace "parse_language" with method
3142 * f-exp.y (yylex): Replace "parse_language" with method call.
3143 * d-exp.y (lex_one_token): Replace "parse_language" with method
3146 (lex_one_token, classify_name, yylex): Replace "parse_language"
3148 * ada-exp.y (find_primitive_type, type_char)
3149 (type_system_address): Replace "parse_language" with method call.
3151 2019-04-04 Tom Tromey <tom@tromey.com>
3153 * rust-exp.y: Replace "parse_gdbarch" with method call.
3154 * parse.c (write_dollar_variable, insert_type_address_space):
3155 Replace "parse_gdbarch" with method call.
3156 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3158 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3160 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3161 "parse_gdbarch" with method call.
3162 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3164 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3165 "parse_gdbarch" with method call.
3166 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3167 "parse_gdbarch" with method call.
3168 * c-exp.y (parse_type, parse_number, classify_name): Replace
3169 "parse_gdbarch" with method call.
3170 * ada-lex.l: Replace "parse_gdbarch" with method call.
3171 * ada-exp.y (parse_type, find_primitive_type, type_char)
3172 (type_system_address): Replace "parse_gdbarch" with method call.
3174 2019-04-04 Tom Tromey <tom@tromey.com>
3176 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3177 * stap-probe.c (stap_parse_argument): Update.
3178 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3179 initial_size parameter.
3180 * rust-exp.y (rust_lex_tests): Update.
3181 * parse.c (parser_state): Update.
3182 (parse_exp_in_context): Update.
3183 * parser-defs.h (struct parser_state) <parser_state>: Remove
3184 "initial_size" parameter.
3186 2019-04-04 Tom Tromey <tom@tromey.com>
3188 * parser-defs.h (increase_expout_size): Don't declare.
3189 * parse.c (increase_expout_size): Now static.
3191 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3193 * gnu-nat.c (gnu_nat_target::wait): Fix
3194 target_waitstatus_to_string call.
3196 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3198 * eval.c (evaluate_subexp_standard): Handle internal functions
3199 during Fortran function call handling.
3201 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3203 * NEWS: Mention new internal functions.
3204 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3205 (read_base_type): Use dwarf2_init_complex_target_type.
3206 * value.c (creal_internal_fn): New function.
3207 (cimag_internal_fn): New function.
3208 (_initialize_values): Register new internal functions.
3210 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3212 * infrun.c (stop_all_threads): If debug_infrun, always
3213 trace the wait status after wait_one, using
3214 target_waitstatus_to_string and target_pid_to_str.
3215 (handle_inferior_event): Replace various trace of
3216 wait status kind by a single trace.
3217 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3218 wait status kind image by target_waitstatus_to_string.
3219 * target/waitstatus.c (target_waitstatus_to_string): Fix
3222 2019-04-01 Tom Tromey <tromey@adacore.com>
3225 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3227 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3228 Pedro Alves <palves@redhat.com>
3230 * top.c (quit_force): Call 'finalize_values'.
3231 * value.c (finalize_values): New function.
3232 * value.h (finalize_values): Declare.
3234 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3236 * NEWS: Announce $_gdb_major and $_gdb_minor.
3238 * top.c (init_gdb_version_vars): New function.
3239 (gdb_init): Call init_gdb_version_vars.
3241 2019-03-29 Tom Tromey <tromey@adacore.com>
3243 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3244 help text. Remove dead code.
3246 2019-03-29 Keith Seitz <keiths@redhat.com>
3248 From Siddhesh Poyarekar:
3249 * f-lang.h (f77_get_upperbound): Return LONGEST.
3250 (f77_get_lowerbound): Likewise.
3251 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3252 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3254 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3255 plongest to format print it.
3256 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3257 (f77_get_upperbound): Likewise.
3258 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3259 LOWER_BOUND to LONGEST.
3260 (f77_create_arrayprint_offset_tbl): Likewise.
3262 2019-03-29 Keith Seitz <keiths@redhat.com>
3264 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3265 %s/pulongest for TYPE_LENGTH instead of %d in format
3267 * ada-typerint.c (ada_print_type): Likewise.
3268 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3269 * compile/compile-c-support.c (generate_register_struct): Likewise.
3270 * gdbtypes.c (recursive_dump_type): Likewise.
3271 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3272 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3273 instead of %d in format strings.
3274 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3275 to std::min to ULONGEST.
3276 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3277 instead of %d in format strings.
3278 * tracepoint.c (info_scope_command): Likewise.
3279 * typeprint.c (print_offset_data::update)
3280 (print_offset_data::finish): Likewise.
3281 * xtensa-tdep.c (xtensa_store_return_value)
3282 (xtensa_push_dummy_call): Likewise.
3284 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3286 * windows-nat.c (display_selector): Fixed format specifications
3289 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3291 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3293 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3295 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3296 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3297 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3298 (nios2_linux_init_abi): Install it.
3300 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3302 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3304 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3306 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3308 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3309 Tom Tromey <tromey@adacore.com>
3311 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3313 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3315 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3316 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3317 method to compute the bounds of range types. Also print "[evaluated]"
3318 if the bounds' values come from a dynamic evaluation.
3320 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3322 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3323 whitespace when pretty printing is on.
3325 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3327 * ppc-linux-nat.c: Add include.
3329 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3331 * NEWS: Mention AArch64 Pointer Authentication.
3333 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3335 * arm-linux-nat.c: Add include.
3337 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3339 * source-cache.c (source_cache::get_source_lines): Re-read
3340 fullname after calling open_source_file.
3342 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3344 * NEWS: Mention TLS support for FreeBSD.
3346 2019-03-25 Tom Tromey <tromey@adacore.com>
3348 * minsyms.c (BUNCH_SIZE): Update comment.
3349 (~minimal_symbol_reader): Remove old comment.
3350 (compact_minimal_symbols): Update comment.
3351 (minimal_symbol_reader::install): Remove old comment. Update
3354 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3356 * s390-linux-nat.c: Add include.
3358 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3360 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3361 Call linux_get_hwcap.
3362 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3364 (aarch64_linux_get_hwcap): Remove function.
3365 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3367 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3369 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3370 * linux-tdep.c (linux_get_hwcap): Add function.
3371 (linux_get_hwcap2): Likewise.
3372 * linux-tdep.h (linux_get_hwcap): Add declaration.
3373 (linux_get_hwcap2): Likewise.
3374 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3375 (ppc_linux_get_hwcap2): Likewise.
3376 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3378 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3379 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3380 (ppc_linux_nat_target::read_description): Likewise.
3381 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3382 * s390-linux-nat.c: Likewise.
3383 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3385 2019-03-24 Tom Tromey <tom@tromey.com>
3387 * ada-lang.c (standard_lookup): Simplify initialization.
3388 (ada_lookup_symbol_nonlocal): Simplify return.
3389 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3390 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3391 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3392 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3394 * solib.c (solib_global_lookup): Simplify.
3395 * symtab.c (null_block_symbol): Remove.
3396 (symbol_cache_lookup): Simplify returns.
3397 (lookup_language_this): Simplify returns.
3398 (lookup_symbol_aux): Simplify return.
3399 (lookup_local_symbol): Simplify returns.
3400 (lookup_global_symbol_from_objfile): Simplify return.
3401 (lookup_symbol_in_objfile_symtabs)
3402 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3403 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3404 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3405 * cp-namespace.c (cp_lookup_bare_symbol)
3406 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3407 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3408 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3409 (cp_lookup_symbol_via_imports): Simplify initialization.
3410 (find_symbol_in_baseclass): Likewise.
3411 * symtab.h (null_block_symbol): Remove.
3412 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3413 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3414 (d_lookup_symbol_module): Likewise.
3415 (find_symbol_in_baseclass): Simplify initialization.
3417 2019-03-24 Tom Tromey <tom@tromey.com>
3419 * expression.h: Don't include symtab.h.
3420 (struct block): Forward declare.
3422 2019-03-24 Tom Tromey <tom@tromey.com>
3424 * c-exp.y (typebase): Remove casts.
3425 * gdbtypes.c (lookup_unsigned_typename, )
3426 (lookup_signed_typename): Remove cast.
3427 * eval.c (parse_to_comma_and_eval): Remove cast.
3428 * parse.c (write_dollar_variable): Remove cast.
3429 * block.h (struct block) <superblock>: Now const.
3430 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3431 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3432 (map_block): Make "block" const.
3433 * symfile.h (struct quick_symbol_functions)
3434 <map_matching_symbols>: Constify block argument to "callback".
3435 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3437 (find_pc_sect_compunit_symtab): Make "b" const.
3438 (find_symbol_at_address): Likewise.
3439 (search_symbols): Likewise.
3440 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3441 (dw2_debug_names_lookup_symbol): Likewise.
3442 (dw2_map_matching_symbols): Update.
3443 * p-valprint.c (pascal_val_print): Remove "block".
3444 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3445 (aux_add_nonlocal_symbols): Make "block" const.
3446 (resolve_subexp): Remove cast.
3447 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3449 (iterate_over_file_blocks): Likewise.
3450 * f-exp.y (%union) <bval>: Remove.
3451 * coffread.c (patch_opaque_types): Make "b" const.
3452 * spu-tdep.c (spu_catch_start): Make "block" const.
3453 * c-valprint.c (print_unpacked_pointer): Remove "block".
3454 * symmisc.c (dump_symtab_1): Make "b" const.
3455 (block_depth): Make "block" const.
3456 * d-exp.y (%union) <bval>: Remove.
3457 * cp-support.h (cp_lookup_rtti_type): Update.
3458 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3459 * psymtab.c (psym_lookup_symbol): Make "block" const.
3460 (maintenance_check_psymtabs): Make "b" const.
3461 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3462 (enumerate_locals, enumerate_args): Update.
3463 * python/py-symtab.c (stpy_global_block): Make "block" const.
3464 (stpy_static_block): Likewise.
3465 * inline-frame.c (block_starting_point_at): Make "new_block"
3467 * block.c (find_block_in_blockvector): Make return type const.
3468 (blockvector_for_pc_sect): Make "b" const.
3469 (find_block_in_blockvector): Make "b" const.
3471 2019-03-23 Tom Tromey <tom@tromey.com>
3473 * varobj.c (varobj_create): Update.
3474 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3475 * printcmd.c (display_command, do_one_display): Don't reset
3477 * parser-defs.h (enum innermost_block_tracker_type): Move to
3479 (innermost_block): Update comment.
3480 * parse.c (parse_exp_1): Add tracker_types parameter.
3481 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3482 tracker_types parameter. Reset innermost_block.
3483 (parse_exp_in_context): Remove.
3484 (parse_expression_for_completion): Update.
3485 * objfiles.c (~objfile): Don't reset expression_context_block or
3487 * expression.h (enum innermost_block_tracker_type): Move from
3489 (parse_exp_1): Add tracker_types parameter.
3490 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3491 reset innermost_block.
3493 2019-03-23 Tom Tromey <tom@tromey.com>
3495 * objfiles.h: Include bcache.h.
3497 2019-03-23 Tom Tromey <tom@tromey.com>
3499 * linespec.c (get_current_search_block): Use
3500 scoped_restore_current_language.
3501 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3503 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3504 Jiong Wang <jiong.wang@arm.com>
3506 * aarch64-linux-tdep.c
3507 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3509 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3511 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3512 Jiong Wang <jiong.wang@arm.com>
3514 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3516 (aarch64_analyze_prologue_test): Add PACIASP test.
3517 (aarch64_prologue_prev_register): Unmask PC value.
3519 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3520 Jiong Wang <jiong.wang@arm.com>
3522 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3523 (aarch64_dwarf2_prev_register): Unmask PC value.
3524 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3525 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3526 DW_CFA_AARCH64_negate_ra_state.
3527 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3529 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3530 Jiong Wang <jiong.wang@arm.com>
3532 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3534 (aarch64_pseudo_register_name): Likewise.
3535 (aarch64_pseudo_register_type): Likewise.
3536 (aarch64_pseudo_register_reggroup_p): Likewise.
3537 (aarch64_gdbarch_init): Add pauth registers.
3538 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3539 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3540 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3541 (struct gdbarch_tdep): Add regnum for ra_state.
3543 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3544 Jiong Wang <jiong.wang@arm.com>
3546 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3548 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3549 Jiong Wang <jiong.wang@arm.com>
3551 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3553 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3554 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3555 (aarch64_gdbarch_init): Add puth registers.
3556 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3557 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3558 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3560 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3561 Jiong Wang <jiong.wang@arm.com>
3563 * aarch64-linux-nat.c
3564 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3565 * aarch64-linux-tdep.c
3566 (aarch64_linux_core_read_description): Likewise.
3567 (aarch64_linux_get_hwcap): New function.
3568 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3569 (aarch64_linux_get_hwcap): New declaration.
3571 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3572 Jiong Wang <jiong.wang@arm.com>
3574 * aarch64-linux-nat.c
3575 (aarch64_linux_nat_target::read_description): Add pauth param.
3576 * aarch64-linux-tdep.c
3577 (aarch64_linux_core_read_description): Likewise.
3578 * aarch64-tdep.c (struct target_desc): Add in pauth.
3579 (aarch64_read_description): Add pauth param.
3580 (aarch64_gdbarch_init): Likewise.
3581 * aarch64-tdep.h (aarch64_read_description): Likewise.
3582 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3583 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3584 * features/Makefile: Add new files.
3585 * features/aarch64-pauth.c: New file.
3586 * features/aarch64-pauth.xml: New file.
3588 2019-03-20 Tom Tromey <tromey@adacore.com>
3590 * infrun.c (handle_inferior_event): Rename from
3591 handle_inferior_event_1. Create a scoped_value_mark.
3592 (handle_inferior_event): Remove.
3594 2019-03-19 Tom Tromey <tromey@adacore.com>
3596 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3597 * infrun.h (print_stop_event): Add "displays" parameter.
3598 * infrun.c (print_stop_event): Add "displays" parameter.
3600 2019-03-19 Pedro Alves <palves@redhat.com>
3602 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3603 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3604 to -1. Fix TABs vs spaces.
3605 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3606 * tui/tui-out.h (tui_ui_out) Add intro comments.
3607 <m_line, m_start_of_line>: In-class initialize, and add describing
3610 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3612 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3614 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3616 2019-03-18 Pedro Alves <palves@redhat.com>
3617 Eli Zaretskii <eliz@gnu.org>
3619 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3620 m_line and m_start_of_line.
3622 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3624 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3625 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3626 it returns a newline. This fixes a regression in TU mode, whereby
3627 the next line is output on the same screen line as the user input.
3629 2019-03-18 Tom Tromey <tromey@adacore.com>
3631 * minsyms.c (minimal_symbol_reader::install): Remove call to
3634 2019-03-18 Pedro Alves <palves@redhat.com>
3636 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3638 (apply_style): New, factored out from ...
3639 (apply_ansi_escape): ... this. Handle reverse video mode.
3640 (tui_set_reverse_mode): New function.
3641 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3642 * tui/tui-winsource.c (tui_show_source_line): Use
3643 tui_set_reverse_mode instead of setting A_STANDOUT.
3644 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3647 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3649 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3652 2019-03-18 Tom Tromey <tromey@adacore.com>
3654 * ada-lang.c (empty_array): Add "high" parameter.
3655 (ada_evaluate_subexp): Update.
3657 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3659 * unittests/string_view-selftests.c: Define
3660 _initialize_string_view_selftests unconditionally.
3662 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3665 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3667 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3670 * windows-nat.c (display_selector): Fix format specifiers.
3672 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3674 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3675 tui_refill_source_window instead of tui_refresh_win, to update the
3676 current execution line. This fixes redisplay of the current line
3677 when stepping through the code with "next" or "step".
3679 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3681 * source-cache.c (source_cache::get_source_lines): Call
3682 find_source_lines to initialize s->nlines. This fixes vertical
3683 scrolling of TUI source window when the DOWN arrow is pressed.
3685 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3687 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3688 linux-thread-db.c (_initialize_thread_db): Likewise.
3690 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3692 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3693 wclrtoeol in tui_show_source_line". This reverts changes made in
3694 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3696 2019-03-15 Tom Tromey <tom@tromey.com>
3698 * symtab.h (struct minimal_symbol): Derive from
3699 general_symbol_info.
3700 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3701 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3702 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3703 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3704 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3705 (MSYMBOL_SEARCH_NAME): Update.
3706 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3707 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3708 * minsyms.c (minimal_symbol_reader::record_full): Update.
3710 2019-03-15 Tom Tromey <tom@tromey.com>
3712 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3714 2019-03-15 Tom Tromey <tom@tromey.com>
3716 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3718 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3720 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3721 (build_minimal_symbol_hash_tables)
3722 (minimal_symbol_reader::install): Update.
3724 2019-03-15 Tom Tromey <tom@tromey.com>
3726 * symtab.c (create_demangled_names_hash): Update.
3727 (symbol_set_names): Update.
3728 * objfiles.h (struct objfile_per_bfd_storage)
3729 <demangled_names_hash>: Now an htab_up.
3730 * objfiles.c (objfile_per_bfd_storage): Simplify.
3732 2019-03-15 Tom Tromey <tom@tromey.com>
3734 * objfiles.h (struct objfile_per_bfd_storage): Declare
3736 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3738 (get_objfile_bfd_data): Use new. Don't initialize
3740 (free_objfile_per_bfd_storage): Remove.
3741 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3743 2019-03-15 Tom Tromey <tom@tromey.com>
3745 * symfile.c (reread_symbols): Update.
3746 * objfiles.c (objfile::objfile): Update.
3747 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3748 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3750 (minimal_symbol_reader::install): Update.
3751 (terminate_minimal_symbol_table): Remove.
3752 * jit.c (jit_object_close_impl): Update.
3754 2019-03-15 Tom Tromey <tom@tromey.com>
3756 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3759 2019-03-15 Tom Tromey <tom@tromey.com>
3761 * objfiles.h (struct objfile_per_bfd_storage)
3762 <demangled_hash_languages>: Now a bitset.
3763 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3764 (lookup_minimal_symbol): Update.
3766 2019-03-15 Tom Tromey <tom@tromey.com>
3768 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3769 Don't return the symbol.
3770 * coffread.c (record_minimal_symbol): Use record_full.
3772 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3774 The MS-Windows port of ncurses fails to switch to a color pair if
3775 one or both of the colors are the implicit default colors. This
3776 change records the default colors when TUI is initialized, and
3777 then specifies them explicitly when a color pair uses the default
3778 colors. This allows color styling in TUI mode on MS-Windows.
3780 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3782 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3783 colors in ncurses_norm_attr.
3784 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3785 "none", replace it with the default color recorded in
3788 2019-03-14 Tom Tromey <tromey@adacore.com>
3790 * source-cache.h (class source_cache) <get_source_lines>: Return
3792 * source-cache.c (source_cache::extract_lines): Handle case where
3793 first_pos==npos. Return std::string.
3794 (source_cache::get_source_lines): Update.
3796 2019-03-14 Tom Tromey <tromey@adacore.com>
3798 * NEWS: Add item for "style sources" commands.
3799 * source-cache.c (source_cache::get_source_lines): Check
3801 * cli/cli-style.c (source_styling): New global.
3802 (_initialize_cli_style): Add "style sources" commands.
3803 (show_style_sources): New function.
3804 * cli/cli-style.h (source_styling): Declare.
3806 2019-03-14 Pedro Alves <palves@redhat.com>
3807 Tom Tromey <tromey@adacore.com>
3809 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3810 * tui/tui-winsource.c (tui_refill_source_window): New function,
3812 (tui_horizontal_source_scroll): ... here. Move some logic.
3813 * cli/cli-style.c (set_style_enabled): Notify new observable.
3814 * tui/tui-hooks.c (tui_redisplay_source): New function.
3815 (tui_attach_detach_observers): Attach or detach
3816 tui_redisplay_source.
3817 * observable.h (source_styling_changed): New observable.
3818 * observable.c: Define source_styling_changed observable.
3820 2019-03-13 Tom Tromey <tromey@adacore.com>
3822 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3823 (i386_gnu_nat_target::store_registers): Update.
3824 * target-debug.h (target_debug_print_std_string): New macro.
3825 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3826 * windows-tdep.c (display_one_tib): Update.
3827 * tui/tui-stack.c (tui_make_status_line): Update.
3828 * top.c (print_inferior_quit_action): Update.
3829 * thread.c (thr_try_catch_cmd): Update.
3830 (add_thread_with_info): Update.
3831 (thread_target_id_str): Update.
3832 (thr_try_catch_cmd): Update.
3833 (thread_command): Update.
3834 (thread_find_command): Update.
3835 * record-btrace.c (record_btrace_target::info_record)
3836 (record_btrace_resume_thread, record_btrace_target::resume)
3837 (record_btrace_cancel_resume, record_btrace_step_thread)
3838 (record_btrace_target::wait, record_btrace_target::wait)
3839 (record_btrace_target::wait, record_btrace_target::stop): Update.
3840 * progspace.c (print_program_space): Update.
3841 * process-stratum-target.c
3842 (process_stratum_target::thread_address_space): Update.
3843 * linux-fork.c (linux_fork_mourn_inferior)
3844 (detach_checkpoint_command, info_checkpoints_command)
3845 (linux_fork_context): Update.
3846 (linux_fork_detach): Update.
3847 (class scoped_switch_fork_info): Update.
3848 (delete_checkpoint_command): Update.
3849 * infrun.c (follow_fork_inferior): Update.
3850 (follow_fork_inferior): Update.
3851 (proceed_after_vfork_done): Update.
3852 (handle_vfork_child_exec_or_exit): Update.
3853 (follow_exec): Update.
3854 (displaced_step_prepare_throw): Update.
3855 (displaced_step_restore): Update.
3856 (start_step_over): Update.
3858 (clear_proceed_status_thread): Update.
3860 (print_target_wait_results): Update.
3861 (do_target_wait): Update.
3862 (context_switch): Update.
3863 (stop_all_threads): Update.
3864 (restart_threads): Update.
3865 (finish_step_over): Update.
3866 (handle_signal_stop): Update.
3867 (switch_back_to_stepped_thread): Update.
3868 (keep_going_pass_signal): Update.
3869 (print_exited_reason): Update.
3870 (normal_stop): Update.
3871 * inferior.c (inferior_pid_to_str): Change return type.
3872 (print_selected_inferior): Update.
3873 (add_inferior): Update.
3874 (detach_inferior): Update.
3875 * dummy-frame.c (fprint_dummy_frames): Update.
3876 * dcache.c (dcache_info_1): Update.
3877 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3878 (btrace_fetch, btrace_clear): Update.
3879 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3880 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3882 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3883 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3884 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3885 * gdbarch.c, gdbarch.h: Rebuild.
3886 * gdbarch.sh (core_pid_to_str): Change return type.
3887 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3889 (windows_nat_target::pid_to_str): Change return type.
3890 (windows_delete_thread): Update.
3891 (windows_nat_target::attach): Update.
3892 (windows_nat_target::files_info): Update.
3893 * target-delegates.c: Rebuild.
3894 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3896 (sol_thread_target::pid_to_str): Change return type.
3897 * remote.c (class remote_target) <pid_to_str>: Change return
3899 (remote_target::pid_to_str): Change return type.
3900 (extended_remote_target::attach, remote_target::remote_stop_ns)
3901 (remote_target::remote_notif_remove_queued_reply)
3902 (remote_target::push_stop_reply, remote_target::disable_btrace):
3904 (extended_remote_target::attach): Update.
3905 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3907 (gdbsim_target::pid_to_str): Change return type.
3908 * ravenscar-thread.c (struct ravenscar_thread_target)
3909 <pid_to_str>: Change return type.
3910 (ravenscar_thread_target::pid_to_str): Change return type.
3911 * procfs.c (class procfs_target) <pid_to_str>: Change return
3913 (procfs_target::pid_to_str): Change return type.
3914 (procfs_target::attach): Update.
3915 (procfs_target::detach): Update.
3916 (procfs_target::fetch_registers): Update.
3917 (procfs_target::store_registers): Update.
3918 (procfs_target::wait): Update.
3919 (procfs_target::files_info): Update.
3920 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3921 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3923 (nto_procfs_target::pid_to_str): Change return type.
3924 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3925 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3927 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3929 (attach_proc_task_lwp_callback, get_detach_signal)
3930 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3931 (linux_nat_target::resume, wait_lwp, stop_callback)
3932 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3933 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3934 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3935 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3936 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3938 (inf_ptrace_target::attach): Update.
3939 (inf_ptrace_target::files_info): Update.
3940 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3942 (go32_nat_target::pid_to_str): Change return type.
3943 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3944 (gnu_nat_target::wait): Update.
3945 (gnu_nat_target::wait): Update.
3946 (gnu_nat_target::resume): Update.
3947 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3948 (fbsd_nat_target::wait): Update.
3949 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3951 (darwin_nat_target::attach): Update.
3952 * corelow.c (class core_target) <pid_to_str>: Change return type.
3953 (core_target::pid_to_str): Change return type.
3954 * target.c (normal_pid_to_str): Change return type.
3955 (default_pid_to_str): Likewise.
3956 (target_pid_to_str): Change return type.
3957 (target_translate_tls_address): Update.
3958 (target_announce_detach): Update.
3959 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3961 (bsd_uthread_target::pid_to_str): Change return type.
3962 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3964 (bsd_kvm_target::pid_to_str): Change return type.
3965 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3967 (aix_thread_target::pid_to_str): Change return type.
3968 * target.h (struct target_ops) <pid_to_str>: Change return type.
3969 (target_pid_to_str, normal_pid_to_str): Likewise.
3970 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3972 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3974 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3976 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3978 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3980 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3983 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3985 * NEWS: Mention that the new default MI version is 3. Mention
3986 changes to the output of commands and events that deal with
3987 multi-location breakpoints.
3988 * breakpoint.c: Include "mi/mi-out.h".
3989 (print_one_breakpoint): Change output syntax if using MI version
3991 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3993 (mi_multi_location_breakpoint_output_fixed): New.
3994 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3995 (mi_cmd_fix_multi_location_breakpoint_output): New.
3996 (mi_multi_location_breakpoint_output_fixed): New.
3997 * mi/mi-cmds.c (mi_cmds): Register command
3998 -fix-multi-location-breakpoint-output.
3999 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4002 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4004 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4005 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4006 instantiate mi_ui_out based on interpreter name.
4007 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4008 * mi/mi-main.c (mi_load_progress): Likewise.
4010 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4012 * NEWS: Combine separate "New targets" sections for 8.3.
4014 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4016 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4017 (ppcfbsd_init_abi): Install gdbarch
4018 "fetch_tls_load_module_address" and "get_thread_local_address"
4021 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4023 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4024 (riscv_fbsd_init_abi): Install gdbarch
4025 "fetch_tls_load_module_address" and "get_thread_local_address"
4028 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4030 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4031 (i386fbsd_init_abi): Install gdbarch
4032 "fetch_tls_load_module_address" and "get_thread_local_address"
4035 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4037 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4038 (amd64fbsd_init_abi): Install gdbarch
4039 "fetch_tls_load_module_address" and "get_thread_local_address"
4042 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4044 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4045 (struct fbsd_pspace_data): New type.
4046 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4047 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4048 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4049 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4050 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4052 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4054 * gdbtypes.c (lookup_struct_elt): New function.
4055 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4056 * gdbtypes.h (struct struct_elt): New type.
4057 (lookup_struct_elt): New prototype.
4059 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4061 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4062 remove disabled code block.
4064 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4066 * gdbarch.sh (get_thread_local_address): New method.
4067 * gdbarch.h, gdbarch.c: Regenerate.
4068 * target.c (target_translate_tls_address): Use
4069 gdbarch_get_thread_local_address if present instead of
4070 target::get_thread_local_address.
4072 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4074 * target.h (target::get_thread_local_address): Update comment.
4076 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4078 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4079 objfile->separate_debug_objfile_backlink if not NULL.
4081 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4083 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4084 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4085 (amd64bsd_store_inferior_registers): Likewise.
4086 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4087 Enable segment base registers.
4088 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4089 PT_GETFSBASE and PT_GETGSBASE.
4090 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4092 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4093 segment base registers.
4094 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4096 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4098 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4099 Update calls to i386_target_description to add 'segments'
4101 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4102 add segment base registers.
4103 * arch/i386.c (i386_create_target_description): Add 'segments'
4104 parameter to enable segment base registers.
4105 * arch/i386.h (i386_create_target_description): Likewise.
4106 * features/i386/32bit-segments.xml: New file.
4107 * features/i386/32bit-segments.c: Generate.
4108 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4109 call to i386_target_description to add 'segments' parameter.
4110 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4111 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4112 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4113 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4114 if feature is present.
4115 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4116 Add 'segments' parameter to call to i386_target_description.
4117 (i386_target_description): Add 'segments' parameter to enable
4118 segment base registers.
4119 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4120 to call to i386_target_description.
4121 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4122 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4123 Define I386_NUM_REGS.
4124 (i386_target_description): Add 'segments' parameter to enable
4125 segment base registers.
4127 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4130 * source-cache.c: #undef open and close, to avoid unresolved
4131 externals during linking.
4133 2019-03-12 Tom Tromey <tromey@adacore.com>
4135 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4136 const. Add initializers.
4137 (_initialize_remote): Don't initialize ptid globals.
4139 2019-03-12 Pedro Alves <palves@redhat.com>
4141 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4143 2019-03-12 Pedro Alves <palves@redhat.com>
4145 * cp-name-parser.y (main): Remove unused 'len' variable.
4147 2019-03-12 Tom Tromey <tromey@adacore.com>
4149 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4150 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4152 2019-03-12 Tom Tromey <tromey@adacore.com>
4154 * linux-nat.c (iterate_over_lwps): Update.
4155 (stop_callback): Remove parameter.
4156 (stop_wait_callback, detach_callback, resume_set_callback)
4157 (select_singlestep_lwp_callback, set_ignore_sigint)
4158 (status_callback, resumed_callback, resume_clear_callback)
4159 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4161 (linux_nat_target::detach, linux_nat_target::resume)
4162 (linux_stop_and_wait_all_lwps, select_event_lwp)
4163 (linux_nat_filter_event, linux_nat_wait_1)
4164 (linux_nat_target::kill, linux_nat_target::stop)
4165 (linux_nat_target::stop): Update.
4166 (linux_nat_resume_callback): Change type.
4167 (resume_stopped_resumed_lwps, count_events_callback)
4168 (select_event_lwp_callback): Likewise.
4169 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4170 * arm-linux-nat.c (struct update_registers_data): Remove.
4171 (update_registers_callback): Change type.
4172 (arm_linux_insert_hw_breakpoint1): Update.
4173 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4175 (x86_linux_dr_set_addr): Update.
4176 (x86_linux_dr_set_control): Update.
4177 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4178 (iterate_over_lwps): Use gdb::function_view.
4179 * nat/aarch64-linux-hw-point.c (struct
4180 aarch64_dr_update_callback_param): Remove.
4181 (debug_reg_change_callback): Change type.
4182 (aarch64_notify_debug_reg_change): Update.
4183 * s390-linux-nat.c (s390_refresh_per_info): Update.
4185 2019-03-11 Tom Tromey <tromey@adacore.com>
4187 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4188 redundant assignment to "this_cu".
4190 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4192 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4194 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4196 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4198 (rank_one_type): ... this.
4200 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4202 * gdbtypes.c (rank_one_type_parm_struct): 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_complex): 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_float): 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_bool): 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_range): 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_char): 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_enum): 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_int): 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_func): 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_array): 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_ptr): New function extracted
4264 (rank_one_type): ... this.
4266 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4268 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4269 inferior-events' shows the example events.
4271 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4273 Support styling on native MS-Windows console
4276 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4277 on MS-Windows if $TERM is not defined.
4279 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4281 * posix-hdep.c (gdb_console_fputs):
4282 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4284 * ui-file.h (gdb_console_fputs): Add prototype.
4286 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4287 back to fputs only if the former returns zero.
4289 2019-03-07 Tom Tromey <tom@tromey.com>
4291 * symmisc.c (print_symbol_bcache_statistics): Update.
4292 (print_objfile_statistics): Update.
4293 * symfile.c (allocate_symtab): Update.
4294 * stabsread.c: Don't include bcache.h.
4295 * psymtab.h (struct psymbol_bcache): Don't declare.
4296 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4297 (psymbol_bcache_init, psymbol_bcache_free)
4298 (psymbol_bcache_get_bcache): Don't declare.
4299 * psymtab.c (struct psymbol_bcache): Remove.
4300 (psymtab_storage::psymtab_storage): Update.
4301 (psymtab_storage::~psymtab_storage): Update.
4302 (psymbol_bcache_init, psymbol_bcache_free)
4303 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4304 (add_psymbol_to_bcache): Update.
4305 (allocate_psymtab): Update.
4306 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4307 macro_cache>: No longer pointers.
4308 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4309 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4310 * macrotab.c (macro_bcache): Update.
4311 * macroexp.c: Don't include bcache.h.
4312 * gdbtypes.c (check_types_worklist): Update.
4313 (types_deeply_equal): Remove TRY/CATCH. Update.
4314 * elfread.c (elf_symtab_read): Update.
4315 * dwarf2read.c: Don't include bcache.h.
4316 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4317 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4318 (print_bcache_statistics, bcache_memory_used): Don't declare.
4319 (struct bcache): Move from bcache.c. Add constructor, destructor,
4320 methods. Rename all data members.
4321 * bcache.c (struct bcache): Move to bcache.h.
4322 (bcache::expand_hash_table): Rename from expand_hash_table.
4324 (bcache::insert): Rename from bcache_full.
4325 (bcache::compare): Rename from bcache_compare.
4326 (bcache_xmalloc): Remove.
4327 (bcache::~bcache): Rename from bcache_xfree.
4328 (bcache::print_statistics): Rename from print_bcache_statistics.
4329 (bcache::memory_used): Rename from bcache_memory_used.
4331 2019-03-07 Pedro Alves <palves@redhat.com>
4333 * infrun.c (normal_stop): Also check for
4334 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4336 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4338 * f-lang.c (value_from_host_double): Moved to...
4339 * value.c (value_from_host_double): ...here.
4340 * value.h (value_from_host_double): Declare.
4341 * guile/scm-math.c (vlscm_convert_typed_number): Use
4342 value_from_host_double.
4343 (vlscm_convert_number): Likewise.
4344 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4345 * python/py-value.c (convert_value_from_python): Likewise.
4347 2019-03-06 Tom Tromey <tom@tromey.com>
4349 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4351 2019-03-06 Tom Tromey <tom@tromey.com>
4353 * utils.h (free_current_contents): Don't declare.
4354 * utils.c (free_current_contents): Remove.
4356 2019-03-06 Tom Tromey <tom@tromey.com>
4358 * top.c (quit_force): Update.
4359 * main.c (captured_command_loop): Update.
4360 * common/new-op.c (operator new): Update.
4361 * common/common-exceptions.c (struct catcher)
4362 <save_cleanup_chain>: Remove member.
4363 (exceptions_state_mc_init): Update.
4364 (exception_try_scope_entry): Return nullptr.
4365 (exception_try_scope_exit, exception_rethrow)
4366 (throw_exception_sjlj, throw_exception_cxx): Update.
4367 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4368 (all_cleanups, do_cleanups, discard_cleanups)
4369 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4370 (restore_cleanups, restore_final_cleanups): Don't declare.
4371 (do_final_cleanups): Remove parameter.
4372 * common/cleanups.c (cleanup_chain, make_cleanup)
4373 (make_cleanup_dtor, all_cleanups, do_cleanups)
4374 (discard_my_cleanups, discard_cleanups)
4375 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4376 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4377 (null_cleanup): Remove.
4378 (do_final_cleanups): Remove parameter.
4380 2019-03-06 Tom Tromey <tom@tromey.com>
4382 * remote.c (remote_target::remote_parse_stop_reply): Use
4385 2019-03-06 Tom Tromey <tom@tromey.com>
4387 * stabsread.c (struct stabs_field_info): Rename from field_info.
4388 <list, fnlist>: Add initializers.
4389 <obstack>: New member.
4390 (read_member_functions, read_struct_fields, read_baseclasses):
4391 Allocate on obstack. Don't use cleanups.
4392 (read_one_struct_field, read_member_functions, read_struct_fields)
4393 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4394 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4395 (read_struct_type): Update.
4397 2019-03-06 Tom Tromey <tom@tromey.com>
4399 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4400 * common/filestuff.h (make_cleanup_close): Don't declare.
4401 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4404 2019-03-06 Tom Tromey <tom@tromey.com>
4406 * solib-aix.c: Use make_scope_exit.
4408 2019-03-06 Tom Tromey <tom@tromey.com>
4410 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4411 Use make_scope_exit.
4413 2019-03-06 Tom Tromey <tom@tromey.com>
4415 * solib-svr4.c (disable_probes_interface): Remove parameter.
4416 (svr4_handle_solib_event): Use make_scope_exit.
4418 2019-03-06 Tom Tromey <tom@tromey.com>
4420 * remote.c (struct stop_reply_deleter): Remove.
4421 (stop_reply_up): Update.
4422 (struct stop_reply): Derive from notif_event. Don't typedef.
4423 <regcache>: Now a std::vector.
4424 (stop_reply_xfree): Remove.
4425 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4426 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4427 (remote_target::discard_pending_stop_replies): Use delete.
4428 (remote_target::remote_parse_stop_reply): Update.
4429 (remote_target::process_stop_reply): Update.
4430 * remote-notif.h (struct notif_event): Add virtual destructor.
4431 Remove "dtr" member.
4432 (struct notif_client) <alloc_event>: Return a unique_ptr.
4433 (notif_event_xfree): Don't declare.
4434 (notif_event_up): New typedef.
4435 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4436 (notif_event_xfree, do_notif_event_xfree): Remove.
4437 (remote_notif_state_xfree): Update.
4439 2019-03-06 Tom Tromey <tom@tromey.com>
4441 * infrun.c (displaced_step_clear_cleanup): Now a
4442 forward_scope_exit type.
4443 (displaced_step_prepare_throw): Update.
4444 (displaced_step_fixup): Update.
4446 2019-03-06 Tom Tromey <tom@tromey.com>
4448 * inferior.h (class inferior): Update comment.
4449 * gdbthread.h (class thread_info): Update comment.
4451 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4452 Tom Tromey <tom@tromey.com>
4454 * stabsread.h (struct stab_section_list): Remove.
4455 (coffstab_build_psymtabs): Update.
4456 * dbxread.c (symbuf_sections): Now a std::vector.
4457 (sect_idx): New global.
4458 (fill_symbuf): Update.
4459 (coffstab_build_psymtabs): Change type of stabsects parameter.
4461 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4463 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4464 (coff_locate_sections): Update.
4465 (coff_symfile_read): Remove cleanups. Update.
4466 (init_stringtab): Add storage parameter.
4467 (free_stringtab, free_stringtab_cleanup): Remove.
4468 (init_lineno): Add storage parameter.
4469 (free_linetab, free_linetab_cleanup): Remove.
4471 2019-03-06 Pedro Alves <palves@redhat.com>
4473 * linux-fork.c (fork_info::clobber_regs): Delete.
4474 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4475 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4477 (scoped_switch_fork_info::scoped_switch_fork_info)
4478 (checkpoint_command, linux_fork_context): Adjust
4479 fork_save_infrun_state calls.
4481 2019-03-06 Pedro Alves <palves@redhat.com>
4483 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4484 (inf_has_multiple_threads): Return 'bool' and rewrite using
4485 inferior_info::threads().
4487 2019-03-06 Pedro Alves <palves@redhat.com>
4489 * linux-fork.c: Include <list>.
4490 (fork_list): Now a std::list instance.
4491 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4492 (forks_exist_p, find_last_fork): Adjust.
4496 (free_fork): Delete, folded into fork_info::~fork_info().
4497 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4499 (init_fork_list): Delete.
4500 (linux_fork_killall, linux_fork_mourn_inferior)
4501 (linux_fork_detach, info_checkpoints_command): Adjust.
4502 (_initialize_linux_fork): No longer call init_fork_list.
4504 2019-03-06 Pedro Alves <palves@redhat.com>
4506 * linux-fork.c (new_fork): New, split out of ...
4507 (add_fork): ... this. Return void. Move "first fork" special
4508 case from here, to ...
4509 (checkpoint_command): ... here.
4510 * linux-linux.h (add_fork): Return void.
4512 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4514 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4516 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4517 Chris January <chris.january@arm.com>
4518 David Lecomber <david.lecomber@arm.com>
4520 * f-exp.y: New token, UNOP_INTRINSIC.
4521 (exp): New pattern using UNOP_INTRINSIC token.
4522 (f77_keywords): Add 'abs' keyword.
4523 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4524 (value_from_host_double): New function.
4525 (evaluate_subexp_f): Support UNOP_ABS.
4527 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4529 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4532 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4534 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4535 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4536 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4538 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4540 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4542 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4543 Chris January <chris.january@arm.com>
4545 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4546 * f-exp.y: Define 'KIND' token.
4547 (exp): New pattern for KIND expressions.
4548 (ptype): Handle types with a kind extension.
4549 (direct_abs_decl): Extend to spot kind extensions.
4550 (f77_keywords): Add 'kind' to the list.
4551 (push_kind_type): New function.
4552 (convert_to_kind_type): New function.
4553 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4554 * parse.c (operator_length_standard): Likewise.
4555 * parser-defs.h (enum type_pieces): Add tp_kind.
4556 * std-operator.def: Add UNOP_KIND.
4558 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4560 * f-exp.y (f_parse): Set yydebug.
4562 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4564 * f-lang.c (evaluate_subexp_f): New function.
4565 (exp_descriptor_f): New global.
4566 (f_language_defn): Use exp_descriptor_f instead of
4567 exp_descriptor_standard.
4569 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4571 * f-exp.y (struct token): Add comments.
4572 (dot_ops): Remove uppercase versions and the end marker.
4573 (f77_keywords): Likewise.
4574 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4575 entries in the dot_ops array are case insensitive, and use
4576 strncasecmp to compare strings. Also some whitespace cleanup in
4577 this area. Similar for the f77_keywords array, except entries in
4578 this list might be case sensitive.
4580 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4582 * f-exp.y (struct f77_boolean_val): Add comments.
4583 (boolean_values): Remove uppercase versions, and end marker.
4584 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4585 and use strncasecmp to achieve case insensitivity. Additionally,
4586 perform whitespace cleanup around this code.
4588 2019-03-06 Tom Tromey <tromey@adacore.com>
4590 * remote-sim.c (gdbsim_target_open): Use result of
4593 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4594 Dirk Schubert <dirk.schubert@arm.com>
4595 Chris January <chris.january@arm.com>
4597 * eval.c (evaluate_subexp_standard): Call Fortran argument
4599 * f-lang.c (struct value): A value which can be passed into a
4600 Fortran function call.
4601 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4603 (struct type): Value ready for a Fortran function call.
4604 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4606 * f-lang.h (fortran_argument_convert): Declaration.
4607 (fortran_preserve_arg_pointer): Declaration.
4608 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4610 2019-03-05 Tom Tromey <tromey@adacore.com>
4612 * python/py-prettyprint.c (print_string_repr): Remove #if.
4613 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4615 2019-03-05 Tom Tromey <tromey@adacore.com>
4617 * target.c (the_dummy_target): Move later. Change type to
4619 (initialize_targets): Don't initialize the_dummy_target.
4621 2019-03-05 Tom Tromey <tromey@adacore.com>
4623 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4624 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4626 2019-03-05 Tom Tromey <tromey@adacore.com>
4628 * windows-nat.c (windows_nat_target::attach)
4629 (windows_nat_target::detach): Don't call gdb_flush.
4630 * valprint.c (generic_val_print, val_print, val_print_string):
4631 Don't call gdb_flush.
4632 * utils.c (defaulted_query): Don't call gdb_flush.
4633 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4634 * target.c (target_announce_detach): Don't call gdb_flush.
4635 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4636 * remote.c (extended_remote_target::attach): Don't call
4638 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4639 * printcmd.c (do_examine): Don't call gdb_flush.
4640 (info_display_command): Don't call gdb_flush.
4641 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4642 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4643 * memattr.c (info_mem_command): Don't call gdb_flush.
4644 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4645 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4646 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4647 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4648 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4649 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4650 (gnu_nat_target::detach): Don't call gdb_flush.
4651 * f-valprint.c (f_val_print): Don't call gdb_flush.
4652 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4653 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4654 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4656 * c-valprint.c (c_val_print): Don't call gdb_flush.
4657 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4659 2019-03-05 Tom Tromey <tromey@adacore.com>
4661 * varobj.c (update_dynamic_varobj_children): Update.
4662 (install_default_visualizer): Use reset, not release.
4663 * value.c (set_internalvar): Update.
4664 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4665 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4666 ATTRIBUTE_UNUSED_RESULT.
4668 2019-03-05 Tom Tromey <tromey@adacore.com>
4670 * remote.c (class scoped_remote_fd) <release>: Add
4671 ATTRIBUTE_UNUSED_RESULT.
4673 2019-03-05 Tom Tromey <tromey@adacore.com>
4675 * macroexp.c (struct macro_buffer) <release>: Add
4676 ATTRIBUTE_UNUSED_RESULT.
4678 2019-03-05 Tom Tromey <tromey@adacore.com>
4680 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4681 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4682 ATTRIBUTE_UNUSED_RESULT.
4684 2019-03-05 Tom Tromey <tromey@adacore.com>
4686 * common/scoped_fd.h (class scoped_fd) <release>: Add
4687 ATTRIBUTE_UNUSED_RESULT.
4689 2019-03-05 Tom Tromey <tromey@adacore.com>
4691 * parser-defs.h (struct parser_state) <release>: Add
4692 ATTRIBUTE_UNUSED_RESULT.
4694 2019-03-05 Tom Tromey <tromey@adacore.com>
4696 * utils.h (class gdb_argv) <release>: Add
4697 ATTRIBUTE_UNUSED_RESULT.
4698 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4700 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4702 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4703 for-loop range, to avoid compiler warnings.
4705 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4706 avoid compiler warnings about unused variables.
4708 * NEWS: Mention end of support for native debugging on MS-Windows
4712 * common/netstuff.c:
4713 * gdbserver/gdbreplay.c
4714 * gdbserver/remote-utils.c:
4716 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4717 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4718 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4719 'getaddrinfo' and 'freeaddrinfo' were not available before
4720 Windows XP, and mingw.org's MinGW headers by default define
4721 _WIN32_WINNT to 0x500.
4723 2019-03-01 Gary Benson <gbenson@redhat.com>
4725 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4727 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4728 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4731 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4732 set_sigint_trap, clear_sigint_trap.
4734 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4736 * target.c (target_detach): Clear the regcache and the
4739 2019-02-27 Pedro Alves <palves@redhat.com>
4741 * utils.c (set_screen_size): When we cap the height/width sizes,
4742 tweak the corresponding command variable to show "unlimited":
4744 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4745 Pedro Alves <palves@redhat.com>
4747 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4748 before calling rl_set_screen_size.
4750 2019-02-27 Tom Tromey <tromey@adacore.com>
4752 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4754 * python/py-value.c: Remove Python 2.4 workaround.
4755 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4757 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4758 Python 2.4 workaround.
4759 * python/python-internal.h: Remove Python 2.4 comment.
4760 (Py_ssize_t): Don't define.
4761 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4762 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4763 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4764 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4765 * python/python.c (do_start_initialization): Remove Python 2.4
4767 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4768 (print_children): Remove Python 2.4 workaround.
4769 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4771 (CHARBUFFERPROC_NAME): Remove.
4772 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4773 Python 2.4 workaround.
4775 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4777 * NEWS: Note minimum Python version.
4779 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4781 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4782 code from these functions. Remove corresponding ifdefs. Use
4783 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4784 Remove gotos and target of gotos.
4785 (infpy_search_memory): Likewise.
4787 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4789 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4790 (hppa_gdbarch_init): Don't register deleted functions with
4793 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4795 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4796 (h8300_unwind_sp): Delete.
4797 (h8300_dummy_id): Delete.
4798 (h8300_gdbarch_init): Don't register deleted functions with
4801 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4803 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4804 (ft32_unwind_pc): Delete.
4805 (ft32_unwind_sp): Delete.
4806 (ft32_gdbarch_init): Don't register deleted functions with
4809 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4811 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4812 (frv_unwind_pc): Delete.
4813 (frv_unwind_sp): Delete.
4814 (frv_gdbarch_init): Don't register deleted functions with
4817 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4819 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4820 (riscv_unwind_pc): Delete.
4821 (riscv_unwind_sp): Delete.
4822 (riscv_gdbarch_init): Don't register deleted functions with
4825 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4827 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4828 (csky_unwind_pc): Delete.
4829 (csky_unwind_sp): Delete.
4830 (csky_gdbarch_init): Don't register deleted functions with
4833 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4835 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4836 (cris_unwind_pc): Delete.
4837 (cris_unwind_sp): Delete.
4838 (cris_gdbarch_init): Don't register deleted functions with
4841 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4843 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4844 (bfin_unwind_pc): Delete.
4845 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4847 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4849 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4850 (arm_unwind_pc): Delete.
4851 (arm_unwind_sp): Delete.
4852 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4854 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4856 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4857 (arc_unwind_pc): Delete.
4858 (arc_unwind_sp): Delete.
4859 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4861 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4863 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4864 (alpha_unwind_pc): Delete.
4865 (alpha_gdbarch_init): Don't register deleted functions with
4868 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4870 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4871 (aarch64_unwind_pc): Delete.
4872 (aarch64_unwind_sp): Delete.
4873 (aarch64_gdbarch_init): Don't register deleted functions with
4876 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4878 * gdbtypes.c (type_align): Don't consider static members when
4879 computing structure alignment.
4881 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4883 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4884 return 0 for other types.
4885 * arch-utils.c (default_type_align): Always return 0.
4886 * gdbarch.h: Regenerate.
4887 * gdbarch.sh (type_align): Extend comment.
4888 * gdbtypes.c (type_align): Add additional comments, always call
4889 gdbarch_type_align before applying the default rules.
4890 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4891 generic code will then apply a suitable default.
4892 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4893 types, return 0 for other types.
4895 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4897 * NEWS: Create a new section for the next release branch.
4898 Rename the section of the current branch, now that it has
4901 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4903 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4904 * version.in: Bump version to 8.3.50.DATE-git.
4906 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4908 * aix-thread.c (ptid_cmp): Remove unused variable.
4909 (get_signaled_thread): Likewise.
4910 (store_regs_user_thread): Likewise.
4911 (store_regs_kernel_thread): Likewise.
4912 (fetch_regs_kernel_thread): Remove shadowed variable.
4914 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4916 * features/riscv/32bit-cpu.xml: Add register numbers.
4917 * features/riscv/32bit-fpu.c: Regenerate.
4918 * features/riscv/32bit-fpu.xml: Add register numbers.
4919 * features/riscv/64bit-cpu.xml: Add register numbers.
4920 * features/riscv/64bit-fpu.c: Regenerate.
4921 * features/riscv/64bit-fpu.xml: Add register numbers.
4923 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4925 * NEWS: Mention two argument form of gdb.Value constructor.
4926 * python/py-value.c (convert_buffer_and_type_to_value): New
4928 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4929 Add support for handling an optional second argument. Call
4930 convert_buffer_and_type_to_value as appropriate.
4931 * python/python-internal.h (Py_buffer_deleter): New struct.
4932 (Py_buffer_up): New typedef.
4934 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4936 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4937 instead of releasing ownership.
4939 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4941 * dwarf2read.c (open_and_init_dwp_file): Call
4942 elf_numsections instead of bfd_count_sections to initialize
4943 dwp_file->num_sections.
4945 2019-02-25 Tom Tromey <tromey@adacore.com>
4947 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4949 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4951 * gcore.in: Add '--readnever' option when invoking GDB.
4953 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4955 * MAINTAINERS: Update my email address.
4957 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4959 * build-id.c (build_id_to_debug_bfd_1): New function.
4960 (build_id_to_debug_bfd): Look for separate debug file in
4963 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4965 * gdbarch.sh: Update the copyright year range that is placed into
4968 2019-02-22 Keith Seitz <keiths@redhat.com>
4971 * linespec.c (create_sals_line_offset): Search for the default
4972 symtab's filename instead of its fullname.
4974 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4976 * NEWS: Update style defaults.
4978 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4980 * main.c (captured_main_1): Disable styling in batch mode.
4982 2019-02-20 Tom Tromey <tom@tromey.com>
4984 * symtab.c (symtab_symbol_info): Fix typos.
4986 2019-02-20 Tom Tromey <tromey@adacore.com>
4988 * findcmd.c (_initialize_mem_search): Use upper case for
4989 metasyntactic variables.
4991 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4993 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4994 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4996 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4998 * top.h (source_file_name): Change to std::string.
4999 * top.c (source_file_name): Likewise.
5000 (command_line_input): Adjust.
5001 * cli/cli-script.c (script_from_file): Adjust.
5003 2019-02-19 Tom Tromey <tromey@adacore.com>
5005 * ravenscar-thread.c
5006 (ravenscar_thread_target::update_thread_list): Don't call
5007 ada_build_task_list.
5008 * ada-lang.h (ada_build_task_list): Don't declare.
5009 * ada-tasks.c (struct ada_tasks_inferior_data)
5010 <task_list_valid_p>: Now bool.
5011 (read_known_tasks, ada_task_list_changed)
5012 (ada_tasks_invalidate_inferior_data): Update.
5013 (read_known_tasks_array): Return bool.
5014 (read_known_tasks_list): Likewise.
5015 (read_known_tasks): Return void.
5016 (ada_build_task_list): Now static.
5018 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5020 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5021 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5023 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5025 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5026 variant for ada_tasks_pspace_data_handle and
5027 ada_tasks_inferior_data_handle.
5028 (ada_tasks_pspace_data_cleanup): New function.
5029 (ada_tasks_inferior_data_cleanup): New function.
5031 2019-02-17 Tom Tromey <tom@tromey.com>
5033 * macrotab.h (macro_source_fullname): Return a std::string.
5034 * macrotab.c (macro_include, check_for_redefinition)
5035 (macro_undef, macro_lookup_definition, foreach_macro)
5036 (foreach_macro_in_scope): Update.
5037 (macro_source_fullname): Return a std::string.
5038 * macrocmd.c (show_pp_source_pos): Update.
5040 2019-02-17 Tom Tromey <tom@tromey.com>
5042 * macrocmd.c (show_pp_source_pos): Style the file names.
5044 2019-02-17 Tom Tromey <tom@tromey.com>
5047 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5049 2019-02-17 Tom Tromey <tom@tromey.com>
5051 * ada-lang.c (user_select_syms): Use filtered printing.
5052 * utils.c (wrap_style): New global.
5053 (desired_style): Remove.
5054 (emit_style_escape): Add stream parameter.
5055 (set_output_style, reset_terminal_style, prompt_for_continue):
5057 (flush_wrap_buffer): Only flush gdb_stdout.
5058 (wrap_here): Set wrap_style.
5059 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5060 treat escape sequences as a character. Change when wrap buffer is
5062 (fputs_styled): Do not set the output style when the default is
5064 * ui-style.h (struct ui_file_style) <is_default>: New method.
5065 * source.c (print_source_lines_base): Emit escape sequences in one
5068 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5070 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5071 integers and enumeration types.
5073 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5075 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5076 instead of lookup_symbol_in_language
5077 (do_exact_match): New function.
5078 (ada_get_symbol_name_matcher): Return do_exact_match when
5079 doing a verbatim match.
5081 2019-02-15 Tom Tromey <tromey@adacore.com>
5083 * ravenscar-thread.c (ravenscar_thread_target::resume)
5084 (ravenscar_thread_target::wait): Special case wildcard requests.
5086 2019-02-15 Tom Tromey <tromey@adacore.com>
5088 * ravenscar-thread.c (base_ptid): Remove.
5089 (struct ravenscar_thread_target) <close>: New method.
5090 <m_base_ptid>: New member.
5091 <update_inferior_ptid, active_task, task_is_currently_active,
5092 runtime_initialized>: Declare methods.
5093 <ravenscar_thread_target>: Add constructor.
5094 (ravenscar_thread_target::task_is_currently_active)
5095 (ravenscar_thread_target::update_inferior_ptid)
5096 (ravenscar_runtime_initialized): Rename. Now methods.
5097 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5098 (ravenscar_thread_target::update_thread_list): Update.
5099 (ravenscar_thread_target::active_task): Now method.
5100 (ravenscar_thread_target::store_registers)
5101 (ravenscar_thread_target::prepare_to_store)
5102 (ravenscar_thread_target::prepare_to_store)
5103 (ravenscar_thread_target::mourn_inferior): Update.
5104 (ravenscar_inferior_created): Use "new" to create target.
5105 (ravenscar_thread_target::get_ada_task_ptid): Update.
5106 (_initialize_ravenscar): Don't initialize base_ptid.
5107 (ravenscar_ops): Remove global.
5109 2019-02-15 Tom Tromey <tromey@adacore.com>
5111 * target.h (push_target): Declare new overload.
5112 * target.c (push_target): New overload, taking an rvalue reference.
5113 * remote.c (remote_target::open_1): Use push_target overload.
5114 * corelow.c (core_target_open): Use push_target overload.
5116 2019-02-15 Tom Tromey <tromey@adacore.com>
5118 * ravenscar-thread.c (is_ravenscar_task)
5119 (ravenscar_task_is_currently_active): Return bool.
5120 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5121 (_initialize_ravenscar): Remove "(void)".
5122 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5125 2019-02-15 Tom Tromey <tromey@adacore.com>
5127 * ravenscar-thread.c (ravenscar_runtime_initializer)
5128 (has_ravenscar_runtime, get_running_thread_id)
5129 (ravenscar_thread_target::resume): Fix indentation.
5131 2019-02-15 Tom Tromey <tromey@adacore.com>
5133 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5134 from ravenscar_arch_ops.
5135 (sparc_ravenscar_ops::fetch_registers)
5136 (sparc_ravenscar_ops::store_registers): Now methods.
5137 (sparc_ravenscar_prepare_to_store): Remove.
5138 (sparc_ravenscar_ops): Redefine.
5139 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5140 methods and destructor. Remove members.
5141 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5142 (ravenscar_thread_target::store_registers)
5143 (ravenscar_thread_target::prepare_to_store): Update.
5144 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5146 (struct ppc_ravenscar_powerpc_ops): Derive from
5148 (ppc_ravenscar_powerpc_ops::fetch_registers)
5149 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5150 (ppc_ravenscar_powerpc_ops): Redefine.
5151 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5152 (ppc_ravenscar_e500_ops::fetch_registers)
5153 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5154 (ppc_ravenscar_e500_ops): Redefine.
5155 * aarch64-ravenscar-thread.c
5156 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5157 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5158 (aarch64_ravenscar_fetch_registers)
5159 (aarch64_ravenscar_store_registers): Now methods.
5160 (aarch64_ravenscar_ops): Redefine.
5162 2019-02-15 Tom Tromey <tromey@adacore.com>
5164 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5165 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5166 (ravenscar_thread_target::stopped_by_watchpoint)
5167 (ravenscar_thread_target::stopped_data_address)
5168 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5170 2019-02-15 Tom Tromey <tromey@adacore.com>
5172 * ravenscar-thread.c: Fix some typos.
5174 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5175 Tom Tromey <tromey@adacore.com>
5177 * ada-lang.c (ada_exception_sal): Change addr_string to a
5179 (create_ada_exception_catchpoint): Update.
5181 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5182 Tom Tromey <tromey@adacore.com>
5184 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5185 (bp_location_ops): Remove.
5186 (base_breakpoint_allocate_location): Update.
5187 (free_bp_location): Update.
5188 * ada-lang.c (class ada_catchpoint_location)
5189 <ada_catchpoint_location>: Remove ops parameter.
5190 (ada_catchpoint_location_dtor): Remove.
5191 (ada_catchpoint_location_ops): Remove.
5192 (allocate_location_exception): Update.
5193 * breakpoint.h (struct bp_location_ops): Remove.
5194 (class bp_location) <bp_location>: Remove bp_location_ops
5196 <~bp_location>: Add destructor.
5199 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5200 Pedro Alves <palves@redhat.com>
5202 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5205 2019-02-14 David Michael <fedora.dm0@gmail.com>
5206 Samuel Thibault <samuel.thibault@gnu.org>
5207 Thomas Schwinge <thomas@codesourcery.com>
5209 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5210 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5212 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5214 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5215 (check_empty): Use "const char *".
5217 * gnu-nat.c (gnu_nat_target::detach): Instead of
5218 'detach_inferior (pid)' call
5219 'detach_inferior (find_inferior_pid (pid))'.
5221 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5222 'nat/fork-inferior.o'.
5223 * gnu-nat.c: #include "nat/fork-inferior.h".
5225 * gnu-nat.c (gnu_nat_target::detach): Instead of
5226 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5227 * gnu-nat.h: #include "inf-child.h".
5228 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5229 'i386_gnu_nat_target::fetch_registers'.
5230 (gnu_store_registers): Rename/move to
5231 'i386_gnu_nat_target::store_registers'.
5233 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5234 * gnu-nat.h (mach_thread_info): New function.
5235 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5237 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5239 2019-02-14 Frederic Konrad <konrad@adacore.com>
5241 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5243 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5245 * windows-nat.c (windows_add_thread): Add new parameter
5246 "main_thread_p" with default value set to false. Update
5247 function documentation as well as all callers.
5248 (windows_delete_thread): Likewise.
5249 (fake_create_process): Update call to windows_add_thread.
5250 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5251 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5252 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5253 call to windows_delete_thread.
5255 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5257 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5259 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5261 * symfile.c (find_separate_debug_file): Use canonical path of
5262 sysroot with child_path instead of gdb_sysroot if it is valid.
5264 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5266 * symfile.c (find_separate_debug_file): Use child_path to
5267 determine if an object file is under a sysroot.
5269 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5271 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5272 unittests/child-path-selftests.c.
5273 * common/pathstuff.c (child_path): New function.
5274 * common/pathstuff.h (child_path): New prototype.
5275 * unittests/child-path-selftests.c: New file.
5277 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5279 * symfile.c (find_separate_debug_file): Look for separate debug
5280 files in debug directories under the sysroot.
5282 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5284 * symtab.h (struct minimal_symbol data_p): New const method.
5285 (struct minimal_symbol text_p): Likewise.
5286 * symtab.c (output_source_filename): Use file name style
5288 (print_symbol_info): Likewise.
5289 (print_msymbol_info): Use address style to print addresses.
5290 Use function name style to print executable text symbols.
5291 (expand_symtab_containing_pc): Use data_p.
5292 (find_pc_sect_compunit_symtab): Likewise.
5294 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5296 * breakpoint.c (describe_other_breakpoints): Use address style
5298 (say_where): Likewise.
5300 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5302 * ada-typeprint.c (print_func_type): Print function name
5303 style to print function name.
5304 * c-typeprint.c (c_print_type_1): Likewise.
5306 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5308 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5311 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5313 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5316 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5318 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5319 TYPE_CODE_REF types.
5321 2019-02-08 Jim Wilson <jimw@sifive.com>
5323 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5324 (riscv_linux_fregset): New.
5325 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5327 2019-02-07 Tom Tromey <tom@tromey.com>
5329 * thread.c (thread_cancel_execution_command): Update.
5330 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5332 (struct thread_fsm_ops): Remove.
5333 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5334 (thread_fsm_should_stop, thread_fsm_return_value)
5335 (thread_fsm_set_finished, thread_fsm_finished_p)
5336 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5338 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5339 * infrun.c (clear_proceed_status_thread)
5340 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5341 (print_stop_event): Update.
5342 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5344 (step_command_fsm_ops): Remove.
5345 (new_step_command_fsm): Remove.
5347 (step_command_fsm::should_stop): Rename from
5348 step_command_fsm_should_stop.
5349 (step_command_fsm::clean_up): Rename from
5350 step_command_fsm_clean_up.
5351 (step_command_fsm::do_async_reply_reason): Rename from
5352 step_command_fsm_async_reply_reason.
5353 (struct until_next_fsm): Inherit from thread_fsm. Add
5355 (until_next_fsm_ops): Remove.
5356 (new_until_next_fsm): Remove.
5357 (until_next_fsm::should_stop): Rename from
5358 until_next_fsm_should_stop.
5359 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5360 (until_next_fsm::do_async_reply_reason): Rename from
5361 until_next_fsm_async_reply_reason.
5362 (struct finish_command_fsm): Inherit from thread_fsm. Add
5363 constructor. Change type of breakpoint.
5364 (finish_command_fsm_ops): Remove.
5365 (new_finish_command_fsm): Remove.
5366 (finish_command_fsm::should_stop): Rename from
5367 finish_command_fsm_should_stop.
5368 (finish_command_fsm::clean_up): Rename from
5369 finish_command_fsm_clean_up.
5370 (finish_command_fsm::return_value): Rename from
5371 finish_command_fsm_return_value.
5372 (finish_command_fsm::do_async_reply_reason): Rename from
5373 finish_command_fsm_async_reply_reason.
5374 (finish_command): Update.
5375 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5377 (call_thread_fsm_ops): Remove.
5378 (call_thread_fsm::call_thread_fsm): Rename from
5379 new_call_thread_fsm.
5380 (call_thread_fsm::should_stop): Rename from
5381 call_thread_fsm_should_stop.
5382 (call_thread_fsm::should_notify_stop): Rename from
5383 call_thread_fsm_should_notify_stop.
5384 (run_inferior_call, call_function_by_hand_dummy): Update.
5385 * cli/cli-interp.c (should_print_stop_to_console): Update.
5386 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5387 Add constructor. Change type of location_breakpoint,
5389 (until_break_fsm_ops): Remove.
5390 (new_until_break_fsm): Remove.
5391 (until_break_fsm::should_stop): Rename from
5392 until_break_fsm_should_stop.
5393 (until_break_fsm::clean_up): Rename from
5394 until_break_fsm_clean_up.
5395 (until_break_fsm::do_async_reply_reason): Rename from
5396 until_break_fsm_async_reply_reason.
5397 (until_break_command): Update.
5398 * thread-fsm.c: Remove.
5399 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5401 2019-02-07 Tom Tromey <tom@tromey.com>
5403 * yy-remap.h: Add include guard.
5404 * xtensa-tdep.h: Add include guard.
5405 * xcoffread.h: Rename include guard.
5406 * varobj-iter.h: Add include guard.
5407 * tui/tui.h: Rename include guard.
5408 * tui/tui-winsource.h: Rename include guard.
5409 * tui/tui-wingeneral.h: Rename include guard.
5410 * tui/tui-windata.h: Rename include guard.
5411 * tui/tui-win.h: Rename include guard.
5412 * tui/tui-stack.h: Rename include guard.
5413 * tui/tui-source.h: Rename include guard.
5414 * tui/tui-regs.h: Rename include guard.
5415 * tui/tui-out.h: Rename include guard.
5416 * tui/tui-layout.h: Rename include guard.
5417 * tui/tui-io.h: Rename include guard.
5418 * tui/tui-hooks.h: Rename include guard.
5419 * tui/tui-file.h: Rename include guard.
5420 * tui/tui-disasm.h: Rename include guard.
5421 * tui/tui-data.h: Rename include guard.
5422 * tui/tui-command.h: Rename include guard.
5423 * tic6x-tdep.h: Add include guard.
5424 * target/waitstatus.h: Rename include guard.
5425 * target/wait.h: Rename include guard.
5426 * target/target.h: Rename include guard.
5427 * target/resume.h: Rename include guard.
5428 * target-float.h: Rename include guard.
5429 * stabsread.h: Add include guard.
5430 * rs6000-tdep.h: Add include guard.
5431 * riscv-fbsd-tdep.h: Add include guard.
5432 * regformats/regdef.h: Rename include guard.
5433 * record.h: Rename include guard.
5434 * python/python.h: Rename include guard.
5435 * python/python-internal.h: Rename include guard.
5436 * python/py-stopevent.h: Rename include guard.
5437 * python/py-ref.h: Rename include guard.
5438 * python/py-record.h: Rename include guard.
5439 * python/py-record-full.h: Rename include guard.
5440 * python/py-record-btrace.h: Rename include guard.
5441 * python/py-instruction.h: Rename include guard.
5442 * python/py-events.h: Rename include guard.
5443 * python/py-event.h: Rename include guard.
5444 * procfs.h: Add include guard.
5445 * proc-utils.h: Add include guard.
5446 * p-lang.h: Add include guard.
5447 * or1k-tdep.h: Rename include guard.
5448 * observable.h: Rename include guard.
5449 * nto-tdep.h: Rename include guard.
5450 * nat/x86-linux.h: Rename include guard.
5451 * nat/x86-linux-dregs.h: Rename include guard.
5452 * nat/x86-gcc-cpuid.h: Add include guard.
5453 * nat/x86-dregs.h: Rename include guard.
5454 * nat/x86-cpuid.h: Rename include guard.
5455 * nat/ppc-linux.h: Rename include guard.
5456 * nat/mips-linux-watch.h: Rename include guard.
5457 * nat/linux-waitpid.h: Rename include guard.
5458 * nat/linux-ptrace.h: Rename include guard.
5459 * nat/linux-procfs.h: Rename include guard.
5460 * nat/linux-osdata.h: Rename include guard.
5461 * nat/linux-nat.h: Rename include guard.
5462 * nat/linux-namespaces.h: Rename include guard.
5463 * nat/linux-btrace.h: Rename include guard.
5464 * nat/glibc_thread_db.h: Rename include guard.
5465 * nat/gdb_thread_db.h: Rename include guard.
5466 * nat/gdb_ptrace.h: Rename include guard.
5467 * nat/fork-inferior.h: Rename include guard.
5468 * nat/amd64-linux-siginfo.h: Rename include guard.
5469 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5470 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5471 * nat/aarch64-linux.h: Rename include guard.
5472 * nat/aarch64-linux-hw-point.h: Rename include guard.
5473 * mn10300-tdep.h: Add include guard.
5474 * mips-linux-tdep.h: Add include guard.
5475 * mi/mi-parse.h: Rename include guard.
5476 * mi/mi-out.h: Rename include guard.
5477 * mi/mi-main.h: Rename include guard.
5478 * mi/mi-interp.h: Rename include guard.
5479 * mi/mi-getopt.h: Rename include guard.
5480 * mi/mi-console.h: Rename include guard.
5481 * mi/mi-common.h: Rename include guard.
5482 * mi/mi-cmds.h: Rename include guard.
5483 * mi/mi-cmd-break.h: Rename include guard.
5484 * m2-lang.h: Add include guard.
5485 * location.h: Rename include guard.
5486 * linux-record.h: Rename include guard.
5487 * linux-nat.h: Add include guard.
5488 * linux-fork.h: Add include guard.
5489 * i386-darwin-tdep.h: Rename include guard.
5490 * hppa-linux-offsets.h: Add include guard.
5491 * guile/guile.h: Rename include guard.
5492 * guile/guile-internal.h: Rename include guard.
5493 * gnu-nat.h: Rename include guard.
5494 * gdb-stabs.h: Rename include guard.
5495 * frv-tdep.h: Add include guard.
5496 * f-lang.h: Add include guard.
5497 * event-loop.h: Add include guard.
5498 * darwin-nat.h: Rename include guard.
5499 * cp-abi.h: Rename include guard.
5500 * config/sparc/nm-sol2.h: Rename include guard.
5501 * config/nm-nto.h: Rename include guard.
5502 * config/nm-linux.h: Add include guard.
5503 * config/i386/nm-i386gnu.h: Rename include guard.
5504 * config/djgpp/nl_types.h: Rename include guard.
5505 * config/djgpp/langinfo.h: Rename include guard.
5506 * compile/gcc-cp-plugin.h: Add include guard.
5507 * compile/gcc-c-plugin.h: Add include guard.
5508 * compile/compile.h: Rename include guard.
5509 * compile/compile-object-run.h: Rename include guard.
5510 * compile/compile-object-load.h: Rename include guard.
5511 * compile/compile-internal.h: Rename include guard.
5512 * compile/compile-cplus.h: Rename include guard.
5513 * compile/compile-c.h: Rename include guard.
5514 * common/xml-utils.h: Rename include guard.
5515 * common/x86-xstate.h: Rename include guard.
5516 * common/version.h: Rename include guard.
5517 * common/vec.h: Rename include guard.
5518 * common/tdesc.h: Rename include guard.
5519 * common/selftest.h: Rename include guard.
5520 * common/scoped_restore.h: Rename include guard.
5521 * common/scoped_mmap.h: Rename include guard.
5522 * common/scoped_fd.h: Rename include guard.
5523 * common/safe-iterator.h: Rename include guard.
5524 * common/run-time-clock.h: Rename include guard.
5525 * common/refcounted-object.h: Rename include guard.
5526 * common/queue.h: Rename include guard.
5527 * common/ptid.h: Rename include guard.
5528 * common/print-utils.h: Rename include guard.
5529 * common/preprocessor.h: Rename include guard.
5530 * common/pathstuff.h: Rename include guard.
5531 * common/observable.h: Rename include guard.
5532 * common/netstuff.h: Rename include guard.
5533 * common/job-control.h: Rename include guard.
5534 * common/host-defs.h: Rename include guard.
5535 * common/gdb_wait.h: Rename include guard.
5536 * common/gdb_vecs.h: Rename include guard.
5537 * common/gdb_unlinker.h: Rename include guard.
5538 * common/gdb_unique_ptr.h: Rename include guard.
5539 * common/gdb_tilde_expand.h: Rename include guard.
5540 * common/gdb_sys_time.h: Rename include guard.
5541 * common/gdb_string_view.h: Rename include guard.
5542 * common/gdb_splay_tree.h: Rename include guard.
5543 * common/gdb_setjmp.h: Rename include guard.
5544 * common/gdb_ref_ptr.h: Rename include guard.
5545 * common/gdb_optional.h: Rename include guard.
5546 * common/gdb_locale.h: Rename include guard.
5547 * common/gdb_assert.h: Rename include guard.
5548 * common/filtered-iterator.h: Rename include guard.
5549 * common/filestuff.h: Rename include guard.
5550 * common/fileio.h: Rename include guard.
5551 * common/environ.h: Rename include guard.
5552 * common/common-utils.h: Rename include guard.
5553 * common/common-types.h: Rename include guard.
5554 * common/common-regcache.h: Rename include guard.
5555 * common/common-inferior.h: Rename include guard.
5556 * common/common-gdbthread.h: Rename include guard.
5557 * common/common-exceptions.h: Rename include guard.
5558 * common/common-defs.h: Rename include guard.
5559 * common/common-debug.h: Rename include guard.
5560 * common/cleanups.h: Rename include guard.
5561 * common/buffer.h: Rename include guard.
5562 * common/btrace-common.h: Rename include guard.
5563 * common/break-common.h: Rename include guard.
5564 * cli/cli-utils.h: Rename include guard.
5565 * cli/cli-style.h: Rename include guard.
5566 * cli/cli-setshow.h: Rename include guard.
5567 * cli/cli-script.h: Rename include guard.
5568 * cli/cli-interp.h: Rename include guard.
5569 * cli/cli-decode.h: Rename include guard.
5570 * cli/cli-cmds.h: Rename include guard.
5571 * charset-list.h: Add include guard.
5572 * buildsym-legacy.h: Rename include guard.
5573 * bfin-tdep.h: Add include guard.
5574 * ax.h: Rename include guard.
5575 * arm-linux-tdep.h: Add include guard.
5576 * arm-fbsd-tdep.h: Add include guard.
5577 * arch/xtensa.h: Rename include guard.
5578 * arch/tic6x.h: Add include guard.
5579 * arch/i386.h: Add include guard.
5580 * arch/arm.h: Rename include guard.
5581 * arch/arm-linux.h: Rename include guard.
5582 * arch/arm-get-next-pcs.h: Rename include guard.
5583 * arch/amd64.h: Add include guard.
5584 * arch/aarch64-insn.h: Rename include guard.
5585 * arch-utils.h: Rename include guard.
5586 * annotate.h: Add include guard.
5587 * amd64-darwin-tdep.h: Rename include guard.
5588 * aarch64-linux-tdep.h: Add include guard.
5589 * aarch64-fbsd-tdep.h: Add include guard.
5590 * aarch32-linux-nat.h: Add include guard.
5592 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5594 * macrotab.c (macro_define_internal): New function that
5595 factorizes macro_define_object_internal and macro_define_function
5597 (macro_define_object_internal): Use macro_define_internal.
5598 (macro_define_function): Likewise.
5600 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5602 * macrocmd.c (extract_identifier): Return
5603 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5606 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5608 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5610 2019-02-05 Tom Tromey <tom@tromey.com>
5612 * target.c (target_stack::unpush): Move assertion earlier.
5614 2019-01-30 Tom Tromey <tom@tromey.com>
5617 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5618 (gdbpy_parse_and_eval): Likewise.
5619 * python/python-internal.h (gdbpy_allow_threads): New class.
5621 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5623 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5624 (aarch64_fbsd_fpregmap): Move earlier.
5625 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5626 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5627 instead of individual calls to trad_frame_set_reg_addr.
5628 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5630 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5631 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5632 instead of individual calls to trad_frame_set_reg_addr.
5634 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5636 * CONTRIBUTE: Replace contribution list with wiki link.
5638 2019-01-25 Tom Tromey <tom@tromey.com>
5640 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5642 2019-01-25 Tom Tromey <tom@tromey.com>
5644 * xtensa-linux-nat.c: Fix common/ includes.
5645 * xml-support.h: Fix common/ includes.
5646 * xml-support.c: Fix common/ includes.
5647 * x86-linux-nat.c: Fix common/ includes.
5648 * windows-nat.c: Fix common/ includes.
5649 * varobj.h: Fix common/ includes.
5650 * varobj.c: Fix common/ includes.
5651 * value.c: Fix common/ includes.
5652 * valops.c: Fix common/ includes.
5653 * utils.c: Fix common/ includes.
5654 * unittests/xml-utils-selftests.c: Fix common/ includes.
5655 * unittests/utils-selftests.c: Fix common/ includes.
5656 * unittests/unpack-selftests.c: Fix common/ includes.
5657 * unittests/tracepoint-selftests.c: Fix common/ includes.
5658 * unittests/style-selftests.c: Fix common/ includes.
5659 * unittests/string_view-selftests.c: Fix common/ includes.
5660 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5661 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5662 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5663 * unittests/rsp-low-selftests.c: Fix common/ includes.
5664 * unittests/parse-connection-spec-selftests.c: Fix common/
5666 * unittests/optional-selftests.c: Fix common/ includes.
5667 * unittests/offset-type-selftests.c: Fix common/ includes.
5668 * unittests/observable-selftests.c: Fix common/ includes.
5669 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5670 * unittests/memrange-selftests.c: Fix common/ includes.
5671 * unittests/memory-map-selftests.c: Fix common/ includes.
5672 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5673 * unittests/function-view-selftests.c: Fix common/ includes.
5674 * unittests/environ-selftests.c: Fix common/ includes.
5675 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5676 * unittests/common-utils-selftests.c: Fix common/ includes.
5677 * unittests/cli-utils-selftests.c: Fix common/ includes.
5678 * unittests/array-view-selftests.c: Fix common/ includes.
5679 * ui-file.c: Fix common/ includes.
5680 * tui/tui-io.c: Fix common/ includes.
5681 * tracepoint.h: Fix common/ includes.
5682 * tracepoint.c: Fix common/ includes.
5683 * tracefile-tfile.c: Fix common/ includes.
5684 * top.h: Fix common/ includes.
5685 * top.c: Fix common/ includes.
5686 * thread.c: Fix common/ includes.
5687 * target/waitstatus.h: Fix common/ includes.
5688 * target/waitstatus.c: Fix common/ includes.
5689 * target.h: Fix common/ includes.
5690 * target.c: Fix common/ includes.
5691 * target-memory.c: Fix common/ includes.
5692 * target-descriptions.c: Fix common/ includes.
5693 * symtab.h: Fix common/ includes.
5694 * symfile.c: Fix common/ includes.
5695 * stap-probe.c: Fix common/ includes.
5696 * spu-linux-nat.c: Fix common/ includes.
5697 * sparc-nat.c: Fix common/ includes.
5698 * source.c: Fix common/ includes.
5699 * solib.c: Fix common/ includes.
5700 * solib-target.c: Fix common/ includes.
5701 * ser-unix.c: Fix common/ includes.
5702 * ser-tcp.c: Fix common/ includes.
5703 * ser-pipe.c: Fix common/ includes.
5704 * ser-base.c: Fix common/ includes.
5705 * selftest-arch.c: Fix common/ includes.
5706 * s12z-tdep.c: Fix common/ includes.
5707 * rust-exp.y: Fix common/ includes.
5708 * rs6000-aix-tdep.c: Fix common/ includes.
5709 * riscv-tdep.c: Fix common/ includes.
5710 * remote.c: Fix common/ includes.
5711 * remote-notif.h: Fix common/ includes.
5712 * remote-fileio.h: Fix common/ includes.
5713 * remote-fileio.c: Fix common/ includes.
5714 * regcache.h: Fix common/ includes.
5715 * regcache.c: Fix common/ includes.
5716 * record-btrace.c: Fix common/ includes.
5717 * python/python.c: Fix common/ includes.
5718 * python/py-type.c: Fix common/ includes.
5719 * python/py-inferior.c: Fix common/ includes.
5720 * progspace.h: Fix common/ includes.
5721 * producer.c: Fix common/ includes.
5722 * procfs.c: Fix common/ includes.
5723 * proc-api.c: Fix common/ includes.
5724 * printcmd.c: Fix common/ includes.
5725 * ppc-linux-nat.c: Fix common/ includes.
5726 * parser-defs.h: Fix common/ includes.
5727 * osdata.c: Fix common/ includes.
5728 * obsd-nat.c: Fix common/ includes.
5729 * nat/x86-linux.c: Fix common/ includes.
5730 * nat/x86-linux-dregs.c: Fix common/ includes.
5731 * nat/x86-dregs.h: Fix common/ includes.
5732 * nat/x86-dregs.c: Fix common/ includes.
5733 * nat/ppc-linux.c: Fix common/ includes.
5734 * nat/mips-linux-watch.h: Fix common/ includes.
5735 * nat/mips-linux-watch.c: Fix common/ includes.
5736 * nat/linux-waitpid.c: Fix common/ includes.
5737 * nat/linux-ptrace.h: Fix common/ includes.
5738 * nat/linux-ptrace.c: Fix common/ includes.
5739 * nat/linux-procfs.c: Fix common/ includes.
5740 * nat/linux-personality.c: Fix common/ includes.
5741 * nat/linux-osdata.c: Fix common/ includes.
5742 * nat/linux-namespaces.c: Fix common/ includes.
5743 * nat/linux-btrace.h: Fix common/ includes.
5744 * nat/linux-btrace.c: Fix common/ includes.
5745 * nat/fork-inferior.c: Fix common/ includes.
5746 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5747 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5748 * nat/aarch64-linux.c: Fix common/ includes.
5749 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5750 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5751 * namespace.h: Fix common/ includes.
5752 * mips-linux-tdep.c: Fix common/ includes.
5753 * minsyms.c: Fix common/ includes.
5754 * mi/mi-parse.h: Fix common/ includes.
5755 * mi/mi-main.c: Fix common/ includes.
5756 * mi/mi-cmd-env.c: Fix common/ includes.
5757 * memrange.h: Fix common/ includes.
5758 * memattr.c: Fix common/ includes.
5759 * maint.h: Fix common/ includes.
5760 * maint.c: Fix common/ includes.
5761 * main.c: Fix common/ includes.
5762 * machoread.c: Fix common/ includes.
5763 * location.c: Fix common/ includes.
5764 * linux-thread-db.c: Fix common/ includes.
5765 * linux-nat.c: Fix common/ includes.
5766 * linux-fork.c: Fix common/ includes.
5767 * inline-frame.c: Fix common/ includes.
5768 * infrun.c: Fix common/ includes.
5769 * inflow.c: Fix common/ includes.
5770 * inferior.h: Fix common/ includes.
5771 * inferior.c: Fix common/ includes.
5772 * infcmd.c: Fix common/ includes.
5773 * inf-ptrace.c: Fix common/ includes.
5774 * inf-child.c: Fix common/ includes.
5775 * ia64-linux-nat.c: Fix common/ includes.
5776 * i387-tdep.c: Fix common/ includes.
5777 * i386-tdep.c: Fix common/ includes.
5778 * i386-linux-tdep.c: Fix common/ includes.
5779 * i386-linux-nat.c: Fix common/ includes.
5780 * i386-go32-tdep.c: Fix common/ includes.
5781 * i386-fbsd-tdep.c: Fix common/ includes.
5782 * i386-fbsd-nat.c: Fix common/ includes.
5783 * guile/scm-type.c: Fix common/ includes.
5784 * guile/guile.c: Fix common/ includes.
5785 * go32-nat.c: Fix common/ includes.
5786 * gnu-nat.c: Fix common/ includes.
5787 * gdbthread.h: Fix common/ includes.
5788 * gdbarch-selftests.c: Fix common/ includes.
5789 * gdb_usleep.c: Fix common/ includes.
5790 * gdb_select.h: Fix common/ includes.
5791 * gdb_bfd.c: Fix common/ includes.
5792 * gcore.c: Fix common/ includes.
5793 * fork-child.c: Fix common/ includes.
5794 * findvar.c: Fix common/ includes.
5795 * fbsd-nat.c: Fix common/ includes.
5796 * event-top.c: Fix common/ includes.
5797 * event-loop.c: Fix common/ includes.
5798 * dwarf2read.c: Fix common/ includes.
5799 * dwarf2loc.c: Fix common/ includes.
5800 * dwarf2-frame.c: Fix common/ includes.
5801 * dwarf-index-cache.c: Fix common/ includes.
5802 * dtrace-probe.c: Fix common/ includes.
5803 * disasm-selftests.c: Fix common/ includes.
5804 * defs.h: Fix common/ includes.
5805 * csky-tdep.c: Fix common/ includes.
5806 * cp-valprint.c: Fix common/ includes.
5807 * cp-support.h: Fix common/ includes.
5808 * cp-support.c: Fix common/ includes.
5809 * corelow.c: Fix common/ includes.
5810 * completer.h: Fix common/ includes.
5811 * completer.c: Fix common/ includes.
5812 * compile/compile.c: Fix common/ includes.
5813 * compile/compile-loc2c.c: Fix common/ includes.
5814 * compile/compile-cplus-types.c: Fix common/ includes.
5815 * compile/compile-cplus-symbols.c: Fix common/ includes.
5816 * command.h: Fix common/ includes.
5817 * cli/cli-dump.c: Fix common/ includes.
5818 * cli/cli-cmds.c: Fix common/ includes.
5819 * charset.c: Fix common/ includes.
5820 * build-id.c: Fix common/ includes.
5821 * btrace.h: Fix common/ includes.
5822 * btrace.c: Fix common/ includes.
5823 * breakpoint.h: Fix common/ includes.
5824 * breakpoint.c: Fix common/ includes.
5826 (enum agent_op): Fix common/ includes.
5827 * ax-general.c (struct aop_map): Fix common/ includes.
5828 * ax-gdb.c: Fix common/ includes.
5829 * auxv.c: Fix common/ includes.
5830 * auto-load.c: Fix common/ includes.
5831 * arm-tdep.c: Fix common/ includes.
5832 * arch/riscv.c: Fix common/ includes.
5833 * arch/ppc-linux-common.c: Fix common/ includes.
5834 * arch/i386.c: Fix common/ includes.
5835 * arch/arm.c: Fix common/ includes.
5836 * arch/arm-linux.c: Fix common/ includes.
5837 * arch/arm-get-next-pcs.c: Fix common/ includes.
5838 * arch/amd64.c: Fix common/ includes.
5839 * arch/aarch64.c: Fix common/ includes.
5840 * arch/aarch64-insn.c: Fix common/ includes.
5841 * arch-utils.c: Fix common/ includes.
5842 * amd64-windows-tdep.c: Fix common/ includes.
5843 * amd64-tdep.c: Fix common/ includes.
5844 * amd64-sol2-tdep.c: Fix common/ includes.
5845 * amd64-obsd-tdep.c: Fix common/ includes.
5846 * amd64-nbsd-tdep.c: Fix common/ includes.
5847 * amd64-linux-tdep.c: Fix common/ includes.
5848 * amd64-linux-nat.c: Fix common/ includes.
5849 * amd64-fbsd-tdep.c: Fix common/ includes.
5850 * amd64-fbsd-nat.c: Fix common/ includes.
5851 * amd64-dicos-tdep.c: Fix common/ includes.
5852 * amd64-darwin-tdep.c: Fix common/ includes.
5853 * agent.c: Fix common/ includes.
5854 * ada-lang.h: Fix common/ includes.
5855 * ada-lang.c: Fix common/ includes.
5856 * aarch64-tdep.c: Fix common/ includes.
5858 2019-01-25 Tom Tromey <tom@tromey.com>
5860 * common/create-version.sh: Use common/version.h.
5862 2019-01-24 Pedro Alves <palves@redhat.com>
5864 * infrun.c (signal_stop, signal_print, signal_program)
5865 (signal_catch, signal_pass): Now arrays instead of pointers.
5866 (update_signals_program_target, do_target_resume)
5867 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5868 * linux-nat.c (linux_nat_target::pass_signals)
5869 (linux_nat_target::create_inferior, linux_nat_target::attach):
5871 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5872 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5873 * procfs.c (procfs_target::pass_signals): Adjust.
5874 * record-full.c (record_full_target::resume): Adjust.
5875 * remote.c (remote_target::pass_signals)
5876 (remote_target::program_signals): Adjust.
5877 * target-debug.h (target_debug_print_signals): Now takes a
5878 gdb::array_view as parameter. Adjust.
5879 * target.h (target_ops) <pass_signals, program_signals>: Replace
5880 pointer and length parameters with gdb::array_view.
5881 (target_pass_signals, target_program_signals): Likewise.
5882 * target-delegates.c: Regenerate.
5884 2019-01-24 Pedro Alves <palves@redhat.com>
5886 * common/forward-scope-exit.h
5887 (forward_scope_exit::forward_scope_exit): Pass arguments to
5888 m_bind_function directly, instead of creating a std::bind and
5891 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5893 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5895 (pass_in_v_vfp_candidate): Likewise.
5897 2019-01-23 Tom Tromey <tom@tromey.com>
5898 Pedro Alves <palves@redhat.com>
5900 * regcache.c (class regcache_invalidator): Remove.
5901 (regcache::raw_write): Use make_scope_exit.
5903 2019-01-23 Tom Tromey <tom@tromey.com>
5905 * ui-out.h (class ui_out_emit_type): Update comment.
5907 2019-01-23 Tom Tromey <tom@tromey.com>
5909 * infrun.c (fetch_inferior_event): Update comment.
5911 2019-01-23 Tom Tromey <tom@tromey.com>
5912 Pedro Alves <palves@redhat.com>
5914 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5916 (fetch_inferior_event): Use SCOPE_EXIT.
5919 2019-01-23 Tom Tromey <tom@tromey.com>
5920 Pedro Alves <palves@redhat.com>
5922 * infrun.c (disable_thread_events): Delete.
5923 (stop_all_threads): Use SCOPE_EXIT.
5925 2019-01-23 Tom Tromey <tom@tromey.com>
5926 Pedro Alves <palves@redhat.com>
5928 * symfile.c: Include forward-scope-exit.h.
5929 (clear_symtab_users_cleanup): Replace forward declaration with
5930 a FORWARD_SCOPE_EXIT.
5931 (syms_from_objfile_1): Use the forward_scope_exit and
5932 gdb::optional instead of cleanup_function.
5933 (reread_symbols): Use the forward_scope_exit instead of
5935 (clear_symtab_users_cleanup): Remove function.
5937 2019-01-23 Tom Tromey <tom@tromey.com>
5938 Pedro Alves <palves@redhat.com>
5940 * linux-nat.c: Include scope-exit.h.
5941 (cleanup_target_stop): Remove.
5942 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5945 2019-01-23 Tom Tromey <tom@tromey.com>
5946 Pedro Alves <palves@redhat.com>
5948 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5949 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5951 2019-01-23 Tom Tromey <tom@tromey.com>
5952 Andrew Burgess <andrew.burgess@embecosm.com>
5953 Pedro Alves <palves@redhat.com>
5955 * infrun.c (fetch_inferior_event): Use scope_exit.
5956 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5957 * top.c (execute_command): Use scope_exit.
5958 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5959 * utils.c (do_bpstat_clear_actions_cleanup)
5960 (make_bpstat_clear_actions_cleanup): Remove.
5962 2019-01-23 Tom Tromey <tom@tromey.com>
5963 Pedro Alves <palves@redhat.com>
5965 * infrun.c: Include "common/scope-exit.h"
5966 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5967 (wait_for_inferior): Use SCOPE_EXIT.
5968 (fetch_inferior_event): Use scope_exit.
5970 2019-01-23 Tom Tromey <tom@tromey.com>
5971 Pedro Alves <palves@redhat.com>
5973 * breakpoint.c (create_breakpoint): Remove cleanup.
5975 2019-01-23 Tom Tromey <tom@tromey.com>
5976 Andrew Burgess <andrew.burgess@embecosm.com>
5977 Pedro Alves <palves@redhat.com>
5979 2019-01-23 Pedro Alves <palves@redhat.com>
5981 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5983 2019-01-23 Pedro Alves <palves@redhat.com>
5984 Andrew Burgess <andrew.burgess@embecosm.com>
5986 * gdbthread.h: Include "common/forward-scope-exit.h".
5987 (scoped_finish_thread_state): Redefine custom class in terms of
5990 2019-01-23 Pedro Alves <palves@redhat.com>
5991 Andrew Burgess <andrew.burgess@embecosm.com>
5993 * common/forward-scope-exit.h: New file.
5995 2019-01-23 Pedro Alves <palves@redhat.com>
5996 Andrew Burgess <andrew.burgess@embecosm.com>
5997 Tom Tromey <tom@tromey.com>
5999 * common/scope-exit.h: New file.
6001 2019-01-23 Pedro Alves <palves@redhat.com>
6003 * common/preprocessor.h (ESC): Rename to ...
6004 (ESC_PARENS): ... this.
6005 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6006 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6008 2019-01-23 Tom Tromey <tom@tromey.com>
6010 * language.h (class scoped_switch_to_sym_language_if_auto):
6011 Initialize m_lang in both cases.
6013 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6015 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6018 2019-01-22 Tom Tromey <tom@tromey.com>
6020 * corelow.c: Do not include sys/file.h.
6022 2019-01-22 Tom Tromey <tom@tromey.com>
6024 * tui/tui-wingeneral.h: Include gdb_curses.h.
6026 2019-01-22 Tom Tromey <tom@tromey.com>
6028 * source-cache.h (class source_cache) <get_source_lines,
6029 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6031 2019-01-22 Tom Tromey <tom@tromey.com>
6033 * remote-fileio.h (struct remote_target): Declare.
6035 2019-01-22 Tom Tromey <tom@tromey.com>
6037 * python/py-arch.c: Do not include py-ref.h.
6038 * python/py-bpevent.c: Do not include py-ref.h.
6039 * python/py-cmd.c: Do not include py-ref.h.
6040 * python/py-continueevent.c: Do not include py-ref.h.
6041 * python/py-event.h: Do not include py-ref.h.
6042 * python/py-evtregistry.c: Do not include py-ref.h.
6043 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6044 * python/py-frame.c: Do not include py-ref.h.
6045 * python/py-framefilter.c: Do not include py-ref.h.
6046 * python/py-function.c: Do not include py-ref.h.
6047 * python/py-infevents.c: Do not include py-ref.h.
6048 * python/py-linetable.c: Do not include py-ref.h.
6049 * python/py-objfile.c: Do not include py-ref.h.
6050 * python/py-param.c: Do not include py-ref.h.
6051 * python/py-prettyprint.c: Do not include py-ref.h.
6052 * python/py-progspace.c: Do not include py-ref.h.
6053 * python/py-symbol.c: Do not include py-ref.h.
6054 * python/py-symtab.c: Do not include py-ref.h.
6055 * python/py-type.c: Do not include py-ref.h.
6056 * python/py-unwind.c: Do not include py-ref.h.
6057 * python/py-utils.c: Do not include py-ref.h.
6058 * python/py-value.c: Do not include py-ref.h.
6059 * python/py-varobj.c: Do not include py-ref.h.
6060 * python/py-xmethods.c: Do not include py-ref.h.
6061 * python/python.c: Do not include py-ref.h.
6062 * varobj.c: Do not include py-ref.h.
6064 2019-01-22 Tom Tromey <tom@tromey.com>
6066 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6069 2019-01-22 Tom Tromey <tom@tromey.com>
6071 * compile/compile-cplus-types.c: Remove a comment by #include.
6073 2019-01-22 Tom Tromey <tom@tromey.com>
6075 * compile/gcc-c-plugin.h: Include compile-internal.h.
6077 2019-01-22 Tom Tromey <tom@tromey.com>
6079 * stabsread.c (EXTERN): Do not define.
6080 (symnum, next_symbol_text_func, processing_gcc_compilation)
6081 (within_function, global_sym_chain, global_stabs)
6082 (previous_stab_code, this_object_header_files)
6083 (n_this_object_header_files)
6084 (n_allocated_this_object_header_files): Define.
6085 * stabsread.h (EXTERN): Never define. Use "extern".
6087 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6089 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6092 2019-01-21 Tom Tromey <tom@tromey.com>
6094 * ui-out.c: Fix includes.
6095 * tui/tui-source.c: Fix includes.
6096 * target.c: Fix includes.
6097 * remote.c: Fix includes.
6098 * regcache.c: Fix includes.
6099 * python/py-block.c: Fix includes.
6100 * printcmd.c: Fix includes.
6101 * or1k-tdep.c: Fix includes.
6102 * mi/mi-main.c: Fix includes.
6103 * m32r-tdep.c: Fix includes.
6104 * csky-tdep.c: Fix includes.
6105 * compile/compile-cplus-types.c: Fix includes.
6106 * cli/cli-interp.c: Fix includes.
6108 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6110 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6113 2019-01-16 Tom Tromey <tom@tromey.com>
6115 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6117 (struct objfile) <msymbols_range>: Move from top level.
6118 <msymbols>: New method.
6119 (class objfile_msymbols): Remove.
6120 * symtab.c (default_collect_symbol_completion_matches_break_on):
6122 * symmisc.c (dump_msymbols): Update.
6123 * stabsread.c (scan_file_globals): Update.
6124 * objc-lang.c (info_selectors_command, info_classes_command)
6125 (find_methods): Update.
6126 * minsyms.c (find_solib_trampoline_target): Update.
6127 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6128 * coffread.c (coff_symfile_read): Update.
6129 * ada-lang.c (ada_lookup_simple_minsym)
6130 (ada_collect_symbol_completion_matches): Update.
6132 2019-01-16 Tom Tromey <tom@tromey.com>
6134 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6135 type. Remove no-argument constructor.
6136 <iterator::operator++>: Simplify.
6138 <end>: Use minimal_symbol_count.
6140 2019-01-16 Tom Tromey <tom@tromey.com>
6142 * objfiles.h (struct objfile) <psymtabs>: New method.
6143 (class objfile_psymtabs): Remove.
6144 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6146 <range>: New method.
6147 (require_partial_symbols): Change return type.
6148 * psymtab.c (require_partial_symbols)
6149 (psym_expand_symtabs_matching): Update.
6150 * mdebugread.c (parse_partial_symbols): Update.
6151 * dbxread.c (dbx_end_psymtab): Update.
6153 2019-01-15 Tom Tromey <tom@tromey.com>
6155 * symtab.c (lookup_objfile_from_block)
6156 (lookup_symbol_in_objfile_symtabs)
6157 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6158 (find_line_symtab, info_sources_command)
6159 (default_collect_symbol_completion_matches_break_on)
6160 (make_source_files_completion_list): Update.
6161 * symmisc.c (print_objfile_statistics, dump_objfile)
6162 (maintenance_print_symbols, maintenance_info_symtabs)
6163 (maintenance_check_symtabs, maintenance_info_line_tables):
6165 * source.c (select_source_symtab)
6166 (forget_cached_source_info_for_objfile): Update.
6167 * objfiles.h (class objfile_compunits): Remove.
6168 (struct objfile) <compunits_range>: New typedef.
6169 (compunits): New method.
6170 * objfiles.c (objfile_relocate1): Update.
6171 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6172 * maint.c (count_symtabs_and_blocks): Update.
6173 * linespec.c (iterate_over_all_matching_symtabs): Update.
6174 * cp-support.c (add_symbol_overload_list_qualified): Update.
6175 * coffread.c (coff_symtab_read): Update.
6176 * ada-lang.c (add_nonlocal_symbols)
6177 (ada_collect_symbol_completion_matches)
6178 (ada_add_global_exceptions): Update.
6180 2019-01-15 Tom Tromey <tom@tromey.com>
6182 * progspace.h (program_space) <objfiles_safe_range>: New
6184 <objfiles_safe>: New method.
6185 * objfiles.h (class all_objfiles_safe): Remove.
6186 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6187 * jit.c (jit_inferior_exit_hook): Update.
6189 2019-01-17 Tom Tromey <tom@tromey.com>
6191 * progspace.h (program_space) <objfiles_range>: New typedef.
6192 <objfiles>: New method.
6193 <objfiles_head>: Rename from objfiles.
6194 (object_files): Update.
6195 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6196 * guile/scm-pretty-print.c
6197 (ppscm_find_pretty_printer_from_objfiles): Update.
6198 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6199 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6201 * python/py-progspace.c (pspy_get_objfiles): Update.
6202 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6204 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6205 (objfpy_lookup_objfile_by_build_id): Update.
6206 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6207 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6209 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6210 (expand_symtab_containing_pc, lookup_objfile_from_block)
6211 (lookup_static_symbol, basic_lookup_transparent_type)
6212 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6213 (find_line_symtab, info_sources_command)
6214 (default_collect_symbol_completion_matches_break_on)
6215 (make_source_files_completion_list, find_main_name): Update.
6216 * symmisc.c (print_symbol_bcache_statistics)
6217 (print_objfile_statistics, maintenance_print_symbols)
6218 (maintenance_print_msymbols, maintenance_print_objfiles)
6219 (maintenance_info_symtabs, maintenance_check_symtabs)
6220 (maintenance_expand_symtabs, maintenance_info_line_tables):
6222 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6223 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6224 (map_overlay_command, unmap_overlay_command)
6225 (simple_overlay_update, expand_symtabs_matching)
6226 (map_symbol_filenames): Update.
6227 * symfile-debug.c (set_debug_symfile): Update.
6228 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6230 * source.c (select_source_symtab, forget_cached_source_info):
6232 * solib.c (solib_read_symbols): Update.
6233 * solib-spu.c (append_ocl_sos): Update.
6234 * psymtab.c (maintenance_print_psymbols)
6235 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6236 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6237 * printcmd.c (info_symbol_command): Update.
6238 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6240 * objfiles.h (class all_objfiles): Remove.
6241 * objfiles.c (have_partial_symbols, have_full_symbols)
6242 (have_minimal_symbols, qsort_cmp, update_section_map)
6243 (shared_objfile_contains_address_p)
6244 (default_iterate_over_objfiles_in_search_order): Update.
6245 * objc-lang.c (info_selectors_command, info_classes_command)
6246 (find_methods): Update.
6247 * minsyms.c (find_solib_trampoline_target): Update.
6248 * maint.c (maintenance_info_sections)
6249 (maintenance_translate_address, count_symtabs_and_blocks):
6251 * main.c (captured_main_1): Update.
6252 * linux-thread-db.c (try_thread_db_load_from_pdir)
6253 (has_libpthread): Update.
6254 * linespec.c (iterate_over_all_matching_symtabs)
6255 (search_minsyms_for_name): Update.
6256 * jit.c (jit_find_objf_with_entry_addr): Update.
6257 * hppa-tdep.c (find_unwind_entry)
6258 (hppa_lookup_stub_minimal_symbol): Update.
6259 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6261 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6262 (elf_gnu_ifunc_resolve_by_got): Update.
6263 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6264 * dwarf-index-write.c (save_gdb_index_command): Update.
6265 * cp-support.c (add_symbol_overload_list_qualified): Update.
6266 * breakpoint.c (create_overlay_event_breakpoint)
6267 (create_longjmp_master_breakpoint)
6268 (create_std_terminate_master_breakpoint)
6269 (create_exception_master_breakpoint): Update.
6270 * blockframe.c (find_pc_partial_function): Update.
6271 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6272 (ada_collect_symbol_completion_matches)
6273 (ada_add_global_exceptions): Update.
6275 2019-01-17 Tom Tromey <tom@tromey.com>
6277 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6279 (solib_target_parse_libraries): Change return type.
6280 (library_list_start_segment, library_list_start_section)
6281 (library_list_end_library, library_list_start_library); Update.
6282 (solib_target_free_library_list): Remove.
6283 (solib_target_parse_libraries): Remove cleanup. Change return
6285 (solib_target_current_sos): Update.
6287 2019-01-17 Tom Tromey <tromey@bapiya>
6289 * valprint.c: Replace "the the" with "the".
6290 * symtab.c: Replace "the the" with "the".
6291 * solib.c: Replace "the the" with "the".
6292 * solib-dsbt.c: Replace "the the" with "the".
6293 * linespec.c: Replace "the the" with "the".
6294 * dwarf2loc.h: Replace "the the" with "the".
6295 * amd64-windows-tdep.c: Replace "the the" with "the".
6296 * aarch64-tdep.c: Replace "the the" with "the".
6298 2019-01-16 Keith Seitz <keiths@redhat.com>
6301 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6302 <builder>: Rename to ..
6303 <m_builder>: ... this and make private.
6304 (dwarf2_cu::get_builder): New method. Change all users of
6305 `builder' to use this method.
6306 (dwarf2_start_symtab): Move to ...
6307 (dwarf2_cu::start_symtab): ... here. Update all callers
6308 (setup_type_unit_groups): Move to ...
6309 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6311 (dwarf2_cu::reset_builder): New method.
6312 (process_full_compunit, process_full_type_unit): Use
6313 dwarf2_cu::reset_builder.
6314 (follow_die_offset): Record the ancestor CU if it is different
6315 from the followed DIE's CU.
6316 (follow_die_sig_1): Likewise.
6318 2019-01-15 Tom Tromey <tom@tromey.com>
6320 * remote.c (class remote_state) <buf>: Now a char_vector.
6322 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6324 (remote_target::getpkt_or_notif_sane_1)
6325 (remote_target::getpkt_sane)
6326 (remote_target::getpkt_or_notif_sane): Likewise.
6327 (class remote_target) <putpkt>: New overload.
6328 (remote_target::read_frame): Change type of "buf_p". Remove
6330 (packet_ok): New overload.
6331 (packet_check_result): New overload.
6334 2019-01-14 Tom Tromey <tom@tromey.com>
6336 * remote-notif.c (handle_notification, remote_notif_ack)
6337 (remote_notif_parse): Make "buf" const.
6338 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6340 (remote_notif_parse, remote_notif_ack, handle_notification):
6342 * remote.c (remote_notif_stop_parse): Make "buf" const.
6343 (remote_target::remote_parse_stop_reply): Make "buf" const.
6344 (remote_notif_stop_ack): Make "buf" const.
6346 2019-01-14 Tom Tromey <tom@tromey.com>
6348 * remote.c (remote_console_output): Make parameter const.
6350 2019-01-14 Tom Tromey <tom@tromey.com>
6352 * target-debug.h (target_debug_print_signals): Constify.
6353 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6354 * procfs.c (procfs_target::pass_signals): Update.
6355 * linux-nat.c (linux_nat_target::pass_signals): Update.
6356 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6357 * target-delegates.c: Rebuild.
6358 * remote.c (remote_target::program_signals): Update.
6359 (remote_target::pass_signals): Update.
6360 * target.c (target_pass_signals): Constify argument.
6361 (target_program_signals): Likewise.
6362 * target.h (struct target_ops) <pass_signals, program_signals>:
6364 (target_pass_signals, target_program_signals): Constify argument.
6366 2019-01-14 Tom Tromey <tom@tromey.com>
6369 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6371 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6373 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6375 * rs6000-tdep.c: Include reggroups.h.
6376 (IS_V_ALIAS_PSEUDOREG): Define.
6377 (rs6000_register_name): Return names for the "vX" aliases.
6378 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6379 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6380 aliases. Call default_register_reggroup_p for all other
6382 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6384 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6385 Handle "vX" aliases.
6386 (v_alias_pseudo_register_collect): New function.
6387 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6388 (rs6000_gdbarch_init): Initialize "vX" aliases as
6389 pseudo-registers. Restore registration of
6390 rs6000_pseudo_register_reggroup_p with
6391 set_tdesc_pseudo_register_reggroup_p.
6393 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6395 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6396 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6397 set_gdbarch_num_pseudo_regs.
6399 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6401 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6402 Remove arg prefixname, add do_set and do_show.
6403 Add member functions set_list and show_list.
6404 * cli/cli-style.c (class cli_style_option): Update accordingly.
6405 (style_set_list): Move to file scope.
6406 (style_show_list): Likewise.
6407 (set_style): Call help_list.
6408 (show_style): Call cmd_show_list.
6409 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6410 Update to use the new macro.
6412 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6414 * ada-lang.c (_initialize_ada_language): Expand the help text
6415 for the "catch exception" command.
6417 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6419 * symtab.c (matching_obj_sections): Initialize obj,
6420 declare it closer to its usage.
6422 2019-01-10 Tom Tromey <tom@tromey.com>
6424 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6425 (basic_inf_threads_range): Remove.
6426 (inf_threads_range, inf_non_exited_threads_range)
6427 (safe_inf_threads_range): Use next_adapter.
6429 2019-01-10 Keith Seitz <keiths@redhat.com>
6433 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6434 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6436 2019-01-10 Keith Seitz <keiths@redhat.com>
6440 * dictionary.c (pending_to_vector): Remove.
6441 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6442 Remove _1 suffix, replacing functions of the same name. Update
6444 (dict_create_hashed, dict_create_hashed_expandable)
6445 (dict_create_linear, dict_create_linear_expandable, dict_free)
6446 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6447 Make functions static.
6449 2019-01-10 Keith Seitz <keiths@redhat.com>
6453 * dictionary.h (struct dictionary): Replace declaration with
6455 (dict_create_hashed, dict_create_hashed_expandable)
6456 (dict_create_linear, dict_create_linear_expandable)
6457 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6458 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6459 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6460 taking multidictionary argument.
6461 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6462 * block.h (struct block) <dict>: Change to multidictionary
6463 and rename `multidict'.
6464 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6465 symmisc.c: Update all dictionary references to multidictionary.
6467 2019-01-10 Keith Seitz <keiths@redhat.com>
6471 * dictionary.c: Include unordered_map.
6472 (pending_to_vector): New function.
6473 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6474 Rewrite the non-"_1" functions to take vector instead
6476 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6477 "new" _1 versions of the same name.
6478 (multidictionary): Define.
6479 (std::hash<enum language): New definition.
6480 (collate_pending_symbols_by_language, mdict_create_hashed)
6481 (mdict_create_hashed_expandable, mdict_create_linear)
6482 (mdict_create_linear_expandable, mdict_free)
6483 (find_language_dictionary, create_new_language_dictionary)
6484 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6485 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6486 (mdict_size, mdict_empty): New functions.
6487 * dictionary.h (mdict_iterator): Define.
6489 2019-01-10 Pedro Alves <palves@redhat.com>
6491 * breakpoint.c (read_uploaded_action)
6492 (create_tracepoint_from_upload): Adjust to use
6493 gdb::unique_xmalloc_ptr.
6494 * ctf.c (ctf_write_uploaded_tp):
6495 (SET_ARRAY_FIELD): Use emplace_back.
6496 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6497 * tracefile-tfile.c (tfile_write_uploaded_tp):
6498 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6499 gdb::unique_xmalloc_ptr.
6500 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6501 at_string, cond_string, cmd_strings>: Replace char pointers
6502 with gdb::unique_xmalloc_ptr.
6504 2019-01-10 Pedro Alves <palves@redhat.com>
6506 * solib-target.c (library_list_start_library): Don't xstrdup name.
6508 2019-01-10 Pedro Alves <palves@redhat.com>
6510 * mdebugread.c (parse_partial_symbols): Use
6511 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6513 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6515 * linux-fork.c (scoped_switch_fork_info)
6516 <~scoped_switch_fork_info>: Fix incorrect variable name.
6518 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6520 * linux-fork.c (scoped_switch_fork_info)
6521 <scoped_switch_fork_info>: Make explicit.
6522 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6524 2019-01-10 Tom Tromey <tom@tromey.com>
6526 * objfiles.h (objfile::reset_psymtabs): Update.
6527 * objfiles.c (objfile::objfile): Update.
6528 * psymtab.h (psymtab_storage::obstack): Update.
6529 (psymtab_storage::m_obstack): Use gdb::optional.
6530 (class psymtab_storage): Update comment. Remove objfile
6532 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6534 2019-01-10 Tom Tromey <tom@tromey.com>
6536 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6537 <free_psymtabs>: Now private.
6538 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6539 (allocate_psymtab): Use new method.
6541 2019-01-10 Tom Tromey <tom@tromey.com>
6543 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6544 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6545 * mdebugread.c (parse_partial_symbols): Use
6546 allocate_dependencies.
6547 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6548 allocate_dependencies.
6549 (process_psymtab_comp_unit_reader)
6550 (build_type_psymtab_dependencies): Likewise.
6551 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6553 2019-01-10 Tom Tromey <tom@tromey.com>
6555 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6556 PSYMBOL_SET_LANGUAGE.
6557 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6559 2019-01-10 Tom Tromey <tom@tromey.com>
6561 * psymtab.h (psymtab_storage::obstack): New method.
6562 <m_obstack>: Rename from obstack; now private.
6563 * psymtab.c (psymtab_storage): Update.
6564 * dwarf2read.c (create_addrmap_from_index)
6565 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6568 2019-01-10 Tom Tromey <tom@tromey.com>
6570 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6571 * objfiles.h (objfile::reset_psymtabs): New method.
6573 2019-01-10 Tom Tromey <tom@tromey.com>
6575 * symmisc.c (print_symbol_bcache_statistics): Update.
6576 (print_objfile_statistics): Update.
6577 * symfile.c (reread_symbols): Update.
6578 * psymtab.h (class psymtab_storage): New.
6579 * psymtab.c (psymtab_storage): New constructor.
6580 (~psymtab_storage): New destructor.
6581 (require_partial_symbols): Update.
6582 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6583 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6584 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6585 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6586 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6587 (start_psymtab_common, end_psymtab_common)
6588 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6589 (allocate_psymtab): Update.
6590 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6592 (dump_psymtab_addrmap, maintenance_print_psymbols)
6593 (maintenance_check_psymtabs): Update.
6594 (class objfile_psymtabs): Move to objfiles.h.
6595 * psympriv.h (discard_psymtab): Now inline.
6596 (psymtab_discarder::psymtab_discarder): Update.
6597 (psymtab_discarder::~psymtab_discarder): Update.
6598 (ALL_OBJFILE_PSYMTABS): Rewrite.
6599 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6600 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6602 <partial_symtabs>: New field.
6603 (class objfile_psymtabs): Move from psymtab.h. Update.
6604 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6606 (objfile::~objfile): Don't destroy psymbol_cache.
6607 * mdebugread.c (parse_partial_symbols): Update.
6608 * dwarf2read.c (create_addrmap_from_index)
6609 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6610 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6611 (add_partial_subprogram, dwarf2_ranges_read): Update.
6612 * dwarf-index-write.c (write_address_map)
6613 (write_one_signatured_type, recursively_write_psymbols)
6614 (class debug_names, class debug_names, write_psymtabs_to_index):
6617 2019-01-10 Tom Tromey <tom@tromey.com>
6619 * symtab.h (SYMBOL_SET_NAMES): Update.
6620 (symbol_set_names): Update.
6621 (MSYMBOL_SET_NAMES): Update.
6622 * symtab.c (symbol_set_names): Change argument to be an
6623 objfile_per_bfd_storage.
6624 * psymtab.c (add_psymbol_to_bcache): Update.
6625 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6627 2019-01-10 Tom Tromey <tom@tromey.com>
6629 * symtab.c (create_demangled_names_hash): Change argument to be an
6630 objfile_per_bfd_storage.
6631 (symbol_set_names): Update.
6633 2019-01-10 Tom Tromey <tom@tromey.com>
6635 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6637 * psymtab.c (init_psymbol_list): Do nothing if already called.
6638 * psympriv.h (init_psymbol_list): Add comment.
6639 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6641 * dbxread.c (dbx_symfile_read): Unconditionally call
6644 2019-01-10 Tom Tromey <tom@tromey.com>
6646 * xcoffread.c (scan_xcoff_symtab): Update.
6647 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6649 * mdebugread.c (parse_partial_symbols)
6650 (handle_psymbol_enumerators): Update.
6651 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6652 * dbxread.c (read_dbx_symtab): Update.
6653 * psympriv.h (psymbol_placement): New enum.
6654 (add_psymbol_to_list): Update.
6656 2019-01-10 Tom Tromey <tom@tromey.com>
6658 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6659 static_psymbols parameters.
6660 (scan_xcoff_symtab): Update.
6661 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6662 static_psymbols parameters.
6663 * psympriv.h (start_psymtab_common): Update.
6664 * mdebugread.c (parse_partial_symbols): Update.
6665 * dwarf2read.c (create_partial_symtab): Update.
6666 * dbxread.c (read_dbx_symtab): Update.
6667 (start_psymtab): Remove global_psymbols and static_psymbols
6670 2019-01-10 Tom Tromey <tom@tromey.com>
6672 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6673 * psymtab.c (allocate_psymtab): Add comment.
6674 * psympriv.h (allocate_psymtab): Add comment.
6675 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6677 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6679 2019-01-10 Tom Tromey <tom@tromey.com>
6681 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6683 * mipsread.c: Include mdebugread.h.
6684 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6686 * elfread.c: Include mdebugread.h.
6688 2019-01-09 Tom Tromey <tom@tromey.com>
6690 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6691 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6692 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6693 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6694 (psym_lookup_symbol, psym_find_last_source_symtab)
6695 (psym_forget_cached_source_info, psym_print_stats)
6696 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6697 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6698 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6699 (psym_find_compunit_symtab_by_address)
6700 (maintenance_print_psymbols, maintenance_info_psymtabs)
6701 (maintenance_check_psymtabs): Use ranged for.
6702 * psymtab.h (class objfile_psymtabs): New.
6703 (require_partial_symbols): Return objfile_psymtabs.
6704 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6706 2019-01-09 Tom Tromey <tom@tromey.com>
6708 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6709 (find_pc_mapped_section, list_overlays_command)
6710 (map_overlay_command, unmap_overlay_command)
6711 (simple_overlay_update): Use all_objfiles.
6712 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6713 * printcmd.c (info_symbol_command): Use all_objfiles.
6714 * objfiles.h (ALL_OBJSECTIONS): Remove.
6715 * maint.c (maintenance_translate_address): Use all_objfiles.
6716 * gcore.c (gcore_create_callback): Use all_objfiles.
6717 (objfile_find_memory_regions): Likewise.
6719 2019-01-09 Tom Tromey <tom@tromey.com>
6721 * symtab.c (find_line_symtab, info_sources_command)
6722 (make_source_files_completion_list): Use objfile_compunits.
6723 * source.c (select_source_symtab): Use objfile_compunits.
6724 * objfiles.h (struct objfile): Update comment.
6725 (ALL_OBJFILES): Remove.
6726 (ALL_FILETABS): Remove.
6727 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6730 2019-01-09 Tom Tromey <tom@tromey.com>
6732 * symmisc.c (print_objfile_statistics, dump_objfile)
6733 (maintenance_print_symbols): Use compunit_filetabs.
6734 * source.c (forget_cached_source_info_for_objfile): Use
6736 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6737 (ALL_FILETABS): Use compunit_filetabs.
6738 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6739 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6741 2019-01-09 Tom Tromey <tom@tromey.com>
6743 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6744 (compunit_filetabs): New.
6745 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6747 (info_sources_command, make_source_files_completion_list): Remove
6749 * symmisc.c (print_objfile_statistics, dump_objfile)
6750 (maintenance_print_symbols): Remove declaration.
6751 (maintenance_info_symtabs): Use compunit_filetabs.
6752 (maintenance_info_line_tables): Likewise.
6753 * source.c (select_source_symtab): Change local variable name.
6754 (forget_cached_source_info_for_objfile): Remove declaration.
6755 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6756 * objfiles.c (objfile_relocate1): Remove declaration.
6757 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6759 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6760 * coffread.c (coff_symtab_read): Remove declaration.
6761 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6764 2019-01-09 Tom Tromey <tom@tromey.com>
6766 * symtab.c (lookup_objfile_from_block)
6767 (find_pc_sect_compunit_symtab, search_symbols)
6768 (default_collect_symbol_completion_matches_break_on): Use
6770 * objfiles.h (ALL_COMPUNITS): Remove.
6771 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6772 * cp-support.c (add_symbol_overload_list_qualified): Use
6774 * ada-lang.c (ada_collect_symbol_completion_matches)
6775 (ada_add_global_exceptions): Use objfile_compunits.
6777 2019-01-09 Tom Tromey <tom@tromey.com>
6779 * source.c (select_source_symtab)
6780 (forget_cached_source_info_for_objfile): Remove declaration.
6781 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6783 * maint.c (count_symtabs_and_blocks): Remove declaration.
6784 * cp-support.c (add_symbol_overload_list_qualified): Remove
6786 * coffread.c (coff_symtab_read): Remove declaration.
6787 * symtab.c (lookup_symbol_in_objfile_symtabs)
6788 (basic_lookup_transparent_type_1): Use objfile_compunits.
6789 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6790 (info_sources_command, search_symbols)
6791 (default_collect_symbol_completion_matches_break_on)
6792 (make_source_files_completion_list): Remove declaration.
6793 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6794 (ada_collect_symbol_completion_matches)
6795 (ada_add_global_exceptions): Remove declaration.
6796 * linespec.c (iterate_over_all_matching_symtabs): Use
6798 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6799 (class objfile_compunits): New.
6800 (ALL_COMPUNITS): Use objfile_compunits.
6801 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6802 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6804 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6806 2019-01-09 Tom Tromey <tom@tromey.com>
6808 * symtab.c (search_symbols)
6809 (default_collect_symbol_completion_matches_break_on): Use
6811 * ada-lang.c (ada_lookup_simple_minsym)
6812 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6813 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6814 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6816 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6817 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6818 * objc-lang.c (find_methods): Use objfile_msymbols.
6819 (info_selectors_command, info_classes_command): Likewise.
6820 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6821 * objfiles.h (class objfile_msymbols): New.
6822 (ALL_OBJFILE_MSYMBOLS): Remove.
6823 (ALL_MSYMBOLS): Remove.
6825 2019-01-09 Tom Tromey <tom@tromey.com>
6827 * common/next-iterator.h (next_adapter): Add Iterator template
6829 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6830 (class all_objfiles_safe): New.
6831 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6832 * objfiles.c (put_objfile_before): Update comment.
6833 (add_separate_debug_objfile): Likewise.
6834 (free_all_objfiles): Use all_objfiles_safe.
6835 (objfile_purge_solibs): Likewise.
6837 2019-01-09 Tom Tromey <tom@tromey.com>
6839 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6840 (expand_symtab_containing_pc, lookup_static_symbol)
6841 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6842 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6844 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6845 * breakpoint.c (create_overlay_event_breakpoint)
6846 (create_longjmp_master_breakpoint)
6847 (create_std_terminate_master_breakpoint)
6848 (create_exception_master_breakpoint): Use all_objfiles.
6849 * linux-thread-db.c (try_thread_db_load_from_pdir)
6850 (has_libpthread): Use all_objfiles.
6851 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6852 * linespec.c (iterate_over_all_matching_symtabs)
6853 (search_minsyms_for_name): Use all_objfiles.
6854 * maint.c (maintenance_info_sections): Use all_objfiles.
6855 * main.c (captured_main_1): Use all_objfiles.
6856 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6857 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6858 * guile/scm-pretty-print.c
6859 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6860 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6861 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6862 (maintenance_print_msymbols): Use all_objfiles.
6863 * source.c (select_source_symtab): Use all_objfiles.
6864 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6865 * symfile.c (remove_symbol_file_command)
6866 (expand_symtabs_matching, map_symbol_filenames): Use
6868 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6870 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6871 * objc-lang.c (find_methods): Use all_objfiles.
6872 * objfiles.c (have_partial_symbols, have_full_symbols)
6873 (have_minimal_symbols, qsort_cmp)
6874 (default_iterate_over_objfiles_in_search_order): Use
6876 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6877 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6878 (maintenance_check_psymtabs): Use all_objfiles.
6879 (ALL_PSYMTABS): Remove.
6880 * compile/compile-object-run.c (do_module_cleanup): Use
6882 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6883 * cp-support.c (add_symbol_overload_list_qualified): Use
6885 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6887 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6888 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6890 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6891 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6892 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6894 * solib.c (solib_read_symbols): Use all_objfiles
6896 2019-01-09 Tom Tromey <tom@tromey.com>
6898 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6899 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6901 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6902 * symmisc.c (print_symbol_bcache_statistics)
6903 (print_objfile_statistics, maintenance_print_objfiles)
6904 (maintenance_info_symtabs, maintenance_check_symtabs)
6905 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6907 * source.c (forget_cached_source_info): Use all_objfiles.
6908 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6909 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6910 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6911 * objfiles.c (update_section_map): Use all_objfiles.
6912 (shared_objfile_contains_address_p): Likewise.
6913 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6914 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6916 2019-01-09 Tom Tromey <tom@tromey.com>
6918 * common/next-iterator.h: New file.
6919 * objfiles.h (class all_objfiles): New.
6920 (struct objfile_iterator): New.
6922 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6924 * NEWS: Move the description of the changed "frame", "select-frame",
6925 and "info frame" commands to the Changed commands section.
6927 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6929 * gdbtypes.c (check_stub_method_group): Remove handling of old
6931 * linespec.c (find_methods): Likewise.
6932 * stabsread.c (read_member_functions): Likewise.
6933 * valops.c (search_struct_method): Likewise.
6934 (value_struct_elt_for_reference): Likewise.
6935 * NEWS: Mention this change.
6937 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6939 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6941 * source.c (print_source_lines_base): Update line number check.
6942 (print_source_lines): New function.
6943 (source_lines_range::source_lines_range): New function.
6944 * source.h (class source_lines_range): New class.
6945 (print_source_lines): New declaration.
6947 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6949 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6951 2019-01-08 Tom Tromey <tom@tromey.com>
6952 Simon Marchi <simon.marchi@ericsson.com>
6955 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6956 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6957 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6958 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6959 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6960 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6962 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6964 * source.c (select_source_symtab): Move header comment to
6965 declaration in source.h.
6966 (forget_cached_source_info_for_objfile): Likewise.
6967 (forget_cached_source_info): Likewise.
6968 (identify_source_line): Likewise.
6969 * source.h (identify_source_line): Move declaration from symtab.h
6970 and add comment from source.c
6971 (print_source_lines): Likewise.
6972 (forget_cached_source_info_for_objfile): Likewise.
6973 (forget_cached_source_info): Likewise.
6974 (select_source_symtab): Likewise.
6975 (enum print_source_lines_flag): Move definition from symtab.h.
6976 * symtab.h (identify_source_line): Move declaration to source.h.
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 to source.h.
6982 * tui/tui-hooks.c: Add 'source.h' include.
6984 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6986 * source.c (print_source_lines_base): Handle requests to print
6987 reverse line number sequences, and guard against empty lines
6990 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6992 * source.c (print_source_lines_base): Fix skip of '\r' if next
6995 2019-01-06 Tom Tromey <tom@tromey.com>
6997 * c-exp.y (struct c_parse_state) <macro_original_text,
6998 expansion_obstack>: New member.
6999 (macro_original_text, expansion_obstack): Remove globals.
7000 (scan_macro_expansion, scanning_macro_expansion)
7001 (finished_macro_expansion): Update.
7002 (scan_macro_cleanup): Remove.
7003 (yylex, c_parse): Update.
7005 2019-01-06 Tom Tromey <tom@tromey.com>
7007 * c-exp.y (struct c_parse_state) <strings>: New member.
7008 (operator_stoken): Update.
7010 2019-01-06 Tom Tromey <tom@tromey.com>
7012 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7013 (union type_stack_elt) <typelist_val>: Now a pointer to
7015 (type_stack_cleanup): Don't declare.
7016 (push_typelist): Update.
7017 * parse.c (pop_typelist): Return a std::vector.
7018 (push_typelist): Take a std::vector.
7019 (follow_types): Update. Do not free args.
7020 (type_stack_cleanup): Remove.
7021 * c-exp.y (struct c_parse_state): New.
7022 (cpstate): New global.
7023 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7024 (nonempty_typelist): Update.
7025 (func_mod): Create a new vector.
7026 (c_parse): Create a c_parse_state.
7027 (check_parameter_typelist): Do not delete params.
7028 (function_method): Update. Do not delete type_list.
7030 2019-01-06 Tom Tromey <tom@tromey.com>
7033 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7035 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7036 (print_return_value): Likewise.
7038 2019-01-05 Tom Tromey <tom@tromey.com>
7040 * contrib/cleanup_check.py: Remove.
7041 * contrib/gcc-with-excheck: Remove.
7042 * contrib/exsummary.py: Remove.
7043 * contrib/excheck.py: Remove.
7045 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7047 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7048 NULL. Initialize tpprev to NULL instead of assigning it
7049 to NULL on the next statement.
7050 * windows-nat.c (windows_delete_thread): Remove check for
7051 main_thread_id before printing thread exit notifications.
7052 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7053 Remove thread ID check against main_thread_id.
7054 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7055 windows_delete_thread.
7056 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7058 2019-01-04 Tom Tromey <tom@tromey.com>
7060 * compile/compile.c (_initialize_compile): Use upper case for
7061 metasyntactic variables.
7062 * symmisc.c (_initialize_symmisc): Use upper case for
7063 metasyntactic variables.
7064 * psymtab.c (_initialize_psymtab): Use upper case for
7065 metasyntactic variables.
7066 * demangle.c (demangle_command): Use upper case for metasyntactic
7068 (_initialize_demangler): Likewise.
7069 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7072 2019-01-03 Tom Tromey <tom@tromey.com>
7074 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7076 2019-01-03 Tom Tromey <tom@tromey.com>
7078 * python/py-symtab.c (salpy_str): Update.
7079 (struct salpy_sal_object) <symtab>: Now a PyObject.
7080 (salpy_dealloc): Update.
7081 (del_objfile_sal): Use gdbpy_ref.
7083 2019-01-03 Tom Tromey <tom@tromey.com>
7085 * python/py-type.c (convert_field): Use new_reference. Return
7087 (make_fielditem): Return gdbpy_ref.
7088 (typy_fields): Update.
7089 (typy_getitem): Update.
7090 (field_name): Return gdbpy_ref. Use new_reference.
7091 (typy_iterator_iternext): Update.
7093 2019-01-03 Tom Tromey <tom@tromey.com>
7095 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7097 2019-01-03 Tom Tromey <tom@tromey.com>
7099 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7100 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7101 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7102 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7103 (pspy_set_type_printers): Likewise.
7104 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7105 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7106 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7107 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7108 (objfpy_set_type_printers): Likewise.
7110 2019-01-03 Tom Tromey <tom@tromey.com>
7112 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7113 (gdbpy_print_stack): Use gdbpy_err_fetch.
7114 * python/python-internal.h (class gdbpy_err_fetch): New class.
7115 (class gdbpy_enter) <m_error_type, m_error_value,
7116 m_error_traceback>: Remove.
7117 <m_error>: New member.
7118 (gdbpy_exception_to_string): Don't declare.
7119 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7120 * python/py-value.c (convert_value_from_python): Use
7122 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7123 gdbpy_exception_to_string.
7124 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7125 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7128 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7130 * linux-nat.c (delete_lwp_cleanup): Delete.
7131 (struct lwp_deleter): New struct.
7132 (lwp_info_up): New typedef.
7133 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7136 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7138 * linux-fork.c (class scoped_switch_fork_info): New class.
7139 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7141 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7143 * valops.c (find_overload_match): Remove use of null_cleanup, and
7144 calls to do_cleanups.
7146 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7148 * compile/compile-cplus-types.c
7149 (compile_cplus_instance::decl_name): Handle changes to
7151 * cp-support.c (cp_func_name): Update header comment, update
7153 * cp-support.h (cp_func_name): Update return type in declaration.
7154 * valops.c (find_overload_match): Move temp_func local to top
7155 level of function and change its type. Use temp_func to hold and
7156 delete temporary string obtained from cp_func_name.
7158 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7160 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7161 gdb::char_vector, remove cleanup, and update uses of `msg`.
7163 2019-01-03 Jim Wilson <jimw@sifive.com>
7165 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7167 2019-01-02 Tom Tromey <tom@tromey.com>
7169 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7170 (tdesc_parse_xml): Remove cleanups.
7171 * target-descriptions.h (make_cleanup_free_target_description):
7173 (target_desc_deleter): New struct.
7174 (target_desc_up): New typedef.
7175 * target-descriptions.c (target_desc_deleter::operator()): Rename
7176 from free_target_description.
7177 (make_cleanup_free_target_description): Remove.
7179 2019-01-02 Tom Tromey <tom@tromey.com>
7181 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7182 constructor, destructor.
7183 (linespec_parser): Remove typedef.
7184 (~linespec_parser): Rename from linespec_parser_delete.
7185 (linespec_lex_to_end, linespec_complete_label)
7186 (linespec_complete): Update.
7187 (decode_line_full): Remove cleanups.
7188 (decode_line_1): Update.
7190 2019-01-02 Tom Tromey <tom@tromey.com>
7192 * python/python-internal.h (inferior_to_inferior_object): Change
7194 * python/py-exitedevent.c (create_exited_event_object): Update.
7195 * python/py-inferior.c (inferior_to_inferior_object): Return
7197 (python_new_inferior, python_inferior_deleted)
7198 (thread_to_thread_object, delete_thread_object)
7199 (build_inferior_list, gdbpy_selected_inferior): Update.
7200 * python/py-infthread.c (create_thread_object): Update. Also fail
7201 if inferior_to_inferior_object fails.
7203 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7205 * inferior.h (class inferior) <displaced_step_state>: New field.
7206 * infrun.h (struct displaced_step_state): Move here from
7207 infrun.c. Initialize fields, add constructor.
7208 <inf>: Remove field.
7209 <reset>: New method.
7210 * infrun.c (struct displaced_step_inferior_state): Move to
7212 (displaced_step_inferior_states): Remove.
7213 (get_displaced_stepping_state): Adust.
7214 (displaced_step_in_progress_any_inferior): Adjust.
7215 (displaced_step_in_progress_thread): Adjust.
7216 (displaced_step_in_progress): Adjust.
7217 (add_displaced_stepping_state): Remove.
7218 (get_displaced_step_closure_by_addr): Adjust.
7219 (remove_displaced_stepping_state): Remove.
7220 (infrun_inferior_exit): Call displaced_step_state.reset.
7221 (use_displaced_stepping): Don't check for NULL.
7222 (displaced_step_prepare_throw): Call
7223 get_displaced_stepping_state.
7224 (displaced_step_fixup): Don't check for NULL.
7225 (prepare_for_detach): Don't check for NULL.
7227 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7229 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7230 in case of call that did not complete.
7232 2019-01-02 Andrey Utkin <autkin@undo.io>
7234 * symfile.c (find_separate_debug_file): Fix search of debug files for
7237 2019-01-02 Tom Tromey <tom@tromey.com>
7239 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7241 * python/py-frame.c (frapy_older): Remove cast.
7242 (frapy_newer): Likewise.
7243 * python/py-breakpoint.c (local_setattro): Remove cast.
7244 * python/py-arch.c (archpy_name): Remove local variable.
7245 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7247 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7249 * unittests/basic_string_view/element_access/char/empty.cc:
7250 Fix year range in copyright header.
7252 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7254 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7256 <operator==>: Update with for removed field.
7258 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7259 <isa_features>: ...this.
7260 <abi_features>: New field.
7261 (riscv_isa_flen): Update comment.
7262 (riscv_abi_xlen): New declaration.
7263 (riscv_abi_flen): New declaration.
7264 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7266 (riscv_abi_xlen): New function.
7267 (riscv_isa_flen): Update to get answer from isa_features.
7268 (riscv_abi_flen): New function.
7269 (riscv_has_fp_abi): Update to get answer from abi_features.
7270 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7272 (riscv_call_info) <xlen, flen>: Update comment.
7273 (riscv_call_arg_struct): Remove invalid assertions
7274 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7276 (riscv_gdbarch_init): Gather isa features and abi features
7277 separately, ensure both match on the gdbarch when reusing an old
7278 gdbarch. Relax an error check to allow 32-bit abi float to run on
7279 a target with 64-bit float hardware.
7281 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7283 * source.c (search_command_helper): Stop reverse search
7284 when line 1 has been searched.
7286 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7288 * record-full.c (record_full_base_target::close): Rewrite
7289 record_full_core_buf_list free logic.
7291 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7293 * break-catch-syscall.c (print_one_catch_syscall): xfree
7296 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7298 * top.c (print_gdb_version): Update Copyright year in version
7301 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7303 Update copyright year range in all GDB files.
7305 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7307 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7309 For older changes see ChangeLog-2018.
7315 version-control: never