1 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4 instructions of lengths 6 or 8 bytes.
6 2019-06-04 Pedro Alves <palves@redhat.com>
8 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
10 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
11 * breakpoint.c (condition_completer): Likewise.
12 * cli/cli-dump.c (scan_expression): Likewise.
13 * common/filestuff.c (mkdir_recursive): Likewise.
14 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
15 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
16 (gdb_abspath): Likewise.
17 * compile/compile-cplus-types.c
18 (compile_cplus_instance::decl_name): Likewise.
19 * completer.c (complete_explicit_location):
20 (signal_completer, reg_or_group_completer_1): Likewise.
21 * cp-support.c (cp_remove_params_if_any): Likewise.
22 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
23 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
24 * infcmd.c (strip_bg_char): Likewise.
25 * linespec.c (copy_token_string): Likewise.
26 * mi/mi-main.c (output_cores): Likewise.
27 * psymtab.c (psymtab_search_name):
28 * symfile.c (test_set_ext_lang_command): Likewise.
29 * target.c (target_fileio_read_stralloc): Likewise.
30 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
31 * value.c (complete_internalvar): Likewise.
33 2019-06-04 Christian Biesinger <cbiesinger@google.com>
35 Add objfile property to gdb.Type.
36 * NEWS: Mention Python API addition.
37 * python/py-type.c (typy_get_objfile): New method.
39 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
41 * NEWS: Mention the new set|show style [title|highlight].
42 Mention changes to "show style", "help" and "apropos".
44 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
46 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
47 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
48 instead of print_help_for_command.
49 (print_doc_of_command): New function.
50 (help_list): Add 'apropos -v word' suggestion.
51 (print_help_for_command): Style the command name using title style.
52 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
53 (_initialize_cli_cmds): Describe -v in apropos_command help.
55 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
57 * cli/cli-style.h (cli_style_option): Add name in constructor,
58 add m_name class member, add constructor with intensity,
59 add name class function.
60 (cli_style_option::add_setshow_commands): Remove name argument.
61 (highlight_style, title_style): New styles.
62 * cli/cli-style.c (do_show): New function that shows a style
63 characteristic styling the style name with itself.
64 (set_style_name): New function.
65 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
66 Update all callers according to the changes in cli/cli-style.h.
67 * utils.h (fputs_highlighted): New function.
68 * utils.c (fputs_highlighted): Likewise.
70 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
72 * NEWS: Mention new pipe command and new convenience variables.
74 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
76 * cli/cli-cmds.c (pipe_command): New function.
77 (_initialize_cli_cmds): Call add_com for pipe_command.
78 Define | as an alias for pipe.
79 (exit_status_set_internal_vars): New function.
80 (shell_escape): Call exit_status_set_internal_vars.
81 cli/cli-decode.c (find_command_name_length): Recognize | as
82 a single character command.
84 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
86 * gdbcmd.h (execute_command_to_ui_file): New declaration.
87 top.c (execute_command_to_ui_file): New function, mostly a copy
88 of execute_command_to_string.
89 (execute_command_to_string): Implement by calling
90 execute_command_to_ui_file.
92 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
94 * top.h (saved_command_line): Remove declaration.
95 * top.c (previous_saved_command_line, previous_repeat_arguments):
97 (saved_command_line): Make static, define together with other
99 (dont_repeat): Clear repeat_arguments.
100 (repeat_previous, get_saved_command_line, save_command_line):
102 (gdb_init): Initialize saved_command_line
103 and previous_saved_command_line.
104 * main.c (captured_main_1): Remove saved_command_line initialization.
105 * event-top.c (handle_line_of_input): Update to use
106 the new 'repeat' related functions instead of direct access to
108 * command.h (repeat_previous, get_saved_command_line,
109 save_command_line): New declarations.
110 (dont_repeat): Add comment.
112 2019-05-30 Tom Tromey <tromey@adacore.com>
114 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
116 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
118 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
121 * completer.c (complete): Initialize variable word.
123 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
125 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
126 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
127 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
128 'body' is NULL to the outter 'if', protecting the '!is_define'
131 2019-05-29 Tom Tromey <tromey@adacore.com>
133 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
134 (dwarf_unknown): New function.
135 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
136 (dwarf_type_encoding_name): Use dwarf_unknown.
138 2019-05-29 Tom Tromey <tromey@adacore.com>
141 * cp-valprint.c (cp_print_value_fields): Call
142 cp_print_static_field inside "try".
144 2019-05-29 Tom Tromey <tromey@adacore.com>
146 * inflow.c (struct terminal_info): Add default operator=.
147 * configure: Rebuild.
148 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
149 -Wdeprecated-copy-dtor, -Wredundant-move.
151 2019-05-29 Tom Tromey <tromey@adacore.com>
154 * infcmd.c (print_return_value_1): Handle finish_print
156 (show_print_finish): New function.
157 (_initialize_infcmd): Add "set/show print finish" commands.
158 * valprint.c (user_print_options): Initialize new member.
159 * valprint.h (struct value_print_options) <finish_print>: New
162 2019-05-28 Tom Tromey <tromey@adacore.com>
164 * ada-lang.c (ada_remove_Xbn_suffix)
165 (find_old_style_renaming_symbol)
166 (parse_old_style_renaming): Remove.
167 (ada_find_renaming_symbol): Don't call
168 find_old_style_renaming_symbol.
169 (ada_is_renaming_symbol): Rename from
170 ada_find_renaming_symbol. Remove "block" parameter. Return
172 (ada_read_var_value): Update and simplify.
173 * ada-exp.y (write_var_or_type): Remove old code.
175 2019-05-28 Alan Hayward <alan.hayward@arm.com>
177 * event-top.c: Remove include comment.
178 * inflow.c (class scoped_ignore_sigttou): Move from here...
179 * inflow.h (class scoped_ignore_sigttou): ...to here.
180 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
181 * top.c: Remove include comment.
183 2019-05-27 Tom Tromey <tom@tromey.com>
187 2019-05-22 Tom Tromey <tromey@adacore.com>
189 * target.c (target_follow_exec): Constify parameter.
190 * target-delegates.c: Rebuild.
191 * remote.c (remote_target::follow_exec): Constify parameter.
192 * infrun.c (follow_exec): Constify parameter.
193 * target.h (struct target_ops) <follow_exec>: Constify parameter.
194 (target_follow_exec): Likewise.
196 2019-05-22 Alan Hayward <alan.hayward@arm.com>
198 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
199 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
201 2019-05-22 Alan Hayward <alan.hayward@arm.com>
203 * NEWS: Add debugredirect and testsuite sections.
205 2019-05-22 Simon Cook <simon.cook@embecosm.com>
207 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
208 target descriptions using exclusively floating point register name
211 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
214 * f-lang.c (build_fortran_types): Handle the case where
215 gdbarch_floatformat_for_type returns a nullptr.
217 2019-05-21 Tom de Vries <tdevries@suse.de>
220 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
222 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
225 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
227 * i386-tdep.c (i386_floatformat_for_type): Use
228 floatformats_ia64_quad for the 16-byte floating point component
229 within a fortran 32-byte complex number.
231 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
233 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
234 delete default constructor.
235 (find_partial_die): Update to return const struct.
236 (partial_die_parent_scope): Move variable declaration into scope
237 of its use and change its type to auto.
238 (guess_partial_die_structure_name): Likewise.
239 (partial_die_info::fixup): Likewise.
241 2019-05-17 Tom Tromey <tromey@adacore.com>
243 * source.c (find_and_open_source): Remove cast.
245 2019-05-17 Tom Tromey <tromey@adacore.com>
247 * annotate.c (annotate_source): Make "filename" const.
248 * annotate.h (annotate_source): Use const.
250 2019-05-17 Alan Hayward <alan.hayward@arm.com>
252 * disasm.c (set_disassembler_options): Send errors to stderr.
254 2019-05-17 Alan Hayward <alan.hayward@arm.com>
256 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
257 (cli_interp_base::set_logging): Check debug_redirect.
258 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
259 * cli/cli-logging.c (debug_redirect): Add static variable.
260 (pop_output_files): Add default param.
261 (handle_redirections): Print debug setting.
262 (show_logging_command): Likewise.
263 (_initialize_cli_logging): Add debugredirect command.
264 * interps.c (current_interp_set_logging): Add debug_redirect
266 * interps.h (set_logging): Add debug_redirect parameter.
267 (current_interp_set_logging): Likewise.
268 * mi/mi-common.h: Likewise.
269 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
271 2019-05-17 Alan Hayward <alan.hayward@arm.com>
272 Tom Tromey <tromey@adacore.com>
274 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
276 * cli/cli-interp.h (make_logging_output): Remove declaration.
277 * cli/cli-logging.c (make_logging_output): Remove function.
278 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
280 * ui-file.c (tee_file::tee_file): Remove bools.
281 (tee_file::~tee_file): Remove deletes.
282 * ui-file.h (tee_file): Remove bools.
284 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
286 * mi/mi-cmds.h (mi_cmd_complete): New function.
287 * mi/mi-main.c (mi_cmd_complete): Likewise.
288 * mi/mi-cmds.c: Define new MI command -complete.
289 * NEWS: Mention new -complete command.
291 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
293 * completer.h (complete): New function.
294 * completer.c (complete): Likewise.
295 * cli/cli-cmds.c: (complete_command): Update to use new complete()
296 function defined in completer.h.
298 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
300 * MAINTAINERS (Write After Approval): Add myself.
302 2019-05-17 Tom de Vries <tdevries@suse.de>
305 * dwarf2read.c (struct cu_partial_die_info): New struct.
306 (find_partial_die): Return cu_partial_die_info.
307 (partial_die_parent_scope, guess_partial_die_structure_name)
308 (partial_die_info::fixup): Handle new return type of find_partial_die.
310 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
312 * stap-probe.c (stap_parse_register_operand): Make "regname" an
313 "std::string", simplifying the algorithm.
315 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
317 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
318 (stap_static_probe_ops::get_probes): Likewise.
320 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
322 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
324 (stap_parse_single_operand): Join checks for
325 "gdbarch_stap_parse_special_token_p" and
326 "gdbarch_stap_parse_special_token" in the same "if" statement.
327 Invert check when verifying for operation on register
330 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
332 * stap-probe.c (stap_get_opcode): Update comment.
333 (stap_get_expected_argument_type): Likewise.
334 (handle_stap_probe): Likewise.
336 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
338 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
339 return type to 'bool'. Adjust comment. Use 'bool' when
341 (i386_stap_parse_special_token_three_arg_disp): Likewise.
342 * stap-probe.c (stap_parse_argument_1): Likewise.
343 (stap_is_operator): Likewise.
344 (stap_is_generic_prefix): Likewise.
345 (stap_is_register_prefix): Likewise.
346 (stap_is_register_indirection_prefix): Likewise.
347 (stap_is_integer_prefix): Likewise.
348 (stap_generic_check_suffix): Likewise.
349 (stap_check_integer_suffix): Likewise.
350 (stap_check_register_suffix): Likewise.
351 (stap_check_register_indirection_suffix): Likewise.
352 (stap_parse_register_operand): Likewise.
353 (stap_parse_single_operand): Likewise.
354 (stap_parse_argument_1): Likewise.
355 (stap_probe::get_argument_count): Likewise.
356 (stap_is_operator): Likewise.
358 2019-05-16 Tom Tromey <tromey@adacore.com>
360 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
363 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
365 * linux-thread-db.c (try_thread_db_load_1): Change return type
367 (try_thread_db_load): Likewise.
368 (try_thread_db_load_from_pdir_1): Likewise.
369 (try_thread_db_load_from_pdir): Likewise.
370 (try_thread_db_load_from_sdir): Likewise.
371 (try_thread_db_load_from_dir): Likewise.
372 (thread_db_load_search): Likewise.
373 (has_libpthread): Likewise.
374 (thread_db_load): Likewise.
376 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
378 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
379 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
380 NULL, and complain/return if that's the case.
382 2019-05-15 John Darrington <john@darrington.wattle.id.au>
384 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
385 (advance, posn, abstract_read_memory): New functions.
386 [struct mem_read_abstraction]: New struct.
387 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
389 2019-05-14 Tom Tromey <tromey@adacore.com>
391 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
392 value is not lval_memory.
394 2019-05-14 Tom Tromey <tromey@adacore.com>
396 * solib.c (info_sharedlibrary_command): Style the file name.
398 2019-05-14 Alan Hayward <alan.hayward@arm.com>
400 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
401 (aarch64_vnv_type): Likewise.
402 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
403 * common/tdesc.c: Likewise.
404 * common/tdesc.h (enum tdesc_type_kind): Likewise.
405 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
406 * features/aarch64-fpu.xml: Add ieee half view.
407 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
408 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
409 * gdbtypes.h (struct builtin_type): Likewise.
410 (struct objfile_type): Likewise.
412 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
414 * language.c (language_sniff_from_mangled_name): Fix "langauge"
416 * location.h (string_to_event_location): Likewise.
418 2019-05-11 Joel Brobecker <brobecker@adacore.com>
422 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
424 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
425 New variable declaration.
426 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
428 (print_one_breakpoint): Use ui_out::test_flags and new global
429 variable to compute use_fixed_output.
430 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
432 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
433 (mi_multi_location_breakpoint_output_fixed): Remove.
434 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
436 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
437 fix_multi_location_breakpoint_output flag if version >= 3.
438 * ui-out.h (enum ui_out_flag)
439 <fix_multi_location_breakpoint_output>: New enumerator.
441 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
443 * contrib/cc-with-tweaks.sh: Validate dwz's work.
445 2019-05-10 Tom Tromey <tromey@adacore.com>
447 * ada-lang.c (catch_ada_completer): New function.
448 (_initialize_ada_language): Use it.
450 2019-05-10 Tom Tromey <tromey@adacore.com>
452 * thread.c (print_thread_info): Make "requested_threads" const.
453 * gdbthread.h (print_thread_info): Make "requested_threads"
455 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
456 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
458 2019-05-08 Tom Tromey <tom@tromey.com>
460 * gdbtypes.c (objfile_type_data): Change type.
461 (objfile_type, _initialize_gdbtypes): Update.
463 2019-05-08 Tom Tromey <tom@tromey.com>
465 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
466 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
467 (_initialize_dwarf2_frame): Update.
469 2019-05-08 Tom Tromey <tom@tromey.com>
471 * objc-lang.c (objc_objfile_data): Change type.
472 (find_methods): Update.
473 (_initialize_objc_lang): Remove.
475 2019-05-08 Tom Tromey <tom@tromey.com>
477 * stabsread.c (rs6000_builtin_type_data): Change type.
478 (rs6000_builtin_type, _initialize_stabsread): Update.
480 2019-05-08 Tom Tromey <tom@tromey.com>
482 * mips-tdep.c (mips_pdr_data): Remove.
483 (_initialize_mips_tdep): Update.
485 2019-05-08 Tom Tromey <tom@tromey.com>
487 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
488 (hppa_init_objfile_priv_data, read_unwind_info)
489 (find_unwind_entry, _initialize_hppa_tdep): Update.
491 2019-05-08 Tom Tromey <tom@tromey.com>
493 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
494 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
496 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
498 2019-05-08 Tom Tromey <tom@tromey.com>
500 * mdebugread.c (basic_type_data): Change type.
501 (basic_type, _initialize_mdebugread): Update.
503 2019-05-08 Tom Tromey <tom@tromey.com>
505 * common/gdb_unique_ptr.h (struct noop_deleter): New.
507 2019-05-08 Tom Tromey <tom@tromey.com>
509 * nto-tdep.c (nto_inferior_data_reg): Change type.
510 (nto_inferior_data): Update.
511 (nto_inferior_data_cleanup, nto_new_inferior_data)
512 (_initialize_nto_tdep): Remove.
513 * nto-tdep.h (struct nto_inferior_data): Add initializers.
515 2019-05-08 Tom Tromey <tom@tromey.com>
517 * ada-lang.c (struct ada_inferior_data): Add initializers.
518 (ada_inferior_data): Change type.
519 (ada_inferior_data_cleanup): Remove.
520 (get_ada_inferior_data, ada_inferior_exit)
521 (struct ada_pspace_data): Add initializers, destructor.
522 (ada_pspace_data_handle): Change type.
523 (get_ada_pspace_data): Update.
524 (ada_pspace_data_cleanup): Remove.
526 2019-05-08 Tom Tromey <tom@tromey.com>
528 * coffread.c (struct coff_symfile_info): Add initializers.
529 (coff_objfile_data_key): Move lower. Change type.
530 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
532 (coff_free_info): Remove.
534 2019-05-08 Tom Tromey <tom@tromey.com>
536 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
537 (fbsd_pspace_data_handle): Move lower. Change type.
538 (get_fbsd_pspace_data): Update.
539 (fbsd_pspace_data_cleanup): Remove.
540 (_initialize_fbsd_tdep): Update.
542 2019-05-08 Tom Tromey <tom@tromey.com>
544 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
545 (get_ada_tasks_pspace_data): Update.
546 (ada_tasks_pspace_data_cleanup): Remove.
547 (_initialize_tasks): Update.
548 (ada_tasks_inferior_data_handle): Change type.
549 (get_ada_tasks_inferior_data): Update.
550 (ada_tasks_inferior_data_cleanup): Remove.
551 (struct ada_tasks_pspace_data): Add initializers.
553 2019-05-08 Tom Tromey <tom@tromey.com>
555 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
556 * symfile-debug.c (debug_sym_get_probes): Change type.
557 * stap-probe.c (handle_stap_probe):
558 (stap_static_probe_ops::get_probes): Change type.
559 * probe.h (class static_probe_ops) <get_probes>: Change type.
560 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
561 (parse_probes_in_pspace): Update.
562 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
564 (any_static_probe_ops::get_probes): Change type.
565 * elfread.c (elfread_data): New typedef.
566 (probe_key): Change type.
567 (elf_get_probes): Likewise. Update.
568 (probe_key_free): Remove.
569 (_initialize_elfread): Update.
570 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
572 (dtrace_process_dof_probe, dtrace_process_dof)
573 (dtrace_static_probe_ops::get_probe): Change type.
575 2019-05-08 Tom Tromey <tom@tromey.com>
577 * xcoffread.c (struct xcoff_symfile_info): Rename from
578 coff_symfile_info. Add initializers.
579 (xcoff_objfile_data_key): Move lower. Change type.
580 (XCOFF_DATA): Rewrite.
581 (xcoff_free_info): Remove.
582 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
583 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
584 (xcoff_initial_scan): Update.
586 2019-05-08 Tom Tromey <tom@tromey.com>
588 * solib-svr4.c (struct svr4_info): Add initializers and
590 <probes_table>: Now an htab_up.
591 (solib_svr4_pspace_data): Change type.
592 (free_probes_table): Simplify.
593 (~svr4_info): Rename from svr4_pspace_data_cleanup.
594 (get_svr4_info, probes_table_htab_remove_objfile_probes)
595 (probes_table_remove_objfile_probes, register_solib_event_probe)
596 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
597 (_initialize_svr4_solib): Update.
599 2019-05-08 Tom Tromey <tom@tromey.com>
601 * remote.c (remote_pspace_data): Change type.
602 (remote_pspace_data_cleanup): Remove.
603 (get_remote_exec_file, set_pspace_remote_exec_file)
604 (_initialize_remote): Update.
606 2019-05-08 Tom Tromey <tom@tromey.com>
608 * breakpoint.c (breakpoint_objfile_key): Change type.
609 (get_breakpoint_objfile_data): Update.
610 (free_breakpoint_objfile_data): Remove.
611 (_initialize_breakpoint): Update.
613 2019-05-08 Tom Tromey <tom@tromey.com>
615 * linux-tdep.c (struct linux_info): Add initializers.
616 (linux_inferior_data): Move. Change type.
617 (invalidate_linux_cache_inf): Update.
618 (linux_inferior_data_cleanup): Remove.
619 (get_linux_inferior_data, _initialize_linux_tdep): Update.
621 2019-05-08 Tom Tromey <tom@tromey.com>
623 * auxv.c (auxv_inferior_data): Move. Change type.
624 (auxv_inferior_data_cleanup): Remove.
625 (invalidate_auxv_cache_inf): Rewrite.
626 (get_auxv_inferior_data, _initialize_auxv): Update.
628 2019-05-08 Tom Tromey <tom@tromey.com>
630 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
631 (symfile_debug_objfile_data_key): Change type.
632 (symfile_debug_installed, debug_qf_has_symbols)
633 (debug_qf_find_last_source_symtab)
634 (debug_qf_forget_cached_source_info)
635 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
636 (debug_qf_print_stats, debug_qf_dump)
637 (debug_qf_expand_symtabs_for_function)
638 (debug_qf_expand_all_symtabs)
639 (debug_qf_expand_symtabs_with_fullname)
640 (debug_qf_map_matching_symbols)
641 (debug_qf_expand_symtabs_matching)
642 (debug_qf_find_pc_sect_compunit_symtab)
643 (debug_qf_map_symbol_filenames)
644 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
645 (debug_sym_new_init, debug_sym_init, debug_sym_read)
646 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
647 (debug_sym_read_linetable, debug_sym_relocate): Update.
648 (symfile_debug_free_objfile): Remove.
649 (install_symfile_debug_logging, _initialize_symfile_debug):
652 2019-05-08 Tom Tromey <tom@tromey.com>
654 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
656 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
657 (get_dwarf2_per_objfile): Update.
658 (set_dwarf2_per_objfile): Remove.
659 (dwarf2_has_info, dwarf2_get_section_info): Update.
660 (dwarf2_free_objfile): Remove.
661 (_initialize_dwarf2_read): Update.
663 2019-05-08 Tom Tromey <tom@tromey.com>
665 * auto-load.c (struct auto_load_pspace_info): Add destructor and
667 <unsupported_script_warning_printed,
668 script_not_found_warning_printed>: Now bool.
669 (auto_load_pspace_data): Change type.
670 (~auto_load_pspace_info): Rename from
671 auto_load_pspace_data_cleanup.
672 (get_auto_load_pspace_data, init_loaded_scripts_info)
673 (clear_section_scripts, maybe_print_unsupported_script_warning)
674 (maybe_print_script_not_found_warning, _initialize_auto_load):
677 2019-05-08 Tom Tromey <tom@tromey.com>
679 * objfiles.c (objfile_pspace_info): Add destructor and
681 (objfiles_pspace_data): Change type.
682 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
683 (get_objfile_pspace_data): Update.
684 (objfiles_bfd_data): Change type.
685 (get_objfile_bfd_data): Update.
686 (objfile_bfd_data_free, _initialize_objfiles): Remove.
688 2019-05-08 Tom Tromey <tom@tromey.com>
690 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
692 (get_catch_syscall_inferior_data): Update.
693 (catch_syscall_inferior_data_cleanup): Remove.
694 (_initialize_break_catch_syscall): Update.
696 2019-05-08 Tom Tromey <tom@tromey.com>
698 * inflow.c (struct terminal_info): Add destructor and
700 (inflow_inferior_data): Change type.
701 (~terminal_info): Rename from inflow_inferior_data_cleanup.
702 (get_inflow_inferior_data, inflow_inferior_exit)
703 (swap_terminal_info, _initialize_inflow): Update.
705 2019-05-08 Tom Tromey <tom@tromey.com>
707 * target-dcache.c (target_dcache_cleanup): Remove.
708 (target_dcache_aspace_key): Change type.
709 (target_dcache_init_p, target_dcache_invalidate)
710 (target_dcache_get, target_dcache_get_or_init)
711 (_initialize_target_dcache): Update.
712 * dcache.h (struct dcache_deleter): New.
714 2019-05-08 Tom Tromey <tom@tromey.com>
716 * symtab.c (struct symbol_cache): Add destructor and
718 (symbol_cache_key): Move. Change type.
719 (make_symbol_cache, free_symbol_cache): Remove.
720 (get_symbol_cache): Update.
721 (symbol_cache_cleanup): Remove.
722 (ALL_PSPACES, symbol_cache_flush)
723 (maintenance_print_symbol_cache)
724 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
727 2019-05-08 Tom Tromey <tom@tromey.com>
729 * symtab.c (struct main_info): Add destructor and initializers.
730 (main_progspace_key): Move. Change type.
731 (get_main_info): Update.
732 (main_info_cleanup): Remove.
733 (_initialize_symtab): Update.
735 2019-05-08 Tom Tromey <tom@tromey.com>
737 * registry.h (DECLARE_REGISTRY): Define the _key class.
739 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
741 * NEWS: Merge two 'New commands' sections.
743 2019-05-08 Joel Brobecker <brobecker@adacore.com>
745 * ada-valprint.c (ada_val_print_gnat_array): Remove language
746 parameter and use Ada language definition instead.
747 (ada_val_print_ptr): Remove unused language parameter.
748 (ada_val_print_num): Remove language parameter and use Ada language
750 (ada_val_print_enum, ada_val_print_flt): Remove unused language
752 (ada_val_print_struct_union, ada_val_print_ref): Remove language
753 parameter and use Ada language definition instead.
754 (ada_val_print_1): Update all ada_val_print_xxx calls.
755 Remove language parameter.
756 (ada_val_print): Update ada_val_print_1 call.
758 2019-05-08 Tom Tromey <tromey@adacore.com>
760 * remote.c (remote_hw_watchpoint_limit)
761 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
764 2019-05-08 Tom Tromey <tromey@adacore.com>
766 * maint.c (_initialize_maint_cmds): Move initialization code to
768 (watchdog, show_watchdog): Move to remote.c.
769 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
771 (_initialize_remote): Move initialization code from maint.c.
772 * defs.h (watchdog): Don't declare.
774 2019-05-08 Tom Tromey <tromey@adacore.com>
776 * tui/tui-interp.c: Include main.h.
777 * interps.c: Include main.h.
778 * main.h (interpreter_p): Declare.
779 * defs.h (interpreter_p): Don't declare.
781 2019-05-08 Tom Tromey <tromey@adacore.com>
783 * dwarf2loc.c: Include dwarf2read.h.
784 * defs.h (read_unsigned_leb128): Don't declare.
785 * dwarf2read.h (read_unsigned_leb128): Declare.
787 2019-05-08 Tom Tromey <tromey@adacore.com>
789 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
792 2019-05-08 Tom Tromey <tromey@adacore.com>
794 * utils.c (fputs_maybe_filtered): Reset style after paging, even
795 when no wrap column is set.
797 2019-05-08 Tom Tromey <tromey@adacore.com>
799 * c-lang.c (c_get_string): Handle non-C-style arrays.
801 2019-05-08 Tom Tromey <tromey@adacore.com>
803 * typeprint.c (print_offset_data::update): Print the bit offset,
804 not the number of bits remaining.
806 2019-05-08 Tom Tromey <tromey@adacore.com>
808 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
809 padding at end of comment.
811 2019-05-08 Tom Tromey <tromey@adacore.com>
813 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
816 2019-05-06 Tom Tromey <tom@tromey.com>
818 * common/scoped_mmap.c: Include common-defs.h.
819 * common/scoped_mmap.h: Don't include config.h.
821 2019-05-04 Tom Tromey <tom@tromey.com>
823 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
824 (struct aarch64_call_info): Add initializers.
825 <si>: Now a std::vector.
826 (pass_on_stack, aarch64_push_dummy_call): Update.
828 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
829 Tom Tromey <tom@tromey.com>
831 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
832 (ppc_threads): Now a std::vector. Now static.
833 (hwdebug_find_thread_points_by_tid)
834 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
837 2019-05-04 Tom Tromey <tom@tromey.com>
839 * arc-tdep.c (arc_tdesc_init): Return bool.
841 2019-05-04 Tom Tromey <tom@tromey.com>
843 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
844 Use gdb_assert_not_reached.
846 2019-05-04 Tom Tromey <tom@tromey.com>
848 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
851 2019-05-04 Tom Tromey <tom@tromey.com>
853 * arc-tdep.c (arc_tdesc_init): Use bool.
855 2019-05-04 Tom Tromey <tom@tromey.com>
857 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
859 2019-05-04 Tom Tromey <tom@tromey.com>
861 * cli/cli-cmds.c (valid_command_p): Return bool.
863 2019-05-04 Tom Tromey <tom@tromey.com>
865 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
866 * command.h (valid_user_defined_cmd_name_p): Channge return type.
868 2019-05-04 Raul Tambre <raul@tambre.ee>
870 * python/lib/gdb/prompt.py (_ExtendedPrompt)
871 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
872 operator for comparison.
874 2019-05-04 Tom Tromey <tom@tromey.com>
876 * psymtab.c (psymbol_name_matches, match_partial_symbol)
877 (lookup_partial_symbol, print_partial_symbols)
878 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
879 (psymbol_compare): Update.
880 (add_psymbol_to_bcache): Clear the entire psymbol.
881 (maintenance_check_psymtabs): Update.
882 * psympriv.h (struct partial_symbol): Don't derive from
884 <obj_section, unrelocated_address, address,
885 set_unrelocated_address>: Update.
887 * dwarf-index-write.c (write_psymbols, debug_names::insert)
888 (debug_names::write_psymbols): Update.
890 2019-05-04 Tom de Vries <tdevries@suse.de>
892 * contrib/cc-with-tweaks.sh: Support -n arg.
894 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
896 * corelow.c (core_target::detach): Ensure frame cache and
897 register caches are cleared.
898 inferior.c (exit_inferior_1): Likewise.
900 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
901 Tom Tromey <tom@tromey.com>
903 * dictionary.c (collate_pending_symbols_by_language): Remove
904 "struct" from foreach.
905 * symtab.c (lookup_global_symbol_from_objfile)
906 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
908 * ser-tcp.c (net_open): Remove "struct" from foreach.
909 * objfiles.c (objfile_relocate, objfile_rebase)
910 (objfile_has_symbols): Remove "struct" from foreach.
911 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
913 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
915 * darwin-nat.c (thread_info_from_private_thread_info): Remove
916 "struct" from foreach.
917 * ada-lang.c (create_excep_cond_exprs)
918 (ada_exception_catchpoint_cond_string): Remove "struct" from
921 2019-05-03 Tom Tromey <tromey@adacore.com>
923 * ada-exp.y (convert_char_literal): Check suffix of each
926 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
929 * ada-exp.y (yywrap): Don't define.
930 * ada-lex.l (%option): Add noyywrap
933 2019-05-03 Eli Zaretskii <eliz@gnu.org>
935 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
936 _WIN32_WINNT to the XP level, unless already defined to a higher
939 * unittests/parse-connection-spec-selftests.c:
941 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
944 * symfile.c (find_separate_debug_file): Remove colon from the
945 drive spec of DOS/Windows file names of the target, so that the
946 file name produced from DEBUGDIR and the target's directory will
947 be valid on DOS/Windows systems.
949 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
951 * rust-lang.c (val_print_struct): Handle printing structures
954 2019-05-02 Tom Tromey <tromey@adacore.com>
956 * valarith.c (_initialize_valarith): Remove.
958 2019-05-01 Tom Tromey <tromey@adacore.com>
960 * ada-lang.c (ada_value_primitive_field): Treat more fields as
963 2019-05-01 Tom Tromey <tromey@adacore.com>
965 * ada-lang.c (ada_value_assign): Correctly compute starting offset
966 for big-endian copies.
968 2019-04-30 Ali Tamur <tamur@google.com>
969 * gdb/dwarf2read.c (read_3_bytes): New declaration.
970 (read_attribute_value): Added DW_FORM_strx1-4 cases.
971 (read_3_bytes): New function.
973 2019-04-30 Joel Brobecker <brobecker@adacore.com>
975 * windows-nat.c (main_thread_id): Delete.
976 (handle_output_debug_string): Replace main_thread_id by
977 current_event.dwThreadId.
978 (fake_create_process): Likewise.
979 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
980 Do not set main_thread_id.
981 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
982 current_event.dwThreadId.
983 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
985 2019-04-30 Joel Brobecker <brobecker@adacore.com>
987 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
988 Use current_event.dwThreadId instead of main_thread_id.
990 2019-04-30 Tom Tromey <tromey@adacore.com>
992 * ada-lang.c (ada_lookup_simple_minsyms): New function.
993 (create_excep_cond_exprs): Iterate over program spaces.
994 (ada_exception_catchpoint_cond_string): Examine all minimal
995 symbols for exception types.
997 2019-04-30 Tom Tromey <tromey@adacore.com>
1000 * dwarf2read.c (process_structure_scope): Handle case where type
1001 has template parameters but no symbol was created.
1003 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1004 Chris January <chris.january@arm.com>
1006 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1008 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1010 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1012 * f-typeprint.c (f_print_type): Update rules for printing
1014 (f_type_print_varspec_suffix): Likewise.
1016 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1017 Chris January <chris.january@arm.com>
1019 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1022 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1024 * f-lang.c (build_fortran_types): Change name of void type to
1026 * f-typeprint.c (f_type_print_base): Print the name of the void
1027 type, rather than a fixed string.
1028 * f-valprint.c (f_decorations): Use lower case void string.
1030 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1031 Chris January <chris.january@arm.com>
1033 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1036 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1037 Chris January <chris.january@arm.com>
1038 David Lecomber <david.lecomber@arm.com>
1040 * f-exp.y (BINOP_INTRINSIC): New token.
1041 (exp): New parser rule handling BINOP_INTRINSIC.
1042 (f77_keywords): Add new builtin procedures.
1043 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1044 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1045 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1046 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1047 (print_unop_subexp_f): New function.
1048 (print_binop_subexp_f): New function.
1049 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1050 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1051 (dump_subexp_body_f): Likewise.
1052 (operator_check_f): Likewise.
1053 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1054 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1056 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1058 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1060 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1061 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1062 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1063 (operator_length_f): New fuction.
1064 (print_subexp_f): New function.
1065 (op_name_f): New function.
1066 (dump_subexp_body_f): New function.
1067 (operator_check_f): New function.
1068 (exp_descriptor_f): Replace standard expression handling functions
1070 * gdb/fortran-operator.def: New file.
1071 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1072 * gdb/std-operator.def: Remove UNOP_KIND.
1074 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1076 * std-operator.def: Remove unbalanced, stray double quote
1079 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1080 Chris January <chris.january@arm.com>
1081 Daniel Everett <daniel.everett@arm.com>
1082 Nick Forrington <nick.forrington@arm.com>
1083 Richard Bunt <richard.bunt@arm.com>
1085 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1086 of depth when printing anonymous structs or unions.
1087 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1088 Don't print either the top-level value, or the children if the
1089 max-depth is exceeded.
1090 (ppscm_print_children): When printing the key of a map, allow one
1091 extra level of depth.
1092 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1093 print either the top-level value, or the children if the max-depth
1095 (print_children): When printing the key of a map, allow one extra
1097 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1098 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1099 (user_print_options): Initialise max_depth field.
1100 (val_print_scalar_or_string_type_p): New function.
1101 (val_print): Check to see if the max depth has been reached.
1102 (val_print_check_max_depth): Define new function.
1103 (show_print_max_depth): New function.
1104 (_initialize_valprint): Add 'print max-depth' option.
1105 * valprint.h (struct value_print_options) <max_depth>: New field.
1106 (val_print_check_max_depth): Declare new function.
1107 * NEWS: Document new feature.
1109 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1111 * ada-lang.c (ada_language_defn): Initialise new field.
1112 * c-lang.c (c_is_string_type_p): New function.
1113 (c_language_defn): Initialise new field.
1114 (cplus_language_defn): Initialise new field.
1115 (asm_language_defn): Initialise new field.
1116 (minimal_language_defn): Initialise new field.
1117 * c-lang.h (c_is_string_type_p): Declare new function.
1118 * d-lang.c (d_language_defn): Initialise new field.
1119 * f-lang.c (f_is_string_type_p): New function.
1120 (f_language_defn): Initialise new field.
1121 * go-lang.c (go_is_string_type_p): New function.
1122 (go_language_defn): Initialise new field.
1123 * language.c (default_is_string_type_p): New function.
1124 (unknown_language_defn): Initialise new field.
1125 (auto_language_defn): Initialise new field.
1126 * language.h (struct language_defn) <la_is_string_type_p>: New
1128 (default_is_string_type_p): Declare new function.
1129 * m2-lang.c (m2_language_defn): Initialise new field.
1130 * objc-lang.c (objc_language_defn): Initialise new field.
1131 * opencl-lang.c (opencl_language_defn): Initialise new field.
1132 * p-lang.c (pascal_is_string_type_p): New function.
1133 (pascal_language_defn): Initialise new field.
1134 * rust-lang.c (rust_is_string_type_p): New function.
1135 (rust_language_defn): Initialise new field.
1137 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1139 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1141 * ada-lang.c (ada_language_defn): Initialise new field.
1142 * c-lang.c (c_language_defn): Likewise.
1143 (cplus_language_defn): Likewise.
1144 (asm_language_defn): Likewise.
1145 (minimal_language_defn): Likewise.
1146 * d-lang.c (d_language_defn): Likewise.
1147 * f-lang.c (f_language_defn): Likewise.
1148 * go-lang.c (go_language_defn): Likewise.
1149 * language.c (unknown_language_defn): Likewise.
1150 (auto_language_defn): Likewise.
1151 * m2-lang.c (m2_language_defn): Likewise.
1152 * objc-lang.c (objc_language_defn): Likewise.
1153 * opencl-lang.c (opencl_language_defn): Likewise.
1154 * p-lang.c (pascal_language_defn): Likewise.
1155 * rust-lang.c (rust_language_defn): Likewise.
1157 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1159 * ada-lang.c (ada_is_character_type): Change return type to bool.
1160 (ada_is_string_type): Likewise.
1161 * ada-lang.h (ada_is_character_type): Update declaration
1162 (ada_is_string_type): Likewise.
1164 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1166 Support style in 'frame|thread apply'
1168 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1169 * record.c (record_start, record_stop): Update callers of
1170 execute_command_to_string with false.
1171 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1172 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1174 (class string_file): New constructor with term_out parameter.
1175 Override methods term_out and can_emit_style_escape. New member
1177 (class stdio_file): Override can_emit_style_escape.
1178 (class tee_file): Override term_out and can_emit_style_escape.
1179 * utils.h (can_emit_style_escape): Remove.
1180 * utils.c (can_emit_style_escape): Likewise.
1181 Update all callers of can_emit_style_escape (SOMESTREAM) to
1182 SOMESTREAM->can_emit_style_escape.
1183 * source-cache.c (source_cache::get_source_lines): Likewise.
1184 * stack.c (frame_apply_command_count): Call execute_command_to_string
1185 passing the term_out characteristic of the current gdb_stdout.
1186 * thread.c (thr_try_catch_cmd): Likewise.
1187 * top.c (execute_command_to_string): pass term_out parameter
1188 to construct the string_file for the command output.
1189 * ui-file.c (term_cli_styling): New function (most code moved
1190 from utils.c can_emit_style_escape).
1191 (string_file::string_file, string_file::can_emit_style_escape,
1192 stdio_file::can_emit_style_escape, tee_file::term_out,
1193 tee_file::can_emit_style_escape): New functions.
1195 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1197 * NEWS: Mention the new set|show may-call-functions.
1198 * infcall.c (may_call_functions_p): New variable.
1199 (show_may_call_functions_p): New function.
1200 (call_function_by_hand_dummy): Throws an error if not
1202 (_initialize_infcall): Call add_setshow_boolean_cmd for
1205 2019-04-25 Keith Seitz <keiths@redhat.com>
1208 * cp-support.c (inspect_type): Don't attempt substitutions
1209 of symbol with the same name.
1211 2019-04-25 Tom Tromey <tromey@adacore.com>
1214 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1217 2019-04-25 Tom Tromey <tromey@adacore.com>
1219 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1221 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1222 (gdb_xml_parser::parse): Use std::move.
1223 * python/python-internal.h (gdbpy_convert_exception): Take a const
1225 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1227 * python/py-utils.c (gdbpy_convert_exception): Take a const
1229 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1231 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1233 * mi/mi-main.c (mi_print_exception): Take a const reference.
1234 * main.c (handle_command_errors): Take a const reference.
1235 * linespec.c (parse_linespec): Use std::move.
1236 * infcall.c (run_inferior_call): Use std::move.
1237 (call_function_by_hand_dummy): Use std::move.
1238 * exec.c (try_open_exec_file): Use std::move.
1239 * exceptions.h (exception_print, exception_fprintf)
1240 (exception_print_same): Update.
1241 * exceptions.c (print_exception, exception_print)
1242 (exception_fprintf, exception_print_same): Change parameters to
1244 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1245 * common/new-op.c: Use std::move.
1246 * common/common-exceptions.h (struct gdb_exception): Add move
1248 (struct gdb_exception_error, struct gdb_exception_quit, struct
1249 gdb_quit_bad_alloc): Change constructor to move constructor.
1250 (throw_exception): Change parameter to rvalue reference.
1251 * common/common-exceptions.c (throw_exception): Take rvalue
1253 * cli/cli-interp.c (safe_execute_command): Use std::move.
1254 * breakpoint.c (insert_bp_location, location_to_sals): Use
1257 2019-04-25 Tom Tromey <tromey@adacore.com>
1259 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1260 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1261 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1262 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1263 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1264 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1265 guile/scm-value.c: Use unpack.
1266 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1267 gdbscm_gdb_exception.
1268 (gdbscm_throw_gdb_exception): Likewise.
1269 (struct gdbscm_gdb_exception): New.
1270 (unpack): New function.
1271 (gdbscm_wrap): Use unpack.
1273 2019-04-25 Tom Tromey <tromey@adacore.com>
1275 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1276 (gdb_rl_callback_handler): Use std::move.
1277 * common/common-exceptions.h (struct gdb_exception): Add move
1278 assignment operator.
1279 (throw_exception_sjlj): Change "exception" to const reference.
1280 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1281 (throw_exception_sjlj): Change "exception" to const reference.
1283 2019-04-25 Tom Tromey <tromey@adacore.com>
1285 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1286 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1287 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1289 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1291 * mi/mi-interp.c (mi_interp::exec): Update.
1292 * linespec.c (parse_linespec): Update.
1293 * infcall.c (run_inferior_call): Update.
1294 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1295 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1296 (gdbscm_lookup_global_symbol): Update.
1297 * guile/scm-param.c (gdbscm_parameter_value): Update.
1298 * guile/scm-frame.c (gdbscm_frame_read_register)
1299 (gdbscm_frame_read_var): Update.
1300 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1301 * exec.c (try_open_exec_file): Update.
1302 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1303 (gdb_rl_callback_handler): Update.
1304 * common/common-exceptions.h (exception_none): Don't declare.
1305 * common/common-exceptions.c (exception_none): Don't define.
1306 (struct catcher) <exception>: Update.
1307 * cli/cli-interp.c (safe_execute_command): Update.
1308 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1310 2019-04-25 Ali Tamur <tamur@google.com>
1312 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1313 (read_attribute_value): Likewise.
1314 (dwarf2_read_addr_index): Update comment.
1315 (read_str_index): Add DW_FORM_strx.
1316 (dwarf2_string_attr): Likewise.
1317 (dwarf2_const_value_attr): Likewise.
1318 (dump_die_shallow): Likewise.
1319 (dwarf2_fetch_constant_bytes): Likewise.
1320 (skip_form_bytes): Likewise.
1321 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1323 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1327 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1328 OFFSET. Verify if current mapping contains an ELF header.
1329 (linux_find_memory_regions_full): Adjust call to
1332 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1333 Kang Li <kanglictf@gmail.com>
1337 * dwarf2-frame.c (read_initial_length): Be consistent about using
1338 unsigned representation of length.
1339 (decode_frame_entry_1): Likewise. Check for wraparound of
1340 end pointer as well as buffer overflow.
1342 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1344 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1347 2019-04-24 Tom Tromey <tromey@adacore.com>
1349 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1351 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1353 * s12z-tdep.c (s12z_unwind_pc): Delete.
1354 (s12z_unwind_sp): Delete.
1355 (s12z_gdbarch_init): Don't register deleted functions with
1358 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1360 * rl78-tdep.c (rl78_unwind_sp): Delete.
1361 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1363 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1365 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1366 (xstormy16_unwind_pc): Delete.
1367 (xstormy16_dummy_id): Delete.
1368 (xstormy16_gdbarch_init): Don't register deleted functions with
1371 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1373 * vax-tdep.c (vax_unwind_pc): Delete.
1374 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1376 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1378 * v850-tdep.c (v850_unwind_sp): Delete.
1379 (v850_unwind_pc): Delete.
1380 (v850_dummy_id): Delete.
1381 (v850_gdbarch_init): Don't register deleted functions with
1384 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1386 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1387 (tilegx_unwind_pc): Delete.
1388 (tilegx_unwind_dummy_id): Delete.
1389 (tilegx_gdbarch_init): Don't register deleted functions with
1392 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1394 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1395 (tic6x_dummy_id): Delete.
1396 (tic6x_gdbarch_init): Don't register deleted functions with
1399 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1401 * sparc-tdep.c (sparc_unwind_pc): Delete.
1402 (sparc32_gdbarch_init): Don't register deleted function with
1405 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1407 * sh-tdep.c (sh_unwind_sp): Delete.
1408 (sh_unwind_pc): Delete.
1409 (sh_dummy_id): Delete.
1410 (sh_gdbarch_init): Don't register deleted functions with
1413 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1415 * score-tdep.c (score_unwind_sp): Delete.
1416 (score_unwind_pc): Delete.
1417 (score_dummy_id): Delete.
1418 (score_gdbarch_init): Don't register deleted functions with
1421 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1423 * rx-tdep.c (rx_unwind_pc): Delete.
1424 (rx_unwind_sp): Delete.
1425 (rx_dummy_id): Delete.
1426 (rx_gdbarch_init): Don't register deleted functions with
1427 gdbarch. Update comment.
1429 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1431 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1432 (rs6000_dummy_id): Delete.
1433 (rs6000_gdbarch_init): Don't register deleted functions with
1436 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1438 * or1k-tdep.c (or1k_dummy_id): Delete.
1439 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1441 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1443 * nios2-tdep.c (nios2_dummy_id): Delete.
1444 (nios2_unwind_sp): Delete.
1445 (nios2_gdbarch_init): Don't register deleted functions with
1448 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1450 * nds32-tdep.c (nds32_dummy_id): Delete.
1451 (nds32_unwind_pc): Delete.
1452 (nds32_unwind_sp): Delete.
1453 (nds32_gdbarch_init): Don't register deleted functions with
1456 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1458 * msp430-tdep.c (msp430_unwind_pc): Delete.
1459 (msp430_unwind_sp): Delete.
1460 (msp430_dummy_id): Delete.
1461 (msp430_gdbarch_init): Don't register deleted functions with
1464 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1466 * moxie-tdep.c (moxie_unwind_sp): Delete.
1467 (moxie_unwind_pc): Delete.
1468 (moxie_dummy_id): Delete.
1469 (moxie_gdbarch_init): Don't register deleted functions with
1472 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1474 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1475 (mn10300_unwind_pc): Delete.
1476 (mn10300_unwind_sp): Delete.
1477 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1479 (mn10300_frame_unwind_init): Don't register deleted functions with
1482 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1484 * mep-tdep.c (mep_unwind_pc): Delete.
1485 (mep_unwind_sp): Delete.
1486 (mep_dummy_id): Delete.
1487 (mep_gdbarch_init): Don't register deleted functions with
1490 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1492 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1493 (m68hc11_unwind_sp): Delete.
1494 (m68hc11_gdbarch_init): Don't register deleted functions with
1497 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1499 * m32r-tdep.c (m32r_unwind_sp): Delete.
1500 (m32r_unwind_pc): Delete.
1501 (m32r_dummy_id): Delete.
1502 (m32r_gdbarch_init): Don't register deleted functions with
1505 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1507 * m32c-tdep.c (m32c_unwind_pc): Delete.
1508 (m32c_unwind_sp): Delete.
1509 (m32c_dummy_id): Delete.
1510 (m32c_gdbarch_init): Don't register deleted functions with
1513 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1515 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1516 (lm32_unwind_pc): Delete.
1517 (lm32_dummy_id): Delete.
1518 (lm32_gdbarch_init): Don't register deleted functions with
1521 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1523 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1524 (iq2000_unwind_pc): Delete.
1525 (iq2000_dummy_id): Delete.
1526 (iq2000_gdbarch_init): Don't register deleted functions with
1529 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1531 * nds32-tdep.c (nds32_type_align): Delete.
1532 (nds32_push_dummy_call): Use type_align instead.
1534 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1536 * arm-tdep.c (arm_type_align): Only handle vector override case.
1537 (arm_push_dummy_call): Use type_align.
1538 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1540 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1542 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1544 (pass_on_stack): Use type_align.
1545 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1548 2019-04-23 Tom Tromey <tromey@adacore.com>
1550 * dwarf2read.c (line_header::file_name_at): Remove unused
1553 2019-04-23 Tom de Vries <tdevries@suse.de>
1556 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1560 2019-03-27 Ali Tamur <tamur@google.com>
1562 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1563 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1564 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1565 (dwarf_expr_context::get_addr_index): Likewise
1566 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1567 (symbol_needs_eval_context::get_addr_index): Likewise
1568 (disassemble_dwarf_expression): Add DW_OP_addrx
1569 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1570 (read_cutu_die_from_dwo): Update comment
1571 (skip_one_die): Add DW_FORM_addrx
1572 (read_attribute_value): Likewise
1573 (var_decode_location): Add DW_OP_addrx
1574 (dwarf2_const_value_attr): Add DW_FORM_addrx
1575 (dump_die_shallow): Likewise
1576 (dwarf2_fetch_constant_bytes): Likewise
1577 (decode_locdesc): Add DW_OP_addrx
1578 (skip_form_bytes): Add DW_FORM_addrx
1580 2019-04-22 Ali Tamur <tamur@google.com>
1582 * MAINTAINERS (Write After Approval): Add self.
1584 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1586 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1587 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1588 (open_symbol_file_object): Likewise.
1589 (svr4_default_sos): Add info parameter.
1590 (svr4_read_so_list): Likewise.
1591 (svr4_current_sos_direct): Adjust functions calls to pass down
1593 (svr4_current_sos_1): Add info parameter.
1594 (svr4_current_sos): Call get_svr4_info, pass info down to
1596 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1598 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1600 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1602 (probes_table_remove_objfile_probes): Likewise.
1603 (register_solib_event_probe): Add info parameter.
1604 (solist_update_incremental): Pass info parameter down to
1606 (disable_probes_interface): Add info parameter.
1607 (svr4_handle_solib_event): Pass current_program_space to
1608 get_svr4_info. Adjust disable_probes_interface cleanup.
1609 (svr4_create_probe_breakpoints): Add info parameter, pass it
1610 down to register_solib_event_probe.
1611 (svr4_create_solib_event_breakpoints): Add info parameter,
1612 pass it down to svr4_create_probe_breakpoints.
1613 (enable_break): Pass info down to
1614 svr4_create_solib_event_breakpoints.
1615 (svr4_solib_create_inferior_hook): Pass current_program_space to
1617 (svr4_clear_solib): Likewise.
1619 2019-04-22 Pedro Alves <palves@redhat.com>
1621 * solib-svr4.c (svr4_free_objfile_observer): New.
1622 (probe_and_action::objfile): New field.
1623 (probes_table_htab_remove_objfile_probes)
1624 (probes_table_remove_objfile_probes): New functions.
1625 (register_solib_event_probe): Add 'objfile' parameter. Store it
1626 in the new probe_and_action. Don't store the probe in 'lookup'.
1627 (svr4_create_probe_breakpoints): Pass objfile to
1628 register_solib_event_probe.
1629 (_initialize_svr4_solib): Register a free_objfile observer.
1631 2019-04-19 Tom Tromey <tom@tromey.com>
1633 * common/queue.h: Remove.
1635 2019-04-19 Tom Tromey <tom@tromey.com>
1637 * event-loop.c: Don't include "common/queue.h".
1639 2019-04-19 Tom Tromey <tom@tromey.com>
1641 * remote.c (remote_target): Use delete.
1642 * remote-notif.h: Include <list>, not "common/queue.h".
1643 (notif_client_p): Remove typedef.
1644 (remote_notif_state): Add constructor, destructor, initializer.
1645 <notif_queue>: Now a std::list.
1646 (remote_notif_state_xfree): Don't declare.
1647 * remote-notif.c (remote_notif_process, handle_notification)
1648 (remote_notif_state_allocate): Update.
1649 (~remote_notif_state): Rename from remote_notif_state_xfree.
1651 2019-04-19 Tom Tromey <tom@tromey.com>
1653 * symfile.c (reread_symbols): Update.
1654 * objfiles.c (objfile_register_static_link)
1655 (objfile_lookup_static_link): Update
1656 (~objfile) Don't delete static_links.
1657 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1659 2019-04-19 Tom Tromey <tom@tromey.com>
1661 * type-stack.h (struct type_stack) <insert>: Constify string.
1662 * type-stack.c (type_stack::insert): Constify string.
1663 * gdbtypes.h (lookup_template_type): Update.
1664 (address_space_name_to_int): Update.
1665 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1667 (lookup_template_type): Make name const.
1668 * c-exp.y: Update rules.
1669 (lex_one_token, classify_name, classify_inner_name)
1670 (c_print_token): Update.
1671 * p-exp.y: Update rules.
1673 * f-exp.y: Update rules.
1675 * d-exp.y: Update rules.
1676 (lex_one_token, classify_name, classify_inner_name): Update.
1677 * parse.c (write_dollar_variable, copy_name): Return std::string.
1678 * parser-defs.h (copy_name): Change return type.
1679 * m2-exp.y: Update rules.
1681 * go-exp.y (lex_one_token): Update.
1683 (classify_unsafe_function, classify_packaged_name)
1684 (classify_name, yylex): Update.
1686 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1688 * configure.ac: add --enable-source-highlight switch.
1689 * configure: Regenerate.
1690 * top.c (print_gdb_version): plumb --enable-source-highlight
1691 status to "show configuration".
1693 2019-04-19 Tom Tromey <tromey@adacore.com>
1695 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1697 (empty_record, ada_template_to_fixed_record_type_1)
1698 (template_to_static_fixed_type)
1699 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1700 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1701 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1704 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1707 * source.c (print_source_lines_base): Advance "iter" when a
1708 control character is seen.
1710 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1712 * inferior.h (struct infcall_suspend_state_deleter):
1713 Catch exception in destructor to avoid crash.
1715 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1717 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1718 close to the add_com "shell".
1720 2019-04-18 Tom Tromey <tromey@adacore.com>
1722 * process-stratum-target.h (class process_stratum_target)
1723 <stratum>: Add "final".
1725 2019-04-17 Tom Tromey <tromey@adacore.com>
1727 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1728 against nullptr before use.
1730 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1732 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1734 2019-04-17 Jim Wilson <jimw@sifive.com>
1735 Andrew Burgess <andrew.burgess@embecosm.com>
1737 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1738 code read might fail, assume 4-byte breakpoint in that case.
1740 2019-04-15 Leszek Swirski <leszeks@google.com>
1742 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1743 rather than a hand-rolled POD check when checking for forced MEMORY
1746 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1748 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1749 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1751 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1752 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1753 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1756 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1758 * aarch64-linux-nat.c
1759 (aarch64_linux_nat_target::thread_architecture): Add override.
1760 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1763 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1765 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1767 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1769 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1770 target types of size 96-bits, add some additional comments, and
1771 check that the builtin type we found was the correct size.
1773 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1775 * utils.c (prompt_for_continue): Don't restore the styling at the
1776 end, as applied_style has the wrong value. This fixes styling in
1777 long lists of file names that are interrupted by the "Continue?"
1780 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1782 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1783 * c-lang.c (c_language_defn): Likewise.
1784 (cplus_language_defn): Likewise.
1785 (asm_language_defn): Likewise.
1786 (minimal_language_defn): Likewise.
1787 * d-lang.c (d_language_defn): Likewise.
1788 * f-lang.c (f_language_defn): Likewise.
1789 * go-lang.c (go_language_defn): Likewise.
1790 * language.c (unknown_language_defn): Likewise.
1791 (auto_language_defn): Likewise.
1792 * language.h (struct language_defn): Remove la_magic field.
1793 (LANG_MAGIC): Delete.
1794 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1795 * objc-lang.c (objc_language_defn): Likewise.
1796 * opencl-lang.c (opencl_language_defn): Likewise.
1797 * p-lang.c (pascal_language_defn): Likewise.
1798 * rust-lang.c (rust_language_defn): Likewise.
1800 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1802 * riscv-tdep.c (riscv_type_align): New function.
1803 (riscv_type_alignment): Delete.
1804 (riscv_arg_location): Use 'type_align'.
1805 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1807 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1809 * gdbtypes.c (type_align): A struct with no non-static fields also
1812 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1814 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1816 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1818 (riscv_struct_info::analyse): New implementation using new
1819 analyse_inner member function.
1820 (riscv_struct_info::field_offset): New member function.
1821 (riscv_struct_info::m_offsets): New member variable.
1822 (riscv_struct_info::analyse_inner): New private member function,
1823 takes the old implementation of riscv_struct_info::analyse but
1824 extended to track field offsets.
1825 (riscv_call_arg_struct): Update the struct folding special cases
1826 to handle cases where empty C++ structs, which are non-zero
1828 (riscv_arg_location): Initialise the length of each location, a
1829 non-zero length now indicates the location is in use.
1830 (riscv_push_dummy_call): Allow for the first location having a
1831 non-zero offset when setting up arguments.
1832 (riscv_return_value): Likewise, but for return values.
1834 2019-04-11 Tom Tromey <tromey@adacore.com>
1836 * utils.c (internal_vproblem): Make "msg" const.
1838 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1840 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1841 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1842 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1843 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1845 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1847 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1849 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1850 of amd64_collect_native_gregset.
1851 (amd64_linux_nat_target::store_registers): Likewise.
1853 2019-04-10 Tom Tromey <tom@tromey.com>
1855 * symtab.c (lookup_global_symbol_from_objfile)
1856 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1857 * objfiles.h (class separate_debug_iterator): New.
1858 (class separate_debug_range): New.
1859 (struct objfile) <separate_debug_objfiles>: New method.
1860 (objfile_separate_debug_iterate): Don't declare.
1861 * objfiles.c (separate_debug_iterator::operator++): Rename from
1862 objfile_separate_debug_iterate.
1863 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1865 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1868 2019-04-10 Tom Tromey <tom@tromey.com>
1870 * symfile.c (reread_symbols): Remove old comment.
1871 * objfiles.c (free_all_objfiles): Fix a typo.
1873 2019-04-10 Tom Tromey <tom@tromey.com>
1875 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1876 * minsyms.c (lookup_minimal_symbol): Use foreach.
1877 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1878 (lookup_minimal_symbol_solib_trampoline): Likewise.
1879 * symfile.c (reread_symbols): Use foreach.
1881 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1882 Tom Tromey <tromey@adacore.com>
1885 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1886 (rust_lex_int_test): Change "value" to be LONGEST.
1887 (rust_lex_tests): Add test for long integer literal.
1889 2019-04-09 Tom Tromey <tromey@adacore.com>
1891 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1893 (extended_remote_target::attach): Update.
1894 (remote_target::remote_notice_new_inferior): Update.
1895 (remote_target::add_current_inferior_and_thread): Update.
1896 * inferior.c (exit_inferior_1): Use "false".
1897 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1899 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1901 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1902 the "start" command.
1904 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1906 * python/py-inferior.c (infpy_thread_from_thread_handle):
1907 Adjust comments to reflect renaming of thread_from_thread_handle
1908 to thread_from_handle. Adjust keywords. Fix type error message.
1909 (inferior_object_methods): Add thread_from_handle. Retain
1910 thread_from_thread_handle, but mark it as deprecated.
1912 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1914 * gdbthread.h (find_thread_by_handle): Revise declaration.
1915 * thread.c (find_thread_by_handle): Likewise. Adjust
1917 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1918 support for buffer objects as handles.
1920 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1922 * python/py-infthread.c (thpy_thread_handle): New function.
1923 (thread_object_methods): Register thpy_thread_handle.
1925 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1927 * gdbthread.h (thread_to_thread_handle): Declare.
1928 * thread.c (gdbtypes.h): Include.
1929 (thread_to_thread_handle): New function.
1931 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1932 (target_thread_info_to_thread_handle): Declare.
1933 * target.c (target_thread_info_to_thread_handle): New function.
1934 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1935 * target-delegates.c: Regenerate.
1937 * linux-thread-db.c (class thread_db_target): Add method
1938 thread_info_to_thread_handle.
1939 (thread_db_target::thread_info_to_thread_handle): Define.
1940 * remote.c (class remote_target): Add new method
1941 thread_info_to_thread_handle.
1942 (remote_target::thread_info_to_thread_handle): Define.
1944 2019-04-08 Pedro Alves <palves@redhat.com>
1946 * common/common-exceptions.c (throw_exception): Don't create
1947 named object to throw; throw directly.
1948 (throw_it): Likewise. Don't initialize gdb_exception::message
1949 here, with new; pass FMT and AP to the ctor instead.
1950 * common/common-exceptions.h: Include <string>.
1951 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1952 const char *, va_list)): New ctor. Use std::make_shared.
1953 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1955 (gdb_exception_error::gdb_exception_error(enum errors, const char
1957 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1959 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1961 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1962 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1965 2019-04-08 Tom Tromey <tom@tromey.com>
1967 * valops.c (value_rtti_indirect_type): Replace throw_exception
1969 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1971 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1973 * target.c (target_translate_tls_address): Replace throw_exception
1975 * stack.c (frame_apply_command_count): Replace throw_exception
1977 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1979 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1981 * rs6000-tdep.c (rs6000_frame_cache)
1982 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1983 * remote.c: Replace throw_exception with throw.
1984 * record-full.c (record_full_message, record_full_wait_1)
1985 (record_full_restore): Replace throw_exception with throw.
1987 (get_thread_current_frame_id, record_btrace_start_replaying)
1988 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1989 (cmd_record_btrace_start): Replace throw_exception with throw.
1990 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1992 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1993 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1995 (find_linespec_symbols): Replace throw_exception with throw.
1996 * infrun.c (displaced_step_prepare, resume): Replace
1997 throw_exception with throw.
1998 * infcmd.c (post_create_inferior): Replace throw_exception with
2000 * inf-loop.c (inferior_event_handler): Replace throw_exception
2002 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2003 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2004 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2005 (get_prev_frame_always, get_frame_pc_if_available)
2006 (get_frame_address_in_block_if_available, get_frame_language):
2007 Replace throw_exception with throw.
2008 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2009 throw_exception with throw.
2010 * eval.c (fetch_subexp_value, evaluate_var_value)
2011 (evaluate_funcall, evaluate_subexp_standard): Replace
2012 throw_exception with throw.
2013 * dwarf2loc.c (call_site_find_chain)
2014 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2015 Replace throw_exception with throw.
2016 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2018 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2020 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2021 * completer.c (complete_line_internal): Replace throw_exception
2023 * compile/compile-object-run.c (compile_object_run): Replace
2024 throw_exception with throw.
2025 * cli/cli-script.c (process_next_line): Replace throw_exception
2027 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2028 (btrace_enable, btrace_maint_update_pt_packets): Replace
2029 throw_exception with throw.
2030 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2031 throw_exception with throw.
2032 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2033 throw_exception with throw.
2034 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2035 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2036 * aarch64-tdep.c (aarch64_make_prologue_cache)
2037 (aarch64_make_stub_cache): Replace throw_exception with throw.
2039 2019-04-08 Tom Tromey <tom@tromey.com>
2041 * common/common-exceptions.c (throw_exception): Rename from
2042 throw_exception_cxx. Remove old copy. Make argument const.
2043 (throw_it): Create and throw exception objects directly.
2044 * common/common-exceptions.h (throw_exception): Make argument
2046 (struct gdb_exception_error): Add constructor.
2047 (struct gdb_exception_quit): Add constructor.
2049 2019-04-08 Tom Tromey <tom@tromey.com>
2051 * common/common-exceptions.h (exception_rethrow): Don't declare.
2052 (TRY_SJLJ): Update comment.
2053 (TRY, CATCH, END_CATCH): Remove.
2054 * common/common-exceptions.c (exception_rethrow): Remove.
2056 2019-04-08 Tom Tromey <tom@tromey.com>
2058 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2060 (gdb_exception_error): Rename from
2061 gdb_exception_RETURN_MASK_ERROR.
2062 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2063 (gdb_quit_bad_alloc): Update.
2064 * aarch64-tdep.c: Update.
2065 * ada-lang.c: Update.
2066 * ada-typeprint.c: Update.
2067 * ada-valprint.c: Update.
2068 * amd64-tdep.c: Update.
2069 * arch-utils.c: Update.
2070 * break-catch-throw.c: Update.
2071 * breakpoint.c: Update.
2073 * c-varobj.c: Update.
2074 * cli/cli-cmds.c: Update.
2075 * cli/cli-interp.c: Update.
2076 * cli/cli-script.c: Update.
2077 * common/common-exceptions.c: Update.
2078 * common/new-op.c: Update.
2079 * common/selftest.c: Update.
2080 * compile/compile-c-symbols.c: Update.
2081 * compile/compile-cplus-symbols.c: Update.
2082 * compile/compile-object-load.c: Update.
2083 * compile/compile-object-run.c: Update.
2084 * completer.c: Update.
2085 * corelow.c: Update.
2087 * cp-support.c: Update.
2088 * cp-valprint.c: Update.
2089 * darwin-nat.c: Update.
2090 * disasm-selftests.c: Update.
2091 * dtrace-probe.c: Update.
2092 * dwarf-index-cache.c: Update.
2093 * dwarf-index-write.c: Update.
2094 * dwarf2-frame-tailcall.c: Update.
2095 * dwarf2-frame.c: Update.
2096 * dwarf2loc.c: Update.
2097 * dwarf2read.c: Update.
2099 * event-loop.c: Update.
2100 * event-top.c: Update.
2102 * f-valprint.c: Update.
2103 * fbsd-tdep.c: Update.
2104 * frame-unwind.c: Update.
2106 * gdbtypes.c: Update.
2107 * gnu-v3-abi.c: Update.
2108 * guile/guile-internal.h: Update.
2109 * guile/scm-block.c: Update.
2110 * guile/scm-breakpoint.c: Update.
2111 * guile/scm-cmd.c: Update.
2112 * guile/scm-disasm.c: Update.
2113 * guile/scm-frame.c: Update.
2114 * guile/scm-lazy-string.c: Update.
2115 * guile/scm-math.c: Update.
2116 * guile/scm-param.c: Update.
2117 * guile/scm-ports.c: Update.
2118 * guile/scm-pretty-print.c: Update.
2119 * guile/scm-symbol.c: Update.
2120 * guile/scm-symtab.c: Update.
2121 * guile/scm-type.c: Update.
2122 * guile/scm-value.c: Update.
2123 * i386-linux-tdep.c: Update.
2124 * i386-tdep.c: Update.
2125 * inf-loop.c: Update.
2126 * infcall.c: Update.
2130 * language.c: Update.
2131 * linespec.c: Update.
2132 * linux-fork.c: Update.
2133 * linux-nat.c: Update.
2134 * linux-tdep.c: Update.
2135 * linux-thread-db.c: Update.
2137 * mi/mi-cmd-break.c: Update.
2138 * mi/mi-cmd-stack.c: Update.
2139 * mi/mi-interp.c: Update.
2140 * mi/mi-main.c: Update.
2141 * objc-lang.c: Update.
2142 * p-valprint.c: Update.
2144 * ppc-linux-tdep.c: Update.
2145 * printcmd.c: Update.
2146 * python/py-arch.c: Update.
2147 * python/py-breakpoint.c: Update.
2148 * python/py-cmd.c: Update.
2149 * python/py-finishbreakpoint.c: Update.
2150 * python/py-frame.c: Update.
2151 * python/py-framefilter.c: Update.
2152 * python/py-gdb-readline.c: Update.
2153 * python/py-inferior.c: Update.
2154 * python/py-infthread.c: Update.
2155 * python/py-lazy-string.c: Update.
2156 * python/py-linetable.c: Update.
2157 * python/py-objfile.c: Update.
2158 * python/py-param.c: Update.
2159 * python/py-prettyprint.c: Update.
2160 * python/py-progspace.c: Update.
2161 * python/py-record-btrace.c: Update.
2162 * python/py-record.c: Update.
2163 * python/py-symbol.c: Update.
2164 * python/py-type.c: Update.
2165 * python/py-unwind.c: Update.
2166 * python/py-utils.c: Update.
2167 * python/py-value.c: Update.
2168 * python/python.c: Update.
2169 * record-btrace.c: Update.
2170 * record-full.c: Update.
2171 * remote-fileio.c: Update.
2173 * riscv-tdep.c: Update.
2174 * rs6000-aix-tdep.c: Update.
2175 * rs6000-tdep.c: Update.
2176 * rust-exp.y: Update.
2177 * rust-lang.c: Update.
2178 * s390-tdep.c: Update.
2179 * selftest-arch.c: Update.
2180 * solib-dsbt.c: Update.
2181 * solib-frv.c: Update.
2182 * solib-spu.c: Update.
2183 * solib-svr4.c: Update.
2185 * sparc64-linux-tdep.c: Update.
2187 * symfile-mem.c: Update.
2188 * symmisc.c: Update.
2192 * tracefile-tfile.c: Update.
2193 * tui/tui.c: Update.
2194 * typeprint.c: Update.
2195 * unittests/cli-utils-selftests.c: Update.
2196 * unittests/parse-connection-spec-selftests.c: Update.
2198 * valprint.c: Update.
2201 * windows-nat.c: Update.
2202 * x86-linux-nat.c: Update.
2203 * xml-support.c: Update.
2205 2019-04-08 Tom Tromey <tom@tromey.com>
2207 * xml-support.c: Use C++ exception handling.
2208 * x86-linux-nat.c: Use C++ exception handling.
2209 * windows-nat.c: Use C++ exception handling.
2210 * varobj.c: Use C++ exception handling.
2211 * value.c: Use C++ exception handling.
2212 * valprint.c: Use C++ exception handling.
2213 * valops.c: Use C++ exception handling.
2214 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2216 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2217 * typeprint.c: Use C++ exception handling.
2218 * tui/tui.c: Use C++ exception handling.
2219 * tracefile-tfile.c: Use C++ exception handling.
2220 * top.c: Use C++ exception handling.
2221 * thread.c: Use C++ exception handling.
2222 * target.c: Use C++ exception handling.
2223 * symmisc.c: Use C++ exception handling.
2224 * symfile-mem.c: Use C++ exception handling.
2225 * stack.c: Use C++ exception handling.
2226 * sparc64-linux-tdep.c: Use C++ exception handling.
2227 * solib.c: Use C++ exception handling.
2228 * solib-svr4.c: Use C++ exception handling.
2229 * solib-spu.c: Use C++ exception handling.
2230 * solib-frv.c: Use C++ exception handling.
2231 * solib-dsbt.c: Use C++ exception handling.
2232 * selftest-arch.c: Use C++ exception handling.
2233 * s390-tdep.c: Use C++ exception handling.
2234 * rust-lang.c: Use C++ exception handling.
2235 * rust-exp.y: Use C++ exception handling.
2236 * rs6000-tdep.c: Use C++ exception handling.
2237 * rs6000-aix-tdep.c: Use C++ exception handling.
2238 * riscv-tdep.c: Use C++ exception handling.
2239 * remote.c: Use C++ exception handling.
2240 * remote-fileio.c: Use C++ exception handling.
2241 * record-full.c: Use C++ exception handling.
2242 * record-btrace.c: Use C++ exception handling.
2243 * python/python.c: Use C++ exception handling.
2244 * python/py-value.c: Use C++ exception handling.
2245 * python/py-utils.c: Use C++ exception handling.
2246 * python/py-unwind.c: Use C++ exception handling.
2247 * python/py-type.c: Use C++ exception handling.
2248 * python/py-symbol.c: Use C++ exception handling.
2249 * python/py-record.c: Use C++ exception handling.
2250 * python/py-record-btrace.c: Use C++ exception handling.
2251 * python/py-progspace.c: Use C++ exception handling.
2252 * python/py-prettyprint.c: Use C++ exception handling.
2253 * python/py-param.c: Use C++ exception handling.
2254 * python/py-objfile.c: Use C++ exception handling.
2255 * python/py-linetable.c: Use C++ exception handling.
2256 * python/py-lazy-string.c: Use C++ exception handling.
2257 * python/py-infthread.c: Use C++ exception handling.
2258 * python/py-inferior.c: Use C++ exception handling.
2259 * python/py-gdb-readline.c: Use C++ exception handling.
2260 * python/py-framefilter.c: Use C++ exception handling.
2261 * python/py-frame.c: Use C++ exception handling.
2262 * python/py-finishbreakpoint.c: Use C++ exception handling.
2263 * python/py-cmd.c: Use C++ exception handling.
2264 * python/py-breakpoint.c: Use C++ exception handling.
2265 * python/py-arch.c: Use C++ exception handling.
2266 * printcmd.c: Use C++ exception handling.
2267 * ppc-linux-tdep.c: Use C++ exception handling.
2268 * parse.c: Use C++ exception handling.
2269 * p-valprint.c: Use C++ exception handling.
2270 * objc-lang.c: Use C++ exception handling.
2271 * mi/mi-main.c: Use C++ exception handling.
2272 * mi/mi-interp.c: Use C++ exception handling.
2273 * mi/mi-cmd-stack.c: Use C++ exception handling.
2274 * mi/mi-cmd-break.c: Use C++ exception handling.
2275 * main.c: Use C++ exception handling.
2276 * linux-thread-db.c: Use C++ exception handling.
2277 * linux-tdep.c: Use C++ exception handling.
2278 * linux-nat.c: Use C++ exception handling.
2279 * linux-fork.c: Use C++ exception handling.
2280 * linespec.c: Use C++ exception handling.
2281 * language.c: Use C++ exception handling.
2282 * jit.c: Use C++ exception handling.
2283 * infrun.c: Use C++ exception handling.
2284 * infcmd.c: Use C++ exception handling.
2285 * infcall.c: Use C++ exception handling.
2286 * inf-loop.c: Use C++ exception handling.
2287 * i386-tdep.c: Use C++ exception handling.
2288 * i386-linux-tdep.c: Use C++ exception handling.
2289 * guile/scm-value.c: Use C++ exception handling.
2290 * guile/scm-type.c: Use C++ exception handling.
2291 * guile/scm-symtab.c: Use C++ exception handling.
2292 * guile/scm-symbol.c: Use C++ exception handling.
2293 * guile/scm-pretty-print.c: Use C++ exception handling.
2294 * guile/scm-ports.c: Use C++ exception handling.
2295 * guile/scm-param.c: Use C++ exception handling.
2296 * guile/scm-math.c: Use C++ exception handling.
2297 * guile/scm-lazy-string.c: Use C++ exception handling.
2298 * guile/scm-frame.c: Use C++ exception handling.
2299 * guile/scm-disasm.c: Use C++ exception handling.
2300 * guile/scm-cmd.c: Use C++ exception handling.
2301 * guile/scm-breakpoint.c: Use C++ exception handling.
2302 * guile/scm-block.c: Use C++ exception handling.
2303 * guile/guile-internal.h: Use C++ exception handling.
2304 * gnu-v3-abi.c: Use C++ exception handling.
2305 * gdbtypes.c: Use C++ exception handling.
2306 * frame.c: Use C++ exception handling.
2307 * frame-unwind.c: Use C++ exception handling.
2308 * fbsd-tdep.c: Use C++ exception handling.
2309 * f-valprint.c: Use C++ exception handling.
2310 * exec.c: Use C++ exception handling.
2311 * event-top.c: Use C++ exception handling.
2312 * event-loop.c: Use C++ exception handling.
2313 * eval.c: Use C++ exception handling.
2314 * dwarf2read.c: Use C++ exception handling.
2315 * dwarf2loc.c: Use C++ exception handling.
2316 * dwarf2-frame.c: Use C++ exception handling.
2317 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2318 * dwarf-index-write.c: Use C++ exception handling.
2319 * dwarf-index-cache.c: Use C++ exception handling.
2320 * dtrace-probe.c: Use C++ exception handling.
2321 * disasm-selftests.c: Use C++ exception handling.
2322 * darwin-nat.c: Use C++ exception handling.
2323 * cp-valprint.c: Use C++ exception handling.
2324 * cp-support.c: Use C++ exception handling.
2325 * cp-abi.c: Use C++ exception handling.
2326 * corelow.c: Use C++ exception handling.
2327 * completer.c: Use C++ exception handling.
2328 * compile/compile-object-run.c: Use C++ exception handling.
2329 * compile/compile-object-load.c: Use C++ exception handling.
2330 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2331 * compile/compile-c-symbols.c: Use C++ exception handling.
2332 * common/selftest.c: Use C++ exception handling.
2333 * common/new-op.c: Use C++ exception handling.
2334 * cli/cli-script.c: Use C++ exception handling.
2335 * cli/cli-interp.c: Use C++ exception handling.
2336 * cli/cli-cmds.c: Use C++ exception handling.
2337 * c-varobj.c: Use C++ exception handling.
2338 * btrace.c: Use C++ exception handling.
2339 * breakpoint.c: Use C++ exception handling.
2340 * break-catch-throw.c: Use C++ exception handling.
2341 * arch-utils.c: Use C++ exception handling.
2342 * amd64-tdep.c: Use C++ exception handling.
2343 * ada-valprint.c: Use C++ exception handling.
2344 * ada-typeprint.c: Use C++ exception handling.
2345 * ada-lang.c: Use C++ exception handling.
2346 * aarch64-tdep.c: Use C++ exception handling.
2348 2019-04-08 Tom Tromey <tom@tromey.com>
2350 * xml-support.c (gdb_xml_parser::parse): Update.
2351 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2352 * value.c (show_convenience): Update.
2353 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2354 (test_parse_flags_qcs): Update.
2355 * thread.c (thr_try_catch_cmd): Update.
2356 * target.c (target_translate_tls_address): Update.
2357 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2358 (info_frame_command_core, frame_apply_command_count): Update.
2359 * rust-exp.y (rust_lex_exception_test): Update.
2360 * riscv-tdep.c (riscv_print_one_register_info): Update.
2361 * remote.c (remote_target::enable_btrace): Update.
2362 * record-btrace.c (record_btrace_enable_warn): Update.
2363 * python/py-utils.c (gdbpy_convert_exception): Update.
2364 * printcmd.c (do_one_display, print_variable_and_value): Update.
2365 * mi/mi-main.c (mi_print_exception): Update.
2366 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2367 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2368 * linux-nat.c (linux_nat_target::attach): Update.
2369 * linux-fork.c (class scoped_switch_fork_info): Update.
2370 * infrun.c (displaced_step_prepare): Update.
2371 * infcall.c (call_function_by_hand_dummy): Update.
2372 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2373 * gnu-v3-abi.c (print_one_vtable): Update.
2374 * frame.c (get_prev_frame_always): Update.
2375 * f-valprint.c (info_common_command_for_block): Update.
2376 * exec.c (try_open_exec_file): Update.
2377 * exceptions.c (print_exception, exception_print)
2378 (exception_fprintf, exception_print_same): Update.
2379 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2380 * dwarf-index-cache.c (index_cache::store)
2381 (index_cache::lookup_gdb_index): Update.
2382 * darwin-nat.c (maybe_cache_shell): Update.
2383 * cp-valprint.c (cp_print_value_fields): Update.
2384 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2385 (gcc_cplus_symbol_address): Update.
2386 * compile/compile-c-symbols.c (gcc_convert_symbol)
2387 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2388 * common/selftest.c: Update.
2389 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2391 (exception_try_scope_entry, exception_try_scope_exit): Don't
2393 (struct exception_try_scope): Remove.
2394 (TRY): Don't use exception_try_scope.
2395 (struct gdb_exception): Add constructor, operator=.
2397 (struct gdb_exception_RETURN_MASK_ALL)
2398 (struct gdb_exception_RETURN_MASK_ERROR)
2399 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2400 (struct gdb_quit_bad_alloc): Update.
2401 * common/common-exceptions.c (exception_none): Change
2403 (struct catcher) <state, exception>: Initialize inline.
2404 <prev>: Remove member.
2405 (current_catcher): Remove.
2406 (catchers): New global.
2407 (exceptions_state_mc_init): Simplify.
2408 (catcher_pop): Remove.
2409 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2410 (try_scope_depth, exception_try_scope_entry)
2411 (exception_try_scope_exit): Remove.
2412 (throw_exception_sjlj): Update.
2413 (exception_messages, exception_messages_size): Remove.
2414 (throw_it): Simplify.
2415 (gdb_exception_sliced_copy): Remove.
2416 (throw_exception_cxx): Update.
2417 * cli/cli-script.c (script_from_file): Update.
2418 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2420 * ada-valprint.c (ada_val_print): Update.
2421 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2422 (create_excep_cond_exprs): Update.
2424 2019-04-08 Tom Tromey <tom@tromey.com>
2426 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2427 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2428 (TRY, CATCH, END_CATCH): Remove some definitions.
2429 * common/common-exceptions.c: Don't use GDB_XCPT.
2430 (catcher_list_size): Remove.
2431 (throw_exception, throw_it): Simplify.
2433 2019-04-05 Tom Tromey <tom@tromey.com>
2435 Revert the header-sorting patch.
2436 * ft32-tdep.c: Revert.
2437 * frv-tdep.c: Revert.
2438 * frv-linux-tdep.c: Revert.
2440 * frame-unwind.c: Revert.
2441 * frame-base.c: Revert.
2442 * fork-child.c: Revert.
2443 * findvar.c: Revert.
2444 * findcmd.c: Revert.
2445 * filesystem.c: Revert.
2446 * filename-seen-cache.h: Revert.
2447 * filename-seen-cache.c: Revert.
2448 * fbsd-tdep.c: Revert.
2449 * fbsd-nat.h: Revert.
2450 * fbsd-nat.c: Revert.
2451 * f-valprint.c: Revert.
2452 * f-typeprint.c: Revert.
2454 * extension.h: Revert.
2455 * extension.c: Revert.
2456 * extension-priv.h: Revert.
2457 * expprint.c: Revert.
2460 * exceptions.c: Revert.
2461 * event-top.c: Revert.
2462 * event-loop.c: Revert.
2464 * elfread.c: Revert.
2465 * dwarf2read.h: Revert.
2466 * dwarf2read.c: Revert.
2467 * dwarf2loc.c: Revert.
2468 * dwarf2expr.h: Revert.
2469 * dwarf2expr.c: Revert.
2470 * dwarf2-frame.c: Revert.
2471 * dwarf2-frame-tailcall.c: Revert.
2472 * dwarf-index-write.h: Revert.
2473 * dwarf-index-write.c: Revert.
2474 * dwarf-index-common.c: Revert.
2475 * dwarf-index-cache.h: Revert.
2476 * dwarf-index-cache.c: Revert.
2477 * dummy-frame.c: Revert.
2478 * dtrace-probe.c: Revert.
2481 * disasm-selftests.c: Revert.
2482 * dictionary.c: Revert.
2483 * dicos-tdep.c: Revert.
2484 * demangle.c: Revert.
2487 * darwin-nat.h: Revert.
2488 * darwin-nat.c: Revert.
2489 * darwin-nat-info.c: Revert.
2490 * d-valprint.c: Revert.
2491 * d-namespace.c: Revert.
2494 * csky-tdep.c: Revert.
2495 * csky-linux-tdep.c: Revert.
2496 * cris-tdep.c: Revert.
2497 * cris-linux-tdep.c: Revert.
2498 * cp-valprint.c: Revert.
2499 * cp-support.c: Revert.
2500 * cp-namespace.c: Revert.
2502 * corelow.c: Revert.
2503 * corefile.c: Revert.
2504 * continuations.c: Revert.
2505 * completer.h: Revert.
2506 * completer.c: Revert.
2507 * complaints.c: Revert.
2508 * coffread.c: Revert.
2509 * coff-pe-read.c: Revert.
2510 * cli-out.h: Revert.
2511 * cli-out.c: Revert.
2512 * charset.c: Revert.
2513 * c-varobj.c: Revert.
2514 * c-valprint.c: Revert.
2515 * c-typeprint.c: Revert.
2517 * buildsym.c: Revert.
2518 * buildsym-legacy.c: Revert.
2519 * build-id.h: Revert.
2520 * build-id.c: Revert.
2522 * bsd-uthread.c: Revert.
2523 * breakpoint.h: Revert.
2524 * breakpoint.c: Revert.
2525 * break-catch-throw.c: Revert.
2526 * break-catch-syscall.c: Revert.
2527 * break-catch-sig.c: Revert.
2528 * blockframe.c: Revert.
2530 * bfin-tdep.c: Revert.
2531 * bfin-linux-tdep.c: Revert.
2532 * bfd-target.c: Revert.
2534 * ax-general.c: Revert.
2537 * avr-tdep.c: Revert.
2539 * auto-load.c: Revert.
2540 * arm-wince-tdep.c: Revert.
2541 * arm-tdep.c: Revert.
2542 * arm-symbian-tdep.c: Revert.
2543 * arm-pikeos-tdep.c: Revert.
2544 * arm-obsd-tdep.c: Revert.
2545 * arm-nbsd-tdep.c: Revert.
2546 * arm-nbsd-nat.c: Revert.
2547 * arm-linux-tdep.c: Revert.
2548 * arm-linux-nat.c: Revert.
2549 * arm-fbsd-tdep.c: Revert.
2550 * arm-fbsd-nat.c: Revert.
2551 * arm-bsd-tdep.c: Revert.
2552 * arch-utils.c: Revert.
2553 * arc-tdep.c: Revert.
2554 * arc-newlib-tdep.c: Revert.
2555 * annotate.h: Revert.
2556 * annotate.c: Revert.
2557 * amd64-windows-tdep.c: Revert.
2558 * amd64-windows-nat.c: Revert.
2559 * amd64-tdep.c: Revert.
2560 * amd64-sol2-tdep.c: Revert.
2561 * amd64-obsd-tdep.c: Revert.
2562 * amd64-obsd-nat.c: Revert.
2563 * amd64-nbsd-tdep.c: Revert.
2564 * amd64-nbsd-nat.c: Revert.
2565 * amd64-nat.c: Revert.
2566 * amd64-linux-tdep.c: Revert.
2567 * amd64-linux-nat.c: Revert.
2568 * amd64-fbsd-tdep.c: Revert.
2569 * amd64-fbsd-nat.c: Revert.
2570 * amd64-dicos-tdep.c: Revert.
2571 * amd64-darwin-tdep.c: Revert.
2572 * amd64-bsd-nat.c: Revert.
2573 * alpha-tdep.c: Revert.
2574 * alpha-obsd-tdep.c: Revert.
2575 * alpha-nbsd-tdep.c: Revert.
2576 * alpha-mdebug-tdep.c: Revert.
2577 * alpha-linux-tdep.c: Revert.
2578 * alpha-linux-nat.c: Revert.
2579 * alpha-bsd-tdep.c: Revert.
2580 * alpha-bsd-nat.c: Revert.
2581 * aix-thread.c: Revert.
2583 * addrmap.c: Revert.
2584 * ada-varobj.c: Revert.
2585 * ada-valprint.c: Revert.
2586 * ada-typeprint.c: Revert.
2587 * ada-tasks.c: Revert.
2588 * ada-lang.c: Revert.
2589 * aarch64-tdep.c: Revert.
2590 * aarch64-ravenscar-thread.c: Revert.
2591 * aarch64-newlib-tdep.c: Revert.
2592 * aarch64-linux-tdep.c: Revert.
2593 * aarch64-linux-nat.c: Revert.
2594 * aarch64-fbsd-tdep.c: Revert.
2595 * aarch64-fbsd-nat.c: Revert.
2596 * aarch32-linux-nat.c: Revert.
2598 2019-04-05 Tom Tromey <tom@tromey.com>
2600 * ft32-tdep.c: Sort headers.
2601 * frv-tdep.c: Sort headers.
2602 * frv-linux-tdep.c: Sort headers.
2603 * frame.c: Sort headers.
2604 * frame-unwind.c: Sort headers.
2605 * frame-base.c: Sort headers.
2606 * fork-child.c: Sort headers.
2607 * findvar.c: Sort headers.
2608 * findcmd.c: Sort headers.
2609 * filesystem.c: Sort headers.
2610 * filename-seen-cache.h: Sort headers.
2611 * filename-seen-cache.c: Sort headers.
2612 * fbsd-tdep.c: Sort headers.
2613 * fbsd-nat.h: Sort headers.
2614 * fbsd-nat.c: Sort headers.
2615 * f-valprint.c: Sort headers.
2616 * f-typeprint.c: Sort headers.
2617 * f-lang.c: Sort headers.
2618 * extension.h: Sort headers.
2619 * extension.c: Sort headers.
2620 * extension-priv.h: Sort headers.
2621 * expprint.c: Sort headers.
2622 * exec.h: Sort headers.
2623 * exec.c: Sort headers.
2624 * exceptions.c: Sort headers.
2625 * event-top.c: Sort headers.
2626 * event-loop.c: Sort headers.
2627 * eval.c: Sort headers.
2628 * elfread.c: Sort headers.
2629 * dwarf2read.h: Sort headers.
2630 * dwarf2read.c: Sort headers.
2631 * dwarf2loc.c: Sort headers.
2632 * dwarf2expr.h: Sort headers.
2633 * dwarf2expr.c: Sort headers.
2634 * dwarf2-frame.c: Sort headers.
2635 * dwarf2-frame-tailcall.c: Sort headers.
2636 * dwarf-index-write.h: Sort headers.
2637 * dwarf-index-write.c: Sort headers.
2638 * dwarf-index-common.c: Sort headers.
2639 * dwarf-index-cache.h: Sort headers.
2640 * dwarf-index-cache.c: Sort headers.
2641 * dummy-frame.c: Sort headers.
2642 * dtrace-probe.c: Sort headers.
2643 * disasm.h: Sort headers.
2644 * disasm.c: Sort headers.
2645 * disasm-selftests.c: Sort headers.
2646 * dictionary.c: Sort headers.
2647 * dicos-tdep.c: Sort headers.
2648 * demangle.c: Sort headers.
2649 * dcache.h: Sort headers.
2650 * dcache.c: Sort headers.
2651 * darwin-nat.h: Sort headers.
2652 * darwin-nat.c: Sort headers.
2653 * darwin-nat-info.c: Sort headers.
2654 * d-valprint.c: Sort headers.
2655 * d-namespace.c: Sort headers.
2656 * d-lang.c: Sort headers.
2657 * ctf.c: Sort headers.
2658 * csky-tdep.c: Sort headers.
2659 * csky-linux-tdep.c: Sort headers.
2660 * cris-tdep.c: Sort headers.
2661 * cris-linux-tdep.c: Sort headers.
2662 * cp-valprint.c: Sort headers.
2663 * cp-support.c: Sort headers.
2664 * cp-namespace.c: Sort headers.
2665 * cp-abi.c: Sort headers.
2666 * corelow.c: Sort headers.
2667 * corefile.c: Sort headers.
2668 * continuations.c: Sort headers.
2669 * completer.h: Sort headers.
2670 * completer.c: Sort headers.
2671 * complaints.c: Sort headers.
2672 * coffread.c: Sort headers.
2673 * coff-pe-read.c: Sort headers.
2674 * cli-out.h: Sort headers.
2675 * cli-out.c: Sort headers.
2676 * charset.c: Sort headers.
2677 * c-varobj.c: Sort headers.
2678 * c-valprint.c: Sort headers.
2679 * c-typeprint.c: Sort headers.
2680 * c-lang.c: Sort headers.
2681 * buildsym.c: Sort headers.
2682 * buildsym-legacy.c: Sort headers.
2683 * build-id.h: Sort headers.
2684 * build-id.c: Sort headers.
2685 * btrace.c: Sort headers.
2686 * bsd-uthread.c: Sort headers.
2687 * breakpoint.h: Sort headers.
2688 * breakpoint.c: Sort headers.
2689 * break-catch-throw.c: Sort headers.
2690 * break-catch-syscall.c: Sort headers.
2691 * break-catch-sig.c: Sort headers.
2692 * blockframe.c: Sort headers.
2693 * block.c: Sort headers.
2694 * bfin-tdep.c: Sort headers.
2695 * bfin-linux-tdep.c: Sort headers.
2696 * bfd-target.c: Sort headers.
2697 * bcache.c: Sort headers.
2698 * ax-general.c: Sort headers.
2699 * ax-gdb.h: Sort headers.
2700 * ax-gdb.c: Sort headers.
2701 * avr-tdep.c: Sort headers.
2702 * auxv.c: Sort headers.
2703 * auto-load.c: Sort headers.
2704 * arm-wince-tdep.c: Sort headers.
2705 * arm-tdep.c: Sort headers.
2706 * arm-symbian-tdep.c: Sort headers.
2707 * arm-pikeos-tdep.c: Sort headers.
2708 * arm-obsd-tdep.c: Sort headers.
2709 * arm-nbsd-tdep.c: Sort headers.
2710 * arm-nbsd-nat.c: Sort headers.
2711 * arm-linux-tdep.c: Sort headers.
2712 * arm-linux-nat.c: Sort headers.
2713 * arm-fbsd-tdep.c: Sort headers.
2714 * arm-fbsd-nat.c: Sort headers.
2715 * arm-bsd-tdep.c: Sort headers.
2716 * arch-utils.c: Sort headers.
2717 * arc-tdep.c: Sort headers.
2718 * arc-newlib-tdep.c: Sort headers.
2719 * annotate.h: Sort headers.
2720 * annotate.c: Sort headers.
2721 * amd64-windows-tdep.c: Sort headers.
2722 * amd64-windows-nat.c: Sort headers.
2723 * amd64-tdep.c: Sort headers.
2724 * amd64-sol2-tdep.c: Sort headers.
2725 * amd64-obsd-tdep.c: Sort headers.
2726 * amd64-obsd-nat.c: Sort headers.
2727 * amd64-nbsd-tdep.c: Sort headers.
2728 * amd64-nbsd-nat.c: Sort headers.
2729 * amd64-nat.c: Sort headers.
2730 * amd64-linux-tdep.c: Sort headers.
2731 * amd64-linux-nat.c: Sort headers.
2732 * amd64-fbsd-tdep.c: Sort headers.
2733 * amd64-fbsd-nat.c: Sort headers.
2734 * amd64-dicos-tdep.c: Sort headers.
2735 * amd64-darwin-tdep.c: Sort headers.
2736 * amd64-bsd-nat.c: Sort headers.
2737 * alpha-tdep.c: Sort headers.
2738 * alpha-obsd-tdep.c: Sort headers.
2739 * alpha-nbsd-tdep.c: Sort headers.
2740 * alpha-mdebug-tdep.c: Sort headers.
2741 * alpha-linux-tdep.c: Sort headers.
2742 * alpha-linux-nat.c: Sort headers.
2743 * alpha-bsd-tdep.c: Sort headers.
2744 * alpha-bsd-nat.c: Sort headers.
2745 * aix-thread.c: Sort headers.
2746 * agent.c: Sort headers.
2747 * addrmap.c: Sort headers.
2748 * ada-varobj.c: Sort headers.
2749 * ada-valprint.c: Sort headers.
2750 * ada-typeprint.c: Sort headers.
2751 * ada-tasks.c: Sort headers.
2752 * ada-lang.c: Sort headers.
2753 * aarch64-tdep.c: Sort headers.
2754 * aarch64-ravenscar-thread.c: Sort headers.
2755 * aarch64-newlib-tdep.c: Sort headers.
2756 * aarch64-linux-tdep.c: Sort headers.
2757 * aarch64-linux-nat.c: Sort headers.
2758 * aarch64-fbsd-tdep.c: Sort headers.
2759 * aarch64-fbsd-nat.c: Sort headers.
2760 * aarch32-linux-nat.c: Sort headers.
2762 2019-04-04 Tom Tromey <tom@tromey.com>
2764 * varobj.c (varobj_create): Update.
2765 * rust-exp.y (struct rust_parser) <update_innermost_block,
2766 lookup_symbol>: New methods.
2767 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2769 (rust_parser::rust_lookup_type)
2770 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2771 * printcmd.c (display_command, do_one_display): Update.
2772 * parser-defs.h (struct parser_state) <parser_state>: Add
2773 "tracker" parameter.
2774 (block_tracker): New member.
2775 (class innermost_block_tracker) <innermost_block_tracker>: Add
2777 <reset>: Remove method.
2778 (innermost_block): Don't declare.
2779 (null_post_parser): Update.
2780 * parse.c (innermost_block): Remove global.
2781 (write_dollar_variable): Update.
2782 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2783 Remove "tracker_types" parameter.
2784 (parse_expression): Add "tracker" parameter.
2785 (parse_expression_for_completion): Update.
2786 (null_post_parser): Add "tracker" parameter.
2787 * p-exp.y: Update rules.
2788 * m2-exp.y: Update rules.
2789 * language.h (struct language_defn) <la_post_parser>: Add
2790 "tracker" parameter.
2791 * go-exp.y: Update rules.
2792 * f-exp.y: Update rules.
2793 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2795 * d-exp.y: Update rules.
2796 * c-exp.y: Update rules.
2797 * breakpoint.c (set_breakpoint_condition): Create an
2798 innermost_block_tracker.
2799 (watch_command_1): Likewise.
2800 * ada-lang.c (resolve): Add "tracker" parameter.
2801 (resolve_subexp): Likewise.
2802 * ada-exp.y (write_var_from_sym): Update.
2804 2019-04-04 Tom Tromey <tom@tromey.com>
2806 * type-stack.h: New file.
2807 * type-stack.c: New file.
2808 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2810 (insert_into_type_stack, insert_type, push_type, push_type_int)
2811 (insert_type_address_space, pop_type, pop_type_int)
2812 (pop_typelist, pop_type_stack, append_type_stack)
2813 (push_type_stack, get_type_stack, push_typelist)
2814 (follow_type_instance_flags, follow_types): Don't declare.
2815 * parse.c (type_stack): Remove global.
2816 (parse_exp_in_context): Update.
2817 (insert_into_type_stack, insert_type, push_type, push_type_int)
2818 (insert_type_address_space, pop_type, pop_type_int)
2819 (pop_typelist, pop_type_stack, append_type_stack)
2820 (push_type_stack, get_type_stack, push_typelist)
2821 (follow_type_instance_flags, follow_types): Remove (moved to
2823 * f-exp.y (type_stack): New global.
2825 (push_kind_type, f_parse): Update.
2826 * d-exp.y (type_stack): New global.
2829 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2831 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2832 (HFILES_NO_SRCDIR): Add type-stack.h.
2834 2019-04-04 Tom Tromey <tom@tromey.com>
2836 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2837 (rust_parser::convert_ast_to_expression, rust_parse)
2838 (rust_lex_test_completion, rust_lex_tests): Update.
2839 * parser-defs.h (struct expr_completion_state): New.
2840 (struct parser_state) <parser_state>: Add completion parameter.
2841 <mark_struct_expression, mark_completion_tag>: New methods.
2842 <parse_completion, m_completion_state>: New members.
2843 (prefixify_expression, null_post_parser): Update.
2844 (mark_struct_expression, mark_completion_tag): Don't declare.
2845 * parse.c (parse_completion, expout_last_struct)
2846 (expout_tag_completion_type, expout_completion_name): Remove
2848 (parser_state::mark_struct_expression)
2849 (parser_state::mark_completion_tag): Now methods.
2850 (prefixify_expression): Add last_struct parameter.
2851 (prefixify_subexp): Likewise.
2852 (parse_exp_1): Update.
2853 (parse_exp_in_context): Add cstate parameter. Update.
2854 (parse_expression_for_completion): Create an
2855 expr_completion_state.
2856 (null_post_parser): Add "completion" parameter.
2857 * p-exp.y: Update rules.
2859 * language.h (struct language_defn) <la_post_parser>: Add
2860 "completing" parameter.
2861 * go-exp.y: Update rules.
2862 (lex_one_token): Update.
2863 * expression.h (parse_completion): Don't declare.
2864 * d-exp.y: Update rules.
2865 (lex_one_token): Update rules.
2866 * c-exp.y: Update rules.
2867 (lex_one_token): Update.
2868 * ada-lang.c (resolve): Add "parse_completion" parameter.
2869 (resolve_subexp): Likewise.
2870 (ada_resolve_function): Likewise.
2872 2019-04-04 Tom Tromey <tom@tromey.com>
2874 * parser-defs.h (struct parser_state) <start_arglist,
2875 end_arglist>: New methods.
2876 <arglist_len, m_funcall_chain>: New members.
2877 (arglist_len, start_arglist, end_arglist): Don't declare.
2878 * parse.c (arglist_len, funcall_chain): Remove global.
2879 (start_arglist, end_arglist): Remove functions.
2880 (parse_exp_in_context): Update.
2881 * p-exp.y: Update rules.
2882 * m2-exp.y: Update rules.
2883 * go-exp.y: Update rules.
2884 * f-exp.y: Update rules.
2885 * d-exp.y: Update rules.
2886 * c-exp.y: Update rules.
2888 2019-04-04 Tom Tromey <tom@tromey.com>
2890 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2891 lex_operator, push_back>: New methods.
2893 (rust_parser::lex_hex, lex_escape): Rename and update.
2894 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2895 (rust_parser::lex_operator): Rename and update.
2896 (rust_parser::lex_number, rustyylex, rustyyerror)
2897 (rust_lex_test_init, rust_lex_test_sequence)
2898 (rust_lex_test_push_back, rust_lex_tests): Update.
2899 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2901 <lexptr, prev_lexptr>: New members.
2902 (lexptr, prev_lexptr): Don't declare.
2903 * parse.c (lexptr, prev_lexptr): Remove globals.
2904 (parse_exp_in_context): Update.
2905 * p-exp.y (yylex, yyerror): Update.
2906 * m2-exp.y (parse_number, yylex, yyerror): Update.
2907 * go-exp.y (lex_one_token, yyerror): Update.
2908 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2909 * d-exp.y (lex_one_token, yyerror): Update.
2910 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2911 (lex_one_token, yyerror): Update.
2912 * ada-lex.l (YY_INPUT): Update.
2913 (rewind_to_char): Update.
2914 * ada-exp.y (yyerror): Update.
2916 2019-04-04 Tom Tromey <tom@tromey.com>
2918 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2919 * parser-defs.h (struct parser_state) <parser_state>: Add new
2921 <comma_terminates>: New member.
2922 (comma_terminates): Don't declare global.
2923 * parse.c (comma_terminates): Remove global.
2924 (parse_exp_in_context): Update.
2925 * p-exp.y (yylex): Update.
2926 * m2-exp.y (yylex): Update.
2927 * go-exp.y (lex_one_token): Update.
2928 * f-exp.y (yylex): Update.
2929 * d-exp.y (lex_one_token): Update.
2930 * c-exp.y (lex_one_token): Update.
2931 * ada-lex.l: Update.
2933 2019-04-04 Tom Tromey <tom@tromey.com>
2935 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2936 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2937 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2938 * parser-defs.h (paren_depth): Don't declare.
2939 * parse.c (paren_depth): Remove global.
2940 (parse_exp_in_context): Update.
2941 * p-exp.y (paren_depth): New global.
2942 (pascal_parse): Initialize it.
2943 * m2-exp.y (paren_depth): New global.
2944 (m2_parse): Initialize it.
2945 * go-exp.y (paren_depth): New global.
2946 (go_parse): Initialize it.
2947 * f-exp.y (paren_depth): New global.
2948 (f_parse): Initialize it.
2949 * d-exp.y (paren_depth): New global.
2950 (d_parse): Initialize it.
2951 * c-exp.y (paren_depth): New global.
2952 (c_parse): Initialize it.
2953 * ada-lex.l (paren_depth): New global.
2954 (lexer_init): Initialize it.
2956 2019-04-04 Tom Tromey <tom@tromey.com>
2958 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2959 (rust_parser::convert_ast_to_type)
2960 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2961 * parser-defs.h (struct parser_state) <parser_state>: Add
2962 parameters. Initialize new members.
2963 <expression_context_block, expression_context_pc>: New members.
2964 * parse.c (expression_context_block, expression_context_pc):
2966 (parse_exp_in_context): Update.
2967 * p-exp.y: Update all rules.
2969 * m2-exp.y: Update all rules.
2971 * go-exp.y (yylex): Update.
2972 * f-exp.y (yylex): Update.
2973 * d-exp.y: Update all rules.
2975 * c-exp.y: Update all rules.
2976 (lex_one_token, classify_name, yylex, c_parse): Update.
2977 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2979 2019-04-04 Tom Tromey <tom@tromey.com>
2981 * gdbarch.h, gdbarch.c: Rebuild.
2982 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2984 (struct stap_parse_info): Replace "parser_state" with
2986 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2987 (parser_state): New class.
2988 * parse.c (expr_builder): Rename.
2989 (expr_builder::release): Rename.
2990 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2991 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2992 (write_exp_elt_longcst, write_exp_elt_floatcst)
2993 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2994 (write_exp_string_vector, write_exp_bitstring)
2995 (write_exp_msymbol, mark_struct_expression)
2996 (write_dollar_variable)
2997 (insert_type_address_space, increase_expout_size): Replace
2998 "parser_state" with "expr_builder".
2999 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3000 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3001 "parser_state" with "expr_builder".
3003 2019-04-04 Tom Tromey <tom@tromey.com>
3005 * rust-exp.y: Replace "parse_language" with method call.
3007 (yylex): Replace "parse_language" with method call.
3009 (yylex): Replace "parse_language" with method call.
3010 * go-exp.y (classify_name): Replace "parse_language" with method
3012 * f-exp.y (yylex): Replace "parse_language" with method call.
3013 * d-exp.y (lex_one_token): Replace "parse_language" with method
3016 (lex_one_token, classify_name, yylex): Replace "parse_language"
3018 * ada-exp.y (find_primitive_type, type_char)
3019 (type_system_address): Replace "parse_language" with method call.
3021 2019-04-04 Tom Tromey <tom@tromey.com>
3023 * rust-exp.y: Replace "parse_gdbarch" with method call.
3024 * parse.c (write_dollar_variable, insert_type_address_space):
3025 Replace "parse_gdbarch" with method call.
3026 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3028 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3030 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3031 "parse_gdbarch" with method call.
3032 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3034 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3035 "parse_gdbarch" with method call.
3036 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3037 "parse_gdbarch" with method call.
3038 * c-exp.y (parse_type, parse_number, classify_name): Replace
3039 "parse_gdbarch" with method call.
3040 * ada-lex.l: Replace "parse_gdbarch" with method call.
3041 * ada-exp.y (parse_type, find_primitive_type, type_char)
3042 (type_system_address): Replace "parse_gdbarch" with method call.
3044 2019-04-04 Tom Tromey <tom@tromey.com>
3046 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3047 * stap-probe.c (stap_parse_argument): Update.
3048 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3049 initial_size parameter.
3050 * rust-exp.y (rust_lex_tests): Update.
3051 * parse.c (parser_state): Update.
3052 (parse_exp_in_context): Update.
3053 * parser-defs.h (struct parser_state) <parser_state>: Remove
3054 "initial_size" parameter.
3056 2019-04-04 Tom Tromey <tom@tromey.com>
3058 * parser-defs.h (increase_expout_size): Don't declare.
3059 * parse.c (increase_expout_size): Now static.
3061 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3063 * gnu-nat.c (gnu_nat_target::wait): Fix
3064 target_waitstatus_to_string call.
3066 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3068 * eval.c (evaluate_subexp_standard): Handle internal functions
3069 during Fortran function call handling.
3071 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3073 * NEWS: Mention new internal functions.
3074 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3075 (read_base_type): Use dwarf2_init_complex_target_type.
3076 * value.c (creal_internal_fn): New function.
3077 (cimag_internal_fn): New function.
3078 (_initialize_values): Register new internal functions.
3080 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3082 * infrun.c (stop_all_threads): If debug_infrun, always
3083 trace the wait status after wait_one, using
3084 target_waitstatus_to_string and target_pid_to_str.
3085 (handle_inferior_event): Replace various trace of
3086 wait status kind by a single trace.
3087 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3088 wait status kind image by target_waitstatus_to_string.
3089 * target/waitstatus.c (target_waitstatus_to_string): Fix
3092 2019-04-01 Tom Tromey <tromey@adacore.com>
3095 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3097 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3098 Pedro Alves <palves@redhat.com>
3100 * top.c (quit_force): Call 'finalize_values'.
3101 * value.c (finalize_values): New function.
3102 * value.h (finalize_values): Declare.
3104 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3106 * NEWS: Announce $_gdb_major and $_gdb_minor.
3108 * top.c (init_gdb_version_vars): New function.
3109 (gdb_init): Call init_gdb_version_vars.
3111 2019-03-29 Tom Tromey <tromey@adacore.com>
3113 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3114 help text. Remove dead code.
3116 2019-03-29 Keith Seitz <keiths@redhat.com>
3118 From Siddhesh Poyarekar:
3119 * f-lang.h (f77_get_upperbound): Return LONGEST.
3120 (f77_get_lowerbound): Likewise.
3121 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3122 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3124 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3125 plongest to format print it.
3126 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3127 (f77_get_upperbound): Likewise.
3128 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3129 LOWER_BOUND to LONGEST.
3130 (f77_create_arrayprint_offset_tbl): Likewise.
3132 2019-03-29 Keith Seitz <keiths@redhat.com>
3134 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3135 %s/pulongest for TYPE_LENGTH instead of %d in format
3137 * ada-typerint.c (ada_print_type): Likewise.
3138 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3139 * compile/compile-c-support.c (generate_register_struct): Likewise.
3140 * gdbtypes.c (recursive_dump_type): Likewise.
3141 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3142 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3143 instead of %d in format strings.
3144 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3145 to std::min to ULONGEST.
3146 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3147 instead of %d in format strings.
3148 * tracepoint.c (info_scope_command): Likewise.
3149 * typeprint.c (print_offset_data::update)
3150 (print_offset_data::finish): Likewise.
3151 * xtensa-tdep.c (xtensa_store_return_value)
3152 (xtensa_push_dummy_call): Likewise.
3154 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3156 * windows-nat.c (display_selector): Fixed format specifications
3159 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3161 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3163 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3165 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3166 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3167 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3168 (nios2_linux_init_abi): Install it.
3170 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3172 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3174 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3176 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3178 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3179 Tom Tromey <tromey@adacore.com>
3181 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3183 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3185 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3186 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3187 method to compute the bounds of range types. Also print "[evaluated]"
3188 if the bounds' values come from a dynamic evaluation.
3190 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3192 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3193 whitespace when pretty printing is on.
3195 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3197 * ppc-linux-nat.c: Add include.
3199 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3201 * NEWS: Mention AArch64 Pointer Authentication.
3203 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3205 * arm-linux-nat.c: Add include.
3207 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3209 * source-cache.c (source_cache::get_source_lines): Re-read
3210 fullname after calling open_source_file.
3212 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3214 * NEWS: Mention TLS support for FreeBSD.
3216 2019-03-25 Tom Tromey <tromey@adacore.com>
3218 * minsyms.c (BUNCH_SIZE): Update comment.
3219 (~minimal_symbol_reader): Remove old comment.
3220 (compact_minimal_symbols): Update comment.
3221 (minimal_symbol_reader::install): Remove old comment. Update
3224 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3226 * s390-linux-nat.c: Add include.
3228 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3230 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3231 Call linux_get_hwcap.
3232 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3234 (aarch64_linux_get_hwcap): Remove function.
3235 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3237 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3239 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3240 * linux-tdep.c (linux_get_hwcap): Add function.
3241 (linux_get_hwcap2): Likewise.
3242 * linux-tdep.h (linux_get_hwcap): Add declaration.
3243 (linux_get_hwcap2): Likewise.
3244 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3245 (ppc_linux_get_hwcap2): Likewise.
3246 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3248 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3249 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3250 (ppc_linux_nat_target::read_description): Likewise.
3251 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3252 * s390-linux-nat.c: Likewise.
3253 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3255 2019-03-24 Tom Tromey <tom@tromey.com>
3257 * ada-lang.c (standard_lookup): Simplify initialization.
3258 (ada_lookup_symbol_nonlocal): Simplify return.
3259 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3260 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3261 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3262 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3264 * solib.c (solib_global_lookup): Simplify.
3265 * symtab.c (null_block_symbol): Remove.
3266 (symbol_cache_lookup): Simplify returns.
3267 (lookup_language_this): Simplify returns.
3268 (lookup_symbol_aux): Simplify return.
3269 (lookup_local_symbol): Simplify returns.
3270 (lookup_global_symbol_from_objfile): Simplify return.
3271 (lookup_symbol_in_objfile_symtabs)
3272 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3273 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3274 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3275 * cp-namespace.c (cp_lookup_bare_symbol)
3276 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3277 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3278 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3279 (cp_lookup_symbol_via_imports): Simplify initialization.
3280 (find_symbol_in_baseclass): Likewise.
3281 * symtab.h (null_block_symbol): Remove.
3282 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3283 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3284 (d_lookup_symbol_module): Likewise.
3285 (find_symbol_in_baseclass): Simplify initialization.
3287 2019-03-24 Tom Tromey <tom@tromey.com>
3289 * expression.h: Don't include symtab.h.
3290 (struct block): Forward declare.
3292 2019-03-24 Tom Tromey <tom@tromey.com>
3294 * c-exp.y (typebase): Remove casts.
3295 * gdbtypes.c (lookup_unsigned_typename, )
3296 (lookup_signed_typename): Remove cast.
3297 * eval.c (parse_to_comma_and_eval): Remove cast.
3298 * parse.c (write_dollar_variable): Remove cast.
3299 * block.h (struct block) <superblock>: Now const.
3300 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3301 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3302 (map_block): Make "block" const.
3303 * symfile.h (struct quick_symbol_functions)
3304 <map_matching_symbols>: Constify block argument to "callback".
3305 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3307 (find_pc_sect_compunit_symtab): Make "b" const.
3308 (find_symbol_at_address): Likewise.
3309 (search_symbols): Likewise.
3310 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3311 (dw2_debug_names_lookup_symbol): Likewise.
3312 (dw2_map_matching_symbols): Update.
3313 * p-valprint.c (pascal_val_print): Remove "block".
3314 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3315 (aux_add_nonlocal_symbols): Make "block" const.
3316 (resolve_subexp): Remove cast.
3317 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3319 (iterate_over_file_blocks): Likewise.
3320 * f-exp.y (%union) <bval>: Remove.
3321 * coffread.c (patch_opaque_types): Make "b" const.
3322 * spu-tdep.c (spu_catch_start): Make "block" const.
3323 * c-valprint.c (print_unpacked_pointer): Remove "block".
3324 * symmisc.c (dump_symtab_1): Make "b" const.
3325 (block_depth): Make "block" const.
3326 * d-exp.y (%union) <bval>: Remove.
3327 * cp-support.h (cp_lookup_rtti_type): Update.
3328 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3329 * psymtab.c (psym_lookup_symbol): Make "block" const.
3330 (maintenance_check_psymtabs): Make "b" const.
3331 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3332 (enumerate_locals, enumerate_args): Update.
3333 * python/py-symtab.c (stpy_global_block): Make "block" const.
3334 (stpy_static_block): Likewise.
3335 * inline-frame.c (block_starting_point_at): Make "new_block"
3337 * block.c (find_block_in_blockvector): Make return type const.
3338 (blockvector_for_pc_sect): Make "b" const.
3339 (find_block_in_blockvector): Make "b" const.
3341 2019-03-23 Tom Tromey <tom@tromey.com>
3343 * varobj.c (varobj_create): Update.
3344 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3345 * printcmd.c (display_command, do_one_display): Don't reset
3347 * parser-defs.h (enum innermost_block_tracker_type): Move to
3349 (innermost_block): Update comment.
3350 * parse.c (parse_exp_1): Add tracker_types parameter.
3351 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3352 tracker_types parameter. Reset innermost_block.
3353 (parse_exp_in_context): Remove.
3354 (parse_expression_for_completion): Update.
3355 * objfiles.c (~objfile): Don't reset expression_context_block or
3357 * expression.h (enum innermost_block_tracker_type): Move from
3359 (parse_exp_1): Add tracker_types parameter.
3360 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3361 reset innermost_block.
3363 2019-03-23 Tom Tromey <tom@tromey.com>
3365 * objfiles.h: Include bcache.h.
3367 2019-03-23 Tom Tromey <tom@tromey.com>
3369 * linespec.c (get_current_search_block): Use
3370 scoped_restore_current_language.
3371 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3373 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3374 Jiong Wang <jiong.wang@arm.com>
3376 * aarch64-linux-tdep.c
3377 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3379 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3381 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3382 Jiong Wang <jiong.wang@arm.com>
3384 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3386 (aarch64_analyze_prologue_test): Add PACIASP test.
3387 (aarch64_prologue_prev_register): Unmask PC value.
3389 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3390 Jiong Wang <jiong.wang@arm.com>
3392 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3393 (aarch64_dwarf2_prev_register): Unmask PC value.
3394 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3395 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3396 DW_CFA_AARCH64_negate_ra_state.
3397 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3399 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3400 Jiong Wang <jiong.wang@arm.com>
3402 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3404 (aarch64_pseudo_register_name): Likewise.
3405 (aarch64_pseudo_register_type): Likewise.
3406 (aarch64_pseudo_register_reggroup_p): Likewise.
3407 (aarch64_gdbarch_init): Add pauth registers.
3408 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3409 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3410 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3411 (struct gdbarch_tdep): Add regnum for ra_state.
3413 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3414 Jiong Wang <jiong.wang@arm.com>
3416 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3418 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3419 Jiong Wang <jiong.wang@arm.com>
3421 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3423 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3424 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3425 (aarch64_gdbarch_init): Add puth registers.
3426 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3427 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3428 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3430 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3431 Jiong Wang <jiong.wang@arm.com>
3433 * aarch64-linux-nat.c
3434 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3435 * aarch64-linux-tdep.c
3436 (aarch64_linux_core_read_description): Likewise.
3437 (aarch64_linux_get_hwcap): New function.
3438 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3439 (aarch64_linux_get_hwcap): New declaration.
3441 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3442 Jiong Wang <jiong.wang@arm.com>
3444 * aarch64-linux-nat.c
3445 (aarch64_linux_nat_target::read_description): Add pauth param.
3446 * aarch64-linux-tdep.c
3447 (aarch64_linux_core_read_description): Likewise.
3448 * aarch64-tdep.c (struct target_desc): Add in pauth.
3449 (aarch64_read_description): Add pauth param.
3450 (aarch64_gdbarch_init): Likewise.
3451 * aarch64-tdep.h (aarch64_read_description): Likewise.
3452 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3453 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3454 * features/Makefile: Add new files.
3455 * features/aarch64-pauth.c: New file.
3456 * features/aarch64-pauth.xml: New file.
3458 2019-03-20 Tom Tromey <tromey@adacore.com>
3460 * infrun.c (handle_inferior_event): Rename from
3461 handle_inferior_event_1. Create a scoped_value_mark.
3462 (handle_inferior_event): Remove.
3464 2019-03-19 Tom Tromey <tromey@adacore.com>
3466 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3467 * infrun.h (print_stop_event): Add "displays" parameter.
3468 * infrun.c (print_stop_event): Add "displays" parameter.
3470 2019-03-19 Pedro Alves <palves@redhat.com>
3472 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3473 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3474 to -1. Fix TABs vs spaces.
3475 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3476 * tui/tui-out.h (tui_ui_out) Add intro comments.
3477 <m_line, m_start_of_line>: In-class initialize, and add describing
3480 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3482 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3484 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3486 2019-03-18 Pedro Alves <palves@redhat.com>
3487 Eli Zaretskii <eliz@gnu.org>
3489 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3490 m_line and m_start_of_line.
3492 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3494 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3495 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3496 it returns a newline. This fixes a regression in TU mode, whereby
3497 the next line is output on the same screen line as the user input.
3499 2019-03-18 Tom Tromey <tromey@adacore.com>
3501 * minsyms.c (minimal_symbol_reader::install): Remove call to
3504 2019-03-18 Pedro Alves <palves@redhat.com>
3506 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3508 (apply_style): New, factored out from ...
3509 (apply_ansi_escape): ... this. Handle reverse video mode.
3510 (tui_set_reverse_mode): New function.
3511 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3512 * tui/tui-winsource.c (tui_show_source_line): Use
3513 tui_set_reverse_mode instead of setting A_STANDOUT.
3514 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3517 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3519 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3522 2019-03-18 Tom Tromey <tromey@adacore.com>
3524 * ada-lang.c (empty_array): Add "high" parameter.
3525 (ada_evaluate_subexp): Update.
3527 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3529 * unittests/string_view-selftests.c: Define
3530 _initialize_string_view_selftests unconditionally.
3532 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3535 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3537 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3540 * windows-nat.c (display_selector): Fix format specifiers.
3542 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3544 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3545 tui_refill_source_window instead of tui_refresh_win, to update the
3546 current execution line. This fixes redisplay of the current line
3547 when stepping through the code with "next" or "step".
3549 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3551 * source-cache.c (source_cache::get_source_lines): Call
3552 find_source_lines to initialize s->nlines. This fixes vertical
3553 scrolling of TUI source window when the DOWN arrow is pressed.
3555 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3557 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3558 linux-thread-db.c (_initialize_thread_db): Likewise.
3560 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3562 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3563 wclrtoeol in tui_show_source_line". This reverts changes made in
3564 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3566 2019-03-15 Tom Tromey <tom@tromey.com>
3568 * symtab.h (struct minimal_symbol): Derive from
3569 general_symbol_info.
3570 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3571 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3572 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3573 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3574 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3575 (MSYMBOL_SEARCH_NAME): Update.
3576 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3577 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3578 * minsyms.c (minimal_symbol_reader::record_full): Update.
3580 2019-03-15 Tom Tromey <tom@tromey.com>
3582 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3584 2019-03-15 Tom Tromey <tom@tromey.com>
3586 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3588 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3590 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3591 (build_minimal_symbol_hash_tables)
3592 (minimal_symbol_reader::install): Update.
3594 2019-03-15 Tom Tromey <tom@tromey.com>
3596 * symtab.c (create_demangled_names_hash): Update.
3597 (symbol_set_names): Update.
3598 * objfiles.h (struct objfile_per_bfd_storage)
3599 <demangled_names_hash>: Now an htab_up.
3600 * objfiles.c (objfile_per_bfd_storage): Simplify.
3602 2019-03-15 Tom Tromey <tom@tromey.com>
3604 * objfiles.h (struct objfile_per_bfd_storage): Declare
3606 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3608 (get_objfile_bfd_data): Use new. Don't initialize
3610 (free_objfile_per_bfd_storage): Remove.
3611 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3613 2019-03-15 Tom Tromey <tom@tromey.com>
3615 * symfile.c (reread_symbols): Update.
3616 * objfiles.c (objfile::objfile): Update.
3617 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3618 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3620 (minimal_symbol_reader::install): Update.
3621 (terminate_minimal_symbol_table): Remove.
3622 * jit.c (jit_object_close_impl): Update.
3624 2019-03-15 Tom Tromey <tom@tromey.com>
3626 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3629 2019-03-15 Tom Tromey <tom@tromey.com>
3631 * objfiles.h (struct objfile_per_bfd_storage)
3632 <demangled_hash_languages>: Now a bitset.
3633 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3634 (lookup_minimal_symbol): Update.
3636 2019-03-15 Tom Tromey <tom@tromey.com>
3638 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3639 Don't return the symbol.
3640 * coffread.c (record_minimal_symbol): Use record_full.
3642 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3644 The MS-Windows port of ncurses fails to switch to a color pair if
3645 one or both of the colors are the implicit default colors. This
3646 change records the default colors when TUI is initialized, and
3647 then specifies them explicitly when a color pair uses the default
3648 colors. This allows color styling in TUI mode on MS-Windows.
3650 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3652 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3653 colors in ncurses_norm_attr.
3654 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3655 "none", replace it with the default color recorded in
3658 2019-03-14 Tom Tromey <tromey@adacore.com>
3660 * source-cache.h (class source_cache) <get_source_lines>: Return
3662 * source-cache.c (source_cache::extract_lines): Handle case where
3663 first_pos==npos. Return std::string.
3664 (source_cache::get_source_lines): Update.
3666 2019-03-14 Tom Tromey <tromey@adacore.com>
3668 * NEWS: Add item for "style sources" commands.
3669 * source-cache.c (source_cache::get_source_lines): Check
3671 * cli/cli-style.c (source_styling): New global.
3672 (_initialize_cli_style): Add "style sources" commands.
3673 (show_style_sources): New function.
3674 * cli/cli-style.h (source_styling): Declare.
3676 2019-03-14 Pedro Alves <palves@redhat.com>
3677 Tom Tromey <tromey@adacore.com>
3679 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3680 * tui/tui-winsource.c (tui_refill_source_window): New function,
3682 (tui_horizontal_source_scroll): ... here. Move some logic.
3683 * cli/cli-style.c (set_style_enabled): Notify new observable.
3684 * tui/tui-hooks.c (tui_redisplay_source): New function.
3685 (tui_attach_detach_observers): Attach or detach
3686 tui_redisplay_source.
3687 * observable.h (source_styling_changed): New observable.
3688 * observable.c: Define source_styling_changed observable.
3690 2019-03-13 Tom Tromey <tromey@adacore.com>
3692 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3693 (i386_gnu_nat_target::store_registers): Update.
3694 * target-debug.h (target_debug_print_std_string): New macro.
3695 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3696 * windows-tdep.c (display_one_tib): Update.
3697 * tui/tui-stack.c (tui_make_status_line): Update.
3698 * top.c (print_inferior_quit_action): Update.
3699 * thread.c (thr_try_catch_cmd): Update.
3700 (add_thread_with_info): Update.
3701 (thread_target_id_str): Update.
3702 (thr_try_catch_cmd): Update.
3703 (thread_command): Update.
3704 (thread_find_command): Update.
3705 * record-btrace.c (record_btrace_target::info_record)
3706 (record_btrace_resume_thread, record_btrace_target::resume)
3707 (record_btrace_cancel_resume, record_btrace_step_thread)
3708 (record_btrace_target::wait, record_btrace_target::wait)
3709 (record_btrace_target::wait, record_btrace_target::stop): Update.
3710 * progspace.c (print_program_space): Update.
3711 * process-stratum-target.c
3712 (process_stratum_target::thread_address_space): Update.
3713 * linux-fork.c (linux_fork_mourn_inferior)
3714 (detach_checkpoint_command, info_checkpoints_command)
3715 (linux_fork_context): Update.
3716 (linux_fork_detach): Update.
3717 (class scoped_switch_fork_info): Update.
3718 (delete_checkpoint_command): Update.
3719 * infrun.c (follow_fork_inferior): Update.
3720 (follow_fork_inferior): Update.
3721 (proceed_after_vfork_done): Update.
3722 (handle_vfork_child_exec_or_exit): Update.
3723 (follow_exec): Update.
3724 (displaced_step_prepare_throw): Update.
3725 (displaced_step_restore): Update.
3726 (start_step_over): Update.
3728 (clear_proceed_status_thread): Update.
3730 (print_target_wait_results): Update.
3731 (do_target_wait): Update.
3732 (context_switch): Update.
3733 (stop_all_threads): Update.
3734 (restart_threads): Update.
3735 (finish_step_over): Update.
3736 (handle_signal_stop): Update.
3737 (switch_back_to_stepped_thread): Update.
3738 (keep_going_pass_signal): Update.
3739 (print_exited_reason): Update.
3740 (normal_stop): Update.
3741 * inferior.c (inferior_pid_to_str): Change return type.
3742 (print_selected_inferior): Update.
3743 (add_inferior): Update.
3744 (detach_inferior): Update.
3745 * dummy-frame.c (fprint_dummy_frames): Update.
3746 * dcache.c (dcache_info_1): Update.
3747 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3748 (btrace_fetch, btrace_clear): Update.
3749 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3750 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3752 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3753 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3754 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3755 * gdbarch.c, gdbarch.h: Rebuild.
3756 * gdbarch.sh (core_pid_to_str): Change return type.
3757 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3759 (windows_nat_target::pid_to_str): Change return type.
3760 (windows_delete_thread): Update.
3761 (windows_nat_target::attach): Update.
3762 (windows_nat_target::files_info): Update.
3763 * target-delegates.c: Rebuild.
3764 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3766 (sol_thread_target::pid_to_str): Change return type.
3767 * remote.c (class remote_target) <pid_to_str>: Change return
3769 (remote_target::pid_to_str): Change return type.
3770 (extended_remote_target::attach, remote_target::remote_stop_ns)
3771 (remote_target::remote_notif_remove_queued_reply)
3772 (remote_target::push_stop_reply, remote_target::disable_btrace):
3774 (extended_remote_target::attach): Update.
3775 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3777 (gdbsim_target::pid_to_str): Change return type.
3778 * ravenscar-thread.c (struct ravenscar_thread_target)
3779 <pid_to_str>: Change return type.
3780 (ravenscar_thread_target::pid_to_str): Change return type.
3781 * procfs.c (class procfs_target) <pid_to_str>: Change return
3783 (procfs_target::pid_to_str): Change return type.
3784 (procfs_target::attach): Update.
3785 (procfs_target::detach): Update.
3786 (procfs_target::fetch_registers): Update.
3787 (procfs_target::store_registers): Update.
3788 (procfs_target::wait): Update.
3789 (procfs_target::files_info): Update.
3790 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3791 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3793 (nto_procfs_target::pid_to_str): Change return type.
3794 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3795 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3797 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3799 (attach_proc_task_lwp_callback, get_detach_signal)
3800 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3801 (linux_nat_target::resume, wait_lwp, stop_callback)
3802 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3803 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3804 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3805 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3806 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3808 (inf_ptrace_target::attach): Update.
3809 (inf_ptrace_target::files_info): Update.
3810 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3812 (go32_nat_target::pid_to_str): Change return type.
3813 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3814 (gnu_nat_target::wait): Update.
3815 (gnu_nat_target::wait): Update.
3816 (gnu_nat_target::resume): Update.
3817 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3818 (fbsd_nat_target::wait): Update.
3819 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3821 (darwin_nat_target::attach): Update.
3822 * corelow.c (class core_target) <pid_to_str>: Change return type.
3823 (core_target::pid_to_str): Change return type.
3824 * target.c (normal_pid_to_str): Change return type.
3825 (default_pid_to_str): Likewise.
3826 (target_pid_to_str): Change return type.
3827 (target_translate_tls_address): Update.
3828 (target_announce_detach): Update.
3829 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3831 (bsd_uthread_target::pid_to_str): Change return type.
3832 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3834 (bsd_kvm_target::pid_to_str): Change return type.
3835 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3837 (aix_thread_target::pid_to_str): Change return type.
3838 * target.h (struct target_ops) <pid_to_str>: Change return type.
3839 (target_pid_to_str, normal_pid_to_str): Likewise.
3840 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3842 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3844 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3846 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3848 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3850 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3853 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3855 * NEWS: Mention that the new default MI version is 3. Mention
3856 changes to the output of commands and events that deal with
3857 multi-location breakpoints.
3858 * breakpoint.c: Include "mi/mi-out.h".
3859 (print_one_breakpoint): Change output syntax if using MI version
3861 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3863 (mi_multi_location_breakpoint_output_fixed): New.
3864 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3865 (mi_cmd_fix_multi_location_breakpoint_output): New.
3866 (mi_multi_location_breakpoint_output_fixed): New.
3867 * mi/mi-cmds.c (mi_cmds): Register command
3868 -fix-multi-location-breakpoint-output.
3869 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3872 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3874 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3875 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3876 instantiate mi_ui_out based on interpreter name.
3877 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3878 * mi/mi-main.c (mi_load_progress): Likewise.
3880 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3882 * NEWS: Combine separate "New targets" sections for 8.3.
3884 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3886 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3887 (ppcfbsd_init_abi): Install gdbarch
3888 "fetch_tls_load_module_address" and "get_thread_local_address"
3891 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3893 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3894 (riscv_fbsd_init_abi): Install gdbarch
3895 "fetch_tls_load_module_address" and "get_thread_local_address"
3898 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3900 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3901 (i386fbsd_init_abi): Install gdbarch
3902 "fetch_tls_load_module_address" and "get_thread_local_address"
3905 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3907 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3908 (amd64fbsd_init_abi): Install gdbarch
3909 "fetch_tls_load_module_address" and "get_thread_local_address"
3912 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3914 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3915 (struct fbsd_pspace_data): New type.
3916 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3917 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3918 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3919 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3920 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3922 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3924 * gdbtypes.c (lookup_struct_elt): New function.
3925 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3926 * gdbtypes.h (struct struct_elt): New type.
3927 (lookup_struct_elt): New prototype.
3929 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3931 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3932 remove disabled code block.
3934 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3936 * gdbarch.sh (get_thread_local_address): New method.
3937 * gdbarch.h, gdbarch.c: Regenerate.
3938 * target.c (target_translate_tls_address): Use
3939 gdbarch_get_thread_local_address if present instead of
3940 target::get_thread_local_address.
3942 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3944 * target.h (target::get_thread_local_address): Update comment.
3946 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3948 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3949 objfile->separate_debug_objfile_backlink if not NULL.
3951 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3953 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3954 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3955 (amd64bsd_store_inferior_registers): Likewise.
3956 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3957 Enable segment base registers.
3958 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3959 PT_GETFSBASE and PT_GETGSBASE.
3960 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3962 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3963 segment base registers.
3964 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3966 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3968 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3969 Update calls to i386_target_description to add 'segments'
3971 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3972 add segment base registers.
3973 * arch/i386.c (i386_create_target_description): Add 'segments'
3974 parameter to enable segment base registers.
3975 * arch/i386.h (i386_create_target_description): Likewise.
3976 * features/i386/32bit-segments.xml: New file.
3977 * features/i386/32bit-segments.c: Generate.
3978 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3979 call to i386_target_description to add 'segments' parameter.
3980 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3981 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3982 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3983 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3984 if feature is present.
3985 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3986 Add 'segments' parameter to call to i386_target_description.
3987 (i386_target_description): Add 'segments' parameter to enable
3988 segment base registers.
3989 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3990 to call to i386_target_description.
3991 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3992 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3993 Define I386_NUM_REGS.
3994 (i386_target_description): Add 'segments' parameter to enable
3995 segment base registers.
3997 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4000 * source-cache.c: #undef open and close, to avoid unresolved
4001 externals during linking.
4003 2019-03-12 Tom Tromey <tromey@adacore.com>
4005 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4006 const. Add initializers.
4007 (_initialize_remote): Don't initialize ptid globals.
4009 2019-03-12 Pedro Alves <palves@redhat.com>
4011 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4013 2019-03-12 Pedro Alves <palves@redhat.com>
4015 * cp-name-parser.y (main): Remove unused 'len' variable.
4017 2019-03-12 Tom Tromey <tromey@adacore.com>
4019 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4020 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4022 2019-03-12 Tom Tromey <tromey@adacore.com>
4024 * linux-nat.c (iterate_over_lwps): Update.
4025 (stop_callback): Remove parameter.
4026 (stop_wait_callback, detach_callback, resume_set_callback)
4027 (select_singlestep_lwp_callback, set_ignore_sigint)
4028 (status_callback, resumed_callback, resume_clear_callback)
4029 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4031 (linux_nat_target::detach, linux_nat_target::resume)
4032 (linux_stop_and_wait_all_lwps, select_event_lwp)
4033 (linux_nat_filter_event, linux_nat_wait_1)
4034 (linux_nat_target::kill, linux_nat_target::stop)
4035 (linux_nat_target::stop): Update.
4036 (linux_nat_resume_callback): Change type.
4037 (resume_stopped_resumed_lwps, count_events_callback)
4038 (select_event_lwp_callback): Likewise.
4039 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4040 * arm-linux-nat.c (struct update_registers_data): Remove.
4041 (update_registers_callback): Change type.
4042 (arm_linux_insert_hw_breakpoint1): Update.
4043 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4045 (x86_linux_dr_set_addr): Update.
4046 (x86_linux_dr_set_control): Update.
4047 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4048 (iterate_over_lwps): Use gdb::function_view.
4049 * nat/aarch64-linux-hw-point.c (struct
4050 aarch64_dr_update_callback_param): Remove.
4051 (debug_reg_change_callback): Change type.
4052 (aarch64_notify_debug_reg_change): Update.
4053 * s390-linux-nat.c (s390_refresh_per_info): Update.
4055 2019-03-11 Tom Tromey <tromey@adacore.com>
4057 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4058 redundant assignment to "this_cu".
4060 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4062 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4064 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4066 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4068 (rank_one_type): ... this.
4070 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4072 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4074 (rank_one_type): ... this.
4076 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4078 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4080 (rank_one_type): ... this.
4082 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4084 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4086 (rank_one_type): ... this.
4088 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4090 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4092 (rank_one_type): ... this.
4094 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4096 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4098 (rank_one_type): ... this.
4100 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4102 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4104 (rank_one_type): ... this.
4106 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4108 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4110 (rank_one_type): ... this.
4112 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4114 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4116 (rank_one_type): ... this.
4118 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4120 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4122 (rank_one_type): ... this.
4124 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4126 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4128 (rank_one_type): ... this.
4130 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4132 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4134 (rank_one_type): ... this.
4136 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4138 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4139 inferior-events' shows the example events.
4141 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4143 Support styling on native MS-Windows console
4146 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4147 on MS-Windows if $TERM is not defined.
4149 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4151 * posix-hdep.c (gdb_console_fputs):
4152 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4154 * ui-file.h (gdb_console_fputs): Add prototype.
4156 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4157 back to fputs only if the former returns zero.
4159 2019-03-07 Tom Tromey <tom@tromey.com>
4161 * symmisc.c (print_symbol_bcache_statistics): Update.
4162 (print_objfile_statistics): Update.
4163 * symfile.c (allocate_symtab): Update.
4164 * stabsread.c: Don't include bcache.h.
4165 * psymtab.h (struct psymbol_bcache): Don't declare.
4166 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4167 (psymbol_bcache_init, psymbol_bcache_free)
4168 (psymbol_bcache_get_bcache): Don't declare.
4169 * psymtab.c (struct psymbol_bcache): Remove.
4170 (psymtab_storage::psymtab_storage): Update.
4171 (psymtab_storage::~psymtab_storage): Update.
4172 (psymbol_bcache_init, psymbol_bcache_free)
4173 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4174 (add_psymbol_to_bcache): Update.
4175 (allocate_psymtab): Update.
4176 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4177 macro_cache>: No longer pointers.
4178 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4179 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4180 * macrotab.c (macro_bcache): Update.
4181 * macroexp.c: Don't include bcache.h.
4182 * gdbtypes.c (check_types_worklist): Update.
4183 (types_deeply_equal): Remove TRY/CATCH. Update.
4184 * elfread.c (elf_symtab_read): Update.
4185 * dwarf2read.c: Don't include bcache.h.
4186 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4187 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4188 (print_bcache_statistics, bcache_memory_used): Don't declare.
4189 (struct bcache): Move from bcache.c. Add constructor, destructor,
4190 methods. Rename all data members.
4191 * bcache.c (struct bcache): Move to bcache.h.
4192 (bcache::expand_hash_table): Rename from expand_hash_table.
4194 (bcache::insert): Rename from bcache_full.
4195 (bcache::compare): Rename from bcache_compare.
4196 (bcache_xmalloc): Remove.
4197 (bcache::~bcache): Rename from bcache_xfree.
4198 (bcache::print_statistics): Rename from print_bcache_statistics.
4199 (bcache::memory_used): Rename from bcache_memory_used.
4201 2019-03-07 Pedro Alves <palves@redhat.com>
4203 * infrun.c (normal_stop): Also check for
4204 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4206 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4208 * f-lang.c (value_from_host_double): Moved to...
4209 * value.c (value_from_host_double): ...here.
4210 * value.h (value_from_host_double): Declare.
4211 * guile/scm-math.c (vlscm_convert_typed_number): Use
4212 value_from_host_double.
4213 (vlscm_convert_number): Likewise.
4214 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4215 * python/py-value.c (convert_value_from_python): Likewise.
4217 2019-03-06 Tom Tromey <tom@tromey.com>
4219 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4221 2019-03-06 Tom Tromey <tom@tromey.com>
4223 * utils.h (free_current_contents): Don't declare.
4224 * utils.c (free_current_contents): Remove.
4226 2019-03-06 Tom Tromey <tom@tromey.com>
4228 * top.c (quit_force): Update.
4229 * main.c (captured_command_loop): Update.
4230 * common/new-op.c (operator new): Update.
4231 * common/common-exceptions.c (struct catcher)
4232 <save_cleanup_chain>: Remove member.
4233 (exceptions_state_mc_init): Update.
4234 (exception_try_scope_entry): Return nullptr.
4235 (exception_try_scope_exit, exception_rethrow)
4236 (throw_exception_sjlj, throw_exception_cxx): Update.
4237 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4238 (all_cleanups, do_cleanups, discard_cleanups)
4239 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4240 (restore_cleanups, restore_final_cleanups): Don't declare.
4241 (do_final_cleanups): Remove parameter.
4242 * common/cleanups.c (cleanup_chain, make_cleanup)
4243 (make_cleanup_dtor, all_cleanups, do_cleanups)
4244 (discard_my_cleanups, discard_cleanups)
4245 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4246 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4247 (null_cleanup): Remove.
4248 (do_final_cleanups): Remove parameter.
4250 2019-03-06 Tom Tromey <tom@tromey.com>
4252 * remote.c (remote_target::remote_parse_stop_reply): Use
4255 2019-03-06 Tom Tromey <tom@tromey.com>
4257 * stabsread.c (struct stabs_field_info): Rename from field_info.
4258 <list, fnlist>: Add initializers.
4259 <obstack>: New member.
4260 (read_member_functions, read_struct_fields, read_baseclasses):
4261 Allocate on obstack. Don't use cleanups.
4262 (read_one_struct_field, read_member_functions, read_struct_fields)
4263 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4264 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4265 (read_struct_type): Update.
4267 2019-03-06 Tom Tromey <tom@tromey.com>
4269 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4270 * common/filestuff.h (make_cleanup_close): Don't declare.
4271 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4274 2019-03-06 Tom Tromey <tom@tromey.com>
4276 * solib-aix.c: Use make_scope_exit.
4278 2019-03-06 Tom Tromey <tom@tromey.com>
4280 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4281 Use make_scope_exit.
4283 2019-03-06 Tom Tromey <tom@tromey.com>
4285 * solib-svr4.c (disable_probes_interface): Remove parameter.
4286 (svr4_handle_solib_event): Use make_scope_exit.
4288 2019-03-06 Tom Tromey <tom@tromey.com>
4290 * remote.c (struct stop_reply_deleter): Remove.
4291 (stop_reply_up): Update.
4292 (struct stop_reply): Derive from notif_event. Don't typedef.
4293 <regcache>: Now a std::vector.
4294 (stop_reply_xfree): Remove.
4295 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4296 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4297 (remote_target::discard_pending_stop_replies): Use delete.
4298 (remote_target::remote_parse_stop_reply): Update.
4299 (remote_target::process_stop_reply): Update.
4300 * remote-notif.h (struct notif_event): Add virtual destructor.
4301 Remove "dtr" member.
4302 (struct notif_client) <alloc_event>: Return a unique_ptr.
4303 (notif_event_xfree): Don't declare.
4304 (notif_event_up): New typedef.
4305 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4306 (notif_event_xfree, do_notif_event_xfree): Remove.
4307 (remote_notif_state_xfree): Update.
4309 2019-03-06 Tom Tromey <tom@tromey.com>
4311 * infrun.c (displaced_step_clear_cleanup): Now a
4312 forward_scope_exit type.
4313 (displaced_step_prepare_throw): Update.
4314 (displaced_step_fixup): Update.
4316 2019-03-06 Tom Tromey <tom@tromey.com>
4318 * inferior.h (class inferior): Update comment.
4319 * gdbthread.h (class thread_info): Update comment.
4321 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4322 Tom Tromey <tom@tromey.com>
4324 * stabsread.h (struct stab_section_list): Remove.
4325 (coffstab_build_psymtabs): Update.
4326 * dbxread.c (symbuf_sections): Now a std::vector.
4327 (sect_idx): New global.
4328 (fill_symbuf): Update.
4329 (coffstab_build_psymtabs): Change type of stabsects parameter.
4331 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4333 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4334 (coff_locate_sections): Update.
4335 (coff_symfile_read): Remove cleanups. Update.
4336 (init_stringtab): Add storage parameter.
4337 (free_stringtab, free_stringtab_cleanup): Remove.
4338 (init_lineno): Add storage parameter.
4339 (free_linetab, free_linetab_cleanup): Remove.
4341 2019-03-06 Pedro Alves <palves@redhat.com>
4343 * linux-fork.c (fork_info::clobber_regs): Delete.
4344 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4345 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4347 (scoped_switch_fork_info::scoped_switch_fork_info)
4348 (checkpoint_command, linux_fork_context): Adjust
4349 fork_save_infrun_state calls.
4351 2019-03-06 Pedro Alves <palves@redhat.com>
4353 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4354 (inf_has_multiple_threads): Return 'bool' and rewrite using
4355 inferior_info::threads().
4357 2019-03-06 Pedro Alves <palves@redhat.com>
4359 * linux-fork.c: Include <list>.
4360 (fork_list): Now a std::list instance.
4361 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4362 (forks_exist_p, find_last_fork): Adjust.
4366 (free_fork): Delete, folded into fork_info::~fork_info().
4367 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4369 (init_fork_list): Delete.
4370 (linux_fork_killall, linux_fork_mourn_inferior)
4371 (linux_fork_detach, info_checkpoints_command): Adjust.
4372 (_initialize_linux_fork): No longer call init_fork_list.
4374 2019-03-06 Pedro Alves <palves@redhat.com>
4376 * linux-fork.c (new_fork): New, split out of ...
4377 (add_fork): ... this. Return void. Move "first fork" special
4378 case from here, to ...
4379 (checkpoint_command): ... here.
4380 * linux-linux.h (add_fork): Return void.
4382 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4384 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4386 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4387 Chris January <chris.january@arm.com>
4388 David Lecomber <david.lecomber@arm.com>
4390 * f-exp.y: New token, UNOP_INTRINSIC.
4391 (exp): New pattern using UNOP_INTRINSIC token.
4392 (f77_keywords): Add 'abs' keyword.
4393 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4394 (value_from_host_double): New function.
4395 (evaluate_subexp_f): Support UNOP_ABS.
4397 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4399 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4402 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4404 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4405 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4406 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4408 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4410 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4412 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4413 Chris January <chris.january@arm.com>
4415 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4416 * f-exp.y: Define 'KIND' token.
4417 (exp): New pattern for KIND expressions.
4418 (ptype): Handle types with a kind extension.
4419 (direct_abs_decl): Extend to spot kind extensions.
4420 (f77_keywords): Add 'kind' to the list.
4421 (push_kind_type): New function.
4422 (convert_to_kind_type): New function.
4423 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4424 * parse.c (operator_length_standard): Likewise.
4425 * parser-defs.h (enum type_pieces): Add tp_kind.
4426 * std-operator.def: Add UNOP_KIND.
4428 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4430 * f-exp.y (f_parse): Set yydebug.
4432 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4434 * f-lang.c (evaluate_subexp_f): New function.
4435 (exp_descriptor_f): New global.
4436 (f_language_defn): Use exp_descriptor_f instead of
4437 exp_descriptor_standard.
4439 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4441 * f-exp.y (struct token): Add comments.
4442 (dot_ops): Remove uppercase versions and the end marker.
4443 (f77_keywords): Likewise.
4444 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4445 entries in the dot_ops array are case insensitive, and use
4446 strncasecmp to compare strings. Also some whitespace cleanup in
4447 this area. Similar for the f77_keywords array, except entries in
4448 this list might be case sensitive.
4450 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4452 * f-exp.y (struct f77_boolean_val): Add comments.
4453 (boolean_values): Remove uppercase versions, and end marker.
4454 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4455 and use strncasecmp to achieve case insensitivity. Additionally,
4456 perform whitespace cleanup around this code.
4458 2019-03-06 Tom Tromey <tromey@adacore.com>
4460 * remote-sim.c (gdbsim_target_open): Use result of
4463 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4464 Dirk Schubert <dirk.schubert@arm.com>
4465 Chris January <chris.january@arm.com>
4467 * eval.c (evaluate_subexp_standard): Call Fortran argument
4469 * f-lang.c (struct value): A value which can be passed into a
4470 Fortran function call.
4471 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4473 (struct type): Value ready for a Fortran function call.
4474 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4476 * f-lang.h (fortran_argument_convert): Declaration.
4477 (fortran_preserve_arg_pointer): Declaration.
4478 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4480 2019-03-05 Tom Tromey <tromey@adacore.com>
4482 * python/py-prettyprint.c (print_string_repr): Remove #if.
4483 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4485 2019-03-05 Tom Tromey <tromey@adacore.com>
4487 * target.c (the_dummy_target): Move later. Change type to
4489 (initialize_targets): Don't initialize the_dummy_target.
4491 2019-03-05 Tom Tromey <tromey@adacore.com>
4493 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4494 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4496 2019-03-05 Tom Tromey <tromey@adacore.com>
4498 * windows-nat.c (windows_nat_target::attach)
4499 (windows_nat_target::detach): Don't call gdb_flush.
4500 * valprint.c (generic_val_print, val_print, val_print_string):
4501 Don't call gdb_flush.
4502 * utils.c (defaulted_query): Don't call gdb_flush.
4503 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4504 * target.c (target_announce_detach): Don't call gdb_flush.
4505 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4506 * remote.c (extended_remote_target::attach): Don't call
4508 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4509 * printcmd.c (do_examine): Don't call gdb_flush.
4510 (info_display_command): Don't call gdb_flush.
4511 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4512 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4513 * memattr.c (info_mem_command): Don't call gdb_flush.
4514 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4515 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4516 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4517 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4518 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4519 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4520 (gnu_nat_target::detach): Don't call gdb_flush.
4521 * f-valprint.c (f_val_print): Don't call gdb_flush.
4522 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4523 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4524 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4526 * c-valprint.c (c_val_print): Don't call gdb_flush.
4527 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4529 2019-03-05 Tom Tromey <tromey@adacore.com>
4531 * varobj.c (update_dynamic_varobj_children): Update.
4532 (install_default_visualizer): Use reset, not release.
4533 * value.c (set_internalvar): Update.
4534 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4535 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4536 ATTRIBUTE_UNUSED_RESULT.
4538 2019-03-05 Tom Tromey <tromey@adacore.com>
4540 * remote.c (class scoped_remote_fd) <release>: Add
4541 ATTRIBUTE_UNUSED_RESULT.
4543 2019-03-05 Tom Tromey <tromey@adacore.com>
4545 * macroexp.c (struct macro_buffer) <release>: Add
4546 ATTRIBUTE_UNUSED_RESULT.
4548 2019-03-05 Tom Tromey <tromey@adacore.com>
4550 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4551 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4552 ATTRIBUTE_UNUSED_RESULT.
4554 2019-03-05 Tom Tromey <tromey@adacore.com>
4556 * common/scoped_fd.h (class scoped_fd) <release>: Add
4557 ATTRIBUTE_UNUSED_RESULT.
4559 2019-03-05 Tom Tromey <tromey@adacore.com>
4561 * parser-defs.h (struct parser_state) <release>: Add
4562 ATTRIBUTE_UNUSED_RESULT.
4564 2019-03-05 Tom Tromey <tromey@adacore.com>
4566 * utils.h (class gdb_argv) <release>: Add
4567 ATTRIBUTE_UNUSED_RESULT.
4568 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4570 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4572 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4573 for-loop range, to avoid compiler warnings.
4575 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4576 avoid compiler warnings about unused variables.
4578 * NEWS: Mention end of support for native debugging on MS-Windows
4582 * common/netstuff.c:
4583 * gdbserver/gdbreplay.c
4584 * gdbserver/remote-utils.c:
4586 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4587 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4588 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4589 'getaddrinfo' and 'freeaddrinfo' were not available before
4590 Windows XP, and mingw.org's MinGW headers by default define
4591 _WIN32_WINNT to 0x500.
4593 2019-03-01 Gary Benson <gbenson@redhat.com>
4595 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4597 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4598 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4601 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4602 set_sigint_trap, clear_sigint_trap.
4604 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4606 * target.c (target_detach): Clear the regcache and the
4609 2019-02-27 Pedro Alves <palves@redhat.com>
4611 * utils.c (set_screen_size): When we cap the height/width sizes,
4612 tweak the corresponding command variable to show "unlimited":
4614 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4615 Pedro Alves <palves@redhat.com>
4617 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4618 before calling rl_set_screen_size.
4620 2019-02-27 Tom Tromey <tromey@adacore.com>
4622 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4624 * python/py-value.c: Remove Python 2.4 workaround.
4625 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4627 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4628 Python 2.4 workaround.
4629 * python/python-internal.h: Remove Python 2.4 comment.
4630 (Py_ssize_t): Don't define.
4631 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4632 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4633 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4634 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4635 * python/python.c (do_start_initialization): Remove Python 2.4
4637 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4638 (print_children): Remove Python 2.4 workaround.
4639 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4641 (CHARBUFFERPROC_NAME): Remove.
4642 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4643 Python 2.4 workaround.
4645 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4647 * NEWS: Note minimum Python version.
4649 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4651 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4652 code from these functions. Remove corresponding ifdefs. Use
4653 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4654 Remove gotos and target of gotos.
4655 (infpy_search_memory): Likewise.
4657 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4659 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4660 (hppa_gdbarch_init): Don't register deleted functions with
4663 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4665 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4666 (h8300_unwind_sp): Delete.
4667 (h8300_dummy_id): Delete.
4668 (h8300_gdbarch_init): Don't register deleted functions with
4671 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4673 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4674 (ft32_unwind_pc): Delete.
4675 (ft32_unwind_sp): Delete.
4676 (ft32_gdbarch_init): Don't register deleted functions with
4679 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4681 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4682 (frv_unwind_pc): Delete.
4683 (frv_unwind_sp): Delete.
4684 (frv_gdbarch_init): Don't register deleted functions with
4687 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4689 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4690 (riscv_unwind_pc): Delete.
4691 (riscv_unwind_sp): Delete.
4692 (riscv_gdbarch_init): Don't register deleted functions with
4695 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4697 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4698 (csky_unwind_pc): Delete.
4699 (csky_unwind_sp): Delete.
4700 (csky_gdbarch_init): Don't register deleted functions with
4703 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4705 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4706 (cris_unwind_pc): Delete.
4707 (cris_unwind_sp): Delete.
4708 (cris_gdbarch_init): Don't register deleted functions with
4711 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4713 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4714 (bfin_unwind_pc): Delete.
4715 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4717 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4719 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4720 (arm_unwind_pc): Delete.
4721 (arm_unwind_sp): Delete.
4722 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4724 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4726 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4727 (arc_unwind_pc): Delete.
4728 (arc_unwind_sp): Delete.
4729 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4731 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4733 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4734 (alpha_unwind_pc): Delete.
4735 (alpha_gdbarch_init): Don't register deleted functions with
4738 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4740 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4741 (aarch64_unwind_pc): Delete.
4742 (aarch64_unwind_sp): Delete.
4743 (aarch64_gdbarch_init): Don't register deleted functions with
4746 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4748 * gdbtypes.c (type_align): Don't consider static members when
4749 computing structure alignment.
4751 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4753 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4754 return 0 for other types.
4755 * arch-utils.c (default_type_align): Always return 0.
4756 * gdbarch.h: Regenerate.
4757 * gdbarch.sh (type_align): Extend comment.
4758 * gdbtypes.c (type_align): Add additional comments, always call
4759 gdbarch_type_align before applying the default rules.
4760 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4761 generic code will then apply a suitable default.
4762 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4763 types, return 0 for other types.
4765 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4767 * NEWS: Create a new section for the next release branch.
4768 Rename the section of the current branch, now that it has
4771 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4773 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4774 * version.in: Bump version to 8.3.50.DATE-git.
4776 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4778 * aix-thread.c (ptid_cmp): Remove unused variable.
4779 (get_signaled_thread): Likewise.
4780 (store_regs_user_thread): Likewise.
4781 (store_regs_kernel_thread): Likewise.
4782 (fetch_regs_kernel_thread): Remove shadowed variable.
4784 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4786 * features/riscv/32bit-cpu.xml: Add register numbers.
4787 * features/riscv/32bit-fpu.c: Regenerate.
4788 * features/riscv/32bit-fpu.xml: Add register numbers.
4789 * features/riscv/64bit-cpu.xml: Add register numbers.
4790 * features/riscv/64bit-fpu.c: Regenerate.
4791 * features/riscv/64bit-fpu.xml: Add register numbers.
4793 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4795 * NEWS: Mention two argument form of gdb.Value constructor.
4796 * python/py-value.c (convert_buffer_and_type_to_value): New
4798 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4799 Add support for handling an optional second argument. Call
4800 convert_buffer_and_type_to_value as appropriate.
4801 * python/python-internal.h (Py_buffer_deleter): New struct.
4802 (Py_buffer_up): New typedef.
4804 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4806 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4807 instead of releasing ownership.
4809 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4811 * dwarf2read.c (open_and_init_dwp_file): Call
4812 elf_numsections instead of bfd_count_sections to initialize
4813 dwp_file->num_sections.
4815 2019-02-25 Tom Tromey <tromey@adacore.com>
4817 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4819 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4821 * gcore.in: Add '--readnever' option when invoking GDB.
4823 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4825 * MAINTAINERS: Update my email address.
4827 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4829 * build-id.c (build_id_to_debug_bfd_1): New function.
4830 (build_id_to_debug_bfd): Look for separate debug file in
4833 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4835 * gdbarch.sh: Update the copyright year range that is placed into
4838 2019-02-22 Keith Seitz <keiths@redhat.com>
4841 * linespec.c (create_sals_line_offset): Search for the default
4842 symtab's filename instead of its fullname.
4844 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4846 * NEWS: Update style defaults.
4848 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4850 * main.c (captured_main_1): Disable styling in batch mode.
4852 2019-02-20 Tom Tromey <tom@tromey.com>
4854 * symtab.c (symtab_symbol_info): Fix typos.
4856 2019-02-20 Tom Tromey <tromey@adacore.com>
4858 * findcmd.c (_initialize_mem_search): Use upper case for
4859 metasyntactic variables.
4861 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4863 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4864 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4866 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4868 * top.h (source_file_name): Change to std::string.
4869 * top.c (source_file_name): Likewise.
4870 (command_line_input): Adjust.
4871 * cli/cli-script.c (script_from_file): Adjust.
4873 2019-02-19 Tom Tromey <tromey@adacore.com>
4875 * ravenscar-thread.c
4876 (ravenscar_thread_target::update_thread_list): Don't call
4877 ada_build_task_list.
4878 * ada-lang.h (ada_build_task_list): Don't declare.
4879 * ada-tasks.c (struct ada_tasks_inferior_data)
4880 <task_list_valid_p>: Now bool.
4881 (read_known_tasks, ada_task_list_changed)
4882 (ada_tasks_invalidate_inferior_data): Update.
4883 (read_known_tasks_array): Return bool.
4884 (read_known_tasks_list): Likewise.
4885 (read_known_tasks): Return void.
4886 (ada_build_task_list): Now static.
4888 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4890 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4891 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4893 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4895 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4896 variant for ada_tasks_pspace_data_handle and
4897 ada_tasks_inferior_data_handle.
4898 (ada_tasks_pspace_data_cleanup): New function.
4899 (ada_tasks_inferior_data_cleanup): New function.
4901 2019-02-17 Tom Tromey <tom@tromey.com>
4903 * macrotab.h (macro_source_fullname): Return a std::string.
4904 * macrotab.c (macro_include, check_for_redefinition)
4905 (macro_undef, macro_lookup_definition, foreach_macro)
4906 (foreach_macro_in_scope): Update.
4907 (macro_source_fullname): Return a std::string.
4908 * macrocmd.c (show_pp_source_pos): Update.
4910 2019-02-17 Tom Tromey <tom@tromey.com>
4912 * macrocmd.c (show_pp_source_pos): Style the file names.
4914 2019-02-17 Tom Tromey <tom@tromey.com>
4917 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4919 2019-02-17 Tom Tromey <tom@tromey.com>
4921 * ada-lang.c (user_select_syms): Use filtered printing.
4922 * utils.c (wrap_style): New global.
4923 (desired_style): Remove.
4924 (emit_style_escape): Add stream parameter.
4925 (set_output_style, reset_terminal_style, prompt_for_continue):
4927 (flush_wrap_buffer): Only flush gdb_stdout.
4928 (wrap_here): Set wrap_style.
4929 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4930 treat escape sequences as a character. Change when wrap buffer is
4932 (fputs_styled): Do not set the output style when the default is
4934 * ui-style.h (struct ui_file_style) <is_default>: New method.
4935 * source.c (print_source_lines_base): Emit escape sequences in one
4938 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4940 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4941 integers and enumeration types.
4943 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4945 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4946 instead of lookup_symbol_in_language
4947 (do_exact_match): New function.
4948 (ada_get_symbol_name_matcher): Return do_exact_match when
4949 doing a verbatim match.
4951 2019-02-15 Tom Tromey <tromey@adacore.com>
4953 * ravenscar-thread.c (ravenscar_thread_target::resume)
4954 (ravenscar_thread_target::wait): Special case wildcard requests.
4956 2019-02-15 Tom Tromey <tromey@adacore.com>
4958 * ravenscar-thread.c (base_ptid): Remove.
4959 (struct ravenscar_thread_target) <close>: New method.
4960 <m_base_ptid>: New member.
4961 <update_inferior_ptid, active_task, task_is_currently_active,
4962 runtime_initialized>: Declare methods.
4963 <ravenscar_thread_target>: Add constructor.
4964 (ravenscar_thread_target::task_is_currently_active)
4965 (ravenscar_thread_target::update_inferior_ptid)
4966 (ravenscar_runtime_initialized): Rename. Now methods.
4967 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4968 (ravenscar_thread_target::update_thread_list): Update.
4969 (ravenscar_thread_target::active_task): Now method.
4970 (ravenscar_thread_target::store_registers)
4971 (ravenscar_thread_target::prepare_to_store)
4972 (ravenscar_thread_target::prepare_to_store)
4973 (ravenscar_thread_target::mourn_inferior): Update.
4974 (ravenscar_inferior_created): Use "new" to create target.
4975 (ravenscar_thread_target::get_ada_task_ptid): Update.
4976 (_initialize_ravenscar): Don't initialize base_ptid.
4977 (ravenscar_ops): Remove global.
4979 2019-02-15 Tom Tromey <tromey@adacore.com>
4981 * target.h (push_target): Declare new overload.
4982 * target.c (push_target): New overload, taking an rvalue reference.
4983 * remote.c (remote_target::open_1): Use push_target overload.
4984 * corelow.c (core_target_open): Use push_target overload.
4986 2019-02-15 Tom Tromey <tromey@adacore.com>
4988 * ravenscar-thread.c (is_ravenscar_task)
4989 (ravenscar_task_is_currently_active): Return bool.
4990 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4991 (_initialize_ravenscar): Remove "(void)".
4992 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4995 2019-02-15 Tom Tromey <tromey@adacore.com>
4997 * ravenscar-thread.c (ravenscar_runtime_initializer)
4998 (has_ravenscar_runtime, get_running_thread_id)
4999 (ravenscar_thread_target::resume): Fix indentation.
5001 2019-02-15 Tom Tromey <tromey@adacore.com>
5003 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5004 from ravenscar_arch_ops.
5005 (sparc_ravenscar_ops::fetch_registers)
5006 (sparc_ravenscar_ops::store_registers): Now methods.
5007 (sparc_ravenscar_prepare_to_store): Remove.
5008 (sparc_ravenscar_ops): Redefine.
5009 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5010 methods and destructor. Remove members.
5011 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5012 (ravenscar_thread_target::store_registers)
5013 (ravenscar_thread_target::prepare_to_store): Update.
5014 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5016 (struct ppc_ravenscar_powerpc_ops): Derive from
5018 (ppc_ravenscar_powerpc_ops::fetch_registers)
5019 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5020 (ppc_ravenscar_powerpc_ops): Redefine.
5021 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5022 (ppc_ravenscar_e500_ops::fetch_registers)
5023 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5024 (ppc_ravenscar_e500_ops): Redefine.
5025 * aarch64-ravenscar-thread.c
5026 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5027 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5028 (aarch64_ravenscar_fetch_registers)
5029 (aarch64_ravenscar_store_registers): Now methods.
5030 (aarch64_ravenscar_ops): Redefine.
5032 2019-02-15 Tom Tromey <tromey@adacore.com>
5034 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5035 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5036 (ravenscar_thread_target::stopped_by_watchpoint)
5037 (ravenscar_thread_target::stopped_data_address)
5038 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5040 2019-02-15 Tom Tromey <tromey@adacore.com>
5042 * ravenscar-thread.c: Fix some typos.
5044 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5045 Tom Tromey <tromey@adacore.com>
5047 * ada-lang.c (ada_exception_sal): Change addr_string to a
5049 (create_ada_exception_catchpoint): Update.
5051 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5052 Tom Tromey <tromey@adacore.com>
5054 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5055 (bp_location_ops): Remove.
5056 (base_breakpoint_allocate_location): Update.
5057 (free_bp_location): Update.
5058 * ada-lang.c (class ada_catchpoint_location)
5059 <ada_catchpoint_location>: Remove ops parameter.
5060 (ada_catchpoint_location_dtor): Remove.
5061 (ada_catchpoint_location_ops): Remove.
5062 (allocate_location_exception): Update.
5063 * breakpoint.h (struct bp_location_ops): Remove.
5064 (class bp_location) <bp_location>: Remove bp_location_ops
5066 <~bp_location>: Add destructor.
5069 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5070 Pedro Alves <palves@redhat.com>
5072 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5075 2019-02-14 David Michael <fedora.dm0@gmail.com>
5076 Samuel Thibault <samuel.thibault@gnu.org>
5077 Thomas Schwinge <thomas@codesourcery.com>
5079 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5080 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5082 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5084 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5085 (check_empty): Use "const char *".
5087 * gnu-nat.c (gnu_nat_target::detach): Instead of
5088 'detach_inferior (pid)' call
5089 'detach_inferior (find_inferior_pid (pid))'.
5091 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5092 'nat/fork-inferior.o'.
5093 * gnu-nat.c: #include "nat/fork-inferior.h".
5095 * gnu-nat.c (gnu_nat_target::detach): Instead of
5096 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5097 * gnu-nat.h: #include "inf-child.h".
5098 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5099 'i386_gnu_nat_target::fetch_registers'.
5100 (gnu_store_registers): Rename/move to
5101 'i386_gnu_nat_target::store_registers'.
5103 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5104 * gnu-nat.h (mach_thread_info): New function.
5105 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5107 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5109 2019-02-14 Frederic Konrad <konrad@adacore.com>
5111 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5113 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5115 * windows-nat.c (windows_add_thread): Add new parameter
5116 "main_thread_p" with default value set to false. Update
5117 function documentation as well as all callers.
5118 (windows_delete_thread): Likewise.
5119 (fake_create_process): Update call to windows_add_thread.
5120 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5121 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5122 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5123 call to windows_delete_thread.
5125 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5127 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5129 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5131 * symfile.c (find_separate_debug_file): Use canonical path of
5132 sysroot with child_path instead of gdb_sysroot if it is valid.
5134 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5136 * symfile.c (find_separate_debug_file): Use child_path to
5137 determine if an object file is under a sysroot.
5139 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5141 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5142 unittests/child-path-selftests.c.
5143 * common/pathstuff.c (child_path): New function.
5144 * common/pathstuff.h (child_path): New prototype.
5145 * unittests/child-path-selftests.c: New file.
5147 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5149 * symfile.c (find_separate_debug_file): Look for separate debug
5150 files in debug directories under the sysroot.
5152 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5154 * symtab.h (struct minimal_symbol data_p): New const method.
5155 (struct minimal_symbol text_p): Likewise.
5156 * symtab.c (output_source_filename): Use file name style
5158 (print_symbol_info): Likewise.
5159 (print_msymbol_info): Use address style to print addresses.
5160 Use function name style to print executable text symbols.
5161 (expand_symtab_containing_pc): Use data_p.
5162 (find_pc_sect_compunit_symtab): Likewise.
5164 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5166 * breakpoint.c (describe_other_breakpoints): Use address style
5168 (say_where): Likewise.
5170 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5172 * ada-typeprint.c (print_func_type): Print function name
5173 style to print function name.
5174 * c-typeprint.c (c_print_type_1): Likewise.
5176 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5178 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5181 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5183 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5186 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5188 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5189 TYPE_CODE_REF types.
5191 2019-02-08 Jim Wilson <jimw@sifive.com>
5193 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5194 (riscv_linux_fregset): New.
5195 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5197 2019-02-07 Tom Tromey <tom@tromey.com>
5199 * thread.c (thread_cancel_execution_command): Update.
5200 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5202 (struct thread_fsm_ops): Remove.
5203 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5204 (thread_fsm_should_stop, thread_fsm_return_value)
5205 (thread_fsm_set_finished, thread_fsm_finished_p)
5206 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5208 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5209 * infrun.c (clear_proceed_status_thread)
5210 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5211 (print_stop_event): Update.
5212 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5214 (step_command_fsm_ops): Remove.
5215 (new_step_command_fsm): Remove.
5217 (step_command_fsm::should_stop): Rename from
5218 step_command_fsm_should_stop.
5219 (step_command_fsm::clean_up): Rename from
5220 step_command_fsm_clean_up.
5221 (step_command_fsm::do_async_reply_reason): Rename from
5222 step_command_fsm_async_reply_reason.
5223 (struct until_next_fsm): Inherit from thread_fsm. Add
5225 (until_next_fsm_ops): Remove.
5226 (new_until_next_fsm): Remove.
5227 (until_next_fsm::should_stop): Rename from
5228 until_next_fsm_should_stop.
5229 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5230 (until_next_fsm::do_async_reply_reason): Rename from
5231 until_next_fsm_async_reply_reason.
5232 (struct finish_command_fsm): Inherit from thread_fsm. Add
5233 constructor. Change type of breakpoint.
5234 (finish_command_fsm_ops): Remove.
5235 (new_finish_command_fsm): Remove.
5236 (finish_command_fsm::should_stop): Rename from
5237 finish_command_fsm_should_stop.
5238 (finish_command_fsm::clean_up): Rename from
5239 finish_command_fsm_clean_up.
5240 (finish_command_fsm::return_value): Rename from
5241 finish_command_fsm_return_value.
5242 (finish_command_fsm::do_async_reply_reason): Rename from
5243 finish_command_fsm_async_reply_reason.
5244 (finish_command): Update.
5245 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5247 (call_thread_fsm_ops): Remove.
5248 (call_thread_fsm::call_thread_fsm): Rename from
5249 new_call_thread_fsm.
5250 (call_thread_fsm::should_stop): Rename from
5251 call_thread_fsm_should_stop.
5252 (call_thread_fsm::should_notify_stop): Rename from
5253 call_thread_fsm_should_notify_stop.
5254 (run_inferior_call, call_function_by_hand_dummy): Update.
5255 * cli/cli-interp.c (should_print_stop_to_console): Update.
5256 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5257 Add constructor. Change type of location_breakpoint,
5259 (until_break_fsm_ops): Remove.
5260 (new_until_break_fsm): Remove.
5261 (until_break_fsm::should_stop): Rename from
5262 until_break_fsm_should_stop.
5263 (until_break_fsm::clean_up): Rename from
5264 until_break_fsm_clean_up.
5265 (until_break_fsm::do_async_reply_reason): Rename from
5266 until_break_fsm_async_reply_reason.
5267 (until_break_command): Update.
5268 * thread-fsm.c: Remove.
5269 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5271 2019-02-07 Tom Tromey <tom@tromey.com>
5273 * yy-remap.h: Add include guard.
5274 * xtensa-tdep.h: Add include guard.
5275 * xcoffread.h: Rename include guard.
5276 * varobj-iter.h: Add include guard.
5277 * tui/tui.h: Rename include guard.
5278 * tui/tui-winsource.h: Rename include guard.
5279 * tui/tui-wingeneral.h: Rename include guard.
5280 * tui/tui-windata.h: Rename include guard.
5281 * tui/tui-win.h: Rename include guard.
5282 * tui/tui-stack.h: Rename include guard.
5283 * tui/tui-source.h: Rename include guard.
5284 * tui/tui-regs.h: Rename include guard.
5285 * tui/tui-out.h: Rename include guard.
5286 * tui/tui-layout.h: Rename include guard.
5287 * tui/tui-io.h: Rename include guard.
5288 * tui/tui-hooks.h: Rename include guard.
5289 * tui/tui-file.h: Rename include guard.
5290 * tui/tui-disasm.h: Rename include guard.
5291 * tui/tui-data.h: Rename include guard.
5292 * tui/tui-command.h: Rename include guard.
5293 * tic6x-tdep.h: Add include guard.
5294 * target/waitstatus.h: Rename include guard.
5295 * target/wait.h: Rename include guard.
5296 * target/target.h: Rename include guard.
5297 * target/resume.h: Rename include guard.
5298 * target-float.h: Rename include guard.
5299 * stabsread.h: Add include guard.
5300 * rs6000-tdep.h: Add include guard.
5301 * riscv-fbsd-tdep.h: Add include guard.
5302 * regformats/regdef.h: Rename include guard.
5303 * record.h: Rename include guard.
5304 * python/python.h: Rename include guard.
5305 * python/python-internal.h: Rename include guard.
5306 * python/py-stopevent.h: Rename include guard.
5307 * python/py-ref.h: Rename include guard.
5308 * python/py-record.h: Rename include guard.
5309 * python/py-record-full.h: Rename include guard.
5310 * python/py-record-btrace.h: Rename include guard.
5311 * python/py-instruction.h: Rename include guard.
5312 * python/py-events.h: Rename include guard.
5313 * python/py-event.h: Rename include guard.
5314 * procfs.h: Add include guard.
5315 * proc-utils.h: Add include guard.
5316 * p-lang.h: Add include guard.
5317 * or1k-tdep.h: Rename include guard.
5318 * observable.h: Rename include guard.
5319 * nto-tdep.h: Rename include guard.
5320 * nat/x86-linux.h: Rename include guard.
5321 * nat/x86-linux-dregs.h: Rename include guard.
5322 * nat/x86-gcc-cpuid.h: Add include guard.
5323 * nat/x86-dregs.h: Rename include guard.
5324 * nat/x86-cpuid.h: Rename include guard.
5325 * nat/ppc-linux.h: Rename include guard.
5326 * nat/mips-linux-watch.h: Rename include guard.
5327 * nat/linux-waitpid.h: Rename include guard.
5328 * nat/linux-ptrace.h: Rename include guard.
5329 * nat/linux-procfs.h: Rename include guard.
5330 * nat/linux-osdata.h: Rename include guard.
5331 * nat/linux-nat.h: Rename include guard.
5332 * nat/linux-namespaces.h: Rename include guard.
5333 * nat/linux-btrace.h: Rename include guard.
5334 * nat/glibc_thread_db.h: Rename include guard.
5335 * nat/gdb_thread_db.h: Rename include guard.
5336 * nat/gdb_ptrace.h: Rename include guard.
5337 * nat/fork-inferior.h: Rename include guard.
5338 * nat/amd64-linux-siginfo.h: Rename include guard.
5339 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5340 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5341 * nat/aarch64-linux.h: Rename include guard.
5342 * nat/aarch64-linux-hw-point.h: Rename include guard.
5343 * mn10300-tdep.h: Add include guard.
5344 * mips-linux-tdep.h: Add include guard.
5345 * mi/mi-parse.h: Rename include guard.
5346 * mi/mi-out.h: Rename include guard.
5347 * mi/mi-main.h: Rename include guard.
5348 * mi/mi-interp.h: Rename include guard.
5349 * mi/mi-getopt.h: Rename include guard.
5350 * mi/mi-console.h: Rename include guard.
5351 * mi/mi-common.h: Rename include guard.
5352 * mi/mi-cmds.h: Rename include guard.
5353 * mi/mi-cmd-break.h: Rename include guard.
5354 * m2-lang.h: Add include guard.
5355 * location.h: Rename include guard.
5356 * linux-record.h: Rename include guard.
5357 * linux-nat.h: Add include guard.
5358 * linux-fork.h: Add include guard.
5359 * i386-darwin-tdep.h: Rename include guard.
5360 * hppa-linux-offsets.h: Add include guard.
5361 * guile/guile.h: Rename include guard.
5362 * guile/guile-internal.h: Rename include guard.
5363 * gnu-nat.h: Rename include guard.
5364 * gdb-stabs.h: Rename include guard.
5365 * frv-tdep.h: Add include guard.
5366 * f-lang.h: Add include guard.
5367 * event-loop.h: Add include guard.
5368 * darwin-nat.h: Rename include guard.
5369 * cp-abi.h: Rename include guard.
5370 * config/sparc/nm-sol2.h: Rename include guard.
5371 * config/nm-nto.h: Rename include guard.
5372 * config/nm-linux.h: Add include guard.
5373 * config/i386/nm-i386gnu.h: Rename include guard.
5374 * config/djgpp/nl_types.h: Rename include guard.
5375 * config/djgpp/langinfo.h: Rename include guard.
5376 * compile/gcc-cp-plugin.h: Add include guard.
5377 * compile/gcc-c-plugin.h: Add include guard.
5378 * compile/compile.h: Rename include guard.
5379 * compile/compile-object-run.h: Rename include guard.
5380 * compile/compile-object-load.h: Rename include guard.
5381 * compile/compile-internal.h: Rename include guard.
5382 * compile/compile-cplus.h: Rename include guard.
5383 * compile/compile-c.h: Rename include guard.
5384 * common/xml-utils.h: Rename include guard.
5385 * common/x86-xstate.h: Rename include guard.
5386 * common/version.h: Rename include guard.
5387 * common/vec.h: Rename include guard.
5388 * common/tdesc.h: Rename include guard.
5389 * common/selftest.h: Rename include guard.
5390 * common/scoped_restore.h: Rename include guard.
5391 * common/scoped_mmap.h: Rename include guard.
5392 * common/scoped_fd.h: Rename include guard.
5393 * common/safe-iterator.h: Rename include guard.
5394 * common/run-time-clock.h: Rename include guard.
5395 * common/refcounted-object.h: Rename include guard.
5396 * common/queue.h: Rename include guard.
5397 * common/ptid.h: Rename include guard.
5398 * common/print-utils.h: Rename include guard.
5399 * common/preprocessor.h: Rename include guard.
5400 * common/pathstuff.h: Rename include guard.
5401 * common/observable.h: Rename include guard.
5402 * common/netstuff.h: Rename include guard.
5403 * common/job-control.h: Rename include guard.
5404 * common/host-defs.h: Rename include guard.
5405 * common/gdb_wait.h: Rename include guard.
5406 * common/gdb_vecs.h: Rename include guard.
5407 * common/gdb_unlinker.h: Rename include guard.
5408 * common/gdb_unique_ptr.h: Rename include guard.
5409 * common/gdb_tilde_expand.h: Rename include guard.
5410 * common/gdb_sys_time.h: Rename include guard.
5411 * common/gdb_string_view.h: Rename include guard.
5412 * common/gdb_splay_tree.h: Rename include guard.
5413 * common/gdb_setjmp.h: Rename include guard.
5414 * common/gdb_ref_ptr.h: Rename include guard.
5415 * common/gdb_optional.h: Rename include guard.
5416 * common/gdb_locale.h: Rename include guard.
5417 * common/gdb_assert.h: Rename include guard.
5418 * common/filtered-iterator.h: Rename include guard.
5419 * common/filestuff.h: Rename include guard.
5420 * common/fileio.h: Rename include guard.
5421 * common/environ.h: Rename include guard.
5422 * common/common-utils.h: Rename include guard.
5423 * common/common-types.h: Rename include guard.
5424 * common/common-regcache.h: Rename include guard.
5425 * common/common-inferior.h: Rename include guard.
5426 * common/common-gdbthread.h: Rename include guard.
5427 * common/common-exceptions.h: Rename include guard.
5428 * common/common-defs.h: Rename include guard.
5429 * common/common-debug.h: Rename include guard.
5430 * common/cleanups.h: Rename include guard.
5431 * common/buffer.h: Rename include guard.
5432 * common/btrace-common.h: Rename include guard.
5433 * common/break-common.h: Rename include guard.
5434 * cli/cli-utils.h: Rename include guard.
5435 * cli/cli-style.h: Rename include guard.
5436 * cli/cli-setshow.h: Rename include guard.
5437 * cli/cli-script.h: Rename include guard.
5438 * cli/cli-interp.h: Rename include guard.
5439 * cli/cli-decode.h: Rename include guard.
5440 * cli/cli-cmds.h: Rename include guard.
5441 * charset-list.h: Add include guard.
5442 * buildsym-legacy.h: Rename include guard.
5443 * bfin-tdep.h: Add include guard.
5444 * ax.h: Rename include guard.
5445 * arm-linux-tdep.h: Add include guard.
5446 * arm-fbsd-tdep.h: Add include guard.
5447 * arch/xtensa.h: Rename include guard.
5448 * arch/tic6x.h: Add include guard.
5449 * arch/i386.h: Add include guard.
5450 * arch/arm.h: Rename include guard.
5451 * arch/arm-linux.h: Rename include guard.
5452 * arch/arm-get-next-pcs.h: Rename include guard.
5453 * arch/amd64.h: Add include guard.
5454 * arch/aarch64-insn.h: Rename include guard.
5455 * arch-utils.h: Rename include guard.
5456 * annotate.h: Add include guard.
5457 * amd64-darwin-tdep.h: Rename include guard.
5458 * aarch64-linux-tdep.h: Add include guard.
5459 * aarch64-fbsd-tdep.h: Add include guard.
5460 * aarch32-linux-nat.h: Add include guard.
5462 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5464 * macrotab.c (macro_define_internal): New function that
5465 factorizes macro_define_object_internal and macro_define_function
5467 (macro_define_object_internal): Use macro_define_internal.
5468 (macro_define_function): Likewise.
5470 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5472 * macrocmd.c (extract_identifier): Return
5473 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5476 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5478 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5480 2019-02-05 Tom Tromey <tom@tromey.com>
5482 * target.c (target_stack::unpush): Move assertion earlier.
5484 2019-01-30 Tom Tromey <tom@tromey.com>
5487 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5488 (gdbpy_parse_and_eval): Likewise.
5489 * python/python-internal.h (gdbpy_allow_threads): New class.
5491 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5493 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5494 (aarch64_fbsd_fpregmap): Move earlier.
5495 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5496 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5497 instead of individual calls to trad_frame_set_reg_addr.
5498 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5500 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5501 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5502 instead of individual calls to trad_frame_set_reg_addr.
5504 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5506 * CONTRIBUTE: Replace contribution list with wiki link.
5508 2019-01-25 Tom Tromey <tom@tromey.com>
5510 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5512 2019-01-25 Tom Tromey <tom@tromey.com>
5514 * xtensa-linux-nat.c: Fix common/ includes.
5515 * xml-support.h: Fix common/ includes.
5516 * xml-support.c: Fix common/ includes.
5517 * x86-linux-nat.c: Fix common/ includes.
5518 * windows-nat.c: Fix common/ includes.
5519 * varobj.h: Fix common/ includes.
5520 * varobj.c: Fix common/ includes.
5521 * value.c: Fix common/ includes.
5522 * valops.c: Fix common/ includes.
5523 * utils.c: Fix common/ includes.
5524 * unittests/xml-utils-selftests.c: Fix common/ includes.
5525 * unittests/utils-selftests.c: Fix common/ includes.
5526 * unittests/unpack-selftests.c: Fix common/ includes.
5527 * unittests/tracepoint-selftests.c: Fix common/ includes.
5528 * unittests/style-selftests.c: Fix common/ includes.
5529 * unittests/string_view-selftests.c: Fix common/ includes.
5530 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5531 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5532 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5533 * unittests/rsp-low-selftests.c: Fix common/ includes.
5534 * unittests/parse-connection-spec-selftests.c: Fix common/
5536 * unittests/optional-selftests.c: Fix common/ includes.
5537 * unittests/offset-type-selftests.c: Fix common/ includes.
5538 * unittests/observable-selftests.c: Fix common/ includes.
5539 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5540 * unittests/memrange-selftests.c: Fix common/ includes.
5541 * unittests/memory-map-selftests.c: Fix common/ includes.
5542 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5543 * unittests/function-view-selftests.c: Fix common/ includes.
5544 * unittests/environ-selftests.c: Fix common/ includes.
5545 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5546 * unittests/common-utils-selftests.c: Fix common/ includes.
5547 * unittests/cli-utils-selftests.c: Fix common/ includes.
5548 * unittests/array-view-selftests.c: Fix common/ includes.
5549 * ui-file.c: Fix common/ includes.
5550 * tui/tui-io.c: Fix common/ includes.
5551 * tracepoint.h: Fix common/ includes.
5552 * tracepoint.c: Fix common/ includes.
5553 * tracefile-tfile.c: Fix common/ includes.
5554 * top.h: Fix common/ includes.
5555 * top.c: Fix common/ includes.
5556 * thread.c: Fix common/ includes.
5557 * target/waitstatus.h: Fix common/ includes.
5558 * target/waitstatus.c: Fix common/ includes.
5559 * target.h: Fix common/ includes.
5560 * target.c: Fix common/ includes.
5561 * target-memory.c: Fix common/ includes.
5562 * target-descriptions.c: Fix common/ includes.
5563 * symtab.h: Fix common/ includes.
5564 * symfile.c: Fix common/ includes.
5565 * stap-probe.c: Fix common/ includes.
5566 * spu-linux-nat.c: Fix common/ includes.
5567 * sparc-nat.c: Fix common/ includes.
5568 * source.c: Fix common/ includes.
5569 * solib.c: Fix common/ includes.
5570 * solib-target.c: Fix common/ includes.
5571 * ser-unix.c: Fix common/ includes.
5572 * ser-tcp.c: Fix common/ includes.
5573 * ser-pipe.c: Fix common/ includes.
5574 * ser-base.c: Fix common/ includes.
5575 * selftest-arch.c: Fix common/ includes.
5576 * s12z-tdep.c: Fix common/ includes.
5577 * rust-exp.y: Fix common/ includes.
5578 * rs6000-aix-tdep.c: Fix common/ includes.
5579 * riscv-tdep.c: Fix common/ includes.
5580 * remote.c: Fix common/ includes.
5581 * remote-notif.h: Fix common/ includes.
5582 * remote-fileio.h: Fix common/ includes.
5583 * remote-fileio.c: Fix common/ includes.
5584 * regcache.h: Fix common/ includes.
5585 * regcache.c: Fix common/ includes.
5586 * record-btrace.c: Fix common/ includes.
5587 * python/python.c: Fix common/ includes.
5588 * python/py-type.c: Fix common/ includes.
5589 * python/py-inferior.c: Fix common/ includes.
5590 * progspace.h: Fix common/ includes.
5591 * producer.c: Fix common/ includes.
5592 * procfs.c: Fix common/ includes.
5593 * proc-api.c: Fix common/ includes.
5594 * printcmd.c: Fix common/ includes.
5595 * ppc-linux-nat.c: Fix common/ includes.
5596 * parser-defs.h: Fix common/ includes.
5597 * osdata.c: Fix common/ includes.
5598 * obsd-nat.c: Fix common/ includes.
5599 * nat/x86-linux.c: Fix common/ includes.
5600 * nat/x86-linux-dregs.c: Fix common/ includes.
5601 * nat/x86-dregs.h: Fix common/ includes.
5602 * nat/x86-dregs.c: Fix common/ includes.
5603 * nat/ppc-linux.c: Fix common/ includes.
5604 * nat/mips-linux-watch.h: Fix common/ includes.
5605 * nat/mips-linux-watch.c: Fix common/ includes.
5606 * nat/linux-waitpid.c: Fix common/ includes.
5607 * nat/linux-ptrace.h: Fix common/ includes.
5608 * nat/linux-ptrace.c: Fix common/ includes.
5609 * nat/linux-procfs.c: Fix common/ includes.
5610 * nat/linux-personality.c: Fix common/ includes.
5611 * nat/linux-osdata.c: Fix common/ includes.
5612 * nat/linux-namespaces.c: Fix common/ includes.
5613 * nat/linux-btrace.h: Fix common/ includes.
5614 * nat/linux-btrace.c: Fix common/ includes.
5615 * nat/fork-inferior.c: Fix common/ includes.
5616 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5617 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5618 * nat/aarch64-linux.c: Fix common/ includes.
5619 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5620 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5621 * namespace.h: Fix common/ includes.
5622 * mips-linux-tdep.c: Fix common/ includes.
5623 * minsyms.c: Fix common/ includes.
5624 * mi/mi-parse.h: Fix common/ includes.
5625 * mi/mi-main.c: Fix common/ includes.
5626 * mi/mi-cmd-env.c: Fix common/ includes.
5627 * memrange.h: Fix common/ includes.
5628 * memattr.c: Fix common/ includes.
5629 * maint.h: Fix common/ includes.
5630 * maint.c: Fix common/ includes.
5631 * main.c: Fix common/ includes.
5632 * machoread.c: Fix common/ includes.
5633 * location.c: Fix common/ includes.
5634 * linux-thread-db.c: Fix common/ includes.
5635 * linux-nat.c: Fix common/ includes.
5636 * linux-fork.c: Fix common/ includes.
5637 * inline-frame.c: Fix common/ includes.
5638 * infrun.c: Fix common/ includes.
5639 * inflow.c: Fix common/ includes.
5640 * inferior.h: Fix common/ includes.
5641 * inferior.c: Fix common/ includes.
5642 * infcmd.c: Fix common/ includes.
5643 * inf-ptrace.c: Fix common/ includes.
5644 * inf-child.c: Fix common/ includes.
5645 * ia64-linux-nat.c: Fix common/ includes.
5646 * i387-tdep.c: Fix common/ includes.
5647 * i386-tdep.c: Fix common/ includes.
5648 * i386-linux-tdep.c: Fix common/ includes.
5649 * i386-linux-nat.c: Fix common/ includes.
5650 * i386-go32-tdep.c: Fix common/ includes.
5651 * i386-fbsd-tdep.c: Fix common/ includes.
5652 * i386-fbsd-nat.c: Fix common/ includes.
5653 * guile/scm-type.c: Fix common/ includes.
5654 * guile/guile.c: Fix common/ includes.
5655 * go32-nat.c: Fix common/ includes.
5656 * gnu-nat.c: Fix common/ includes.
5657 * gdbthread.h: Fix common/ includes.
5658 * gdbarch-selftests.c: Fix common/ includes.
5659 * gdb_usleep.c: Fix common/ includes.
5660 * gdb_select.h: Fix common/ includes.
5661 * gdb_bfd.c: Fix common/ includes.
5662 * gcore.c: Fix common/ includes.
5663 * fork-child.c: Fix common/ includes.
5664 * findvar.c: Fix common/ includes.
5665 * fbsd-nat.c: Fix common/ includes.
5666 * event-top.c: Fix common/ includes.
5667 * event-loop.c: Fix common/ includes.
5668 * dwarf2read.c: Fix common/ includes.
5669 * dwarf2loc.c: Fix common/ includes.
5670 * dwarf2-frame.c: Fix common/ includes.
5671 * dwarf-index-cache.c: Fix common/ includes.
5672 * dtrace-probe.c: Fix common/ includes.
5673 * disasm-selftests.c: Fix common/ includes.
5674 * defs.h: Fix common/ includes.
5675 * csky-tdep.c: Fix common/ includes.
5676 * cp-valprint.c: Fix common/ includes.
5677 * cp-support.h: Fix common/ includes.
5678 * cp-support.c: Fix common/ includes.
5679 * corelow.c: Fix common/ includes.
5680 * completer.h: Fix common/ includes.
5681 * completer.c: Fix common/ includes.
5682 * compile/compile.c: Fix common/ includes.
5683 * compile/compile-loc2c.c: Fix common/ includes.
5684 * compile/compile-cplus-types.c: Fix common/ includes.
5685 * compile/compile-cplus-symbols.c: Fix common/ includes.
5686 * command.h: Fix common/ includes.
5687 * cli/cli-dump.c: Fix common/ includes.
5688 * cli/cli-cmds.c: Fix common/ includes.
5689 * charset.c: Fix common/ includes.
5690 * build-id.c: Fix common/ includes.
5691 * btrace.h: Fix common/ includes.
5692 * btrace.c: Fix common/ includes.
5693 * breakpoint.h: Fix common/ includes.
5694 * breakpoint.c: Fix common/ includes.
5696 (enum agent_op): Fix common/ includes.
5697 * ax-general.c (struct aop_map): Fix common/ includes.
5698 * ax-gdb.c: Fix common/ includes.
5699 * auxv.c: Fix common/ includes.
5700 * auto-load.c: Fix common/ includes.
5701 * arm-tdep.c: Fix common/ includes.
5702 * arch/riscv.c: Fix common/ includes.
5703 * arch/ppc-linux-common.c: Fix common/ includes.
5704 * arch/i386.c: Fix common/ includes.
5705 * arch/arm.c: Fix common/ includes.
5706 * arch/arm-linux.c: Fix common/ includes.
5707 * arch/arm-get-next-pcs.c: Fix common/ includes.
5708 * arch/amd64.c: Fix common/ includes.
5709 * arch/aarch64.c: Fix common/ includes.
5710 * arch/aarch64-insn.c: Fix common/ includes.
5711 * arch-utils.c: Fix common/ includes.
5712 * amd64-windows-tdep.c: Fix common/ includes.
5713 * amd64-tdep.c: Fix common/ includes.
5714 * amd64-sol2-tdep.c: Fix common/ includes.
5715 * amd64-obsd-tdep.c: Fix common/ includes.
5716 * amd64-nbsd-tdep.c: Fix common/ includes.
5717 * amd64-linux-tdep.c: Fix common/ includes.
5718 * amd64-linux-nat.c: Fix common/ includes.
5719 * amd64-fbsd-tdep.c: Fix common/ includes.
5720 * amd64-fbsd-nat.c: Fix common/ includes.
5721 * amd64-dicos-tdep.c: Fix common/ includes.
5722 * amd64-darwin-tdep.c: Fix common/ includes.
5723 * agent.c: Fix common/ includes.
5724 * ada-lang.h: Fix common/ includes.
5725 * ada-lang.c: Fix common/ includes.
5726 * aarch64-tdep.c: Fix common/ includes.
5728 2019-01-25 Tom Tromey <tom@tromey.com>
5730 * common/create-version.sh: Use common/version.h.
5732 2019-01-24 Pedro Alves <palves@redhat.com>
5734 * infrun.c (signal_stop, signal_print, signal_program)
5735 (signal_catch, signal_pass): Now arrays instead of pointers.
5736 (update_signals_program_target, do_target_resume)
5737 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5738 * linux-nat.c (linux_nat_target::pass_signals)
5739 (linux_nat_target::create_inferior, linux_nat_target::attach):
5741 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5742 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5743 * procfs.c (procfs_target::pass_signals): Adjust.
5744 * record-full.c (record_full_target::resume): Adjust.
5745 * remote.c (remote_target::pass_signals)
5746 (remote_target::program_signals): Adjust.
5747 * target-debug.h (target_debug_print_signals): Now takes a
5748 gdb::array_view as parameter. Adjust.
5749 * target.h (target_ops) <pass_signals, program_signals>: Replace
5750 pointer and length parameters with gdb::array_view.
5751 (target_pass_signals, target_program_signals): Likewise.
5752 * target-delegates.c: Regenerate.
5754 2019-01-24 Pedro Alves <palves@redhat.com>
5756 * common/forward-scope-exit.h
5757 (forward_scope_exit::forward_scope_exit): Pass arguments to
5758 m_bind_function directly, instead of creating a std::bind and
5761 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5763 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5765 (pass_in_v_vfp_candidate): Likewise.
5767 2019-01-23 Tom Tromey <tom@tromey.com>
5768 Pedro Alves <palves@redhat.com>
5770 * regcache.c (class regcache_invalidator): Remove.
5771 (regcache::raw_write): Use make_scope_exit.
5773 2019-01-23 Tom Tromey <tom@tromey.com>
5775 * ui-out.h (class ui_out_emit_type): Update comment.
5777 2019-01-23 Tom Tromey <tom@tromey.com>
5779 * infrun.c (fetch_inferior_event): Update comment.
5781 2019-01-23 Tom Tromey <tom@tromey.com>
5782 Pedro Alves <palves@redhat.com>
5784 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5786 (fetch_inferior_event): Use SCOPE_EXIT.
5789 2019-01-23 Tom Tromey <tom@tromey.com>
5790 Pedro Alves <palves@redhat.com>
5792 * infrun.c (disable_thread_events): Delete.
5793 (stop_all_threads): Use SCOPE_EXIT.
5795 2019-01-23 Tom Tromey <tom@tromey.com>
5796 Pedro Alves <palves@redhat.com>
5798 * symfile.c: Include forward-scope-exit.h.
5799 (clear_symtab_users_cleanup): Replace forward declaration with
5800 a FORWARD_SCOPE_EXIT.
5801 (syms_from_objfile_1): Use the forward_scope_exit and
5802 gdb::optional instead of cleanup_function.
5803 (reread_symbols): Use the forward_scope_exit instead of
5805 (clear_symtab_users_cleanup): Remove function.
5807 2019-01-23 Tom Tromey <tom@tromey.com>
5808 Pedro Alves <palves@redhat.com>
5810 * linux-nat.c: Include scope-exit.h.
5811 (cleanup_target_stop): Remove.
5812 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5815 2019-01-23 Tom Tromey <tom@tromey.com>
5816 Pedro Alves <palves@redhat.com>
5818 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5819 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5821 2019-01-23 Tom Tromey <tom@tromey.com>
5822 Andrew Burgess <andrew.burgess@embecosm.com>
5823 Pedro Alves <palves@redhat.com>
5825 * infrun.c (fetch_inferior_event): Use scope_exit.
5826 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5827 * top.c (execute_command): Use scope_exit.
5828 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5829 * utils.c (do_bpstat_clear_actions_cleanup)
5830 (make_bpstat_clear_actions_cleanup): Remove.
5832 2019-01-23 Tom Tromey <tom@tromey.com>
5833 Pedro Alves <palves@redhat.com>
5835 * infrun.c: Include "common/scope-exit.h"
5836 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5837 (wait_for_inferior): Use SCOPE_EXIT.
5838 (fetch_inferior_event): Use scope_exit.
5840 2019-01-23 Tom Tromey <tom@tromey.com>
5841 Pedro Alves <palves@redhat.com>
5843 * breakpoint.c (create_breakpoint): Remove cleanup.
5845 2019-01-23 Tom Tromey <tom@tromey.com>
5846 Andrew Burgess <andrew.burgess@embecosm.com>
5847 Pedro Alves <palves@redhat.com>
5849 2019-01-23 Pedro Alves <palves@redhat.com>
5851 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5853 2019-01-23 Pedro Alves <palves@redhat.com>
5854 Andrew Burgess <andrew.burgess@embecosm.com>
5856 * gdbthread.h: Include "common/forward-scope-exit.h".
5857 (scoped_finish_thread_state): Redefine custom class in terms of
5860 2019-01-23 Pedro Alves <palves@redhat.com>
5861 Andrew Burgess <andrew.burgess@embecosm.com>
5863 * common/forward-scope-exit.h: New file.
5865 2019-01-23 Pedro Alves <palves@redhat.com>
5866 Andrew Burgess <andrew.burgess@embecosm.com>
5867 Tom Tromey <tom@tromey.com>
5869 * common/scope-exit.h: New file.
5871 2019-01-23 Pedro Alves <palves@redhat.com>
5873 * common/preprocessor.h (ESC): Rename to ...
5874 (ESC_PARENS): ... this.
5875 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5876 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5878 2019-01-23 Tom Tromey <tom@tromey.com>
5880 * language.h (class scoped_switch_to_sym_language_if_auto):
5881 Initialize m_lang in both cases.
5883 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5885 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5888 2019-01-22 Tom Tromey <tom@tromey.com>
5890 * corelow.c: Do not include sys/file.h.
5892 2019-01-22 Tom Tromey <tom@tromey.com>
5894 * tui/tui-wingeneral.h: Include gdb_curses.h.
5896 2019-01-22 Tom Tromey <tom@tromey.com>
5898 * source-cache.h (class source_cache) <get_source_lines,
5899 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5901 2019-01-22 Tom Tromey <tom@tromey.com>
5903 * remote-fileio.h (struct remote_target): Declare.
5905 2019-01-22 Tom Tromey <tom@tromey.com>
5907 * python/py-arch.c: Do not include py-ref.h.
5908 * python/py-bpevent.c: Do not include py-ref.h.
5909 * python/py-cmd.c: Do not include py-ref.h.
5910 * python/py-continueevent.c: Do not include py-ref.h.
5911 * python/py-event.h: Do not include py-ref.h.
5912 * python/py-evtregistry.c: Do not include py-ref.h.
5913 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5914 * python/py-frame.c: Do not include py-ref.h.
5915 * python/py-framefilter.c: Do not include py-ref.h.
5916 * python/py-function.c: Do not include py-ref.h.
5917 * python/py-infevents.c: Do not include py-ref.h.
5918 * python/py-linetable.c: Do not include py-ref.h.
5919 * python/py-objfile.c: Do not include py-ref.h.
5920 * python/py-param.c: Do not include py-ref.h.
5921 * python/py-prettyprint.c: Do not include py-ref.h.
5922 * python/py-progspace.c: Do not include py-ref.h.
5923 * python/py-symbol.c: Do not include py-ref.h.
5924 * python/py-symtab.c: Do not include py-ref.h.
5925 * python/py-type.c: Do not include py-ref.h.
5926 * python/py-unwind.c: Do not include py-ref.h.
5927 * python/py-utils.c: Do not include py-ref.h.
5928 * python/py-value.c: Do not include py-ref.h.
5929 * python/py-varobj.c: Do not include py-ref.h.
5930 * python/py-xmethods.c: Do not include py-ref.h.
5931 * python/python.c: Do not include py-ref.h.
5932 * varobj.c: Do not include py-ref.h.
5934 2019-01-22 Tom Tromey <tom@tromey.com>
5936 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5939 2019-01-22 Tom Tromey <tom@tromey.com>
5941 * compile/compile-cplus-types.c: Remove a comment by #include.
5943 2019-01-22 Tom Tromey <tom@tromey.com>
5945 * compile/gcc-c-plugin.h: Include compile-internal.h.
5947 2019-01-22 Tom Tromey <tom@tromey.com>
5949 * stabsread.c (EXTERN): Do not define.
5950 (symnum, next_symbol_text_func, processing_gcc_compilation)
5951 (within_function, global_sym_chain, global_stabs)
5952 (previous_stab_code, this_object_header_files)
5953 (n_this_object_header_files)
5954 (n_allocated_this_object_header_files): Define.
5955 * stabsread.h (EXTERN): Never define. Use "extern".
5957 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5959 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5962 2019-01-21 Tom Tromey <tom@tromey.com>
5964 * ui-out.c: Fix includes.
5965 * tui/tui-source.c: Fix includes.
5966 * target.c: Fix includes.
5967 * remote.c: Fix includes.
5968 * regcache.c: Fix includes.
5969 * python/py-block.c: Fix includes.
5970 * printcmd.c: Fix includes.
5971 * or1k-tdep.c: Fix includes.
5972 * mi/mi-main.c: Fix includes.
5973 * m32r-tdep.c: Fix includes.
5974 * csky-tdep.c: Fix includes.
5975 * compile/compile-cplus-types.c: Fix includes.
5976 * cli/cli-interp.c: Fix includes.
5978 2019-01-21 Alan Hayward <alan.hayward@arm.com>
5980 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5983 2019-01-16 Tom Tromey <tom@tromey.com>
5985 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5987 (struct objfile) <msymbols_range>: Move from top level.
5988 <msymbols>: New method.
5989 (class objfile_msymbols): Remove.
5990 * symtab.c (default_collect_symbol_completion_matches_break_on):
5992 * symmisc.c (dump_msymbols): Update.
5993 * stabsread.c (scan_file_globals): Update.
5994 * objc-lang.c (info_selectors_command, info_classes_command)
5995 (find_methods): Update.
5996 * minsyms.c (find_solib_trampoline_target): Update.
5997 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5998 * coffread.c (coff_symfile_read): Update.
5999 * ada-lang.c (ada_lookup_simple_minsym)
6000 (ada_collect_symbol_completion_matches): Update.
6002 2019-01-16 Tom Tromey <tom@tromey.com>
6004 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6005 type. Remove no-argument constructor.
6006 <iterator::operator++>: Simplify.
6008 <end>: Use minimal_symbol_count.
6010 2019-01-16 Tom Tromey <tom@tromey.com>
6012 * objfiles.h (struct objfile) <psymtabs>: New method.
6013 (class objfile_psymtabs): Remove.
6014 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6016 <range>: New method.
6017 (require_partial_symbols): Change return type.
6018 * psymtab.c (require_partial_symbols)
6019 (psym_expand_symtabs_matching): Update.
6020 * mdebugread.c (parse_partial_symbols): Update.
6021 * dbxread.c (dbx_end_psymtab): Update.
6023 2019-01-15 Tom Tromey <tom@tromey.com>
6025 * symtab.c (lookup_objfile_from_block)
6026 (lookup_symbol_in_objfile_symtabs)
6027 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6028 (find_line_symtab, info_sources_command)
6029 (default_collect_symbol_completion_matches_break_on)
6030 (make_source_files_completion_list): Update.
6031 * symmisc.c (print_objfile_statistics, dump_objfile)
6032 (maintenance_print_symbols, maintenance_info_symtabs)
6033 (maintenance_check_symtabs, maintenance_info_line_tables):
6035 * source.c (select_source_symtab)
6036 (forget_cached_source_info_for_objfile): Update.
6037 * objfiles.h (class objfile_compunits): Remove.
6038 (struct objfile) <compunits_range>: New typedef.
6039 (compunits): New method.
6040 * objfiles.c (objfile_relocate1): Update.
6041 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6042 * maint.c (count_symtabs_and_blocks): Update.
6043 * linespec.c (iterate_over_all_matching_symtabs): Update.
6044 * cp-support.c (add_symbol_overload_list_qualified): Update.
6045 * coffread.c (coff_symtab_read): Update.
6046 * ada-lang.c (add_nonlocal_symbols)
6047 (ada_collect_symbol_completion_matches)
6048 (ada_add_global_exceptions): Update.
6050 2019-01-15 Tom Tromey <tom@tromey.com>
6052 * progspace.h (program_space) <objfiles_safe_range>: New
6054 <objfiles_safe>: New method.
6055 * objfiles.h (class all_objfiles_safe): Remove.
6056 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6057 * jit.c (jit_inferior_exit_hook): Update.
6059 2019-01-17 Tom Tromey <tom@tromey.com>
6061 * progspace.h (program_space) <objfiles_range>: New typedef.
6062 <objfiles>: New method.
6063 <objfiles_head>: Rename from objfiles.
6064 (object_files): Update.
6065 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6066 * guile/scm-pretty-print.c
6067 (ppscm_find_pretty_printer_from_objfiles): Update.
6068 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6069 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6071 * python/py-progspace.c (pspy_get_objfiles): Update.
6072 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6074 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6075 (objfpy_lookup_objfile_by_build_id): Update.
6076 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6077 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6079 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6080 (expand_symtab_containing_pc, lookup_objfile_from_block)
6081 (lookup_static_symbol, basic_lookup_transparent_type)
6082 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6083 (find_line_symtab, info_sources_command)
6084 (default_collect_symbol_completion_matches_break_on)
6085 (make_source_files_completion_list, find_main_name): Update.
6086 * symmisc.c (print_symbol_bcache_statistics)
6087 (print_objfile_statistics, maintenance_print_symbols)
6088 (maintenance_print_msymbols, maintenance_print_objfiles)
6089 (maintenance_info_symtabs, maintenance_check_symtabs)
6090 (maintenance_expand_symtabs, maintenance_info_line_tables):
6092 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6093 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6094 (map_overlay_command, unmap_overlay_command)
6095 (simple_overlay_update, expand_symtabs_matching)
6096 (map_symbol_filenames): Update.
6097 * symfile-debug.c (set_debug_symfile): Update.
6098 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6100 * source.c (select_source_symtab, forget_cached_source_info):
6102 * solib.c (solib_read_symbols): Update.
6103 * solib-spu.c (append_ocl_sos): Update.
6104 * psymtab.c (maintenance_print_psymbols)
6105 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6106 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6107 * printcmd.c (info_symbol_command): Update.
6108 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6110 * objfiles.h (class all_objfiles): Remove.
6111 * objfiles.c (have_partial_symbols, have_full_symbols)
6112 (have_minimal_symbols, qsort_cmp, update_section_map)
6113 (shared_objfile_contains_address_p)
6114 (default_iterate_over_objfiles_in_search_order): Update.
6115 * objc-lang.c (info_selectors_command, info_classes_command)
6116 (find_methods): Update.
6117 * minsyms.c (find_solib_trampoline_target): Update.
6118 * maint.c (maintenance_info_sections)
6119 (maintenance_translate_address, count_symtabs_and_blocks):
6121 * main.c (captured_main_1): Update.
6122 * linux-thread-db.c (try_thread_db_load_from_pdir)
6123 (has_libpthread): Update.
6124 * linespec.c (iterate_over_all_matching_symtabs)
6125 (search_minsyms_for_name): Update.
6126 * jit.c (jit_find_objf_with_entry_addr): Update.
6127 * hppa-tdep.c (find_unwind_entry)
6128 (hppa_lookup_stub_minimal_symbol): Update.
6129 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6131 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6132 (elf_gnu_ifunc_resolve_by_got): Update.
6133 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6134 * dwarf-index-write.c (save_gdb_index_command): Update.
6135 * cp-support.c (add_symbol_overload_list_qualified): Update.
6136 * breakpoint.c (create_overlay_event_breakpoint)
6137 (create_longjmp_master_breakpoint)
6138 (create_std_terminate_master_breakpoint)
6139 (create_exception_master_breakpoint): Update.
6140 * blockframe.c (find_pc_partial_function): Update.
6141 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6142 (ada_collect_symbol_completion_matches)
6143 (ada_add_global_exceptions): Update.
6145 2019-01-17 Tom Tromey <tom@tromey.com>
6147 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6149 (solib_target_parse_libraries): Change return type.
6150 (library_list_start_segment, library_list_start_section)
6151 (library_list_end_library, library_list_start_library); Update.
6152 (solib_target_free_library_list): Remove.
6153 (solib_target_parse_libraries): Remove cleanup. Change return
6155 (solib_target_current_sos): Update.
6157 2019-01-17 Tom Tromey <tromey@bapiya>
6159 * valprint.c: Replace "the the" with "the".
6160 * symtab.c: Replace "the the" with "the".
6161 * solib.c: Replace "the the" with "the".
6162 * solib-dsbt.c: Replace "the the" with "the".
6163 * linespec.c: Replace "the the" with "the".
6164 * dwarf2loc.h: Replace "the the" with "the".
6165 * amd64-windows-tdep.c: Replace "the the" with "the".
6166 * aarch64-tdep.c: Replace "the the" with "the".
6168 2019-01-16 Keith Seitz <keiths@redhat.com>
6171 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6172 <builder>: Rename to ..
6173 <m_builder>: ... this and make private.
6174 (dwarf2_cu::get_builder): New method. Change all users of
6175 `builder' to use this method.
6176 (dwarf2_start_symtab): Move to ...
6177 (dwarf2_cu::start_symtab): ... here. Update all callers
6178 (setup_type_unit_groups): Move to ...
6179 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6181 (dwarf2_cu::reset_builder): New method.
6182 (process_full_compunit, process_full_type_unit): Use
6183 dwarf2_cu::reset_builder.
6184 (follow_die_offset): Record the ancestor CU if it is different
6185 from the followed DIE's CU.
6186 (follow_die_sig_1): Likewise.
6188 2019-01-15 Tom Tromey <tom@tromey.com>
6190 * remote.c (class remote_state) <buf>: Now a char_vector.
6192 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6194 (remote_target::getpkt_or_notif_sane_1)
6195 (remote_target::getpkt_sane)
6196 (remote_target::getpkt_or_notif_sane): Likewise.
6197 (class remote_target) <putpkt>: New overload.
6198 (remote_target::read_frame): Change type of "buf_p". Remove
6200 (packet_ok): New overload.
6201 (packet_check_result): New overload.
6204 2019-01-14 Tom Tromey <tom@tromey.com>
6206 * remote-notif.c (handle_notification, remote_notif_ack)
6207 (remote_notif_parse): Make "buf" const.
6208 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6210 (remote_notif_parse, remote_notif_ack, handle_notification):
6212 * remote.c (remote_notif_stop_parse): Make "buf" const.
6213 (remote_target::remote_parse_stop_reply): Make "buf" const.
6214 (remote_notif_stop_ack): Make "buf" const.
6216 2019-01-14 Tom Tromey <tom@tromey.com>
6218 * remote.c (remote_console_output): Make parameter const.
6220 2019-01-14 Tom Tromey <tom@tromey.com>
6222 * target-debug.h (target_debug_print_signals): Constify.
6223 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6224 * procfs.c (procfs_target::pass_signals): Update.
6225 * linux-nat.c (linux_nat_target::pass_signals): Update.
6226 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6227 * target-delegates.c: Rebuild.
6228 * remote.c (remote_target::program_signals): Update.
6229 (remote_target::pass_signals): Update.
6230 * target.c (target_pass_signals): Constify argument.
6231 (target_program_signals): Likewise.
6232 * target.h (struct target_ops) <pass_signals, program_signals>:
6234 (target_pass_signals, target_program_signals): Constify argument.
6236 2019-01-14 Tom Tromey <tom@tromey.com>
6239 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6241 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6243 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6245 * rs6000-tdep.c: Include reggroups.h.
6246 (IS_V_ALIAS_PSEUDOREG): Define.
6247 (rs6000_register_name): Return names for the "vX" aliases.
6248 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6249 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6250 aliases. Call default_register_reggroup_p for all other
6252 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6254 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6255 Handle "vX" aliases.
6256 (v_alias_pseudo_register_collect): New function.
6257 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6258 (rs6000_gdbarch_init): Initialize "vX" aliases as
6259 pseudo-registers. Restore registration of
6260 rs6000_pseudo_register_reggroup_p with
6261 set_tdesc_pseudo_register_reggroup_p.
6263 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6265 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6266 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6267 set_gdbarch_num_pseudo_regs.
6269 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6271 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6272 Remove arg prefixname, add do_set and do_show.
6273 Add member functions set_list and show_list.
6274 * cli/cli-style.c (class cli_style_option): Update accordingly.
6275 (style_set_list): Move to file scope.
6276 (style_show_list): Likewise.
6277 (set_style): Call help_list.
6278 (show_style): Call cmd_show_list.
6279 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6280 Update to use the new macro.
6282 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6284 * ada-lang.c (_initialize_ada_language): Expand the help text
6285 for the "catch exception" command.
6287 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6289 * symtab.c (matching_obj_sections): Initialize obj,
6290 declare it closer to its usage.
6292 2019-01-10 Tom Tromey <tom@tromey.com>
6294 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6295 (basic_inf_threads_range): Remove.
6296 (inf_threads_range, inf_non_exited_threads_range)
6297 (safe_inf_threads_range): Use next_adapter.
6299 2019-01-10 Keith Seitz <keiths@redhat.com>
6303 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6304 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6306 2019-01-10 Keith Seitz <keiths@redhat.com>
6310 * dictionary.c (pending_to_vector): Remove.
6311 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6312 Remove _1 suffix, replacing functions of the same name. Update
6314 (dict_create_hashed, dict_create_hashed_expandable)
6315 (dict_create_linear, dict_create_linear_expandable, dict_free)
6316 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6317 Make functions static.
6319 2019-01-10 Keith Seitz <keiths@redhat.com>
6323 * dictionary.h (struct dictionary): Replace declaration with
6325 (dict_create_hashed, dict_create_hashed_expandable)
6326 (dict_create_linear, dict_create_linear_expandable)
6327 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6328 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6329 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6330 taking multidictionary argument.
6331 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6332 * block.h (struct block) <dict>: Change to multidictionary
6333 and rename `multidict'.
6334 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6335 symmisc.c: Update all dictionary references to multidictionary.
6337 2019-01-10 Keith Seitz <keiths@redhat.com>
6341 * dictionary.c: Include unordered_map.
6342 (pending_to_vector): New function.
6343 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6344 Rewrite the non-"_1" functions to take vector instead
6346 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6347 "new" _1 versions of the same name.
6348 (multidictionary): Define.
6349 (std::hash<enum language): New definition.
6350 (collate_pending_symbols_by_language, mdict_create_hashed)
6351 (mdict_create_hashed_expandable, mdict_create_linear)
6352 (mdict_create_linear_expandable, mdict_free)
6353 (find_language_dictionary, create_new_language_dictionary)
6354 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6355 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6356 (mdict_size, mdict_empty): New functions.
6357 * dictionary.h (mdict_iterator): Define.
6359 2019-01-10 Pedro Alves <palves@redhat.com>
6361 * breakpoint.c (read_uploaded_action)
6362 (create_tracepoint_from_upload): Adjust to use
6363 gdb::unique_xmalloc_ptr.
6364 * ctf.c (ctf_write_uploaded_tp):
6365 (SET_ARRAY_FIELD): Use emplace_back.
6366 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6367 * tracefile-tfile.c (tfile_write_uploaded_tp):
6368 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6369 gdb::unique_xmalloc_ptr.
6370 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6371 at_string, cond_string, cmd_strings>: Replace char pointers
6372 with gdb::unique_xmalloc_ptr.
6374 2019-01-10 Pedro Alves <palves@redhat.com>
6376 * solib-target.c (library_list_start_library): Don't xstrdup name.
6378 2019-01-10 Pedro Alves <palves@redhat.com>
6380 * mdebugread.c (parse_partial_symbols): Use
6381 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6383 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6385 * linux-fork.c (scoped_switch_fork_info)
6386 <~scoped_switch_fork_info>: Fix incorrect variable name.
6388 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6390 * linux-fork.c (scoped_switch_fork_info)
6391 <scoped_switch_fork_info>: Make explicit.
6392 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6394 2019-01-10 Tom Tromey <tom@tromey.com>
6396 * objfiles.h (objfile::reset_psymtabs): Update.
6397 * objfiles.c (objfile::objfile): Update.
6398 * psymtab.h (psymtab_storage::obstack): Update.
6399 (psymtab_storage::m_obstack): Use gdb::optional.
6400 (class psymtab_storage): Update comment. Remove objfile
6402 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6404 2019-01-10 Tom Tromey <tom@tromey.com>
6406 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6407 <free_psymtabs>: Now private.
6408 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6409 (allocate_psymtab): Use new method.
6411 2019-01-10 Tom Tromey <tom@tromey.com>
6413 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6414 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6415 * mdebugread.c (parse_partial_symbols): Use
6416 allocate_dependencies.
6417 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6418 allocate_dependencies.
6419 (process_psymtab_comp_unit_reader)
6420 (build_type_psymtab_dependencies): Likewise.
6421 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6423 2019-01-10 Tom Tromey <tom@tromey.com>
6425 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6426 PSYMBOL_SET_LANGUAGE.
6427 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6429 2019-01-10 Tom Tromey <tom@tromey.com>
6431 * psymtab.h (psymtab_storage::obstack): New method.
6432 <m_obstack>: Rename from obstack; now private.
6433 * psymtab.c (psymtab_storage): Update.
6434 * dwarf2read.c (create_addrmap_from_index)
6435 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6438 2019-01-10 Tom Tromey <tom@tromey.com>
6440 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6441 * objfiles.h (objfile::reset_psymtabs): New method.
6443 2019-01-10 Tom Tromey <tom@tromey.com>
6445 * symmisc.c (print_symbol_bcache_statistics): Update.
6446 (print_objfile_statistics): Update.
6447 * symfile.c (reread_symbols): Update.
6448 * psymtab.h (class psymtab_storage): New.
6449 * psymtab.c (psymtab_storage): New constructor.
6450 (~psymtab_storage): New destructor.
6451 (require_partial_symbols): Update.
6452 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6453 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6454 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6455 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6456 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6457 (start_psymtab_common, end_psymtab_common)
6458 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6459 (allocate_psymtab): Update.
6460 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6462 (dump_psymtab_addrmap, maintenance_print_psymbols)
6463 (maintenance_check_psymtabs): Update.
6464 (class objfile_psymtabs): Move to objfiles.h.
6465 * psympriv.h (discard_psymtab): Now inline.
6466 (psymtab_discarder::psymtab_discarder): Update.
6467 (psymtab_discarder::~psymtab_discarder): Update.
6468 (ALL_OBJFILE_PSYMTABS): Rewrite.
6469 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6470 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6472 <partial_symtabs>: New field.
6473 (class objfile_psymtabs): Move from psymtab.h. Update.
6474 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6476 (objfile::~objfile): Don't destroy psymbol_cache.
6477 * mdebugread.c (parse_partial_symbols): Update.
6478 * dwarf2read.c (create_addrmap_from_index)
6479 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6480 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6481 (add_partial_subprogram, dwarf2_ranges_read): Update.
6482 * dwarf-index-write.c (write_address_map)
6483 (write_one_signatured_type, recursively_write_psymbols)
6484 (class debug_names, class debug_names, write_psymtabs_to_index):
6487 2019-01-10 Tom Tromey <tom@tromey.com>
6489 * symtab.h (SYMBOL_SET_NAMES): Update.
6490 (symbol_set_names): Update.
6491 (MSYMBOL_SET_NAMES): Update.
6492 * symtab.c (symbol_set_names): Change argument to be an
6493 objfile_per_bfd_storage.
6494 * psymtab.c (add_psymbol_to_bcache): Update.
6495 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6497 2019-01-10 Tom Tromey <tom@tromey.com>
6499 * symtab.c (create_demangled_names_hash): Change argument to be an
6500 objfile_per_bfd_storage.
6501 (symbol_set_names): Update.
6503 2019-01-10 Tom Tromey <tom@tromey.com>
6505 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6507 * psymtab.c (init_psymbol_list): Do nothing if already called.
6508 * psympriv.h (init_psymbol_list): Add comment.
6509 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6511 * dbxread.c (dbx_symfile_read): Unconditionally call
6514 2019-01-10 Tom Tromey <tom@tromey.com>
6516 * xcoffread.c (scan_xcoff_symtab): Update.
6517 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6519 * mdebugread.c (parse_partial_symbols)
6520 (handle_psymbol_enumerators): Update.
6521 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6522 * dbxread.c (read_dbx_symtab): Update.
6523 * psympriv.h (psymbol_placement): New enum.
6524 (add_psymbol_to_list): Update.
6526 2019-01-10 Tom Tromey <tom@tromey.com>
6528 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6529 static_psymbols parameters.
6530 (scan_xcoff_symtab): Update.
6531 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6532 static_psymbols parameters.
6533 * psympriv.h (start_psymtab_common): Update.
6534 * mdebugread.c (parse_partial_symbols): Update.
6535 * dwarf2read.c (create_partial_symtab): Update.
6536 * dbxread.c (read_dbx_symtab): Update.
6537 (start_psymtab): Remove global_psymbols and static_psymbols
6540 2019-01-10 Tom Tromey <tom@tromey.com>
6542 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6543 * psymtab.c (allocate_psymtab): Add comment.
6544 * psympriv.h (allocate_psymtab): Add comment.
6545 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6547 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6549 2019-01-10 Tom Tromey <tom@tromey.com>
6551 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6553 * mipsread.c: Include mdebugread.h.
6554 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6556 * elfread.c: Include mdebugread.h.
6558 2019-01-09 Tom Tromey <tom@tromey.com>
6560 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6561 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6562 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6563 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6564 (psym_lookup_symbol, psym_find_last_source_symtab)
6565 (psym_forget_cached_source_info, psym_print_stats)
6566 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6567 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6568 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6569 (psym_find_compunit_symtab_by_address)
6570 (maintenance_print_psymbols, maintenance_info_psymtabs)
6571 (maintenance_check_psymtabs): Use ranged for.
6572 * psymtab.h (class objfile_psymtabs): New.
6573 (require_partial_symbols): Return objfile_psymtabs.
6574 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6576 2019-01-09 Tom Tromey <tom@tromey.com>
6578 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6579 (find_pc_mapped_section, list_overlays_command)
6580 (map_overlay_command, unmap_overlay_command)
6581 (simple_overlay_update): Use all_objfiles.
6582 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6583 * printcmd.c (info_symbol_command): Use all_objfiles.
6584 * objfiles.h (ALL_OBJSECTIONS): Remove.
6585 * maint.c (maintenance_translate_address): Use all_objfiles.
6586 * gcore.c (gcore_create_callback): Use all_objfiles.
6587 (objfile_find_memory_regions): Likewise.
6589 2019-01-09 Tom Tromey <tom@tromey.com>
6591 * symtab.c (find_line_symtab, info_sources_command)
6592 (make_source_files_completion_list): Use objfile_compunits.
6593 * source.c (select_source_symtab): Use objfile_compunits.
6594 * objfiles.h (struct objfile): Update comment.
6595 (ALL_OBJFILES): Remove.
6596 (ALL_FILETABS): Remove.
6597 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6600 2019-01-09 Tom Tromey <tom@tromey.com>
6602 * symmisc.c (print_objfile_statistics, dump_objfile)
6603 (maintenance_print_symbols): Use compunit_filetabs.
6604 * source.c (forget_cached_source_info_for_objfile): Use
6606 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6607 (ALL_FILETABS): Use compunit_filetabs.
6608 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6609 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6611 2019-01-09 Tom Tromey <tom@tromey.com>
6613 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6614 (compunit_filetabs): New.
6615 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6617 (info_sources_command, make_source_files_completion_list): Remove
6619 * symmisc.c (print_objfile_statistics, dump_objfile)
6620 (maintenance_print_symbols): Remove declaration.
6621 (maintenance_info_symtabs): Use compunit_filetabs.
6622 (maintenance_info_line_tables): Likewise.
6623 * source.c (select_source_symtab): Change local variable name.
6624 (forget_cached_source_info_for_objfile): Remove declaration.
6625 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6626 * objfiles.c (objfile_relocate1): Remove declaration.
6627 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6629 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6630 * coffread.c (coff_symtab_read): Remove declaration.
6631 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6634 2019-01-09 Tom Tromey <tom@tromey.com>
6636 * symtab.c (lookup_objfile_from_block)
6637 (find_pc_sect_compunit_symtab, search_symbols)
6638 (default_collect_symbol_completion_matches_break_on): Use
6640 * objfiles.h (ALL_COMPUNITS): Remove.
6641 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6642 * cp-support.c (add_symbol_overload_list_qualified): Use
6644 * ada-lang.c (ada_collect_symbol_completion_matches)
6645 (ada_add_global_exceptions): Use objfile_compunits.
6647 2019-01-09 Tom Tromey <tom@tromey.com>
6649 * source.c (select_source_symtab)
6650 (forget_cached_source_info_for_objfile): Remove declaration.
6651 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6653 * maint.c (count_symtabs_and_blocks): Remove declaration.
6654 * cp-support.c (add_symbol_overload_list_qualified): Remove
6656 * coffread.c (coff_symtab_read): Remove declaration.
6657 * symtab.c (lookup_symbol_in_objfile_symtabs)
6658 (basic_lookup_transparent_type_1): Use objfile_compunits.
6659 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6660 (info_sources_command, search_symbols)
6661 (default_collect_symbol_completion_matches_break_on)
6662 (make_source_files_completion_list): Remove declaration.
6663 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6664 (ada_collect_symbol_completion_matches)
6665 (ada_add_global_exceptions): Remove declaration.
6666 * linespec.c (iterate_over_all_matching_symtabs): Use
6668 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6669 (class objfile_compunits): New.
6670 (ALL_COMPUNITS): Use objfile_compunits.
6671 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6672 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6674 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6676 2019-01-09 Tom Tromey <tom@tromey.com>
6678 * symtab.c (search_symbols)
6679 (default_collect_symbol_completion_matches_break_on): Use
6681 * ada-lang.c (ada_lookup_simple_minsym)
6682 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6683 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6684 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6686 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6687 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6688 * objc-lang.c (find_methods): Use objfile_msymbols.
6689 (info_selectors_command, info_classes_command): Likewise.
6690 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6691 * objfiles.h (class objfile_msymbols): New.
6692 (ALL_OBJFILE_MSYMBOLS): Remove.
6693 (ALL_MSYMBOLS): Remove.
6695 2019-01-09 Tom Tromey <tom@tromey.com>
6697 * common/next-iterator.h (next_adapter): Add Iterator template
6699 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6700 (class all_objfiles_safe): New.
6701 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6702 * objfiles.c (put_objfile_before): Update comment.
6703 (add_separate_debug_objfile): Likewise.
6704 (free_all_objfiles): Use all_objfiles_safe.
6705 (objfile_purge_solibs): Likewise.
6707 2019-01-09 Tom Tromey <tom@tromey.com>
6709 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6710 (expand_symtab_containing_pc, lookup_static_symbol)
6711 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6712 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6714 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6715 * breakpoint.c (create_overlay_event_breakpoint)
6716 (create_longjmp_master_breakpoint)
6717 (create_std_terminate_master_breakpoint)
6718 (create_exception_master_breakpoint): Use all_objfiles.
6719 * linux-thread-db.c (try_thread_db_load_from_pdir)
6720 (has_libpthread): Use all_objfiles.
6721 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6722 * linespec.c (iterate_over_all_matching_symtabs)
6723 (search_minsyms_for_name): Use all_objfiles.
6724 * maint.c (maintenance_info_sections): Use all_objfiles.
6725 * main.c (captured_main_1): Use all_objfiles.
6726 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6727 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6728 * guile/scm-pretty-print.c
6729 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6730 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6731 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6732 (maintenance_print_msymbols): Use all_objfiles.
6733 * source.c (select_source_symtab): Use all_objfiles.
6734 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6735 * symfile.c (remove_symbol_file_command)
6736 (expand_symtabs_matching, map_symbol_filenames): Use
6738 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6740 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6741 * objc-lang.c (find_methods): Use all_objfiles.
6742 * objfiles.c (have_partial_symbols, have_full_symbols)
6743 (have_minimal_symbols, qsort_cmp)
6744 (default_iterate_over_objfiles_in_search_order): Use
6746 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6747 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6748 (maintenance_check_psymtabs): Use all_objfiles.
6749 (ALL_PSYMTABS): Remove.
6750 * compile/compile-object-run.c (do_module_cleanup): Use
6752 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6753 * cp-support.c (add_symbol_overload_list_qualified): Use
6755 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6757 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6758 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6760 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6761 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6762 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6764 * solib.c (solib_read_symbols): Use all_objfiles
6766 2019-01-09 Tom Tromey <tom@tromey.com>
6768 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6769 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6771 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6772 * symmisc.c (print_symbol_bcache_statistics)
6773 (print_objfile_statistics, maintenance_print_objfiles)
6774 (maintenance_info_symtabs, maintenance_check_symtabs)
6775 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6777 * source.c (forget_cached_source_info): Use all_objfiles.
6778 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6779 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6780 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6781 * objfiles.c (update_section_map): Use all_objfiles.
6782 (shared_objfile_contains_address_p): Likewise.
6783 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6784 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6786 2019-01-09 Tom Tromey <tom@tromey.com>
6788 * common/next-iterator.h: New file.
6789 * objfiles.h (class all_objfiles): New.
6790 (struct objfile_iterator): New.
6792 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6794 * NEWS: Move the description of the changed "frame", "select-frame",
6795 and "info frame" commands to the Changed commands section.
6797 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6799 * gdbtypes.c (check_stub_method_group): Remove handling of old
6801 * linespec.c (find_methods): Likewise.
6802 * stabsread.c (read_member_functions): Likewise.
6803 * valops.c (search_struct_method): Likewise.
6804 (value_struct_elt_for_reference): Likewise.
6805 * NEWS: Mention this change.
6807 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6809 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6811 * source.c (print_source_lines_base): Update line number check.
6812 (print_source_lines): New function.
6813 (source_lines_range::source_lines_range): New function.
6814 * source.h (class source_lines_range): New class.
6815 (print_source_lines): New declaration.
6817 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6819 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6821 2019-01-08 Tom Tromey <tom@tromey.com>
6822 Simon Marchi <simon.marchi@ericsson.com>
6825 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6826 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6827 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6828 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6829 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6830 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6832 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6834 * source.c (select_source_symtab): Move header comment to
6835 declaration in source.h.
6836 (forget_cached_source_info_for_objfile): Likewise.
6837 (forget_cached_source_info): Likewise.
6838 (identify_source_line): Likewise.
6839 * source.h (identify_source_line): Move declaration from symtab.h
6840 and add comment from source.c
6841 (print_source_lines): Likewise.
6842 (forget_cached_source_info_for_objfile): Likewise.
6843 (forget_cached_source_info): Likewise.
6844 (select_source_symtab): Likewise.
6845 (enum print_source_lines_flag): Move definition from symtab.h.
6846 * symtab.h (identify_source_line): Move declaration to source.h.
6847 (print_source_lines): Likewise.
6848 (forget_cached_source_info_for_objfile): Likewise.
6849 (forget_cached_source_info): Likewise.
6850 (select_source_symtab): Likewise.
6851 (enum print_source_lines_flag): Move definition to source.h.
6852 * tui/tui-hooks.c: Add 'source.h' include.
6854 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6856 * source.c (print_source_lines_base): Handle requests to print
6857 reverse line number sequences, and guard against empty lines
6860 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6862 * source.c (print_source_lines_base): Fix skip of '\r' if next
6865 2019-01-06 Tom Tromey <tom@tromey.com>
6867 * c-exp.y (struct c_parse_state) <macro_original_text,
6868 expansion_obstack>: New member.
6869 (macro_original_text, expansion_obstack): Remove globals.
6870 (scan_macro_expansion, scanning_macro_expansion)
6871 (finished_macro_expansion): Update.
6872 (scan_macro_cleanup): Remove.
6873 (yylex, c_parse): Update.
6875 2019-01-06 Tom Tromey <tom@tromey.com>
6877 * c-exp.y (struct c_parse_state) <strings>: New member.
6878 (operator_stoken): Update.
6880 2019-01-06 Tom Tromey <tom@tromey.com>
6882 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6883 (union type_stack_elt) <typelist_val>: Now a pointer to
6885 (type_stack_cleanup): Don't declare.
6886 (push_typelist): Update.
6887 * parse.c (pop_typelist): Return a std::vector.
6888 (push_typelist): Take a std::vector.
6889 (follow_types): Update. Do not free args.
6890 (type_stack_cleanup): Remove.
6891 * c-exp.y (struct c_parse_state): New.
6892 (cpstate): New global.
6893 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6894 (nonempty_typelist): Update.
6895 (func_mod): Create a new vector.
6896 (c_parse): Create a c_parse_state.
6897 (check_parameter_typelist): Do not delete params.
6898 (function_method): Update. Do not delete type_list.
6900 2019-01-06 Tom Tromey <tom@tromey.com>
6903 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6905 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6906 (print_return_value): Likewise.
6908 2019-01-05 Tom Tromey <tom@tromey.com>
6910 * contrib/cleanup_check.py: Remove.
6911 * contrib/gcc-with-excheck: Remove.
6912 * contrib/exsummary.py: Remove.
6913 * contrib/excheck.py: Remove.
6915 2019-01-05 Joel Brobecker <brobecker@adacore.com>
6917 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6918 NULL. Initialize tpprev to NULL instead of assigning it
6919 to NULL on the next statement.
6920 * windows-nat.c (windows_delete_thread): Remove check for
6921 main_thread_id before printing thread exit notifications.
6922 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6923 Remove thread ID check against main_thread_id.
6924 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6925 windows_delete_thread.
6926 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6928 2019-01-04 Tom Tromey <tom@tromey.com>
6930 * compile/compile.c (_initialize_compile): Use upper case for
6931 metasyntactic variables.
6932 * symmisc.c (_initialize_symmisc): Use upper case for
6933 metasyntactic variables.
6934 * psymtab.c (_initialize_psymtab): Use upper case for
6935 metasyntactic variables.
6936 * demangle.c (demangle_command): Use upper case for metasyntactic
6938 (_initialize_demangler): Likewise.
6939 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6942 2019-01-03 Tom Tromey <tom@tromey.com>
6944 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6946 2019-01-03 Tom Tromey <tom@tromey.com>
6948 * python/py-symtab.c (salpy_str): Update.
6949 (struct salpy_sal_object) <symtab>: Now a PyObject.
6950 (salpy_dealloc): Update.
6951 (del_objfile_sal): Use gdbpy_ref.
6953 2019-01-03 Tom Tromey <tom@tromey.com>
6955 * python/py-type.c (convert_field): Use new_reference. Return
6957 (make_fielditem): Return gdbpy_ref.
6958 (typy_fields): Update.
6959 (typy_getitem): Update.
6960 (field_name): Return gdbpy_ref. Use new_reference.
6961 (typy_iterator_iternext): Update.
6963 2019-01-03 Tom Tromey <tom@tromey.com>
6965 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6967 2019-01-03 Tom Tromey <tom@tromey.com>
6969 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6970 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6971 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6972 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6973 (pspy_set_type_printers): Likewise.
6974 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6975 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6976 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6977 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6978 (objfpy_set_type_printers): Likewise.
6980 2019-01-03 Tom Tromey <tom@tromey.com>
6982 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6983 (gdbpy_print_stack): Use gdbpy_err_fetch.
6984 * python/python-internal.h (class gdbpy_err_fetch): New class.
6985 (class gdbpy_enter) <m_error_type, m_error_value,
6986 m_error_traceback>: Remove.
6987 <m_error>: New member.
6988 (gdbpy_exception_to_string): Don't declare.
6989 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6990 * python/py-value.c (convert_value_from_python): Use
6992 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6993 gdbpy_exception_to_string.
6994 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6995 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6998 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7000 * linux-nat.c (delete_lwp_cleanup): Delete.
7001 (struct lwp_deleter): New struct.
7002 (lwp_info_up): New typedef.
7003 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7006 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7008 * linux-fork.c (class scoped_switch_fork_info): New class.
7009 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7011 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7013 * valops.c (find_overload_match): Remove use of null_cleanup, and
7014 calls to do_cleanups.
7016 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7018 * compile/compile-cplus-types.c
7019 (compile_cplus_instance::decl_name): Handle changes to
7021 * cp-support.c (cp_func_name): Update header comment, update
7023 * cp-support.h (cp_func_name): Update return type in declaration.
7024 * valops.c (find_overload_match): Move temp_func local to top
7025 level of function and change its type. Use temp_func to hold and
7026 delete temporary string obtained from cp_func_name.
7028 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7030 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7031 gdb::char_vector, remove cleanup, and update uses of `msg`.
7033 2019-01-03 Jim Wilson <jimw@sifive.com>
7035 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7037 2019-01-02 Tom Tromey <tom@tromey.com>
7039 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7040 (tdesc_parse_xml): Remove cleanups.
7041 * target-descriptions.h (make_cleanup_free_target_description):
7043 (target_desc_deleter): New struct.
7044 (target_desc_up): New typedef.
7045 * target-descriptions.c (target_desc_deleter::operator()): Rename
7046 from free_target_description.
7047 (make_cleanup_free_target_description): Remove.
7049 2019-01-02 Tom Tromey <tom@tromey.com>
7051 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7052 constructor, destructor.
7053 (linespec_parser): Remove typedef.
7054 (~linespec_parser): Rename from linespec_parser_delete.
7055 (linespec_lex_to_end, linespec_complete_label)
7056 (linespec_complete): Update.
7057 (decode_line_full): Remove cleanups.
7058 (decode_line_1): Update.
7060 2019-01-02 Tom Tromey <tom@tromey.com>
7062 * python/python-internal.h (inferior_to_inferior_object): Change
7064 * python/py-exitedevent.c (create_exited_event_object): Update.
7065 * python/py-inferior.c (inferior_to_inferior_object): Return
7067 (python_new_inferior, python_inferior_deleted)
7068 (thread_to_thread_object, delete_thread_object)
7069 (build_inferior_list, gdbpy_selected_inferior): Update.
7070 * python/py-infthread.c (create_thread_object): Update. Also fail
7071 if inferior_to_inferior_object fails.
7073 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7075 * inferior.h (class inferior) <displaced_step_state>: New field.
7076 * infrun.h (struct displaced_step_state): Move here from
7077 infrun.c. Initialize fields, add constructor.
7078 <inf>: Remove field.
7079 <reset>: New method.
7080 * infrun.c (struct displaced_step_inferior_state): Move to
7082 (displaced_step_inferior_states): Remove.
7083 (get_displaced_stepping_state): Adust.
7084 (displaced_step_in_progress_any_inferior): Adjust.
7085 (displaced_step_in_progress_thread): Adjust.
7086 (displaced_step_in_progress): Adjust.
7087 (add_displaced_stepping_state): Remove.
7088 (get_displaced_step_closure_by_addr): Adjust.
7089 (remove_displaced_stepping_state): Remove.
7090 (infrun_inferior_exit): Call displaced_step_state.reset.
7091 (use_displaced_stepping): Don't check for NULL.
7092 (displaced_step_prepare_throw): Call
7093 get_displaced_stepping_state.
7094 (displaced_step_fixup): Don't check for NULL.
7095 (prepare_for_detach): Don't check for NULL.
7097 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7099 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7100 in case of call that did not complete.
7102 2019-01-02 Andrey Utkin <autkin@undo.io>
7104 * symfile.c (find_separate_debug_file): Fix search of debug files for
7107 2019-01-02 Tom Tromey <tom@tromey.com>
7109 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7111 * python/py-frame.c (frapy_older): Remove cast.
7112 (frapy_newer): Likewise.
7113 * python/py-breakpoint.c (local_setattro): Remove cast.
7114 * python/py-arch.c (archpy_name): Remove local variable.
7115 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7117 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7119 * unittests/basic_string_view/element_access/char/empty.cc:
7120 Fix year range in copyright header.
7122 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7124 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7126 <operator==>: Update with for removed field.
7128 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7129 <isa_features>: ...this.
7130 <abi_features>: New field.
7131 (riscv_isa_flen): Update comment.
7132 (riscv_abi_xlen): New declaration.
7133 (riscv_abi_flen): New declaration.
7134 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7136 (riscv_abi_xlen): New function.
7137 (riscv_isa_flen): Update to get answer from isa_features.
7138 (riscv_abi_flen): New function.
7139 (riscv_has_fp_abi): Update to get answer from abi_features.
7140 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7142 (riscv_call_info) <xlen, flen>: Update comment.
7143 (riscv_call_arg_struct): Remove invalid assertions
7144 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7146 (riscv_gdbarch_init): Gather isa features and abi features
7147 separately, ensure both match on the gdbarch when reusing an old
7148 gdbarch. Relax an error check to allow 32-bit abi float to run on
7149 a target with 64-bit float hardware.
7151 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7153 * source.c (search_command_helper): Stop reverse search
7154 when line 1 has been searched.
7156 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7158 * record-full.c (record_full_base_target::close): Rewrite
7159 record_full_core_buf_list free logic.
7161 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7163 * break-catch-syscall.c (print_one_catch_syscall): xfree
7166 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7168 * top.c (print_gdb_version): Update Copyright year in version
7171 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7173 Update copyright year range in all GDB files.
7175 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7177 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7179 For older changes see ChangeLog-2018.
7185 version-control: never