1 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3 * valops.c (value_slice): Check for not allocated or not
6 2019-06-10 Tom de Vries <tdevries@suse.de>
9 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
10 sure an empty slot (defined by a 32-bit zero pair) is recognized as
13 2019-06-10 Tom de Vries <tdevries@suse.de>
16 * linespec.c (linespec_lexer_lex_string): Remove incorrect
17 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
19 2019-06-10 Tom de Vries <tdevries@suse.de>
22 * symtab.c (struct demangled_name_entry): Add language field.
23 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
24 static minimal symbol". Set and use language field.
26 2019-06-10 Tom Tromey <tromey@adacore.com>
28 * ada-lang.c (_initialize_ada_language): Update help text.
30 2019-06-10 Tom Tromey <tromey@adacore.com>
32 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
34 * guile/guile.c (handle_boot_error): Don't end warning with a
36 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
37 warning with a newline.
38 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
40 (s12z_frame_cache): Likewise.
41 * dwarf-index-cache.c (index_cache::store): Don't end warning with
43 * solib-svr4.c (disable_probes_interface): Don't end warning with
45 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
47 * python/python.c (do_finish_initialization): Don't end warning
50 2019-06-10 Tom Tromey <tom@tromey.com>
52 * python/py-breakpoint.c (gdbpy_breakpoint_created)
53 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
56 2019-06-10 Tom Tromey <tromey@adacore.com>
58 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
60 (elf_new_init): Don't call stabsread_new_init.
61 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
62 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
63 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
65 2019-06-10 Tom de Vries <tdevries@suse.de>
69 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
71 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
73 * source.c (find_and_open_source): Also rewrite relative file
76 2019-04-26 Amos Bird <amosbird@gmail.com>
78 * annotate.c (annotate_thread_exited): Add "thread-exited"
81 2019-06-06 Tom Tromey <tromey@adacore.com>
83 * maint.h (class scoped_command_stats): Use
84 DISABLE_COPY_AND_ASSIGN.
85 <print_time>: New method.
86 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
88 (scoped_command_stats::print_time): New method.
90 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
92 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
93 instructions of lengths 6 or 8 bytes.
95 2019-06-04 Pedro Alves <palves@redhat.com>
97 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
99 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
100 * breakpoint.c (condition_completer): Likewise.
101 * cli/cli-dump.c (scan_expression): Likewise.
102 * common/filestuff.c (mkdir_recursive): Likewise.
103 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
104 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
105 (gdb_abspath): Likewise.
106 * compile/compile-cplus-types.c
107 (compile_cplus_instance::decl_name): Likewise.
108 * completer.c (complete_explicit_location):
109 (signal_completer, reg_or_group_completer_1): Likewise.
110 * cp-support.c (cp_remove_params_if_any): Likewise.
111 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
112 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
113 * infcmd.c (strip_bg_char): Likewise.
114 * linespec.c (copy_token_string): Likewise.
115 * mi/mi-main.c (output_cores): Likewise.
116 * psymtab.c (psymtab_search_name):
117 * symfile.c (test_set_ext_lang_command): Likewise.
118 * target.c (target_fileio_read_stralloc): Likewise.
119 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
120 * value.c (complete_internalvar): Likewise.
122 2019-06-04 Christian Biesinger <cbiesinger@google.com>
124 Add objfile property to gdb.Type.
125 * NEWS: Mention Python API addition.
126 * python/py-type.c (typy_get_objfile): New method.
128 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
130 * NEWS: Mention the new set|show style [title|highlight].
131 Mention changes to "show style", "help" and "apropos".
133 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
135 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
136 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
137 instead of print_help_for_command.
138 (print_doc_of_command): New function.
139 (help_list): Add 'apropos -v word' suggestion.
140 (print_help_for_command): Style the command name using title style.
141 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
142 (_initialize_cli_cmds): Describe -v in apropos_command help.
144 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
146 * cli/cli-style.h (cli_style_option): Add name in constructor,
147 add m_name class member, add constructor with intensity,
148 add name class function.
149 (cli_style_option::add_setshow_commands): Remove name argument.
150 (highlight_style, title_style): New styles.
151 * cli/cli-style.c (do_show): New function that shows a style
152 characteristic styling the style name with itself.
153 (set_style_name): New function.
154 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
155 Update all callers according to the changes in cli/cli-style.h.
156 * utils.h (fputs_highlighted): New function.
157 * utils.c (fputs_highlighted): Likewise.
159 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
161 * NEWS: Mention new pipe command and new convenience variables.
163 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
165 * cli/cli-cmds.c (pipe_command): New function.
166 (_initialize_cli_cmds): Call add_com for pipe_command.
167 Define | as an alias for pipe.
168 (exit_status_set_internal_vars): New function.
169 (shell_escape): Call exit_status_set_internal_vars.
170 cli/cli-decode.c (find_command_name_length): Recognize | as
171 a single character command.
173 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
175 * gdbcmd.h (execute_command_to_ui_file): New declaration.
176 top.c (execute_command_to_ui_file): New function, mostly a copy
177 of execute_command_to_string.
178 (execute_command_to_string): Implement by calling
179 execute_command_to_ui_file.
181 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
183 * top.h (saved_command_line): Remove declaration.
184 * top.c (previous_saved_command_line, previous_repeat_arguments):
186 (saved_command_line): Make static, define together with other
188 (dont_repeat): Clear repeat_arguments.
189 (repeat_previous, get_saved_command_line, save_command_line):
191 (gdb_init): Initialize saved_command_line
192 and previous_saved_command_line.
193 * main.c (captured_main_1): Remove saved_command_line initialization.
194 * event-top.c (handle_line_of_input): Update to use
195 the new 'repeat' related functions instead of direct access to
197 * command.h (repeat_previous, get_saved_command_line,
198 save_command_line): New declarations.
199 (dont_repeat): Add comment.
201 2019-05-30 Tom Tromey <tromey@adacore.com>
203 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
205 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
207 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
210 * completer.c (complete): Initialize variable word.
212 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
214 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
215 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
216 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
217 'body' is NULL to the outter 'if', protecting the '!is_define'
220 2019-05-29 Tom Tromey <tromey@adacore.com>
222 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
223 (dwarf_unknown): New function.
224 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
225 (dwarf_type_encoding_name): Use dwarf_unknown.
227 2019-05-29 Tom Tromey <tromey@adacore.com>
230 * cp-valprint.c (cp_print_value_fields): Call
231 cp_print_static_field inside "try".
233 2019-05-29 Tom Tromey <tromey@adacore.com>
235 * inflow.c (struct terminal_info): Add default operator=.
236 * configure: Rebuild.
237 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
238 -Wdeprecated-copy-dtor, -Wredundant-move.
240 2019-05-29 Tom Tromey <tromey@adacore.com>
243 * infcmd.c (print_return_value_1): Handle finish_print
245 (show_print_finish): New function.
246 (_initialize_infcmd): Add "set/show print finish" commands.
247 * valprint.c (user_print_options): Initialize new member.
248 * valprint.h (struct value_print_options) <finish_print>: New
251 2019-05-28 Tom Tromey <tromey@adacore.com>
253 * ada-lang.c (ada_remove_Xbn_suffix)
254 (find_old_style_renaming_symbol)
255 (parse_old_style_renaming): Remove.
256 (ada_find_renaming_symbol): Don't call
257 find_old_style_renaming_symbol.
258 (ada_is_renaming_symbol): Rename from
259 ada_find_renaming_symbol. Remove "block" parameter. Return
261 (ada_read_var_value): Update and simplify.
262 * ada-exp.y (write_var_or_type): Remove old code.
264 2019-05-28 Alan Hayward <alan.hayward@arm.com>
266 * event-top.c: Remove include comment.
267 * inflow.c (class scoped_ignore_sigttou): Move from here...
268 * inflow.h (class scoped_ignore_sigttou): ...to here.
269 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
270 * top.c: Remove include comment.
272 2019-05-27 Tom Tromey <tom@tromey.com>
276 2019-05-22 Tom Tromey <tromey@adacore.com>
278 * target.c (target_follow_exec): Constify parameter.
279 * target-delegates.c: Rebuild.
280 * remote.c (remote_target::follow_exec): Constify parameter.
281 * infrun.c (follow_exec): Constify parameter.
282 * target.h (struct target_ops) <follow_exec>: Constify parameter.
283 (target_follow_exec): Likewise.
285 2019-05-22 Alan Hayward <alan.hayward@arm.com>
287 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
288 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
290 2019-05-22 Alan Hayward <alan.hayward@arm.com>
292 * NEWS: Add debugredirect and testsuite sections.
294 2019-05-22 Simon Cook <simon.cook@embecosm.com>
296 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
297 target descriptions using exclusively floating point register name
300 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
303 * f-lang.c (build_fortran_types): Handle the case where
304 gdbarch_floatformat_for_type returns a nullptr.
306 2019-05-21 Tom de Vries <tdevries@suse.de>
309 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
311 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
314 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
316 * i386-tdep.c (i386_floatformat_for_type): Use
317 floatformats_ia64_quad for the 16-byte floating point component
318 within a fortran 32-byte complex number.
320 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
322 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
323 delete default constructor.
324 (find_partial_die): Update to return const struct.
325 (partial_die_parent_scope): Move variable declaration into scope
326 of its use and change its type to auto.
327 (guess_partial_die_structure_name): Likewise.
328 (partial_die_info::fixup): Likewise.
330 2019-05-17 Tom Tromey <tromey@adacore.com>
332 * source.c (find_and_open_source): Remove cast.
334 2019-05-17 Tom Tromey <tromey@adacore.com>
336 * annotate.c (annotate_source): Make "filename" const.
337 * annotate.h (annotate_source): Use const.
339 2019-05-17 Alan Hayward <alan.hayward@arm.com>
341 * disasm.c (set_disassembler_options): Send errors to stderr.
343 2019-05-17 Alan Hayward <alan.hayward@arm.com>
345 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
346 (cli_interp_base::set_logging): Check debug_redirect.
347 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
348 * cli/cli-logging.c (debug_redirect): Add static variable.
349 (pop_output_files): Add default param.
350 (handle_redirections): Print debug setting.
351 (show_logging_command): Likewise.
352 (_initialize_cli_logging): Add debugredirect command.
353 * interps.c (current_interp_set_logging): Add debug_redirect
355 * interps.h (set_logging): Add debug_redirect parameter.
356 (current_interp_set_logging): Likewise.
357 * mi/mi-common.h: Likewise.
358 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
360 2019-05-17 Alan Hayward <alan.hayward@arm.com>
361 Tom Tromey <tromey@adacore.com>
363 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
365 * cli/cli-interp.h (make_logging_output): Remove declaration.
366 * cli/cli-logging.c (make_logging_output): Remove function.
367 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
369 * ui-file.c (tee_file::tee_file): Remove bools.
370 (tee_file::~tee_file): Remove deletes.
371 * ui-file.h (tee_file): Remove bools.
373 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
375 * mi/mi-cmds.h (mi_cmd_complete): New function.
376 * mi/mi-main.c (mi_cmd_complete): Likewise.
377 * mi/mi-cmds.c: Define new MI command -complete.
378 * NEWS: Mention new -complete command.
380 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
382 * completer.h (complete): New function.
383 * completer.c (complete): Likewise.
384 * cli/cli-cmds.c: (complete_command): Update to use new complete()
385 function defined in completer.h.
387 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
389 * MAINTAINERS (Write After Approval): Add myself.
391 2019-05-17 Tom de Vries <tdevries@suse.de>
394 * dwarf2read.c (struct cu_partial_die_info): New struct.
395 (find_partial_die): Return cu_partial_die_info.
396 (partial_die_parent_scope, guess_partial_die_structure_name)
397 (partial_die_info::fixup): Handle new return type of find_partial_die.
399 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
401 * stap-probe.c (stap_parse_register_operand): Make "regname" an
402 "std::string", simplifying the algorithm.
404 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
406 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
407 (stap_static_probe_ops::get_probes): Likewise.
409 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
411 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
413 (stap_parse_single_operand): Join checks for
414 "gdbarch_stap_parse_special_token_p" and
415 "gdbarch_stap_parse_special_token" in the same "if" statement.
416 Invert check when verifying for operation on register
419 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
421 * stap-probe.c (stap_get_opcode): Update comment.
422 (stap_get_expected_argument_type): Likewise.
423 (handle_stap_probe): Likewise.
425 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
427 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
428 return type to 'bool'. Adjust comment. Use 'bool' when
430 (i386_stap_parse_special_token_three_arg_disp): Likewise.
431 * stap-probe.c (stap_parse_argument_1): Likewise.
432 (stap_is_operator): Likewise.
433 (stap_is_generic_prefix): Likewise.
434 (stap_is_register_prefix): Likewise.
435 (stap_is_register_indirection_prefix): Likewise.
436 (stap_is_integer_prefix): Likewise.
437 (stap_generic_check_suffix): Likewise.
438 (stap_check_integer_suffix): Likewise.
439 (stap_check_register_suffix): Likewise.
440 (stap_check_register_indirection_suffix): Likewise.
441 (stap_parse_register_operand): Likewise.
442 (stap_parse_single_operand): Likewise.
443 (stap_parse_argument_1): Likewise.
444 (stap_probe::get_argument_count): Likewise.
445 (stap_is_operator): Likewise.
447 2019-05-16 Tom Tromey <tromey@adacore.com>
449 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
452 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
454 * linux-thread-db.c (try_thread_db_load_1): Change return type
456 (try_thread_db_load): Likewise.
457 (try_thread_db_load_from_pdir_1): Likewise.
458 (try_thread_db_load_from_pdir): Likewise.
459 (try_thread_db_load_from_sdir): Likewise.
460 (try_thread_db_load_from_dir): Likewise.
461 (thread_db_load_search): Likewise.
462 (has_libpthread): Likewise.
463 (thread_db_load): Likewise.
465 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
467 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
468 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
469 NULL, and complain/return if that's the case.
471 2019-05-15 John Darrington <john@darrington.wattle.id.au>
473 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
474 (advance, posn, abstract_read_memory): New functions.
475 [struct mem_read_abstraction]: New struct.
476 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
478 2019-05-14 Tom Tromey <tromey@adacore.com>
480 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
481 value is not lval_memory.
483 2019-05-14 Tom Tromey <tromey@adacore.com>
485 * solib.c (info_sharedlibrary_command): Style the file name.
487 2019-05-14 Alan Hayward <alan.hayward@arm.com>
489 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
490 (aarch64_vnv_type): Likewise.
491 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
492 * common/tdesc.c: Likewise.
493 * common/tdesc.h (enum tdesc_type_kind): Likewise.
494 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
495 * features/aarch64-fpu.xml: Add ieee half view.
496 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
497 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
498 * gdbtypes.h (struct builtin_type): Likewise.
499 (struct objfile_type): Likewise.
501 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
503 * language.c (language_sniff_from_mangled_name): Fix "langauge"
505 * location.h (string_to_event_location): Likewise.
507 2019-05-11 Joel Brobecker <brobecker@adacore.com>
511 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
513 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
514 New variable declaration.
515 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
517 (print_one_breakpoint): Use ui_out::test_flags and new global
518 variable to compute use_fixed_output.
519 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
521 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
522 (mi_multi_location_breakpoint_output_fixed): Remove.
523 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
525 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
526 fix_multi_location_breakpoint_output flag if version >= 3.
527 * ui-out.h (enum ui_out_flag)
528 <fix_multi_location_breakpoint_output>: New enumerator.
530 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
532 * contrib/cc-with-tweaks.sh: Validate dwz's work.
534 2019-05-10 Tom Tromey <tromey@adacore.com>
536 * ada-lang.c (catch_ada_completer): New function.
537 (_initialize_ada_language): Use it.
539 2019-05-10 Tom Tromey <tromey@adacore.com>
541 * thread.c (print_thread_info): Make "requested_threads" const.
542 * gdbthread.h (print_thread_info): Make "requested_threads"
544 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
545 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
547 2019-05-08 Tom Tromey <tom@tromey.com>
549 * gdbtypes.c (objfile_type_data): Change type.
550 (objfile_type, _initialize_gdbtypes): Update.
552 2019-05-08 Tom Tromey <tom@tromey.com>
554 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
555 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
556 (_initialize_dwarf2_frame): Update.
558 2019-05-08 Tom Tromey <tom@tromey.com>
560 * objc-lang.c (objc_objfile_data): Change type.
561 (find_methods): Update.
562 (_initialize_objc_lang): Remove.
564 2019-05-08 Tom Tromey <tom@tromey.com>
566 * stabsread.c (rs6000_builtin_type_data): Change type.
567 (rs6000_builtin_type, _initialize_stabsread): Update.
569 2019-05-08 Tom Tromey <tom@tromey.com>
571 * mips-tdep.c (mips_pdr_data): Remove.
572 (_initialize_mips_tdep): Update.
574 2019-05-08 Tom Tromey <tom@tromey.com>
576 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
577 (hppa_init_objfile_priv_data, read_unwind_info)
578 (find_unwind_entry, _initialize_hppa_tdep): Update.
580 2019-05-08 Tom Tromey <tom@tromey.com>
582 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
583 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
585 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
587 2019-05-08 Tom Tromey <tom@tromey.com>
589 * mdebugread.c (basic_type_data): Change type.
590 (basic_type, _initialize_mdebugread): Update.
592 2019-05-08 Tom Tromey <tom@tromey.com>
594 * common/gdb_unique_ptr.h (struct noop_deleter): New.
596 2019-05-08 Tom Tromey <tom@tromey.com>
598 * nto-tdep.c (nto_inferior_data_reg): Change type.
599 (nto_inferior_data): Update.
600 (nto_inferior_data_cleanup, nto_new_inferior_data)
601 (_initialize_nto_tdep): Remove.
602 * nto-tdep.h (struct nto_inferior_data): Add initializers.
604 2019-05-08 Tom Tromey <tom@tromey.com>
606 * ada-lang.c (struct ada_inferior_data): Add initializers.
607 (ada_inferior_data): Change type.
608 (ada_inferior_data_cleanup): Remove.
609 (get_ada_inferior_data, ada_inferior_exit)
610 (struct ada_pspace_data): Add initializers, destructor.
611 (ada_pspace_data_handle): Change type.
612 (get_ada_pspace_data): Update.
613 (ada_pspace_data_cleanup): Remove.
615 2019-05-08 Tom Tromey <tom@tromey.com>
617 * coffread.c (struct coff_symfile_info): Add initializers.
618 (coff_objfile_data_key): Move lower. Change type.
619 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
621 (coff_free_info): Remove.
623 2019-05-08 Tom Tromey <tom@tromey.com>
625 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
626 (fbsd_pspace_data_handle): Move lower. Change type.
627 (get_fbsd_pspace_data): Update.
628 (fbsd_pspace_data_cleanup): Remove.
629 (_initialize_fbsd_tdep): Update.
631 2019-05-08 Tom Tromey <tom@tromey.com>
633 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
634 (get_ada_tasks_pspace_data): Update.
635 (ada_tasks_pspace_data_cleanup): Remove.
636 (_initialize_tasks): Update.
637 (ada_tasks_inferior_data_handle): Change type.
638 (get_ada_tasks_inferior_data): Update.
639 (ada_tasks_inferior_data_cleanup): Remove.
640 (struct ada_tasks_pspace_data): Add initializers.
642 2019-05-08 Tom Tromey <tom@tromey.com>
644 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
645 * symfile-debug.c (debug_sym_get_probes): Change type.
646 * stap-probe.c (handle_stap_probe):
647 (stap_static_probe_ops::get_probes): Change type.
648 * probe.h (class static_probe_ops) <get_probes>: Change type.
649 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
650 (parse_probes_in_pspace): Update.
651 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
653 (any_static_probe_ops::get_probes): Change type.
654 * elfread.c (elfread_data): New typedef.
655 (probe_key): Change type.
656 (elf_get_probes): Likewise. Update.
657 (probe_key_free): Remove.
658 (_initialize_elfread): Update.
659 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
661 (dtrace_process_dof_probe, dtrace_process_dof)
662 (dtrace_static_probe_ops::get_probe): Change type.
664 2019-05-08 Tom Tromey <tom@tromey.com>
666 * xcoffread.c (struct xcoff_symfile_info): Rename from
667 coff_symfile_info. Add initializers.
668 (xcoff_objfile_data_key): Move lower. Change type.
669 (XCOFF_DATA): Rewrite.
670 (xcoff_free_info): Remove.
671 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
672 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
673 (xcoff_initial_scan): Update.
675 2019-05-08 Tom Tromey <tom@tromey.com>
677 * solib-svr4.c (struct svr4_info): Add initializers and
679 <probes_table>: Now an htab_up.
680 (solib_svr4_pspace_data): Change type.
681 (free_probes_table): Simplify.
682 (~svr4_info): Rename from svr4_pspace_data_cleanup.
683 (get_svr4_info, probes_table_htab_remove_objfile_probes)
684 (probes_table_remove_objfile_probes, register_solib_event_probe)
685 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
686 (_initialize_svr4_solib): Update.
688 2019-05-08 Tom Tromey <tom@tromey.com>
690 * remote.c (remote_pspace_data): Change type.
691 (remote_pspace_data_cleanup): Remove.
692 (get_remote_exec_file, set_pspace_remote_exec_file)
693 (_initialize_remote): Update.
695 2019-05-08 Tom Tromey <tom@tromey.com>
697 * breakpoint.c (breakpoint_objfile_key): Change type.
698 (get_breakpoint_objfile_data): Update.
699 (free_breakpoint_objfile_data): Remove.
700 (_initialize_breakpoint): Update.
702 2019-05-08 Tom Tromey <tom@tromey.com>
704 * linux-tdep.c (struct linux_info): Add initializers.
705 (linux_inferior_data): Move. Change type.
706 (invalidate_linux_cache_inf): Update.
707 (linux_inferior_data_cleanup): Remove.
708 (get_linux_inferior_data, _initialize_linux_tdep): Update.
710 2019-05-08 Tom Tromey <tom@tromey.com>
712 * auxv.c (auxv_inferior_data): Move. Change type.
713 (auxv_inferior_data_cleanup): Remove.
714 (invalidate_auxv_cache_inf): Rewrite.
715 (get_auxv_inferior_data, _initialize_auxv): Update.
717 2019-05-08 Tom Tromey <tom@tromey.com>
719 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
720 (symfile_debug_objfile_data_key): Change type.
721 (symfile_debug_installed, debug_qf_has_symbols)
722 (debug_qf_find_last_source_symtab)
723 (debug_qf_forget_cached_source_info)
724 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
725 (debug_qf_print_stats, debug_qf_dump)
726 (debug_qf_expand_symtabs_for_function)
727 (debug_qf_expand_all_symtabs)
728 (debug_qf_expand_symtabs_with_fullname)
729 (debug_qf_map_matching_symbols)
730 (debug_qf_expand_symtabs_matching)
731 (debug_qf_find_pc_sect_compunit_symtab)
732 (debug_qf_map_symbol_filenames)
733 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
734 (debug_sym_new_init, debug_sym_init, debug_sym_read)
735 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
736 (debug_sym_read_linetable, debug_sym_relocate): Update.
737 (symfile_debug_free_objfile): Remove.
738 (install_symfile_debug_logging, _initialize_symfile_debug):
741 2019-05-08 Tom Tromey <tom@tromey.com>
743 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
745 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
746 (get_dwarf2_per_objfile): Update.
747 (set_dwarf2_per_objfile): Remove.
748 (dwarf2_has_info, dwarf2_get_section_info): Update.
749 (dwarf2_free_objfile): Remove.
750 (_initialize_dwarf2_read): Update.
752 2019-05-08 Tom Tromey <tom@tromey.com>
754 * auto-load.c (struct auto_load_pspace_info): Add destructor and
756 <unsupported_script_warning_printed,
757 script_not_found_warning_printed>: Now bool.
758 (auto_load_pspace_data): Change type.
759 (~auto_load_pspace_info): Rename from
760 auto_load_pspace_data_cleanup.
761 (get_auto_load_pspace_data, init_loaded_scripts_info)
762 (clear_section_scripts, maybe_print_unsupported_script_warning)
763 (maybe_print_script_not_found_warning, _initialize_auto_load):
766 2019-05-08 Tom Tromey <tom@tromey.com>
768 * objfiles.c (objfile_pspace_info): Add destructor and
770 (objfiles_pspace_data): Change type.
771 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
772 (get_objfile_pspace_data): Update.
773 (objfiles_bfd_data): Change type.
774 (get_objfile_bfd_data): Update.
775 (objfile_bfd_data_free, _initialize_objfiles): Remove.
777 2019-05-08 Tom Tromey <tom@tromey.com>
779 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
781 (get_catch_syscall_inferior_data): Update.
782 (catch_syscall_inferior_data_cleanup): Remove.
783 (_initialize_break_catch_syscall): Update.
785 2019-05-08 Tom Tromey <tom@tromey.com>
787 * inflow.c (struct terminal_info): Add destructor and
789 (inflow_inferior_data): Change type.
790 (~terminal_info): Rename from inflow_inferior_data_cleanup.
791 (get_inflow_inferior_data, inflow_inferior_exit)
792 (swap_terminal_info, _initialize_inflow): Update.
794 2019-05-08 Tom Tromey <tom@tromey.com>
796 * target-dcache.c (target_dcache_cleanup): Remove.
797 (target_dcache_aspace_key): Change type.
798 (target_dcache_init_p, target_dcache_invalidate)
799 (target_dcache_get, target_dcache_get_or_init)
800 (_initialize_target_dcache): Update.
801 * dcache.h (struct dcache_deleter): New.
803 2019-05-08 Tom Tromey <tom@tromey.com>
805 * symtab.c (struct symbol_cache): Add destructor and
807 (symbol_cache_key): Move. Change type.
808 (make_symbol_cache, free_symbol_cache): Remove.
809 (get_symbol_cache): Update.
810 (symbol_cache_cleanup): Remove.
811 (ALL_PSPACES, symbol_cache_flush)
812 (maintenance_print_symbol_cache)
813 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
816 2019-05-08 Tom Tromey <tom@tromey.com>
818 * symtab.c (struct main_info): Add destructor and initializers.
819 (main_progspace_key): Move. Change type.
820 (get_main_info): Update.
821 (main_info_cleanup): Remove.
822 (_initialize_symtab): Update.
824 2019-05-08 Tom Tromey <tom@tromey.com>
826 * registry.h (DECLARE_REGISTRY): Define the _key class.
828 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
830 * NEWS: Merge two 'New commands' sections.
832 2019-05-08 Joel Brobecker <brobecker@adacore.com>
834 * ada-valprint.c (ada_val_print_gnat_array): Remove language
835 parameter and use Ada language definition instead.
836 (ada_val_print_ptr): Remove unused language parameter.
837 (ada_val_print_num): Remove language parameter and use Ada language
839 (ada_val_print_enum, ada_val_print_flt): Remove unused language
841 (ada_val_print_struct_union, ada_val_print_ref): Remove language
842 parameter and use Ada language definition instead.
843 (ada_val_print_1): Update all ada_val_print_xxx calls.
844 Remove language parameter.
845 (ada_val_print): Update ada_val_print_1 call.
847 2019-05-08 Tom Tromey <tromey@adacore.com>
849 * remote.c (remote_hw_watchpoint_limit)
850 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
853 2019-05-08 Tom Tromey <tromey@adacore.com>
855 * maint.c (_initialize_maint_cmds): Move initialization code to
857 (watchdog, show_watchdog): Move to remote.c.
858 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
860 (_initialize_remote): Move initialization code from maint.c.
861 * defs.h (watchdog): Don't declare.
863 2019-05-08 Tom Tromey <tromey@adacore.com>
865 * tui/tui-interp.c: Include main.h.
866 * interps.c: Include main.h.
867 * main.h (interpreter_p): Declare.
868 * defs.h (interpreter_p): Don't declare.
870 2019-05-08 Tom Tromey <tromey@adacore.com>
872 * dwarf2loc.c: Include dwarf2read.h.
873 * defs.h (read_unsigned_leb128): Don't declare.
874 * dwarf2read.h (read_unsigned_leb128): Declare.
876 2019-05-08 Tom Tromey <tromey@adacore.com>
878 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
881 2019-05-08 Tom Tromey <tromey@adacore.com>
883 * utils.c (fputs_maybe_filtered): Reset style after paging, even
884 when no wrap column is set.
886 2019-05-08 Tom Tromey <tromey@adacore.com>
888 * c-lang.c (c_get_string): Handle non-C-style arrays.
890 2019-05-08 Tom Tromey <tromey@adacore.com>
892 * typeprint.c (print_offset_data::update): Print the bit offset,
893 not the number of bits remaining.
895 2019-05-08 Tom Tromey <tromey@adacore.com>
897 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
898 padding at end of comment.
900 2019-05-08 Tom Tromey <tromey@adacore.com>
902 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
905 2019-05-06 Tom Tromey <tom@tromey.com>
907 * common/scoped_mmap.c: Include common-defs.h.
908 * common/scoped_mmap.h: Don't include config.h.
910 2019-05-04 Tom Tromey <tom@tromey.com>
912 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
913 (struct aarch64_call_info): Add initializers.
914 <si>: Now a std::vector.
915 (pass_on_stack, aarch64_push_dummy_call): Update.
917 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
918 Tom Tromey <tom@tromey.com>
920 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
921 (ppc_threads): Now a std::vector. Now static.
922 (hwdebug_find_thread_points_by_tid)
923 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
926 2019-05-04 Tom Tromey <tom@tromey.com>
928 * arc-tdep.c (arc_tdesc_init): Return bool.
930 2019-05-04 Tom Tromey <tom@tromey.com>
932 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
933 Use gdb_assert_not_reached.
935 2019-05-04 Tom Tromey <tom@tromey.com>
937 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
940 2019-05-04 Tom Tromey <tom@tromey.com>
942 * arc-tdep.c (arc_tdesc_init): Use bool.
944 2019-05-04 Tom Tromey <tom@tromey.com>
946 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
948 2019-05-04 Tom Tromey <tom@tromey.com>
950 * cli/cli-cmds.c (valid_command_p): Return bool.
952 2019-05-04 Tom Tromey <tom@tromey.com>
954 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
955 * command.h (valid_user_defined_cmd_name_p): Channge return type.
957 2019-05-04 Raul Tambre <raul@tambre.ee>
959 * python/lib/gdb/prompt.py (_ExtendedPrompt)
960 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
961 operator for comparison.
963 2019-05-04 Tom Tromey <tom@tromey.com>
965 * psymtab.c (psymbol_name_matches, match_partial_symbol)
966 (lookup_partial_symbol, print_partial_symbols)
967 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
968 (psymbol_compare): Update.
969 (add_psymbol_to_bcache): Clear the entire psymbol.
970 (maintenance_check_psymtabs): Update.
971 * psympriv.h (struct partial_symbol): Don't derive from
973 <obj_section, unrelocated_address, address,
974 set_unrelocated_address>: Update.
976 * dwarf-index-write.c (write_psymbols, debug_names::insert)
977 (debug_names::write_psymbols): Update.
979 2019-05-04 Tom de Vries <tdevries@suse.de>
981 * contrib/cc-with-tweaks.sh: Support -n arg.
983 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
985 * corelow.c (core_target::detach): Ensure frame cache and
986 register caches are cleared.
987 inferior.c (exit_inferior_1): Likewise.
989 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
990 Tom Tromey <tom@tromey.com>
992 * dictionary.c (collate_pending_symbols_by_language): Remove
993 "struct" from foreach.
994 * symtab.c (lookup_global_symbol_from_objfile)
995 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
997 * ser-tcp.c (net_open): Remove "struct" from foreach.
998 * objfiles.c (objfile_relocate, objfile_rebase)
999 (objfile_has_symbols): Remove "struct" from foreach.
1000 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1002 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1004 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1005 "struct" from foreach.
1006 * ada-lang.c (create_excep_cond_exprs)
1007 (ada_exception_catchpoint_cond_string): Remove "struct" from
1010 2019-05-03 Tom Tromey <tromey@adacore.com>
1012 * ada-exp.y (convert_char_literal): Check suffix of each
1015 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1018 * ada-exp.y (yywrap): Don't define.
1019 * ada-lex.l (%option): Add noyywrap
1022 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1024 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1025 _WIN32_WINNT to the XP level, unless already defined to a higher
1028 * unittests/parse-connection-spec-selftests.c:
1030 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1033 * symfile.c (find_separate_debug_file): Remove colon from the
1034 drive spec of DOS/Windows file names of the target, so that the
1035 file name produced from DEBUGDIR and the target's directory will
1036 be valid on DOS/Windows systems.
1038 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1040 * rust-lang.c (val_print_struct): Handle printing structures
1043 2019-05-02 Tom Tromey <tromey@adacore.com>
1045 * valarith.c (_initialize_valarith): Remove.
1047 2019-05-01 Tom Tromey <tromey@adacore.com>
1049 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1052 2019-05-01 Tom Tromey <tromey@adacore.com>
1054 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1055 for big-endian copies.
1057 2019-04-30 Ali Tamur <tamur@google.com>
1058 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1059 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1060 (read_3_bytes): New function.
1062 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1064 * windows-nat.c (main_thread_id): Delete.
1065 (handle_output_debug_string): Replace main_thread_id by
1066 current_event.dwThreadId.
1067 (fake_create_process): Likewise.
1068 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1069 Do not set main_thread_id.
1070 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1071 current_event.dwThreadId.
1072 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1074 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1076 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1077 Use current_event.dwThreadId instead of main_thread_id.
1079 2019-04-30 Tom Tromey <tromey@adacore.com>
1081 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1082 (create_excep_cond_exprs): Iterate over program spaces.
1083 (ada_exception_catchpoint_cond_string): Examine all minimal
1084 symbols for exception types.
1086 2019-04-30 Tom Tromey <tromey@adacore.com>
1089 * dwarf2read.c (process_structure_scope): Handle case where type
1090 has template parameters but no symbol was created.
1092 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1093 Chris January <chris.january@arm.com>
1095 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1097 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1099 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1101 * f-typeprint.c (f_print_type): Update rules for printing
1103 (f_type_print_varspec_suffix): Likewise.
1105 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1106 Chris January <chris.january@arm.com>
1108 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1111 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1113 * f-lang.c (build_fortran_types): Change name of void type to
1115 * f-typeprint.c (f_type_print_base): Print the name of the void
1116 type, rather than a fixed string.
1117 * f-valprint.c (f_decorations): Use lower case void string.
1119 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1120 Chris January <chris.january@arm.com>
1122 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1125 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1126 Chris January <chris.january@arm.com>
1127 David Lecomber <david.lecomber@arm.com>
1129 * f-exp.y (BINOP_INTRINSIC): New token.
1130 (exp): New parser rule handling BINOP_INTRINSIC.
1131 (f77_keywords): Add new builtin procedures.
1132 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1133 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1134 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1135 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1136 (print_unop_subexp_f): New function.
1137 (print_binop_subexp_f): New function.
1138 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1139 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1140 (dump_subexp_body_f): Likewise.
1141 (operator_check_f): Likewise.
1142 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1143 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1145 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1147 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1149 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1150 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1151 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1152 (operator_length_f): New fuction.
1153 (print_subexp_f): New function.
1154 (op_name_f): New function.
1155 (dump_subexp_body_f): New function.
1156 (operator_check_f): New function.
1157 (exp_descriptor_f): Replace standard expression handling functions
1159 * gdb/fortran-operator.def: New file.
1160 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1161 * gdb/std-operator.def: Remove UNOP_KIND.
1163 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1165 * std-operator.def: Remove unbalanced, stray double quote
1168 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1169 Chris January <chris.january@arm.com>
1170 Daniel Everett <daniel.everett@arm.com>
1171 Nick Forrington <nick.forrington@arm.com>
1172 Richard Bunt <richard.bunt@arm.com>
1174 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1175 of depth when printing anonymous structs or unions.
1176 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1177 Don't print either the top-level value, or the children if the
1178 max-depth is exceeded.
1179 (ppscm_print_children): When printing the key of a map, allow one
1180 extra level of depth.
1181 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1182 print either the top-level value, or the children if the max-depth
1184 (print_children): When printing the key of a map, allow one extra
1186 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1187 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1188 (user_print_options): Initialise max_depth field.
1189 (val_print_scalar_or_string_type_p): New function.
1190 (val_print): Check to see if the max depth has been reached.
1191 (val_print_check_max_depth): Define new function.
1192 (show_print_max_depth): New function.
1193 (_initialize_valprint): Add 'print max-depth' option.
1194 * valprint.h (struct value_print_options) <max_depth>: New field.
1195 (val_print_check_max_depth): Declare new function.
1196 * NEWS: Document new feature.
1198 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1200 * ada-lang.c (ada_language_defn): Initialise new field.
1201 * c-lang.c (c_is_string_type_p): New function.
1202 (c_language_defn): Initialise new field.
1203 (cplus_language_defn): Initialise new field.
1204 (asm_language_defn): Initialise new field.
1205 (minimal_language_defn): Initialise new field.
1206 * c-lang.h (c_is_string_type_p): Declare new function.
1207 * d-lang.c (d_language_defn): Initialise new field.
1208 * f-lang.c (f_is_string_type_p): New function.
1209 (f_language_defn): Initialise new field.
1210 * go-lang.c (go_is_string_type_p): New function.
1211 (go_language_defn): Initialise new field.
1212 * language.c (default_is_string_type_p): New function.
1213 (unknown_language_defn): Initialise new field.
1214 (auto_language_defn): Initialise new field.
1215 * language.h (struct language_defn) <la_is_string_type_p>: New
1217 (default_is_string_type_p): Declare new function.
1218 * m2-lang.c (m2_language_defn): Initialise new field.
1219 * objc-lang.c (objc_language_defn): Initialise new field.
1220 * opencl-lang.c (opencl_language_defn): Initialise new field.
1221 * p-lang.c (pascal_is_string_type_p): New function.
1222 (pascal_language_defn): Initialise new field.
1223 * rust-lang.c (rust_is_string_type_p): New function.
1224 (rust_language_defn): Initialise new field.
1226 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1228 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1230 * ada-lang.c (ada_language_defn): Initialise new field.
1231 * c-lang.c (c_language_defn): Likewise.
1232 (cplus_language_defn): Likewise.
1233 (asm_language_defn): Likewise.
1234 (minimal_language_defn): Likewise.
1235 * d-lang.c (d_language_defn): Likewise.
1236 * f-lang.c (f_language_defn): Likewise.
1237 * go-lang.c (go_language_defn): Likewise.
1238 * language.c (unknown_language_defn): Likewise.
1239 (auto_language_defn): Likewise.
1240 * m2-lang.c (m2_language_defn): Likewise.
1241 * objc-lang.c (objc_language_defn): Likewise.
1242 * opencl-lang.c (opencl_language_defn): Likewise.
1243 * p-lang.c (pascal_language_defn): Likewise.
1244 * rust-lang.c (rust_language_defn): Likewise.
1246 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1248 * ada-lang.c (ada_is_character_type): Change return type to bool.
1249 (ada_is_string_type): Likewise.
1250 * ada-lang.h (ada_is_character_type): Update declaration
1251 (ada_is_string_type): Likewise.
1253 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1255 Support style in 'frame|thread apply'
1257 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1258 * record.c (record_start, record_stop): Update callers of
1259 execute_command_to_string with false.
1260 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1261 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1263 (class string_file): New constructor with term_out parameter.
1264 Override methods term_out and can_emit_style_escape. New member
1266 (class stdio_file): Override can_emit_style_escape.
1267 (class tee_file): Override term_out and can_emit_style_escape.
1268 * utils.h (can_emit_style_escape): Remove.
1269 * utils.c (can_emit_style_escape): Likewise.
1270 Update all callers of can_emit_style_escape (SOMESTREAM) to
1271 SOMESTREAM->can_emit_style_escape.
1272 * source-cache.c (source_cache::get_source_lines): Likewise.
1273 * stack.c (frame_apply_command_count): Call execute_command_to_string
1274 passing the term_out characteristic of the current gdb_stdout.
1275 * thread.c (thr_try_catch_cmd): Likewise.
1276 * top.c (execute_command_to_string): pass term_out parameter
1277 to construct the string_file for the command output.
1278 * ui-file.c (term_cli_styling): New function (most code moved
1279 from utils.c can_emit_style_escape).
1280 (string_file::string_file, string_file::can_emit_style_escape,
1281 stdio_file::can_emit_style_escape, tee_file::term_out,
1282 tee_file::can_emit_style_escape): New functions.
1284 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1286 * NEWS: Mention the new set|show may-call-functions.
1287 * infcall.c (may_call_functions_p): New variable.
1288 (show_may_call_functions_p): New function.
1289 (call_function_by_hand_dummy): Throws an error if not
1291 (_initialize_infcall): Call add_setshow_boolean_cmd for
1294 2019-04-25 Keith Seitz <keiths@redhat.com>
1297 * cp-support.c (inspect_type): Don't attempt substitutions
1298 of symbol with the same name.
1300 2019-04-25 Tom Tromey <tromey@adacore.com>
1303 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1306 2019-04-25 Tom Tromey <tromey@adacore.com>
1308 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1310 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1311 (gdb_xml_parser::parse): Use std::move.
1312 * python/python-internal.h (gdbpy_convert_exception): Take a const
1314 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1316 * python/py-utils.c (gdbpy_convert_exception): Take a const
1318 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1320 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1322 * mi/mi-main.c (mi_print_exception): Take a const reference.
1323 * main.c (handle_command_errors): Take a const reference.
1324 * linespec.c (parse_linespec): Use std::move.
1325 * infcall.c (run_inferior_call): Use std::move.
1326 (call_function_by_hand_dummy): Use std::move.
1327 * exec.c (try_open_exec_file): Use std::move.
1328 * exceptions.h (exception_print, exception_fprintf)
1329 (exception_print_same): Update.
1330 * exceptions.c (print_exception, exception_print)
1331 (exception_fprintf, exception_print_same): Change parameters to
1333 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1334 * common/new-op.c: Use std::move.
1335 * common/common-exceptions.h (struct gdb_exception): Add move
1337 (struct gdb_exception_error, struct gdb_exception_quit, struct
1338 gdb_quit_bad_alloc): Change constructor to move constructor.
1339 (throw_exception): Change parameter to rvalue reference.
1340 * common/common-exceptions.c (throw_exception): Take rvalue
1342 * cli/cli-interp.c (safe_execute_command): Use std::move.
1343 * breakpoint.c (insert_bp_location, location_to_sals): Use
1346 2019-04-25 Tom Tromey <tromey@adacore.com>
1348 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1349 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1350 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1351 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1352 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1353 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1354 guile/scm-value.c: Use unpack.
1355 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1356 gdbscm_gdb_exception.
1357 (gdbscm_throw_gdb_exception): Likewise.
1358 (struct gdbscm_gdb_exception): New.
1359 (unpack): New function.
1360 (gdbscm_wrap): Use unpack.
1362 2019-04-25 Tom Tromey <tromey@adacore.com>
1364 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1365 (gdb_rl_callback_handler): Use std::move.
1366 * common/common-exceptions.h (struct gdb_exception): Add move
1367 assignment operator.
1368 (throw_exception_sjlj): Change "exception" to const reference.
1369 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1370 (throw_exception_sjlj): Change "exception" to const reference.
1372 2019-04-25 Tom Tromey <tromey@adacore.com>
1374 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1375 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1376 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1378 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1380 * mi/mi-interp.c (mi_interp::exec): Update.
1381 * linespec.c (parse_linespec): Update.
1382 * infcall.c (run_inferior_call): Update.
1383 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1384 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1385 (gdbscm_lookup_global_symbol): Update.
1386 * guile/scm-param.c (gdbscm_parameter_value): Update.
1387 * guile/scm-frame.c (gdbscm_frame_read_register)
1388 (gdbscm_frame_read_var): Update.
1389 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1390 * exec.c (try_open_exec_file): Update.
1391 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1392 (gdb_rl_callback_handler): Update.
1393 * common/common-exceptions.h (exception_none): Don't declare.
1394 * common/common-exceptions.c (exception_none): Don't define.
1395 (struct catcher) <exception>: Update.
1396 * cli/cli-interp.c (safe_execute_command): Update.
1397 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1399 2019-04-25 Ali Tamur <tamur@google.com>
1401 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1402 (read_attribute_value): Likewise.
1403 (dwarf2_read_addr_index): Update comment.
1404 (read_str_index): Add DW_FORM_strx.
1405 (dwarf2_string_attr): Likewise.
1406 (dwarf2_const_value_attr): Likewise.
1407 (dump_die_shallow): Likewise.
1408 (dwarf2_fetch_constant_bytes): Likewise.
1409 (skip_form_bytes): Likewise.
1410 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1412 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1416 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1417 OFFSET. Verify if current mapping contains an ELF header.
1418 (linux_find_memory_regions_full): Adjust call to
1421 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1422 Kang Li <kanglictf@gmail.com>
1426 * dwarf2-frame.c (read_initial_length): Be consistent about using
1427 unsigned representation of length.
1428 (decode_frame_entry_1): Likewise. Check for wraparound of
1429 end pointer as well as buffer overflow.
1431 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1433 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1436 2019-04-24 Tom Tromey <tromey@adacore.com>
1438 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1440 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1442 * s12z-tdep.c (s12z_unwind_pc): Delete.
1443 (s12z_unwind_sp): Delete.
1444 (s12z_gdbarch_init): Don't register deleted functions with
1447 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1449 * rl78-tdep.c (rl78_unwind_sp): Delete.
1450 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1452 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1454 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1455 (xstormy16_unwind_pc): Delete.
1456 (xstormy16_dummy_id): Delete.
1457 (xstormy16_gdbarch_init): Don't register deleted functions with
1460 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1462 * vax-tdep.c (vax_unwind_pc): Delete.
1463 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1465 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1467 * v850-tdep.c (v850_unwind_sp): Delete.
1468 (v850_unwind_pc): Delete.
1469 (v850_dummy_id): Delete.
1470 (v850_gdbarch_init): Don't register deleted functions with
1473 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1475 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1476 (tilegx_unwind_pc): Delete.
1477 (tilegx_unwind_dummy_id): Delete.
1478 (tilegx_gdbarch_init): Don't register deleted functions with
1481 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1483 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1484 (tic6x_dummy_id): Delete.
1485 (tic6x_gdbarch_init): Don't register deleted functions with
1488 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1490 * sparc-tdep.c (sparc_unwind_pc): Delete.
1491 (sparc32_gdbarch_init): Don't register deleted function with
1494 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1496 * sh-tdep.c (sh_unwind_sp): Delete.
1497 (sh_unwind_pc): Delete.
1498 (sh_dummy_id): Delete.
1499 (sh_gdbarch_init): Don't register deleted functions with
1502 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1504 * score-tdep.c (score_unwind_sp): Delete.
1505 (score_unwind_pc): Delete.
1506 (score_dummy_id): Delete.
1507 (score_gdbarch_init): Don't register deleted functions with
1510 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1512 * rx-tdep.c (rx_unwind_pc): Delete.
1513 (rx_unwind_sp): Delete.
1514 (rx_dummy_id): Delete.
1515 (rx_gdbarch_init): Don't register deleted functions with
1516 gdbarch. Update comment.
1518 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1520 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1521 (rs6000_dummy_id): Delete.
1522 (rs6000_gdbarch_init): Don't register deleted functions with
1525 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1527 * or1k-tdep.c (or1k_dummy_id): Delete.
1528 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1530 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1532 * nios2-tdep.c (nios2_dummy_id): Delete.
1533 (nios2_unwind_sp): Delete.
1534 (nios2_gdbarch_init): Don't register deleted functions with
1537 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1539 * nds32-tdep.c (nds32_dummy_id): Delete.
1540 (nds32_unwind_pc): Delete.
1541 (nds32_unwind_sp): Delete.
1542 (nds32_gdbarch_init): Don't register deleted functions with
1545 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1547 * msp430-tdep.c (msp430_unwind_pc): Delete.
1548 (msp430_unwind_sp): Delete.
1549 (msp430_dummy_id): Delete.
1550 (msp430_gdbarch_init): Don't register deleted functions with
1553 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1555 * moxie-tdep.c (moxie_unwind_sp): Delete.
1556 (moxie_unwind_pc): Delete.
1557 (moxie_dummy_id): Delete.
1558 (moxie_gdbarch_init): Don't register deleted functions with
1561 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1563 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1564 (mn10300_unwind_pc): Delete.
1565 (mn10300_unwind_sp): Delete.
1566 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1568 (mn10300_frame_unwind_init): Don't register deleted functions with
1571 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1573 * mep-tdep.c (mep_unwind_pc): Delete.
1574 (mep_unwind_sp): Delete.
1575 (mep_dummy_id): Delete.
1576 (mep_gdbarch_init): Don't register deleted functions with
1579 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1581 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1582 (m68hc11_unwind_sp): Delete.
1583 (m68hc11_gdbarch_init): Don't register deleted functions with
1586 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1588 * m32r-tdep.c (m32r_unwind_sp): Delete.
1589 (m32r_unwind_pc): Delete.
1590 (m32r_dummy_id): Delete.
1591 (m32r_gdbarch_init): Don't register deleted functions with
1594 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1596 * m32c-tdep.c (m32c_unwind_pc): Delete.
1597 (m32c_unwind_sp): Delete.
1598 (m32c_dummy_id): Delete.
1599 (m32c_gdbarch_init): Don't register deleted functions with
1602 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1604 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1605 (lm32_unwind_pc): Delete.
1606 (lm32_dummy_id): Delete.
1607 (lm32_gdbarch_init): Don't register deleted functions with
1610 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1612 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1613 (iq2000_unwind_pc): Delete.
1614 (iq2000_dummy_id): Delete.
1615 (iq2000_gdbarch_init): Don't register deleted functions with
1618 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1620 * nds32-tdep.c (nds32_type_align): Delete.
1621 (nds32_push_dummy_call): Use type_align instead.
1623 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1625 * arm-tdep.c (arm_type_align): Only handle vector override case.
1626 (arm_push_dummy_call): Use type_align.
1627 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1629 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1631 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1633 (pass_on_stack): Use type_align.
1634 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1637 2019-04-23 Tom Tromey <tromey@adacore.com>
1639 * dwarf2read.c (line_header::file_name_at): Remove unused
1642 2019-04-23 Tom de Vries <tdevries@suse.de>
1645 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1649 2019-03-27 Ali Tamur <tamur@google.com>
1651 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1652 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1653 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1654 (dwarf_expr_context::get_addr_index): Likewise
1655 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1656 (symbol_needs_eval_context::get_addr_index): Likewise
1657 (disassemble_dwarf_expression): Add DW_OP_addrx
1658 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1659 (read_cutu_die_from_dwo): Update comment
1660 (skip_one_die): Add DW_FORM_addrx
1661 (read_attribute_value): Likewise
1662 (var_decode_location): Add DW_OP_addrx
1663 (dwarf2_const_value_attr): Add DW_FORM_addrx
1664 (dump_die_shallow): Likewise
1665 (dwarf2_fetch_constant_bytes): Likewise
1666 (decode_locdesc): Add DW_OP_addrx
1667 (skip_form_bytes): Add DW_FORM_addrx
1669 2019-04-22 Ali Tamur <tamur@google.com>
1671 * MAINTAINERS (Write After Approval): Add self.
1673 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1675 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1676 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1677 (open_symbol_file_object): Likewise.
1678 (svr4_default_sos): Add info parameter.
1679 (svr4_read_so_list): Likewise.
1680 (svr4_current_sos_direct): Adjust functions calls to pass down
1682 (svr4_current_sos_1): Add info parameter.
1683 (svr4_current_sos): Call get_svr4_info, pass info down to
1685 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1687 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1689 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1691 (probes_table_remove_objfile_probes): Likewise.
1692 (register_solib_event_probe): Add info parameter.
1693 (solist_update_incremental): Pass info parameter down to
1695 (disable_probes_interface): Add info parameter.
1696 (svr4_handle_solib_event): Pass current_program_space to
1697 get_svr4_info. Adjust disable_probes_interface cleanup.
1698 (svr4_create_probe_breakpoints): Add info parameter, pass it
1699 down to register_solib_event_probe.
1700 (svr4_create_solib_event_breakpoints): Add info parameter,
1701 pass it down to svr4_create_probe_breakpoints.
1702 (enable_break): Pass info down to
1703 svr4_create_solib_event_breakpoints.
1704 (svr4_solib_create_inferior_hook): Pass current_program_space to
1706 (svr4_clear_solib): Likewise.
1708 2019-04-22 Pedro Alves <palves@redhat.com>
1710 * solib-svr4.c (svr4_free_objfile_observer): New.
1711 (probe_and_action::objfile): New field.
1712 (probes_table_htab_remove_objfile_probes)
1713 (probes_table_remove_objfile_probes): New functions.
1714 (register_solib_event_probe): Add 'objfile' parameter. Store it
1715 in the new probe_and_action. Don't store the probe in 'lookup'.
1716 (svr4_create_probe_breakpoints): Pass objfile to
1717 register_solib_event_probe.
1718 (_initialize_svr4_solib): Register a free_objfile observer.
1720 2019-04-19 Tom Tromey <tom@tromey.com>
1722 * common/queue.h: Remove.
1724 2019-04-19 Tom Tromey <tom@tromey.com>
1726 * event-loop.c: Don't include "common/queue.h".
1728 2019-04-19 Tom Tromey <tom@tromey.com>
1730 * remote.c (remote_target): Use delete.
1731 * remote-notif.h: Include <list>, not "common/queue.h".
1732 (notif_client_p): Remove typedef.
1733 (remote_notif_state): Add constructor, destructor, initializer.
1734 <notif_queue>: Now a std::list.
1735 (remote_notif_state_xfree): Don't declare.
1736 * remote-notif.c (remote_notif_process, handle_notification)
1737 (remote_notif_state_allocate): Update.
1738 (~remote_notif_state): Rename from remote_notif_state_xfree.
1740 2019-04-19 Tom Tromey <tom@tromey.com>
1742 * symfile.c (reread_symbols): Update.
1743 * objfiles.c (objfile_register_static_link)
1744 (objfile_lookup_static_link): Update
1745 (~objfile) Don't delete static_links.
1746 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1748 2019-04-19 Tom Tromey <tom@tromey.com>
1750 * type-stack.h (struct type_stack) <insert>: Constify string.
1751 * type-stack.c (type_stack::insert): Constify string.
1752 * gdbtypes.h (lookup_template_type): Update.
1753 (address_space_name_to_int): Update.
1754 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1756 (lookup_template_type): Make name const.
1757 * c-exp.y: Update rules.
1758 (lex_one_token, classify_name, classify_inner_name)
1759 (c_print_token): Update.
1760 * p-exp.y: Update rules.
1762 * f-exp.y: Update rules.
1764 * d-exp.y: Update rules.
1765 (lex_one_token, classify_name, classify_inner_name): Update.
1766 * parse.c (write_dollar_variable, copy_name): Return std::string.
1767 * parser-defs.h (copy_name): Change return type.
1768 * m2-exp.y: Update rules.
1770 * go-exp.y (lex_one_token): Update.
1772 (classify_unsafe_function, classify_packaged_name)
1773 (classify_name, yylex): Update.
1775 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1777 * configure.ac: add --enable-source-highlight switch.
1778 * configure: Regenerate.
1779 * top.c (print_gdb_version): plumb --enable-source-highlight
1780 status to "show configuration".
1782 2019-04-19 Tom Tromey <tromey@adacore.com>
1784 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1786 (empty_record, ada_template_to_fixed_record_type_1)
1787 (template_to_static_fixed_type)
1788 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1789 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1790 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1793 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1796 * source.c (print_source_lines_base): Advance "iter" when a
1797 control character is seen.
1799 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1801 * inferior.h (struct infcall_suspend_state_deleter):
1802 Catch exception in destructor to avoid crash.
1804 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1806 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1807 close to the add_com "shell".
1809 2019-04-18 Tom Tromey <tromey@adacore.com>
1811 * process-stratum-target.h (class process_stratum_target)
1812 <stratum>: Add "final".
1814 2019-04-17 Tom Tromey <tromey@adacore.com>
1816 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1817 against nullptr before use.
1819 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1821 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1823 2019-04-17 Jim Wilson <jimw@sifive.com>
1824 Andrew Burgess <andrew.burgess@embecosm.com>
1826 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1827 code read might fail, assume 4-byte breakpoint in that case.
1829 2019-04-15 Leszek Swirski <leszeks@google.com>
1831 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1832 rather than a hand-rolled POD check when checking for forced MEMORY
1835 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1837 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1838 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1840 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1841 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1842 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1845 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1847 * aarch64-linux-nat.c
1848 (aarch64_linux_nat_target::thread_architecture): Add override.
1849 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1852 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1854 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1856 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1858 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1859 target types of size 96-bits, add some additional comments, and
1860 check that the builtin type we found was the correct size.
1862 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1864 * utils.c (prompt_for_continue): Don't restore the styling at the
1865 end, as applied_style has the wrong value. This fixes styling in
1866 long lists of file names that are interrupted by the "Continue?"
1869 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1871 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1872 * c-lang.c (c_language_defn): Likewise.
1873 (cplus_language_defn): Likewise.
1874 (asm_language_defn): Likewise.
1875 (minimal_language_defn): Likewise.
1876 * d-lang.c (d_language_defn): Likewise.
1877 * f-lang.c (f_language_defn): Likewise.
1878 * go-lang.c (go_language_defn): Likewise.
1879 * language.c (unknown_language_defn): Likewise.
1880 (auto_language_defn): Likewise.
1881 * language.h (struct language_defn): Remove la_magic field.
1882 (LANG_MAGIC): Delete.
1883 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1884 * objc-lang.c (objc_language_defn): Likewise.
1885 * opencl-lang.c (opencl_language_defn): Likewise.
1886 * p-lang.c (pascal_language_defn): Likewise.
1887 * rust-lang.c (rust_language_defn): Likewise.
1889 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1891 * riscv-tdep.c (riscv_type_align): New function.
1892 (riscv_type_alignment): Delete.
1893 (riscv_arg_location): Use 'type_align'.
1894 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1896 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1898 * gdbtypes.c (type_align): A struct with no non-static fields also
1901 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1903 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1905 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1907 (riscv_struct_info::analyse): New implementation using new
1908 analyse_inner member function.
1909 (riscv_struct_info::field_offset): New member function.
1910 (riscv_struct_info::m_offsets): New member variable.
1911 (riscv_struct_info::analyse_inner): New private member function,
1912 takes the old implementation of riscv_struct_info::analyse but
1913 extended to track field offsets.
1914 (riscv_call_arg_struct): Update the struct folding special cases
1915 to handle cases where empty C++ structs, which are non-zero
1917 (riscv_arg_location): Initialise the length of each location, a
1918 non-zero length now indicates the location is in use.
1919 (riscv_push_dummy_call): Allow for the first location having a
1920 non-zero offset when setting up arguments.
1921 (riscv_return_value): Likewise, but for return values.
1923 2019-04-11 Tom Tromey <tromey@adacore.com>
1925 * utils.c (internal_vproblem): Make "msg" const.
1927 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1929 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1930 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1931 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1932 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1934 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1936 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1938 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1939 of amd64_collect_native_gregset.
1940 (amd64_linux_nat_target::store_registers): Likewise.
1942 2019-04-10 Tom Tromey <tom@tromey.com>
1944 * symtab.c (lookup_global_symbol_from_objfile)
1945 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1946 * objfiles.h (class separate_debug_iterator): New.
1947 (class separate_debug_range): New.
1948 (struct objfile) <separate_debug_objfiles>: New method.
1949 (objfile_separate_debug_iterate): Don't declare.
1950 * objfiles.c (separate_debug_iterator::operator++): Rename from
1951 objfile_separate_debug_iterate.
1952 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1954 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1957 2019-04-10 Tom Tromey <tom@tromey.com>
1959 * symfile.c (reread_symbols): Remove old comment.
1960 * objfiles.c (free_all_objfiles): Fix a typo.
1962 2019-04-10 Tom Tromey <tom@tromey.com>
1964 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1965 * minsyms.c (lookup_minimal_symbol): Use foreach.
1966 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1967 (lookup_minimal_symbol_solib_trampoline): Likewise.
1968 * symfile.c (reread_symbols): Use foreach.
1970 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1971 Tom Tromey <tromey@adacore.com>
1974 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1975 (rust_lex_int_test): Change "value" to be LONGEST.
1976 (rust_lex_tests): Add test for long integer literal.
1978 2019-04-09 Tom Tromey <tromey@adacore.com>
1980 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1982 (extended_remote_target::attach): Update.
1983 (remote_target::remote_notice_new_inferior): Update.
1984 (remote_target::add_current_inferior_and_thread): Update.
1985 * inferior.c (exit_inferior_1): Use "false".
1986 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1988 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1990 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1991 the "start" command.
1993 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1995 * python/py-inferior.c (infpy_thread_from_thread_handle):
1996 Adjust comments to reflect renaming of thread_from_thread_handle
1997 to thread_from_handle. Adjust keywords. Fix type error message.
1998 (inferior_object_methods): Add thread_from_handle. Retain
1999 thread_from_thread_handle, but mark it as deprecated.
2001 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2003 * gdbthread.h (find_thread_by_handle): Revise declaration.
2004 * thread.c (find_thread_by_handle): Likewise. Adjust
2006 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2007 support for buffer objects as handles.
2009 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2011 * python/py-infthread.c (thpy_thread_handle): New function.
2012 (thread_object_methods): Register thpy_thread_handle.
2014 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2016 * gdbthread.h (thread_to_thread_handle): Declare.
2017 * thread.c (gdbtypes.h): Include.
2018 (thread_to_thread_handle): New function.
2020 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2021 (target_thread_info_to_thread_handle): Declare.
2022 * target.c (target_thread_info_to_thread_handle): New function.
2023 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2024 * target-delegates.c: Regenerate.
2026 * linux-thread-db.c (class thread_db_target): Add method
2027 thread_info_to_thread_handle.
2028 (thread_db_target::thread_info_to_thread_handle): Define.
2029 * remote.c (class remote_target): Add new method
2030 thread_info_to_thread_handle.
2031 (remote_target::thread_info_to_thread_handle): Define.
2033 2019-04-08 Pedro Alves <palves@redhat.com>
2035 * common/common-exceptions.c (throw_exception): Don't create
2036 named object to throw; throw directly.
2037 (throw_it): Likewise. Don't initialize gdb_exception::message
2038 here, with new; pass FMT and AP to the ctor instead.
2039 * common/common-exceptions.h: Include <string>.
2040 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2041 const char *, va_list)): New ctor. Use std::make_shared.
2042 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2044 (gdb_exception_error::gdb_exception_error(enum errors, const char
2046 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2048 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2050 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2051 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2054 2019-04-08 Tom Tromey <tom@tromey.com>
2056 * valops.c (value_rtti_indirect_type): Replace throw_exception
2058 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2060 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2062 * target.c (target_translate_tls_address): Replace throw_exception
2064 * stack.c (frame_apply_command_count): Replace throw_exception
2066 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2068 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2070 * rs6000-tdep.c (rs6000_frame_cache)
2071 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2072 * remote.c: Replace throw_exception with throw.
2073 * record-full.c (record_full_message, record_full_wait_1)
2074 (record_full_restore): Replace throw_exception with throw.
2076 (get_thread_current_frame_id, record_btrace_start_replaying)
2077 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2078 (cmd_record_btrace_start): Replace throw_exception with throw.
2079 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2081 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2082 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2084 (find_linespec_symbols): Replace throw_exception with throw.
2085 * infrun.c (displaced_step_prepare, resume): Replace
2086 throw_exception with throw.
2087 * infcmd.c (post_create_inferior): Replace throw_exception with
2089 * inf-loop.c (inferior_event_handler): Replace throw_exception
2091 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2092 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2093 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2094 (get_prev_frame_always, get_frame_pc_if_available)
2095 (get_frame_address_in_block_if_available, get_frame_language):
2096 Replace throw_exception with throw.
2097 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2098 throw_exception with throw.
2099 * eval.c (fetch_subexp_value, evaluate_var_value)
2100 (evaluate_funcall, evaluate_subexp_standard): Replace
2101 throw_exception with throw.
2102 * dwarf2loc.c (call_site_find_chain)
2103 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2104 Replace throw_exception with throw.
2105 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2107 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2109 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2110 * completer.c (complete_line_internal): Replace throw_exception
2112 * compile/compile-object-run.c (compile_object_run): Replace
2113 throw_exception with throw.
2114 * cli/cli-script.c (process_next_line): Replace throw_exception
2116 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2117 (btrace_enable, btrace_maint_update_pt_packets): Replace
2118 throw_exception with throw.
2119 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2120 throw_exception with throw.
2121 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2122 throw_exception with throw.
2123 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2124 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2125 * aarch64-tdep.c (aarch64_make_prologue_cache)
2126 (aarch64_make_stub_cache): Replace throw_exception with throw.
2128 2019-04-08 Tom Tromey <tom@tromey.com>
2130 * common/common-exceptions.c (throw_exception): Rename from
2131 throw_exception_cxx. Remove old copy. Make argument const.
2132 (throw_it): Create and throw exception objects directly.
2133 * common/common-exceptions.h (throw_exception): Make argument
2135 (struct gdb_exception_error): Add constructor.
2136 (struct gdb_exception_quit): Add constructor.
2138 2019-04-08 Tom Tromey <tom@tromey.com>
2140 * common/common-exceptions.h (exception_rethrow): Don't declare.
2141 (TRY_SJLJ): Update comment.
2142 (TRY, CATCH, END_CATCH): Remove.
2143 * common/common-exceptions.c (exception_rethrow): Remove.
2145 2019-04-08 Tom Tromey <tom@tromey.com>
2147 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2149 (gdb_exception_error): Rename from
2150 gdb_exception_RETURN_MASK_ERROR.
2151 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2152 (gdb_quit_bad_alloc): Update.
2153 * aarch64-tdep.c: Update.
2154 * ada-lang.c: Update.
2155 * ada-typeprint.c: Update.
2156 * ada-valprint.c: Update.
2157 * amd64-tdep.c: Update.
2158 * arch-utils.c: Update.
2159 * break-catch-throw.c: Update.
2160 * breakpoint.c: Update.
2162 * c-varobj.c: Update.
2163 * cli/cli-cmds.c: Update.
2164 * cli/cli-interp.c: Update.
2165 * cli/cli-script.c: Update.
2166 * common/common-exceptions.c: Update.
2167 * common/new-op.c: Update.
2168 * common/selftest.c: Update.
2169 * compile/compile-c-symbols.c: Update.
2170 * compile/compile-cplus-symbols.c: Update.
2171 * compile/compile-object-load.c: Update.
2172 * compile/compile-object-run.c: Update.
2173 * completer.c: Update.
2174 * corelow.c: Update.
2176 * cp-support.c: Update.
2177 * cp-valprint.c: Update.
2178 * darwin-nat.c: Update.
2179 * disasm-selftests.c: Update.
2180 * dtrace-probe.c: Update.
2181 * dwarf-index-cache.c: Update.
2182 * dwarf-index-write.c: Update.
2183 * dwarf2-frame-tailcall.c: Update.
2184 * dwarf2-frame.c: Update.
2185 * dwarf2loc.c: Update.
2186 * dwarf2read.c: Update.
2188 * event-loop.c: Update.
2189 * event-top.c: Update.
2191 * f-valprint.c: Update.
2192 * fbsd-tdep.c: Update.
2193 * frame-unwind.c: Update.
2195 * gdbtypes.c: Update.
2196 * gnu-v3-abi.c: Update.
2197 * guile/guile-internal.h: Update.
2198 * guile/scm-block.c: Update.
2199 * guile/scm-breakpoint.c: Update.
2200 * guile/scm-cmd.c: Update.
2201 * guile/scm-disasm.c: Update.
2202 * guile/scm-frame.c: Update.
2203 * guile/scm-lazy-string.c: Update.
2204 * guile/scm-math.c: Update.
2205 * guile/scm-param.c: Update.
2206 * guile/scm-ports.c: Update.
2207 * guile/scm-pretty-print.c: Update.
2208 * guile/scm-symbol.c: Update.
2209 * guile/scm-symtab.c: Update.
2210 * guile/scm-type.c: Update.
2211 * guile/scm-value.c: Update.
2212 * i386-linux-tdep.c: Update.
2213 * i386-tdep.c: Update.
2214 * inf-loop.c: Update.
2215 * infcall.c: Update.
2219 * language.c: Update.
2220 * linespec.c: Update.
2221 * linux-fork.c: Update.
2222 * linux-nat.c: Update.
2223 * linux-tdep.c: Update.
2224 * linux-thread-db.c: Update.
2226 * mi/mi-cmd-break.c: Update.
2227 * mi/mi-cmd-stack.c: Update.
2228 * mi/mi-interp.c: Update.
2229 * mi/mi-main.c: Update.
2230 * objc-lang.c: Update.
2231 * p-valprint.c: Update.
2233 * ppc-linux-tdep.c: Update.
2234 * printcmd.c: Update.
2235 * python/py-arch.c: Update.
2236 * python/py-breakpoint.c: Update.
2237 * python/py-cmd.c: Update.
2238 * python/py-finishbreakpoint.c: Update.
2239 * python/py-frame.c: Update.
2240 * python/py-framefilter.c: Update.
2241 * python/py-gdb-readline.c: Update.
2242 * python/py-inferior.c: Update.
2243 * python/py-infthread.c: Update.
2244 * python/py-lazy-string.c: Update.
2245 * python/py-linetable.c: Update.
2246 * python/py-objfile.c: Update.
2247 * python/py-param.c: Update.
2248 * python/py-prettyprint.c: Update.
2249 * python/py-progspace.c: Update.
2250 * python/py-record-btrace.c: Update.
2251 * python/py-record.c: Update.
2252 * python/py-symbol.c: Update.
2253 * python/py-type.c: Update.
2254 * python/py-unwind.c: Update.
2255 * python/py-utils.c: Update.
2256 * python/py-value.c: Update.
2257 * python/python.c: Update.
2258 * record-btrace.c: Update.
2259 * record-full.c: Update.
2260 * remote-fileio.c: Update.
2262 * riscv-tdep.c: Update.
2263 * rs6000-aix-tdep.c: Update.
2264 * rs6000-tdep.c: Update.
2265 * rust-exp.y: Update.
2266 * rust-lang.c: Update.
2267 * s390-tdep.c: Update.
2268 * selftest-arch.c: Update.
2269 * solib-dsbt.c: Update.
2270 * solib-frv.c: Update.
2271 * solib-spu.c: Update.
2272 * solib-svr4.c: Update.
2274 * sparc64-linux-tdep.c: Update.
2276 * symfile-mem.c: Update.
2277 * symmisc.c: Update.
2281 * tracefile-tfile.c: Update.
2282 * tui/tui.c: Update.
2283 * typeprint.c: Update.
2284 * unittests/cli-utils-selftests.c: Update.
2285 * unittests/parse-connection-spec-selftests.c: Update.
2287 * valprint.c: Update.
2290 * windows-nat.c: Update.
2291 * x86-linux-nat.c: Update.
2292 * xml-support.c: Update.
2294 2019-04-08 Tom Tromey <tom@tromey.com>
2296 * xml-support.c: Use C++ exception handling.
2297 * x86-linux-nat.c: Use C++ exception handling.
2298 * windows-nat.c: Use C++ exception handling.
2299 * varobj.c: Use C++ exception handling.
2300 * value.c: Use C++ exception handling.
2301 * valprint.c: Use C++ exception handling.
2302 * valops.c: Use C++ exception handling.
2303 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2305 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2306 * typeprint.c: Use C++ exception handling.
2307 * tui/tui.c: Use C++ exception handling.
2308 * tracefile-tfile.c: Use C++ exception handling.
2309 * top.c: Use C++ exception handling.
2310 * thread.c: Use C++ exception handling.
2311 * target.c: Use C++ exception handling.
2312 * symmisc.c: Use C++ exception handling.
2313 * symfile-mem.c: Use C++ exception handling.
2314 * stack.c: Use C++ exception handling.
2315 * sparc64-linux-tdep.c: Use C++ exception handling.
2316 * solib.c: Use C++ exception handling.
2317 * solib-svr4.c: Use C++ exception handling.
2318 * solib-spu.c: Use C++ exception handling.
2319 * solib-frv.c: Use C++ exception handling.
2320 * solib-dsbt.c: Use C++ exception handling.
2321 * selftest-arch.c: Use C++ exception handling.
2322 * s390-tdep.c: Use C++ exception handling.
2323 * rust-lang.c: Use C++ exception handling.
2324 * rust-exp.y: Use C++ exception handling.
2325 * rs6000-tdep.c: Use C++ exception handling.
2326 * rs6000-aix-tdep.c: Use C++ exception handling.
2327 * riscv-tdep.c: Use C++ exception handling.
2328 * remote.c: Use C++ exception handling.
2329 * remote-fileio.c: Use C++ exception handling.
2330 * record-full.c: Use C++ exception handling.
2331 * record-btrace.c: Use C++ exception handling.
2332 * python/python.c: Use C++ exception handling.
2333 * python/py-value.c: Use C++ exception handling.
2334 * python/py-utils.c: Use C++ exception handling.
2335 * python/py-unwind.c: Use C++ exception handling.
2336 * python/py-type.c: Use C++ exception handling.
2337 * python/py-symbol.c: Use C++ exception handling.
2338 * python/py-record.c: Use C++ exception handling.
2339 * python/py-record-btrace.c: Use C++ exception handling.
2340 * python/py-progspace.c: Use C++ exception handling.
2341 * python/py-prettyprint.c: Use C++ exception handling.
2342 * python/py-param.c: Use C++ exception handling.
2343 * python/py-objfile.c: Use C++ exception handling.
2344 * python/py-linetable.c: Use C++ exception handling.
2345 * python/py-lazy-string.c: Use C++ exception handling.
2346 * python/py-infthread.c: Use C++ exception handling.
2347 * python/py-inferior.c: Use C++ exception handling.
2348 * python/py-gdb-readline.c: Use C++ exception handling.
2349 * python/py-framefilter.c: Use C++ exception handling.
2350 * python/py-frame.c: Use C++ exception handling.
2351 * python/py-finishbreakpoint.c: Use C++ exception handling.
2352 * python/py-cmd.c: Use C++ exception handling.
2353 * python/py-breakpoint.c: Use C++ exception handling.
2354 * python/py-arch.c: Use C++ exception handling.
2355 * printcmd.c: Use C++ exception handling.
2356 * ppc-linux-tdep.c: Use C++ exception handling.
2357 * parse.c: Use C++ exception handling.
2358 * p-valprint.c: Use C++ exception handling.
2359 * objc-lang.c: Use C++ exception handling.
2360 * mi/mi-main.c: Use C++ exception handling.
2361 * mi/mi-interp.c: Use C++ exception handling.
2362 * mi/mi-cmd-stack.c: Use C++ exception handling.
2363 * mi/mi-cmd-break.c: Use C++ exception handling.
2364 * main.c: Use C++ exception handling.
2365 * linux-thread-db.c: Use C++ exception handling.
2366 * linux-tdep.c: Use C++ exception handling.
2367 * linux-nat.c: Use C++ exception handling.
2368 * linux-fork.c: Use C++ exception handling.
2369 * linespec.c: Use C++ exception handling.
2370 * language.c: Use C++ exception handling.
2371 * jit.c: Use C++ exception handling.
2372 * infrun.c: Use C++ exception handling.
2373 * infcmd.c: Use C++ exception handling.
2374 * infcall.c: Use C++ exception handling.
2375 * inf-loop.c: Use C++ exception handling.
2376 * i386-tdep.c: Use C++ exception handling.
2377 * i386-linux-tdep.c: Use C++ exception handling.
2378 * guile/scm-value.c: Use C++ exception handling.
2379 * guile/scm-type.c: Use C++ exception handling.
2380 * guile/scm-symtab.c: Use C++ exception handling.
2381 * guile/scm-symbol.c: Use C++ exception handling.
2382 * guile/scm-pretty-print.c: Use C++ exception handling.
2383 * guile/scm-ports.c: Use C++ exception handling.
2384 * guile/scm-param.c: Use C++ exception handling.
2385 * guile/scm-math.c: Use C++ exception handling.
2386 * guile/scm-lazy-string.c: Use C++ exception handling.
2387 * guile/scm-frame.c: Use C++ exception handling.
2388 * guile/scm-disasm.c: Use C++ exception handling.
2389 * guile/scm-cmd.c: Use C++ exception handling.
2390 * guile/scm-breakpoint.c: Use C++ exception handling.
2391 * guile/scm-block.c: Use C++ exception handling.
2392 * guile/guile-internal.h: Use C++ exception handling.
2393 * gnu-v3-abi.c: Use C++ exception handling.
2394 * gdbtypes.c: Use C++ exception handling.
2395 * frame.c: Use C++ exception handling.
2396 * frame-unwind.c: Use C++ exception handling.
2397 * fbsd-tdep.c: Use C++ exception handling.
2398 * f-valprint.c: Use C++ exception handling.
2399 * exec.c: Use C++ exception handling.
2400 * event-top.c: Use C++ exception handling.
2401 * event-loop.c: Use C++ exception handling.
2402 * eval.c: Use C++ exception handling.
2403 * dwarf2read.c: Use C++ exception handling.
2404 * dwarf2loc.c: Use C++ exception handling.
2405 * dwarf2-frame.c: Use C++ exception handling.
2406 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2407 * dwarf-index-write.c: Use C++ exception handling.
2408 * dwarf-index-cache.c: Use C++ exception handling.
2409 * dtrace-probe.c: Use C++ exception handling.
2410 * disasm-selftests.c: Use C++ exception handling.
2411 * darwin-nat.c: Use C++ exception handling.
2412 * cp-valprint.c: Use C++ exception handling.
2413 * cp-support.c: Use C++ exception handling.
2414 * cp-abi.c: Use C++ exception handling.
2415 * corelow.c: Use C++ exception handling.
2416 * completer.c: Use C++ exception handling.
2417 * compile/compile-object-run.c: Use C++ exception handling.
2418 * compile/compile-object-load.c: Use C++ exception handling.
2419 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2420 * compile/compile-c-symbols.c: Use C++ exception handling.
2421 * common/selftest.c: Use C++ exception handling.
2422 * common/new-op.c: Use C++ exception handling.
2423 * cli/cli-script.c: Use C++ exception handling.
2424 * cli/cli-interp.c: Use C++ exception handling.
2425 * cli/cli-cmds.c: Use C++ exception handling.
2426 * c-varobj.c: Use C++ exception handling.
2427 * btrace.c: Use C++ exception handling.
2428 * breakpoint.c: Use C++ exception handling.
2429 * break-catch-throw.c: Use C++ exception handling.
2430 * arch-utils.c: Use C++ exception handling.
2431 * amd64-tdep.c: Use C++ exception handling.
2432 * ada-valprint.c: Use C++ exception handling.
2433 * ada-typeprint.c: Use C++ exception handling.
2434 * ada-lang.c: Use C++ exception handling.
2435 * aarch64-tdep.c: Use C++ exception handling.
2437 2019-04-08 Tom Tromey <tom@tromey.com>
2439 * xml-support.c (gdb_xml_parser::parse): Update.
2440 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2441 * value.c (show_convenience): Update.
2442 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2443 (test_parse_flags_qcs): Update.
2444 * thread.c (thr_try_catch_cmd): Update.
2445 * target.c (target_translate_tls_address): Update.
2446 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2447 (info_frame_command_core, frame_apply_command_count): Update.
2448 * rust-exp.y (rust_lex_exception_test): Update.
2449 * riscv-tdep.c (riscv_print_one_register_info): Update.
2450 * remote.c (remote_target::enable_btrace): Update.
2451 * record-btrace.c (record_btrace_enable_warn): Update.
2452 * python/py-utils.c (gdbpy_convert_exception): Update.
2453 * printcmd.c (do_one_display, print_variable_and_value): Update.
2454 * mi/mi-main.c (mi_print_exception): Update.
2455 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2456 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2457 * linux-nat.c (linux_nat_target::attach): Update.
2458 * linux-fork.c (class scoped_switch_fork_info): Update.
2459 * infrun.c (displaced_step_prepare): Update.
2460 * infcall.c (call_function_by_hand_dummy): Update.
2461 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2462 * gnu-v3-abi.c (print_one_vtable): Update.
2463 * frame.c (get_prev_frame_always): Update.
2464 * f-valprint.c (info_common_command_for_block): Update.
2465 * exec.c (try_open_exec_file): Update.
2466 * exceptions.c (print_exception, exception_print)
2467 (exception_fprintf, exception_print_same): Update.
2468 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2469 * dwarf-index-cache.c (index_cache::store)
2470 (index_cache::lookup_gdb_index): Update.
2471 * darwin-nat.c (maybe_cache_shell): Update.
2472 * cp-valprint.c (cp_print_value_fields): Update.
2473 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2474 (gcc_cplus_symbol_address): Update.
2475 * compile/compile-c-symbols.c (gcc_convert_symbol)
2476 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2477 * common/selftest.c: Update.
2478 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2480 (exception_try_scope_entry, exception_try_scope_exit): Don't
2482 (struct exception_try_scope): Remove.
2483 (TRY): Don't use exception_try_scope.
2484 (struct gdb_exception): Add constructor, operator=.
2486 (struct gdb_exception_RETURN_MASK_ALL)
2487 (struct gdb_exception_RETURN_MASK_ERROR)
2488 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2489 (struct gdb_quit_bad_alloc): Update.
2490 * common/common-exceptions.c (exception_none): Change
2492 (struct catcher) <state, exception>: Initialize inline.
2493 <prev>: Remove member.
2494 (current_catcher): Remove.
2495 (catchers): New global.
2496 (exceptions_state_mc_init): Simplify.
2497 (catcher_pop): Remove.
2498 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2499 (try_scope_depth, exception_try_scope_entry)
2500 (exception_try_scope_exit): Remove.
2501 (throw_exception_sjlj): Update.
2502 (exception_messages, exception_messages_size): Remove.
2503 (throw_it): Simplify.
2504 (gdb_exception_sliced_copy): Remove.
2505 (throw_exception_cxx): Update.
2506 * cli/cli-script.c (script_from_file): Update.
2507 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2509 * ada-valprint.c (ada_val_print): Update.
2510 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2511 (create_excep_cond_exprs): Update.
2513 2019-04-08 Tom Tromey <tom@tromey.com>
2515 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2516 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2517 (TRY, CATCH, END_CATCH): Remove some definitions.
2518 * common/common-exceptions.c: Don't use GDB_XCPT.
2519 (catcher_list_size): Remove.
2520 (throw_exception, throw_it): Simplify.
2522 2019-04-05 Tom Tromey <tom@tromey.com>
2524 Revert the header-sorting patch.
2525 * ft32-tdep.c: Revert.
2526 * frv-tdep.c: Revert.
2527 * frv-linux-tdep.c: Revert.
2529 * frame-unwind.c: Revert.
2530 * frame-base.c: Revert.
2531 * fork-child.c: Revert.
2532 * findvar.c: Revert.
2533 * findcmd.c: Revert.
2534 * filesystem.c: Revert.
2535 * filename-seen-cache.h: Revert.
2536 * filename-seen-cache.c: Revert.
2537 * fbsd-tdep.c: Revert.
2538 * fbsd-nat.h: Revert.
2539 * fbsd-nat.c: Revert.
2540 * f-valprint.c: Revert.
2541 * f-typeprint.c: Revert.
2543 * extension.h: Revert.
2544 * extension.c: Revert.
2545 * extension-priv.h: Revert.
2546 * expprint.c: Revert.
2549 * exceptions.c: Revert.
2550 * event-top.c: Revert.
2551 * event-loop.c: Revert.
2553 * elfread.c: Revert.
2554 * dwarf2read.h: Revert.
2555 * dwarf2read.c: Revert.
2556 * dwarf2loc.c: Revert.
2557 * dwarf2expr.h: Revert.
2558 * dwarf2expr.c: Revert.
2559 * dwarf2-frame.c: Revert.
2560 * dwarf2-frame-tailcall.c: Revert.
2561 * dwarf-index-write.h: Revert.
2562 * dwarf-index-write.c: Revert.
2563 * dwarf-index-common.c: Revert.
2564 * dwarf-index-cache.h: Revert.
2565 * dwarf-index-cache.c: Revert.
2566 * dummy-frame.c: Revert.
2567 * dtrace-probe.c: Revert.
2570 * disasm-selftests.c: Revert.
2571 * dictionary.c: Revert.
2572 * dicos-tdep.c: Revert.
2573 * demangle.c: Revert.
2576 * darwin-nat.h: Revert.
2577 * darwin-nat.c: Revert.
2578 * darwin-nat-info.c: Revert.
2579 * d-valprint.c: Revert.
2580 * d-namespace.c: Revert.
2583 * csky-tdep.c: Revert.
2584 * csky-linux-tdep.c: Revert.
2585 * cris-tdep.c: Revert.
2586 * cris-linux-tdep.c: Revert.
2587 * cp-valprint.c: Revert.
2588 * cp-support.c: Revert.
2589 * cp-namespace.c: Revert.
2591 * corelow.c: Revert.
2592 * corefile.c: Revert.
2593 * continuations.c: Revert.
2594 * completer.h: Revert.
2595 * completer.c: Revert.
2596 * complaints.c: Revert.
2597 * coffread.c: Revert.
2598 * coff-pe-read.c: Revert.
2599 * cli-out.h: Revert.
2600 * cli-out.c: Revert.
2601 * charset.c: Revert.
2602 * c-varobj.c: Revert.
2603 * c-valprint.c: Revert.
2604 * c-typeprint.c: Revert.
2606 * buildsym.c: Revert.
2607 * buildsym-legacy.c: Revert.
2608 * build-id.h: Revert.
2609 * build-id.c: Revert.
2611 * bsd-uthread.c: Revert.
2612 * breakpoint.h: Revert.
2613 * breakpoint.c: Revert.
2614 * break-catch-throw.c: Revert.
2615 * break-catch-syscall.c: Revert.
2616 * break-catch-sig.c: Revert.
2617 * blockframe.c: Revert.
2619 * bfin-tdep.c: Revert.
2620 * bfin-linux-tdep.c: Revert.
2621 * bfd-target.c: Revert.
2623 * ax-general.c: Revert.
2626 * avr-tdep.c: Revert.
2628 * auto-load.c: Revert.
2629 * arm-wince-tdep.c: Revert.
2630 * arm-tdep.c: Revert.
2631 * arm-symbian-tdep.c: Revert.
2632 * arm-pikeos-tdep.c: Revert.
2633 * arm-obsd-tdep.c: Revert.
2634 * arm-nbsd-tdep.c: Revert.
2635 * arm-nbsd-nat.c: Revert.
2636 * arm-linux-tdep.c: Revert.
2637 * arm-linux-nat.c: Revert.
2638 * arm-fbsd-tdep.c: Revert.
2639 * arm-fbsd-nat.c: Revert.
2640 * arm-bsd-tdep.c: Revert.
2641 * arch-utils.c: Revert.
2642 * arc-tdep.c: Revert.
2643 * arc-newlib-tdep.c: Revert.
2644 * annotate.h: Revert.
2645 * annotate.c: Revert.
2646 * amd64-windows-tdep.c: Revert.
2647 * amd64-windows-nat.c: Revert.
2648 * amd64-tdep.c: Revert.
2649 * amd64-sol2-tdep.c: Revert.
2650 * amd64-obsd-tdep.c: Revert.
2651 * amd64-obsd-nat.c: Revert.
2652 * amd64-nbsd-tdep.c: Revert.
2653 * amd64-nbsd-nat.c: Revert.
2654 * amd64-nat.c: Revert.
2655 * amd64-linux-tdep.c: Revert.
2656 * amd64-linux-nat.c: Revert.
2657 * amd64-fbsd-tdep.c: Revert.
2658 * amd64-fbsd-nat.c: Revert.
2659 * amd64-dicos-tdep.c: Revert.
2660 * amd64-darwin-tdep.c: Revert.
2661 * amd64-bsd-nat.c: Revert.
2662 * alpha-tdep.c: Revert.
2663 * alpha-obsd-tdep.c: Revert.
2664 * alpha-nbsd-tdep.c: Revert.
2665 * alpha-mdebug-tdep.c: Revert.
2666 * alpha-linux-tdep.c: Revert.
2667 * alpha-linux-nat.c: Revert.
2668 * alpha-bsd-tdep.c: Revert.
2669 * alpha-bsd-nat.c: Revert.
2670 * aix-thread.c: Revert.
2672 * addrmap.c: Revert.
2673 * ada-varobj.c: Revert.
2674 * ada-valprint.c: Revert.
2675 * ada-typeprint.c: Revert.
2676 * ada-tasks.c: Revert.
2677 * ada-lang.c: Revert.
2678 * aarch64-tdep.c: Revert.
2679 * aarch64-ravenscar-thread.c: Revert.
2680 * aarch64-newlib-tdep.c: Revert.
2681 * aarch64-linux-tdep.c: Revert.
2682 * aarch64-linux-nat.c: Revert.
2683 * aarch64-fbsd-tdep.c: Revert.
2684 * aarch64-fbsd-nat.c: Revert.
2685 * aarch32-linux-nat.c: Revert.
2687 2019-04-05 Tom Tromey <tom@tromey.com>
2689 * ft32-tdep.c: Sort headers.
2690 * frv-tdep.c: Sort headers.
2691 * frv-linux-tdep.c: Sort headers.
2692 * frame.c: Sort headers.
2693 * frame-unwind.c: Sort headers.
2694 * frame-base.c: Sort headers.
2695 * fork-child.c: Sort headers.
2696 * findvar.c: Sort headers.
2697 * findcmd.c: Sort headers.
2698 * filesystem.c: Sort headers.
2699 * filename-seen-cache.h: Sort headers.
2700 * filename-seen-cache.c: Sort headers.
2701 * fbsd-tdep.c: Sort headers.
2702 * fbsd-nat.h: Sort headers.
2703 * fbsd-nat.c: Sort headers.
2704 * f-valprint.c: Sort headers.
2705 * f-typeprint.c: Sort headers.
2706 * f-lang.c: Sort headers.
2707 * extension.h: Sort headers.
2708 * extension.c: Sort headers.
2709 * extension-priv.h: Sort headers.
2710 * expprint.c: Sort headers.
2711 * exec.h: Sort headers.
2712 * exec.c: Sort headers.
2713 * exceptions.c: Sort headers.
2714 * event-top.c: Sort headers.
2715 * event-loop.c: Sort headers.
2716 * eval.c: Sort headers.
2717 * elfread.c: Sort headers.
2718 * dwarf2read.h: Sort headers.
2719 * dwarf2read.c: Sort headers.
2720 * dwarf2loc.c: Sort headers.
2721 * dwarf2expr.h: Sort headers.
2722 * dwarf2expr.c: Sort headers.
2723 * dwarf2-frame.c: Sort headers.
2724 * dwarf2-frame-tailcall.c: Sort headers.
2725 * dwarf-index-write.h: Sort headers.
2726 * dwarf-index-write.c: Sort headers.
2727 * dwarf-index-common.c: Sort headers.
2728 * dwarf-index-cache.h: Sort headers.
2729 * dwarf-index-cache.c: Sort headers.
2730 * dummy-frame.c: Sort headers.
2731 * dtrace-probe.c: Sort headers.
2732 * disasm.h: Sort headers.
2733 * disasm.c: Sort headers.
2734 * disasm-selftests.c: Sort headers.
2735 * dictionary.c: Sort headers.
2736 * dicos-tdep.c: Sort headers.
2737 * demangle.c: Sort headers.
2738 * dcache.h: Sort headers.
2739 * dcache.c: Sort headers.
2740 * darwin-nat.h: Sort headers.
2741 * darwin-nat.c: Sort headers.
2742 * darwin-nat-info.c: Sort headers.
2743 * d-valprint.c: Sort headers.
2744 * d-namespace.c: Sort headers.
2745 * d-lang.c: Sort headers.
2746 * ctf.c: Sort headers.
2747 * csky-tdep.c: Sort headers.
2748 * csky-linux-tdep.c: Sort headers.
2749 * cris-tdep.c: Sort headers.
2750 * cris-linux-tdep.c: Sort headers.
2751 * cp-valprint.c: Sort headers.
2752 * cp-support.c: Sort headers.
2753 * cp-namespace.c: Sort headers.
2754 * cp-abi.c: Sort headers.
2755 * corelow.c: Sort headers.
2756 * corefile.c: Sort headers.
2757 * continuations.c: Sort headers.
2758 * completer.h: Sort headers.
2759 * completer.c: Sort headers.
2760 * complaints.c: Sort headers.
2761 * coffread.c: Sort headers.
2762 * coff-pe-read.c: Sort headers.
2763 * cli-out.h: Sort headers.
2764 * cli-out.c: Sort headers.
2765 * charset.c: Sort headers.
2766 * c-varobj.c: Sort headers.
2767 * c-valprint.c: Sort headers.
2768 * c-typeprint.c: Sort headers.
2769 * c-lang.c: Sort headers.
2770 * buildsym.c: Sort headers.
2771 * buildsym-legacy.c: Sort headers.
2772 * build-id.h: Sort headers.
2773 * build-id.c: Sort headers.
2774 * btrace.c: Sort headers.
2775 * bsd-uthread.c: Sort headers.
2776 * breakpoint.h: Sort headers.
2777 * breakpoint.c: Sort headers.
2778 * break-catch-throw.c: Sort headers.
2779 * break-catch-syscall.c: Sort headers.
2780 * break-catch-sig.c: Sort headers.
2781 * blockframe.c: Sort headers.
2782 * block.c: Sort headers.
2783 * bfin-tdep.c: Sort headers.
2784 * bfin-linux-tdep.c: Sort headers.
2785 * bfd-target.c: Sort headers.
2786 * bcache.c: Sort headers.
2787 * ax-general.c: Sort headers.
2788 * ax-gdb.h: Sort headers.
2789 * ax-gdb.c: Sort headers.
2790 * avr-tdep.c: Sort headers.
2791 * auxv.c: Sort headers.
2792 * auto-load.c: Sort headers.
2793 * arm-wince-tdep.c: Sort headers.
2794 * arm-tdep.c: Sort headers.
2795 * arm-symbian-tdep.c: Sort headers.
2796 * arm-pikeos-tdep.c: Sort headers.
2797 * arm-obsd-tdep.c: Sort headers.
2798 * arm-nbsd-tdep.c: Sort headers.
2799 * arm-nbsd-nat.c: Sort headers.
2800 * arm-linux-tdep.c: Sort headers.
2801 * arm-linux-nat.c: Sort headers.
2802 * arm-fbsd-tdep.c: Sort headers.
2803 * arm-fbsd-nat.c: Sort headers.
2804 * arm-bsd-tdep.c: Sort headers.
2805 * arch-utils.c: Sort headers.
2806 * arc-tdep.c: Sort headers.
2807 * arc-newlib-tdep.c: Sort headers.
2808 * annotate.h: Sort headers.
2809 * annotate.c: Sort headers.
2810 * amd64-windows-tdep.c: Sort headers.
2811 * amd64-windows-nat.c: Sort headers.
2812 * amd64-tdep.c: Sort headers.
2813 * amd64-sol2-tdep.c: Sort headers.
2814 * amd64-obsd-tdep.c: Sort headers.
2815 * amd64-obsd-nat.c: Sort headers.
2816 * amd64-nbsd-tdep.c: Sort headers.
2817 * amd64-nbsd-nat.c: Sort headers.
2818 * amd64-nat.c: Sort headers.
2819 * amd64-linux-tdep.c: Sort headers.
2820 * amd64-linux-nat.c: Sort headers.
2821 * amd64-fbsd-tdep.c: Sort headers.
2822 * amd64-fbsd-nat.c: Sort headers.
2823 * amd64-dicos-tdep.c: Sort headers.
2824 * amd64-darwin-tdep.c: Sort headers.
2825 * amd64-bsd-nat.c: Sort headers.
2826 * alpha-tdep.c: Sort headers.
2827 * alpha-obsd-tdep.c: Sort headers.
2828 * alpha-nbsd-tdep.c: Sort headers.
2829 * alpha-mdebug-tdep.c: Sort headers.
2830 * alpha-linux-tdep.c: Sort headers.
2831 * alpha-linux-nat.c: Sort headers.
2832 * alpha-bsd-tdep.c: Sort headers.
2833 * alpha-bsd-nat.c: Sort headers.
2834 * aix-thread.c: Sort headers.
2835 * agent.c: Sort headers.
2836 * addrmap.c: Sort headers.
2837 * ada-varobj.c: Sort headers.
2838 * ada-valprint.c: Sort headers.
2839 * ada-typeprint.c: Sort headers.
2840 * ada-tasks.c: Sort headers.
2841 * ada-lang.c: Sort headers.
2842 * aarch64-tdep.c: Sort headers.
2843 * aarch64-ravenscar-thread.c: Sort headers.
2844 * aarch64-newlib-tdep.c: Sort headers.
2845 * aarch64-linux-tdep.c: Sort headers.
2846 * aarch64-linux-nat.c: Sort headers.
2847 * aarch64-fbsd-tdep.c: Sort headers.
2848 * aarch64-fbsd-nat.c: Sort headers.
2849 * aarch32-linux-nat.c: Sort headers.
2851 2019-04-04 Tom Tromey <tom@tromey.com>
2853 * varobj.c (varobj_create): Update.
2854 * rust-exp.y (struct rust_parser) <update_innermost_block,
2855 lookup_symbol>: New methods.
2856 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2858 (rust_parser::rust_lookup_type)
2859 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2860 * printcmd.c (display_command, do_one_display): Update.
2861 * parser-defs.h (struct parser_state) <parser_state>: Add
2862 "tracker" parameter.
2863 (block_tracker): New member.
2864 (class innermost_block_tracker) <innermost_block_tracker>: Add
2866 <reset>: Remove method.
2867 (innermost_block): Don't declare.
2868 (null_post_parser): Update.
2869 * parse.c (innermost_block): Remove global.
2870 (write_dollar_variable): Update.
2871 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2872 Remove "tracker_types" parameter.
2873 (parse_expression): Add "tracker" parameter.
2874 (parse_expression_for_completion): Update.
2875 (null_post_parser): Add "tracker" parameter.
2876 * p-exp.y: Update rules.
2877 * m2-exp.y: Update rules.
2878 * language.h (struct language_defn) <la_post_parser>: Add
2879 "tracker" parameter.
2880 * go-exp.y: Update rules.
2881 * f-exp.y: Update rules.
2882 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2884 * d-exp.y: Update rules.
2885 * c-exp.y: Update rules.
2886 * breakpoint.c (set_breakpoint_condition): Create an
2887 innermost_block_tracker.
2888 (watch_command_1): Likewise.
2889 * ada-lang.c (resolve): Add "tracker" parameter.
2890 (resolve_subexp): Likewise.
2891 * ada-exp.y (write_var_from_sym): Update.
2893 2019-04-04 Tom Tromey <tom@tromey.com>
2895 * type-stack.h: New file.
2896 * type-stack.c: New file.
2897 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2899 (insert_into_type_stack, insert_type, push_type, push_type_int)
2900 (insert_type_address_space, pop_type, pop_type_int)
2901 (pop_typelist, pop_type_stack, append_type_stack)
2902 (push_type_stack, get_type_stack, push_typelist)
2903 (follow_type_instance_flags, follow_types): Don't declare.
2904 * parse.c (type_stack): Remove global.
2905 (parse_exp_in_context): Update.
2906 (insert_into_type_stack, insert_type, push_type, push_type_int)
2907 (insert_type_address_space, pop_type, pop_type_int)
2908 (pop_typelist, pop_type_stack, append_type_stack)
2909 (push_type_stack, get_type_stack, push_typelist)
2910 (follow_type_instance_flags, follow_types): Remove (moved to
2912 * f-exp.y (type_stack): New global.
2914 (push_kind_type, f_parse): Update.
2915 * d-exp.y (type_stack): New global.
2918 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2920 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2921 (HFILES_NO_SRCDIR): Add type-stack.h.
2923 2019-04-04 Tom Tromey <tom@tromey.com>
2925 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2926 (rust_parser::convert_ast_to_expression, rust_parse)
2927 (rust_lex_test_completion, rust_lex_tests): Update.
2928 * parser-defs.h (struct expr_completion_state): New.
2929 (struct parser_state) <parser_state>: Add completion parameter.
2930 <mark_struct_expression, mark_completion_tag>: New methods.
2931 <parse_completion, m_completion_state>: New members.
2932 (prefixify_expression, null_post_parser): Update.
2933 (mark_struct_expression, mark_completion_tag): Don't declare.
2934 * parse.c (parse_completion, expout_last_struct)
2935 (expout_tag_completion_type, expout_completion_name): Remove
2937 (parser_state::mark_struct_expression)
2938 (parser_state::mark_completion_tag): Now methods.
2939 (prefixify_expression): Add last_struct parameter.
2940 (prefixify_subexp): Likewise.
2941 (parse_exp_1): Update.
2942 (parse_exp_in_context): Add cstate parameter. Update.
2943 (parse_expression_for_completion): Create an
2944 expr_completion_state.
2945 (null_post_parser): Add "completion" parameter.
2946 * p-exp.y: Update rules.
2948 * language.h (struct language_defn) <la_post_parser>: Add
2949 "completing" parameter.
2950 * go-exp.y: Update rules.
2951 (lex_one_token): Update.
2952 * expression.h (parse_completion): Don't declare.
2953 * d-exp.y: Update rules.
2954 (lex_one_token): Update rules.
2955 * c-exp.y: Update rules.
2956 (lex_one_token): Update.
2957 * ada-lang.c (resolve): Add "parse_completion" parameter.
2958 (resolve_subexp): Likewise.
2959 (ada_resolve_function): Likewise.
2961 2019-04-04 Tom Tromey <tom@tromey.com>
2963 * parser-defs.h (struct parser_state) <start_arglist,
2964 end_arglist>: New methods.
2965 <arglist_len, m_funcall_chain>: New members.
2966 (arglist_len, start_arglist, end_arglist): Don't declare.
2967 * parse.c (arglist_len, funcall_chain): Remove global.
2968 (start_arglist, end_arglist): Remove functions.
2969 (parse_exp_in_context): Update.
2970 * p-exp.y: Update rules.
2971 * m2-exp.y: Update rules.
2972 * go-exp.y: Update rules.
2973 * f-exp.y: Update rules.
2974 * d-exp.y: Update rules.
2975 * c-exp.y: Update rules.
2977 2019-04-04 Tom Tromey <tom@tromey.com>
2979 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2980 lex_operator, push_back>: New methods.
2982 (rust_parser::lex_hex, lex_escape): Rename and update.
2983 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2984 (rust_parser::lex_operator): Rename and update.
2985 (rust_parser::lex_number, rustyylex, rustyyerror)
2986 (rust_lex_test_init, rust_lex_test_sequence)
2987 (rust_lex_test_push_back, rust_lex_tests): Update.
2988 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2990 <lexptr, prev_lexptr>: New members.
2991 (lexptr, prev_lexptr): Don't declare.
2992 * parse.c (lexptr, prev_lexptr): Remove globals.
2993 (parse_exp_in_context): Update.
2994 * p-exp.y (yylex, yyerror): Update.
2995 * m2-exp.y (parse_number, yylex, yyerror): Update.
2996 * go-exp.y (lex_one_token, yyerror): Update.
2997 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2998 * d-exp.y (lex_one_token, yyerror): Update.
2999 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3000 (lex_one_token, yyerror): Update.
3001 * ada-lex.l (YY_INPUT): Update.
3002 (rewind_to_char): Update.
3003 * ada-exp.y (yyerror): Update.
3005 2019-04-04 Tom Tromey <tom@tromey.com>
3007 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3008 * parser-defs.h (struct parser_state) <parser_state>: Add new
3010 <comma_terminates>: New member.
3011 (comma_terminates): Don't declare global.
3012 * parse.c (comma_terminates): Remove global.
3013 (parse_exp_in_context): Update.
3014 * p-exp.y (yylex): Update.
3015 * m2-exp.y (yylex): Update.
3016 * go-exp.y (lex_one_token): Update.
3017 * f-exp.y (yylex): Update.
3018 * d-exp.y (lex_one_token): Update.
3019 * c-exp.y (lex_one_token): Update.
3020 * ada-lex.l: Update.
3022 2019-04-04 Tom Tromey <tom@tromey.com>
3024 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3025 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3026 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3027 * parser-defs.h (paren_depth): Don't declare.
3028 * parse.c (paren_depth): Remove global.
3029 (parse_exp_in_context): Update.
3030 * p-exp.y (paren_depth): New global.
3031 (pascal_parse): Initialize it.
3032 * m2-exp.y (paren_depth): New global.
3033 (m2_parse): Initialize it.
3034 * go-exp.y (paren_depth): New global.
3035 (go_parse): Initialize it.
3036 * f-exp.y (paren_depth): New global.
3037 (f_parse): Initialize it.
3038 * d-exp.y (paren_depth): New global.
3039 (d_parse): Initialize it.
3040 * c-exp.y (paren_depth): New global.
3041 (c_parse): Initialize it.
3042 * ada-lex.l (paren_depth): New global.
3043 (lexer_init): Initialize it.
3045 2019-04-04 Tom Tromey <tom@tromey.com>
3047 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3048 (rust_parser::convert_ast_to_type)
3049 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3050 * parser-defs.h (struct parser_state) <parser_state>: Add
3051 parameters. Initialize new members.
3052 <expression_context_block, expression_context_pc>: New members.
3053 * parse.c (expression_context_block, expression_context_pc):
3055 (parse_exp_in_context): Update.
3056 * p-exp.y: Update all rules.
3058 * m2-exp.y: Update all rules.
3060 * go-exp.y (yylex): Update.
3061 * f-exp.y (yylex): Update.
3062 * d-exp.y: Update all rules.
3064 * c-exp.y: Update all rules.
3065 (lex_one_token, classify_name, yylex, c_parse): Update.
3066 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3068 2019-04-04 Tom Tromey <tom@tromey.com>
3070 * gdbarch.h, gdbarch.c: Rebuild.
3071 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3073 (struct stap_parse_info): Replace "parser_state" with
3075 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3076 (parser_state): New class.
3077 * parse.c (expr_builder): Rename.
3078 (expr_builder::release): Rename.
3079 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3080 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3081 (write_exp_elt_longcst, write_exp_elt_floatcst)
3082 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3083 (write_exp_string_vector, write_exp_bitstring)
3084 (write_exp_msymbol, mark_struct_expression)
3085 (write_dollar_variable)
3086 (insert_type_address_space, increase_expout_size): Replace
3087 "parser_state" with "expr_builder".
3088 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3089 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3090 "parser_state" with "expr_builder".
3092 2019-04-04 Tom Tromey <tom@tromey.com>
3094 * rust-exp.y: Replace "parse_language" with method call.
3096 (yylex): Replace "parse_language" with method call.
3098 (yylex): Replace "parse_language" with method call.
3099 * go-exp.y (classify_name): Replace "parse_language" with method
3101 * f-exp.y (yylex): Replace "parse_language" with method call.
3102 * d-exp.y (lex_one_token): Replace "parse_language" with method
3105 (lex_one_token, classify_name, yylex): Replace "parse_language"
3107 * ada-exp.y (find_primitive_type, type_char)
3108 (type_system_address): Replace "parse_language" with method call.
3110 2019-04-04 Tom Tromey <tom@tromey.com>
3112 * rust-exp.y: Replace "parse_gdbarch" with method call.
3113 * parse.c (write_dollar_variable, insert_type_address_space):
3114 Replace "parse_gdbarch" with method call.
3115 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3117 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3119 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3120 "parse_gdbarch" with method call.
3121 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3123 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3124 "parse_gdbarch" with method call.
3125 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3126 "parse_gdbarch" with method call.
3127 * c-exp.y (parse_type, parse_number, classify_name): Replace
3128 "parse_gdbarch" with method call.
3129 * ada-lex.l: Replace "parse_gdbarch" with method call.
3130 * ada-exp.y (parse_type, find_primitive_type, type_char)
3131 (type_system_address): Replace "parse_gdbarch" with method call.
3133 2019-04-04 Tom Tromey <tom@tromey.com>
3135 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3136 * stap-probe.c (stap_parse_argument): Update.
3137 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3138 initial_size parameter.
3139 * rust-exp.y (rust_lex_tests): Update.
3140 * parse.c (parser_state): Update.
3141 (parse_exp_in_context): Update.
3142 * parser-defs.h (struct parser_state) <parser_state>: Remove
3143 "initial_size" parameter.
3145 2019-04-04 Tom Tromey <tom@tromey.com>
3147 * parser-defs.h (increase_expout_size): Don't declare.
3148 * parse.c (increase_expout_size): Now static.
3150 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3152 * gnu-nat.c (gnu_nat_target::wait): Fix
3153 target_waitstatus_to_string call.
3155 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3157 * eval.c (evaluate_subexp_standard): Handle internal functions
3158 during Fortran function call handling.
3160 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3162 * NEWS: Mention new internal functions.
3163 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3164 (read_base_type): Use dwarf2_init_complex_target_type.
3165 * value.c (creal_internal_fn): New function.
3166 (cimag_internal_fn): New function.
3167 (_initialize_values): Register new internal functions.
3169 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3171 * infrun.c (stop_all_threads): If debug_infrun, always
3172 trace the wait status after wait_one, using
3173 target_waitstatus_to_string and target_pid_to_str.
3174 (handle_inferior_event): Replace various trace of
3175 wait status kind by a single trace.
3176 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3177 wait status kind image by target_waitstatus_to_string.
3178 * target/waitstatus.c (target_waitstatus_to_string): Fix
3181 2019-04-01 Tom Tromey <tromey@adacore.com>
3184 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3186 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3187 Pedro Alves <palves@redhat.com>
3189 * top.c (quit_force): Call 'finalize_values'.
3190 * value.c (finalize_values): New function.
3191 * value.h (finalize_values): Declare.
3193 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3195 * NEWS: Announce $_gdb_major and $_gdb_minor.
3197 * top.c (init_gdb_version_vars): New function.
3198 (gdb_init): Call init_gdb_version_vars.
3200 2019-03-29 Tom Tromey <tromey@adacore.com>
3202 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3203 help text. Remove dead code.
3205 2019-03-29 Keith Seitz <keiths@redhat.com>
3207 From Siddhesh Poyarekar:
3208 * f-lang.h (f77_get_upperbound): Return LONGEST.
3209 (f77_get_lowerbound): Likewise.
3210 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3211 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3213 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3214 plongest to format print it.
3215 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3216 (f77_get_upperbound): Likewise.
3217 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3218 LOWER_BOUND to LONGEST.
3219 (f77_create_arrayprint_offset_tbl): Likewise.
3221 2019-03-29 Keith Seitz <keiths@redhat.com>
3223 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3224 %s/pulongest for TYPE_LENGTH instead of %d in format
3226 * ada-typerint.c (ada_print_type): Likewise.
3227 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3228 * compile/compile-c-support.c (generate_register_struct): Likewise.
3229 * gdbtypes.c (recursive_dump_type): Likewise.
3230 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3231 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3232 instead of %d in format strings.
3233 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3234 to std::min to ULONGEST.
3235 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3236 instead of %d in format strings.
3237 * tracepoint.c (info_scope_command): Likewise.
3238 * typeprint.c (print_offset_data::update)
3239 (print_offset_data::finish): Likewise.
3240 * xtensa-tdep.c (xtensa_store_return_value)
3241 (xtensa_push_dummy_call): Likewise.
3243 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3245 * windows-nat.c (display_selector): Fixed format specifications
3248 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3250 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3252 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3254 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3255 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3256 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3257 (nios2_linux_init_abi): Install it.
3259 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3261 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3263 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3265 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3267 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3268 Tom Tromey <tromey@adacore.com>
3270 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3272 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3274 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3275 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3276 method to compute the bounds of range types. Also print "[evaluated]"
3277 if the bounds' values come from a dynamic evaluation.
3279 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3281 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3282 whitespace when pretty printing is on.
3284 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3286 * ppc-linux-nat.c: Add include.
3288 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3290 * NEWS: Mention AArch64 Pointer Authentication.
3292 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3294 * arm-linux-nat.c: Add include.
3296 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3298 * source-cache.c (source_cache::get_source_lines): Re-read
3299 fullname after calling open_source_file.
3301 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3303 * NEWS: Mention TLS support for FreeBSD.
3305 2019-03-25 Tom Tromey <tromey@adacore.com>
3307 * minsyms.c (BUNCH_SIZE): Update comment.
3308 (~minimal_symbol_reader): Remove old comment.
3309 (compact_minimal_symbols): Update comment.
3310 (minimal_symbol_reader::install): Remove old comment. Update
3313 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3315 * s390-linux-nat.c: Add include.
3317 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3319 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3320 Call linux_get_hwcap.
3321 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3323 (aarch64_linux_get_hwcap): Remove function.
3324 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3326 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3328 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3329 * linux-tdep.c (linux_get_hwcap): Add function.
3330 (linux_get_hwcap2): Likewise.
3331 * linux-tdep.h (linux_get_hwcap): Add declaration.
3332 (linux_get_hwcap2): Likewise.
3333 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3334 (ppc_linux_get_hwcap2): Likewise.
3335 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3337 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3338 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3339 (ppc_linux_nat_target::read_description): Likewise.
3340 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3341 * s390-linux-nat.c: Likewise.
3342 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3344 2019-03-24 Tom Tromey <tom@tromey.com>
3346 * ada-lang.c (standard_lookup): Simplify initialization.
3347 (ada_lookup_symbol_nonlocal): Simplify return.
3348 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3349 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3350 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3351 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3353 * solib.c (solib_global_lookup): Simplify.
3354 * symtab.c (null_block_symbol): Remove.
3355 (symbol_cache_lookup): Simplify returns.
3356 (lookup_language_this): Simplify returns.
3357 (lookup_symbol_aux): Simplify return.
3358 (lookup_local_symbol): Simplify returns.
3359 (lookup_global_symbol_from_objfile): Simplify return.
3360 (lookup_symbol_in_objfile_symtabs)
3361 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3362 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3363 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3364 * cp-namespace.c (cp_lookup_bare_symbol)
3365 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3366 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3367 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3368 (cp_lookup_symbol_via_imports): Simplify initialization.
3369 (find_symbol_in_baseclass): Likewise.
3370 * symtab.h (null_block_symbol): Remove.
3371 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3372 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3373 (d_lookup_symbol_module): Likewise.
3374 (find_symbol_in_baseclass): Simplify initialization.
3376 2019-03-24 Tom Tromey <tom@tromey.com>
3378 * expression.h: Don't include symtab.h.
3379 (struct block): Forward declare.
3381 2019-03-24 Tom Tromey <tom@tromey.com>
3383 * c-exp.y (typebase): Remove casts.
3384 * gdbtypes.c (lookup_unsigned_typename, )
3385 (lookup_signed_typename): Remove cast.
3386 * eval.c (parse_to_comma_and_eval): Remove cast.
3387 * parse.c (write_dollar_variable): Remove cast.
3388 * block.h (struct block) <superblock>: Now const.
3389 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3390 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3391 (map_block): Make "block" const.
3392 * symfile.h (struct quick_symbol_functions)
3393 <map_matching_symbols>: Constify block argument to "callback".
3394 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3396 (find_pc_sect_compunit_symtab): Make "b" const.
3397 (find_symbol_at_address): Likewise.
3398 (search_symbols): Likewise.
3399 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3400 (dw2_debug_names_lookup_symbol): Likewise.
3401 (dw2_map_matching_symbols): Update.
3402 * p-valprint.c (pascal_val_print): Remove "block".
3403 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3404 (aux_add_nonlocal_symbols): Make "block" const.
3405 (resolve_subexp): Remove cast.
3406 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3408 (iterate_over_file_blocks): Likewise.
3409 * f-exp.y (%union) <bval>: Remove.
3410 * coffread.c (patch_opaque_types): Make "b" const.
3411 * spu-tdep.c (spu_catch_start): Make "block" const.
3412 * c-valprint.c (print_unpacked_pointer): Remove "block".
3413 * symmisc.c (dump_symtab_1): Make "b" const.
3414 (block_depth): Make "block" const.
3415 * d-exp.y (%union) <bval>: Remove.
3416 * cp-support.h (cp_lookup_rtti_type): Update.
3417 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3418 * psymtab.c (psym_lookup_symbol): Make "block" const.
3419 (maintenance_check_psymtabs): Make "b" const.
3420 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3421 (enumerate_locals, enumerate_args): Update.
3422 * python/py-symtab.c (stpy_global_block): Make "block" const.
3423 (stpy_static_block): Likewise.
3424 * inline-frame.c (block_starting_point_at): Make "new_block"
3426 * block.c (find_block_in_blockvector): Make return type const.
3427 (blockvector_for_pc_sect): Make "b" const.
3428 (find_block_in_blockvector): Make "b" const.
3430 2019-03-23 Tom Tromey <tom@tromey.com>
3432 * varobj.c (varobj_create): Update.
3433 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3434 * printcmd.c (display_command, do_one_display): Don't reset
3436 * parser-defs.h (enum innermost_block_tracker_type): Move to
3438 (innermost_block): Update comment.
3439 * parse.c (parse_exp_1): Add tracker_types parameter.
3440 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3441 tracker_types parameter. Reset innermost_block.
3442 (parse_exp_in_context): Remove.
3443 (parse_expression_for_completion): Update.
3444 * objfiles.c (~objfile): Don't reset expression_context_block or
3446 * expression.h (enum innermost_block_tracker_type): Move from
3448 (parse_exp_1): Add tracker_types parameter.
3449 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3450 reset innermost_block.
3452 2019-03-23 Tom Tromey <tom@tromey.com>
3454 * objfiles.h: Include bcache.h.
3456 2019-03-23 Tom Tromey <tom@tromey.com>
3458 * linespec.c (get_current_search_block): Use
3459 scoped_restore_current_language.
3460 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3462 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3463 Jiong Wang <jiong.wang@arm.com>
3465 * aarch64-linux-tdep.c
3466 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3468 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3470 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3471 Jiong Wang <jiong.wang@arm.com>
3473 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3475 (aarch64_analyze_prologue_test): Add PACIASP test.
3476 (aarch64_prologue_prev_register): Unmask PC value.
3478 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3479 Jiong Wang <jiong.wang@arm.com>
3481 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3482 (aarch64_dwarf2_prev_register): Unmask PC value.
3483 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3484 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3485 DW_CFA_AARCH64_negate_ra_state.
3486 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3488 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3489 Jiong Wang <jiong.wang@arm.com>
3491 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3493 (aarch64_pseudo_register_name): Likewise.
3494 (aarch64_pseudo_register_type): Likewise.
3495 (aarch64_pseudo_register_reggroup_p): Likewise.
3496 (aarch64_gdbarch_init): Add pauth registers.
3497 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3498 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3499 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3500 (struct gdbarch_tdep): Add regnum for ra_state.
3502 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3503 Jiong Wang <jiong.wang@arm.com>
3505 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3507 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3508 Jiong Wang <jiong.wang@arm.com>
3510 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3512 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3513 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3514 (aarch64_gdbarch_init): Add puth registers.
3515 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3516 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3517 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3519 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3520 Jiong Wang <jiong.wang@arm.com>
3522 * aarch64-linux-nat.c
3523 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3524 * aarch64-linux-tdep.c
3525 (aarch64_linux_core_read_description): Likewise.
3526 (aarch64_linux_get_hwcap): New function.
3527 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3528 (aarch64_linux_get_hwcap): New declaration.
3530 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3531 Jiong Wang <jiong.wang@arm.com>
3533 * aarch64-linux-nat.c
3534 (aarch64_linux_nat_target::read_description): Add pauth param.
3535 * aarch64-linux-tdep.c
3536 (aarch64_linux_core_read_description): Likewise.
3537 * aarch64-tdep.c (struct target_desc): Add in pauth.
3538 (aarch64_read_description): Add pauth param.
3539 (aarch64_gdbarch_init): Likewise.
3540 * aarch64-tdep.h (aarch64_read_description): Likewise.
3541 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3542 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3543 * features/Makefile: Add new files.
3544 * features/aarch64-pauth.c: New file.
3545 * features/aarch64-pauth.xml: New file.
3547 2019-03-20 Tom Tromey <tromey@adacore.com>
3549 * infrun.c (handle_inferior_event): Rename from
3550 handle_inferior_event_1. Create a scoped_value_mark.
3551 (handle_inferior_event): Remove.
3553 2019-03-19 Tom Tromey <tromey@adacore.com>
3555 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3556 * infrun.h (print_stop_event): Add "displays" parameter.
3557 * infrun.c (print_stop_event): Add "displays" parameter.
3559 2019-03-19 Pedro Alves <palves@redhat.com>
3561 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3562 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3563 to -1. Fix TABs vs spaces.
3564 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3565 * tui/tui-out.h (tui_ui_out) Add intro comments.
3566 <m_line, m_start_of_line>: In-class initialize, and add describing
3569 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3571 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3573 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3575 2019-03-18 Pedro Alves <palves@redhat.com>
3576 Eli Zaretskii <eliz@gnu.org>
3578 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3579 m_line and m_start_of_line.
3581 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3583 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3584 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3585 it returns a newline. This fixes a regression in TU mode, whereby
3586 the next line is output on the same screen line as the user input.
3588 2019-03-18 Tom Tromey <tromey@adacore.com>
3590 * minsyms.c (minimal_symbol_reader::install): Remove call to
3593 2019-03-18 Pedro Alves <palves@redhat.com>
3595 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3597 (apply_style): New, factored out from ...
3598 (apply_ansi_escape): ... this. Handle reverse video mode.
3599 (tui_set_reverse_mode): New function.
3600 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3601 * tui/tui-winsource.c (tui_show_source_line): Use
3602 tui_set_reverse_mode instead of setting A_STANDOUT.
3603 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3606 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3608 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3611 2019-03-18 Tom Tromey <tromey@adacore.com>
3613 * ada-lang.c (empty_array): Add "high" parameter.
3614 (ada_evaluate_subexp): Update.
3616 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3618 * unittests/string_view-selftests.c: Define
3619 _initialize_string_view_selftests unconditionally.
3621 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3624 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3626 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3629 * windows-nat.c (display_selector): Fix format specifiers.
3631 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3633 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3634 tui_refill_source_window instead of tui_refresh_win, to update the
3635 current execution line. This fixes redisplay of the current line
3636 when stepping through the code with "next" or "step".
3638 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3640 * source-cache.c (source_cache::get_source_lines): Call
3641 find_source_lines to initialize s->nlines. This fixes vertical
3642 scrolling of TUI source window when the DOWN arrow is pressed.
3644 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3646 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3647 linux-thread-db.c (_initialize_thread_db): Likewise.
3649 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3651 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3652 wclrtoeol in tui_show_source_line". This reverts changes made in
3653 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3655 2019-03-15 Tom Tromey <tom@tromey.com>
3657 * symtab.h (struct minimal_symbol): Derive from
3658 general_symbol_info.
3659 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3660 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3661 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3662 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3663 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3664 (MSYMBOL_SEARCH_NAME): Update.
3665 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3666 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3667 * minsyms.c (minimal_symbol_reader::record_full): Update.
3669 2019-03-15 Tom Tromey <tom@tromey.com>
3671 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3673 2019-03-15 Tom Tromey <tom@tromey.com>
3675 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3677 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3679 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3680 (build_minimal_symbol_hash_tables)
3681 (minimal_symbol_reader::install): Update.
3683 2019-03-15 Tom Tromey <tom@tromey.com>
3685 * symtab.c (create_demangled_names_hash): Update.
3686 (symbol_set_names): Update.
3687 * objfiles.h (struct objfile_per_bfd_storage)
3688 <demangled_names_hash>: Now an htab_up.
3689 * objfiles.c (objfile_per_bfd_storage): Simplify.
3691 2019-03-15 Tom Tromey <tom@tromey.com>
3693 * objfiles.h (struct objfile_per_bfd_storage): Declare
3695 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3697 (get_objfile_bfd_data): Use new. Don't initialize
3699 (free_objfile_per_bfd_storage): Remove.
3700 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3702 2019-03-15 Tom Tromey <tom@tromey.com>
3704 * symfile.c (reread_symbols): Update.
3705 * objfiles.c (objfile::objfile): Update.
3706 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3707 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3709 (minimal_symbol_reader::install): Update.
3710 (terminate_minimal_symbol_table): Remove.
3711 * jit.c (jit_object_close_impl): Update.
3713 2019-03-15 Tom Tromey <tom@tromey.com>
3715 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3718 2019-03-15 Tom Tromey <tom@tromey.com>
3720 * objfiles.h (struct objfile_per_bfd_storage)
3721 <demangled_hash_languages>: Now a bitset.
3722 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3723 (lookup_minimal_symbol): Update.
3725 2019-03-15 Tom Tromey <tom@tromey.com>
3727 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3728 Don't return the symbol.
3729 * coffread.c (record_minimal_symbol): Use record_full.
3731 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3733 The MS-Windows port of ncurses fails to switch to a color pair if
3734 one or both of the colors are the implicit default colors. This
3735 change records the default colors when TUI is initialized, and
3736 then specifies them explicitly when a color pair uses the default
3737 colors. This allows color styling in TUI mode on MS-Windows.
3739 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3741 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3742 colors in ncurses_norm_attr.
3743 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3744 "none", replace it with the default color recorded in
3747 2019-03-14 Tom Tromey <tromey@adacore.com>
3749 * source-cache.h (class source_cache) <get_source_lines>: Return
3751 * source-cache.c (source_cache::extract_lines): Handle case where
3752 first_pos==npos. Return std::string.
3753 (source_cache::get_source_lines): Update.
3755 2019-03-14 Tom Tromey <tromey@adacore.com>
3757 * NEWS: Add item for "style sources" commands.
3758 * source-cache.c (source_cache::get_source_lines): Check
3760 * cli/cli-style.c (source_styling): New global.
3761 (_initialize_cli_style): Add "style sources" commands.
3762 (show_style_sources): New function.
3763 * cli/cli-style.h (source_styling): Declare.
3765 2019-03-14 Pedro Alves <palves@redhat.com>
3766 Tom Tromey <tromey@adacore.com>
3768 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3769 * tui/tui-winsource.c (tui_refill_source_window): New function,
3771 (tui_horizontal_source_scroll): ... here. Move some logic.
3772 * cli/cli-style.c (set_style_enabled): Notify new observable.
3773 * tui/tui-hooks.c (tui_redisplay_source): New function.
3774 (tui_attach_detach_observers): Attach or detach
3775 tui_redisplay_source.
3776 * observable.h (source_styling_changed): New observable.
3777 * observable.c: Define source_styling_changed observable.
3779 2019-03-13 Tom Tromey <tromey@adacore.com>
3781 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3782 (i386_gnu_nat_target::store_registers): Update.
3783 * target-debug.h (target_debug_print_std_string): New macro.
3784 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3785 * windows-tdep.c (display_one_tib): Update.
3786 * tui/tui-stack.c (tui_make_status_line): Update.
3787 * top.c (print_inferior_quit_action): Update.
3788 * thread.c (thr_try_catch_cmd): Update.
3789 (add_thread_with_info): Update.
3790 (thread_target_id_str): Update.
3791 (thr_try_catch_cmd): Update.
3792 (thread_command): Update.
3793 (thread_find_command): Update.
3794 * record-btrace.c (record_btrace_target::info_record)
3795 (record_btrace_resume_thread, record_btrace_target::resume)
3796 (record_btrace_cancel_resume, record_btrace_step_thread)
3797 (record_btrace_target::wait, record_btrace_target::wait)
3798 (record_btrace_target::wait, record_btrace_target::stop): Update.
3799 * progspace.c (print_program_space): Update.
3800 * process-stratum-target.c
3801 (process_stratum_target::thread_address_space): Update.
3802 * linux-fork.c (linux_fork_mourn_inferior)
3803 (detach_checkpoint_command, info_checkpoints_command)
3804 (linux_fork_context): Update.
3805 (linux_fork_detach): Update.
3806 (class scoped_switch_fork_info): Update.
3807 (delete_checkpoint_command): Update.
3808 * infrun.c (follow_fork_inferior): Update.
3809 (follow_fork_inferior): Update.
3810 (proceed_after_vfork_done): Update.
3811 (handle_vfork_child_exec_or_exit): Update.
3812 (follow_exec): Update.
3813 (displaced_step_prepare_throw): Update.
3814 (displaced_step_restore): Update.
3815 (start_step_over): Update.
3817 (clear_proceed_status_thread): Update.
3819 (print_target_wait_results): Update.
3820 (do_target_wait): Update.
3821 (context_switch): Update.
3822 (stop_all_threads): Update.
3823 (restart_threads): Update.
3824 (finish_step_over): Update.
3825 (handle_signal_stop): Update.
3826 (switch_back_to_stepped_thread): Update.
3827 (keep_going_pass_signal): Update.
3828 (print_exited_reason): Update.
3829 (normal_stop): Update.
3830 * inferior.c (inferior_pid_to_str): Change return type.
3831 (print_selected_inferior): Update.
3832 (add_inferior): Update.
3833 (detach_inferior): Update.
3834 * dummy-frame.c (fprint_dummy_frames): Update.
3835 * dcache.c (dcache_info_1): Update.
3836 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3837 (btrace_fetch, btrace_clear): Update.
3838 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3839 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3841 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3842 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3843 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3844 * gdbarch.c, gdbarch.h: Rebuild.
3845 * gdbarch.sh (core_pid_to_str): Change return type.
3846 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3848 (windows_nat_target::pid_to_str): Change return type.
3849 (windows_delete_thread): Update.
3850 (windows_nat_target::attach): Update.
3851 (windows_nat_target::files_info): Update.
3852 * target-delegates.c: Rebuild.
3853 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3855 (sol_thread_target::pid_to_str): Change return type.
3856 * remote.c (class remote_target) <pid_to_str>: Change return
3858 (remote_target::pid_to_str): Change return type.
3859 (extended_remote_target::attach, remote_target::remote_stop_ns)
3860 (remote_target::remote_notif_remove_queued_reply)
3861 (remote_target::push_stop_reply, remote_target::disable_btrace):
3863 (extended_remote_target::attach): Update.
3864 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3866 (gdbsim_target::pid_to_str): Change return type.
3867 * ravenscar-thread.c (struct ravenscar_thread_target)
3868 <pid_to_str>: Change return type.
3869 (ravenscar_thread_target::pid_to_str): Change return type.
3870 * procfs.c (class procfs_target) <pid_to_str>: Change return
3872 (procfs_target::pid_to_str): Change return type.
3873 (procfs_target::attach): Update.
3874 (procfs_target::detach): Update.
3875 (procfs_target::fetch_registers): Update.
3876 (procfs_target::store_registers): Update.
3877 (procfs_target::wait): Update.
3878 (procfs_target::files_info): Update.
3879 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3880 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3882 (nto_procfs_target::pid_to_str): Change return type.
3883 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3884 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3886 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3888 (attach_proc_task_lwp_callback, get_detach_signal)
3889 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3890 (linux_nat_target::resume, wait_lwp, stop_callback)
3891 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3892 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3893 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3894 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3895 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3897 (inf_ptrace_target::attach): Update.
3898 (inf_ptrace_target::files_info): Update.
3899 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3901 (go32_nat_target::pid_to_str): Change return type.
3902 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3903 (gnu_nat_target::wait): Update.
3904 (gnu_nat_target::wait): Update.
3905 (gnu_nat_target::resume): Update.
3906 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3907 (fbsd_nat_target::wait): Update.
3908 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3910 (darwin_nat_target::attach): Update.
3911 * corelow.c (class core_target) <pid_to_str>: Change return type.
3912 (core_target::pid_to_str): Change return type.
3913 * target.c (normal_pid_to_str): Change return type.
3914 (default_pid_to_str): Likewise.
3915 (target_pid_to_str): Change return type.
3916 (target_translate_tls_address): Update.
3917 (target_announce_detach): Update.
3918 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3920 (bsd_uthread_target::pid_to_str): Change return type.
3921 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3923 (bsd_kvm_target::pid_to_str): Change return type.
3924 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3926 (aix_thread_target::pid_to_str): Change return type.
3927 * target.h (struct target_ops) <pid_to_str>: Change return type.
3928 (target_pid_to_str, normal_pid_to_str): Likewise.
3929 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3931 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3933 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3935 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3937 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3939 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3942 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3944 * NEWS: Mention that the new default MI version is 3. Mention
3945 changes to the output of commands and events that deal with
3946 multi-location breakpoints.
3947 * breakpoint.c: Include "mi/mi-out.h".
3948 (print_one_breakpoint): Change output syntax if using MI version
3950 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3952 (mi_multi_location_breakpoint_output_fixed): New.
3953 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3954 (mi_cmd_fix_multi_location_breakpoint_output): New.
3955 (mi_multi_location_breakpoint_output_fixed): New.
3956 * mi/mi-cmds.c (mi_cmds): Register command
3957 -fix-multi-location-breakpoint-output.
3958 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3961 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3963 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3964 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3965 instantiate mi_ui_out based on interpreter name.
3966 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3967 * mi/mi-main.c (mi_load_progress): Likewise.
3969 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3971 * NEWS: Combine separate "New targets" sections for 8.3.
3973 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3975 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3976 (ppcfbsd_init_abi): Install gdbarch
3977 "fetch_tls_load_module_address" and "get_thread_local_address"
3980 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3982 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3983 (riscv_fbsd_init_abi): Install gdbarch
3984 "fetch_tls_load_module_address" and "get_thread_local_address"
3987 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3989 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3990 (i386fbsd_init_abi): Install gdbarch
3991 "fetch_tls_load_module_address" and "get_thread_local_address"
3994 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3996 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3997 (amd64fbsd_init_abi): Install gdbarch
3998 "fetch_tls_load_module_address" and "get_thread_local_address"
4001 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4003 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4004 (struct fbsd_pspace_data): New type.
4005 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4006 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4007 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4008 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4009 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4011 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4013 * gdbtypes.c (lookup_struct_elt): New function.
4014 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4015 * gdbtypes.h (struct struct_elt): New type.
4016 (lookup_struct_elt): New prototype.
4018 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4020 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4021 remove disabled code block.
4023 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4025 * gdbarch.sh (get_thread_local_address): New method.
4026 * gdbarch.h, gdbarch.c: Regenerate.
4027 * target.c (target_translate_tls_address): Use
4028 gdbarch_get_thread_local_address if present instead of
4029 target::get_thread_local_address.
4031 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4033 * target.h (target::get_thread_local_address): Update comment.
4035 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4037 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4038 objfile->separate_debug_objfile_backlink if not NULL.
4040 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4042 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4043 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4044 (amd64bsd_store_inferior_registers): Likewise.
4045 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4046 Enable segment base registers.
4047 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4048 PT_GETFSBASE and PT_GETGSBASE.
4049 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4051 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4052 segment base registers.
4053 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4055 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4057 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4058 Update calls to i386_target_description to add 'segments'
4060 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4061 add segment base registers.
4062 * arch/i386.c (i386_create_target_description): Add 'segments'
4063 parameter to enable segment base registers.
4064 * arch/i386.h (i386_create_target_description): Likewise.
4065 * features/i386/32bit-segments.xml: New file.
4066 * features/i386/32bit-segments.c: Generate.
4067 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4068 call to i386_target_description to add 'segments' parameter.
4069 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4070 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4071 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4072 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4073 if feature is present.
4074 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4075 Add 'segments' parameter to call to i386_target_description.
4076 (i386_target_description): Add 'segments' parameter to enable
4077 segment base registers.
4078 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4079 to call to i386_target_description.
4080 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4081 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4082 Define I386_NUM_REGS.
4083 (i386_target_description): Add 'segments' parameter to enable
4084 segment base registers.
4086 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4089 * source-cache.c: #undef open and close, to avoid unresolved
4090 externals during linking.
4092 2019-03-12 Tom Tromey <tromey@adacore.com>
4094 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4095 const. Add initializers.
4096 (_initialize_remote): Don't initialize ptid globals.
4098 2019-03-12 Pedro Alves <palves@redhat.com>
4100 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4102 2019-03-12 Pedro Alves <palves@redhat.com>
4104 * cp-name-parser.y (main): Remove unused 'len' variable.
4106 2019-03-12 Tom Tromey <tromey@adacore.com>
4108 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4109 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4111 2019-03-12 Tom Tromey <tromey@adacore.com>
4113 * linux-nat.c (iterate_over_lwps): Update.
4114 (stop_callback): Remove parameter.
4115 (stop_wait_callback, detach_callback, resume_set_callback)
4116 (select_singlestep_lwp_callback, set_ignore_sigint)
4117 (status_callback, resumed_callback, resume_clear_callback)
4118 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4120 (linux_nat_target::detach, linux_nat_target::resume)
4121 (linux_stop_and_wait_all_lwps, select_event_lwp)
4122 (linux_nat_filter_event, linux_nat_wait_1)
4123 (linux_nat_target::kill, linux_nat_target::stop)
4124 (linux_nat_target::stop): Update.
4125 (linux_nat_resume_callback): Change type.
4126 (resume_stopped_resumed_lwps, count_events_callback)
4127 (select_event_lwp_callback): Likewise.
4128 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4129 * arm-linux-nat.c (struct update_registers_data): Remove.
4130 (update_registers_callback): Change type.
4131 (arm_linux_insert_hw_breakpoint1): Update.
4132 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4134 (x86_linux_dr_set_addr): Update.
4135 (x86_linux_dr_set_control): Update.
4136 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4137 (iterate_over_lwps): Use gdb::function_view.
4138 * nat/aarch64-linux-hw-point.c (struct
4139 aarch64_dr_update_callback_param): Remove.
4140 (debug_reg_change_callback): Change type.
4141 (aarch64_notify_debug_reg_change): Update.
4142 * s390-linux-nat.c (s390_refresh_per_info): Update.
4144 2019-03-11 Tom Tromey <tromey@adacore.com>
4146 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4147 redundant assignment to "this_cu".
4149 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4151 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4153 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4155 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4157 (rank_one_type): ... this.
4159 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4161 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4163 (rank_one_type): ... this.
4165 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4167 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4169 (rank_one_type): ... this.
4171 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4173 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4175 (rank_one_type): ... this.
4177 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4179 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4181 (rank_one_type): ... this.
4183 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4185 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4187 (rank_one_type): ... this.
4189 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4191 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4193 (rank_one_type): ... this.
4195 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4197 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4199 (rank_one_type): ... this.
4201 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4203 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4205 (rank_one_type): ... this.
4207 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4209 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4211 (rank_one_type): ... this.
4213 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4215 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4217 (rank_one_type): ... this.
4219 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4221 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4223 (rank_one_type): ... this.
4225 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4227 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4228 inferior-events' shows the example events.
4230 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4232 Support styling on native MS-Windows console
4235 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4236 on MS-Windows if $TERM is not defined.
4238 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4240 * posix-hdep.c (gdb_console_fputs):
4241 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4243 * ui-file.h (gdb_console_fputs): Add prototype.
4245 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4246 back to fputs only if the former returns zero.
4248 2019-03-07 Tom Tromey <tom@tromey.com>
4250 * symmisc.c (print_symbol_bcache_statistics): Update.
4251 (print_objfile_statistics): Update.
4252 * symfile.c (allocate_symtab): Update.
4253 * stabsread.c: Don't include bcache.h.
4254 * psymtab.h (struct psymbol_bcache): Don't declare.
4255 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4256 (psymbol_bcache_init, psymbol_bcache_free)
4257 (psymbol_bcache_get_bcache): Don't declare.
4258 * psymtab.c (struct psymbol_bcache): Remove.
4259 (psymtab_storage::psymtab_storage): Update.
4260 (psymtab_storage::~psymtab_storage): Update.
4261 (psymbol_bcache_init, psymbol_bcache_free)
4262 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4263 (add_psymbol_to_bcache): Update.
4264 (allocate_psymtab): Update.
4265 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4266 macro_cache>: No longer pointers.
4267 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4268 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4269 * macrotab.c (macro_bcache): Update.
4270 * macroexp.c: Don't include bcache.h.
4271 * gdbtypes.c (check_types_worklist): Update.
4272 (types_deeply_equal): Remove TRY/CATCH. Update.
4273 * elfread.c (elf_symtab_read): Update.
4274 * dwarf2read.c: Don't include bcache.h.
4275 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4276 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4277 (print_bcache_statistics, bcache_memory_used): Don't declare.
4278 (struct bcache): Move from bcache.c. Add constructor, destructor,
4279 methods. Rename all data members.
4280 * bcache.c (struct bcache): Move to bcache.h.
4281 (bcache::expand_hash_table): Rename from expand_hash_table.
4283 (bcache::insert): Rename from bcache_full.
4284 (bcache::compare): Rename from bcache_compare.
4285 (bcache_xmalloc): Remove.
4286 (bcache::~bcache): Rename from bcache_xfree.
4287 (bcache::print_statistics): Rename from print_bcache_statistics.
4288 (bcache::memory_used): Rename from bcache_memory_used.
4290 2019-03-07 Pedro Alves <palves@redhat.com>
4292 * infrun.c (normal_stop): Also check for
4293 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4295 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4297 * f-lang.c (value_from_host_double): Moved to...
4298 * value.c (value_from_host_double): ...here.
4299 * value.h (value_from_host_double): Declare.
4300 * guile/scm-math.c (vlscm_convert_typed_number): Use
4301 value_from_host_double.
4302 (vlscm_convert_number): Likewise.
4303 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4304 * python/py-value.c (convert_value_from_python): Likewise.
4306 2019-03-06 Tom Tromey <tom@tromey.com>
4308 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4310 2019-03-06 Tom Tromey <tom@tromey.com>
4312 * utils.h (free_current_contents): Don't declare.
4313 * utils.c (free_current_contents): Remove.
4315 2019-03-06 Tom Tromey <tom@tromey.com>
4317 * top.c (quit_force): Update.
4318 * main.c (captured_command_loop): Update.
4319 * common/new-op.c (operator new): Update.
4320 * common/common-exceptions.c (struct catcher)
4321 <save_cleanup_chain>: Remove member.
4322 (exceptions_state_mc_init): Update.
4323 (exception_try_scope_entry): Return nullptr.
4324 (exception_try_scope_exit, exception_rethrow)
4325 (throw_exception_sjlj, throw_exception_cxx): Update.
4326 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4327 (all_cleanups, do_cleanups, discard_cleanups)
4328 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4329 (restore_cleanups, restore_final_cleanups): Don't declare.
4330 (do_final_cleanups): Remove parameter.
4331 * common/cleanups.c (cleanup_chain, make_cleanup)
4332 (make_cleanup_dtor, all_cleanups, do_cleanups)
4333 (discard_my_cleanups, discard_cleanups)
4334 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4335 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4336 (null_cleanup): Remove.
4337 (do_final_cleanups): Remove parameter.
4339 2019-03-06 Tom Tromey <tom@tromey.com>
4341 * remote.c (remote_target::remote_parse_stop_reply): Use
4344 2019-03-06 Tom Tromey <tom@tromey.com>
4346 * stabsread.c (struct stabs_field_info): Rename from field_info.
4347 <list, fnlist>: Add initializers.
4348 <obstack>: New member.
4349 (read_member_functions, read_struct_fields, read_baseclasses):
4350 Allocate on obstack. Don't use cleanups.
4351 (read_one_struct_field, read_member_functions, read_struct_fields)
4352 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4353 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4354 (read_struct_type): Update.
4356 2019-03-06 Tom Tromey <tom@tromey.com>
4358 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4359 * common/filestuff.h (make_cleanup_close): Don't declare.
4360 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4363 2019-03-06 Tom Tromey <tom@tromey.com>
4365 * solib-aix.c: Use make_scope_exit.
4367 2019-03-06 Tom Tromey <tom@tromey.com>
4369 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4370 Use make_scope_exit.
4372 2019-03-06 Tom Tromey <tom@tromey.com>
4374 * solib-svr4.c (disable_probes_interface): Remove parameter.
4375 (svr4_handle_solib_event): Use make_scope_exit.
4377 2019-03-06 Tom Tromey <tom@tromey.com>
4379 * remote.c (struct stop_reply_deleter): Remove.
4380 (stop_reply_up): Update.
4381 (struct stop_reply): Derive from notif_event. Don't typedef.
4382 <regcache>: Now a std::vector.
4383 (stop_reply_xfree): Remove.
4384 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4385 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4386 (remote_target::discard_pending_stop_replies): Use delete.
4387 (remote_target::remote_parse_stop_reply): Update.
4388 (remote_target::process_stop_reply): Update.
4389 * remote-notif.h (struct notif_event): Add virtual destructor.
4390 Remove "dtr" member.
4391 (struct notif_client) <alloc_event>: Return a unique_ptr.
4392 (notif_event_xfree): Don't declare.
4393 (notif_event_up): New typedef.
4394 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4395 (notif_event_xfree, do_notif_event_xfree): Remove.
4396 (remote_notif_state_xfree): Update.
4398 2019-03-06 Tom Tromey <tom@tromey.com>
4400 * infrun.c (displaced_step_clear_cleanup): Now a
4401 forward_scope_exit type.
4402 (displaced_step_prepare_throw): Update.
4403 (displaced_step_fixup): Update.
4405 2019-03-06 Tom Tromey <tom@tromey.com>
4407 * inferior.h (class inferior): Update comment.
4408 * gdbthread.h (class thread_info): Update comment.
4410 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4411 Tom Tromey <tom@tromey.com>
4413 * stabsread.h (struct stab_section_list): Remove.
4414 (coffstab_build_psymtabs): Update.
4415 * dbxread.c (symbuf_sections): Now a std::vector.
4416 (sect_idx): New global.
4417 (fill_symbuf): Update.
4418 (coffstab_build_psymtabs): Change type of stabsects parameter.
4420 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4422 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4423 (coff_locate_sections): Update.
4424 (coff_symfile_read): Remove cleanups. Update.
4425 (init_stringtab): Add storage parameter.
4426 (free_stringtab, free_stringtab_cleanup): Remove.
4427 (init_lineno): Add storage parameter.
4428 (free_linetab, free_linetab_cleanup): Remove.
4430 2019-03-06 Pedro Alves <palves@redhat.com>
4432 * linux-fork.c (fork_info::clobber_regs): Delete.
4433 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4434 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4436 (scoped_switch_fork_info::scoped_switch_fork_info)
4437 (checkpoint_command, linux_fork_context): Adjust
4438 fork_save_infrun_state calls.
4440 2019-03-06 Pedro Alves <palves@redhat.com>
4442 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4443 (inf_has_multiple_threads): Return 'bool' and rewrite using
4444 inferior_info::threads().
4446 2019-03-06 Pedro Alves <palves@redhat.com>
4448 * linux-fork.c: Include <list>.
4449 (fork_list): Now a std::list instance.
4450 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4451 (forks_exist_p, find_last_fork): Adjust.
4455 (free_fork): Delete, folded into fork_info::~fork_info().
4456 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4458 (init_fork_list): Delete.
4459 (linux_fork_killall, linux_fork_mourn_inferior)
4460 (linux_fork_detach, info_checkpoints_command): Adjust.
4461 (_initialize_linux_fork): No longer call init_fork_list.
4463 2019-03-06 Pedro Alves <palves@redhat.com>
4465 * linux-fork.c (new_fork): New, split out of ...
4466 (add_fork): ... this. Return void. Move "first fork" special
4467 case from here, to ...
4468 (checkpoint_command): ... here.
4469 * linux-linux.h (add_fork): Return void.
4471 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4473 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4475 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4476 Chris January <chris.january@arm.com>
4477 David Lecomber <david.lecomber@arm.com>
4479 * f-exp.y: New token, UNOP_INTRINSIC.
4480 (exp): New pattern using UNOP_INTRINSIC token.
4481 (f77_keywords): Add 'abs' keyword.
4482 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4483 (value_from_host_double): New function.
4484 (evaluate_subexp_f): Support UNOP_ABS.
4486 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4488 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4491 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4493 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4494 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4495 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4497 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4499 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4501 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4502 Chris January <chris.january@arm.com>
4504 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4505 * f-exp.y: Define 'KIND' token.
4506 (exp): New pattern for KIND expressions.
4507 (ptype): Handle types with a kind extension.
4508 (direct_abs_decl): Extend to spot kind extensions.
4509 (f77_keywords): Add 'kind' to the list.
4510 (push_kind_type): New function.
4511 (convert_to_kind_type): New function.
4512 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4513 * parse.c (operator_length_standard): Likewise.
4514 * parser-defs.h (enum type_pieces): Add tp_kind.
4515 * std-operator.def: Add UNOP_KIND.
4517 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4519 * f-exp.y (f_parse): Set yydebug.
4521 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4523 * f-lang.c (evaluate_subexp_f): New function.
4524 (exp_descriptor_f): New global.
4525 (f_language_defn): Use exp_descriptor_f instead of
4526 exp_descriptor_standard.
4528 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4530 * f-exp.y (struct token): Add comments.
4531 (dot_ops): Remove uppercase versions and the end marker.
4532 (f77_keywords): Likewise.
4533 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4534 entries in the dot_ops array are case insensitive, and use
4535 strncasecmp to compare strings. Also some whitespace cleanup in
4536 this area. Similar for the f77_keywords array, except entries in
4537 this list might be case sensitive.
4539 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4541 * f-exp.y (struct f77_boolean_val): Add comments.
4542 (boolean_values): Remove uppercase versions, and end marker.
4543 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4544 and use strncasecmp to achieve case insensitivity. Additionally,
4545 perform whitespace cleanup around this code.
4547 2019-03-06 Tom Tromey <tromey@adacore.com>
4549 * remote-sim.c (gdbsim_target_open): Use result of
4552 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4553 Dirk Schubert <dirk.schubert@arm.com>
4554 Chris January <chris.january@arm.com>
4556 * eval.c (evaluate_subexp_standard): Call Fortran argument
4558 * f-lang.c (struct value): A value which can be passed into a
4559 Fortran function call.
4560 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4562 (struct type): Value ready for a Fortran function call.
4563 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4565 * f-lang.h (fortran_argument_convert): Declaration.
4566 (fortran_preserve_arg_pointer): Declaration.
4567 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4569 2019-03-05 Tom Tromey <tromey@adacore.com>
4571 * python/py-prettyprint.c (print_string_repr): Remove #if.
4572 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4574 2019-03-05 Tom Tromey <tromey@adacore.com>
4576 * target.c (the_dummy_target): Move later. Change type to
4578 (initialize_targets): Don't initialize the_dummy_target.
4580 2019-03-05 Tom Tromey <tromey@adacore.com>
4582 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4583 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4585 2019-03-05 Tom Tromey <tromey@adacore.com>
4587 * windows-nat.c (windows_nat_target::attach)
4588 (windows_nat_target::detach): Don't call gdb_flush.
4589 * valprint.c (generic_val_print, val_print, val_print_string):
4590 Don't call gdb_flush.
4591 * utils.c (defaulted_query): Don't call gdb_flush.
4592 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4593 * target.c (target_announce_detach): Don't call gdb_flush.
4594 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4595 * remote.c (extended_remote_target::attach): Don't call
4597 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4598 * printcmd.c (do_examine): Don't call gdb_flush.
4599 (info_display_command): Don't call gdb_flush.
4600 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4601 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4602 * memattr.c (info_mem_command): Don't call gdb_flush.
4603 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4604 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4605 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4606 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4607 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4608 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4609 (gnu_nat_target::detach): Don't call gdb_flush.
4610 * f-valprint.c (f_val_print): Don't call gdb_flush.
4611 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4612 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4613 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4615 * c-valprint.c (c_val_print): Don't call gdb_flush.
4616 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4618 2019-03-05 Tom Tromey <tromey@adacore.com>
4620 * varobj.c (update_dynamic_varobj_children): Update.
4621 (install_default_visualizer): Use reset, not release.
4622 * value.c (set_internalvar): Update.
4623 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4624 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4625 ATTRIBUTE_UNUSED_RESULT.
4627 2019-03-05 Tom Tromey <tromey@adacore.com>
4629 * remote.c (class scoped_remote_fd) <release>: Add
4630 ATTRIBUTE_UNUSED_RESULT.
4632 2019-03-05 Tom Tromey <tromey@adacore.com>
4634 * macroexp.c (struct macro_buffer) <release>: Add
4635 ATTRIBUTE_UNUSED_RESULT.
4637 2019-03-05 Tom Tromey <tromey@adacore.com>
4639 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4640 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4641 ATTRIBUTE_UNUSED_RESULT.
4643 2019-03-05 Tom Tromey <tromey@adacore.com>
4645 * common/scoped_fd.h (class scoped_fd) <release>: Add
4646 ATTRIBUTE_UNUSED_RESULT.
4648 2019-03-05 Tom Tromey <tromey@adacore.com>
4650 * parser-defs.h (struct parser_state) <release>: Add
4651 ATTRIBUTE_UNUSED_RESULT.
4653 2019-03-05 Tom Tromey <tromey@adacore.com>
4655 * utils.h (class gdb_argv) <release>: Add
4656 ATTRIBUTE_UNUSED_RESULT.
4657 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4659 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4661 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4662 for-loop range, to avoid compiler warnings.
4664 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4665 avoid compiler warnings about unused variables.
4667 * NEWS: Mention end of support for native debugging on MS-Windows
4671 * common/netstuff.c:
4672 * gdbserver/gdbreplay.c
4673 * gdbserver/remote-utils.c:
4675 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4676 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4677 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4678 'getaddrinfo' and 'freeaddrinfo' were not available before
4679 Windows XP, and mingw.org's MinGW headers by default define
4680 _WIN32_WINNT to 0x500.
4682 2019-03-01 Gary Benson <gbenson@redhat.com>
4684 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4686 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4687 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4690 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4691 set_sigint_trap, clear_sigint_trap.
4693 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4695 * target.c (target_detach): Clear the regcache and the
4698 2019-02-27 Pedro Alves <palves@redhat.com>
4700 * utils.c (set_screen_size): When we cap the height/width sizes,
4701 tweak the corresponding command variable to show "unlimited":
4703 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4704 Pedro Alves <palves@redhat.com>
4706 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4707 before calling rl_set_screen_size.
4709 2019-02-27 Tom Tromey <tromey@adacore.com>
4711 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4713 * python/py-value.c: Remove Python 2.4 workaround.
4714 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4716 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4717 Python 2.4 workaround.
4718 * python/python-internal.h: Remove Python 2.4 comment.
4719 (Py_ssize_t): Don't define.
4720 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4721 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4722 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4723 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4724 * python/python.c (do_start_initialization): Remove Python 2.4
4726 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4727 (print_children): Remove Python 2.4 workaround.
4728 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4730 (CHARBUFFERPROC_NAME): Remove.
4731 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4732 Python 2.4 workaround.
4734 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4736 * NEWS: Note minimum Python version.
4738 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4740 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4741 code from these functions. Remove corresponding ifdefs. Use
4742 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4743 Remove gotos and target of gotos.
4744 (infpy_search_memory): Likewise.
4746 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4748 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4749 (hppa_gdbarch_init): Don't register deleted functions with
4752 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4754 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4755 (h8300_unwind_sp): Delete.
4756 (h8300_dummy_id): Delete.
4757 (h8300_gdbarch_init): Don't register deleted functions with
4760 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4762 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4763 (ft32_unwind_pc): Delete.
4764 (ft32_unwind_sp): Delete.
4765 (ft32_gdbarch_init): Don't register deleted functions with
4768 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4770 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4771 (frv_unwind_pc): Delete.
4772 (frv_unwind_sp): Delete.
4773 (frv_gdbarch_init): Don't register deleted functions with
4776 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4778 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4779 (riscv_unwind_pc): Delete.
4780 (riscv_unwind_sp): Delete.
4781 (riscv_gdbarch_init): Don't register deleted functions with
4784 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4786 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4787 (csky_unwind_pc): Delete.
4788 (csky_unwind_sp): Delete.
4789 (csky_gdbarch_init): Don't register deleted functions with
4792 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4794 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4795 (cris_unwind_pc): Delete.
4796 (cris_unwind_sp): Delete.
4797 (cris_gdbarch_init): Don't register deleted functions with
4800 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4802 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4803 (bfin_unwind_pc): Delete.
4804 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4806 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4808 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4809 (arm_unwind_pc): Delete.
4810 (arm_unwind_sp): Delete.
4811 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4813 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4815 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4816 (arc_unwind_pc): Delete.
4817 (arc_unwind_sp): Delete.
4818 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4820 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4822 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4823 (alpha_unwind_pc): Delete.
4824 (alpha_gdbarch_init): Don't register deleted functions with
4827 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4829 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4830 (aarch64_unwind_pc): Delete.
4831 (aarch64_unwind_sp): Delete.
4832 (aarch64_gdbarch_init): Don't register deleted functions with
4835 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4837 * gdbtypes.c (type_align): Don't consider static members when
4838 computing structure alignment.
4840 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4842 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4843 return 0 for other types.
4844 * arch-utils.c (default_type_align): Always return 0.
4845 * gdbarch.h: Regenerate.
4846 * gdbarch.sh (type_align): Extend comment.
4847 * gdbtypes.c (type_align): Add additional comments, always call
4848 gdbarch_type_align before applying the default rules.
4849 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4850 generic code will then apply a suitable default.
4851 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4852 types, return 0 for other types.
4854 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4856 * NEWS: Create a new section for the next release branch.
4857 Rename the section of the current branch, now that it has
4860 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4862 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4863 * version.in: Bump version to 8.3.50.DATE-git.
4865 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4867 * aix-thread.c (ptid_cmp): Remove unused variable.
4868 (get_signaled_thread): Likewise.
4869 (store_regs_user_thread): Likewise.
4870 (store_regs_kernel_thread): Likewise.
4871 (fetch_regs_kernel_thread): Remove shadowed variable.
4873 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4875 * features/riscv/32bit-cpu.xml: Add register numbers.
4876 * features/riscv/32bit-fpu.c: Regenerate.
4877 * features/riscv/32bit-fpu.xml: Add register numbers.
4878 * features/riscv/64bit-cpu.xml: Add register numbers.
4879 * features/riscv/64bit-fpu.c: Regenerate.
4880 * features/riscv/64bit-fpu.xml: Add register numbers.
4882 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4884 * NEWS: Mention two argument form of gdb.Value constructor.
4885 * python/py-value.c (convert_buffer_and_type_to_value): New
4887 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4888 Add support for handling an optional second argument. Call
4889 convert_buffer_and_type_to_value as appropriate.
4890 * python/python-internal.h (Py_buffer_deleter): New struct.
4891 (Py_buffer_up): New typedef.
4893 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4895 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4896 instead of releasing ownership.
4898 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4900 * dwarf2read.c (open_and_init_dwp_file): Call
4901 elf_numsections instead of bfd_count_sections to initialize
4902 dwp_file->num_sections.
4904 2019-02-25 Tom Tromey <tromey@adacore.com>
4906 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4908 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4910 * gcore.in: Add '--readnever' option when invoking GDB.
4912 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4914 * MAINTAINERS: Update my email address.
4916 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4918 * build-id.c (build_id_to_debug_bfd_1): New function.
4919 (build_id_to_debug_bfd): Look for separate debug file in
4922 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4924 * gdbarch.sh: Update the copyright year range that is placed into
4927 2019-02-22 Keith Seitz <keiths@redhat.com>
4930 * linespec.c (create_sals_line_offset): Search for the default
4931 symtab's filename instead of its fullname.
4933 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4935 * NEWS: Update style defaults.
4937 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4939 * main.c (captured_main_1): Disable styling in batch mode.
4941 2019-02-20 Tom Tromey <tom@tromey.com>
4943 * symtab.c (symtab_symbol_info): Fix typos.
4945 2019-02-20 Tom Tromey <tromey@adacore.com>
4947 * findcmd.c (_initialize_mem_search): Use upper case for
4948 metasyntactic variables.
4950 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4952 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4953 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4955 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4957 * top.h (source_file_name): Change to std::string.
4958 * top.c (source_file_name): Likewise.
4959 (command_line_input): Adjust.
4960 * cli/cli-script.c (script_from_file): Adjust.
4962 2019-02-19 Tom Tromey <tromey@adacore.com>
4964 * ravenscar-thread.c
4965 (ravenscar_thread_target::update_thread_list): Don't call
4966 ada_build_task_list.
4967 * ada-lang.h (ada_build_task_list): Don't declare.
4968 * ada-tasks.c (struct ada_tasks_inferior_data)
4969 <task_list_valid_p>: Now bool.
4970 (read_known_tasks, ada_task_list_changed)
4971 (ada_tasks_invalidate_inferior_data): Update.
4972 (read_known_tasks_array): Return bool.
4973 (read_known_tasks_list): Likewise.
4974 (read_known_tasks): Return void.
4975 (ada_build_task_list): Now static.
4977 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4979 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4980 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4982 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4984 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4985 variant for ada_tasks_pspace_data_handle and
4986 ada_tasks_inferior_data_handle.
4987 (ada_tasks_pspace_data_cleanup): New function.
4988 (ada_tasks_inferior_data_cleanup): New function.
4990 2019-02-17 Tom Tromey <tom@tromey.com>
4992 * macrotab.h (macro_source_fullname): Return a std::string.
4993 * macrotab.c (macro_include, check_for_redefinition)
4994 (macro_undef, macro_lookup_definition, foreach_macro)
4995 (foreach_macro_in_scope): Update.
4996 (macro_source_fullname): Return a std::string.
4997 * macrocmd.c (show_pp_source_pos): Update.
4999 2019-02-17 Tom Tromey <tom@tromey.com>
5001 * macrocmd.c (show_pp_source_pos): Style the file names.
5003 2019-02-17 Tom Tromey <tom@tromey.com>
5006 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5008 2019-02-17 Tom Tromey <tom@tromey.com>
5010 * ada-lang.c (user_select_syms): Use filtered printing.
5011 * utils.c (wrap_style): New global.
5012 (desired_style): Remove.
5013 (emit_style_escape): Add stream parameter.
5014 (set_output_style, reset_terminal_style, prompt_for_continue):
5016 (flush_wrap_buffer): Only flush gdb_stdout.
5017 (wrap_here): Set wrap_style.
5018 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5019 treat escape sequences as a character. Change when wrap buffer is
5021 (fputs_styled): Do not set the output style when the default is
5023 * ui-style.h (struct ui_file_style) <is_default>: New method.
5024 * source.c (print_source_lines_base): Emit escape sequences in one
5027 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5029 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5030 integers and enumeration types.
5032 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5034 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5035 instead of lookup_symbol_in_language
5036 (do_exact_match): New function.
5037 (ada_get_symbol_name_matcher): Return do_exact_match when
5038 doing a verbatim match.
5040 2019-02-15 Tom Tromey <tromey@adacore.com>
5042 * ravenscar-thread.c (ravenscar_thread_target::resume)
5043 (ravenscar_thread_target::wait): Special case wildcard requests.
5045 2019-02-15 Tom Tromey <tromey@adacore.com>
5047 * ravenscar-thread.c (base_ptid): Remove.
5048 (struct ravenscar_thread_target) <close>: New method.
5049 <m_base_ptid>: New member.
5050 <update_inferior_ptid, active_task, task_is_currently_active,
5051 runtime_initialized>: Declare methods.
5052 <ravenscar_thread_target>: Add constructor.
5053 (ravenscar_thread_target::task_is_currently_active)
5054 (ravenscar_thread_target::update_inferior_ptid)
5055 (ravenscar_runtime_initialized): Rename. Now methods.
5056 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5057 (ravenscar_thread_target::update_thread_list): Update.
5058 (ravenscar_thread_target::active_task): Now method.
5059 (ravenscar_thread_target::store_registers)
5060 (ravenscar_thread_target::prepare_to_store)
5061 (ravenscar_thread_target::prepare_to_store)
5062 (ravenscar_thread_target::mourn_inferior): Update.
5063 (ravenscar_inferior_created): Use "new" to create target.
5064 (ravenscar_thread_target::get_ada_task_ptid): Update.
5065 (_initialize_ravenscar): Don't initialize base_ptid.
5066 (ravenscar_ops): Remove global.
5068 2019-02-15 Tom Tromey <tromey@adacore.com>
5070 * target.h (push_target): Declare new overload.
5071 * target.c (push_target): New overload, taking an rvalue reference.
5072 * remote.c (remote_target::open_1): Use push_target overload.
5073 * corelow.c (core_target_open): Use push_target overload.
5075 2019-02-15 Tom Tromey <tromey@adacore.com>
5077 * ravenscar-thread.c (is_ravenscar_task)
5078 (ravenscar_task_is_currently_active): Return bool.
5079 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5080 (_initialize_ravenscar): Remove "(void)".
5081 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5084 2019-02-15 Tom Tromey <tromey@adacore.com>
5086 * ravenscar-thread.c (ravenscar_runtime_initializer)
5087 (has_ravenscar_runtime, get_running_thread_id)
5088 (ravenscar_thread_target::resume): Fix indentation.
5090 2019-02-15 Tom Tromey <tromey@adacore.com>
5092 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5093 from ravenscar_arch_ops.
5094 (sparc_ravenscar_ops::fetch_registers)
5095 (sparc_ravenscar_ops::store_registers): Now methods.
5096 (sparc_ravenscar_prepare_to_store): Remove.
5097 (sparc_ravenscar_ops): Redefine.
5098 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5099 methods and destructor. Remove members.
5100 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5101 (ravenscar_thread_target::store_registers)
5102 (ravenscar_thread_target::prepare_to_store): Update.
5103 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5105 (struct ppc_ravenscar_powerpc_ops): Derive from
5107 (ppc_ravenscar_powerpc_ops::fetch_registers)
5108 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5109 (ppc_ravenscar_powerpc_ops): Redefine.
5110 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5111 (ppc_ravenscar_e500_ops::fetch_registers)
5112 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5113 (ppc_ravenscar_e500_ops): Redefine.
5114 * aarch64-ravenscar-thread.c
5115 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5116 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5117 (aarch64_ravenscar_fetch_registers)
5118 (aarch64_ravenscar_store_registers): Now methods.
5119 (aarch64_ravenscar_ops): Redefine.
5121 2019-02-15 Tom Tromey <tromey@adacore.com>
5123 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5124 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5125 (ravenscar_thread_target::stopped_by_watchpoint)
5126 (ravenscar_thread_target::stopped_data_address)
5127 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5129 2019-02-15 Tom Tromey <tromey@adacore.com>
5131 * ravenscar-thread.c: Fix some typos.
5133 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5134 Tom Tromey <tromey@adacore.com>
5136 * ada-lang.c (ada_exception_sal): Change addr_string to a
5138 (create_ada_exception_catchpoint): Update.
5140 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5141 Tom Tromey <tromey@adacore.com>
5143 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5144 (bp_location_ops): Remove.
5145 (base_breakpoint_allocate_location): Update.
5146 (free_bp_location): Update.
5147 * ada-lang.c (class ada_catchpoint_location)
5148 <ada_catchpoint_location>: Remove ops parameter.
5149 (ada_catchpoint_location_dtor): Remove.
5150 (ada_catchpoint_location_ops): Remove.
5151 (allocate_location_exception): Update.
5152 * breakpoint.h (struct bp_location_ops): Remove.
5153 (class bp_location) <bp_location>: Remove bp_location_ops
5155 <~bp_location>: Add destructor.
5158 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5159 Pedro Alves <palves@redhat.com>
5161 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5164 2019-02-14 David Michael <fedora.dm0@gmail.com>
5165 Samuel Thibault <samuel.thibault@gnu.org>
5166 Thomas Schwinge <thomas@codesourcery.com>
5168 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5169 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5171 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5173 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5174 (check_empty): Use "const char *".
5176 * gnu-nat.c (gnu_nat_target::detach): Instead of
5177 'detach_inferior (pid)' call
5178 'detach_inferior (find_inferior_pid (pid))'.
5180 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5181 'nat/fork-inferior.o'.
5182 * gnu-nat.c: #include "nat/fork-inferior.h".
5184 * gnu-nat.c (gnu_nat_target::detach): Instead of
5185 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5186 * gnu-nat.h: #include "inf-child.h".
5187 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5188 'i386_gnu_nat_target::fetch_registers'.
5189 (gnu_store_registers): Rename/move to
5190 'i386_gnu_nat_target::store_registers'.
5192 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5193 * gnu-nat.h (mach_thread_info): New function.
5194 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5196 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5198 2019-02-14 Frederic Konrad <konrad@adacore.com>
5200 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5202 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5204 * windows-nat.c (windows_add_thread): Add new parameter
5205 "main_thread_p" with default value set to false. Update
5206 function documentation as well as all callers.
5207 (windows_delete_thread): Likewise.
5208 (fake_create_process): Update call to windows_add_thread.
5209 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5210 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5211 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5212 call to windows_delete_thread.
5214 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5216 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5218 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5220 * symfile.c (find_separate_debug_file): Use canonical path of
5221 sysroot with child_path instead of gdb_sysroot if it is valid.
5223 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5225 * symfile.c (find_separate_debug_file): Use child_path to
5226 determine if an object file is under a sysroot.
5228 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5230 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5231 unittests/child-path-selftests.c.
5232 * common/pathstuff.c (child_path): New function.
5233 * common/pathstuff.h (child_path): New prototype.
5234 * unittests/child-path-selftests.c: New file.
5236 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5238 * symfile.c (find_separate_debug_file): Look for separate debug
5239 files in debug directories under the sysroot.
5241 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5243 * symtab.h (struct minimal_symbol data_p): New const method.
5244 (struct minimal_symbol text_p): Likewise.
5245 * symtab.c (output_source_filename): Use file name style
5247 (print_symbol_info): Likewise.
5248 (print_msymbol_info): Use address style to print addresses.
5249 Use function name style to print executable text symbols.
5250 (expand_symtab_containing_pc): Use data_p.
5251 (find_pc_sect_compunit_symtab): Likewise.
5253 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5255 * breakpoint.c (describe_other_breakpoints): Use address style
5257 (say_where): Likewise.
5259 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5261 * ada-typeprint.c (print_func_type): Print function name
5262 style to print function name.
5263 * c-typeprint.c (c_print_type_1): Likewise.
5265 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5267 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5270 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5272 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5275 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5277 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5278 TYPE_CODE_REF types.
5280 2019-02-08 Jim Wilson <jimw@sifive.com>
5282 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5283 (riscv_linux_fregset): New.
5284 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5286 2019-02-07 Tom Tromey <tom@tromey.com>
5288 * thread.c (thread_cancel_execution_command): Update.
5289 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5291 (struct thread_fsm_ops): Remove.
5292 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5293 (thread_fsm_should_stop, thread_fsm_return_value)
5294 (thread_fsm_set_finished, thread_fsm_finished_p)
5295 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5297 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5298 * infrun.c (clear_proceed_status_thread)
5299 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5300 (print_stop_event): Update.
5301 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5303 (step_command_fsm_ops): Remove.
5304 (new_step_command_fsm): Remove.
5306 (step_command_fsm::should_stop): Rename from
5307 step_command_fsm_should_stop.
5308 (step_command_fsm::clean_up): Rename from
5309 step_command_fsm_clean_up.
5310 (step_command_fsm::do_async_reply_reason): Rename from
5311 step_command_fsm_async_reply_reason.
5312 (struct until_next_fsm): Inherit from thread_fsm. Add
5314 (until_next_fsm_ops): Remove.
5315 (new_until_next_fsm): Remove.
5316 (until_next_fsm::should_stop): Rename from
5317 until_next_fsm_should_stop.
5318 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5319 (until_next_fsm::do_async_reply_reason): Rename from
5320 until_next_fsm_async_reply_reason.
5321 (struct finish_command_fsm): Inherit from thread_fsm. Add
5322 constructor. Change type of breakpoint.
5323 (finish_command_fsm_ops): Remove.
5324 (new_finish_command_fsm): Remove.
5325 (finish_command_fsm::should_stop): Rename from
5326 finish_command_fsm_should_stop.
5327 (finish_command_fsm::clean_up): Rename from
5328 finish_command_fsm_clean_up.
5329 (finish_command_fsm::return_value): Rename from
5330 finish_command_fsm_return_value.
5331 (finish_command_fsm::do_async_reply_reason): Rename from
5332 finish_command_fsm_async_reply_reason.
5333 (finish_command): Update.
5334 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5336 (call_thread_fsm_ops): Remove.
5337 (call_thread_fsm::call_thread_fsm): Rename from
5338 new_call_thread_fsm.
5339 (call_thread_fsm::should_stop): Rename from
5340 call_thread_fsm_should_stop.
5341 (call_thread_fsm::should_notify_stop): Rename from
5342 call_thread_fsm_should_notify_stop.
5343 (run_inferior_call, call_function_by_hand_dummy): Update.
5344 * cli/cli-interp.c (should_print_stop_to_console): Update.
5345 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5346 Add constructor. Change type of location_breakpoint,
5348 (until_break_fsm_ops): Remove.
5349 (new_until_break_fsm): Remove.
5350 (until_break_fsm::should_stop): Rename from
5351 until_break_fsm_should_stop.
5352 (until_break_fsm::clean_up): Rename from
5353 until_break_fsm_clean_up.
5354 (until_break_fsm::do_async_reply_reason): Rename from
5355 until_break_fsm_async_reply_reason.
5356 (until_break_command): Update.
5357 * thread-fsm.c: Remove.
5358 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5360 2019-02-07 Tom Tromey <tom@tromey.com>
5362 * yy-remap.h: Add include guard.
5363 * xtensa-tdep.h: Add include guard.
5364 * xcoffread.h: Rename include guard.
5365 * varobj-iter.h: Add include guard.
5366 * tui/tui.h: Rename include guard.
5367 * tui/tui-winsource.h: Rename include guard.
5368 * tui/tui-wingeneral.h: Rename include guard.
5369 * tui/tui-windata.h: Rename include guard.
5370 * tui/tui-win.h: Rename include guard.
5371 * tui/tui-stack.h: Rename include guard.
5372 * tui/tui-source.h: Rename include guard.
5373 * tui/tui-regs.h: Rename include guard.
5374 * tui/tui-out.h: Rename include guard.
5375 * tui/tui-layout.h: Rename include guard.
5376 * tui/tui-io.h: Rename include guard.
5377 * tui/tui-hooks.h: Rename include guard.
5378 * tui/tui-file.h: Rename include guard.
5379 * tui/tui-disasm.h: Rename include guard.
5380 * tui/tui-data.h: Rename include guard.
5381 * tui/tui-command.h: Rename include guard.
5382 * tic6x-tdep.h: Add include guard.
5383 * target/waitstatus.h: Rename include guard.
5384 * target/wait.h: Rename include guard.
5385 * target/target.h: Rename include guard.
5386 * target/resume.h: Rename include guard.
5387 * target-float.h: Rename include guard.
5388 * stabsread.h: Add include guard.
5389 * rs6000-tdep.h: Add include guard.
5390 * riscv-fbsd-tdep.h: Add include guard.
5391 * regformats/regdef.h: Rename include guard.
5392 * record.h: Rename include guard.
5393 * python/python.h: Rename include guard.
5394 * python/python-internal.h: Rename include guard.
5395 * python/py-stopevent.h: Rename include guard.
5396 * python/py-ref.h: Rename include guard.
5397 * python/py-record.h: Rename include guard.
5398 * python/py-record-full.h: Rename include guard.
5399 * python/py-record-btrace.h: Rename include guard.
5400 * python/py-instruction.h: Rename include guard.
5401 * python/py-events.h: Rename include guard.
5402 * python/py-event.h: Rename include guard.
5403 * procfs.h: Add include guard.
5404 * proc-utils.h: Add include guard.
5405 * p-lang.h: Add include guard.
5406 * or1k-tdep.h: Rename include guard.
5407 * observable.h: Rename include guard.
5408 * nto-tdep.h: Rename include guard.
5409 * nat/x86-linux.h: Rename include guard.
5410 * nat/x86-linux-dregs.h: Rename include guard.
5411 * nat/x86-gcc-cpuid.h: Add include guard.
5412 * nat/x86-dregs.h: Rename include guard.
5413 * nat/x86-cpuid.h: Rename include guard.
5414 * nat/ppc-linux.h: Rename include guard.
5415 * nat/mips-linux-watch.h: Rename include guard.
5416 * nat/linux-waitpid.h: Rename include guard.
5417 * nat/linux-ptrace.h: Rename include guard.
5418 * nat/linux-procfs.h: Rename include guard.
5419 * nat/linux-osdata.h: Rename include guard.
5420 * nat/linux-nat.h: Rename include guard.
5421 * nat/linux-namespaces.h: Rename include guard.
5422 * nat/linux-btrace.h: Rename include guard.
5423 * nat/glibc_thread_db.h: Rename include guard.
5424 * nat/gdb_thread_db.h: Rename include guard.
5425 * nat/gdb_ptrace.h: Rename include guard.
5426 * nat/fork-inferior.h: Rename include guard.
5427 * nat/amd64-linux-siginfo.h: Rename include guard.
5428 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5429 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5430 * nat/aarch64-linux.h: Rename include guard.
5431 * nat/aarch64-linux-hw-point.h: Rename include guard.
5432 * mn10300-tdep.h: Add include guard.
5433 * mips-linux-tdep.h: Add include guard.
5434 * mi/mi-parse.h: Rename include guard.
5435 * mi/mi-out.h: Rename include guard.
5436 * mi/mi-main.h: Rename include guard.
5437 * mi/mi-interp.h: Rename include guard.
5438 * mi/mi-getopt.h: Rename include guard.
5439 * mi/mi-console.h: Rename include guard.
5440 * mi/mi-common.h: Rename include guard.
5441 * mi/mi-cmds.h: Rename include guard.
5442 * mi/mi-cmd-break.h: Rename include guard.
5443 * m2-lang.h: Add include guard.
5444 * location.h: Rename include guard.
5445 * linux-record.h: Rename include guard.
5446 * linux-nat.h: Add include guard.
5447 * linux-fork.h: Add include guard.
5448 * i386-darwin-tdep.h: Rename include guard.
5449 * hppa-linux-offsets.h: Add include guard.
5450 * guile/guile.h: Rename include guard.
5451 * guile/guile-internal.h: Rename include guard.
5452 * gnu-nat.h: Rename include guard.
5453 * gdb-stabs.h: Rename include guard.
5454 * frv-tdep.h: Add include guard.
5455 * f-lang.h: Add include guard.
5456 * event-loop.h: Add include guard.
5457 * darwin-nat.h: Rename include guard.
5458 * cp-abi.h: Rename include guard.
5459 * config/sparc/nm-sol2.h: Rename include guard.
5460 * config/nm-nto.h: Rename include guard.
5461 * config/nm-linux.h: Add include guard.
5462 * config/i386/nm-i386gnu.h: Rename include guard.
5463 * config/djgpp/nl_types.h: Rename include guard.
5464 * config/djgpp/langinfo.h: Rename include guard.
5465 * compile/gcc-cp-plugin.h: Add include guard.
5466 * compile/gcc-c-plugin.h: Add include guard.
5467 * compile/compile.h: Rename include guard.
5468 * compile/compile-object-run.h: Rename include guard.
5469 * compile/compile-object-load.h: Rename include guard.
5470 * compile/compile-internal.h: Rename include guard.
5471 * compile/compile-cplus.h: Rename include guard.
5472 * compile/compile-c.h: Rename include guard.
5473 * common/xml-utils.h: Rename include guard.
5474 * common/x86-xstate.h: Rename include guard.
5475 * common/version.h: Rename include guard.
5476 * common/vec.h: Rename include guard.
5477 * common/tdesc.h: Rename include guard.
5478 * common/selftest.h: Rename include guard.
5479 * common/scoped_restore.h: Rename include guard.
5480 * common/scoped_mmap.h: Rename include guard.
5481 * common/scoped_fd.h: Rename include guard.
5482 * common/safe-iterator.h: Rename include guard.
5483 * common/run-time-clock.h: Rename include guard.
5484 * common/refcounted-object.h: Rename include guard.
5485 * common/queue.h: Rename include guard.
5486 * common/ptid.h: Rename include guard.
5487 * common/print-utils.h: Rename include guard.
5488 * common/preprocessor.h: Rename include guard.
5489 * common/pathstuff.h: Rename include guard.
5490 * common/observable.h: Rename include guard.
5491 * common/netstuff.h: Rename include guard.
5492 * common/job-control.h: Rename include guard.
5493 * common/host-defs.h: Rename include guard.
5494 * common/gdb_wait.h: Rename include guard.
5495 * common/gdb_vecs.h: Rename include guard.
5496 * common/gdb_unlinker.h: Rename include guard.
5497 * common/gdb_unique_ptr.h: Rename include guard.
5498 * common/gdb_tilde_expand.h: Rename include guard.
5499 * common/gdb_sys_time.h: Rename include guard.
5500 * common/gdb_string_view.h: Rename include guard.
5501 * common/gdb_splay_tree.h: Rename include guard.
5502 * common/gdb_setjmp.h: Rename include guard.
5503 * common/gdb_ref_ptr.h: Rename include guard.
5504 * common/gdb_optional.h: Rename include guard.
5505 * common/gdb_locale.h: Rename include guard.
5506 * common/gdb_assert.h: Rename include guard.
5507 * common/filtered-iterator.h: Rename include guard.
5508 * common/filestuff.h: Rename include guard.
5509 * common/fileio.h: Rename include guard.
5510 * common/environ.h: Rename include guard.
5511 * common/common-utils.h: Rename include guard.
5512 * common/common-types.h: Rename include guard.
5513 * common/common-regcache.h: Rename include guard.
5514 * common/common-inferior.h: Rename include guard.
5515 * common/common-gdbthread.h: Rename include guard.
5516 * common/common-exceptions.h: Rename include guard.
5517 * common/common-defs.h: Rename include guard.
5518 * common/common-debug.h: Rename include guard.
5519 * common/cleanups.h: Rename include guard.
5520 * common/buffer.h: Rename include guard.
5521 * common/btrace-common.h: Rename include guard.
5522 * common/break-common.h: Rename include guard.
5523 * cli/cli-utils.h: Rename include guard.
5524 * cli/cli-style.h: Rename include guard.
5525 * cli/cli-setshow.h: Rename include guard.
5526 * cli/cli-script.h: Rename include guard.
5527 * cli/cli-interp.h: Rename include guard.
5528 * cli/cli-decode.h: Rename include guard.
5529 * cli/cli-cmds.h: Rename include guard.
5530 * charset-list.h: Add include guard.
5531 * buildsym-legacy.h: Rename include guard.
5532 * bfin-tdep.h: Add include guard.
5533 * ax.h: Rename include guard.
5534 * arm-linux-tdep.h: Add include guard.
5535 * arm-fbsd-tdep.h: Add include guard.
5536 * arch/xtensa.h: Rename include guard.
5537 * arch/tic6x.h: Add include guard.
5538 * arch/i386.h: Add include guard.
5539 * arch/arm.h: Rename include guard.
5540 * arch/arm-linux.h: Rename include guard.
5541 * arch/arm-get-next-pcs.h: Rename include guard.
5542 * arch/amd64.h: Add include guard.
5543 * arch/aarch64-insn.h: Rename include guard.
5544 * arch-utils.h: Rename include guard.
5545 * annotate.h: Add include guard.
5546 * amd64-darwin-tdep.h: Rename include guard.
5547 * aarch64-linux-tdep.h: Add include guard.
5548 * aarch64-fbsd-tdep.h: Add include guard.
5549 * aarch32-linux-nat.h: Add include guard.
5551 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5553 * macrotab.c (macro_define_internal): New function that
5554 factorizes macro_define_object_internal and macro_define_function
5556 (macro_define_object_internal): Use macro_define_internal.
5557 (macro_define_function): Likewise.
5559 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5561 * macrocmd.c (extract_identifier): Return
5562 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5565 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5567 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5569 2019-02-05 Tom Tromey <tom@tromey.com>
5571 * target.c (target_stack::unpush): Move assertion earlier.
5573 2019-01-30 Tom Tromey <tom@tromey.com>
5576 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5577 (gdbpy_parse_and_eval): Likewise.
5578 * python/python-internal.h (gdbpy_allow_threads): New class.
5580 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5582 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5583 (aarch64_fbsd_fpregmap): Move earlier.
5584 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5585 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5586 instead of individual calls to trad_frame_set_reg_addr.
5587 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5589 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5590 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5591 instead of individual calls to trad_frame_set_reg_addr.
5593 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5595 * CONTRIBUTE: Replace contribution list with wiki link.
5597 2019-01-25 Tom Tromey <tom@tromey.com>
5599 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5601 2019-01-25 Tom Tromey <tom@tromey.com>
5603 * xtensa-linux-nat.c: Fix common/ includes.
5604 * xml-support.h: Fix common/ includes.
5605 * xml-support.c: Fix common/ includes.
5606 * x86-linux-nat.c: Fix common/ includes.
5607 * windows-nat.c: Fix common/ includes.
5608 * varobj.h: Fix common/ includes.
5609 * varobj.c: Fix common/ includes.
5610 * value.c: Fix common/ includes.
5611 * valops.c: Fix common/ includes.
5612 * utils.c: Fix common/ includes.
5613 * unittests/xml-utils-selftests.c: Fix common/ includes.
5614 * unittests/utils-selftests.c: Fix common/ includes.
5615 * unittests/unpack-selftests.c: Fix common/ includes.
5616 * unittests/tracepoint-selftests.c: Fix common/ includes.
5617 * unittests/style-selftests.c: Fix common/ includes.
5618 * unittests/string_view-selftests.c: Fix common/ includes.
5619 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5620 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5621 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5622 * unittests/rsp-low-selftests.c: Fix common/ includes.
5623 * unittests/parse-connection-spec-selftests.c: Fix common/
5625 * unittests/optional-selftests.c: Fix common/ includes.
5626 * unittests/offset-type-selftests.c: Fix common/ includes.
5627 * unittests/observable-selftests.c: Fix common/ includes.
5628 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5629 * unittests/memrange-selftests.c: Fix common/ includes.
5630 * unittests/memory-map-selftests.c: Fix common/ includes.
5631 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5632 * unittests/function-view-selftests.c: Fix common/ includes.
5633 * unittests/environ-selftests.c: Fix common/ includes.
5634 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5635 * unittests/common-utils-selftests.c: Fix common/ includes.
5636 * unittests/cli-utils-selftests.c: Fix common/ includes.
5637 * unittests/array-view-selftests.c: Fix common/ includes.
5638 * ui-file.c: Fix common/ includes.
5639 * tui/tui-io.c: Fix common/ includes.
5640 * tracepoint.h: Fix common/ includes.
5641 * tracepoint.c: Fix common/ includes.
5642 * tracefile-tfile.c: Fix common/ includes.
5643 * top.h: Fix common/ includes.
5644 * top.c: Fix common/ includes.
5645 * thread.c: Fix common/ includes.
5646 * target/waitstatus.h: Fix common/ includes.
5647 * target/waitstatus.c: Fix common/ includes.
5648 * target.h: Fix common/ includes.
5649 * target.c: Fix common/ includes.
5650 * target-memory.c: Fix common/ includes.
5651 * target-descriptions.c: Fix common/ includes.
5652 * symtab.h: Fix common/ includes.
5653 * symfile.c: Fix common/ includes.
5654 * stap-probe.c: Fix common/ includes.
5655 * spu-linux-nat.c: Fix common/ includes.
5656 * sparc-nat.c: Fix common/ includes.
5657 * source.c: Fix common/ includes.
5658 * solib.c: Fix common/ includes.
5659 * solib-target.c: Fix common/ includes.
5660 * ser-unix.c: Fix common/ includes.
5661 * ser-tcp.c: Fix common/ includes.
5662 * ser-pipe.c: Fix common/ includes.
5663 * ser-base.c: Fix common/ includes.
5664 * selftest-arch.c: Fix common/ includes.
5665 * s12z-tdep.c: Fix common/ includes.
5666 * rust-exp.y: Fix common/ includes.
5667 * rs6000-aix-tdep.c: Fix common/ includes.
5668 * riscv-tdep.c: Fix common/ includes.
5669 * remote.c: Fix common/ includes.
5670 * remote-notif.h: Fix common/ includes.
5671 * remote-fileio.h: Fix common/ includes.
5672 * remote-fileio.c: Fix common/ includes.
5673 * regcache.h: Fix common/ includes.
5674 * regcache.c: Fix common/ includes.
5675 * record-btrace.c: Fix common/ includes.
5676 * python/python.c: Fix common/ includes.
5677 * python/py-type.c: Fix common/ includes.
5678 * python/py-inferior.c: Fix common/ includes.
5679 * progspace.h: Fix common/ includes.
5680 * producer.c: Fix common/ includes.
5681 * procfs.c: Fix common/ includes.
5682 * proc-api.c: Fix common/ includes.
5683 * printcmd.c: Fix common/ includes.
5684 * ppc-linux-nat.c: Fix common/ includes.
5685 * parser-defs.h: Fix common/ includes.
5686 * osdata.c: Fix common/ includes.
5687 * obsd-nat.c: Fix common/ includes.
5688 * nat/x86-linux.c: Fix common/ includes.
5689 * nat/x86-linux-dregs.c: Fix common/ includes.
5690 * nat/x86-dregs.h: Fix common/ includes.
5691 * nat/x86-dregs.c: Fix common/ includes.
5692 * nat/ppc-linux.c: Fix common/ includes.
5693 * nat/mips-linux-watch.h: Fix common/ includes.
5694 * nat/mips-linux-watch.c: Fix common/ includes.
5695 * nat/linux-waitpid.c: Fix common/ includes.
5696 * nat/linux-ptrace.h: Fix common/ includes.
5697 * nat/linux-ptrace.c: Fix common/ includes.
5698 * nat/linux-procfs.c: Fix common/ includes.
5699 * nat/linux-personality.c: Fix common/ includes.
5700 * nat/linux-osdata.c: Fix common/ includes.
5701 * nat/linux-namespaces.c: Fix common/ includes.
5702 * nat/linux-btrace.h: Fix common/ includes.
5703 * nat/linux-btrace.c: Fix common/ includes.
5704 * nat/fork-inferior.c: Fix common/ includes.
5705 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5706 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5707 * nat/aarch64-linux.c: Fix common/ includes.
5708 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5709 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5710 * namespace.h: Fix common/ includes.
5711 * mips-linux-tdep.c: Fix common/ includes.
5712 * minsyms.c: Fix common/ includes.
5713 * mi/mi-parse.h: Fix common/ includes.
5714 * mi/mi-main.c: Fix common/ includes.
5715 * mi/mi-cmd-env.c: Fix common/ includes.
5716 * memrange.h: Fix common/ includes.
5717 * memattr.c: Fix common/ includes.
5718 * maint.h: Fix common/ includes.
5719 * maint.c: Fix common/ includes.
5720 * main.c: Fix common/ includes.
5721 * machoread.c: Fix common/ includes.
5722 * location.c: Fix common/ includes.
5723 * linux-thread-db.c: Fix common/ includes.
5724 * linux-nat.c: Fix common/ includes.
5725 * linux-fork.c: Fix common/ includes.
5726 * inline-frame.c: Fix common/ includes.
5727 * infrun.c: Fix common/ includes.
5728 * inflow.c: Fix common/ includes.
5729 * inferior.h: Fix common/ includes.
5730 * inferior.c: Fix common/ includes.
5731 * infcmd.c: Fix common/ includes.
5732 * inf-ptrace.c: Fix common/ includes.
5733 * inf-child.c: Fix common/ includes.
5734 * ia64-linux-nat.c: Fix common/ includes.
5735 * i387-tdep.c: Fix common/ includes.
5736 * i386-tdep.c: Fix common/ includes.
5737 * i386-linux-tdep.c: Fix common/ includes.
5738 * i386-linux-nat.c: Fix common/ includes.
5739 * i386-go32-tdep.c: Fix common/ includes.
5740 * i386-fbsd-tdep.c: Fix common/ includes.
5741 * i386-fbsd-nat.c: Fix common/ includes.
5742 * guile/scm-type.c: Fix common/ includes.
5743 * guile/guile.c: Fix common/ includes.
5744 * go32-nat.c: Fix common/ includes.
5745 * gnu-nat.c: Fix common/ includes.
5746 * gdbthread.h: Fix common/ includes.
5747 * gdbarch-selftests.c: Fix common/ includes.
5748 * gdb_usleep.c: Fix common/ includes.
5749 * gdb_select.h: Fix common/ includes.
5750 * gdb_bfd.c: Fix common/ includes.
5751 * gcore.c: Fix common/ includes.
5752 * fork-child.c: Fix common/ includes.
5753 * findvar.c: Fix common/ includes.
5754 * fbsd-nat.c: Fix common/ includes.
5755 * event-top.c: Fix common/ includes.
5756 * event-loop.c: Fix common/ includes.
5757 * dwarf2read.c: Fix common/ includes.
5758 * dwarf2loc.c: Fix common/ includes.
5759 * dwarf2-frame.c: Fix common/ includes.
5760 * dwarf-index-cache.c: Fix common/ includes.
5761 * dtrace-probe.c: Fix common/ includes.
5762 * disasm-selftests.c: Fix common/ includes.
5763 * defs.h: Fix common/ includes.
5764 * csky-tdep.c: Fix common/ includes.
5765 * cp-valprint.c: Fix common/ includes.
5766 * cp-support.h: Fix common/ includes.
5767 * cp-support.c: Fix common/ includes.
5768 * corelow.c: Fix common/ includes.
5769 * completer.h: Fix common/ includes.
5770 * completer.c: Fix common/ includes.
5771 * compile/compile.c: Fix common/ includes.
5772 * compile/compile-loc2c.c: Fix common/ includes.
5773 * compile/compile-cplus-types.c: Fix common/ includes.
5774 * compile/compile-cplus-symbols.c: Fix common/ includes.
5775 * command.h: Fix common/ includes.
5776 * cli/cli-dump.c: Fix common/ includes.
5777 * cli/cli-cmds.c: Fix common/ includes.
5778 * charset.c: Fix common/ includes.
5779 * build-id.c: Fix common/ includes.
5780 * btrace.h: Fix common/ includes.
5781 * btrace.c: Fix common/ includes.
5782 * breakpoint.h: Fix common/ includes.
5783 * breakpoint.c: Fix common/ includes.
5785 (enum agent_op): Fix common/ includes.
5786 * ax-general.c (struct aop_map): Fix common/ includes.
5787 * ax-gdb.c: Fix common/ includes.
5788 * auxv.c: Fix common/ includes.
5789 * auto-load.c: Fix common/ includes.
5790 * arm-tdep.c: Fix common/ includes.
5791 * arch/riscv.c: Fix common/ includes.
5792 * arch/ppc-linux-common.c: Fix common/ includes.
5793 * arch/i386.c: Fix common/ includes.
5794 * arch/arm.c: Fix common/ includes.
5795 * arch/arm-linux.c: Fix common/ includes.
5796 * arch/arm-get-next-pcs.c: Fix common/ includes.
5797 * arch/amd64.c: Fix common/ includes.
5798 * arch/aarch64.c: Fix common/ includes.
5799 * arch/aarch64-insn.c: Fix common/ includes.
5800 * arch-utils.c: Fix common/ includes.
5801 * amd64-windows-tdep.c: Fix common/ includes.
5802 * amd64-tdep.c: Fix common/ includes.
5803 * amd64-sol2-tdep.c: Fix common/ includes.
5804 * amd64-obsd-tdep.c: Fix common/ includes.
5805 * amd64-nbsd-tdep.c: Fix common/ includes.
5806 * amd64-linux-tdep.c: Fix common/ includes.
5807 * amd64-linux-nat.c: Fix common/ includes.
5808 * amd64-fbsd-tdep.c: Fix common/ includes.
5809 * amd64-fbsd-nat.c: Fix common/ includes.
5810 * amd64-dicos-tdep.c: Fix common/ includes.
5811 * amd64-darwin-tdep.c: Fix common/ includes.
5812 * agent.c: Fix common/ includes.
5813 * ada-lang.h: Fix common/ includes.
5814 * ada-lang.c: Fix common/ includes.
5815 * aarch64-tdep.c: Fix common/ includes.
5817 2019-01-25 Tom Tromey <tom@tromey.com>
5819 * common/create-version.sh: Use common/version.h.
5821 2019-01-24 Pedro Alves <palves@redhat.com>
5823 * infrun.c (signal_stop, signal_print, signal_program)
5824 (signal_catch, signal_pass): Now arrays instead of pointers.
5825 (update_signals_program_target, do_target_resume)
5826 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5827 * linux-nat.c (linux_nat_target::pass_signals)
5828 (linux_nat_target::create_inferior, linux_nat_target::attach):
5830 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5831 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5832 * procfs.c (procfs_target::pass_signals): Adjust.
5833 * record-full.c (record_full_target::resume): Adjust.
5834 * remote.c (remote_target::pass_signals)
5835 (remote_target::program_signals): Adjust.
5836 * target-debug.h (target_debug_print_signals): Now takes a
5837 gdb::array_view as parameter. Adjust.
5838 * target.h (target_ops) <pass_signals, program_signals>: Replace
5839 pointer and length parameters with gdb::array_view.
5840 (target_pass_signals, target_program_signals): Likewise.
5841 * target-delegates.c: Regenerate.
5843 2019-01-24 Pedro Alves <palves@redhat.com>
5845 * common/forward-scope-exit.h
5846 (forward_scope_exit::forward_scope_exit): Pass arguments to
5847 m_bind_function directly, instead of creating a std::bind and
5850 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5852 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5854 (pass_in_v_vfp_candidate): Likewise.
5856 2019-01-23 Tom Tromey <tom@tromey.com>
5857 Pedro Alves <palves@redhat.com>
5859 * regcache.c (class regcache_invalidator): Remove.
5860 (regcache::raw_write): Use make_scope_exit.
5862 2019-01-23 Tom Tromey <tom@tromey.com>
5864 * ui-out.h (class ui_out_emit_type): Update comment.
5866 2019-01-23 Tom Tromey <tom@tromey.com>
5868 * infrun.c (fetch_inferior_event): Update comment.
5870 2019-01-23 Tom Tromey <tom@tromey.com>
5871 Pedro Alves <palves@redhat.com>
5873 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5875 (fetch_inferior_event): Use SCOPE_EXIT.
5878 2019-01-23 Tom Tromey <tom@tromey.com>
5879 Pedro Alves <palves@redhat.com>
5881 * infrun.c (disable_thread_events): Delete.
5882 (stop_all_threads): Use SCOPE_EXIT.
5884 2019-01-23 Tom Tromey <tom@tromey.com>
5885 Pedro Alves <palves@redhat.com>
5887 * symfile.c: Include forward-scope-exit.h.
5888 (clear_symtab_users_cleanup): Replace forward declaration with
5889 a FORWARD_SCOPE_EXIT.
5890 (syms_from_objfile_1): Use the forward_scope_exit and
5891 gdb::optional instead of cleanup_function.
5892 (reread_symbols): Use the forward_scope_exit instead of
5894 (clear_symtab_users_cleanup): Remove function.
5896 2019-01-23 Tom Tromey <tom@tromey.com>
5897 Pedro Alves <palves@redhat.com>
5899 * linux-nat.c: Include scope-exit.h.
5900 (cleanup_target_stop): Remove.
5901 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5904 2019-01-23 Tom Tromey <tom@tromey.com>
5905 Pedro Alves <palves@redhat.com>
5907 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5908 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5910 2019-01-23 Tom Tromey <tom@tromey.com>
5911 Andrew Burgess <andrew.burgess@embecosm.com>
5912 Pedro Alves <palves@redhat.com>
5914 * infrun.c (fetch_inferior_event): Use scope_exit.
5915 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5916 * top.c (execute_command): Use scope_exit.
5917 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5918 * utils.c (do_bpstat_clear_actions_cleanup)
5919 (make_bpstat_clear_actions_cleanup): Remove.
5921 2019-01-23 Tom Tromey <tom@tromey.com>
5922 Pedro Alves <palves@redhat.com>
5924 * infrun.c: Include "common/scope-exit.h"
5925 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5926 (wait_for_inferior): Use SCOPE_EXIT.
5927 (fetch_inferior_event): Use scope_exit.
5929 2019-01-23 Tom Tromey <tom@tromey.com>
5930 Pedro Alves <palves@redhat.com>
5932 * breakpoint.c (create_breakpoint): Remove cleanup.
5934 2019-01-23 Tom Tromey <tom@tromey.com>
5935 Andrew Burgess <andrew.burgess@embecosm.com>
5936 Pedro Alves <palves@redhat.com>
5938 2019-01-23 Pedro Alves <palves@redhat.com>
5940 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5942 2019-01-23 Pedro Alves <palves@redhat.com>
5943 Andrew Burgess <andrew.burgess@embecosm.com>
5945 * gdbthread.h: Include "common/forward-scope-exit.h".
5946 (scoped_finish_thread_state): Redefine custom class in terms of
5949 2019-01-23 Pedro Alves <palves@redhat.com>
5950 Andrew Burgess <andrew.burgess@embecosm.com>
5952 * common/forward-scope-exit.h: New file.
5954 2019-01-23 Pedro Alves <palves@redhat.com>
5955 Andrew Burgess <andrew.burgess@embecosm.com>
5956 Tom Tromey <tom@tromey.com>
5958 * common/scope-exit.h: New file.
5960 2019-01-23 Pedro Alves <palves@redhat.com>
5962 * common/preprocessor.h (ESC): Rename to ...
5963 (ESC_PARENS): ... this.
5964 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5965 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5967 2019-01-23 Tom Tromey <tom@tromey.com>
5969 * language.h (class scoped_switch_to_sym_language_if_auto):
5970 Initialize m_lang in both cases.
5972 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5974 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5977 2019-01-22 Tom Tromey <tom@tromey.com>
5979 * corelow.c: Do not include sys/file.h.
5981 2019-01-22 Tom Tromey <tom@tromey.com>
5983 * tui/tui-wingeneral.h: Include gdb_curses.h.
5985 2019-01-22 Tom Tromey <tom@tromey.com>
5987 * source-cache.h (class source_cache) <get_source_lines,
5988 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5990 2019-01-22 Tom Tromey <tom@tromey.com>
5992 * remote-fileio.h (struct remote_target): Declare.
5994 2019-01-22 Tom Tromey <tom@tromey.com>
5996 * python/py-arch.c: Do not include py-ref.h.
5997 * python/py-bpevent.c: Do not include py-ref.h.
5998 * python/py-cmd.c: Do not include py-ref.h.
5999 * python/py-continueevent.c: Do not include py-ref.h.
6000 * python/py-event.h: Do not include py-ref.h.
6001 * python/py-evtregistry.c: Do not include py-ref.h.
6002 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6003 * python/py-frame.c: Do not include py-ref.h.
6004 * python/py-framefilter.c: Do not include py-ref.h.
6005 * python/py-function.c: Do not include py-ref.h.
6006 * python/py-infevents.c: Do not include py-ref.h.
6007 * python/py-linetable.c: Do not include py-ref.h.
6008 * python/py-objfile.c: Do not include py-ref.h.
6009 * python/py-param.c: Do not include py-ref.h.
6010 * python/py-prettyprint.c: Do not include py-ref.h.
6011 * python/py-progspace.c: Do not include py-ref.h.
6012 * python/py-symbol.c: Do not include py-ref.h.
6013 * python/py-symtab.c: Do not include py-ref.h.
6014 * python/py-type.c: Do not include py-ref.h.
6015 * python/py-unwind.c: Do not include py-ref.h.
6016 * python/py-utils.c: Do not include py-ref.h.
6017 * python/py-value.c: Do not include py-ref.h.
6018 * python/py-varobj.c: Do not include py-ref.h.
6019 * python/py-xmethods.c: Do not include py-ref.h.
6020 * python/python.c: Do not include py-ref.h.
6021 * varobj.c: Do not include py-ref.h.
6023 2019-01-22 Tom Tromey <tom@tromey.com>
6025 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6028 2019-01-22 Tom Tromey <tom@tromey.com>
6030 * compile/compile-cplus-types.c: Remove a comment by #include.
6032 2019-01-22 Tom Tromey <tom@tromey.com>
6034 * compile/gcc-c-plugin.h: Include compile-internal.h.
6036 2019-01-22 Tom Tromey <tom@tromey.com>
6038 * stabsread.c (EXTERN): Do not define.
6039 (symnum, next_symbol_text_func, processing_gcc_compilation)
6040 (within_function, global_sym_chain, global_stabs)
6041 (previous_stab_code, this_object_header_files)
6042 (n_this_object_header_files)
6043 (n_allocated_this_object_header_files): Define.
6044 * stabsread.h (EXTERN): Never define. Use "extern".
6046 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6048 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6051 2019-01-21 Tom Tromey <tom@tromey.com>
6053 * ui-out.c: Fix includes.
6054 * tui/tui-source.c: Fix includes.
6055 * target.c: Fix includes.
6056 * remote.c: Fix includes.
6057 * regcache.c: Fix includes.
6058 * python/py-block.c: Fix includes.
6059 * printcmd.c: Fix includes.
6060 * or1k-tdep.c: Fix includes.
6061 * mi/mi-main.c: Fix includes.
6062 * m32r-tdep.c: Fix includes.
6063 * csky-tdep.c: Fix includes.
6064 * compile/compile-cplus-types.c: Fix includes.
6065 * cli/cli-interp.c: Fix includes.
6067 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6069 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6072 2019-01-16 Tom Tromey <tom@tromey.com>
6074 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6076 (struct objfile) <msymbols_range>: Move from top level.
6077 <msymbols>: New method.
6078 (class objfile_msymbols): Remove.
6079 * symtab.c (default_collect_symbol_completion_matches_break_on):
6081 * symmisc.c (dump_msymbols): Update.
6082 * stabsread.c (scan_file_globals): Update.
6083 * objc-lang.c (info_selectors_command, info_classes_command)
6084 (find_methods): Update.
6085 * minsyms.c (find_solib_trampoline_target): Update.
6086 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6087 * coffread.c (coff_symfile_read): Update.
6088 * ada-lang.c (ada_lookup_simple_minsym)
6089 (ada_collect_symbol_completion_matches): Update.
6091 2019-01-16 Tom Tromey <tom@tromey.com>
6093 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6094 type. Remove no-argument constructor.
6095 <iterator::operator++>: Simplify.
6097 <end>: Use minimal_symbol_count.
6099 2019-01-16 Tom Tromey <tom@tromey.com>
6101 * objfiles.h (struct objfile) <psymtabs>: New method.
6102 (class objfile_psymtabs): Remove.
6103 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6105 <range>: New method.
6106 (require_partial_symbols): Change return type.
6107 * psymtab.c (require_partial_symbols)
6108 (psym_expand_symtabs_matching): Update.
6109 * mdebugread.c (parse_partial_symbols): Update.
6110 * dbxread.c (dbx_end_psymtab): Update.
6112 2019-01-15 Tom Tromey <tom@tromey.com>
6114 * symtab.c (lookup_objfile_from_block)
6115 (lookup_symbol_in_objfile_symtabs)
6116 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6117 (find_line_symtab, info_sources_command)
6118 (default_collect_symbol_completion_matches_break_on)
6119 (make_source_files_completion_list): Update.
6120 * symmisc.c (print_objfile_statistics, dump_objfile)
6121 (maintenance_print_symbols, maintenance_info_symtabs)
6122 (maintenance_check_symtabs, maintenance_info_line_tables):
6124 * source.c (select_source_symtab)
6125 (forget_cached_source_info_for_objfile): Update.
6126 * objfiles.h (class objfile_compunits): Remove.
6127 (struct objfile) <compunits_range>: New typedef.
6128 (compunits): New method.
6129 * objfiles.c (objfile_relocate1): Update.
6130 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6131 * maint.c (count_symtabs_and_blocks): Update.
6132 * linespec.c (iterate_over_all_matching_symtabs): Update.
6133 * cp-support.c (add_symbol_overload_list_qualified): Update.
6134 * coffread.c (coff_symtab_read): Update.
6135 * ada-lang.c (add_nonlocal_symbols)
6136 (ada_collect_symbol_completion_matches)
6137 (ada_add_global_exceptions): Update.
6139 2019-01-15 Tom Tromey <tom@tromey.com>
6141 * progspace.h (program_space) <objfiles_safe_range>: New
6143 <objfiles_safe>: New method.
6144 * objfiles.h (class all_objfiles_safe): Remove.
6145 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6146 * jit.c (jit_inferior_exit_hook): Update.
6148 2019-01-17 Tom Tromey <tom@tromey.com>
6150 * progspace.h (program_space) <objfiles_range>: New typedef.
6151 <objfiles>: New method.
6152 <objfiles_head>: Rename from objfiles.
6153 (object_files): Update.
6154 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6155 * guile/scm-pretty-print.c
6156 (ppscm_find_pretty_printer_from_objfiles): Update.
6157 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6158 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6160 * python/py-progspace.c (pspy_get_objfiles): Update.
6161 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6163 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6164 (objfpy_lookup_objfile_by_build_id): Update.
6165 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6166 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6168 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6169 (expand_symtab_containing_pc, lookup_objfile_from_block)
6170 (lookup_static_symbol, basic_lookup_transparent_type)
6171 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6172 (find_line_symtab, info_sources_command)
6173 (default_collect_symbol_completion_matches_break_on)
6174 (make_source_files_completion_list, find_main_name): Update.
6175 * symmisc.c (print_symbol_bcache_statistics)
6176 (print_objfile_statistics, maintenance_print_symbols)
6177 (maintenance_print_msymbols, maintenance_print_objfiles)
6178 (maintenance_info_symtabs, maintenance_check_symtabs)
6179 (maintenance_expand_symtabs, maintenance_info_line_tables):
6181 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6182 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6183 (map_overlay_command, unmap_overlay_command)
6184 (simple_overlay_update, expand_symtabs_matching)
6185 (map_symbol_filenames): Update.
6186 * symfile-debug.c (set_debug_symfile): Update.
6187 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6189 * source.c (select_source_symtab, forget_cached_source_info):
6191 * solib.c (solib_read_symbols): Update.
6192 * solib-spu.c (append_ocl_sos): Update.
6193 * psymtab.c (maintenance_print_psymbols)
6194 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6195 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6196 * printcmd.c (info_symbol_command): Update.
6197 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6199 * objfiles.h (class all_objfiles): Remove.
6200 * objfiles.c (have_partial_symbols, have_full_symbols)
6201 (have_minimal_symbols, qsort_cmp, update_section_map)
6202 (shared_objfile_contains_address_p)
6203 (default_iterate_over_objfiles_in_search_order): Update.
6204 * objc-lang.c (info_selectors_command, info_classes_command)
6205 (find_methods): Update.
6206 * minsyms.c (find_solib_trampoline_target): Update.
6207 * maint.c (maintenance_info_sections)
6208 (maintenance_translate_address, count_symtabs_and_blocks):
6210 * main.c (captured_main_1): Update.
6211 * linux-thread-db.c (try_thread_db_load_from_pdir)
6212 (has_libpthread): Update.
6213 * linespec.c (iterate_over_all_matching_symtabs)
6214 (search_minsyms_for_name): Update.
6215 * jit.c (jit_find_objf_with_entry_addr): Update.
6216 * hppa-tdep.c (find_unwind_entry)
6217 (hppa_lookup_stub_minimal_symbol): Update.
6218 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6220 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6221 (elf_gnu_ifunc_resolve_by_got): Update.
6222 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6223 * dwarf-index-write.c (save_gdb_index_command): Update.
6224 * cp-support.c (add_symbol_overload_list_qualified): Update.
6225 * breakpoint.c (create_overlay_event_breakpoint)
6226 (create_longjmp_master_breakpoint)
6227 (create_std_terminate_master_breakpoint)
6228 (create_exception_master_breakpoint): Update.
6229 * blockframe.c (find_pc_partial_function): Update.
6230 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6231 (ada_collect_symbol_completion_matches)
6232 (ada_add_global_exceptions): Update.
6234 2019-01-17 Tom Tromey <tom@tromey.com>
6236 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6238 (solib_target_parse_libraries): Change return type.
6239 (library_list_start_segment, library_list_start_section)
6240 (library_list_end_library, library_list_start_library); Update.
6241 (solib_target_free_library_list): Remove.
6242 (solib_target_parse_libraries): Remove cleanup. Change return
6244 (solib_target_current_sos): Update.
6246 2019-01-17 Tom Tromey <tromey@bapiya>
6248 * valprint.c: Replace "the the" with "the".
6249 * symtab.c: Replace "the the" with "the".
6250 * solib.c: Replace "the the" with "the".
6251 * solib-dsbt.c: Replace "the the" with "the".
6252 * linespec.c: Replace "the the" with "the".
6253 * dwarf2loc.h: Replace "the the" with "the".
6254 * amd64-windows-tdep.c: Replace "the the" with "the".
6255 * aarch64-tdep.c: Replace "the the" with "the".
6257 2019-01-16 Keith Seitz <keiths@redhat.com>
6260 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6261 <builder>: Rename to ..
6262 <m_builder>: ... this and make private.
6263 (dwarf2_cu::get_builder): New method. Change all users of
6264 `builder' to use this method.
6265 (dwarf2_start_symtab): Move to ...
6266 (dwarf2_cu::start_symtab): ... here. Update all callers
6267 (setup_type_unit_groups): Move to ...
6268 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6270 (dwarf2_cu::reset_builder): New method.
6271 (process_full_compunit, process_full_type_unit): Use
6272 dwarf2_cu::reset_builder.
6273 (follow_die_offset): Record the ancestor CU if it is different
6274 from the followed DIE's CU.
6275 (follow_die_sig_1): Likewise.
6277 2019-01-15 Tom Tromey <tom@tromey.com>
6279 * remote.c (class remote_state) <buf>: Now a char_vector.
6281 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6283 (remote_target::getpkt_or_notif_sane_1)
6284 (remote_target::getpkt_sane)
6285 (remote_target::getpkt_or_notif_sane): Likewise.
6286 (class remote_target) <putpkt>: New overload.
6287 (remote_target::read_frame): Change type of "buf_p". Remove
6289 (packet_ok): New overload.
6290 (packet_check_result): New overload.
6293 2019-01-14 Tom Tromey <tom@tromey.com>
6295 * remote-notif.c (handle_notification, remote_notif_ack)
6296 (remote_notif_parse): Make "buf" const.
6297 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6299 (remote_notif_parse, remote_notif_ack, handle_notification):
6301 * remote.c (remote_notif_stop_parse): Make "buf" const.
6302 (remote_target::remote_parse_stop_reply): Make "buf" const.
6303 (remote_notif_stop_ack): Make "buf" const.
6305 2019-01-14 Tom Tromey <tom@tromey.com>
6307 * remote.c (remote_console_output): Make parameter const.
6309 2019-01-14 Tom Tromey <tom@tromey.com>
6311 * target-debug.h (target_debug_print_signals): Constify.
6312 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6313 * procfs.c (procfs_target::pass_signals): Update.
6314 * linux-nat.c (linux_nat_target::pass_signals): Update.
6315 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6316 * target-delegates.c: Rebuild.
6317 * remote.c (remote_target::program_signals): Update.
6318 (remote_target::pass_signals): Update.
6319 * target.c (target_pass_signals): Constify argument.
6320 (target_program_signals): Likewise.
6321 * target.h (struct target_ops) <pass_signals, program_signals>:
6323 (target_pass_signals, target_program_signals): Constify argument.
6325 2019-01-14 Tom Tromey <tom@tromey.com>
6328 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6330 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6332 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6334 * rs6000-tdep.c: Include reggroups.h.
6335 (IS_V_ALIAS_PSEUDOREG): Define.
6336 (rs6000_register_name): Return names for the "vX" aliases.
6337 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6338 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6339 aliases. Call default_register_reggroup_p for all other
6341 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6343 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6344 Handle "vX" aliases.
6345 (v_alias_pseudo_register_collect): New function.
6346 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6347 (rs6000_gdbarch_init): Initialize "vX" aliases as
6348 pseudo-registers. Restore registration of
6349 rs6000_pseudo_register_reggroup_p with
6350 set_tdesc_pseudo_register_reggroup_p.
6352 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6354 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6355 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6356 set_gdbarch_num_pseudo_regs.
6358 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6360 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6361 Remove arg prefixname, add do_set and do_show.
6362 Add member functions set_list and show_list.
6363 * cli/cli-style.c (class cli_style_option): Update accordingly.
6364 (style_set_list): Move to file scope.
6365 (style_show_list): Likewise.
6366 (set_style): Call help_list.
6367 (show_style): Call cmd_show_list.
6368 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6369 Update to use the new macro.
6371 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6373 * ada-lang.c (_initialize_ada_language): Expand the help text
6374 for the "catch exception" command.
6376 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6378 * symtab.c (matching_obj_sections): Initialize obj,
6379 declare it closer to its usage.
6381 2019-01-10 Tom Tromey <tom@tromey.com>
6383 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6384 (basic_inf_threads_range): Remove.
6385 (inf_threads_range, inf_non_exited_threads_range)
6386 (safe_inf_threads_range): Use next_adapter.
6388 2019-01-10 Keith Seitz <keiths@redhat.com>
6392 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6393 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6395 2019-01-10 Keith Seitz <keiths@redhat.com>
6399 * dictionary.c (pending_to_vector): Remove.
6400 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6401 Remove _1 suffix, replacing functions of the same name. Update
6403 (dict_create_hashed, dict_create_hashed_expandable)
6404 (dict_create_linear, dict_create_linear_expandable, dict_free)
6405 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6406 Make functions static.
6408 2019-01-10 Keith Seitz <keiths@redhat.com>
6412 * dictionary.h (struct dictionary): Replace declaration with
6414 (dict_create_hashed, dict_create_hashed_expandable)
6415 (dict_create_linear, dict_create_linear_expandable)
6416 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6417 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6418 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6419 taking multidictionary argument.
6420 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6421 * block.h (struct block) <dict>: Change to multidictionary
6422 and rename `multidict'.
6423 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6424 symmisc.c: Update all dictionary references to multidictionary.
6426 2019-01-10 Keith Seitz <keiths@redhat.com>
6430 * dictionary.c: Include unordered_map.
6431 (pending_to_vector): New function.
6432 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6433 Rewrite the non-"_1" functions to take vector instead
6435 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6436 "new" _1 versions of the same name.
6437 (multidictionary): Define.
6438 (std::hash<enum language): New definition.
6439 (collate_pending_symbols_by_language, mdict_create_hashed)
6440 (mdict_create_hashed_expandable, mdict_create_linear)
6441 (mdict_create_linear_expandable, mdict_free)
6442 (find_language_dictionary, create_new_language_dictionary)
6443 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6444 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6445 (mdict_size, mdict_empty): New functions.
6446 * dictionary.h (mdict_iterator): Define.
6448 2019-01-10 Pedro Alves <palves@redhat.com>
6450 * breakpoint.c (read_uploaded_action)
6451 (create_tracepoint_from_upload): Adjust to use
6452 gdb::unique_xmalloc_ptr.
6453 * ctf.c (ctf_write_uploaded_tp):
6454 (SET_ARRAY_FIELD): Use emplace_back.
6455 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6456 * tracefile-tfile.c (tfile_write_uploaded_tp):
6457 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6458 gdb::unique_xmalloc_ptr.
6459 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6460 at_string, cond_string, cmd_strings>: Replace char pointers
6461 with gdb::unique_xmalloc_ptr.
6463 2019-01-10 Pedro Alves <palves@redhat.com>
6465 * solib-target.c (library_list_start_library): Don't xstrdup name.
6467 2019-01-10 Pedro Alves <palves@redhat.com>
6469 * mdebugread.c (parse_partial_symbols): Use
6470 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6472 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6474 * linux-fork.c (scoped_switch_fork_info)
6475 <~scoped_switch_fork_info>: Fix incorrect variable name.
6477 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6479 * linux-fork.c (scoped_switch_fork_info)
6480 <scoped_switch_fork_info>: Make explicit.
6481 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6483 2019-01-10 Tom Tromey <tom@tromey.com>
6485 * objfiles.h (objfile::reset_psymtabs): Update.
6486 * objfiles.c (objfile::objfile): Update.
6487 * psymtab.h (psymtab_storage::obstack): Update.
6488 (psymtab_storage::m_obstack): Use gdb::optional.
6489 (class psymtab_storage): Update comment. Remove objfile
6491 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6493 2019-01-10 Tom Tromey <tom@tromey.com>
6495 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6496 <free_psymtabs>: Now private.
6497 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6498 (allocate_psymtab): Use new method.
6500 2019-01-10 Tom Tromey <tom@tromey.com>
6502 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6503 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6504 * mdebugread.c (parse_partial_symbols): Use
6505 allocate_dependencies.
6506 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6507 allocate_dependencies.
6508 (process_psymtab_comp_unit_reader)
6509 (build_type_psymtab_dependencies): Likewise.
6510 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6512 2019-01-10 Tom Tromey <tom@tromey.com>
6514 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6515 PSYMBOL_SET_LANGUAGE.
6516 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6518 2019-01-10 Tom Tromey <tom@tromey.com>
6520 * psymtab.h (psymtab_storage::obstack): New method.
6521 <m_obstack>: Rename from obstack; now private.
6522 * psymtab.c (psymtab_storage): Update.
6523 * dwarf2read.c (create_addrmap_from_index)
6524 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6527 2019-01-10 Tom Tromey <tom@tromey.com>
6529 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6530 * objfiles.h (objfile::reset_psymtabs): New method.
6532 2019-01-10 Tom Tromey <tom@tromey.com>
6534 * symmisc.c (print_symbol_bcache_statistics): Update.
6535 (print_objfile_statistics): Update.
6536 * symfile.c (reread_symbols): Update.
6537 * psymtab.h (class psymtab_storage): New.
6538 * psymtab.c (psymtab_storage): New constructor.
6539 (~psymtab_storage): New destructor.
6540 (require_partial_symbols): Update.
6541 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6542 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6543 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6544 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6545 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6546 (start_psymtab_common, end_psymtab_common)
6547 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6548 (allocate_psymtab): Update.
6549 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6551 (dump_psymtab_addrmap, maintenance_print_psymbols)
6552 (maintenance_check_psymtabs): Update.
6553 (class objfile_psymtabs): Move to objfiles.h.
6554 * psympriv.h (discard_psymtab): Now inline.
6555 (psymtab_discarder::psymtab_discarder): Update.
6556 (psymtab_discarder::~psymtab_discarder): Update.
6557 (ALL_OBJFILE_PSYMTABS): Rewrite.
6558 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6559 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6561 <partial_symtabs>: New field.
6562 (class objfile_psymtabs): Move from psymtab.h. Update.
6563 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6565 (objfile::~objfile): Don't destroy psymbol_cache.
6566 * mdebugread.c (parse_partial_symbols): Update.
6567 * dwarf2read.c (create_addrmap_from_index)
6568 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6569 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6570 (add_partial_subprogram, dwarf2_ranges_read): Update.
6571 * dwarf-index-write.c (write_address_map)
6572 (write_one_signatured_type, recursively_write_psymbols)
6573 (class debug_names, class debug_names, write_psymtabs_to_index):
6576 2019-01-10 Tom Tromey <tom@tromey.com>
6578 * symtab.h (SYMBOL_SET_NAMES): Update.
6579 (symbol_set_names): Update.
6580 (MSYMBOL_SET_NAMES): Update.
6581 * symtab.c (symbol_set_names): Change argument to be an
6582 objfile_per_bfd_storage.
6583 * psymtab.c (add_psymbol_to_bcache): Update.
6584 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6586 2019-01-10 Tom Tromey <tom@tromey.com>
6588 * symtab.c (create_demangled_names_hash): Change argument to be an
6589 objfile_per_bfd_storage.
6590 (symbol_set_names): Update.
6592 2019-01-10 Tom Tromey <tom@tromey.com>
6594 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6596 * psymtab.c (init_psymbol_list): Do nothing if already called.
6597 * psympriv.h (init_psymbol_list): Add comment.
6598 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6600 * dbxread.c (dbx_symfile_read): Unconditionally call
6603 2019-01-10 Tom Tromey <tom@tromey.com>
6605 * xcoffread.c (scan_xcoff_symtab): Update.
6606 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6608 * mdebugread.c (parse_partial_symbols)
6609 (handle_psymbol_enumerators): Update.
6610 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6611 * dbxread.c (read_dbx_symtab): Update.
6612 * psympriv.h (psymbol_placement): New enum.
6613 (add_psymbol_to_list): Update.
6615 2019-01-10 Tom Tromey <tom@tromey.com>
6617 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6618 static_psymbols parameters.
6619 (scan_xcoff_symtab): Update.
6620 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6621 static_psymbols parameters.
6622 * psympriv.h (start_psymtab_common): Update.
6623 * mdebugread.c (parse_partial_symbols): Update.
6624 * dwarf2read.c (create_partial_symtab): Update.
6625 * dbxread.c (read_dbx_symtab): Update.
6626 (start_psymtab): Remove global_psymbols and static_psymbols
6629 2019-01-10 Tom Tromey <tom@tromey.com>
6631 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6632 * psymtab.c (allocate_psymtab): Add comment.
6633 * psympriv.h (allocate_psymtab): Add comment.
6634 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6636 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6638 2019-01-10 Tom Tromey <tom@tromey.com>
6640 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6642 * mipsread.c: Include mdebugread.h.
6643 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6645 * elfread.c: Include mdebugread.h.
6647 2019-01-09 Tom Tromey <tom@tromey.com>
6649 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6650 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6651 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6652 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6653 (psym_lookup_symbol, psym_find_last_source_symtab)
6654 (psym_forget_cached_source_info, psym_print_stats)
6655 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6656 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6657 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6658 (psym_find_compunit_symtab_by_address)
6659 (maintenance_print_psymbols, maintenance_info_psymtabs)
6660 (maintenance_check_psymtabs): Use ranged for.
6661 * psymtab.h (class objfile_psymtabs): New.
6662 (require_partial_symbols): Return objfile_psymtabs.
6663 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6665 2019-01-09 Tom Tromey <tom@tromey.com>
6667 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6668 (find_pc_mapped_section, list_overlays_command)
6669 (map_overlay_command, unmap_overlay_command)
6670 (simple_overlay_update): Use all_objfiles.
6671 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6672 * printcmd.c (info_symbol_command): Use all_objfiles.
6673 * objfiles.h (ALL_OBJSECTIONS): Remove.
6674 * maint.c (maintenance_translate_address): Use all_objfiles.
6675 * gcore.c (gcore_create_callback): Use all_objfiles.
6676 (objfile_find_memory_regions): Likewise.
6678 2019-01-09 Tom Tromey <tom@tromey.com>
6680 * symtab.c (find_line_symtab, info_sources_command)
6681 (make_source_files_completion_list): Use objfile_compunits.
6682 * source.c (select_source_symtab): Use objfile_compunits.
6683 * objfiles.h (struct objfile): Update comment.
6684 (ALL_OBJFILES): Remove.
6685 (ALL_FILETABS): Remove.
6686 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6689 2019-01-09 Tom Tromey <tom@tromey.com>
6691 * symmisc.c (print_objfile_statistics, dump_objfile)
6692 (maintenance_print_symbols): Use compunit_filetabs.
6693 * source.c (forget_cached_source_info_for_objfile): Use
6695 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6696 (ALL_FILETABS): Use compunit_filetabs.
6697 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6698 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6700 2019-01-09 Tom Tromey <tom@tromey.com>
6702 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6703 (compunit_filetabs): New.
6704 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6706 (info_sources_command, make_source_files_completion_list): Remove
6708 * symmisc.c (print_objfile_statistics, dump_objfile)
6709 (maintenance_print_symbols): Remove declaration.
6710 (maintenance_info_symtabs): Use compunit_filetabs.
6711 (maintenance_info_line_tables): Likewise.
6712 * source.c (select_source_symtab): Change local variable name.
6713 (forget_cached_source_info_for_objfile): Remove declaration.
6714 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6715 * objfiles.c (objfile_relocate1): Remove declaration.
6716 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6718 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6719 * coffread.c (coff_symtab_read): Remove declaration.
6720 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6723 2019-01-09 Tom Tromey <tom@tromey.com>
6725 * symtab.c (lookup_objfile_from_block)
6726 (find_pc_sect_compunit_symtab, search_symbols)
6727 (default_collect_symbol_completion_matches_break_on): Use
6729 * objfiles.h (ALL_COMPUNITS): Remove.
6730 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6731 * cp-support.c (add_symbol_overload_list_qualified): Use
6733 * ada-lang.c (ada_collect_symbol_completion_matches)
6734 (ada_add_global_exceptions): Use objfile_compunits.
6736 2019-01-09 Tom Tromey <tom@tromey.com>
6738 * source.c (select_source_symtab)
6739 (forget_cached_source_info_for_objfile): Remove declaration.
6740 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6742 * maint.c (count_symtabs_and_blocks): Remove declaration.
6743 * cp-support.c (add_symbol_overload_list_qualified): Remove
6745 * coffread.c (coff_symtab_read): Remove declaration.
6746 * symtab.c (lookup_symbol_in_objfile_symtabs)
6747 (basic_lookup_transparent_type_1): Use objfile_compunits.
6748 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6749 (info_sources_command, search_symbols)
6750 (default_collect_symbol_completion_matches_break_on)
6751 (make_source_files_completion_list): Remove declaration.
6752 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6753 (ada_collect_symbol_completion_matches)
6754 (ada_add_global_exceptions): Remove declaration.
6755 * linespec.c (iterate_over_all_matching_symtabs): Use
6757 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6758 (class objfile_compunits): New.
6759 (ALL_COMPUNITS): Use objfile_compunits.
6760 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6761 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6763 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6765 2019-01-09 Tom Tromey <tom@tromey.com>
6767 * symtab.c (search_symbols)
6768 (default_collect_symbol_completion_matches_break_on): Use
6770 * ada-lang.c (ada_lookup_simple_minsym)
6771 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6772 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6773 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6775 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6776 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6777 * objc-lang.c (find_methods): Use objfile_msymbols.
6778 (info_selectors_command, info_classes_command): Likewise.
6779 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6780 * objfiles.h (class objfile_msymbols): New.
6781 (ALL_OBJFILE_MSYMBOLS): Remove.
6782 (ALL_MSYMBOLS): Remove.
6784 2019-01-09 Tom Tromey <tom@tromey.com>
6786 * common/next-iterator.h (next_adapter): Add Iterator template
6788 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6789 (class all_objfiles_safe): New.
6790 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6791 * objfiles.c (put_objfile_before): Update comment.
6792 (add_separate_debug_objfile): Likewise.
6793 (free_all_objfiles): Use all_objfiles_safe.
6794 (objfile_purge_solibs): Likewise.
6796 2019-01-09 Tom Tromey <tom@tromey.com>
6798 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6799 (expand_symtab_containing_pc, lookup_static_symbol)
6800 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6801 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6803 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6804 * breakpoint.c (create_overlay_event_breakpoint)
6805 (create_longjmp_master_breakpoint)
6806 (create_std_terminate_master_breakpoint)
6807 (create_exception_master_breakpoint): Use all_objfiles.
6808 * linux-thread-db.c (try_thread_db_load_from_pdir)
6809 (has_libpthread): Use all_objfiles.
6810 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6811 * linespec.c (iterate_over_all_matching_symtabs)
6812 (search_minsyms_for_name): Use all_objfiles.
6813 * maint.c (maintenance_info_sections): Use all_objfiles.
6814 * main.c (captured_main_1): Use all_objfiles.
6815 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6816 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6817 * guile/scm-pretty-print.c
6818 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6819 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6820 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6821 (maintenance_print_msymbols): Use all_objfiles.
6822 * source.c (select_source_symtab): Use all_objfiles.
6823 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6824 * symfile.c (remove_symbol_file_command)
6825 (expand_symtabs_matching, map_symbol_filenames): Use
6827 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6829 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6830 * objc-lang.c (find_methods): Use all_objfiles.
6831 * objfiles.c (have_partial_symbols, have_full_symbols)
6832 (have_minimal_symbols, qsort_cmp)
6833 (default_iterate_over_objfiles_in_search_order): Use
6835 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6836 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6837 (maintenance_check_psymtabs): Use all_objfiles.
6838 (ALL_PSYMTABS): Remove.
6839 * compile/compile-object-run.c (do_module_cleanup): Use
6841 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6842 * cp-support.c (add_symbol_overload_list_qualified): Use
6844 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6846 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6847 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6849 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6850 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6851 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6853 * solib.c (solib_read_symbols): Use all_objfiles
6855 2019-01-09 Tom Tromey <tom@tromey.com>
6857 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6858 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6860 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6861 * symmisc.c (print_symbol_bcache_statistics)
6862 (print_objfile_statistics, maintenance_print_objfiles)
6863 (maintenance_info_symtabs, maintenance_check_symtabs)
6864 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6866 * source.c (forget_cached_source_info): Use all_objfiles.
6867 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6868 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6869 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6870 * objfiles.c (update_section_map): Use all_objfiles.
6871 (shared_objfile_contains_address_p): Likewise.
6872 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6873 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6875 2019-01-09 Tom Tromey <tom@tromey.com>
6877 * common/next-iterator.h: New file.
6878 * objfiles.h (class all_objfiles): New.
6879 (struct objfile_iterator): New.
6881 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6883 * NEWS: Move the description of the changed "frame", "select-frame",
6884 and "info frame" commands to the Changed commands section.
6886 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6888 * gdbtypes.c (check_stub_method_group): Remove handling of old
6890 * linespec.c (find_methods): Likewise.
6891 * stabsread.c (read_member_functions): Likewise.
6892 * valops.c (search_struct_method): Likewise.
6893 (value_struct_elt_for_reference): Likewise.
6894 * NEWS: Mention this change.
6896 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6898 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6900 * source.c (print_source_lines_base): Update line number check.
6901 (print_source_lines): New function.
6902 (source_lines_range::source_lines_range): New function.
6903 * source.h (class source_lines_range): New class.
6904 (print_source_lines): New declaration.
6906 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6908 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6910 2019-01-08 Tom Tromey <tom@tromey.com>
6911 Simon Marchi <simon.marchi@ericsson.com>
6914 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6915 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6916 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6917 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6918 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6919 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6921 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6923 * source.c (select_source_symtab): Move header comment to
6924 declaration in source.h.
6925 (forget_cached_source_info_for_objfile): Likewise.
6926 (forget_cached_source_info): Likewise.
6927 (identify_source_line): Likewise.
6928 * source.h (identify_source_line): Move declaration from symtab.h
6929 and add comment from source.c
6930 (print_source_lines): Likewise.
6931 (forget_cached_source_info_for_objfile): Likewise.
6932 (forget_cached_source_info): Likewise.
6933 (select_source_symtab): Likewise.
6934 (enum print_source_lines_flag): Move definition from symtab.h.
6935 * symtab.h (identify_source_line): Move declaration to source.h.
6936 (print_source_lines): Likewise.
6937 (forget_cached_source_info_for_objfile): Likewise.
6938 (forget_cached_source_info): Likewise.
6939 (select_source_symtab): Likewise.
6940 (enum print_source_lines_flag): Move definition to source.h.
6941 * tui/tui-hooks.c: Add 'source.h' include.
6943 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6945 * source.c (print_source_lines_base): Handle requests to print
6946 reverse line number sequences, and guard against empty lines
6949 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6951 * source.c (print_source_lines_base): Fix skip of '\r' if next
6954 2019-01-06 Tom Tromey <tom@tromey.com>
6956 * c-exp.y (struct c_parse_state) <macro_original_text,
6957 expansion_obstack>: New member.
6958 (macro_original_text, expansion_obstack): Remove globals.
6959 (scan_macro_expansion, scanning_macro_expansion)
6960 (finished_macro_expansion): Update.
6961 (scan_macro_cleanup): Remove.
6962 (yylex, c_parse): Update.
6964 2019-01-06 Tom Tromey <tom@tromey.com>
6966 * c-exp.y (struct c_parse_state) <strings>: New member.
6967 (operator_stoken): Update.
6969 2019-01-06 Tom Tromey <tom@tromey.com>
6971 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6972 (union type_stack_elt) <typelist_val>: Now a pointer to
6974 (type_stack_cleanup): Don't declare.
6975 (push_typelist): Update.
6976 * parse.c (pop_typelist): Return a std::vector.
6977 (push_typelist): Take a std::vector.
6978 (follow_types): Update. Do not free args.
6979 (type_stack_cleanup): Remove.
6980 * c-exp.y (struct c_parse_state): New.
6981 (cpstate): New global.
6982 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6983 (nonempty_typelist): Update.
6984 (func_mod): Create a new vector.
6985 (c_parse): Create a c_parse_state.
6986 (check_parameter_typelist): Do not delete params.
6987 (function_method): Update. Do not delete type_list.
6989 2019-01-06 Tom Tromey <tom@tromey.com>
6992 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6994 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6995 (print_return_value): Likewise.
6997 2019-01-05 Tom Tromey <tom@tromey.com>
6999 * contrib/cleanup_check.py: Remove.
7000 * contrib/gcc-with-excheck: Remove.
7001 * contrib/exsummary.py: Remove.
7002 * contrib/excheck.py: Remove.
7004 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7006 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7007 NULL. Initialize tpprev to NULL instead of assigning it
7008 to NULL on the next statement.
7009 * windows-nat.c (windows_delete_thread): Remove check for
7010 main_thread_id before printing thread exit notifications.
7011 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7012 Remove thread ID check against main_thread_id.
7013 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7014 windows_delete_thread.
7015 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7017 2019-01-04 Tom Tromey <tom@tromey.com>
7019 * compile/compile.c (_initialize_compile): Use upper case for
7020 metasyntactic variables.
7021 * symmisc.c (_initialize_symmisc): Use upper case for
7022 metasyntactic variables.
7023 * psymtab.c (_initialize_psymtab): Use upper case for
7024 metasyntactic variables.
7025 * demangle.c (demangle_command): Use upper case for metasyntactic
7027 (_initialize_demangler): Likewise.
7028 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7031 2019-01-03 Tom Tromey <tom@tromey.com>
7033 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7035 2019-01-03 Tom Tromey <tom@tromey.com>
7037 * python/py-symtab.c (salpy_str): Update.
7038 (struct salpy_sal_object) <symtab>: Now a PyObject.
7039 (salpy_dealloc): Update.
7040 (del_objfile_sal): Use gdbpy_ref.
7042 2019-01-03 Tom Tromey <tom@tromey.com>
7044 * python/py-type.c (convert_field): Use new_reference. Return
7046 (make_fielditem): Return gdbpy_ref.
7047 (typy_fields): Update.
7048 (typy_getitem): Update.
7049 (field_name): Return gdbpy_ref. Use new_reference.
7050 (typy_iterator_iternext): Update.
7052 2019-01-03 Tom Tromey <tom@tromey.com>
7054 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7056 2019-01-03 Tom Tromey <tom@tromey.com>
7058 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7059 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7060 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7061 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7062 (pspy_set_type_printers): Likewise.
7063 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7064 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7065 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7066 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7067 (objfpy_set_type_printers): Likewise.
7069 2019-01-03 Tom Tromey <tom@tromey.com>
7071 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7072 (gdbpy_print_stack): Use gdbpy_err_fetch.
7073 * python/python-internal.h (class gdbpy_err_fetch): New class.
7074 (class gdbpy_enter) <m_error_type, m_error_value,
7075 m_error_traceback>: Remove.
7076 <m_error>: New member.
7077 (gdbpy_exception_to_string): Don't declare.
7078 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7079 * python/py-value.c (convert_value_from_python): Use
7081 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7082 gdbpy_exception_to_string.
7083 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7084 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7087 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7089 * linux-nat.c (delete_lwp_cleanup): Delete.
7090 (struct lwp_deleter): New struct.
7091 (lwp_info_up): New typedef.
7092 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7095 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7097 * linux-fork.c (class scoped_switch_fork_info): New class.
7098 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7100 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7102 * valops.c (find_overload_match): Remove use of null_cleanup, and
7103 calls to do_cleanups.
7105 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7107 * compile/compile-cplus-types.c
7108 (compile_cplus_instance::decl_name): Handle changes to
7110 * cp-support.c (cp_func_name): Update header comment, update
7112 * cp-support.h (cp_func_name): Update return type in declaration.
7113 * valops.c (find_overload_match): Move temp_func local to top
7114 level of function and change its type. Use temp_func to hold and
7115 delete temporary string obtained from cp_func_name.
7117 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7119 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7120 gdb::char_vector, remove cleanup, and update uses of `msg`.
7122 2019-01-03 Jim Wilson <jimw@sifive.com>
7124 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7126 2019-01-02 Tom Tromey <tom@tromey.com>
7128 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7129 (tdesc_parse_xml): Remove cleanups.
7130 * target-descriptions.h (make_cleanup_free_target_description):
7132 (target_desc_deleter): New struct.
7133 (target_desc_up): New typedef.
7134 * target-descriptions.c (target_desc_deleter::operator()): Rename
7135 from free_target_description.
7136 (make_cleanup_free_target_description): Remove.
7138 2019-01-02 Tom Tromey <tom@tromey.com>
7140 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7141 constructor, destructor.
7142 (linespec_parser): Remove typedef.
7143 (~linespec_parser): Rename from linespec_parser_delete.
7144 (linespec_lex_to_end, linespec_complete_label)
7145 (linespec_complete): Update.
7146 (decode_line_full): Remove cleanups.
7147 (decode_line_1): Update.
7149 2019-01-02 Tom Tromey <tom@tromey.com>
7151 * python/python-internal.h (inferior_to_inferior_object): Change
7153 * python/py-exitedevent.c (create_exited_event_object): Update.
7154 * python/py-inferior.c (inferior_to_inferior_object): Return
7156 (python_new_inferior, python_inferior_deleted)
7157 (thread_to_thread_object, delete_thread_object)
7158 (build_inferior_list, gdbpy_selected_inferior): Update.
7159 * python/py-infthread.c (create_thread_object): Update. Also fail
7160 if inferior_to_inferior_object fails.
7162 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7164 * inferior.h (class inferior) <displaced_step_state>: New field.
7165 * infrun.h (struct displaced_step_state): Move here from
7166 infrun.c. Initialize fields, add constructor.
7167 <inf>: Remove field.
7168 <reset>: New method.
7169 * infrun.c (struct displaced_step_inferior_state): Move to
7171 (displaced_step_inferior_states): Remove.
7172 (get_displaced_stepping_state): Adust.
7173 (displaced_step_in_progress_any_inferior): Adjust.
7174 (displaced_step_in_progress_thread): Adjust.
7175 (displaced_step_in_progress): Adjust.
7176 (add_displaced_stepping_state): Remove.
7177 (get_displaced_step_closure_by_addr): Adjust.
7178 (remove_displaced_stepping_state): Remove.
7179 (infrun_inferior_exit): Call displaced_step_state.reset.
7180 (use_displaced_stepping): Don't check for NULL.
7181 (displaced_step_prepare_throw): Call
7182 get_displaced_stepping_state.
7183 (displaced_step_fixup): Don't check for NULL.
7184 (prepare_for_detach): Don't check for NULL.
7186 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7188 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7189 in case of call that did not complete.
7191 2019-01-02 Andrey Utkin <autkin@undo.io>
7193 * symfile.c (find_separate_debug_file): Fix search of debug files for
7196 2019-01-02 Tom Tromey <tom@tromey.com>
7198 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7200 * python/py-frame.c (frapy_older): Remove cast.
7201 (frapy_newer): Likewise.
7202 * python/py-breakpoint.c (local_setattro): Remove cast.
7203 * python/py-arch.c (archpy_name): Remove local variable.
7204 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7206 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7208 * unittests/basic_string_view/element_access/char/empty.cc:
7209 Fix year range in copyright header.
7211 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7213 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7215 <operator==>: Update with for removed field.
7217 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7218 <isa_features>: ...this.
7219 <abi_features>: New field.
7220 (riscv_isa_flen): Update comment.
7221 (riscv_abi_xlen): New declaration.
7222 (riscv_abi_flen): New declaration.
7223 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7225 (riscv_abi_xlen): New function.
7226 (riscv_isa_flen): Update to get answer from isa_features.
7227 (riscv_abi_flen): New function.
7228 (riscv_has_fp_abi): Update to get answer from abi_features.
7229 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7231 (riscv_call_info) <xlen, flen>: Update comment.
7232 (riscv_call_arg_struct): Remove invalid assertions
7233 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7235 (riscv_gdbarch_init): Gather isa features and abi features
7236 separately, ensure both match on the gdbarch when reusing an old
7237 gdbarch. Relax an error check to allow 32-bit abi float to run on
7238 a target with 64-bit float hardware.
7240 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7242 * source.c (search_command_helper): Stop reverse search
7243 when line 1 has been searched.
7245 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7247 * record-full.c (record_full_base_target::close): Rewrite
7248 record_full_core_buf_list free logic.
7250 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7252 * break-catch-syscall.c (print_one_catch_syscall): xfree
7255 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7257 * top.c (print_gdb_version): Update Copyright year in version
7260 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7262 Update copyright year range in all GDB files.
7264 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7266 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7268 For older changes see ChangeLog-2018.
7274 version-control: never