1 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5 2019-06-11 Tom Tromey <tom@tromey.com>
7 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8 (xmalloc_failed): Move to alloc.c.
10 * Makefile.in (COMMON_SFILES): Add alloc.c.
12 2019-06-11 Tom Tromey <tom@tromey.com>
14 * nat/linux-waitpid.c: Don't include server.h.
15 (linux_debug): Remove.
18 2019-06-11 Tom Tromey <tromey@adacore.com>
20 * infcall.c (_initialize_infcall): Remove trailing newline from
22 * user-regs.c (_initialize_user_regs): Remove trailing newline
24 * typeprint.c (_initialize_typeprint): Remove trailing newline
26 * reverse.c (_initialize_reverse): Remove trailing newlines from
28 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
30 * language.c (add_set_language_command): Remove trailing newline
32 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
34 * disasm.c (_initialize_disasm): Remove trailing newline from
36 * top.c (init_main): Remove trailing newline from help.
37 * interps.c (_initialize_interpreter): Remove trailing newline
39 * btrace.c (_initialize_btrace): Remove trailing newlines from
41 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
43 * python/python.c (_initialize_python): Remove trailing newline
45 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
47 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
48 from help. Reformat some text.
49 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
51 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
54 2019-06-11 Tom Tromey <tromey@adacore.com>
56 * darwin-nat.c (darwin_decode_exception_message)
57 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
59 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
61 * valops.c (value_slice): Check for not allocated or not
64 2019-06-10 Tom de Vries <tdevries@suse.de>
67 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
68 sure an empty slot (defined by a 32-bit zero pair) is recognized as
71 2019-06-10 Tom de Vries <tdevries@suse.de>
74 * linespec.c (linespec_lexer_lex_string): Remove incorrect
75 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
77 2019-06-10 Tom de Vries <tdevries@suse.de>
80 * symtab.c (struct demangled_name_entry): Add language field.
81 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
82 static minimal symbol". Set and use language field.
84 2019-06-10 Tom Tromey <tromey@adacore.com>
86 * ada-lang.c (_initialize_ada_language): Update help text.
88 2019-06-10 Tom Tromey <tromey@adacore.com>
90 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
92 * guile/guile.c (handle_boot_error): Don't end warning with a
94 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
95 warning with a newline.
96 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
98 (s12z_frame_cache): Likewise.
99 * dwarf-index-cache.c (index_cache::store): Don't end warning with
101 * solib-svr4.c (disable_probes_interface): Don't end warning with
103 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
105 * python/python.c (do_finish_initialization): Don't end warning
108 2019-06-10 Tom Tromey <tom@tromey.com>
110 * python/py-breakpoint.c (gdbpy_breakpoint_created)
111 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
114 2019-06-10 Tom Tromey <tromey@adacore.com>
116 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
118 (elf_new_init): Don't call stabsread_new_init.
119 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
120 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
121 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
123 2019-06-10 Tom de Vries <tdevries@suse.de>
127 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
129 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
131 * source.c (find_and_open_source): Also rewrite relative file
134 2019-04-26 Amos Bird <amosbird@gmail.com>
136 * annotate.c (annotate_thread_exited): Add "thread-exited"
139 2019-06-06 Tom Tromey <tromey@adacore.com>
141 * maint.h (class scoped_command_stats): Use
142 DISABLE_COPY_AND_ASSIGN.
143 <print_time>: New method.
144 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
146 (scoped_command_stats::print_time): New method.
148 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
150 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
151 instructions of lengths 6 or 8 bytes.
153 2019-06-04 Pedro Alves <palves@redhat.com>
155 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
157 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
158 * breakpoint.c (condition_completer): Likewise.
159 * cli/cli-dump.c (scan_expression): Likewise.
160 * common/filestuff.c (mkdir_recursive): Likewise.
161 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
162 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
163 (gdb_abspath): Likewise.
164 * compile/compile-cplus-types.c
165 (compile_cplus_instance::decl_name): Likewise.
166 * completer.c (complete_explicit_location):
167 (signal_completer, reg_or_group_completer_1): Likewise.
168 * cp-support.c (cp_remove_params_if_any): Likewise.
169 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
170 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
171 * infcmd.c (strip_bg_char): Likewise.
172 * linespec.c (copy_token_string): Likewise.
173 * mi/mi-main.c (output_cores): Likewise.
174 * psymtab.c (psymtab_search_name):
175 * symfile.c (test_set_ext_lang_command): Likewise.
176 * target.c (target_fileio_read_stralloc): Likewise.
177 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
178 * value.c (complete_internalvar): Likewise.
180 2019-06-04 Christian Biesinger <cbiesinger@google.com>
182 Add objfile property to gdb.Type.
183 * NEWS: Mention Python API addition.
184 * python/py-type.c (typy_get_objfile): New method.
186 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
188 * NEWS: Mention the new set|show style [title|highlight].
189 Mention changes to "show style", "help" and "apropos".
191 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
193 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
194 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
195 instead of print_help_for_command.
196 (print_doc_of_command): New function.
197 (help_list): Add 'apropos -v word' suggestion.
198 (print_help_for_command): Style the command name using title style.
199 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
200 (_initialize_cli_cmds): Describe -v in apropos_command help.
202 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
204 * cli/cli-style.h (cli_style_option): Add name in constructor,
205 add m_name class member, add constructor with intensity,
206 add name class function.
207 (cli_style_option::add_setshow_commands): Remove name argument.
208 (highlight_style, title_style): New styles.
209 * cli/cli-style.c (do_show): New function that shows a style
210 characteristic styling the style name with itself.
211 (set_style_name): New function.
212 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
213 Update all callers according to the changes in cli/cli-style.h.
214 * utils.h (fputs_highlighted): New function.
215 * utils.c (fputs_highlighted): Likewise.
217 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
219 * NEWS: Mention new pipe command and new convenience variables.
221 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
223 * cli/cli-cmds.c (pipe_command): New function.
224 (_initialize_cli_cmds): Call add_com for pipe_command.
225 Define | as an alias for pipe.
226 (exit_status_set_internal_vars): New function.
227 (shell_escape): Call exit_status_set_internal_vars.
228 cli/cli-decode.c (find_command_name_length): Recognize | as
229 a single character command.
231 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
233 * gdbcmd.h (execute_command_to_ui_file): New declaration.
234 top.c (execute_command_to_ui_file): New function, mostly a copy
235 of execute_command_to_string.
236 (execute_command_to_string): Implement by calling
237 execute_command_to_ui_file.
239 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
241 * top.h (saved_command_line): Remove declaration.
242 * top.c (previous_saved_command_line, previous_repeat_arguments):
244 (saved_command_line): Make static, define together with other
246 (dont_repeat): Clear repeat_arguments.
247 (repeat_previous, get_saved_command_line, save_command_line):
249 (gdb_init): Initialize saved_command_line
250 and previous_saved_command_line.
251 * main.c (captured_main_1): Remove saved_command_line initialization.
252 * event-top.c (handle_line_of_input): Update to use
253 the new 'repeat' related functions instead of direct access to
255 * command.h (repeat_previous, get_saved_command_line,
256 save_command_line): New declarations.
257 (dont_repeat): Add comment.
259 2019-05-30 Tom Tromey <tromey@adacore.com>
261 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
263 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
265 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
268 * completer.c (complete): Initialize variable word.
270 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
272 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
273 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
274 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
275 'body' is NULL to the outter 'if', protecting the '!is_define'
278 2019-05-29 Tom Tromey <tromey@adacore.com>
280 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
281 (dwarf_unknown): New function.
282 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
283 (dwarf_type_encoding_name): Use dwarf_unknown.
285 2019-05-29 Tom Tromey <tromey@adacore.com>
288 * cp-valprint.c (cp_print_value_fields): Call
289 cp_print_static_field inside "try".
291 2019-05-29 Tom Tromey <tromey@adacore.com>
293 * inflow.c (struct terminal_info): Add default operator=.
294 * configure: Rebuild.
295 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
296 -Wdeprecated-copy-dtor, -Wredundant-move.
298 2019-05-29 Tom Tromey <tromey@adacore.com>
301 * infcmd.c (print_return_value_1): Handle finish_print
303 (show_print_finish): New function.
304 (_initialize_infcmd): Add "set/show print finish" commands.
305 * valprint.c (user_print_options): Initialize new member.
306 * valprint.h (struct value_print_options) <finish_print>: New
309 2019-05-28 Tom Tromey <tromey@adacore.com>
311 * ada-lang.c (ada_remove_Xbn_suffix)
312 (find_old_style_renaming_symbol)
313 (parse_old_style_renaming): Remove.
314 (ada_find_renaming_symbol): Don't call
315 find_old_style_renaming_symbol.
316 (ada_is_renaming_symbol): Rename from
317 ada_find_renaming_symbol. Remove "block" parameter. Return
319 (ada_read_var_value): Update and simplify.
320 * ada-exp.y (write_var_or_type): Remove old code.
322 2019-05-28 Alan Hayward <alan.hayward@arm.com>
324 * event-top.c: Remove include comment.
325 * inflow.c (class scoped_ignore_sigttou): Move from here...
326 * inflow.h (class scoped_ignore_sigttou): ...to here.
327 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
328 * top.c: Remove include comment.
330 2019-05-27 Tom Tromey <tom@tromey.com>
334 2019-05-22 Tom Tromey <tromey@adacore.com>
336 * target.c (target_follow_exec): Constify parameter.
337 * target-delegates.c: Rebuild.
338 * remote.c (remote_target::follow_exec): Constify parameter.
339 * infrun.c (follow_exec): Constify parameter.
340 * target.h (struct target_ops) <follow_exec>: Constify parameter.
341 (target_follow_exec): Likewise.
343 2019-05-22 Alan Hayward <alan.hayward@arm.com>
345 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
346 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
348 2019-05-22 Alan Hayward <alan.hayward@arm.com>
350 * NEWS: Add debugredirect and testsuite sections.
352 2019-05-22 Simon Cook <simon.cook@embecosm.com>
354 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
355 target descriptions using exclusively floating point register name
358 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
361 * f-lang.c (build_fortran_types): Handle the case where
362 gdbarch_floatformat_for_type returns a nullptr.
364 2019-05-21 Tom de Vries <tdevries@suse.de>
367 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
369 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
372 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
374 * i386-tdep.c (i386_floatformat_for_type): Use
375 floatformats_ia64_quad for the 16-byte floating point component
376 within a fortran 32-byte complex number.
378 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
380 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
381 delete default constructor.
382 (find_partial_die): Update to return const struct.
383 (partial_die_parent_scope): Move variable declaration into scope
384 of its use and change its type to auto.
385 (guess_partial_die_structure_name): Likewise.
386 (partial_die_info::fixup): Likewise.
388 2019-05-17 Tom Tromey <tromey@adacore.com>
390 * source.c (find_and_open_source): Remove cast.
392 2019-05-17 Tom Tromey <tromey@adacore.com>
394 * annotate.c (annotate_source): Make "filename" const.
395 * annotate.h (annotate_source): Use const.
397 2019-05-17 Alan Hayward <alan.hayward@arm.com>
399 * disasm.c (set_disassembler_options): Send errors to stderr.
401 2019-05-17 Alan Hayward <alan.hayward@arm.com>
403 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
404 (cli_interp_base::set_logging): Check debug_redirect.
405 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
406 * cli/cli-logging.c (debug_redirect): Add static variable.
407 (pop_output_files): Add default param.
408 (handle_redirections): Print debug setting.
409 (show_logging_command): Likewise.
410 (_initialize_cli_logging): Add debugredirect command.
411 * interps.c (current_interp_set_logging): Add debug_redirect
413 * interps.h (set_logging): Add debug_redirect parameter.
414 (current_interp_set_logging): Likewise.
415 * mi/mi-common.h: Likewise.
416 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
418 2019-05-17 Alan Hayward <alan.hayward@arm.com>
419 Tom Tromey <tromey@adacore.com>
421 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
423 * cli/cli-interp.h (make_logging_output): Remove declaration.
424 * cli/cli-logging.c (make_logging_output): Remove function.
425 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
427 * ui-file.c (tee_file::tee_file): Remove bools.
428 (tee_file::~tee_file): Remove deletes.
429 * ui-file.h (tee_file): Remove bools.
431 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
433 * mi/mi-cmds.h (mi_cmd_complete): New function.
434 * mi/mi-main.c (mi_cmd_complete): Likewise.
435 * mi/mi-cmds.c: Define new MI command -complete.
436 * NEWS: Mention new -complete command.
438 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
440 * completer.h (complete): New function.
441 * completer.c (complete): Likewise.
442 * cli/cli-cmds.c: (complete_command): Update to use new complete()
443 function defined in completer.h.
445 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
447 * MAINTAINERS (Write After Approval): Add myself.
449 2019-05-17 Tom de Vries <tdevries@suse.de>
452 * dwarf2read.c (struct cu_partial_die_info): New struct.
453 (find_partial_die): Return cu_partial_die_info.
454 (partial_die_parent_scope, guess_partial_die_structure_name)
455 (partial_die_info::fixup): Handle new return type of find_partial_die.
457 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
459 * stap-probe.c (stap_parse_register_operand): Make "regname" an
460 "std::string", simplifying the algorithm.
462 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
464 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
465 (stap_static_probe_ops::get_probes): Likewise.
467 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
469 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
471 (stap_parse_single_operand): Join checks for
472 "gdbarch_stap_parse_special_token_p" and
473 "gdbarch_stap_parse_special_token" in the same "if" statement.
474 Invert check when verifying for operation on register
477 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
479 * stap-probe.c (stap_get_opcode): Update comment.
480 (stap_get_expected_argument_type): Likewise.
481 (handle_stap_probe): Likewise.
483 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
485 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
486 return type to 'bool'. Adjust comment. Use 'bool' when
488 (i386_stap_parse_special_token_three_arg_disp): Likewise.
489 * stap-probe.c (stap_parse_argument_1): Likewise.
490 (stap_is_operator): Likewise.
491 (stap_is_generic_prefix): Likewise.
492 (stap_is_register_prefix): Likewise.
493 (stap_is_register_indirection_prefix): Likewise.
494 (stap_is_integer_prefix): Likewise.
495 (stap_generic_check_suffix): Likewise.
496 (stap_check_integer_suffix): Likewise.
497 (stap_check_register_suffix): Likewise.
498 (stap_check_register_indirection_suffix): Likewise.
499 (stap_parse_register_operand): Likewise.
500 (stap_parse_single_operand): Likewise.
501 (stap_parse_argument_1): Likewise.
502 (stap_probe::get_argument_count): Likewise.
503 (stap_is_operator): Likewise.
505 2019-05-16 Tom Tromey <tromey@adacore.com>
507 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
510 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
512 * linux-thread-db.c (try_thread_db_load_1): Change return type
514 (try_thread_db_load): Likewise.
515 (try_thread_db_load_from_pdir_1): Likewise.
516 (try_thread_db_load_from_pdir): Likewise.
517 (try_thread_db_load_from_sdir): Likewise.
518 (try_thread_db_load_from_dir): Likewise.
519 (thread_db_load_search): Likewise.
520 (has_libpthread): Likewise.
521 (thread_db_load): Likewise.
523 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
525 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
526 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
527 NULL, and complain/return if that's the case.
529 2019-05-15 John Darrington <john@darrington.wattle.id.au>
531 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
532 (advance, posn, abstract_read_memory): New functions.
533 [struct mem_read_abstraction]: New struct.
534 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
536 2019-05-14 Tom Tromey <tromey@adacore.com>
538 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
539 value is not lval_memory.
541 2019-05-14 Tom Tromey <tromey@adacore.com>
543 * solib.c (info_sharedlibrary_command): Style the file name.
545 2019-05-14 Alan Hayward <alan.hayward@arm.com>
547 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
548 (aarch64_vnv_type): Likewise.
549 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
550 * common/tdesc.c: Likewise.
551 * common/tdesc.h (enum tdesc_type_kind): Likewise.
552 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
553 * features/aarch64-fpu.xml: Add ieee half view.
554 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
555 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
556 * gdbtypes.h (struct builtin_type): Likewise.
557 (struct objfile_type): Likewise.
559 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
561 * language.c (language_sniff_from_mangled_name): Fix "langauge"
563 * location.h (string_to_event_location): Likewise.
565 2019-05-11 Joel Brobecker <brobecker@adacore.com>
569 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
571 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
572 New variable declaration.
573 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
575 (print_one_breakpoint): Use ui_out::test_flags and new global
576 variable to compute use_fixed_output.
577 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
579 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
580 (mi_multi_location_breakpoint_output_fixed): Remove.
581 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
583 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
584 fix_multi_location_breakpoint_output flag if version >= 3.
585 * ui-out.h (enum ui_out_flag)
586 <fix_multi_location_breakpoint_output>: New enumerator.
588 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
590 * contrib/cc-with-tweaks.sh: Validate dwz's work.
592 2019-05-10 Tom Tromey <tromey@adacore.com>
594 * ada-lang.c (catch_ada_completer): New function.
595 (_initialize_ada_language): Use it.
597 2019-05-10 Tom Tromey <tromey@adacore.com>
599 * thread.c (print_thread_info): Make "requested_threads" const.
600 * gdbthread.h (print_thread_info): Make "requested_threads"
602 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
603 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
605 2019-05-08 Tom Tromey <tom@tromey.com>
607 * gdbtypes.c (objfile_type_data): Change type.
608 (objfile_type, _initialize_gdbtypes): Update.
610 2019-05-08 Tom Tromey <tom@tromey.com>
612 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
613 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
614 (_initialize_dwarf2_frame): Update.
616 2019-05-08 Tom Tromey <tom@tromey.com>
618 * objc-lang.c (objc_objfile_data): Change type.
619 (find_methods): Update.
620 (_initialize_objc_lang): Remove.
622 2019-05-08 Tom Tromey <tom@tromey.com>
624 * stabsread.c (rs6000_builtin_type_data): Change type.
625 (rs6000_builtin_type, _initialize_stabsread): Update.
627 2019-05-08 Tom Tromey <tom@tromey.com>
629 * mips-tdep.c (mips_pdr_data): Remove.
630 (_initialize_mips_tdep): Update.
632 2019-05-08 Tom Tromey <tom@tromey.com>
634 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
635 (hppa_init_objfile_priv_data, read_unwind_info)
636 (find_unwind_entry, _initialize_hppa_tdep): Update.
638 2019-05-08 Tom Tromey <tom@tromey.com>
640 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
641 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
643 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
645 2019-05-08 Tom Tromey <tom@tromey.com>
647 * mdebugread.c (basic_type_data): Change type.
648 (basic_type, _initialize_mdebugread): Update.
650 2019-05-08 Tom Tromey <tom@tromey.com>
652 * common/gdb_unique_ptr.h (struct noop_deleter): New.
654 2019-05-08 Tom Tromey <tom@tromey.com>
656 * nto-tdep.c (nto_inferior_data_reg): Change type.
657 (nto_inferior_data): Update.
658 (nto_inferior_data_cleanup, nto_new_inferior_data)
659 (_initialize_nto_tdep): Remove.
660 * nto-tdep.h (struct nto_inferior_data): Add initializers.
662 2019-05-08 Tom Tromey <tom@tromey.com>
664 * ada-lang.c (struct ada_inferior_data): Add initializers.
665 (ada_inferior_data): Change type.
666 (ada_inferior_data_cleanup): Remove.
667 (get_ada_inferior_data, ada_inferior_exit)
668 (struct ada_pspace_data): Add initializers, destructor.
669 (ada_pspace_data_handle): Change type.
670 (get_ada_pspace_data): Update.
671 (ada_pspace_data_cleanup): Remove.
673 2019-05-08 Tom Tromey <tom@tromey.com>
675 * coffread.c (struct coff_symfile_info): Add initializers.
676 (coff_objfile_data_key): Move lower. Change type.
677 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
679 (coff_free_info): Remove.
681 2019-05-08 Tom Tromey <tom@tromey.com>
683 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
684 (fbsd_pspace_data_handle): Move lower. Change type.
685 (get_fbsd_pspace_data): Update.
686 (fbsd_pspace_data_cleanup): Remove.
687 (_initialize_fbsd_tdep): Update.
689 2019-05-08 Tom Tromey <tom@tromey.com>
691 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
692 (get_ada_tasks_pspace_data): Update.
693 (ada_tasks_pspace_data_cleanup): Remove.
694 (_initialize_tasks): Update.
695 (ada_tasks_inferior_data_handle): Change type.
696 (get_ada_tasks_inferior_data): Update.
697 (ada_tasks_inferior_data_cleanup): Remove.
698 (struct ada_tasks_pspace_data): Add initializers.
700 2019-05-08 Tom Tromey <tom@tromey.com>
702 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
703 * symfile-debug.c (debug_sym_get_probes): Change type.
704 * stap-probe.c (handle_stap_probe):
705 (stap_static_probe_ops::get_probes): Change type.
706 * probe.h (class static_probe_ops) <get_probes>: Change type.
707 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
708 (parse_probes_in_pspace): Update.
709 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
711 (any_static_probe_ops::get_probes): Change type.
712 * elfread.c (elfread_data): New typedef.
713 (probe_key): Change type.
714 (elf_get_probes): Likewise. Update.
715 (probe_key_free): Remove.
716 (_initialize_elfread): Update.
717 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
719 (dtrace_process_dof_probe, dtrace_process_dof)
720 (dtrace_static_probe_ops::get_probe): Change type.
722 2019-05-08 Tom Tromey <tom@tromey.com>
724 * xcoffread.c (struct xcoff_symfile_info): Rename from
725 coff_symfile_info. Add initializers.
726 (xcoff_objfile_data_key): Move lower. Change type.
727 (XCOFF_DATA): Rewrite.
728 (xcoff_free_info): Remove.
729 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
730 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
731 (xcoff_initial_scan): Update.
733 2019-05-08 Tom Tromey <tom@tromey.com>
735 * solib-svr4.c (struct svr4_info): Add initializers and
737 <probes_table>: Now an htab_up.
738 (solib_svr4_pspace_data): Change type.
739 (free_probes_table): Simplify.
740 (~svr4_info): Rename from svr4_pspace_data_cleanup.
741 (get_svr4_info, probes_table_htab_remove_objfile_probes)
742 (probes_table_remove_objfile_probes, register_solib_event_probe)
743 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
744 (_initialize_svr4_solib): Update.
746 2019-05-08 Tom Tromey <tom@tromey.com>
748 * remote.c (remote_pspace_data): Change type.
749 (remote_pspace_data_cleanup): Remove.
750 (get_remote_exec_file, set_pspace_remote_exec_file)
751 (_initialize_remote): Update.
753 2019-05-08 Tom Tromey <tom@tromey.com>
755 * breakpoint.c (breakpoint_objfile_key): Change type.
756 (get_breakpoint_objfile_data): Update.
757 (free_breakpoint_objfile_data): Remove.
758 (_initialize_breakpoint): Update.
760 2019-05-08 Tom Tromey <tom@tromey.com>
762 * linux-tdep.c (struct linux_info): Add initializers.
763 (linux_inferior_data): Move. Change type.
764 (invalidate_linux_cache_inf): Update.
765 (linux_inferior_data_cleanup): Remove.
766 (get_linux_inferior_data, _initialize_linux_tdep): Update.
768 2019-05-08 Tom Tromey <tom@tromey.com>
770 * auxv.c (auxv_inferior_data): Move. Change type.
771 (auxv_inferior_data_cleanup): Remove.
772 (invalidate_auxv_cache_inf): Rewrite.
773 (get_auxv_inferior_data, _initialize_auxv): Update.
775 2019-05-08 Tom Tromey <tom@tromey.com>
777 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
778 (symfile_debug_objfile_data_key): Change type.
779 (symfile_debug_installed, debug_qf_has_symbols)
780 (debug_qf_find_last_source_symtab)
781 (debug_qf_forget_cached_source_info)
782 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
783 (debug_qf_print_stats, debug_qf_dump)
784 (debug_qf_expand_symtabs_for_function)
785 (debug_qf_expand_all_symtabs)
786 (debug_qf_expand_symtabs_with_fullname)
787 (debug_qf_map_matching_symbols)
788 (debug_qf_expand_symtabs_matching)
789 (debug_qf_find_pc_sect_compunit_symtab)
790 (debug_qf_map_symbol_filenames)
791 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
792 (debug_sym_new_init, debug_sym_init, debug_sym_read)
793 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
794 (debug_sym_read_linetable, debug_sym_relocate): Update.
795 (symfile_debug_free_objfile): Remove.
796 (install_symfile_debug_logging, _initialize_symfile_debug):
799 2019-05-08 Tom Tromey <tom@tromey.com>
801 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
803 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
804 (get_dwarf2_per_objfile): Update.
805 (set_dwarf2_per_objfile): Remove.
806 (dwarf2_has_info, dwarf2_get_section_info): Update.
807 (dwarf2_free_objfile): Remove.
808 (_initialize_dwarf2_read): Update.
810 2019-05-08 Tom Tromey <tom@tromey.com>
812 * auto-load.c (struct auto_load_pspace_info): Add destructor and
814 <unsupported_script_warning_printed,
815 script_not_found_warning_printed>: Now bool.
816 (auto_load_pspace_data): Change type.
817 (~auto_load_pspace_info): Rename from
818 auto_load_pspace_data_cleanup.
819 (get_auto_load_pspace_data, init_loaded_scripts_info)
820 (clear_section_scripts, maybe_print_unsupported_script_warning)
821 (maybe_print_script_not_found_warning, _initialize_auto_load):
824 2019-05-08 Tom Tromey <tom@tromey.com>
826 * objfiles.c (objfile_pspace_info): Add destructor and
828 (objfiles_pspace_data): Change type.
829 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
830 (get_objfile_pspace_data): Update.
831 (objfiles_bfd_data): Change type.
832 (get_objfile_bfd_data): Update.
833 (objfile_bfd_data_free, _initialize_objfiles): Remove.
835 2019-05-08 Tom Tromey <tom@tromey.com>
837 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
839 (get_catch_syscall_inferior_data): Update.
840 (catch_syscall_inferior_data_cleanup): Remove.
841 (_initialize_break_catch_syscall): Update.
843 2019-05-08 Tom Tromey <tom@tromey.com>
845 * inflow.c (struct terminal_info): Add destructor and
847 (inflow_inferior_data): Change type.
848 (~terminal_info): Rename from inflow_inferior_data_cleanup.
849 (get_inflow_inferior_data, inflow_inferior_exit)
850 (swap_terminal_info, _initialize_inflow): Update.
852 2019-05-08 Tom Tromey <tom@tromey.com>
854 * target-dcache.c (target_dcache_cleanup): Remove.
855 (target_dcache_aspace_key): Change type.
856 (target_dcache_init_p, target_dcache_invalidate)
857 (target_dcache_get, target_dcache_get_or_init)
858 (_initialize_target_dcache): Update.
859 * dcache.h (struct dcache_deleter): New.
861 2019-05-08 Tom Tromey <tom@tromey.com>
863 * symtab.c (struct symbol_cache): Add destructor and
865 (symbol_cache_key): Move. Change type.
866 (make_symbol_cache, free_symbol_cache): Remove.
867 (get_symbol_cache): Update.
868 (symbol_cache_cleanup): Remove.
869 (ALL_PSPACES, symbol_cache_flush)
870 (maintenance_print_symbol_cache)
871 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
874 2019-05-08 Tom Tromey <tom@tromey.com>
876 * symtab.c (struct main_info): Add destructor and initializers.
877 (main_progspace_key): Move. Change type.
878 (get_main_info): Update.
879 (main_info_cleanup): Remove.
880 (_initialize_symtab): Update.
882 2019-05-08 Tom Tromey <tom@tromey.com>
884 * registry.h (DECLARE_REGISTRY): Define the _key class.
886 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
888 * NEWS: Merge two 'New commands' sections.
890 2019-05-08 Joel Brobecker <brobecker@adacore.com>
892 * ada-valprint.c (ada_val_print_gnat_array): Remove language
893 parameter and use Ada language definition instead.
894 (ada_val_print_ptr): Remove unused language parameter.
895 (ada_val_print_num): Remove language parameter and use Ada language
897 (ada_val_print_enum, ada_val_print_flt): Remove unused language
899 (ada_val_print_struct_union, ada_val_print_ref): Remove language
900 parameter and use Ada language definition instead.
901 (ada_val_print_1): Update all ada_val_print_xxx calls.
902 Remove language parameter.
903 (ada_val_print): Update ada_val_print_1 call.
905 2019-05-08 Tom Tromey <tromey@adacore.com>
907 * remote.c (remote_hw_watchpoint_limit)
908 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
911 2019-05-08 Tom Tromey <tromey@adacore.com>
913 * maint.c (_initialize_maint_cmds): Move initialization code to
915 (watchdog, show_watchdog): Move to remote.c.
916 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
918 (_initialize_remote): Move initialization code from maint.c.
919 * defs.h (watchdog): Don't declare.
921 2019-05-08 Tom Tromey <tromey@adacore.com>
923 * tui/tui-interp.c: Include main.h.
924 * interps.c: Include main.h.
925 * main.h (interpreter_p): Declare.
926 * defs.h (interpreter_p): Don't declare.
928 2019-05-08 Tom Tromey <tromey@adacore.com>
930 * dwarf2loc.c: Include dwarf2read.h.
931 * defs.h (read_unsigned_leb128): Don't declare.
932 * dwarf2read.h (read_unsigned_leb128): Declare.
934 2019-05-08 Tom Tromey <tromey@adacore.com>
936 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
939 2019-05-08 Tom Tromey <tromey@adacore.com>
941 * utils.c (fputs_maybe_filtered): Reset style after paging, even
942 when no wrap column is set.
944 2019-05-08 Tom Tromey <tromey@adacore.com>
946 * c-lang.c (c_get_string): Handle non-C-style arrays.
948 2019-05-08 Tom Tromey <tromey@adacore.com>
950 * typeprint.c (print_offset_data::update): Print the bit offset,
951 not the number of bits remaining.
953 2019-05-08 Tom Tromey <tromey@adacore.com>
955 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
956 padding at end of comment.
958 2019-05-08 Tom Tromey <tromey@adacore.com>
960 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
963 2019-05-06 Tom Tromey <tom@tromey.com>
965 * common/scoped_mmap.c: Include common-defs.h.
966 * common/scoped_mmap.h: Don't include config.h.
968 2019-05-04 Tom Tromey <tom@tromey.com>
970 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
971 (struct aarch64_call_info): Add initializers.
972 <si>: Now a std::vector.
973 (pass_on_stack, aarch64_push_dummy_call): Update.
975 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
976 Tom Tromey <tom@tromey.com>
978 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
979 (ppc_threads): Now a std::vector. Now static.
980 (hwdebug_find_thread_points_by_tid)
981 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
984 2019-05-04 Tom Tromey <tom@tromey.com>
986 * arc-tdep.c (arc_tdesc_init): Return bool.
988 2019-05-04 Tom Tromey <tom@tromey.com>
990 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
991 Use gdb_assert_not_reached.
993 2019-05-04 Tom Tromey <tom@tromey.com>
995 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
998 2019-05-04 Tom Tromey <tom@tromey.com>
1000 * arc-tdep.c (arc_tdesc_init): Use bool.
1002 2019-05-04 Tom Tromey <tom@tromey.com>
1004 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1006 2019-05-04 Tom Tromey <tom@tromey.com>
1008 * cli/cli-cmds.c (valid_command_p): Return bool.
1010 2019-05-04 Tom Tromey <tom@tromey.com>
1012 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1013 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1015 2019-05-04 Raul Tambre <raul@tambre.ee>
1017 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1018 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1019 operator for comparison.
1021 2019-05-04 Tom Tromey <tom@tromey.com>
1023 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1024 (lookup_partial_symbol, print_partial_symbols)
1025 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1026 (psymbol_compare): Update.
1027 (add_psymbol_to_bcache): Clear the entire psymbol.
1028 (maintenance_check_psymtabs): Update.
1029 * psympriv.h (struct partial_symbol): Don't derive from
1030 general_symbol_info.
1031 <obj_section, unrelocated_address, address,
1032 set_unrelocated_address>: Update.
1033 <ginfo>: New member.
1034 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1035 (debug_names::write_psymbols): Update.
1037 2019-05-04 Tom de Vries <tdevries@suse.de>
1039 * contrib/cc-with-tweaks.sh: Support -n arg.
1041 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1043 * corelow.c (core_target::detach): Ensure frame cache and
1044 register caches are cleared.
1045 inferior.c (exit_inferior_1): Likewise.
1047 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1048 Tom Tromey <tom@tromey.com>
1050 * dictionary.c (collate_pending_symbols_by_language): Remove
1051 "struct" from foreach.
1052 * symtab.c (lookup_global_symbol_from_objfile)
1053 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1055 * ser-tcp.c (net_open): Remove "struct" from foreach.
1056 * objfiles.c (objfile_relocate, objfile_rebase)
1057 (objfile_has_symbols): Remove "struct" from foreach.
1058 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1060 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1062 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1063 "struct" from foreach.
1064 * ada-lang.c (create_excep_cond_exprs)
1065 (ada_exception_catchpoint_cond_string): Remove "struct" from
1068 2019-05-03 Tom Tromey <tromey@adacore.com>
1070 * ada-exp.y (convert_char_literal): Check suffix of each
1073 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1076 * ada-exp.y (yywrap): Don't define.
1077 * ada-lex.l (%option): Add noyywrap
1080 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1082 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1083 _WIN32_WINNT to the XP level, unless already defined to a higher
1086 * unittests/parse-connection-spec-selftests.c:
1088 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1091 * symfile.c (find_separate_debug_file): Remove colon from the
1092 drive spec of DOS/Windows file names of the target, so that the
1093 file name produced from DEBUGDIR and the target's directory will
1094 be valid on DOS/Windows systems.
1096 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1098 * rust-lang.c (val_print_struct): Handle printing structures
1101 2019-05-02 Tom Tromey <tromey@adacore.com>
1103 * valarith.c (_initialize_valarith): Remove.
1105 2019-05-01 Tom Tromey <tromey@adacore.com>
1107 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1110 2019-05-01 Tom Tromey <tromey@adacore.com>
1112 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1113 for big-endian copies.
1115 2019-04-30 Ali Tamur <tamur@google.com>
1116 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1117 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1118 (read_3_bytes): New function.
1120 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1122 * windows-nat.c (main_thread_id): Delete.
1123 (handle_output_debug_string): Replace main_thread_id by
1124 current_event.dwThreadId.
1125 (fake_create_process): Likewise.
1126 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1127 Do not set main_thread_id.
1128 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1129 current_event.dwThreadId.
1130 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1132 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1134 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1135 Use current_event.dwThreadId instead of main_thread_id.
1137 2019-04-30 Tom Tromey <tromey@adacore.com>
1139 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1140 (create_excep_cond_exprs): Iterate over program spaces.
1141 (ada_exception_catchpoint_cond_string): Examine all minimal
1142 symbols for exception types.
1144 2019-04-30 Tom Tromey <tromey@adacore.com>
1147 * dwarf2read.c (process_structure_scope): Handle case where type
1148 has template parameters but no symbol was created.
1150 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1151 Chris January <chris.january@arm.com>
1153 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1155 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1157 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1159 * f-typeprint.c (f_print_type): Update rules for printing
1161 (f_type_print_varspec_suffix): Likewise.
1163 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1164 Chris January <chris.january@arm.com>
1166 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1169 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1171 * f-lang.c (build_fortran_types): Change name of void type to
1173 * f-typeprint.c (f_type_print_base): Print the name of the void
1174 type, rather than a fixed string.
1175 * f-valprint.c (f_decorations): Use lower case void string.
1177 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1178 Chris January <chris.january@arm.com>
1180 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1183 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1184 Chris January <chris.january@arm.com>
1185 David Lecomber <david.lecomber@arm.com>
1187 * f-exp.y (BINOP_INTRINSIC): New token.
1188 (exp): New parser rule handling BINOP_INTRINSIC.
1189 (f77_keywords): Add new builtin procedures.
1190 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1191 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1192 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1193 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1194 (print_unop_subexp_f): New function.
1195 (print_binop_subexp_f): New function.
1196 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1197 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1198 (dump_subexp_body_f): Likewise.
1199 (operator_check_f): Likewise.
1200 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1201 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1203 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1205 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1207 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1208 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1209 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1210 (operator_length_f): New fuction.
1211 (print_subexp_f): New function.
1212 (op_name_f): New function.
1213 (dump_subexp_body_f): New function.
1214 (operator_check_f): New function.
1215 (exp_descriptor_f): Replace standard expression handling functions
1217 * gdb/fortran-operator.def: New file.
1218 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1219 * gdb/std-operator.def: Remove UNOP_KIND.
1221 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1223 * std-operator.def: Remove unbalanced, stray double quote
1226 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1227 Chris January <chris.january@arm.com>
1228 Daniel Everett <daniel.everett@arm.com>
1229 Nick Forrington <nick.forrington@arm.com>
1230 Richard Bunt <richard.bunt@arm.com>
1232 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1233 of depth when printing anonymous structs or unions.
1234 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1235 Don't print either the top-level value, or the children if the
1236 max-depth is exceeded.
1237 (ppscm_print_children): When printing the key of a map, allow one
1238 extra level of depth.
1239 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1240 print either the top-level value, or the children if the max-depth
1242 (print_children): When printing the key of a map, allow one extra
1244 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1245 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1246 (user_print_options): Initialise max_depth field.
1247 (val_print_scalar_or_string_type_p): New function.
1248 (val_print): Check to see if the max depth has been reached.
1249 (val_print_check_max_depth): Define new function.
1250 (show_print_max_depth): New function.
1251 (_initialize_valprint): Add 'print max-depth' option.
1252 * valprint.h (struct value_print_options) <max_depth>: New field.
1253 (val_print_check_max_depth): Declare new function.
1254 * NEWS: Document new feature.
1256 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1258 * ada-lang.c (ada_language_defn): Initialise new field.
1259 * c-lang.c (c_is_string_type_p): New function.
1260 (c_language_defn): Initialise new field.
1261 (cplus_language_defn): Initialise new field.
1262 (asm_language_defn): Initialise new field.
1263 (minimal_language_defn): Initialise new field.
1264 * c-lang.h (c_is_string_type_p): Declare new function.
1265 * d-lang.c (d_language_defn): Initialise new field.
1266 * f-lang.c (f_is_string_type_p): New function.
1267 (f_language_defn): Initialise new field.
1268 * go-lang.c (go_is_string_type_p): New function.
1269 (go_language_defn): Initialise new field.
1270 * language.c (default_is_string_type_p): New function.
1271 (unknown_language_defn): Initialise new field.
1272 (auto_language_defn): Initialise new field.
1273 * language.h (struct language_defn) <la_is_string_type_p>: New
1275 (default_is_string_type_p): Declare new function.
1276 * m2-lang.c (m2_language_defn): Initialise new field.
1277 * objc-lang.c (objc_language_defn): Initialise new field.
1278 * opencl-lang.c (opencl_language_defn): Initialise new field.
1279 * p-lang.c (pascal_is_string_type_p): New function.
1280 (pascal_language_defn): Initialise new field.
1281 * rust-lang.c (rust_is_string_type_p): New function.
1282 (rust_language_defn): Initialise new field.
1284 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1286 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1288 * ada-lang.c (ada_language_defn): Initialise new field.
1289 * c-lang.c (c_language_defn): Likewise.
1290 (cplus_language_defn): Likewise.
1291 (asm_language_defn): Likewise.
1292 (minimal_language_defn): Likewise.
1293 * d-lang.c (d_language_defn): Likewise.
1294 * f-lang.c (f_language_defn): Likewise.
1295 * go-lang.c (go_language_defn): Likewise.
1296 * language.c (unknown_language_defn): Likewise.
1297 (auto_language_defn): Likewise.
1298 * m2-lang.c (m2_language_defn): Likewise.
1299 * objc-lang.c (objc_language_defn): Likewise.
1300 * opencl-lang.c (opencl_language_defn): Likewise.
1301 * p-lang.c (pascal_language_defn): Likewise.
1302 * rust-lang.c (rust_language_defn): Likewise.
1304 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1306 * ada-lang.c (ada_is_character_type): Change return type to bool.
1307 (ada_is_string_type): Likewise.
1308 * ada-lang.h (ada_is_character_type): Update declaration
1309 (ada_is_string_type): Likewise.
1311 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1313 Support style in 'frame|thread apply'
1315 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1316 * record.c (record_start, record_stop): Update callers of
1317 execute_command_to_string with false.
1318 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1319 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1321 (class string_file): New constructor with term_out parameter.
1322 Override methods term_out and can_emit_style_escape. New member
1324 (class stdio_file): Override can_emit_style_escape.
1325 (class tee_file): Override term_out and can_emit_style_escape.
1326 * utils.h (can_emit_style_escape): Remove.
1327 * utils.c (can_emit_style_escape): Likewise.
1328 Update all callers of can_emit_style_escape (SOMESTREAM) to
1329 SOMESTREAM->can_emit_style_escape.
1330 * source-cache.c (source_cache::get_source_lines): Likewise.
1331 * stack.c (frame_apply_command_count): Call execute_command_to_string
1332 passing the term_out characteristic of the current gdb_stdout.
1333 * thread.c (thr_try_catch_cmd): Likewise.
1334 * top.c (execute_command_to_string): pass term_out parameter
1335 to construct the string_file for the command output.
1336 * ui-file.c (term_cli_styling): New function (most code moved
1337 from utils.c can_emit_style_escape).
1338 (string_file::string_file, string_file::can_emit_style_escape,
1339 stdio_file::can_emit_style_escape, tee_file::term_out,
1340 tee_file::can_emit_style_escape): New functions.
1342 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1344 * NEWS: Mention the new set|show may-call-functions.
1345 * infcall.c (may_call_functions_p): New variable.
1346 (show_may_call_functions_p): New function.
1347 (call_function_by_hand_dummy): Throws an error if not
1349 (_initialize_infcall): Call add_setshow_boolean_cmd for
1352 2019-04-25 Keith Seitz <keiths@redhat.com>
1355 * cp-support.c (inspect_type): Don't attempt substitutions
1356 of symbol with the same name.
1358 2019-04-25 Tom Tromey <tromey@adacore.com>
1361 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1364 2019-04-25 Tom Tromey <tromey@adacore.com>
1366 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1368 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1369 (gdb_xml_parser::parse): Use std::move.
1370 * python/python-internal.h (gdbpy_convert_exception): Take a const
1372 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1374 * python/py-utils.c (gdbpy_convert_exception): Take a const
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-main.c (mi_print_exception): Take a const reference.
1381 * main.c (handle_command_errors): Take a const reference.
1382 * linespec.c (parse_linespec): Use std::move.
1383 * infcall.c (run_inferior_call): Use std::move.
1384 (call_function_by_hand_dummy): Use std::move.
1385 * exec.c (try_open_exec_file): Use std::move.
1386 * exceptions.h (exception_print, exception_fprintf)
1387 (exception_print_same): Update.
1388 * exceptions.c (print_exception, exception_print)
1389 (exception_fprintf, exception_print_same): Change parameters to
1391 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1392 * common/new-op.c: Use std::move.
1393 * common/common-exceptions.h (struct gdb_exception): Add move
1395 (struct gdb_exception_error, struct gdb_exception_quit, struct
1396 gdb_quit_bad_alloc): Change constructor to move constructor.
1397 (throw_exception): Change parameter to rvalue reference.
1398 * common/common-exceptions.c (throw_exception): Take rvalue
1400 * cli/cli-interp.c (safe_execute_command): Use std::move.
1401 * breakpoint.c (insert_bp_location, location_to_sals): Use
1404 2019-04-25 Tom Tromey <tromey@adacore.com>
1406 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1407 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1408 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1409 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1410 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1411 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1412 guile/scm-value.c: Use unpack.
1413 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1414 gdbscm_gdb_exception.
1415 (gdbscm_throw_gdb_exception): Likewise.
1416 (struct gdbscm_gdb_exception): New.
1417 (unpack): New function.
1418 (gdbscm_wrap): Use unpack.
1420 2019-04-25 Tom Tromey <tromey@adacore.com>
1422 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1423 (gdb_rl_callback_handler): Use std::move.
1424 * common/common-exceptions.h (struct gdb_exception): Add move
1425 assignment operator.
1426 (throw_exception_sjlj): Change "exception" to const reference.
1427 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1428 (throw_exception_sjlj): Change "exception" to const reference.
1430 2019-04-25 Tom Tromey <tromey@adacore.com>
1432 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1433 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1434 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1436 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1438 * mi/mi-interp.c (mi_interp::exec): Update.
1439 * linespec.c (parse_linespec): Update.
1440 * infcall.c (run_inferior_call): Update.
1441 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1442 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1443 (gdbscm_lookup_global_symbol): Update.
1444 * guile/scm-param.c (gdbscm_parameter_value): Update.
1445 * guile/scm-frame.c (gdbscm_frame_read_register)
1446 (gdbscm_frame_read_var): Update.
1447 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1448 * exec.c (try_open_exec_file): Update.
1449 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1450 (gdb_rl_callback_handler): Update.
1451 * common/common-exceptions.h (exception_none): Don't declare.
1452 * common/common-exceptions.c (exception_none): Don't define.
1453 (struct catcher) <exception>: Update.
1454 * cli/cli-interp.c (safe_execute_command): Update.
1455 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1457 2019-04-25 Ali Tamur <tamur@google.com>
1459 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1460 (read_attribute_value): Likewise.
1461 (dwarf2_read_addr_index): Update comment.
1462 (read_str_index): Add DW_FORM_strx.
1463 (dwarf2_string_attr): Likewise.
1464 (dwarf2_const_value_attr): Likewise.
1465 (dump_die_shallow): Likewise.
1466 (dwarf2_fetch_constant_bytes): Likewise.
1467 (skip_form_bytes): Likewise.
1468 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1470 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1474 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1475 OFFSET. Verify if current mapping contains an ELF header.
1476 (linux_find_memory_regions_full): Adjust call to
1479 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1480 Kang Li <kanglictf@gmail.com>
1484 * dwarf2-frame.c (read_initial_length): Be consistent about using
1485 unsigned representation of length.
1486 (decode_frame_entry_1): Likewise. Check for wraparound of
1487 end pointer as well as buffer overflow.
1489 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1491 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1494 2019-04-24 Tom Tromey <tromey@adacore.com>
1496 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1498 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1500 * s12z-tdep.c (s12z_unwind_pc): Delete.
1501 (s12z_unwind_sp): Delete.
1502 (s12z_gdbarch_init): Don't register deleted functions with
1505 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1507 * rl78-tdep.c (rl78_unwind_sp): Delete.
1508 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1510 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1512 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1513 (xstormy16_unwind_pc): Delete.
1514 (xstormy16_dummy_id): Delete.
1515 (xstormy16_gdbarch_init): Don't register deleted functions with
1518 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1520 * vax-tdep.c (vax_unwind_pc): Delete.
1521 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1523 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1525 * v850-tdep.c (v850_unwind_sp): Delete.
1526 (v850_unwind_pc): Delete.
1527 (v850_dummy_id): Delete.
1528 (v850_gdbarch_init): Don't register deleted functions with
1531 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1533 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1534 (tilegx_unwind_pc): Delete.
1535 (tilegx_unwind_dummy_id): Delete.
1536 (tilegx_gdbarch_init): Don't register deleted functions with
1539 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1541 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1542 (tic6x_dummy_id): Delete.
1543 (tic6x_gdbarch_init): Don't register deleted functions with
1546 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1548 * sparc-tdep.c (sparc_unwind_pc): Delete.
1549 (sparc32_gdbarch_init): Don't register deleted function with
1552 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1554 * sh-tdep.c (sh_unwind_sp): Delete.
1555 (sh_unwind_pc): Delete.
1556 (sh_dummy_id): Delete.
1557 (sh_gdbarch_init): Don't register deleted functions with
1560 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1562 * score-tdep.c (score_unwind_sp): Delete.
1563 (score_unwind_pc): Delete.
1564 (score_dummy_id): Delete.
1565 (score_gdbarch_init): Don't register deleted functions with
1568 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1570 * rx-tdep.c (rx_unwind_pc): Delete.
1571 (rx_unwind_sp): Delete.
1572 (rx_dummy_id): Delete.
1573 (rx_gdbarch_init): Don't register deleted functions with
1574 gdbarch. Update comment.
1576 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1578 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1579 (rs6000_dummy_id): Delete.
1580 (rs6000_gdbarch_init): Don't register deleted functions with
1583 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1585 * or1k-tdep.c (or1k_dummy_id): Delete.
1586 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1588 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1590 * nios2-tdep.c (nios2_dummy_id): Delete.
1591 (nios2_unwind_sp): Delete.
1592 (nios2_gdbarch_init): Don't register deleted functions with
1595 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1597 * nds32-tdep.c (nds32_dummy_id): Delete.
1598 (nds32_unwind_pc): Delete.
1599 (nds32_unwind_sp): Delete.
1600 (nds32_gdbarch_init): Don't register deleted functions with
1603 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1605 * msp430-tdep.c (msp430_unwind_pc): Delete.
1606 (msp430_unwind_sp): Delete.
1607 (msp430_dummy_id): Delete.
1608 (msp430_gdbarch_init): Don't register deleted functions with
1611 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1613 * moxie-tdep.c (moxie_unwind_sp): Delete.
1614 (moxie_unwind_pc): Delete.
1615 (moxie_dummy_id): Delete.
1616 (moxie_gdbarch_init): Don't register deleted functions with
1619 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1621 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1622 (mn10300_unwind_pc): Delete.
1623 (mn10300_unwind_sp): Delete.
1624 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1626 (mn10300_frame_unwind_init): Don't register deleted functions with
1629 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1631 * mep-tdep.c (mep_unwind_pc): Delete.
1632 (mep_unwind_sp): Delete.
1633 (mep_dummy_id): Delete.
1634 (mep_gdbarch_init): Don't register deleted functions with
1637 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1639 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1640 (m68hc11_unwind_sp): Delete.
1641 (m68hc11_gdbarch_init): Don't register deleted functions with
1644 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1646 * m32r-tdep.c (m32r_unwind_sp): Delete.
1647 (m32r_unwind_pc): Delete.
1648 (m32r_dummy_id): Delete.
1649 (m32r_gdbarch_init): Don't register deleted functions with
1652 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1654 * m32c-tdep.c (m32c_unwind_pc): Delete.
1655 (m32c_unwind_sp): Delete.
1656 (m32c_dummy_id): Delete.
1657 (m32c_gdbarch_init): Don't register deleted functions with
1660 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1662 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1663 (lm32_unwind_pc): Delete.
1664 (lm32_dummy_id): Delete.
1665 (lm32_gdbarch_init): Don't register deleted functions with
1668 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1670 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1671 (iq2000_unwind_pc): Delete.
1672 (iq2000_dummy_id): Delete.
1673 (iq2000_gdbarch_init): Don't register deleted functions with
1676 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1678 * nds32-tdep.c (nds32_type_align): Delete.
1679 (nds32_push_dummy_call): Use type_align instead.
1681 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1683 * arm-tdep.c (arm_type_align): Only handle vector override case.
1684 (arm_push_dummy_call): Use type_align.
1685 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1687 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1689 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1691 (pass_on_stack): Use type_align.
1692 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1695 2019-04-23 Tom Tromey <tromey@adacore.com>
1697 * dwarf2read.c (line_header::file_name_at): Remove unused
1700 2019-04-23 Tom de Vries <tdevries@suse.de>
1703 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1707 2019-03-27 Ali Tamur <tamur@google.com>
1709 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1710 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1711 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1712 (dwarf_expr_context::get_addr_index): Likewise
1713 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1714 (symbol_needs_eval_context::get_addr_index): Likewise
1715 (disassemble_dwarf_expression): Add DW_OP_addrx
1716 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1717 (read_cutu_die_from_dwo): Update comment
1718 (skip_one_die): Add DW_FORM_addrx
1719 (read_attribute_value): Likewise
1720 (var_decode_location): Add DW_OP_addrx
1721 (dwarf2_const_value_attr): Add DW_FORM_addrx
1722 (dump_die_shallow): Likewise
1723 (dwarf2_fetch_constant_bytes): Likewise
1724 (decode_locdesc): Add DW_OP_addrx
1725 (skip_form_bytes): Add DW_FORM_addrx
1727 2019-04-22 Ali Tamur <tamur@google.com>
1729 * MAINTAINERS (Write After Approval): Add self.
1731 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1733 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1734 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1735 (open_symbol_file_object): Likewise.
1736 (svr4_default_sos): Add info parameter.
1737 (svr4_read_so_list): Likewise.
1738 (svr4_current_sos_direct): Adjust functions calls to pass down
1740 (svr4_current_sos_1): Add info parameter.
1741 (svr4_current_sos): Call get_svr4_info, pass info down to
1743 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1745 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1747 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1749 (probes_table_remove_objfile_probes): Likewise.
1750 (register_solib_event_probe): Add info parameter.
1751 (solist_update_incremental): Pass info parameter down to
1753 (disable_probes_interface): Add info parameter.
1754 (svr4_handle_solib_event): Pass current_program_space to
1755 get_svr4_info. Adjust disable_probes_interface cleanup.
1756 (svr4_create_probe_breakpoints): Add info parameter, pass it
1757 down to register_solib_event_probe.
1758 (svr4_create_solib_event_breakpoints): Add info parameter,
1759 pass it down to svr4_create_probe_breakpoints.
1760 (enable_break): Pass info down to
1761 svr4_create_solib_event_breakpoints.
1762 (svr4_solib_create_inferior_hook): Pass current_program_space to
1764 (svr4_clear_solib): Likewise.
1766 2019-04-22 Pedro Alves <palves@redhat.com>
1768 * solib-svr4.c (svr4_free_objfile_observer): New.
1769 (probe_and_action::objfile): New field.
1770 (probes_table_htab_remove_objfile_probes)
1771 (probes_table_remove_objfile_probes): New functions.
1772 (register_solib_event_probe): Add 'objfile' parameter. Store it
1773 in the new probe_and_action. Don't store the probe in 'lookup'.
1774 (svr4_create_probe_breakpoints): Pass objfile to
1775 register_solib_event_probe.
1776 (_initialize_svr4_solib): Register a free_objfile observer.
1778 2019-04-19 Tom Tromey <tom@tromey.com>
1780 * common/queue.h: Remove.
1782 2019-04-19 Tom Tromey <tom@tromey.com>
1784 * event-loop.c: Don't include "common/queue.h".
1786 2019-04-19 Tom Tromey <tom@tromey.com>
1788 * remote.c (remote_target): Use delete.
1789 * remote-notif.h: Include <list>, not "common/queue.h".
1790 (notif_client_p): Remove typedef.
1791 (remote_notif_state): Add constructor, destructor, initializer.
1792 <notif_queue>: Now a std::list.
1793 (remote_notif_state_xfree): Don't declare.
1794 * remote-notif.c (remote_notif_process, handle_notification)
1795 (remote_notif_state_allocate): Update.
1796 (~remote_notif_state): Rename from remote_notif_state_xfree.
1798 2019-04-19 Tom Tromey <tom@tromey.com>
1800 * symfile.c (reread_symbols): Update.
1801 * objfiles.c (objfile_register_static_link)
1802 (objfile_lookup_static_link): Update
1803 (~objfile) Don't delete static_links.
1804 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1806 2019-04-19 Tom Tromey <tom@tromey.com>
1808 * type-stack.h (struct type_stack) <insert>: Constify string.
1809 * type-stack.c (type_stack::insert): Constify string.
1810 * gdbtypes.h (lookup_template_type): Update.
1811 (address_space_name_to_int): Update.
1812 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1814 (lookup_template_type): Make name const.
1815 * c-exp.y: Update rules.
1816 (lex_one_token, classify_name, classify_inner_name)
1817 (c_print_token): Update.
1818 * p-exp.y: Update rules.
1820 * f-exp.y: Update rules.
1822 * d-exp.y: Update rules.
1823 (lex_one_token, classify_name, classify_inner_name): Update.
1824 * parse.c (write_dollar_variable, copy_name): Return std::string.
1825 * parser-defs.h (copy_name): Change return type.
1826 * m2-exp.y: Update rules.
1828 * go-exp.y (lex_one_token): Update.
1830 (classify_unsafe_function, classify_packaged_name)
1831 (classify_name, yylex): Update.
1833 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1835 * configure.ac: add --enable-source-highlight switch.
1836 * configure: Regenerate.
1837 * top.c (print_gdb_version): plumb --enable-source-highlight
1838 status to "show configuration".
1840 2019-04-19 Tom Tromey <tromey@adacore.com>
1842 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1844 (empty_record, ada_template_to_fixed_record_type_1)
1845 (template_to_static_fixed_type)
1846 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1847 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1848 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1851 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1854 * source.c (print_source_lines_base): Advance "iter" when a
1855 control character is seen.
1857 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1859 * inferior.h (struct infcall_suspend_state_deleter):
1860 Catch exception in destructor to avoid crash.
1862 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1864 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1865 close to the add_com "shell".
1867 2019-04-18 Tom Tromey <tromey@adacore.com>
1869 * process-stratum-target.h (class process_stratum_target)
1870 <stratum>: Add "final".
1872 2019-04-17 Tom Tromey <tromey@adacore.com>
1874 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1875 against nullptr before use.
1877 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1879 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1881 2019-04-17 Jim Wilson <jimw@sifive.com>
1882 Andrew Burgess <andrew.burgess@embecosm.com>
1884 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1885 code read might fail, assume 4-byte breakpoint in that case.
1887 2019-04-15 Leszek Swirski <leszeks@google.com>
1889 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1890 rather than a hand-rolled POD check when checking for forced MEMORY
1893 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1895 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1896 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1898 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1899 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1900 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1903 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1905 * aarch64-linux-nat.c
1906 (aarch64_linux_nat_target::thread_architecture): Add override.
1907 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1910 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1912 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1914 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1916 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1917 target types of size 96-bits, add some additional comments, and
1918 check that the builtin type we found was the correct size.
1920 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1922 * utils.c (prompt_for_continue): Don't restore the styling at the
1923 end, as applied_style has the wrong value. This fixes styling in
1924 long lists of file names that are interrupted by the "Continue?"
1927 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1929 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1930 * c-lang.c (c_language_defn): Likewise.
1931 (cplus_language_defn): Likewise.
1932 (asm_language_defn): Likewise.
1933 (minimal_language_defn): Likewise.
1934 * d-lang.c (d_language_defn): Likewise.
1935 * f-lang.c (f_language_defn): Likewise.
1936 * go-lang.c (go_language_defn): Likewise.
1937 * language.c (unknown_language_defn): Likewise.
1938 (auto_language_defn): Likewise.
1939 * language.h (struct language_defn): Remove la_magic field.
1940 (LANG_MAGIC): Delete.
1941 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1942 * objc-lang.c (objc_language_defn): Likewise.
1943 * opencl-lang.c (opencl_language_defn): Likewise.
1944 * p-lang.c (pascal_language_defn): Likewise.
1945 * rust-lang.c (rust_language_defn): Likewise.
1947 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1949 * riscv-tdep.c (riscv_type_align): New function.
1950 (riscv_type_alignment): Delete.
1951 (riscv_arg_location): Use 'type_align'.
1952 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1954 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1956 * gdbtypes.c (type_align): A struct with no non-static fields also
1959 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1961 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1963 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1965 (riscv_struct_info::analyse): New implementation using new
1966 analyse_inner member function.
1967 (riscv_struct_info::field_offset): New member function.
1968 (riscv_struct_info::m_offsets): New member variable.
1969 (riscv_struct_info::analyse_inner): New private member function,
1970 takes the old implementation of riscv_struct_info::analyse but
1971 extended to track field offsets.
1972 (riscv_call_arg_struct): Update the struct folding special cases
1973 to handle cases where empty C++ structs, which are non-zero
1975 (riscv_arg_location): Initialise the length of each location, a
1976 non-zero length now indicates the location is in use.
1977 (riscv_push_dummy_call): Allow for the first location having a
1978 non-zero offset when setting up arguments.
1979 (riscv_return_value): Likewise, but for return values.
1981 2019-04-11 Tom Tromey <tromey@adacore.com>
1983 * utils.c (internal_vproblem): Make "msg" const.
1985 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1987 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1988 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1989 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1990 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1992 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1994 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1996 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1997 of amd64_collect_native_gregset.
1998 (amd64_linux_nat_target::store_registers): Likewise.
2000 2019-04-10 Tom Tromey <tom@tromey.com>
2002 * symtab.c (lookup_global_symbol_from_objfile)
2003 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2004 * objfiles.h (class separate_debug_iterator): New.
2005 (class separate_debug_range): New.
2006 (struct objfile) <separate_debug_objfiles>: New method.
2007 (objfile_separate_debug_iterate): Don't declare.
2008 * objfiles.c (separate_debug_iterator::operator++): Rename from
2009 objfile_separate_debug_iterate.
2010 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2012 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2015 2019-04-10 Tom Tromey <tom@tromey.com>
2017 * symfile.c (reread_symbols): Remove old comment.
2018 * objfiles.c (free_all_objfiles): Fix a typo.
2020 2019-04-10 Tom Tromey <tom@tromey.com>
2022 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2023 * minsyms.c (lookup_minimal_symbol): Use foreach.
2024 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2025 (lookup_minimal_symbol_solib_trampoline): Likewise.
2026 * symfile.c (reread_symbols): Use foreach.
2028 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2029 Tom Tromey <tromey@adacore.com>
2032 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2033 (rust_lex_int_test): Change "value" to be LONGEST.
2034 (rust_lex_tests): Add test for long integer literal.
2036 2019-04-09 Tom Tromey <tromey@adacore.com>
2038 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2040 (extended_remote_target::attach): Update.
2041 (remote_target::remote_notice_new_inferior): Update.
2042 (remote_target::add_current_inferior_and_thread): Update.
2043 * inferior.c (exit_inferior_1): Use "false".
2044 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2046 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2048 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2049 the "start" command.
2051 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2053 * python/py-inferior.c (infpy_thread_from_thread_handle):
2054 Adjust comments to reflect renaming of thread_from_thread_handle
2055 to thread_from_handle. Adjust keywords. Fix type error message.
2056 (inferior_object_methods): Add thread_from_handle. Retain
2057 thread_from_thread_handle, but mark it as deprecated.
2059 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2061 * gdbthread.h (find_thread_by_handle): Revise declaration.
2062 * thread.c (find_thread_by_handle): Likewise. Adjust
2064 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2065 support for buffer objects as handles.
2067 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2069 * python/py-infthread.c (thpy_thread_handle): New function.
2070 (thread_object_methods): Register thpy_thread_handle.
2072 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2074 * gdbthread.h (thread_to_thread_handle): Declare.
2075 * thread.c (gdbtypes.h): Include.
2076 (thread_to_thread_handle): New function.
2078 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2079 (target_thread_info_to_thread_handle): Declare.
2080 * target.c (target_thread_info_to_thread_handle): New function.
2081 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2082 * target-delegates.c: Regenerate.
2084 * linux-thread-db.c (class thread_db_target): Add method
2085 thread_info_to_thread_handle.
2086 (thread_db_target::thread_info_to_thread_handle): Define.
2087 * remote.c (class remote_target): Add new method
2088 thread_info_to_thread_handle.
2089 (remote_target::thread_info_to_thread_handle): Define.
2091 2019-04-08 Pedro Alves <palves@redhat.com>
2093 * common/common-exceptions.c (throw_exception): Don't create
2094 named object to throw; throw directly.
2095 (throw_it): Likewise. Don't initialize gdb_exception::message
2096 here, with new; pass FMT and AP to the ctor instead.
2097 * common/common-exceptions.h: Include <string>.
2098 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2099 const char *, va_list)): New ctor. Use std::make_shared.
2100 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2102 (gdb_exception_error::gdb_exception_error(enum errors, const char
2104 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2106 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2108 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2109 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2112 2019-04-08 Tom Tromey <tom@tromey.com>
2114 * valops.c (value_rtti_indirect_type): Replace throw_exception
2116 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2118 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2120 * target.c (target_translate_tls_address): Replace throw_exception
2122 * stack.c (frame_apply_command_count): Replace throw_exception
2124 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2126 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2128 * rs6000-tdep.c (rs6000_frame_cache)
2129 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2130 * remote.c: Replace throw_exception with throw.
2131 * record-full.c (record_full_message, record_full_wait_1)
2132 (record_full_restore): Replace throw_exception with throw.
2134 (get_thread_current_frame_id, record_btrace_start_replaying)
2135 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2136 (cmd_record_btrace_start): Replace throw_exception with throw.
2137 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2139 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2140 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2142 (find_linespec_symbols): Replace throw_exception with throw.
2143 * infrun.c (displaced_step_prepare, resume): Replace
2144 throw_exception with throw.
2145 * infcmd.c (post_create_inferior): Replace throw_exception with
2147 * inf-loop.c (inferior_event_handler): Replace throw_exception
2149 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2150 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2151 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2152 (get_prev_frame_always, get_frame_pc_if_available)
2153 (get_frame_address_in_block_if_available, get_frame_language):
2154 Replace throw_exception with throw.
2155 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2156 throw_exception with throw.
2157 * eval.c (fetch_subexp_value, evaluate_var_value)
2158 (evaluate_funcall, evaluate_subexp_standard): Replace
2159 throw_exception with throw.
2160 * dwarf2loc.c (call_site_find_chain)
2161 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2162 Replace throw_exception with throw.
2163 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2165 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2167 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2168 * completer.c (complete_line_internal): Replace throw_exception
2170 * compile/compile-object-run.c (compile_object_run): Replace
2171 throw_exception with throw.
2172 * cli/cli-script.c (process_next_line): Replace throw_exception
2174 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2175 (btrace_enable, btrace_maint_update_pt_packets): Replace
2176 throw_exception with throw.
2177 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2178 throw_exception with throw.
2179 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2180 throw_exception with throw.
2181 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2182 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2183 * aarch64-tdep.c (aarch64_make_prologue_cache)
2184 (aarch64_make_stub_cache): Replace throw_exception with throw.
2186 2019-04-08 Tom Tromey <tom@tromey.com>
2188 * common/common-exceptions.c (throw_exception): Rename from
2189 throw_exception_cxx. Remove old copy. Make argument const.
2190 (throw_it): Create and throw exception objects directly.
2191 * common/common-exceptions.h (throw_exception): Make argument
2193 (struct gdb_exception_error): Add constructor.
2194 (struct gdb_exception_quit): Add constructor.
2196 2019-04-08 Tom Tromey <tom@tromey.com>
2198 * common/common-exceptions.h (exception_rethrow): Don't declare.
2199 (TRY_SJLJ): Update comment.
2200 (TRY, CATCH, END_CATCH): Remove.
2201 * common/common-exceptions.c (exception_rethrow): Remove.
2203 2019-04-08 Tom Tromey <tom@tromey.com>
2205 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2207 (gdb_exception_error): Rename from
2208 gdb_exception_RETURN_MASK_ERROR.
2209 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2210 (gdb_quit_bad_alloc): Update.
2211 * aarch64-tdep.c: Update.
2212 * ada-lang.c: Update.
2213 * ada-typeprint.c: Update.
2214 * ada-valprint.c: Update.
2215 * amd64-tdep.c: Update.
2216 * arch-utils.c: Update.
2217 * break-catch-throw.c: Update.
2218 * breakpoint.c: Update.
2220 * c-varobj.c: Update.
2221 * cli/cli-cmds.c: Update.
2222 * cli/cli-interp.c: Update.
2223 * cli/cli-script.c: Update.
2224 * common/common-exceptions.c: Update.
2225 * common/new-op.c: Update.
2226 * common/selftest.c: Update.
2227 * compile/compile-c-symbols.c: Update.
2228 * compile/compile-cplus-symbols.c: Update.
2229 * compile/compile-object-load.c: Update.
2230 * compile/compile-object-run.c: Update.
2231 * completer.c: Update.
2232 * corelow.c: Update.
2234 * cp-support.c: Update.
2235 * cp-valprint.c: Update.
2236 * darwin-nat.c: Update.
2237 * disasm-selftests.c: Update.
2238 * dtrace-probe.c: Update.
2239 * dwarf-index-cache.c: Update.
2240 * dwarf-index-write.c: Update.
2241 * dwarf2-frame-tailcall.c: Update.
2242 * dwarf2-frame.c: Update.
2243 * dwarf2loc.c: Update.
2244 * dwarf2read.c: Update.
2246 * event-loop.c: Update.
2247 * event-top.c: Update.
2249 * f-valprint.c: Update.
2250 * fbsd-tdep.c: Update.
2251 * frame-unwind.c: Update.
2253 * gdbtypes.c: Update.
2254 * gnu-v3-abi.c: Update.
2255 * guile/guile-internal.h: Update.
2256 * guile/scm-block.c: Update.
2257 * guile/scm-breakpoint.c: Update.
2258 * guile/scm-cmd.c: Update.
2259 * guile/scm-disasm.c: Update.
2260 * guile/scm-frame.c: Update.
2261 * guile/scm-lazy-string.c: Update.
2262 * guile/scm-math.c: Update.
2263 * guile/scm-param.c: Update.
2264 * guile/scm-ports.c: Update.
2265 * guile/scm-pretty-print.c: Update.
2266 * guile/scm-symbol.c: Update.
2267 * guile/scm-symtab.c: Update.
2268 * guile/scm-type.c: Update.
2269 * guile/scm-value.c: Update.
2270 * i386-linux-tdep.c: Update.
2271 * i386-tdep.c: Update.
2272 * inf-loop.c: Update.
2273 * infcall.c: Update.
2277 * language.c: Update.
2278 * linespec.c: Update.
2279 * linux-fork.c: Update.
2280 * linux-nat.c: Update.
2281 * linux-tdep.c: Update.
2282 * linux-thread-db.c: Update.
2284 * mi/mi-cmd-break.c: Update.
2285 * mi/mi-cmd-stack.c: Update.
2286 * mi/mi-interp.c: Update.
2287 * mi/mi-main.c: Update.
2288 * objc-lang.c: Update.
2289 * p-valprint.c: Update.
2291 * ppc-linux-tdep.c: Update.
2292 * printcmd.c: Update.
2293 * python/py-arch.c: Update.
2294 * python/py-breakpoint.c: Update.
2295 * python/py-cmd.c: Update.
2296 * python/py-finishbreakpoint.c: Update.
2297 * python/py-frame.c: Update.
2298 * python/py-framefilter.c: Update.
2299 * python/py-gdb-readline.c: Update.
2300 * python/py-inferior.c: Update.
2301 * python/py-infthread.c: Update.
2302 * python/py-lazy-string.c: Update.
2303 * python/py-linetable.c: Update.
2304 * python/py-objfile.c: Update.
2305 * python/py-param.c: Update.
2306 * python/py-prettyprint.c: Update.
2307 * python/py-progspace.c: Update.
2308 * python/py-record-btrace.c: Update.
2309 * python/py-record.c: Update.
2310 * python/py-symbol.c: Update.
2311 * python/py-type.c: Update.
2312 * python/py-unwind.c: Update.
2313 * python/py-utils.c: Update.
2314 * python/py-value.c: Update.
2315 * python/python.c: Update.
2316 * record-btrace.c: Update.
2317 * record-full.c: Update.
2318 * remote-fileio.c: Update.
2320 * riscv-tdep.c: Update.
2321 * rs6000-aix-tdep.c: Update.
2322 * rs6000-tdep.c: Update.
2323 * rust-exp.y: Update.
2324 * rust-lang.c: Update.
2325 * s390-tdep.c: Update.
2326 * selftest-arch.c: Update.
2327 * solib-dsbt.c: Update.
2328 * solib-frv.c: Update.
2329 * solib-spu.c: Update.
2330 * solib-svr4.c: Update.
2332 * sparc64-linux-tdep.c: Update.
2334 * symfile-mem.c: Update.
2335 * symmisc.c: Update.
2339 * tracefile-tfile.c: Update.
2340 * tui/tui.c: Update.
2341 * typeprint.c: Update.
2342 * unittests/cli-utils-selftests.c: Update.
2343 * unittests/parse-connection-spec-selftests.c: Update.
2345 * valprint.c: Update.
2348 * windows-nat.c: Update.
2349 * x86-linux-nat.c: Update.
2350 * xml-support.c: Update.
2352 2019-04-08 Tom Tromey <tom@tromey.com>
2354 * xml-support.c: Use C++ exception handling.
2355 * x86-linux-nat.c: Use C++ exception handling.
2356 * windows-nat.c: Use C++ exception handling.
2357 * varobj.c: Use C++ exception handling.
2358 * value.c: Use C++ exception handling.
2359 * valprint.c: Use C++ exception handling.
2360 * valops.c: Use C++ exception handling.
2361 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2363 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2364 * typeprint.c: Use C++ exception handling.
2365 * tui/tui.c: Use C++ exception handling.
2366 * tracefile-tfile.c: Use C++ exception handling.
2367 * top.c: Use C++ exception handling.
2368 * thread.c: Use C++ exception handling.
2369 * target.c: Use C++ exception handling.
2370 * symmisc.c: Use C++ exception handling.
2371 * symfile-mem.c: Use C++ exception handling.
2372 * stack.c: Use C++ exception handling.
2373 * sparc64-linux-tdep.c: Use C++ exception handling.
2374 * solib.c: Use C++ exception handling.
2375 * solib-svr4.c: Use C++ exception handling.
2376 * solib-spu.c: Use C++ exception handling.
2377 * solib-frv.c: Use C++ exception handling.
2378 * solib-dsbt.c: Use C++ exception handling.
2379 * selftest-arch.c: Use C++ exception handling.
2380 * s390-tdep.c: Use C++ exception handling.
2381 * rust-lang.c: Use C++ exception handling.
2382 * rust-exp.y: Use C++ exception handling.
2383 * rs6000-tdep.c: Use C++ exception handling.
2384 * rs6000-aix-tdep.c: Use C++ exception handling.
2385 * riscv-tdep.c: Use C++ exception handling.
2386 * remote.c: Use C++ exception handling.
2387 * remote-fileio.c: Use C++ exception handling.
2388 * record-full.c: Use C++ exception handling.
2389 * record-btrace.c: Use C++ exception handling.
2390 * python/python.c: Use C++ exception handling.
2391 * python/py-value.c: Use C++ exception handling.
2392 * python/py-utils.c: Use C++ exception handling.
2393 * python/py-unwind.c: Use C++ exception handling.
2394 * python/py-type.c: Use C++ exception handling.
2395 * python/py-symbol.c: Use C++ exception handling.
2396 * python/py-record.c: Use C++ exception handling.
2397 * python/py-record-btrace.c: Use C++ exception handling.
2398 * python/py-progspace.c: Use C++ exception handling.
2399 * python/py-prettyprint.c: Use C++ exception handling.
2400 * python/py-param.c: Use C++ exception handling.
2401 * python/py-objfile.c: Use C++ exception handling.
2402 * python/py-linetable.c: Use C++ exception handling.
2403 * python/py-lazy-string.c: Use C++ exception handling.
2404 * python/py-infthread.c: Use C++ exception handling.
2405 * python/py-inferior.c: Use C++ exception handling.
2406 * python/py-gdb-readline.c: Use C++ exception handling.
2407 * python/py-framefilter.c: Use C++ exception handling.
2408 * python/py-frame.c: Use C++ exception handling.
2409 * python/py-finishbreakpoint.c: Use C++ exception handling.
2410 * python/py-cmd.c: Use C++ exception handling.
2411 * python/py-breakpoint.c: Use C++ exception handling.
2412 * python/py-arch.c: Use C++ exception handling.
2413 * printcmd.c: Use C++ exception handling.
2414 * ppc-linux-tdep.c: Use C++ exception handling.
2415 * parse.c: Use C++ exception handling.
2416 * p-valprint.c: Use C++ exception handling.
2417 * objc-lang.c: Use C++ exception handling.
2418 * mi/mi-main.c: Use C++ exception handling.
2419 * mi/mi-interp.c: Use C++ exception handling.
2420 * mi/mi-cmd-stack.c: Use C++ exception handling.
2421 * mi/mi-cmd-break.c: Use C++ exception handling.
2422 * main.c: Use C++ exception handling.
2423 * linux-thread-db.c: Use C++ exception handling.
2424 * linux-tdep.c: Use C++ exception handling.
2425 * linux-nat.c: Use C++ exception handling.
2426 * linux-fork.c: Use C++ exception handling.
2427 * linespec.c: Use C++ exception handling.
2428 * language.c: Use C++ exception handling.
2429 * jit.c: Use C++ exception handling.
2430 * infrun.c: Use C++ exception handling.
2431 * infcmd.c: Use C++ exception handling.
2432 * infcall.c: Use C++ exception handling.
2433 * inf-loop.c: Use C++ exception handling.
2434 * i386-tdep.c: Use C++ exception handling.
2435 * i386-linux-tdep.c: Use C++ exception handling.
2436 * guile/scm-value.c: Use C++ exception handling.
2437 * guile/scm-type.c: Use C++ exception handling.
2438 * guile/scm-symtab.c: Use C++ exception handling.
2439 * guile/scm-symbol.c: Use C++ exception handling.
2440 * guile/scm-pretty-print.c: Use C++ exception handling.
2441 * guile/scm-ports.c: Use C++ exception handling.
2442 * guile/scm-param.c: Use C++ exception handling.
2443 * guile/scm-math.c: Use C++ exception handling.
2444 * guile/scm-lazy-string.c: Use C++ exception handling.
2445 * guile/scm-frame.c: Use C++ exception handling.
2446 * guile/scm-disasm.c: Use C++ exception handling.
2447 * guile/scm-cmd.c: Use C++ exception handling.
2448 * guile/scm-breakpoint.c: Use C++ exception handling.
2449 * guile/scm-block.c: Use C++ exception handling.
2450 * guile/guile-internal.h: Use C++ exception handling.
2451 * gnu-v3-abi.c: Use C++ exception handling.
2452 * gdbtypes.c: Use C++ exception handling.
2453 * frame.c: Use C++ exception handling.
2454 * frame-unwind.c: Use C++ exception handling.
2455 * fbsd-tdep.c: Use C++ exception handling.
2456 * f-valprint.c: Use C++ exception handling.
2457 * exec.c: Use C++ exception handling.
2458 * event-top.c: Use C++ exception handling.
2459 * event-loop.c: Use C++ exception handling.
2460 * eval.c: Use C++ exception handling.
2461 * dwarf2read.c: Use C++ exception handling.
2462 * dwarf2loc.c: Use C++ exception handling.
2463 * dwarf2-frame.c: Use C++ exception handling.
2464 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2465 * dwarf-index-write.c: Use C++ exception handling.
2466 * dwarf-index-cache.c: Use C++ exception handling.
2467 * dtrace-probe.c: Use C++ exception handling.
2468 * disasm-selftests.c: Use C++ exception handling.
2469 * darwin-nat.c: Use C++ exception handling.
2470 * cp-valprint.c: Use C++ exception handling.
2471 * cp-support.c: Use C++ exception handling.
2472 * cp-abi.c: Use C++ exception handling.
2473 * corelow.c: Use C++ exception handling.
2474 * completer.c: Use C++ exception handling.
2475 * compile/compile-object-run.c: Use C++ exception handling.
2476 * compile/compile-object-load.c: Use C++ exception handling.
2477 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2478 * compile/compile-c-symbols.c: Use C++ exception handling.
2479 * common/selftest.c: Use C++ exception handling.
2480 * common/new-op.c: Use C++ exception handling.
2481 * cli/cli-script.c: Use C++ exception handling.
2482 * cli/cli-interp.c: Use C++ exception handling.
2483 * cli/cli-cmds.c: Use C++ exception handling.
2484 * c-varobj.c: Use C++ exception handling.
2485 * btrace.c: Use C++ exception handling.
2486 * breakpoint.c: Use C++ exception handling.
2487 * break-catch-throw.c: Use C++ exception handling.
2488 * arch-utils.c: Use C++ exception handling.
2489 * amd64-tdep.c: Use C++ exception handling.
2490 * ada-valprint.c: Use C++ exception handling.
2491 * ada-typeprint.c: Use C++ exception handling.
2492 * ada-lang.c: Use C++ exception handling.
2493 * aarch64-tdep.c: Use C++ exception handling.
2495 2019-04-08 Tom Tromey <tom@tromey.com>
2497 * xml-support.c (gdb_xml_parser::parse): Update.
2498 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2499 * value.c (show_convenience): Update.
2500 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2501 (test_parse_flags_qcs): Update.
2502 * thread.c (thr_try_catch_cmd): Update.
2503 * target.c (target_translate_tls_address): Update.
2504 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2505 (info_frame_command_core, frame_apply_command_count): Update.
2506 * rust-exp.y (rust_lex_exception_test): Update.
2507 * riscv-tdep.c (riscv_print_one_register_info): Update.
2508 * remote.c (remote_target::enable_btrace): Update.
2509 * record-btrace.c (record_btrace_enable_warn): Update.
2510 * python/py-utils.c (gdbpy_convert_exception): Update.
2511 * printcmd.c (do_one_display, print_variable_and_value): Update.
2512 * mi/mi-main.c (mi_print_exception): Update.
2513 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2514 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2515 * linux-nat.c (linux_nat_target::attach): Update.
2516 * linux-fork.c (class scoped_switch_fork_info): Update.
2517 * infrun.c (displaced_step_prepare): Update.
2518 * infcall.c (call_function_by_hand_dummy): Update.
2519 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2520 * gnu-v3-abi.c (print_one_vtable): Update.
2521 * frame.c (get_prev_frame_always): Update.
2522 * f-valprint.c (info_common_command_for_block): Update.
2523 * exec.c (try_open_exec_file): Update.
2524 * exceptions.c (print_exception, exception_print)
2525 (exception_fprintf, exception_print_same): Update.
2526 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2527 * dwarf-index-cache.c (index_cache::store)
2528 (index_cache::lookup_gdb_index): Update.
2529 * darwin-nat.c (maybe_cache_shell): Update.
2530 * cp-valprint.c (cp_print_value_fields): Update.
2531 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2532 (gcc_cplus_symbol_address): Update.
2533 * compile/compile-c-symbols.c (gcc_convert_symbol)
2534 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2535 * common/selftest.c: Update.
2536 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2538 (exception_try_scope_entry, exception_try_scope_exit): Don't
2540 (struct exception_try_scope): Remove.
2541 (TRY): Don't use exception_try_scope.
2542 (struct gdb_exception): Add constructor, operator=.
2544 (struct gdb_exception_RETURN_MASK_ALL)
2545 (struct gdb_exception_RETURN_MASK_ERROR)
2546 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2547 (struct gdb_quit_bad_alloc): Update.
2548 * common/common-exceptions.c (exception_none): Change
2550 (struct catcher) <state, exception>: Initialize inline.
2551 <prev>: Remove member.
2552 (current_catcher): Remove.
2553 (catchers): New global.
2554 (exceptions_state_mc_init): Simplify.
2555 (catcher_pop): Remove.
2556 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2557 (try_scope_depth, exception_try_scope_entry)
2558 (exception_try_scope_exit): Remove.
2559 (throw_exception_sjlj): Update.
2560 (exception_messages, exception_messages_size): Remove.
2561 (throw_it): Simplify.
2562 (gdb_exception_sliced_copy): Remove.
2563 (throw_exception_cxx): Update.
2564 * cli/cli-script.c (script_from_file): Update.
2565 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2567 * ada-valprint.c (ada_val_print): Update.
2568 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2569 (create_excep_cond_exprs): Update.
2571 2019-04-08 Tom Tromey <tom@tromey.com>
2573 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2574 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2575 (TRY, CATCH, END_CATCH): Remove some definitions.
2576 * common/common-exceptions.c: Don't use GDB_XCPT.
2577 (catcher_list_size): Remove.
2578 (throw_exception, throw_it): Simplify.
2580 2019-04-05 Tom Tromey <tom@tromey.com>
2582 Revert the header-sorting patch.
2583 * ft32-tdep.c: Revert.
2584 * frv-tdep.c: Revert.
2585 * frv-linux-tdep.c: Revert.
2587 * frame-unwind.c: Revert.
2588 * frame-base.c: Revert.
2589 * fork-child.c: Revert.
2590 * findvar.c: Revert.
2591 * findcmd.c: Revert.
2592 * filesystem.c: Revert.
2593 * filename-seen-cache.h: Revert.
2594 * filename-seen-cache.c: Revert.
2595 * fbsd-tdep.c: Revert.
2596 * fbsd-nat.h: Revert.
2597 * fbsd-nat.c: Revert.
2598 * f-valprint.c: Revert.
2599 * f-typeprint.c: Revert.
2601 * extension.h: Revert.
2602 * extension.c: Revert.
2603 * extension-priv.h: Revert.
2604 * expprint.c: Revert.
2607 * exceptions.c: Revert.
2608 * event-top.c: Revert.
2609 * event-loop.c: Revert.
2611 * elfread.c: Revert.
2612 * dwarf2read.h: Revert.
2613 * dwarf2read.c: Revert.
2614 * dwarf2loc.c: Revert.
2615 * dwarf2expr.h: Revert.
2616 * dwarf2expr.c: Revert.
2617 * dwarf2-frame.c: Revert.
2618 * dwarf2-frame-tailcall.c: Revert.
2619 * dwarf-index-write.h: Revert.
2620 * dwarf-index-write.c: Revert.
2621 * dwarf-index-common.c: Revert.
2622 * dwarf-index-cache.h: Revert.
2623 * dwarf-index-cache.c: Revert.
2624 * dummy-frame.c: Revert.
2625 * dtrace-probe.c: Revert.
2628 * disasm-selftests.c: Revert.
2629 * dictionary.c: Revert.
2630 * dicos-tdep.c: Revert.
2631 * demangle.c: Revert.
2634 * darwin-nat.h: Revert.
2635 * darwin-nat.c: Revert.
2636 * darwin-nat-info.c: Revert.
2637 * d-valprint.c: Revert.
2638 * d-namespace.c: Revert.
2641 * csky-tdep.c: Revert.
2642 * csky-linux-tdep.c: Revert.
2643 * cris-tdep.c: Revert.
2644 * cris-linux-tdep.c: Revert.
2645 * cp-valprint.c: Revert.
2646 * cp-support.c: Revert.
2647 * cp-namespace.c: Revert.
2649 * corelow.c: Revert.
2650 * corefile.c: Revert.
2651 * continuations.c: Revert.
2652 * completer.h: Revert.
2653 * completer.c: Revert.
2654 * complaints.c: Revert.
2655 * coffread.c: Revert.
2656 * coff-pe-read.c: Revert.
2657 * cli-out.h: Revert.
2658 * cli-out.c: Revert.
2659 * charset.c: Revert.
2660 * c-varobj.c: Revert.
2661 * c-valprint.c: Revert.
2662 * c-typeprint.c: Revert.
2664 * buildsym.c: Revert.
2665 * buildsym-legacy.c: Revert.
2666 * build-id.h: Revert.
2667 * build-id.c: Revert.
2669 * bsd-uthread.c: Revert.
2670 * breakpoint.h: Revert.
2671 * breakpoint.c: Revert.
2672 * break-catch-throw.c: Revert.
2673 * break-catch-syscall.c: Revert.
2674 * break-catch-sig.c: Revert.
2675 * blockframe.c: Revert.
2677 * bfin-tdep.c: Revert.
2678 * bfin-linux-tdep.c: Revert.
2679 * bfd-target.c: Revert.
2681 * ax-general.c: Revert.
2684 * avr-tdep.c: Revert.
2686 * auto-load.c: Revert.
2687 * arm-wince-tdep.c: Revert.
2688 * arm-tdep.c: Revert.
2689 * arm-symbian-tdep.c: Revert.
2690 * arm-pikeos-tdep.c: Revert.
2691 * arm-obsd-tdep.c: Revert.
2692 * arm-nbsd-tdep.c: Revert.
2693 * arm-nbsd-nat.c: Revert.
2694 * arm-linux-tdep.c: Revert.
2695 * arm-linux-nat.c: Revert.
2696 * arm-fbsd-tdep.c: Revert.
2697 * arm-fbsd-nat.c: Revert.
2698 * arm-bsd-tdep.c: Revert.
2699 * arch-utils.c: Revert.
2700 * arc-tdep.c: Revert.
2701 * arc-newlib-tdep.c: Revert.
2702 * annotate.h: Revert.
2703 * annotate.c: Revert.
2704 * amd64-windows-tdep.c: Revert.
2705 * amd64-windows-nat.c: Revert.
2706 * amd64-tdep.c: Revert.
2707 * amd64-sol2-tdep.c: Revert.
2708 * amd64-obsd-tdep.c: Revert.
2709 * amd64-obsd-nat.c: Revert.
2710 * amd64-nbsd-tdep.c: Revert.
2711 * amd64-nbsd-nat.c: Revert.
2712 * amd64-nat.c: Revert.
2713 * amd64-linux-tdep.c: Revert.
2714 * amd64-linux-nat.c: Revert.
2715 * amd64-fbsd-tdep.c: Revert.
2716 * amd64-fbsd-nat.c: Revert.
2717 * amd64-dicos-tdep.c: Revert.
2718 * amd64-darwin-tdep.c: Revert.
2719 * amd64-bsd-nat.c: Revert.
2720 * alpha-tdep.c: Revert.
2721 * alpha-obsd-tdep.c: Revert.
2722 * alpha-nbsd-tdep.c: Revert.
2723 * alpha-mdebug-tdep.c: Revert.
2724 * alpha-linux-tdep.c: Revert.
2725 * alpha-linux-nat.c: Revert.
2726 * alpha-bsd-tdep.c: Revert.
2727 * alpha-bsd-nat.c: Revert.
2728 * aix-thread.c: Revert.
2730 * addrmap.c: Revert.
2731 * ada-varobj.c: Revert.
2732 * ada-valprint.c: Revert.
2733 * ada-typeprint.c: Revert.
2734 * ada-tasks.c: Revert.
2735 * ada-lang.c: Revert.
2736 * aarch64-tdep.c: Revert.
2737 * aarch64-ravenscar-thread.c: Revert.
2738 * aarch64-newlib-tdep.c: Revert.
2739 * aarch64-linux-tdep.c: Revert.
2740 * aarch64-linux-nat.c: Revert.
2741 * aarch64-fbsd-tdep.c: Revert.
2742 * aarch64-fbsd-nat.c: Revert.
2743 * aarch32-linux-nat.c: Revert.
2745 2019-04-05 Tom Tromey <tom@tromey.com>
2747 * ft32-tdep.c: Sort headers.
2748 * frv-tdep.c: Sort headers.
2749 * frv-linux-tdep.c: Sort headers.
2750 * frame.c: Sort headers.
2751 * frame-unwind.c: Sort headers.
2752 * frame-base.c: Sort headers.
2753 * fork-child.c: Sort headers.
2754 * findvar.c: Sort headers.
2755 * findcmd.c: Sort headers.
2756 * filesystem.c: Sort headers.
2757 * filename-seen-cache.h: Sort headers.
2758 * filename-seen-cache.c: Sort headers.
2759 * fbsd-tdep.c: Sort headers.
2760 * fbsd-nat.h: Sort headers.
2761 * fbsd-nat.c: Sort headers.
2762 * f-valprint.c: Sort headers.
2763 * f-typeprint.c: Sort headers.
2764 * f-lang.c: Sort headers.
2765 * extension.h: Sort headers.
2766 * extension.c: Sort headers.
2767 * extension-priv.h: Sort headers.
2768 * expprint.c: Sort headers.
2769 * exec.h: Sort headers.
2770 * exec.c: Sort headers.
2771 * exceptions.c: Sort headers.
2772 * event-top.c: Sort headers.
2773 * event-loop.c: Sort headers.
2774 * eval.c: Sort headers.
2775 * elfread.c: Sort headers.
2776 * dwarf2read.h: Sort headers.
2777 * dwarf2read.c: Sort headers.
2778 * dwarf2loc.c: Sort headers.
2779 * dwarf2expr.h: Sort headers.
2780 * dwarf2expr.c: Sort headers.
2781 * dwarf2-frame.c: Sort headers.
2782 * dwarf2-frame-tailcall.c: Sort headers.
2783 * dwarf-index-write.h: Sort headers.
2784 * dwarf-index-write.c: Sort headers.
2785 * dwarf-index-common.c: Sort headers.
2786 * dwarf-index-cache.h: Sort headers.
2787 * dwarf-index-cache.c: Sort headers.
2788 * dummy-frame.c: Sort headers.
2789 * dtrace-probe.c: Sort headers.
2790 * disasm.h: Sort headers.
2791 * disasm.c: Sort headers.
2792 * disasm-selftests.c: Sort headers.
2793 * dictionary.c: Sort headers.
2794 * dicos-tdep.c: Sort headers.
2795 * demangle.c: Sort headers.
2796 * dcache.h: Sort headers.
2797 * dcache.c: Sort headers.
2798 * darwin-nat.h: Sort headers.
2799 * darwin-nat.c: Sort headers.
2800 * darwin-nat-info.c: Sort headers.
2801 * d-valprint.c: Sort headers.
2802 * d-namespace.c: Sort headers.
2803 * d-lang.c: Sort headers.
2804 * ctf.c: Sort headers.
2805 * csky-tdep.c: Sort headers.
2806 * csky-linux-tdep.c: Sort headers.
2807 * cris-tdep.c: Sort headers.
2808 * cris-linux-tdep.c: Sort headers.
2809 * cp-valprint.c: Sort headers.
2810 * cp-support.c: Sort headers.
2811 * cp-namespace.c: Sort headers.
2812 * cp-abi.c: Sort headers.
2813 * corelow.c: Sort headers.
2814 * corefile.c: Sort headers.
2815 * continuations.c: Sort headers.
2816 * completer.h: Sort headers.
2817 * completer.c: Sort headers.
2818 * complaints.c: Sort headers.
2819 * coffread.c: Sort headers.
2820 * coff-pe-read.c: Sort headers.
2821 * cli-out.h: Sort headers.
2822 * cli-out.c: Sort headers.
2823 * charset.c: Sort headers.
2824 * c-varobj.c: Sort headers.
2825 * c-valprint.c: Sort headers.
2826 * c-typeprint.c: Sort headers.
2827 * c-lang.c: Sort headers.
2828 * buildsym.c: Sort headers.
2829 * buildsym-legacy.c: Sort headers.
2830 * build-id.h: Sort headers.
2831 * build-id.c: Sort headers.
2832 * btrace.c: Sort headers.
2833 * bsd-uthread.c: Sort headers.
2834 * breakpoint.h: Sort headers.
2835 * breakpoint.c: Sort headers.
2836 * break-catch-throw.c: Sort headers.
2837 * break-catch-syscall.c: Sort headers.
2838 * break-catch-sig.c: Sort headers.
2839 * blockframe.c: Sort headers.
2840 * block.c: Sort headers.
2841 * bfin-tdep.c: Sort headers.
2842 * bfin-linux-tdep.c: Sort headers.
2843 * bfd-target.c: Sort headers.
2844 * bcache.c: Sort headers.
2845 * ax-general.c: Sort headers.
2846 * ax-gdb.h: Sort headers.
2847 * ax-gdb.c: Sort headers.
2848 * avr-tdep.c: Sort headers.
2849 * auxv.c: Sort headers.
2850 * auto-load.c: Sort headers.
2851 * arm-wince-tdep.c: Sort headers.
2852 * arm-tdep.c: Sort headers.
2853 * arm-symbian-tdep.c: Sort headers.
2854 * arm-pikeos-tdep.c: Sort headers.
2855 * arm-obsd-tdep.c: Sort headers.
2856 * arm-nbsd-tdep.c: Sort headers.
2857 * arm-nbsd-nat.c: Sort headers.
2858 * arm-linux-tdep.c: Sort headers.
2859 * arm-linux-nat.c: Sort headers.
2860 * arm-fbsd-tdep.c: Sort headers.
2861 * arm-fbsd-nat.c: Sort headers.
2862 * arm-bsd-tdep.c: Sort headers.
2863 * arch-utils.c: Sort headers.
2864 * arc-tdep.c: Sort headers.
2865 * arc-newlib-tdep.c: Sort headers.
2866 * annotate.h: Sort headers.
2867 * annotate.c: Sort headers.
2868 * amd64-windows-tdep.c: Sort headers.
2869 * amd64-windows-nat.c: Sort headers.
2870 * amd64-tdep.c: Sort headers.
2871 * amd64-sol2-tdep.c: Sort headers.
2872 * amd64-obsd-tdep.c: Sort headers.
2873 * amd64-obsd-nat.c: Sort headers.
2874 * amd64-nbsd-tdep.c: Sort headers.
2875 * amd64-nbsd-nat.c: Sort headers.
2876 * amd64-nat.c: Sort headers.
2877 * amd64-linux-tdep.c: Sort headers.
2878 * amd64-linux-nat.c: Sort headers.
2879 * amd64-fbsd-tdep.c: Sort headers.
2880 * amd64-fbsd-nat.c: Sort headers.
2881 * amd64-dicos-tdep.c: Sort headers.
2882 * amd64-darwin-tdep.c: Sort headers.
2883 * amd64-bsd-nat.c: Sort headers.
2884 * alpha-tdep.c: Sort headers.
2885 * alpha-obsd-tdep.c: Sort headers.
2886 * alpha-nbsd-tdep.c: Sort headers.
2887 * alpha-mdebug-tdep.c: Sort headers.
2888 * alpha-linux-tdep.c: Sort headers.
2889 * alpha-linux-nat.c: Sort headers.
2890 * alpha-bsd-tdep.c: Sort headers.
2891 * alpha-bsd-nat.c: Sort headers.
2892 * aix-thread.c: Sort headers.
2893 * agent.c: Sort headers.
2894 * addrmap.c: Sort headers.
2895 * ada-varobj.c: Sort headers.
2896 * ada-valprint.c: Sort headers.
2897 * ada-typeprint.c: Sort headers.
2898 * ada-tasks.c: Sort headers.
2899 * ada-lang.c: Sort headers.
2900 * aarch64-tdep.c: Sort headers.
2901 * aarch64-ravenscar-thread.c: Sort headers.
2902 * aarch64-newlib-tdep.c: Sort headers.
2903 * aarch64-linux-tdep.c: Sort headers.
2904 * aarch64-linux-nat.c: Sort headers.
2905 * aarch64-fbsd-tdep.c: Sort headers.
2906 * aarch64-fbsd-nat.c: Sort headers.
2907 * aarch32-linux-nat.c: Sort headers.
2909 2019-04-04 Tom Tromey <tom@tromey.com>
2911 * varobj.c (varobj_create): Update.
2912 * rust-exp.y (struct rust_parser) <update_innermost_block,
2913 lookup_symbol>: New methods.
2914 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2916 (rust_parser::rust_lookup_type)
2917 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2918 * printcmd.c (display_command, do_one_display): Update.
2919 * parser-defs.h (struct parser_state) <parser_state>: Add
2920 "tracker" parameter.
2921 (block_tracker): New member.
2922 (class innermost_block_tracker) <innermost_block_tracker>: Add
2924 <reset>: Remove method.
2925 (innermost_block): Don't declare.
2926 (null_post_parser): Update.
2927 * parse.c (innermost_block): Remove global.
2928 (write_dollar_variable): Update.
2929 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2930 Remove "tracker_types" parameter.
2931 (parse_expression): Add "tracker" parameter.
2932 (parse_expression_for_completion): Update.
2933 (null_post_parser): Add "tracker" parameter.
2934 * p-exp.y: Update rules.
2935 * m2-exp.y: Update rules.
2936 * language.h (struct language_defn) <la_post_parser>: Add
2937 "tracker" parameter.
2938 * go-exp.y: Update rules.
2939 * f-exp.y: Update rules.
2940 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2942 * d-exp.y: Update rules.
2943 * c-exp.y: Update rules.
2944 * breakpoint.c (set_breakpoint_condition): Create an
2945 innermost_block_tracker.
2946 (watch_command_1): Likewise.
2947 * ada-lang.c (resolve): Add "tracker" parameter.
2948 (resolve_subexp): Likewise.
2949 * ada-exp.y (write_var_from_sym): Update.
2951 2019-04-04 Tom Tromey <tom@tromey.com>
2953 * type-stack.h: New file.
2954 * type-stack.c: New file.
2955 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2957 (insert_into_type_stack, insert_type, push_type, push_type_int)
2958 (insert_type_address_space, pop_type, pop_type_int)
2959 (pop_typelist, pop_type_stack, append_type_stack)
2960 (push_type_stack, get_type_stack, push_typelist)
2961 (follow_type_instance_flags, follow_types): Don't declare.
2962 * parse.c (type_stack): Remove global.
2963 (parse_exp_in_context): Update.
2964 (insert_into_type_stack, insert_type, push_type, push_type_int)
2965 (insert_type_address_space, pop_type, pop_type_int)
2966 (pop_typelist, pop_type_stack, append_type_stack)
2967 (push_type_stack, get_type_stack, push_typelist)
2968 (follow_type_instance_flags, follow_types): Remove (moved to
2970 * f-exp.y (type_stack): New global.
2972 (push_kind_type, f_parse): Update.
2973 * d-exp.y (type_stack): New global.
2976 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2978 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2979 (HFILES_NO_SRCDIR): Add type-stack.h.
2981 2019-04-04 Tom Tromey <tom@tromey.com>
2983 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2984 (rust_parser::convert_ast_to_expression, rust_parse)
2985 (rust_lex_test_completion, rust_lex_tests): Update.
2986 * parser-defs.h (struct expr_completion_state): New.
2987 (struct parser_state) <parser_state>: Add completion parameter.
2988 <mark_struct_expression, mark_completion_tag>: New methods.
2989 <parse_completion, m_completion_state>: New members.
2990 (prefixify_expression, null_post_parser): Update.
2991 (mark_struct_expression, mark_completion_tag): Don't declare.
2992 * parse.c (parse_completion, expout_last_struct)
2993 (expout_tag_completion_type, expout_completion_name): Remove
2995 (parser_state::mark_struct_expression)
2996 (parser_state::mark_completion_tag): Now methods.
2997 (prefixify_expression): Add last_struct parameter.
2998 (prefixify_subexp): Likewise.
2999 (parse_exp_1): Update.
3000 (parse_exp_in_context): Add cstate parameter. Update.
3001 (parse_expression_for_completion): Create an
3002 expr_completion_state.
3003 (null_post_parser): Add "completion" parameter.
3004 * p-exp.y: Update rules.
3006 * language.h (struct language_defn) <la_post_parser>: Add
3007 "completing" parameter.
3008 * go-exp.y: Update rules.
3009 (lex_one_token): Update.
3010 * expression.h (parse_completion): Don't declare.
3011 * d-exp.y: Update rules.
3012 (lex_one_token): Update rules.
3013 * c-exp.y: Update rules.
3014 (lex_one_token): Update.
3015 * ada-lang.c (resolve): Add "parse_completion" parameter.
3016 (resolve_subexp): Likewise.
3017 (ada_resolve_function): Likewise.
3019 2019-04-04 Tom Tromey <tom@tromey.com>
3021 * parser-defs.h (struct parser_state) <start_arglist,
3022 end_arglist>: New methods.
3023 <arglist_len, m_funcall_chain>: New members.
3024 (arglist_len, start_arglist, end_arglist): Don't declare.
3025 * parse.c (arglist_len, funcall_chain): Remove global.
3026 (start_arglist, end_arglist): Remove functions.
3027 (parse_exp_in_context): Update.
3028 * p-exp.y: Update rules.
3029 * m2-exp.y: Update rules.
3030 * go-exp.y: Update rules.
3031 * f-exp.y: Update rules.
3032 * d-exp.y: Update rules.
3033 * c-exp.y: Update rules.
3035 2019-04-04 Tom Tromey <tom@tromey.com>
3037 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3038 lex_operator, push_back>: New methods.
3040 (rust_parser::lex_hex, lex_escape): Rename and update.
3041 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3042 (rust_parser::lex_operator): Rename and update.
3043 (rust_parser::lex_number, rustyylex, rustyyerror)
3044 (rust_lex_test_init, rust_lex_test_sequence)
3045 (rust_lex_test_push_back, rust_lex_tests): Update.
3046 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3048 <lexptr, prev_lexptr>: New members.
3049 (lexptr, prev_lexptr): Don't declare.
3050 * parse.c (lexptr, prev_lexptr): Remove globals.
3051 (parse_exp_in_context): Update.
3052 * p-exp.y (yylex, yyerror): Update.
3053 * m2-exp.y (parse_number, yylex, yyerror): Update.
3054 * go-exp.y (lex_one_token, yyerror): Update.
3055 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3056 * d-exp.y (lex_one_token, yyerror): Update.
3057 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3058 (lex_one_token, yyerror): Update.
3059 * ada-lex.l (YY_INPUT): Update.
3060 (rewind_to_char): Update.
3061 * ada-exp.y (yyerror): Update.
3063 2019-04-04 Tom Tromey <tom@tromey.com>
3065 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3066 * parser-defs.h (struct parser_state) <parser_state>: Add new
3068 <comma_terminates>: New member.
3069 (comma_terminates): Don't declare global.
3070 * parse.c (comma_terminates): Remove global.
3071 (parse_exp_in_context): Update.
3072 * p-exp.y (yylex): Update.
3073 * m2-exp.y (yylex): Update.
3074 * go-exp.y (lex_one_token): Update.
3075 * f-exp.y (yylex): Update.
3076 * d-exp.y (lex_one_token): Update.
3077 * c-exp.y (lex_one_token): Update.
3078 * ada-lex.l: Update.
3080 2019-04-04 Tom Tromey <tom@tromey.com>
3082 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3083 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3084 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3085 * parser-defs.h (paren_depth): Don't declare.
3086 * parse.c (paren_depth): Remove global.
3087 (parse_exp_in_context): Update.
3088 * p-exp.y (paren_depth): New global.
3089 (pascal_parse): Initialize it.
3090 * m2-exp.y (paren_depth): New global.
3091 (m2_parse): Initialize it.
3092 * go-exp.y (paren_depth): New global.
3093 (go_parse): Initialize it.
3094 * f-exp.y (paren_depth): New global.
3095 (f_parse): Initialize it.
3096 * d-exp.y (paren_depth): New global.
3097 (d_parse): Initialize it.
3098 * c-exp.y (paren_depth): New global.
3099 (c_parse): Initialize it.
3100 * ada-lex.l (paren_depth): New global.
3101 (lexer_init): Initialize it.
3103 2019-04-04 Tom Tromey <tom@tromey.com>
3105 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3106 (rust_parser::convert_ast_to_type)
3107 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3108 * parser-defs.h (struct parser_state) <parser_state>: Add
3109 parameters. Initialize new members.
3110 <expression_context_block, expression_context_pc>: New members.
3111 * parse.c (expression_context_block, expression_context_pc):
3113 (parse_exp_in_context): Update.
3114 * p-exp.y: Update all rules.
3116 * m2-exp.y: Update all rules.
3118 * go-exp.y (yylex): Update.
3119 * f-exp.y (yylex): Update.
3120 * d-exp.y: Update all rules.
3122 * c-exp.y: Update all rules.
3123 (lex_one_token, classify_name, yylex, c_parse): Update.
3124 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3126 2019-04-04 Tom Tromey <tom@tromey.com>
3128 * gdbarch.h, gdbarch.c: Rebuild.
3129 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3131 (struct stap_parse_info): Replace "parser_state" with
3133 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3134 (parser_state): New class.
3135 * parse.c (expr_builder): Rename.
3136 (expr_builder::release): Rename.
3137 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3138 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3139 (write_exp_elt_longcst, write_exp_elt_floatcst)
3140 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3141 (write_exp_string_vector, write_exp_bitstring)
3142 (write_exp_msymbol, mark_struct_expression)
3143 (write_dollar_variable)
3144 (insert_type_address_space, increase_expout_size): Replace
3145 "parser_state" with "expr_builder".
3146 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3147 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3148 "parser_state" with "expr_builder".
3150 2019-04-04 Tom Tromey <tom@tromey.com>
3152 * rust-exp.y: Replace "parse_language" with method call.
3154 (yylex): Replace "parse_language" with method call.
3156 (yylex): Replace "parse_language" with method call.
3157 * go-exp.y (classify_name): Replace "parse_language" with method
3159 * f-exp.y (yylex): Replace "parse_language" with method call.
3160 * d-exp.y (lex_one_token): Replace "parse_language" with method
3163 (lex_one_token, classify_name, yylex): Replace "parse_language"
3165 * ada-exp.y (find_primitive_type, type_char)
3166 (type_system_address): Replace "parse_language" with method call.
3168 2019-04-04 Tom Tromey <tom@tromey.com>
3170 * rust-exp.y: Replace "parse_gdbarch" with method call.
3171 * parse.c (write_dollar_variable, insert_type_address_space):
3172 Replace "parse_gdbarch" with method call.
3173 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3175 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3177 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3178 "parse_gdbarch" with method call.
3179 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3181 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3182 "parse_gdbarch" with method call.
3183 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3184 "parse_gdbarch" with method call.
3185 * c-exp.y (parse_type, parse_number, classify_name): Replace
3186 "parse_gdbarch" with method call.
3187 * ada-lex.l: Replace "parse_gdbarch" with method call.
3188 * ada-exp.y (parse_type, find_primitive_type, type_char)
3189 (type_system_address): Replace "parse_gdbarch" with method call.
3191 2019-04-04 Tom Tromey <tom@tromey.com>
3193 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3194 * stap-probe.c (stap_parse_argument): Update.
3195 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3196 initial_size parameter.
3197 * rust-exp.y (rust_lex_tests): Update.
3198 * parse.c (parser_state): Update.
3199 (parse_exp_in_context): Update.
3200 * parser-defs.h (struct parser_state) <parser_state>: Remove
3201 "initial_size" parameter.
3203 2019-04-04 Tom Tromey <tom@tromey.com>
3205 * parser-defs.h (increase_expout_size): Don't declare.
3206 * parse.c (increase_expout_size): Now static.
3208 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3210 * gnu-nat.c (gnu_nat_target::wait): Fix
3211 target_waitstatus_to_string call.
3213 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3215 * eval.c (evaluate_subexp_standard): Handle internal functions
3216 during Fortran function call handling.
3218 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3220 * NEWS: Mention new internal functions.
3221 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3222 (read_base_type): Use dwarf2_init_complex_target_type.
3223 * value.c (creal_internal_fn): New function.
3224 (cimag_internal_fn): New function.
3225 (_initialize_values): Register new internal functions.
3227 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3229 * infrun.c (stop_all_threads): If debug_infrun, always
3230 trace the wait status after wait_one, using
3231 target_waitstatus_to_string and target_pid_to_str.
3232 (handle_inferior_event): Replace various trace of
3233 wait status kind by a single trace.
3234 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3235 wait status kind image by target_waitstatus_to_string.
3236 * target/waitstatus.c (target_waitstatus_to_string): Fix
3239 2019-04-01 Tom Tromey <tromey@adacore.com>
3242 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3244 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3245 Pedro Alves <palves@redhat.com>
3247 * top.c (quit_force): Call 'finalize_values'.
3248 * value.c (finalize_values): New function.
3249 * value.h (finalize_values): Declare.
3251 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3253 * NEWS: Announce $_gdb_major and $_gdb_minor.
3255 * top.c (init_gdb_version_vars): New function.
3256 (gdb_init): Call init_gdb_version_vars.
3258 2019-03-29 Tom Tromey <tromey@adacore.com>
3260 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3261 help text. Remove dead code.
3263 2019-03-29 Keith Seitz <keiths@redhat.com>
3265 From Siddhesh Poyarekar:
3266 * f-lang.h (f77_get_upperbound): Return LONGEST.
3267 (f77_get_lowerbound): Likewise.
3268 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3269 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3271 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3272 plongest to format print it.
3273 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3274 (f77_get_upperbound): Likewise.
3275 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3276 LOWER_BOUND to LONGEST.
3277 (f77_create_arrayprint_offset_tbl): Likewise.
3279 2019-03-29 Keith Seitz <keiths@redhat.com>
3281 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3282 %s/pulongest for TYPE_LENGTH instead of %d in format
3284 * ada-typerint.c (ada_print_type): Likewise.
3285 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3286 * compile/compile-c-support.c (generate_register_struct): Likewise.
3287 * gdbtypes.c (recursive_dump_type): Likewise.
3288 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3289 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3290 instead of %d in format strings.
3291 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3292 to std::min to ULONGEST.
3293 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3294 instead of %d in format strings.
3295 * tracepoint.c (info_scope_command): Likewise.
3296 * typeprint.c (print_offset_data::update)
3297 (print_offset_data::finish): Likewise.
3298 * xtensa-tdep.c (xtensa_store_return_value)
3299 (xtensa_push_dummy_call): Likewise.
3301 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3303 * windows-nat.c (display_selector): Fixed format specifications
3306 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3308 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3310 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3312 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3313 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3314 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3315 (nios2_linux_init_abi): Install it.
3317 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3319 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3321 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3323 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3325 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3326 Tom Tromey <tromey@adacore.com>
3328 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3330 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3332 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3333 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3334 method to compute the bounds of range types. Also print "[evaluated]"
3335 if the bounds' values come from a dynamic evaluation.
3337 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3339 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3340 whitespace when pretty printing is on.
3342 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3344 * ppc-linux-nat.c: Add include.
3346 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3348 * NEWS: Mention AArch64 Pointer Authentication.
3350 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3352 * arm-linux-nat.c: Add include.
3354 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3356 * source-cache.c (source_cache::get_source_lines): Re-read
3357 fullname after calling open_source_file.
3359 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3361 * NEWS: Mention TLS support for FreeBSD.
3363 2019-03-25 Tom Tromey <tromey@adacore.com>
3365 * minsyms.c (BUNCH_SIZE): Update comment.
3366 (~minimal_symbol_reader): Remove old comment.
3367 (compact_minimal_symbols): Update comment.
3368 (minimal_symbol_reader::install): Remove old comment. Update
3371 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3373 * s390-linux-nat.c: Add include.
3375 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3377 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3378 Call linux_get_hwcap.
3379 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3381 (aarch64_linux_get_hwcap): Remove function.
3382 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3384 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3386 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3387 * linux-tdep.c (linux_get_hwcap): Add function.
3388 (linux_get_hwcap2): Likewise.
3389 * linux-tdep.h (linux_get_hwcap): Add declaration.
3390 (linux_get_hwcap2): Likewise.
3391 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3392 (ppc_linux_get_hwcap2): Likewise.
3393 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3395 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3396 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3397 (ppc_linux_nat_target::read_description): Likewise.
3398 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3399 * s390-linux-nat.c: Likewise.
3400 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3402 2019-03-24 Tom Tromey <tom@tromey.com>
3404 * ada-lang.c (standard_lookup): Simplify initialization.
3405 (ada_lookup_symbol_nonlocal): Simplify return.
3406 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3407 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3408 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3409 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3411 * solib.c (solib_global_lookup): Simplify.
3412 * symtab.c (null_block_symbol): Remove.
3413 (symbol_cache_lookup): Simplify returns.
3414 (lookup_language_this): Simplify returns.
3415 (lookup_symbol_aux): Simplify return.
3416 (lookup_local_symbol): Simplify returns.
3417 (lookup_global_symbol_from_objfile): Simplify return.
3418 (lookup_symbol_in_objfile_symtabs)
3419 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3420 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3421 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3422 * cp-namespace.c (cp_lookup_bare_symbol)
3423 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3424 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3425 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3426 (cp_lookup_symbol_via_imports): Simplify initialization.
3427 (find_symbol_in_baseclass): Likewise.
3428 * symtab.h (null_block_symbol): Remove.
3429 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3430 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3431 (d_lookup_symbol_module): Likewise.
3432 (find_symbol_in_baseclass): Simplify initialization.
3434 2019-03-24 Tom Tromey <tom@tromey.com>
3436 * expression.h: Don't include symtab.h.
3437 (struct block): Forward declare.
3439 2019-03-24 Tom Tromey <tom@tromey.com>
3441 * c-exp.y (typebase): Remove casts.
3442 * gdbtypes.c (lookup_unsigned_typename, )
3443 (lookup_signed_typename): Remove cast.
3444 * eval.c (parse_to_comma_and_eval): Remove cast.
3445 * parse.c (write_dollar_variable): Remove cast.
3446 * block.h (struct block) <superblock>: Now const.
3447 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3448 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3449 (map_block): Make "block" const.
3450 * symfile.h (struct quick_symbol_functions)
3451 <map_matching_symbols>: Constify block argument to "callback".
3452 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3454 (find_pc_sect_compunit_symtab): Make "b" const.
3455 (find_symbol_at_address): Likewise.
3456 (search_symbols): Likewise.
3457 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3458 (dw2_debug_names_lookup_symbol): Likewise.
3459 (dw2_map_matching_symbols): Update.
3460 * p-valprint.c (pascal_val_print): Remove "block".
3461 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3462 (aux_add_nonlocal_symbols): Make "block" const.
3463 (resolve_subexp): Remove cast.
3464 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3466 (iterate_over_file_blocks): Likewise.
3467 * f-exp.y (%union) <bval>: Remove.
3468 * coffread.c (patch_opaque_types): Make "b" const.
3469 * spu-tdep.c (spu_catch_start): Make "block" const.
3470 * c-valprint.c (print_unpacked_pointer): Remove "block".
3471 * symmisc.c (dump_symtab_1): Make "b" const.
3472 (block_depth): Make "block" const.
3473 * d-exp.y (%union) <bval>: Remove.
3474 * cp-support.h (cp_lookup_rtti_type): Update.
3475 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3476 * psymtab.c (psym_lookup_symbol): Make "block" const.
3477 (maintenance_check_psymtabs): Make "b" const.
3478 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3479 (enumerate_locals, enumerate_args): Update.
3480 * python/py-symtab.c (stpy_global_block): Make "block" const.
3481 (stpy_static_block): Likewise.
3482 * inline-frame.c (block_starting_point_at): Make "new_block"
3484 * block.c (find_block_in_blockvector): Make return type const.
3485 (blockvector_for_pc_sect): Make "b" const.
3486 (find_block_in_blockvector): Make "b" const.
3488 2019-03-23 Tom Tromey <tom@tromey.com>
3490 * varobj.c (varobj_create): Update.
3491 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3492 * printcmd.c (display_command, do_one_display): Don't reset
3494 * parser-defs.h (enum innermost_block_tracker_type): Move to
3496 (innermost_block): Update comment.
3497 * parse.c (parse_exp_1): Add tracker_types parameter.
3498 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3499 tracker_types parameter. Reset innermost_block.
3500 (parse_exp_in_context): Remove.
3501 (parse_expression_for_completion): Update.
3502 * objfiles.c (~objfile): Don't reset expression_context_block or
3504 * expression.h (enum innermost_block_tracker_type): Move from
3506 (parse_exp_1): Add tracker_types parameter.
3507 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3508 reset innermost_block.
3510 2019-03-23 Tom Tromey <tom@tromey.com>
3512 * objfiles.h: Include bcache.h.
3514 2019-03-23 Tom Tromey <tom@tromey.com>
3516 * linespec.c (get_current_search_block): Use
3517 scoped_restore_current_language.
3518 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3520 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3521 Jiong Wang <jiong.wang@arm.com>
3523 * aarch64-linux-tdep.c
3524 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3526 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3528 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3529 Jiong Wang <jiong.wang@arm.com>
3531 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3533 (aarch64_analyze_prologue_test): Add PACIASP test.
3534 (aarch64_prologue_prev_register): Unmask PC value.
3536 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3537 Jiong Wang <jiong.wang@arm.com>
3539 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3540 (aarch64_dwarf2_prev_register): Unmask PC value.
3541 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3542 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3543 DW_CFA_AARCH64_negate_ra_state.
3544 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3546 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3547 Jiong Wang <jiong.wang@arm.com>
3549 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3551 (aarch64_pseudo_register_name): Likewise.
3552 (aarch64_pseudo_register_type): Likewise.
3553 (aarch64_pseudo_register_reggroup_p): Likewise.
3554 (aarch64_gdbarch_init): Add pauth registers.
3555 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3556 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3557 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3558 (struct gdbarch_tdep): Add regnum for ra_state.
3560 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3561 Jiong Wang <jiong.wang@arm.com>
3563 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3565 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3566 Jiong Wang <jiong.wang@arm.com>
3568 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3570 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3571 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3572 (aarch64_gdbarch_init): Add puth registers.
3573 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3574 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3575 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3577 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3578 Jiong Wang <jiong.wang@arm.com>
3580 * aarch64-linux-nat.c
3581 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3582 * aarch64-linux-tdep.c
3583 (aarch64_linux_core_read_description): Likewise.
3584 (aarch64_linux_get_hwcap): New function.
3585 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3586 (aarch64_linux_get_hwcap): New declaration.
3588 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3589 Jiong Wang <jiong.wang@arm.com>
3591 * aarch64-linux-nat.c
3592 (aarch64_linux_nat_target::read_description): Add pauth param.
3593 * aarch64-linux-tdep.c
3594 (aarch64_linux_core_read_description): Likewise.
3595 * aarch64-tdep.c (struct target_desc): Add in pauth.
3596 (aarch64_read_description): Add pauth param.
3597 (aarch64_gdbarch_init): Likewise.
3598 * aarch64-tdep.h (aarch64_read_description): Likewise.
3599 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3600 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3601 * features/Makefile: Add new files.
3602 * features/aarch64-pauth.c: New file.
3603 * features/aarch64-pauth.xml: New file.
3605 2019-03-20 Tom Tromey <tromey@adacore.com>
3607 * infrun.c (handle_inferior_event): Rename from
3608 handle_inferior_event_1. Create a scoped_value_mark.
3609 (handle_inferior_event): Remove.
3611 2019-03-19 Tom Tromey <tromey@adacore.com>
3613 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3614 * infrun.h (print_stop_event): Add "displays" parameter.
3615 * infrun.c (print_stop_event): Add "displays" parameter.
3617 2019-03-19 Pedro Alves <palves@redhat.com>
3619 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3620 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3621 to -1. Fix TABs vs spaces.
3622 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3623 * tui/tui-out.h (tui_ui_out) Add intro comments.
3624 <m_line, m_start_of_line>: In-class initialize, and add describing
3627 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3629 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3631 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3633 2019-03-18 Pedro Alves <palves@redhat.com>
3634 Eli Zaretskii <eliz@gnu.org>
3636 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3637 m_line and m_start_of_line.
3639 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3641 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3642 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3643 it returns a newline. This fixes a regression in TU mode, whereby
3644 the next line is output on the same screen line as the user input.
3646 2019-03-18 Tom Tromey <tromey@adacore.com>
3648 * minsyms.c (minimal_symbol_reader::install): Remove call to
3651 2019-03-18 Pedro Alves <palves@redhat.com>
3653 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3655 (apply_style): New, factored out from ...
3656 (apply_ansi_escape): ... this. Handle reverse video mode.
3657 (tui_set_reverse_mode): New function.
3658 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3659 * tui/tui-winsource.c (tui_show_source_line): Use
3660 tui_set_reverse_mode instead of setting A_STANDOUT.
3661 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3664 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3666 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3669 2019-03-18 Tom Tromey <tromey@adacore.com>
3671 * ada-lang.c (empty_array): Add "high" parameter.
3672 (ada_evaluate_subexp): Update.
3674 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3676 * unittests/string_view-selftests.c: Define
3677 _initialize_string_view_selftests unconditionally.
3679 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3682 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3684 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3687 * windows-nat.c (display_selector): Fix format specifiers.
3689 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3691 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3692 tui_refill_source_window instead of tui_refresh_win, to update the
3693 current execution line. This fixes redisplay of the current line
3694 when stepping through the code with "next" or "step".
3696 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3698 * source-cache.c (source_cache::get_source_lines): Call
3699 find_source_lines to initialize s->nlines. This fixes vertical
3700 scrolling of TUI source window when the DOWN arrow is pressed.
3702 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3704 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3705 linux-thread-db.c (_initialize_thread_db): Likewise.
3707 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3709 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3710 wclrtoeol in tui_show_source_line". This reverts changes made in
3711 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3713 2019-03-15 Tom Tromey <tom@tromey.com>
3715 * symtab.h (struct minimal_symbol): Derive from
3716 general_symbol_info.
3717 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3718 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3719 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3720 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3721 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3722 (MSYMBOL_SEARCH_NAME): Update.
3723 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3724 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3725 * minsyms.c (minimal_symbol_reader::record_full): Update.
3727 2019-03-15 Tom Tromey <tom@tromey.com>
3729 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3731 2019-03-15 Tom Tromey <tom@tromey.com>
3733 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3735 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3737 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3738 (build_minimal_symbol_hash_tables)
3739 (minimal_symbol_reader::install): Update.
3741 2019-03-15 Tom Tromey <tom@tromey.com>
3743 * symtab.c (create_demangled_names_hash): Update.
3744 (symbol_set_names): Update.
3745 * objfiles.h (struct objfile_per_bfd_storage)
3746 <demangled_names_hash>: Now an htab_up.
3747 * objfiles.c (objfile_per_bfd_storage): Simplify.
3749 2019-03-15 Tom Tromey <tom@tromey.com>
3751 * objfiles.h (struct objfile_per_bfd_storage): Declare
3753 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3755 (get_objfile_bfd_data): Use new. Don't initialize
3757 (free_objfile_per_bfd_storage): Remove.
3758 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3760 2019-03-15 Tom Tromey <tom@tromey.com>
3762 * symfile.c (reread_symbols): Update.
3763 * objfiles.c (objfile::objfile): Update.
3764 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3765 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3767 (minimal_symbol_reader::install): Update.
3768 (terminate_minimal_symbol_table): Remove.
3769 * jit.c (jit_object_close_impl): Update.
3771 2019-03-15 Tom Tromey <tom@tromey.com>
3773 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3776 2019-03-15 Tom Tromey <tom@tromey.com>
3778 * objfiles.h (struct objfile_per_bfd_storage)
3779 <demangled_hash_languages>: Now a bitset.
3780 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3781 (lookup_minimal_symbol): Update.
3783 2019-03-15 Tom Tromey <tom@tromey.com>
3785 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3786 Don't return the symbol.
3787 * coffread.c (record_minimal_symbol): Use record_full.
3789 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3791 The MS-Windows port of ncurses fails to switch to a color pair if
3792 one or both of the colors are the implicit default colors. This
3793 change records the default colors when TUI is initialized, and
3794 then specifies them explicitly when a color pair uses the default
3795 colors. This allows color styling in TUI mode on MS-Windows.
3797 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3799 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3800 colors in ncurses_norm_attr.
3801 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3802 "none", replace it with the default color recorded in
3805 2019-03-14 Tom Tromey <tromey@adacore.com>
3807 * source-cache.h (class source_cache) <get_source_lines>: Return
3809 * source-cache.c (source_cache::extract_lines): Handle case where
3810 first_pos==npos. Return std::string.
3811 (source_cache::get_source_lines): Update.
3813 2019-03-14 Tom Tromey <tromey@adacore.com>
3815 * NEWS: Add item for "style sources" commands.
3816 * source-cache.c (source_cache::get_source_lines): Check
3818 * cli/cli-style.c (source_styling): New global.
3819 (_initialize_cli_style): Add "style sources" commands.
3820 (show_style_sources): New function.
3821 * cli/cli-style.h (source_styling): Declare.
3823 2019-03-14 Pedro Alves <palves@redhat.com>
3824 Tom Tromey <tromey@adacore.com>
3826 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3827 * tui/tui-winsource.c (tui_refill_source_window): New function,
3829 (tui_horizontal_source_scroll): ... here. Move some logic.
3830 * cli/cli-style.c (set_style_enabled): Notify new observable.
3831 * tui/tui-hooks.c (tui_redisplay_source): New function.
3832 (tui_attach_detach_observers): Attach or detach
3833 tui_redisplay_source.
3834 * observable.h (source_styling_changed): New observable.
3835 * observable.c: Define source_styling_changed observable.
3837 2019-03-13 Tom Tromey <tromey@adacore.com>
3839 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3840 (i386_gnu_nat_target::store_registers): Update.
3841 * target-debug.h (target_debug_print_std_string): New macro.
3842 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3843 * windows-tdep.c (display_one_tib): Update.
3844 * tui/tui-stack.c (tui_make_status_line): Update.
3845 * top.c (print_inferior_quit_action): Update.
3846 * thread.c (thr_try_catch_cmd): Update.
3847 (add_thread_with_info): Update.
3848 (thread_target_id_str): Update.
3849 (thr_try_catch_cmd): Update.
3850 (thread_command): Update.
3851 (thread_find_command): Update.
3852 * record-btrace.c (record_btrace_target::info_record)
3853 (record_btrace_resume_thread, record_btrace_target::resume)
3854 (record_btrace_cancel_resume, record_btrace_step_thread)
3855 (record_btrace_target::wait, record_btrace_target::wait)
3856 (record_btrace_target::wait, record_btrace_target::stop): Update.
3857 * progspace.c (print_program_space): Update.
3858 * process-stratum-target.c
3859 (process_stratum_target::thread_address_space): Update.
3860 * linux-fork.c (linux_fork_mourn_inferior)
3861 (detach_checkpoint_command, info_checkpoints_command)
3862 (linux_fork_context): Update.
3863 (linux_fork_detach): Update.
3864 (class scoped_switch_fork_info): Update.
3865 (delete_checkpoint_command): Update.
3866 * infrun.c (follow_fork_inferior): Update.
3867 (follow_fork_inferior): Update.
3868 (proceed_after_vfork_done): Update.
3869 (handle_vfork_child_exec_or_exit): Update.
3870 (follow_exec): Update.
3871 (displaced_step_prepare_throw): Update.
3872 (displaced_step_restore): Update.
3873 (start_step_over): Update.
3875 (clear_proceed_status_thread): Update.
3877 (print_target_wait_results): Update.
3878 (do_target_wait): Update.
3879 (context_switch): Update.
3880 (stop_all_threads): Update.
3881 (restart_threads): Update.
3882 (finish_step_over): Update.
3883 (handle_signal_stop): Update.
3884 (switch_back_to_stepped_thread): Update.
3885 (keep_going_pass_signal): Update.
3886 (print_exited_reason): Update.
3887 (normal_stop): Update.
3888 * inferior.c (inferior_pid_to_str): Change return type.
3889 (print_selected_inferior): Update.
3890 (add_inferior): Update.
3891 (detach_inferior): Update.
3892 * dummy-frame.c (fprint_dummy_frames): Update.
3893 * dcache.c (dcache_info_1): Update.
3894 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3895 (btrace_fetch, btrace_clear): Update.
3896 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3897 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3899 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3900 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3901 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3902 * gdbarch.c, gdbarch.h: Rebuild.
3903 * gdbarch.sh (core_pid_to_str): Change return type.
3904 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3906 (windows_nat_target::pid_to_str): Change return type.
3907 (windows_delete_thread): Update.
3908 (windows_nat_target::attach): Update.
3909 (windows_nat_target::files_info): Update.
3910 * target-delegates.c: Rebuild.
3911 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3913 (sol_thread_target::pid_to_str): Change return type.
3914 * remote.c (class remote_target) <pid_to_str>: Change return
3916 (remote_target::pid_to_str): Change return type.
3917 (extended_remote_target::attach, remote_target::remote_stop_ns)
3918 (remote_target::remote_notif_remove_queued_reply)
3919 (remote_target::push_stop_reply, remote_target::disable_btrace):
3921 (extended_remote_target::attach): Update.
3922 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3924 (gdbsim_target::pid_to_str): Change return type.
3925 * ravenscar-thread.c (struct ravenscar_thread_target)
3926 <pid_to_str>: Change return type.
3927 (ravenscar_thread_target::pid_to_str): Change return type.
3928 * procfs.c (class procfs_target) <pid_to_str>: Change return
3930 (procfs_target::pid_to_str): Change return type.
3931 (procfs_target::attach): Update.
3932 (procfs_target::detach): Update.
3933 (procfs_target::fetch_registers): Update.
3934 (procfs_target::store_registers): Update.
3935 (procfs_target::wait): Update.
3936 (procfs_target::files_info): Update.
3937 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3938 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3940 (nto_procfs_target::pid_to_str): Change return type.
3941 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3942 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3944 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3946 (attach_proc_task_lwp_callback, get_detach_signal)
3947 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3948 (linux_nat_target::resume, wait_lwp, stop_callback)
3949 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3950 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3951 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3952 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3953 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3955 (inf_ptrace_target::attach): Update.
3956 (inf_ptrace_target::files_info): Update.
3957 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3959 (go32_nat_target::pid_to_str): Change return type.
3960 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3961 (gnu_nat_target::wait): Update.
3962 (gnu_nat_target::wait): Update.
3963 (gnu_nat_target::resume): Update.
3964 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3965 (fbsd_nat_target::wait): Update.
3966 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3968 (darwin_nat_target::attach): Update.
3969 * corelow.c (class core_target) <pid_to_str>: Change return type.
3970 (core_target::pid_to_str): Change return type.
3971 * target.c (normal_pid_to_str): Change return type.
3972 (default_pid_to_str): Likewise.
3973 (target_pid_to_str): Change return type.
3974 (target_translate_tls_address): Update.
3975 (target_announce_detach): Update.
3976 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3978 (bsd_uthread_target::pid_to_str): Change return type.
3979 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3981 (bsd_kvm_target::pid_to_str): Change return type.
3982 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3984 (aix_thread_target::pid_to_str): Change return type.
3985 * target.h (struct target_ops) <pid_to_str>: Change return type.
3986 (target_pid_to_str, normal_pid_to_str): Likewise.
3987 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3989 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3991 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3993 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3995 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3997 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4000 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4002 * NEWS: Mention that the new default MI version is 3. Mention
4003 changes to the output of commands and events that deal with
4004 multi-location breakpoints.
4005 * breakpoint.c: Include "mi/mi-out.h".
4006 (print_one_breakpoint): Change output syntax if using MI version
4008 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4010 (mi_multi_location_breakpoint_output_fixed): New.
4011 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4012 (mi_cmd_fix_multi_location_breakpoint_output): New.
4013 (mi_multi_location_breakpoint_output_fixed): New.
4014 * mi/mi-cmds.c (mi_cmds): Register command
4015 -fix-multi-location-breakpoint-output.
4016 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4019 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4021 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4022 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4023 instantiate mi_ui_out based on interpreter name.
4024 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4025 * mi/mi-main.c (mi_load_progress): Likewise.
4027 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4029 * NEWS: Combine separate "New targets" sections for 8.3.
4031 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4033 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4034 (ppcfbsd_init_abi): Install gdbarch
4035 "fetch_tls_load_module_address" and "get_thread_local_address"
4038 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4040 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4041 (riscv_fbsd_init_abi): Install gdbarch
4042 "fetch_tls_load_module_address" and "get_thread_local_address"
4045 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4047 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4048 (i386fbsd_init_abi): Install gdbarch
4049 "fetch_tls_load_module_address" and "get_thread_local_address"
4052 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4054 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4055 (amd64fbsd_init_abi): Install gdbarch
4056 "fetch_tls_load_module_address" and "get_thread_local_address"
4059 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4061 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4062 (struct fbsd_pspace_data): New type.
4063 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4064 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4065 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4066 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4067 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4069 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4071 * gdbtypes.c (lookup_struct_elt): New function.
4072 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4073 * gdbtypes.h (struct struct_elt): New type.
4074 (lookup_struct_elt): New prototype.
4076 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4078 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4079 remove disabled code block.
4081 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4083 * gdbarch.sh (get_thread_local_address): New method.
4084 * gdbarch.h, gdbarch.c: Regenerate.
4085 * target.c (target_translate_tls_address): Use
4086 gdbarch_get_thread_local_address if present instead of
4087 target::get_thread_local_address.
4089 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4091 * target.h (target::get_thread_local_address): Update comment.
4093 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4095 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4096 objfile->separate_debug_objfile_backlink if not NULL.
4098 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4100 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4101 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4102 (amd64bsd_store_inferior_registers): Likewise.
4103 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4104 Enable segment base registers.
4105 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4106 PT_GETFSBASE and PT_GETGSBASE.
4107 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4109 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4110 segment base registers.
4111 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4113 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4115 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4116 Update calls to i386_target_description to add 'segments'
4118 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4119 add segment base registers.
4120 * arch/i386.c (i386_create_target_description): Add 'segments'
4121 parameter to enable segment base registers.
4122 * arch/i386.h (i386_create_target_description): Likewise.
4123 * features/i386/32bit-segments.xml: New file.
4124 * features/i386/32bit-segments.c: Generate.
4125 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4126 call to i386_target_description to add 'segments' parameter.
4127 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4128 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4129 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4130 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4131 if feature is present.
4132 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4133 Add 'segments' parameter to call to i386_target_description.
4134 (i386_target_description): Add 'segments' parameter to enable
4135 segment base registers.
4136 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4137 to call to i386_target_description.
4138 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4139 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4140 Define I386_NUM_REGS.
4141 (i386_target_description): Add 'segments' parameter to enable
4142 segment base registers.
4144 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4147 * source-cache.c: #undef open and close, to avoid unresolved
4148 externals during linking.
4150 2019-03-12 Tom Tromey <tromey@adacore.com>
4152 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4153 const. Add initializers.
4154 (_initialize_remote): Don't initialize ptid globals.
4156 2019-03-12 Pedro Alves <palves@redhat.com>
4158 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4160 2019-03-12 Pedro Alves <palves@redhat.com>
4162 * cp-name-parser.y (main): Remove unused 'len' variable.
4164 2019-03-12 Tom Tromey <tromey@adacore.com>
4166 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4167 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4169 2019-03-12 Tom Tromey <tromey@adacore.com>
4171 * linux-nat.c (iterate_over_lwps): Update.
4172 (stop_callback): Remove parameter.
4173 (stop_wait_callback, detach_callback, resume_set_callback)
4174 (select_singlestep_lwp_callback, set_ignore_sigint)
4175 (status_callback, resumed_callback, resume_clear_callback)
4176 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4178 (linux_nat_target::detach, linux_nat_target::resume)
4179 (linux_stop_and_wait_all_lwps, select_event_lwp)
4180 (linux_nat_filter_event, linux_nat_wait_1)
4181 (linux_nat_target::kill, linux_nat_target::stop)
4182 (linux_nat_target::stop): Update.
4183 (linux_nat_resume_callback): Change type.
4184 (resume_stopped_resumed_lwps, count_events_callback)
4185 (select_event_lwp_callback): Likewise.
4186 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4187 * arm-linux-nat.c (struct update_registers_data): Remove.
4188 (update_registers_callback): Change type.
4189 (arm_linux_insert_hw_breakpoint1): Update.
4190 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4192 (x86_linux_dr_set_addr): Update.
4193 (x86_linux_dr_set_control): Update.
4194 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4195 (iterate_over_lwps): Use gdb::function_view.
4196 * nat/aarch64-linux-hw-point.c (struct
4197 aarch64_dr_update_callback_param): Remove.
4198 (debug_reg_change_callback): Change type.
4199 (aarch64_notify_debug_reg_change): Update.
4200 * s390-linux-nat.c (s390_refresh_per_info): Update.
4202 2019-03-11 Tom Tromey <tromey@adacore.com>
4204 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4205 redundant assignment to "this_cu".
4207 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4209 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4211 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4213 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4215 (rank_one_type): ... this.
4217 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4219 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4221 (rank_one_type): ... this.
4223 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4225 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4227 (rank_one_type): ... this.
4229 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4231 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4233 (rank_one_type): ... this.
4235 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4237 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4239 (rank_one_type): ... this.
4241 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4243 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4245 (rank_one_type): ... this.
4247 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4249 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4251 (rank_one_type): ... this.
4253 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4255 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4257 (rank_one_type): ... this.
4259 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4261 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4263 (rank_one_type): ... this.
4265 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4267 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4269 (rank_one_type): ... this.
4271 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4273 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4275 (rank_one_type): ... this.
4277 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4279 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4281 (rank_one_type): ... this.
4283 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4285 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4286 inferior-events' shows the example events.
4288 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4290 Support styling on native MS-Windows console
4293 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4294 on MS-Windows if $TERM is not defined.
4296 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4298 * posix-hdep.c (gdb_console_fputs):
4299 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4301 * ui-file.h (gdb_console_fputs): Add prototype.
4303 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4304 back to fputs only if the former returns zero.
4306 2019-03-07 Tom Tromey <tom@tromey.com>
4308 * symmisc.c (print_symbol_bcache_statistics): Update.
4309 (print_objfile_statistics): Update.
4310 * symfile.c (allocate_symtab): Update.
4311 * stabsread.c: Don't include bcache.h.
4312 * psymtab.h (struct psymbol_bcache): Don't declare.
4313 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4314 (psymbol_bcache_init, psymbol_bcache_free)
4315 (psymbol_bcache_get_bcache): Don't declare.
4316 * psymtab.c (struct psymbol_bcache): Remove.
4317 (psymtab_storage::psymtab_storage): Update.
4318 (psymtab_storage::~psymtab_storage): Update.
4319 (psymbol_bcache_init, psymbol_bcache_free)
4320 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4321 (add_psymbol_to_bcache): Update.
4322 (allocate_psymtab): Update.
4323 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4324 macro_cache>: No longer pointers.
4325 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4326 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4327 * macrotab.c (macro_bcache): Update.
4328 * macroexp.c: Don't include bcache.h.
4329 * gdbtypes.c (check_types_worklist): Update.
4330 (types_deeply_equal): Remove TRY/CATCH. Update.
4331 * elfread.c (elf_symtab_read): Update.
4332 * dwarf2read.c: Don't include bcache.h.
4333 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4334 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4335 (print_bcache_statistics, bcache_memory_used): Don't declare.
4336 (struct bcache): Move from bcache.c. Add constructor, destructor,
4337 methods. Rename all data members.
4338 * bcache.c (struct bcache): Move to bcache.h.
4339 (bcache::expand_hash_table): Rename from expand_hash_table.
4341 (bcache::insert): Rename from bcache_full.
4342 (bcache::compare): Rename from bcache_compare.
4343 (bcache_xmalloc): Remove.
4344 (bcache::~bcache): Rename from bcache_xfree.
4345 (bcache::print_statistics): Rename from print_bcache_statistics.
4346 (bcache::memory_used): Rename from bcache_memory_used.
4348 2019-03-07 Pedro Alves <palves@redhat.com>
4350 * infrun.c (normal_stop): Also check for
4351 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4353 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4355 * f-lang.c (value_from_host_double): Moved to...
4356 * value.c (value_from_host_double): ...here.
4357 * value.h (value_from_host_double): Declare.
4358 * guile/scm-math.c (vlscm_convert_typed_number): Use
4359 value_from_host_double.
4360 (vlscm_convert_number): Likewise.
4361 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4362 * python/py-value.c (convert_value_from_python): Likewise.
4364 2019-03-06 Tom Tromey <tom@tromey.com>
4366 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4368 2019-03-06 Tom Tromey <tom@tromey.com>
4370 * utils.h (free_current_contents): Don't declare.
4371 * utils.c (free_current_contents): Remove.
4373 2019-03-06 Tom Tromey <tom@tromey.com>
4375 * top.c (quit_force): Update.
4376 * main.c (captured_command_loop): Update.
4377 * common/new-op.c (operator new): Update.
4378 * common/common-exceptions.c (struct catcher)
4379 <save_cleanup_chain>: Remove member.
4380 (exceptions_state_mc_init): Update.
4381 (exception_try_scope_entry): Return nullptr.
4382 (exception_try_scope_exit, exception_rethrow)
4383 (throw_exception_sjlj, throw_exception_cxx): Update.
4384 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4385 (all_cleanups, do_cleanups, discard_cleanups)
4386 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4387 (restore_cleanups, restore_final_cleanups): Don't declare.
4388 (do_final_cleanups): Remove parameter.
4389 * common/cleanups.c (cleanup_chain, make_cleanup)
4390 (make_cleanup_dtor, all_cleanups, do_cleanups)
4391 (discard_my_cleanups, discard_cleanups)
4392 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4393 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4394 (null_cleanup): Remove.
4395 (do_final_cleanups): Remove parameter.
4397 2019-03-06 Tom Tromey <tom@tromey.com>
4399 * remote.c (remote_target::remote_parse_stop_reply): Use
4402 2019-03-06 Tom Tromey <tom@tromey.com>
4404 * stabsread.c (struct stabs_field_info): Rename from field_info.
4405 <list, fnlist>: Add initializers.
4406 <obstack>: New member.
4407 (read_member_functions, read_struct_fields, read_baseclasses):
4408 Allocate on obstack. Don't use cleanups.
4409 (read_one_struct_field, read_member_functions, read_struct_fields)
4410 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4411 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4412 (read_struct_type): Update.
4414 2019-03-06 Tom Tromey <tom@tromey.com>
4416 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4417 * common/filestuff.h (make_cleanup_close): Don't declare.
4418 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4421 2019-03-06 Tom Tromey <tom@tromey.com>
4423 * solib-aix.c: Use make_scope_exit.
4425 2019-03-06 Tom Tromey <tom@tromey.com>
4427 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4428 Use make_scope_exit.
4430 2019-03-06 Tom Tromey <tom@tromey.com>
4432 * solib-svr4.c (disable_probes_interface): Remove parameter.
4433 (svr4_handle_solib_event): Use make_scope_exit.
4435 2019-03-06 Tom Tromey <tom@tromey.com>
4437 * remote.c (struct stop_reply_deleter): Remove.
4438 (stop_reply_up): Update.
4439 (struct stop_reply): Derive from notif_event. Don't typedef.
4440 <regcache>: Now a std::vector.
4441 (stop_reply_xfree): Remove.
4442 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4443 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4444 (remote_target::discard_pending_stop_replies): Use delete.
4445 (remote_target::remote_parse_stop_reply): Update.
4446 (remote_target::process_stop_reply): Update.
4447 * remote-notif.h (struct notif_event): Add virtual destructor.
4448 Remove "dtr" member.
4449 (struct notif_client) <alloc_event>: Return a unique_ptr.
4450 (notif_event_xfree): Don't declare.
4451 (notif_event_up): New typedef.
4452 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4453 (notif_event_xfree, do_notif_event_xfree): Remove.
4454 (remote_notif_state_xfree): Update.
4456 2019-03-06 Tom Tromey <tom@tromey.com>
4458 * infrun.c (displaced_step_clear_cleanup): Now a
4459 forward_scope_exit type.
4460 (displaced_step_prepare_throw): Update.
4461 (displaced_step_fixup): Update.
4463 2019-03-06 Tom Tromey <tom@tromey.com>
4465 * inferior.h (class inferior): Update comment.
4466 * gdbthread.h (class thread_info): Update comment.
4468 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4469 Tom Tromey <tom@tromey.com>
4471 * stabsread.h (struct stab_section_list): Remove.
4472 (coffstab_build_psymtabs): Update.
4473 * dbxread.c (symbuf_sections): Now a std::vector.
4474 (sect_idx): New global.
4475 (fill_symbuf): Update.
4476 (coffstab_build_psymtabs): Change type of stabsects parameter.
4478 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4480 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4481 (coff_locate_sections): Update.
4482 (coff_symfile_read): Remove cleanups. Update.
4483 (init_stringtab): Add storage parameter.
4484 (free_stringtab, free_stringtab_cleanup): Remove.
4485 (init_lineno): Add storage parameter.
4486 (free_linetab, free_linetab_cleanup): Remove.
4488 2019-03-06 Pedro Alves <palves@redhat.com>
4490 * linux-fork.c (fork_info::clobber_regs): Delete.
4491 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4492 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4494 (scoped_switch_fork_info::scoped_switch_fork_info)
4495 (checkpoint_command, linux_fork_context): Adjust
4496 fork_save_infrun_state calls.
4498 2019-03-06 Pedro Alves <palves@redhat.com>
4500 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4501 (inf_has_multiple_threads): Return 'bool' and rewrite using
4502 inferior_info::threads().
4504 2019-03-06 Pedro Alves <palves@redhat.com>
4506 * linux-fork.c: Include <list>.
4507 (fork_list): Now a std::list instance.
4508 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4509 (forks_exist_p, find_last_fork): Adjust.
4513 (free_fork): Delete, folded into fork_info::~fork_info().
4514 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4516 (init_fork_list): Delete.
4517 (linux_fork_killall, linux_fork_mourn_inferior)
4518 (linux_fork_detach, info_checkpoints_command): Adjust.
4519 (_initialize_linux_fork): No longer call init_fork_list.
4521 2019-03-06 Pedro Alves <palves@redhat.com>
4523 * linux-fork.c (new_fork): New, split out of ...
4524 (add_fork): ... this. Return void. Move "first fork" special
4525 case from here, to ...
4526 (checkpoint_command): ... here.
4527 * linux-linux.h (add_fork): Return void.
4529 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4531 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4533 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4534 Chris January <chris.january@arm.com>
4535 David Lecomber <david.lecomber@arm.com>
4537 * f-exp.y: New token, UNOP_INTRINSIC.
4538 (exp): New pattern using UNOP_INTRINSIC token.
4539 (f77_keywords): Add 'abs' keyword.
4540 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4541 (value_from_host_double): New function.
4542 (evaluate_subexp_f): Support UNOP_ABS.
4544 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4546 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4549 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4551 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4552 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4553 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4555 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4557 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4559 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4560 Chris January <chris.january@arm.com>
4562 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4563 * f-exp.y: Define 'KIND' token.
4564 (exp): New pattern for KIND expressions.
4565 (ptype): Handle types with a kind extension.
4566 (direct_abs_decl): Extend to spot kind extensions.
4567 (f77_keywords): Add 'kind' to the list.
4568 (push_kind_type): New function.
4569 (convert_to_kind_type): New function.
4570 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4571 * parse.c (operator_length_standard): Likewise.
4572 * parser-defs.h (enum type_pieces): Add tp_kind.
4573 * std-operator.def: Add UNOP_KIND.
4575 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4577 * f-exp.y (f_parse): Set yydebug.
4579 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4581 * f-lang.c (evaluate_subexp_f): New function.
4582 (exp_descriptor_f): New global.
4583 (f_language_defn): Use exp_descriptor_f instead of
4584 exp_descriptor_standard.
4586 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4588 * f-exp.y (struct token): Add comments.
4589 (dot_ops): Remove uppercase versions and the end marker.
4590 (f77_keywords): Likewise.
4591 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4592 entries in the dot_ops array are case insensitive, and use
4593 strncasecmp to compare strings. Also some whitespace cleanup in
4594 this area. Similar for the f77_keywords array, except entries in
4595 this list might be case sensitive.
4597 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4599 * f-exp.y (struct f77_boolean_val): Add comments.
4600 (boolean_values): Remove uppercase versions, and end marker.
4601 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4602 and use strncasecmp to achieve case insensitivity. Additionally,
4603 perform whitespace cleanup around this code.
4605 2019-03-06 Tom Tromey <tromey@adacore.com>
4607 * remote-sim.c (gdbsim_target_open): Use result of
4610 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4611 Dirk Schubert <dirk.schubert@arm.com>
4612 Chris January <chris.january@arm.com>
4614 * eval.c (evaluate_subexp_standard): Call Fortran argument
4616 * f-lang.c (struct value): A value which can be passed into a
4617 Fortran function call.
4618 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4620 (struct type): Value ready for a Fortran function call.
4621 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4623 * f-lang.h (fortran_argument_convert): Declaration.
4624 (fortran_preserve_arg_pointer): Declaration.
4625 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4627 2019-03-05 Tom Tromey <tromey@adacore.com>
4629 * python/py-prettyprint.c (print_string_repr): Remove #if.
4630 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4632 2019-03-05 Tom Tromey <tromey@adacore.com>
4634 * target.c (the_dummy_target): Move later. Change type to
4636 (initialize_targets): Don't initialize the_dummy_target.
4638 2019-03-05 Tom Tromey <tromey@adacore.com>
4640 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4641 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4643 2019-03-05 Tom Tromey <tromey@adacore.com>
4645 * windows-nat.c (windows_nat_target::attach)
4646 (windows_nat_target::detach): Don't call gdb_flush.
4647 * valprint.c (generic_val_print, val_print, val_print_string):
4648 Don't call gdb_flush.
4649 * utils.c (defaulted_query): Don't call gdb_flush.
4650 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4651 * target.c (target_announce_detach): Don't call gdb_flush.
4652 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4653 * remote.c (extended_remote_target::attach): Don't call
4655 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4656 * printcmd.c (do_examine): Don't call gdb_flush.
4657 (info_display_command): Don't call gdb_flush.
4658 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4659 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4660 * memattr.c (info_mem_command): Don't call gdb_flush.
4661 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4662 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4663 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4664 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4665 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4666 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4667 (gnu_nat_target::detach): Don't call gdb_flush.
4668 * f-valprint.c (f_val_print): Don't call gdb_flush.
4669 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4670 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4671 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4673 * c-valprint.c (c_val_print): Don't call gdb_flush.
4674 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4676 2019-03-05 Tom Tromey <tromey@adacore.com>
4678 * varobj.c (update_dynamic_varobj_children): Update.
4679 (install_default_visualizer): Use reset, not release.
4680 * value.c (set_internalvar): Update.
4681 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4682 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4683 ATTRIBUTE_UNUSED_RESULT.
4685 2019-03-05 Tom Tromey <tromey@adacore.com>
4687 * remote.c (class scoped_remote_fd) <release>: Add
4688 ATTRIBUTE_UNUSED_RESULT.
4690 2019-03-05 Tom Tromey <tromey@adacore.com>
4692 * macroexp.c (struct macro_buffer) <release>: Add
4693 ATTRIBUTE_UNUSED_RESULT.
4695 2019-03-05 Tom Tromey <tromey@adacore.com>
4697 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4698 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4699 ATTRIBUTE_UNUSED_RESULT.
4701 2019-03-05 Tom Tromey <tromey@adacore.com>
4703 * common/scoped_fd.h (class scoped_fd) <release>: Add
4704 ATTRIBUTE_UNUSED_RESULT.
4706 2019-03-05 Tom Tromey <tromey@adacore.com>
4708 * parser-defs.h (struct parser_state) <release>: Add
4709 ATTRIBUTE_UNUSED_RESULT.
4711 2019-03-05 Tom Tromey <tromey@adacore.com>
4713 * utils.h (class gdb_argv) <release>: Add
4714 ATTRIBUTE_UNUSED_RESULT.
4715 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4717 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4719 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4720 for-loop range, to avoid compiler warnings.
4722 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4723 avoid compiler warnings about unused variables.
4725 * NEWS: Mention end of support for native debugging on MS-Windows
4729 * common/netstuff.c:
4730 * gdbserver/gdbreplay.c
4731 * gdbserver/remote-utils.c:
4733 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4734 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4735 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4736 'getaddrinfo' and 'freeaddrinfo' were not available before
4737 Windows XP, and mingw.org's MinGW headers by default define
4738 _WIN32_WINNT to 0x500.
4740 2019-03-01 Gary Benson <gbenson@redhat.com>
4742 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4744 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4745 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4748 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4749 set_sigint_trap, clear_sigint_trap.
4751 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4753 * target.c (target_detach): Clear the regcache and the
4756 2019-02-27 Pedro Alves <palves@redhat.com>
4758 * utils.c (set_screen_size): When we cap the height/width sizes,
4759 tweak the corresponding command variable to show "unlimited":
4761 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4762 Pedro Alves <palves@redhat.com>
4764 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4765 before calling rl_set_screen_size.
4767 2019-02-27 Tom Tromey <tromey@adacore.com>
4769 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4771 * python/py-value.c: Remove Python 2.4 workaround.
4772 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4774 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4775 Python 2.4 workaround.
4776 * python/python-internal.h: Remove Python 2.4 comment.
4777 (Py_ssize_t): Don't define.
4778 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4779 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4780 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4781 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4782 * python/python.c (do_start_initialization): Remove Python 2.4
4784 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4785 (print_children): Remove Python 2.4 workaround.
4786 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4788 (CHARBUFFERPROC_NAME): Remove.
4789 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4790 Python 2.4 workaround.
4792 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4794 * NEWS: Note minimum Python version.
4796 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4798 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4799 code from these functions. Remove corresponding ifdefs. Use
4800 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4801 Remove gotos and target of gotos.
4802 (infpy_search_memory): Likewise.
4804 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4806 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4807 (hppa_gdbarch_init): Don't register deleted functions with
4810 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4812 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4813 (h8300_unwind_sp): Delete.
4814 (h8300_dummy_id): Delete.
4815 (h8300_gdbarch_init): Don't register deleted functions with
4818 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4820 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4821 (ft32_unwind_pc): Delete.
4822 (ft32_unwind_sp): Delete.
4823 (ft32_gdbarch_init): Don't register deleted functions with
4826 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4828 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4829 (frv_unwind_pc): Delete.
4830 (frv_unwind_sp): Delete.
4831 (frv_gdbarch_init): Don't register deleted functions with
4834 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4836 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4837 (riscv_unwind_pc): Delete.
4838 (riscv_unwind_sp): Delete.
4839 (riscv_gdbarch_init): Don't register deleted functions with
4842 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4844 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4845 (csky_unwind_pc): Delete.
4846 (csky_unwind_sp): Delete.
4847 (csky_gdbarch_init): Don't register deleted functions with
4850 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4852 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4853 (cris_unwind_pc): Delete.
4854 (cris_unwind_sp): Delete.
4855 (cris_gdbarch_init): Don't register deleted functions with
4858 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4860 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4861 (bfin_unwind_pc): Delete.
4862 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4864 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4866 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4867 (arm_unwind_pc): Delete.
4868 (arm_unwind_sp): Delete.
4869 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4871 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4873 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4874 (arc_unwind_pc): Delete.
4875 (arc_unwind_sp): Delete.
4876 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4878 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4880 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4881 (alpha_unwind_pc): Delete.
4882 (alpha_gdbarch_init): Don't register deleted functions with
4885 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4887 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4888 (aarch64_unwind_pc): Delete.
4889 (aarch64_unwind_sp): Delete.
4890 (aarch64_gdbarch_init): Don't register deleted functions with
4893 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4895 * gdbtypes.c (type_align): Don't consider static members when
4896 computing structure alignment.
4898 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4900 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4901 return 0 for other types.
4902 * arch-utils.c (default_type_align): Always return 0.
4903 * gdbarch.h: Regenerate.
4904 * gdbarch.sh (type_align): Extend comment.
4905 * gdbtypes.c (type_align): Add additional comments, always call
4906 gdbarch_type_align before applying the default rules.
4907 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4908 generic code will then apply a suitable default.
4909 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4910 types, return 0 for other types.
4912 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4914 * NEWS: Create a new section for the next release branch.
4915 Rename the section of the current branch, now that it has
4918 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4920 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4921 * version.in: Bump version to 8.3.50.DATE-git.
4923 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4925 * aix-thread.c (ptid_cmp): Remove unused variable.
4926 (get_signaled_thread): Likewise.
4927 (store_regs_user_thread): Likewise.
4928 (store_regs_kernel_thread): Likewise.
4929 (fetch_regs_kernel_thread): Remove shadowed variable.
4931 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4933 * features/riscv/32bit-cpu.xml: Add register numbers.
4934 * features/riscv/32bit-fpu.c: Regenerate.
4935 * features/riscv/32bit-fpu.xml: Add register numbers.
4936 * features/riscv/64bit-cpu.xml: Add register numbers.
4937 * features/riscv/64bit-fpu.c: Regenerate.
4938 * features/riscv/64bit-fpu.xml: Add register numbers.
4940 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4942 * NEWS: Mention two argument form of gdb.Value constructor.
4943 * python/py-value.c (convert_buffer_and_type_to_value): New
4945 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4946 Add support for handling an optional second argument. Call
4947 convert_buffer_and_type_to_value as appropriate.
4948 * python/python-internal.h (Py_buffer_deleter): New struct.
4949 (Py_buffer_up): New typedef.
4951 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4953 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4954 instead of releasing ownership.
4956 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4958 * dwarf2read.c (open_and_init_dwp_file): Call
4959 elf_numsections instead of bfd_count_sections to initialize
4960 dwp_file->num_sections.
4962 2019-02-25 Tom Tromey <tromey@adacore.com>
4964 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4966 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4968 * gcore.in: Add '--readnever' option when invoking GDB.
4970 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4972 * MAINTAINERS: Update my email address.
4974 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4976 * build-id.c (build_id_to_debug_bfd_1): New function.
4977 (build_id_to_debug_bfd): Look for separate debug file in
4980 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4982 * gdbarch.sh: Update the copyright year range that is placed into
4985 2019-02-22 Keith Seitz <keiths@redhat.com>
4988 * linespec.c (create_sals_line_offset): Search for the default
4989 symtab's filename instead of its fullname.
4991 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4993 * NEWS: Update style defaults.
4995 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4997 * main.c (captured_main_1): Disable styling in batch mode.
4999 2019-02-20 Tom Tromey <tom@tromey.com>
5001 * symtab.c (symtab_symbol_info): Fix typos.
5003 2019-02-20 Tom Tromey <tromey@adacore.com>
5005 * findcmd.c (_initialize_mem_search): Use upper case for
5006 metasyntactic variables.
5008 2019-02-20 Alan Hayward <alan.hayward@arm.com>
5010 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5011 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5013 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5015 * top.h (source_file_name): Change to std::string.
5016 * top.c (source_file_name): Likewise.
5017 (command_line_input): Adjust.
5018 * cli/cli-script.c (script_from_file): Adjust.
5020 2019-02-19 Tom Tromey <tromey@adacore.com>
5022 * ravenscar-thread.c
5023 (ravenscar_thread_target::update_thread_list): Don't call
5024 ada_build_task_list.
5025 * ada-lang.h (ada_build_task_list): Don't declare.
5026 * ada-tasks.c (struct ada_tasks_inferior_data)
5027 <task_list_valid_p>: Now bool.
5028 (read_known_tasks, ada_task_list_changed)
5029 (ada_tasks_invalidate_inferior_data): Update.
5030 (read_known_tasks_array): Return bool.
5031 (read_known_tasks_list): Likewise.
5032 (read_known_tasks): Return void.
5033 (ada_build_task_list): Now static.
5035 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5037 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5038 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5040 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5042 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5043 variant for ada_tasks_pspace_data_handle and
5044 ada_tasks_inferior_data_handle.
5045 (ada_tasks_pspace_data_cleanup): New function.
5046 (ada_tasks_inferior_data_cleanup): New function.
5048 2019-02-17 Tom Tromey <tom@tromey.com>
5050 * macrotab.h (macro_source_fullname): Return a std::string.
5051 * macrotab.c (macro_include, check_for_redefinition)
5052 (macro_undef, macro_lookup_definition, foreach_macro)
5053 (foreach_macro_in_scope): Update.
5054 (macro_source_fullname): Return a std::string.
5055 * macrocmd.c (show_pp_source_pos): Update.
5057 2019-02-17 Tom Tromey <tom@tromey.com>
5059 * macrocmd.c (show_pp_source_pos): Style the file names.
5061 2019-02-17 Tom Tromey <tom@tromey.com>
5064 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5066 2019-02-17 Tom Tromey <tom@tromey.com>
5068 * ada-lang.c (user_select_syms): Use filtered printing.
5069 * utils.c (wrap_style): New global.
5070 (desired_style): Remove.
5071 (emit_style_escape): Add stream parameter.
5072 (set_output_style, reset_terminal_style, prompt_for_continue):
5074 (flush_wrap_buffer): Only flush gdb_stdout.
5075 (wrap_here): Set wrap_style.
5076 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5077 treat escape sequences as a character. Change when wrap buffer is
5079 (fputs_styled): Do not set the output style when the default is
5081 * ui-style.h (struct ui_file_style) <is_default>: New method.
5082 * source.c (print_source_lines_base): Emit escape sequences in one
5085 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5087 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5088 integers and enumeration types.
5090 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5092 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5093 instead of lookup_symbol_in_language
5094 (do_exact_match): New function.
5095 (ada_get_symbol_name_matcher): Return do_exact_match when
5096 doing a verbatim match.
5098 2019-02-15 Tom Tromey <tromey@adacore.com>
5100 * ravenscar-thread.c (ravenscar_thread_target::resume)
5101 (ravenscar_thread_target::wait): Special case wildcard requests.
5103 2019-02-15 Tom Tromey <tromey@adacore.com>
5105 * ravenscar-thread.c (base_ptid): Remove.
5106 (struct ravenscar_thread_target) <close>: New method.
5107 <m_base_ptid>: New member.
5108 <update_inferior_ptid, active_task, task_is_currently_active,
5109 runtime_initialized>: Declare methods.
5110 <ravenscar_thread_target>: Add constructor.
5111 (ravenscar_thread_target::task_is_currently_active)
5112 (ravenscar_thread_target::update_inferior_ptid)
5113 (ravenscar_runtime_initialized): Rename. Now methods.
5114 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5115 (ravenscar_thread_target::update_thread_list): Update.
5116 (ravenscar_thread_target::active_task): Now method.
5117 (ravenscar_thread_target::store_registers)
5118 (ravenscar_thread_target::prepare_to_store)
5119 (ravenscar_thread_target::prepare_to_store)
5120 (ravenscar_thread_target::mourn_inferior): Update.
5121 (ravenscar_inferior_created): Use "new" to create target.
5122 (ravenscar_thread_target::get_ada_task_ptid): Update.
5123 (_initialize_ravenscar): Don't initialize base_ptid.
5124 (ravenscar_ops): Remove global.
5126 2019-02-15 Tom Tromey <tromey@adacore.com>
5128 * target.h (push_target): Declare new overload.
5129 * target.c (push_target): New overload, taking an rvalue reference.
5130 * remote.c (remote_target::open_1): Use push_target overload.
5131 * corelow.c (core_target_open): Use push_target overload.
5133 2019-02-15 Tom Tromey <tromey@adacore.com>
5135 * ravenscar-thread.c (is_ravenscar_task)
5136 (ravenscar_task_is_currently_active): Return bool.
5137 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5138 (_initialize_ravenscar): Remove "(void)".
5139 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5142 2019-02-15 Tom Tromey <tromey@adacore.com>
5144 * ravenscar-thread.c (ravenscar_runtime_initializer)
5145 (has_ravenscar_runtime, get_running_thread_id)
5146 (ravenscar_thread_target::resume): Fix indentation.
5148 2019-02-15 Tom Tromey <tromey@adacore.com>
5150 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5151 from ravenscar_arch_ops.
5152 (sparc_ravenscar_ops::fetch_registers)
5153 (sparc_ravenscar_ops::store_registers): Now methods.
5154 (sparc_ravenscar_prepare_to_store): Remove.
5155 (sparc_ravenscar_ops): Redefine.
5156 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5157 methods and destructor. Remove members.
5158 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5159 (ravenscar_thread_target::store_registers)
5160 (ravenscar_thread_target::prepare_to_store): Update.
5161 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5163 (struct ppc_ravenscar_powerpc_ops): Derive from
5165 (ppc_ravenscar_powerpc_ops::fetch_registers)
5166 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5167 (ppc_ravenscar_powerpc_ops): Redefine.
5168 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5169 (ppc_ravenscar_e500_ops::fetch_registers)
5170 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5171 (ppc_ravenscar_e500_ops): Redefine.
5172 * aarch64-ravenscar-thread.c
5173 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5174 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5175 (aarch64_ravenscar_fetch_registers)
5176 (aarch64_ravenscar_store_registers): Now methods.
5177 (aarch64_ravenscar_ops): Redefine.
5179 2019-02-15 Tom Tromey <tromey@adacore.com>
5181 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5182 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5183 (ravenscar_thread_target::stopped_by_watchpoint)
5184 (ravenscar_thread_target::stopped_data_address)
5185 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5187 2019-02-15 Tom Tromey <tromey@adacore.com>
5189 * ravenscar-thread.c: Fix some typos.
5191 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5192 Tom Tromey <tromey@adacore.com>
5194 * ada-lang.c (ada_exception_sal): Change addr_string to a
5196 (create_ada_exception_catchpoint): Update.
5198 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5199 Tom Tromey <tromey@adacore.com>
5201 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5202 (bp_location_ops): Remove.
5203 (base_breakpoint_allocate_location): Update.
5204 (free_bp_location): Update.
5205 * ada-lang.c (class ada_catchpoint_location)
5206 <ada_catchpoint_location>: Remove ops parameter.
5207 (ada_catchpoint_location_dtor): Remove.
5208 (ada_catchpoint_location_ops): Remove.
5209 (allocate_location_exception): Update.
5210 * breakpoint.h (struct bp_location_ops): Remove.
5211 (class bp_location) <bp_location>: Remove bp_location_ops
5213 <~bp_location>: Add destructor.
5216 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5217 Pedro Alves <palves@redhat.com>
5219 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5222 2019-02-14 David Michael <fedora.dm0@gmail.com>
5223 Samuel Thibault <samuel.thibault@gnu.org>
5224 Thomas Schwinge <thomas@codesourcery.com>
5226 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5227 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5229 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5231 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5232 (check_empty): Use "const char *".
5234 * gnu-nat.c (gnu_nat_target::detach): Instead of
5235 'detach_inferior (pid)' call
5236 'detach_inferior (find_inferior_pid (pid))'.
5238 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5239 'nat/fork-inferior.o'.
5240 * gnu-nat.c: #include "nat/fork-inferior.h".
5242 * gnu-nat.c (gnu_nat_target::detach): Instead of
5243 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5244 * gnu-nat.h: #include "inf-child.h".
5245 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5246 'i386_gnu_nat_target::fetch_registers'.
5247 (gnu_store_registers): Rename/move to
5248 'i386_gnu_nat_target::store_registers'.
5250 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5251 * gnu-nat.h (mach_thread_info): New function.
5252 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5254 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5256 2019-02-14 Frederic Konrad <konrad@adacore.com>
5258 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5260 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5262 * windows-nat.c (windows_add_thread): Add new parameter
5263 "main_thread_p" with default value set to false. Update
5264 function documentation as well as all callers.
5265 (windows_delete_thread): Likewise.
5266 (fake_create_process): Update call to windows_add_thread.
5267 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5268 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5269 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5270 call to windows_delete_thread.
5272 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5274 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5276 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5278 * symfile.c (find_separate_debug_file): Use canonical path of
5279 sysroot with child_path instead of gdb_sysroot if it is valid.
5281 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5283 * symfile.c (find_separate_debug_file): Use child_path to
5284 determine if an object file is under a sysroot.
5286 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5288 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5289 unittests/child-path-selftests.c.
5290 * common/pathstuff.c (child_path): New function.
5291 * common/pathstuff.h (child_path): New prototype.
5292 * unittests/child-path-selftests.c: New file.
5294 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5296 * symfile.c (find_separate_debug_file): Look for separate debug
5297 files in debug directories under the sysroot.
5299 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5301 * symtab.h (struct minimal_symbol data_p): New const method.
5302 (struct minimal_symbol text_p): Likewise.
5303 * symtab.c (output_source_filename): Use file name style
5305 (print_symbol_info): Likewise.
5306 (print_msymbol_info): Use address style to print addresses.
5307 Use function name style to print executable text symbols.
5308 (expand_symtab_containing_pc): Use data_p.
5309 (find_pc_sect_compunit_symtab): Likewise.
5311 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5313 * breakpoint.c (describe_other_breakpoints): Use address style
5315 (say_where): Likewise.
5317 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5319 * ada-typeprint.c (print_func_type): Print function name
5320 style to print function name.
5321 * c-typeprint.c (c_print_type_1): Likewise.
5323 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5325 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5328 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5330 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5333 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5335 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5336 TYPE_CODE_REF types.
5338 2019-02-08 Jim Wilson <jimw@sifive.com>
5340 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5341 (riscv_linux_fregset): New.
5342 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5344 2019-02-07 Tom Tromey <tom@tromey.com>
5346 * thread.c (thread_cancel_execution_command): Update.
5347 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5349 (struct thread_fsm_ops): Remove.
5350 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5351 (thread_fsm_should_stop, thread_fsm_return_value)
5352 (thread_fsm_set_finished, thread_fsm_finished_p)
5353 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5355 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5356 * infrun.c (clear_proceed_status_thread)
5357 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5358 (print_stop_event): Update.
5359 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5361 (step_command_fsm_ops): Remove.
5362 (new_step_command_fsm): Remove.
5364 (step_command_fsm::should_stop): Rename from
5365 step_command_fsm_should_stop.
5366 (step_command_fsm::clean_up): Rename from
5367 step_command_fsm_clean_up.
5368 (step_command_fsm::do_async_reply_reason): Rename from
5369 step_command_fsm_async_reply_reason.
5370 (struct until_next_fsm): Inherit from thread_fsm. Add
5372 (until_next_fsm_ops): Remove.
5373 (new_until_next_fsm): Remove.
5374 (until_next_fsm::should_stop): Rename from
5375 until_next_fsm_should_stop.
5376 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5377 (until_next_fsm::do_async_reply_reason): Rename from
5378 until_next_fsm_async_reply_reason.
5379 (struct finish_command_fsm): Inherit from thread_fsm. Add
5380 constructor. Change type of breakpoint.
5381 (finish_command_fsm_ops): Remove.
5382 (new_finish_command_fsm): Remove.
5383 (finish_command_fsm::should_stop): Rename from
5384 finish_command_fsm_should_stop.
5385 (finish_command_fsm::clean_up): Rename from
5386 finish_command_fsm_clean_up.
5387 (finish_command_fsm::return_value): Rename from
5388 finish_command_fsm_return_value.
5389 (finish_command_fsm::do_async_reply_reason): Rename from
5390 finish_command_fsm_async_reply_reason.
5391 (finish_command): Update.
5392 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5394 (call_thread_fsm_ops): Remove.
5395 (call_thread_fsm::call_thread_fsm): Rename from
5396 new_call_thread_fsm.
5397 (call_thread_fsm::should_stop): Rename from
5398 call_thread_fsm_should_stop.
5399 (call_thread_fsm::should_notify_stop): Rename from
5400 call_thread_fsm_should_notify_stop.
5401 (run_inferior_call, call_function_by_hand_dummy): Update.
5402 * cli/cli-interp.c (should_print_stop_to_console): Update.
5403 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5404 Add constructor. Change type of location_breakpoint,
5406 (until_break_fsm_ops): Remove.
5407 (new_until_break_fsm): Remove.
5408 (until_break_fsm::should_stop): Rename from
5409 until_break_fsm_should_stop.
5410 (until_break_fsm::clean_up): Rename from
5411 until_break_fsm_clean_up.
5412 (until_break_fsm::do_async_reply_reason): Rename from
5413 until_break_fsm_async_reply_reason.
5414 (until_break_command): Update.
5415 * thread-fsm.c: Remove.
5416 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5418 2019-02-07 Tom Tromey <tom@tromey.com>
5420 * yy-remap.h: Add include guard.
5421 * xtensa-tdep.h: Add include guard.
5422 * xcoffread.h: Rename include guard.
5423 * varobj-iter.h: Add include guard.
5424 * tui/tui.h: Rename include guard.
5425 * tui/tui-winsource.h: Rename include guard.
5426 * tui/tui-wingeneral.h: Rename include guard.
5427 * tui/tui-windata.h: Rename include guard.
5428 * tui/tui-win.h: Rename include guard.
5429 * tui/tui-stack.h: Rename include guard.
5430 * tui/tui-source.h: Rename include guard.
5431 * tui/tui-regs.h: Rename include guard.
5432 * tui/tui-out.h: Rename include guard.
5433 * tui/tui-layout.h: Rename include guard.
5434 * tui/tui-io.h: Rename include guard.
5435 * tui/tui-hooks.h: Rename include guard.
5436 * tui/tui-file.h: Rename include guard.
5437 * tui/tui-disasm.h: Rename include guard.
5438 * tui/tui-data.h: Rename include guard.
5439 * tui/tui-command.h: Rename include guard.
5440 * tic6x-tdep.h: Add include guard.
5441 * target/waitstatus.h: Rename include guard.
5442 * target/wait.h: Rename include guard.
5443 * target/target.h: Rename include guard.
5444 * target/resume.h: Rename include guard.
5445 * target-float.h: Rename include guard.
5446 * stabsread.h: Add include guard.
5447 * rs6000-tdep.h: Add include guard.
5448 * riscv-fbsd-tdep.h: Add include guard.
5449 * regformats/regdef.h: Rename include guard.
5450 * record.h: Rename include guard.
5451 * python/python.h: Rename include guard.
5452 * python/python-internal.h: Rename include guard.
5453 * python/py-stopevent.h: Rename include guard.
5454 * python/py-ref.h: Rename include guard.
5455 * python/py-record.h: Rename include guard.
5456 * python/py-record-full.h: Rename include guard.
5457 * python/py-record-btrace.h: Rename include guard.
5458 * python/py-instruction.h: Rename include guard.
5459 * python/py-events.h: Rename include guard.
5460 * python/py-event.h: Rename include guard.
5461 * procfs.h: Add include guard.
5462 * proc-utils.h: Add include guard.
5463 * p-lang.h: Add include guard.
5464 * or1k-tdep.h: Rename include guard.
5465 * observable.h: Rename include guard.
5466 * nto-tdep.h: Rename include guard.
5467 * nat/x86-linux.h: Rename include guard.
5468 * nat/x86-linux-dregs.h: Rename include guard.
5469 * nat/x86-gcc-cpuid.h: Add include guard.
5470 * nat/x86-dregs.h: Rename include guard.
5471 * nat/x86-cpuid.h: Rename include guard.
5472 * nat/ppc-linux.h: Rename include guard.
5473 * nat/mips-linux-watch.h: Rename include guard.
5474 * nat/linux-waitpid.h: Rename include guard.
5475 * nat/linux-ptrace.h: Rename include guard.
5476 * nat/linux-procfs.h: Rename include guard.
5477 * nat/linux-osdata.h: Rename include guard.
5478 * nat/linux-nat.h: Rename include guard.
5479 * nat/linux-namespaces.h: Rename include guard.
5480 * nat/linux-btrace.h: Rename include guard.
5481 * nat/glibc_thread_db.h: Rename include guard.
5482 * nat/gdb_thread_db.h: Rename include guard.
5483 * nat/gdb_ptrace.h: Rename include guard.
5484 * nat/fork-inferior.h: Rename include guard.
5485 * nat/amd64-linux-siginfo.h: Rename include guard.
5486 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5487 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5488 * nat/aarch64-linux.h: Rename include guard.
5489 * nat/aarch64-linux-hw-point.h: Rename include guard.
5490 * mn10300-tdep.h: Add include guard.
5491 * mips-linux-tdep.h: Add include guard.
5492 * mi/mi-parse.h: Rename include guard.
5493 * mi/mi-out.h: Rename include guard.
5494 * mi/mi-main.h: Rename include guard.
5495 * mi/mi-interp.h: Rename include guard.
5496 * mi/mi-getopt.h: Rename include guard.
5497 * mi/mi-console.h: Rename include guard.
5498 * mi/mi-common.h: Rename include guard.
5499 * mi/mi-cmds.h: Rename include guard.
5500 * mi/mi-cmd-break.h: Rename include guard.
5501 * m2-lang.h: Add include guard.
5502 * location.h: Rename include guard.
5503 * linux-record.h: Rename include guard.
5504 * linux-nat.h: Add include guard.
5505 * linux-fork.h: Add include guard.
5506 * i386-darwin-tdep.h: Rename include guard.
5507 * hppa-linux-offsets.h: Add include guard.
5508 * guile/guile.h: Rename include guard.
5509 * guile/guile-internal.h: Rename include guard.
5510 * gnu-nat.h: Rename include guard.
5511 * gdb-stabs.h: Rename include guard.
5512 * frv-tdep.h: Add include guard.
5513 * f-lang.h: Add include guard.
5514 * event-loop.h: Add include guard.
5515 * darwin-nat.h: Rename include guard.
5516 * cp-abi.h: Rename include guard.
5517 * config/sparc/nm-sol2.h: Rename include guard.
5518 * config/nm-nto.h: Rename include guard.
5519 * config/nm-linux.h: Add include guard.
5520 * config/i386/nm-i386gnu.h: Rename include guard.
5521 * config/djgpp/nl_types.h: Rename include guard.
5522 * config/djgpp/langinfo.h: Rename include guard.
5523 * compile/gcc-cp-plugin.h: Add include guard.
5524 * compile/gcc-c-plugin.h: Add include guard.
5525 * compile/compile.h: Rename include guard.
5526 * compile/compile-object-run.h: Rename include guard.
5527 * compile/compile-object-load.h: Rename include guard.
5528 * compile/compile-internal.h: Rename include guard.
5529 * compile/compile-cplus.h: Rename include guard.
5530 * compile/compile-c.h: Rename include guard.
5531 * common/xml-utils.h: Rename include guard.
5532 * common/x86-xstate.h: Rename include guard.
5533 * common/version.h: Rename include guard.
5534 * common/vec.h: Rename include guard.
5535 * common/tdesc.h: Rename include guard.
5536 * common/selftest.h: Rename include guard.
5537 * common/scoped_restore.h: Rename include guard.
5538 * common/scoped_mmap.h: Rename include guard.
5539 * common/scoped_fd.h: Rename include guard.
5540 * common/safe-iterator.h: Rename include guard.
5541 * common/run-time-clock.h: Rename include guard.
5542 * common/refcounted-object.h: Rename include guard.
5543 * common/queue.h: Rename include guard.
5544 * common/ptid.h: Rename include guard.
5545 * common/print-utils.h: Rename include guard.
5546 * common/preprocessor.h: Rename include guard.
5547 * common/pathstuff.h: Rename include guard.
5548 * common/observable.h: Rename include guard.
5549 * common/netstuff.h: Rename include guard.
5550 * common/job-control.h: Rename include guard.
5551 * common/host-defs.h: Rename include guard.
5552 * common/gdb_wait.h: Rename include guard.
5553 * common/gdb_vecs.h: Rename include guard.
5554 * common/gdb_unlinker.h: Rename include guard.
5555 * common/gdb_unique_ptr.h: Rename include guard.
5556 * common/gdb_tilde_expand.h: Rename include guard.
5557 * common/gdb_sys_time.h: Rename include guard.
5558 * common/gdb_string_view.h: Rename include guard.
5559 * common/gdb_splay_tree.h: Rename include guard.
5560 * common/gdb_setjmp.h: Rename include guard.
5561 * common/gdb_ref_ptr.h: Rename include guard.
5562 * common/gdb_optional.h: Rename include guard.
5563 * common/gdb_locale.h: Rename include guard.
5564 * common/gdb_assert.h: Rename include guard.
5565 * common/filtered-iterator.h: Rename include guard.
5566 * common/filestuff.h: Rename include guard.
5567 * common/fileio.h: Rename include guard.
5568 * common/environ.h: Rename include guard.
5569 * common/common-utils.h: Rename include guard.
5570 * common/common-types.h: Rename include guard.
5571 * common/common-regcache.h: Rename include guard.
5572 * common/common-inferior.h: Rename include guard.
5573 * common/common-gdbthread.h: Rename include guard.
5574 * common/common-exceptions.h: Rename include guard.
5575 * common/common-defs.h: Rename include guard.
5576 * common/common-debug.h: Rename include guard.
5577 * common/cleanups.h: Rename include guard.
5578 * common/buffer.h: Rename include guard.
5579 * common/btrace-common.h: Rename include guard.
5580 * common/break-common.h: Rename include guard.
5581 * cli/cli-utils.h: Rename include guard.
5582 * cli/cli-style.h: Rename include guard.
5583 * cli/cli-setshow.h: Rename include guard.
5584 * cli/cli-script.h: Rename include guard.
5585 * cli/cli-interp.h: Rename include guard.
5586 * cli/cli-decode.h: Rename include guard.
5587 * cli/cli-cmds.h: Rename include guard.
5588 * charset-list.h: Add include guard.
5589 * buildsym-legacy.h: Rename include guard.
5590 * bfin-tdep.h: Add include guard.
5591 * ax.h: Rename include guard.
5592 * arm-linux-tdep.h: Add include guard.
5593 * arm-fbsd-tdep.h: Add include guard.
5594 * arch/xtensa.h: Rename include guard.
5595 * arch/tic6x.h: Add include guard.
5596 * arch/i386.h: Add include guard.
5597 * arch/arm.h: Rename include guard.
5598 * arch/arm-linux.h: Rename include guard.
5599 * arch/arm-get-next-pcs.h: Rename include guard.
5600 * arch/amd64.h: Add include guard.
5601 * arch/aarch64-insn.h: Rename include guard.
5602 * arch-utils.h: Rename include guard.
5603 * annotate.h: Add include guard.
5604 * amd64-darwin-tdep.h: Rename include guard.
5605 * aarch64-linux-tdep.h: Add include guard.
5606 * aarch64-fbsd-tdep.h: Add include guard.
5607 * aarch32-linux-nat.h: Add include guard.
5609 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5611 * macrotab.c (macro_define_internal): New function that
5612 factorizes macro_define_object_internal and macro_define_function
5614 (macro_define_object_internal): Use macro_define_internal.
5615 (macro_define_function): Likewise.
5617 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5619 * macrocmd.c (extract_identifier): Return
5620 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5623 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5625 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5627 2019-02-05 Tom Tromey <tom@tromey.com>
5629 * target.c (target_stack::unpush): Move assertion earlier.
5631 2019-01-30 Tom Tromey <tom@tromey.com>
5634 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5635 (gdbpy_parse_and_eval): Likewise.
5636 * python/python-internal.h (gdbpy_allow_threads): New class.
5638 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5640 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5641 (aarch64_fbsd_fpregmap): Move earlier.
5642 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5643 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5644 instead of individual calls to trad_frame_set_reg_addr.
5645 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5647 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5648 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5649 instead of individual calls to trad_frame_set_reg_addr.
5651 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5653 * CONTRIBUTE: Replace contribution list with wiki link.
5655 2019-01-25 Tom Tromey <tom@tromey.com>
5657 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5659 2019-01-25 Tom Tromey <tom@tromey.com>
5661 * xtensa-linux-nat.c: Fix common/ includes.
5662 * xml-support.h: Fix common/ includes.
5663 * xml-support.c: Fix common/ includes.
5664 * x86-linux-nat.c: Fix common/ includes.
5665 * windows-nat.c: Fix common/ includes.
5666 * varobj.h: Fix common/ includes.
5667 * varobj.c: Fix common/ includes.
5668 * value.c: Fix common/ includes.
5669 * valops.c: Fix common/ includes.
5670 * utils.c: Fix common/ includes.
5671 * unittests/xml-utils-selftests.c: Fix common/ includes.
5672 * unittests/utils-selftests.c: Fix common/ includes.
5673 * unittests/unpack-selftests.c: Fix common/ includes.
5674 * unittests/tracepoint-selftests.c: Fix common/ includes.
5675 * unittests/style-selftests.c: Fix common/ includes.
5676 * unittests/string_view-selftests.c: Fix common/ includes.
5677 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5678 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5679 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5680 * unittests/rsp-low-selftests.c: Fix common/ includes.
5681 * unittests/parse-connection-spec-selftests.c: Fix common/
5683 * unittests/optional-selftests.c: Fix common/ includes.
5684 * unittests/offset-type-selftests.c: Fix common/ includes.
5685 * unittests/observable-selftests.c: Fix common/ includes.
5686 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5687 * unittests/memrange-selftests.c: Fix common/ includes.
5688 * unittests/memory-map-selftests.c: Fix common/ includes.
5689 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5690 * unittests/function-view-selftests.c: Fix common/ includes.
5691 * unittests/environ-selftests.c: Fix common/ includes.
5692 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5693 * unittests/common-utils-selftests.c: Fix common/ includes.
5694 * unittests/cli-utils-selftests.c: Fix common/ includes.
5695 * unittests/array-view-selftests.c: Fix common/ includes.
5696 * ui-file.c: Fix common/ includes.
5697 * tui/tui-io.c: Fix common/ includes.
5698 * tracepoint.h: Fix common/ includes.
5699 * tracepoint.c: Fix common/ includes.
5700 * tracefile-tfile.c: Fix common/ includes.
5701 * top.h: Fix common/ includes.
5702 * top.c: Fix common/ includes.
5703 * thread.c: Fix common/ includes.
5704 * target/waitstatus.h: Fix common/ includes.
5705 * target/waitstatus.c: Fix common/ includes.
5706 * target.h: Fix common/ includes.
5707 * target.c: Fix common/ includes.
5708 * target-memory.c: Fix common/ includes.
5709 * target-descriptions.c: Fix common/ includes.
5710 * symtab.h: Fix common/ includes.
5711 * symfile.c: Fix common/ includes.
5712 * stap-probe.c: Fix common/ includes.
5713 * spu-linux-nat.c: Fix common/ includes.
5714 * sparc-nat.c: Fix common/ includes.
5715 * source.c: Fix common/ includes.
5716 * solib.c: Fix common/ includes.
5717 * solib-target.c: Fix common/ includes.
5718 * ser-unix.c: Fix common/ includes.
5719 * ser-tcp.c: Fix common/ includes.
5720 * ser-pipe.c: Fix common/ includes.
5721 * ser-base.c: Fix common/ includes.
5722 * selftest-arch.c: Fix common/ includes.
5723 * s12z-tdep.c: Fix common/ includes.
5724 * rust-exp.y: Fix common/ includes.
5725 * rs6000-aix-tdep.c: Fix common/ includes.
5726 * riscv-tdep.c: Fix common/ includes.
5727 * remote.c: Fix common/ includes.
5728 * remote-notif.h: Fix common/ includes.
5729 * remote-fileio.h: Fix common/ includes.
5730 * remote-fileio.c: Fix common/ includes.
5731 * regcache.h: Fix common/ includes.
5732 * regcache.c: Fix common/ includes.
5733 * record-btrace.c: Fix common/ includes.
5734 * python/python.c: Fix common/ includes.
5735 * python/py-type.c: Fix common/ includes.
5736 * python/py-inferior.c: Fix common/ includes.
5737 * progspace.h: Fix common/ includes.
5738 * producer.c: Fix common/ includes.
5739 * procfs.c: Fix common/ includes.
5740 * proc-api.c: Fix common/ includes.
5741 * printcmd.c: Fix common/ includes.
5742 * ppc-linux-nat.c: Fix common/ includes.
5743 * parser-defs.h: Fix common/ includes.
5744 * osdata.c: Fix common/ includes.
5745 * obsd-nat.c: Fix common/ includes.
5746 * nat/x86-linux.c: Fix common/ includes.
5747 * nat/x86-linux-dregs.c: Fix common/ includes.
5748 * nat/x86-dregs.h: Fix common/ includes.
5749 * nat/x86-dregs.c: Fix common/ includes.
5750 * nat/ppc-linux.c: Fix common/ includes.
5751 * nat/mips-linux-watch.h: Fix common/ includes.
5752 * nat/mips-linux-watch.c: Fix common/ includes.
5753 * nat/linux-waitpid.c: Fix common/ includes.
5754 * nat/linux-ptrace.h: Fix common/ includes.
5755 * nat/linux-ptrace.c: Fix common/ includes.
5756 * nat/linux-procfs.c: Fix common/ includes.
5757 * nat/linux-personality.c: Fix common/ includes.
5758 * nat/linux-osdata.c: Fix common/ includes.
5759 * nat/linux-namespaces.c: Fix common/ includes.
5760 * nat/linux-btrace.h: Fix common/ includes.
5761 * nat/linux-btrace.c: Fix common/ includes.
5762 * nat/fork-inferior.c: Fix common/ includes.
5763 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5764 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5765 * nat/aarch64-linux.c: Fix common/ includes.
5766 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5767 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5768 * namespace.h: Fix common/ includes.
5769 * mips-linux-tdep.c: Fix common/ includes.
5770 * minsyms.c: Fix common/ includes.
5771 * mi/mi-parse.h: Fix common/ includes.
5772 * mi/mi-main.c: Fix common/ includes.
5773 * mi/mi-cmd-env.c: Fix common/ includes.
5774 * memrange.h: Fix common/ includes.
5775 * memattr.c: Fix common/ includes.
5776 * maint.h: Fix common/ includes.
5777 * maint.c: Fix common/ includes.
5778 * main.c: Fix common/ includes.
5779 * machoread.c: Fix common/ includes.
5780 * location.c: Fix common/ includes.
5781 * linux-thread-db.c: Fix common/ includes.
5782 * linux-nat.c: Fix common/ includes.
5783 * linux-fork.c: Fix common/ includes.
5784 * inline-frame.c: Fix common/ includes.
5785 * infrun.c: Fix common/ includes.
5786 * inflow.c: Fix common/ includes.
5787 * inferior.h: Fix common/ includes.
5788 * inferior.c: Fix common/ includes.
5789 * infcmd.c: Fix common/ includes.
5790 * inf-ptrace.c: Fix common/ includes.
5791 * inf-child.c: Fix common/ includes.
5792 * ia64-linux-nat.c: Fix common/ includes.
5793 * i387-tdep.c: Fix common/ includes.
5794 * i386-tdep.c: Fix common/ includes.
5795 * i386-linux-tdep.c: Fix common/ includes.
5796 * i386-linux-nat.c: Fix common/ includes.
5797 * i386-go32-tdep.c: Fix common/ includes.
5798 * i386-fbsd-tdep.c: Fix common/ includes.
5799 * i386-fbsd-nat.c: Fix common/ includes.
5800 * guile/scm-type.c: Fix common/ includes.
5801 * guile/guile.c: Fix common/ includes.
5802 * go32-nat.c: Fix common/ includes.
5803 * gnu-nat.c: Fix common/ includes.
5804 * gdbthread.h: Fix common/ includes.
5805 * gdbarch-selftests.c: Fix common/ includes.
5806 * gdb_usleep.c: Fix common/ includes.
5807 * gdb_select.h: Fix common/ includes.
5808 * gdb_bfd.c: Fix common/ includes.
5809 * gcore.c: Fix common/ includes.
5810 * fork-child.c: Fix common/ includes.
5811 * findvar.c: Fix common/ includes.
5812 * fbsd-nat.c: Fix common/ includes.
5813 * event-top.c: Fix common/ includes.
5814 * event-loop.c: Fix common/ includes.
5815 * dwarf2read.c: Fix common/ includes.
5816 * dwarf2loc.c: Fix common/ includes.
5817 * dwarf2-frame.c: Fix common/ includes.
5818 * dwarf-index-cache.c: Fix common/ includes.
5819 * dtrace-probe.c: Fix common/ includes.
5820 * disasm-selftests.c: Fix common/ includes.
5821 * defs.h: Fix common/ includes.
5822 * csky-tdep.c: Fix common/ includes.
5823 * cp-valprint.c: Fix common/ includes.
5824 * cp-support.h: Fix common/ includes.
5825 * cp-support.c: Fix common/ includes.
5826 * corelow.c: Fix common/ includes.
5827 * completer.h: Fix common/ includes.
5828 * completer.c: Fix common/ includes.
5829 * compile/compile.c: Fix common/ includes.
5830 * compile/compile-loc2c.c: Fix common/ includes.
5831 * compile/compile-cplus-types.c: Fix common/ includes.
5832 * compile/compile-cplus-symbols.c: Fix common/ includes.
5833 * command.h: Fix common/ includes.
5834 * cli/cli-dump.c: Fix common/ includes.
5835 * cli/cli-cmds.c: Fix common/ includes.
5836 * charset.c: Fix common/ includes.
5837 * build-id.c: Fix common/ includes.
5838 * btrace.h: Fix common/ includes.
5839 * btrace.c: Fix common/ includes.
5840 * breakpoint.h: Fix common/ includes.
5841 * breakpoint.c: Fix common/ includes.
5843 (enum agent_op): Fix common/ includes.
5844 * ax-general.c (struct aop_map): Fix common/ includes.
5845 * ax-gdb.c: Fix common/ includes.
5846 * auxv.c: Fix common/ includes.
5847 * auto-load.c: Fix common/ includes.
5848 * arm-tdep.c: Fix common/ includes.
5849 * arch/riscv.c: Fix common/ includes.
5850 * arch/ppc-linux-common.c: Fix common/ includes.
5851 * arch/i386.c: Fix common/ includes.
5852 * arch/arm.c: Fix common/ includes.
5853 * arch/arm-linux.c: Fix common/ includes.
5854 * arch/arm-get-next-pcs.c: Fix common/ includes.
5855 * arch/amd64.c: Fix common/ includes.
5856 * arch/aarch64.c: Fix common/ includes.
5857 * arch/aarch64-insn.c: Fix common/ includes.
5858 * arch-utils.c: Fix common/ includes.
5859 * amd64-windows-tdep.c: Fix common/ includes.
5860 * amd64-tdep.c: Fix common/ includes.
5861 * amd64-sol2-tdep.c: Fix common/ includes.
5862 * amd64-obsd-tdep.c: Fix common/ includes.
5863 * amd64-nbsd-tdep.c: Fix common/ includes.
5864 * amd64-linux-tdep.c: Fix common/ includes.
5865 * amd64-linux-nat.c: Fix common/ includes.
5866 * amd64-fbsd-tdep.c: Fix common/ includes.
5867 * amd64-fbsd-nat.c: Fix common/ includes.
5868 * amd64-dicos-tdep.c: Fix common/ includes.
5869 * amd64-darwin-tdep.c: Fix common/ includes.
5870 * agent.c: Fix common/ includes.
5871 * ada-lang.h: Fix common/ includes.
5872 * ada-lang.c: Fix common/ includes.
5873 * aarch64-tdep.c: Fix common/ includes.
5875 2019-01-25 Tom Tromey <tom@tromey.com>
5877 * common/create-version.sh: Use common/version.h.
5879 2019-01-24 Pedro Alves <palves@redhat.com>
5881 * infrun.c (signal_stop, signal_print, signal_program)
5882 (signal_catch, signal_pass): Now arrays instead of pointers.
5883 (update_signals_program_target, do_target_resume)
5884 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5885 * linux-nat.c (linux_nat_target::pass_signals)
5886 (linux_nat_target::create_inferior, linux_nat_target::attach):
5888 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5889 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5890 * procfs.c (procfs_target::pass_signals): Adjust.
5891 * record-full.c (record_full_target::resume): Adjust.
5892 * remote.c (remote_target::pass_signals)
5893 (remote_target::program_signals): Adjust.
5894 * target-debug.h (target_debug_print_signals): Now takes a
5895 gdb::array_view as parameter. Adjust.
5896 * target.h (target_ops) <pass_signals, program_signals>: Replace
5897 pointer and length parameters with gdb::array_view.
5898 (target_pass_signals, target_program_signals): Likewise.
5899 * target-delegates.c: Regenerate.
5901 2019-01-24 Pedro Alves <palves@redhat.com>
5903 * common/forward-scope-exit.h
5904 (forward_scope_exit::forward_scope_exit): Pass arguments to
5905 m_bind_function directly, instead of creating a std::bind and
5908 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5910 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5912 (pass_in_v_vfp_candidate): Likewise.
5914 2019-01-23 Tom Tromey <tom@tromey.com>
5915 Pedro Alves <palves@redhat.com>
5917 * regcache.c (class regcache_invalidator): Remove.
5918 (regcache::raw_write): Use make_scope_exit.
5920 2019-01-23 Tom Tromey <tom@tromey.com>
5922 * ui-out.h (class ui_out_emit_type): Update comment.
5924 2019-01-23 Tom Tromey <tom@tromey.com>
5926 * infrun.c (fetch_inferior_event): Update comment.
5928 2019-01-23 Tom Tromey <tom@tromey.com>
5929 Pedro Alves <palves@redhat.com>
5931 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5933 (fetch_inferior_event): Use SCOPE_EXIT.
5936 2019-01-23 Tom Tromey <tom@tromey.com>
5937 Pedro Alves <palves@redhat.com>
5939 * infrun.c (disable_thread_events): Delete.
5940 (stop_all_threads): Use SCOPE_EXIT.
5942 2019-01-23 Tom Tromey <tom@tromey.com>
5943 Pedro Alves <palves@redhat.com>
5945 * symfile.c: Include forward-scope-exit.h.
5946 (clear_symtab_users_cleanup): Replace forward declaration with
5947 a FORWARD_SCOPE_EXIT.
5948 (syms_from_objfile_1): Use the forward_scope_exit and
5949 gdb::optional instead of cleanup_function.
5950 (reread_symbols): Use the forward_scope_exit instead of
5952 (clear_symtab_users_cleanup): Remove function.
5954 2019-01-23 Tom Tromey <tom@tromey.com>
5955 Pedro Alves <palves@redhat.com>
5957 * linux-nat.c: Include scope-exit.h.
5958 (cleanup_target_stop): Remove.
5959 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5962 2019-01-23 Tom Tromey <tom@tromey.com>
5963 Pedro Alves <palves@redhat.com>
5965 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5966 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5968 2019-01-23 Tom Tromey <tom@tromey.com>
5969 Andrew Burgess <andrew.burgess@embecosm.com>
5970 Pedro Alves <palves@redhat.com>
5972 * infrun.c (fetch_inferior_event): Use scope_exit.
5973 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5974 * top.c (execute_command): Use scope_exit.
5975 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5976 * utils.c (do_bpstat_clear_actions_cleanup)
5977 (make_bpstat_clear_actions_cleanup): Remove.
5979 2019-01-23 Tom Tromey <tom@tromey.com>
5980 Pedro Alves <palves@redhat.com>
5982 * infrun.c: Include "common/scope-exit.h"
5983 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5984 (wait_for_inferior): Use SCOPE_EXIT.
5985 (fetch_inferior_event): Use scope_exit.
5987 2019-01-23 Tom Tromey <tom@tromey.com>
5988 Pedro Alves <palves@redhat.com>
5990 * breakpoint.c (create_breakpoint): Remove cleanup.
5992 2019-01-23 Tom Tromey <tom@tromey.com>
5993 Andrew Burgess <andrew.burgess@embecosm.com>
5994 Pedro Alves <palves@redhat.com>
5996 2019-01-23 Pedro Alves <palves@redhat.com>
5998 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6000 2019-01-23 Pedro Alves <palves@redhat.com>
6001 Andrew Burgess <andrew.burgess@embecosm.com>
6003 * gdbthread.h: Include "common/forward-scope-exit.h".
6004 (scoped_finish_thread_state): Redefine custom class in terms of
6007 2019-01-23 Pedro Alves <palves@redhat.com>
6008 Andrew Burgess <andrew.burgess@embecosm.com>
6010 * common/forward-scope-exit.h: New file.
6012 2019-01-23 Pedro Alves <palves@redhat.com>
6013 Andrew Burgess <andrew.burgess@embecosm.com>
6014 Tom Tromey <tom@tromey.com>
6016 * common/scope-exit.h: New file.
6018 2019-01-23 Pedro Alves <palves@redhat.com>
6020 * common/preprocessor.h (ESC): Rename to ...
6021 (ESC_PARENS): ... this.
6022 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6023 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6025 2019-01-23 Tom Tromey <tom@tromey.com>
6027 * language.h (class scoped_switch_to_sym_language_if_auto):
6028 Initialize m_lang in both cases.
6030 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6032 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6035 2019-01-22 Tom Tromey <tom@tromey.com>
6037 * corelow.c: Do not include sys/file.h.
6039 2019-01-22 Tom Tromey <tom@tromey.com>
6041 * tui/tui-wingeneral.h: Include gdb_curses.h.
6043 2019-01-22 Tom Tromey <tom@tromey.com>
6045 * source-cache.h (class source_cache) <get_source_lines,
6046 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6048 2019-01-22 Tom Tromey <tom@tromey.com>
6050 * remote-fileio.h (struct remote_target): Declare.
6052 2019-01-22 Tom Tromey <tom@tromey.com>
6054 * python/py-arch.c: Do not include py-ref.h.
6055 * python/py-bpevent.c: Do not include py-ref.h.
6056 * python/py-cmd.c: Do not include py-ref.h.
6057 * python/py-continueevent.c: Do not include py-ref.h.
6058 * python/py-event.h: Do not include py-ref.h.
6059 * python/py-evtregistry.c: Do not include py-ref.h.
6060 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6061 * python/py-frame.c: Do not include py-ref.h.
6062 * python/py-framefilter.c: Do not include py-ref.h.
6063 * python/py-function.c: Do not include py-ref.h.
6064 * python/py-infevents.c: Do not include py-ref.h.
6065 * python/py-linetable.c: Do not include py-ref.h.
6066 * python/py-objfile.c: Do not include py-ref.h.
6067 * python/py-param.c: Do not include py-ref.h.
6068 * python/py-prettyprint.c: Do not include py-ref.h.
6069 * python/py-progspace.c: Do not include py-ref.h.
6070 * python/py-symbol.c: Do not include py-ref.h.
6071 * python/py-symtab.c: Do not include py-ref.h.
6072 * python/py-type.c: Do not include py-ref.h.
6073 * python/py-unwind.c: Do not include py-ref.h.
6074 * python/py-utils.c: Do not include py-ref.h.
6075 * python/py-value.c: Do not include py-ref.h.
6076 * python/py-varobj.c: Do not include py-ref.h.
6077 * python/py-xmethods.c: Do not include py-ref.h.
6078 * python/python.c: Do not include py-ref.h.
6079 * varobj.c: Do not include py-ref.h.
6081 2019-01-22 Tom Tromey <tom@tromey.com>
6083 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6086 2019-01-22 Tom Tromey <tom@tromey.com>
6088 * compile/compile-cplus-types.c: Remove a comment by #include.
6090 2019-01-22 Tom Tromey <tom@tromey.com>
6092 * compile/gcc-c-plugin.h: Include compile-internal.h.
6094 2019-01-22 Tom Tromey <tom@tromey.com>
6096 * stabsread.c (EXTERN): Do not define.
6097 (symnum, next_symbol_text_func, processing_gcc_compilation)
6098 (within_function, global_sym_chain, global_stabs)
6099 (previous_stab_code, this_object_header_files)
6100 (n_this_object_header_files)
6101 (n_allocated_this_object_header_files): Define.
6102 * stabsread.h (EXTERN): Never define. Use "extern".
6104 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6106 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6109 2019-01-21 Tom Tromey <tom@tromey.com>
6111 * ui-out.c: Fix includes.
6112 * tui/tui-source.c: Fix includes.
6113 * target.c: Fix includes.
6114 * remote.c: Fix includes.
6115 * regcache.c: Fix includes.
6116 * python/py-block.c: Fix includes.
6117 * printcmd.c: Fix includes.
6118 * or1k-tdep.c: Fix includes.
6119 * mi/mi-main.c: Fix includes.
6120 * m32r-tdep.c: Fix includes.
6121 * csky-tdep.c: Fix includes.
6122 * compile/compile-cplus-types.c: Fix includes.
6123 * cli/cli-interp.c: Fix includes.
6125 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6127 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6130 2019-01-16 Tom Tromey <tom@tromey.com>
6132 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6134 (struct objfile) <msymbols_range>: Move from top level.
6135 <msymbols>: New method.
6136 (class objfile_msymbols): Remove.
6137 * symtab.c (default_collect_symbol_completion_matches_break_on):
6139 * symmisc.c (dump_msymbols): Update.
6140 * stabsread.c (scan_file_globals): Update.
6141 * objc-lang.c (info_selectors_command, info_classes_command)
6142 (find_methods): Update.
6143 * minsyms.c (find_solib_trampoline_target): Update.
6144 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6145 * coffread.c (coff_symfile_read): Update.
6146 * ada-lang.c (ada_lookup_simple_minsym)
6147 (ada_collect_symbol_completion_matches): Update.
6149 2019-01-16 Tom Tromey <tom@tromey.com>
6151 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6152 type. Remove no-argument constructor.
6153 <iterator::operator++>: Simplify.
6155 <end>: Use minimal_symbol_count.
6157 2019-01-16 Tom Tromey <tom@tromey.com>
6159 * objfiles.h (struct objfile) <psymtabs>: New method.
6160 (class objfile_psymtabs): Remove.
6161 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6163 <range>: New method.
6164 (require_partial_symbols): Change return type.
6165 * psymtab.c (require_partial_symbols)
6166 (psym_expand_symtabs_matching): Update.
6167 * mdebugread.c (parse_partial_symbols): Update.
6168 * dbxread.c (dbx_end_psymtab): Update.
6170 2019-01-15 Tom Tromey <tom@tromey.com>
6172 * symtab.c (lookup_objfile_from_block)
6173 (lookup_symbol_in_objfile_symtabs)
6174 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6175 (find_line_symtab, info_sources_command)
6176 (default_collect_symbol_completion_matches_break_on)
6177 (make_source_files_completion_list): Update.
6178 * symmisc.c (print_objfile_statistics, dump_objfile)
6179 (maintenance_print_symbols, maintenance_info_symtabs)
6180 (maintenance_check_symtabs, maintenance_info_line_tables):
6182 * source.c (select_source_symtab)
6183 (forget_cached_source_info_for_objfile): Update.
6184 * objfiles.h (class objfile_compunits): Remove.
6185 (struct objfile) <compunits_range>: New typedef.
6186 (compunits): New method.
6187 * objfiles.c (objfile_relocate1): Update.
6188 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6189 * maint.c (count_symtabs_and_blocks): Update.
6190 * linespec.c (iterate_over_all_matching_symtabs): Update.
6191 * cp-support.c (add_symbol_overload_list_qualified): Update.
6192 * coffread.c (coff_symtab_read): Update.
6193 * ada-lang.c (add_nonlocal_symbols)
6194 (ada_collect_symbol_completion_matches)
6195 (ada_add_global_exceptions): Update.
6197 2019-01-15 Tom Tromey <tom@tromey.com>
6199 * progspace.h (program_space) <objfiles_safe_range>: New
6201 <objfiles_safe>: New method.
6202 * objfiles.h (class all_objfiles_safe): Remove.
6203 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6204 * jit.c (jit_inferior_exit_hook): Update.
6206 2019-01-17 Tom Tromey <tom@tromey.com>
6208 * progspace.h (program_space) <objfiles_range>: New typedef.
6209 <objfiles>: New method.
6210 <objfiles_head>: Rename from objfiles.
6211 (object_files): Update.
6212 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6213 * guile/scm-pretty-print.c
6214 (ppscm_find_pretty_printer_from_objfiles): Update.
6215 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6216 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6218 * python/py-progspace.c (pspy_get_objfiles): Update.
6219 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6221 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6222 (objfpy_lookup_objfile_by_build_id): Update.
6223 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6224 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6226 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6227 (expand_symtab_containing_pc, lookup_objfile_from_block)
6228 (lookup_static_symbol, basic_lookup_transparent_type)
6229 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6230 (find_line_symtab, info_sources_command)
6231 (default_collect_symbol_completion_matches_break_on)
6232 (make_source_files_completion_list, find_main_name): Update.
6233 * symmisc.c (print_symbol_bcache_statistics)
6234 (print_objfile_statistics, maintenance_print_symbols)
6235 (maintenance_print_msymbols, maintenance_print_objfiles)
6236 (maintenance_info_symtabs, maintenance_check_symtabs)
6237 (maintenance_expand_symtabs, maintenance_info_line_tables):
6239 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6240 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6241 (map_overlay_command, unmap_overlay_command)
6242 (simple_overlay_update, expand_symtabs_matching)
6243 (map_symbol_filenames): Update.
6244 * symfile-debug.c (set_debug_symfile): Update.
6245 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6247 * source.c (select_source_symtab, forget_cached_source_info):
6249 * solib.c (solib_read_symbols): Update.
6250 * solib-spu.c (append_ocl_sos): Update.
6251 * psymtab.c (maintenance_print_psymbols)
6252 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6253 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6254 * printcmd.c (info_symbol_command): Update.
6255 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6257 * objfiles.h (class all_objfiles): Remove.
6258 * objfiles.c (have_partial_symbols, have_full_symbols)
6259 (have_minimal_symbols, qsort_cmp, update_section_map)
6260 (shared_objfile_contains_address_p)
6261 (default_iterate_over_objfiles_in_search_order): Update.
6262 * objc-lang.c (info_selectors_command, info_classes_command)
6263 (find_methods): Update.
6264 * minsyms.c (find_solib_trampoline_target): Update.
6265 * maint.c (maintenance_info_sections)
6266 (maintenance_translate_address, count_symtabs_and_blocks):
6268 * main.c (captured_main_1): Update.
6269 * linux-thread-db.c (try_thread_db_load_from_pdir)
6270 (has_libpthread): Update.
6271 * linespec.c (iterate_over_all_matching_symtabs)
6272 (search_minsyms_for_name): Update.
6273 * jit.c (jit_find_objf_with_entry_addr): Update.
6274 * hppa-tdep.c (find_unwind_entry)
6275 (hppa_lookup_stub_minimal_symbol): Update.
6276 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6278 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6279 (elf_gnu_ifunc_resolve_by_got): Update.
6280 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6281 * dwarf-index-write.c (save_gdb_index_command): Update.
6282 * cp-support.c (add_symbol_overload_list_qualified): Update.
6283 * breakpoint.c (create_overlay_event_breakpoint)
6284 (create_longjmp_master_breakpoint)
6285 (create_std_terminate_master_breakpoint)
6286 (create_exception_master_breakpoint): Update.
6287 * blockframe.c (find_pc_partial_function): Update.
6288 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6289 (ada_collect_symbol_completion_matches)
6290 (ada_add_global_exceptions): Update.
6292 2019-01-17 Tom Tromey <tom@tromey.com>
6294 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6296 (solib_target_parse_libraries): Change return type.
6297 (library_list_start_segment, library_list_start_section)
6298 (library_list_end_library, library_list_start_library); Update.
6299 (solib_target_free_library_list): Remove.
6300 (solib_target_parse_libraries): Remove cleanup. Change return
6302 (solib_target_current_sos): Update.
6304 2019-01-17 Tom Tromey <tromey@bapiya>
6306 * valprint.c: Replace "the the" with "the".
6307 * symtab.c: Replace "the the" with "the".
6308 * solib.c: Replace "the the" with "the".
6309 * solib-dsbt.c: Replace "the the" with "the".
6310 * linespec.c: Replace "the the" with "the".
6311 * dwarf2loc.h: Replace "the the" with "the".
6312 * amd64-windows-tdep.c: Replace "the the" with "the".
6313 * aarch64-tdep.c: Replace "the the" with "the".
6315 2019-01-16 Keith Seitz <keiths@redhat.com>
6318 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6319 <builder>: Rename to ..
6320 <m_builder>: ... this and make private.
6321 (dwarf2_cu::get_builder): New method. Change all users of
6322 `builder' to use this method.
6323 (dwarf2_start_symtab): Move to ...
6324 (dwarf2_cu::start_symtab): ... here. Update all callers
6325 (setup_type_unit_groups): Move to ...
6326 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6328 (dwarf2_cu::reset_builder): New method.
6329 (process_full_compunit, process_full_type_unit): Use
6330 dwarf2_cu::reset_builder.
6331 (follow_die_offset): Record the ancestor CU if it is different
6332 from the followed DIE's CU.
6333 (follow_die_sig_1): Likewise.
6335 2019-01-15 Tom Tromey <tom@tromey.com>
6337 * remote.c (class remote_state) <buf>: Now a char_vector.
6339 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6341 (remote_target::getpkt_or_notif_sane_1)
6342 (remote_target::getpkt_sane)
6343 (remote_target::getpkt_or_notif_sane): Likewise.
6344 (class remote_target) <putpkt>: New overload.
6345 (remote_target::read_frame): Change type of "buf_p". Remove
6347 (packet_ok): New overload.
6348 (packet_check_result): New overload.
6351 2019-01-14 Tom Tromey <tom@tromey.com>
6353 * remote-notif.c (handle_notification, remote_notif_ack)
6354 (remote_notif_parse): Make "buf" const.
6355 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6357 (remote_notif_parse, remote_notif_ack, handle_notification):
6359 * remote.c (remote_notif_stop_parse): Make "buf" const.
6360 (remote_target::remote_parse_stop_reply): Make "buf" const.
6361 (remote_notif_stop_ack): Make "buf" const.
6363 2019-01-14 Tom Tromey <tom@tromey.com>
6365 * remote.c (remote_console_output): Make parameter const.
6367 2019-01-14 Tom Tromey <tom@tromey.com>
6369 * target-debug.h (target_debug_print_signals): Constify.
6370 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6371 * procfs.c (procfs_target::pass_signals): Update.
6372 * linux-nat.c (linux_nat_target::pass_signals): Update.
6373 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6374 * target-delegates.c: Rebuild.
6375 * remote.c (remote_target::program_signals): Update.
6376 (remote_target::pass_signals): Update.
6377 * target.c (target_pass_signals): Constify argument.
6378 (target_program_signals): Likewise.
6379 * target.h (struct target_ops) <pass_signals, program_signals>:
6381 (target_pass_signals, target_program_signals): Constify argument.
6383 2019-01-14 Tom Tromey <tom@tromey.com>
6386 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6388 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6390 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6392 * rs6000-tdep.c: Include reggroups.h.
6393 (IS_V_ALIAS_PSEUDOREG): Define.
6394 (rs6000_register_name): Return names for the "vX" aliases.
6395 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6396 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6397 aliases. Call default_register_reggroup_p for all other
6399 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6401 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6402 Handle "vX" aliases.
6403 (v_alias_pseudo_register_collect): New function.
6404 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6405 (rs6000_gdbarch_init): Initialize "vX" aliases as
6406 pseudo-registers. Restore registration of
6407 rs6000_pseudo_register_reggroup_p with
6408 set_tdesc_pseudo_register_reggroup_p.
6410 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6412 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6413 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6414 set_gdbarch_num_pseudo_regs.
6416 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6418 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6419 Remove arg prefixname, add do_set and do_show.
6420 Add member functions set_list and show_list.
6421 * cli/cli-style.c (class cli_style_option): Update accordingly.
6422 (style_set_list): Move to file scope.
6423 (style_show_list): Likewise.
6424 (set_style): Call help_list.
6425 (show_style): Call cmd_show_list.
6426 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6427 Update to use the new macro.
6429 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6431 * ada-lang.c (_initialize_ada_language): Expand the help text
6432 for the "catch exception" command.
6434 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6436 * symtab.c (matching_obj_sections): Initialize obj,
6437 declare it closer to its usage.
6439 2019-01-10 Tom Tromey <tom@tromey.com>
6441 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6442 (basic_inf_threads_range): Remove.
6443 (inf_threads_range, inf_non_exited_threads_range)
6444 (safe_inf_threads_range): Use next_adapter.
6446 2019-01-10 Keith Seitz <keiths@redhat.com>
6450 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6451 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6453 2019-01-10 Keith Seitz <keiths@redhat.com>
6457 * dictionary.c (pending_to_vector): Remove.
6458 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6459 Remove _1 suffix, replacing functions of the same name. Update
6461 (dict_create_hashed, dict_create_hashed_expandable)
6462 (dict_create_linear, dict_create_linear_expandable, dict_free)
6463 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6464 Make functions static.
6466 2019-01-10 Keith Seitz <keiths@redhat.com>
6470 * dictionary.h (struct dictionary): Replace declaration with
6472 (dict_create_hashed, dict_create_hashed_expandable)
6473 (dict_create_linear, dict_create_linear_expandable)
6474 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6475 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6476 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6477 taking multidictionary argument.
6478 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6479 * block.h (struct block) <dict>: Change to multidictionary
6480 and rename `multidict'.
6481 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6482 symmisc.c: Update all dictionary references to multidictionary.
6484 2019-01-10 Keith Seitz <keiths@redhat.com>
6488 * dictionary.c: Include unordered_map.
6489 (pending_to_vector): New function.
6490 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6491 Rewrite the non-"_1" functions to take vector instead
6493 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6494 "new" _1 versions of the same name.
6495 (multidictionary): Define.
6496 (std::hash<enum language): New definition.
6497 (collate_pending_symbols_by_language, mdict_create_hashed)
6498 (mdict_create_hashed_expandable, mdict_create_linear)
6499 (mdict_create_linear_expandable, mdict_free)
6500 (find_language_dictionary, create_new_language_dictionary)
6501 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6502 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6503 (mdict_size, mdict_empty): New functions.
6504 * dictionary.h (mdict_iterator): Define.
6506 2019-01-10 Pedro Alves <palves@redhat.com>
6508 * breakpoint.c (read_uploaded_action)
6509 (create_tracepoint_from_upload): Adjust to use
6510 gdb::unique_xmalloc_ptr.
6511 * ctf.c (ctf_write_uploaded_tp):
6512 (SET_ARRAY_FIELD): Use emplace_back.
6513 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6514 * tracefile-tfile.c (tfile_write_uploaded_tp):
6515 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6516 gdb::unique_xmalloc_ptr.
6517 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6518 at_string, cond_string, cmd_strings>: Replace char pointers
6519 with gdb::unique_xmalloc_ptr.
6521 2019-01-10 Pedro Alves <palves@redhat.com>
6523 * solib-target.c (library_list_start_library): Don't xstrdup name.
6525 2019-01-10 Pedro Alves <palves@redhat.com>
6527 * mdebugread.c (parse_partial_symbols): Use
6528 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6530 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6532 * linux-fork.c (scoped_switch_fork_info)
6533 <~scoped_switch_fork_info>: Fix incorrect variable name.
6535 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6537 * linux-fork.c (scoped_switch_fork_info)
6538 <scoped_switch_fork_info>: Make explicit.
6539 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6541 2019-01-10 Tom Tromey <tom@tromey.com>
6543 * objfiles.h (objfile::reset_psymtabs): Update.
6544 * objfiles.c (objfile::objfile): Update.
6545 * psymtab.h (psymtab_storage::obstack): Update.
6546 (psymtab_storage::m_obstack): Use gdb::optional.
6547 (class psymtab_storage): Update comment. Remove objfile
6549 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6551 2019-01-10 Tom Tromey <tom@tromey.com>
6553 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6554 <free_psymtabs>: Now private.
6555 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6556 (allocate_psymtab): Use new method.
6558 2019-01-10 Tom Tromey <tom@tromey.com>
6560 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6561 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6562 * mdebugread.c (parse_partial_symbols): Use
6563 allocate_dependencies.
6564 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6565 allocate_dependencies.
6566 (process_psymtab_comp_unit_reader)
6567 (build_type_psymtab_dependencies): Likewise.
6568 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6570 2019-01-10 Tom Tromey <tom@tromey.com>
6572 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6573 PSYMBOL_SET_LANGUAGE.
6574 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6576 2019-01-10 Tom Tromey <tom@tromey.com>
6578 * psymtab.h (psymtab_storage::obstack): New method.
6579 <m_obstack>: Rename from obstack; now private.
6580 * psymtab.c (psymtab_storage): Update.
6581 * dwarf2read.c (create_addrmap_from_index)
6582 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6585 2019-01-10 Tom Tromey <tom@tromey.com>
6587 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6588 * objfiles.h (objfile::reset_psymtabs): New method.
6590 2019-01-10 Tom Tromey <tom@tromey.com>
6592 * symmisc.c (print_symbol_bcache_statistics): Update.
6593 (print_objfile_statistics): Update.
6594 * symfile.c (reread_symbols): Update.
6595 * psymtab.h (class psymtab_storage): New.
6596 * psymtab.c (psymtab_storage): New constructor.
6597 (~psymtab_storage): New destructor.
6598 (require_partial_symbols): Update.
6599 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6600 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6601 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6602 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6603 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6604 (start_psymtab_common, end_psymtab_common)
6605 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6606 (allocate_psymtab): Update.
6607 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6609 (dump_psymtab_addrmap, maintenance_print_psymbols)
6610 (maintenance_check_psymtabs): Update.
6611 (class objfile_psymtabs): Move to objfiles.h.
6612 * psympriv.h (discard_psymtab): Now inline.
6613 (psymtab_discarder::psymtab_discarder): Update.
6614 (psymtab_discarder::~psymtab_discarder): Update.
6615 (ALL_OBJFILE_PSYMTABS): Rewrite.
6616 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6617 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6619 <partial_symtabs>: New field.
6620 (class objfile_psymtabs): Move from psymtab.h. Update.
6621 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6623 (objfile::~objfile): Don't destroy psymbol_cache.
6624 * mdebugread.c (parse_partial_symbols): Update.
6625 * dwarf2read.c (create_addrmap_from_index)
6626 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6627 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6628 (add_partial_subprogram, dwarf2_ranges_read): Update.
6629 * dwarf-index-write.c (write_address_map)
6630 (write_one_signatured_type, recursively_write_psymbols)
6631 (class debug_names, class debug_names, write_psymtabs_to_index):
6634 2019-01-10 Tom Tromey <tom@tromey.com>
6636 * symtab.h (SYMBOL_SET_NAMES): Update.
6637 (symbol_set_names): Update.
6638 (MSYMBOL_SET_NAMES): Update.
6639 * symtab.c (symbol_set_names): Change argument to be an
6640 objfile_per_bfd_storage.
6641 * psymtab.c (add_psymbol_to_bcache): Update.
6642 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6644 2019-01-10 Tom Tromey <tom@tromey.com>
6646 * symtab.c (create_demangled_names_hash): Change argument to be an
6647 objfile_per_bfd_storage.
6648 (symbol_set_names): Update.
6650 2019-01-10 Tom Tromey <tom@tromey.com>
6652 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6654 * psymtab.c (init_psymbol_list): Do nothing if already called.
6655 * psympriv.h (init_psymbol_list): Add comment.
6656 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6658 * dbxread.c (dbx_symfile_read): Unconditionally call
6661 2019-01-10 Tom Tromey <tom@tromey.com>
6663 * xcoffread.c (scan_xcoff_symtab): Update.
6664 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6666 * mdebugread.c (parse_partial_symbols)
6667 (handle_psymbol_enumerators): Update.
6668 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6669 * dbxread.c (read_dbx_symtab): Update.
6670 * psympriv.h (psymbol_placement): New enum.
6671 (add_psymbol_to_list): Update.
6673 2019-01-10 Tom Tromey <tom@tromey.com>
6675 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6676 static_psymbols parameters.
6677 (scan_xcoff_symtab): Update.
6678 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6679 static_psymbols parameters.
6680 * psympriv.h (start_psymtab_common): Update.
6681 * mdebugread.c (parse_partial_symbols): Update.
6682 * dwarf2read.c (create_partial_symtab): Update.
6683 * dbxread.c (read_dbx_symtab): Update.
6684 (start_psymtab): Remove global_psymbols and static_psymbols
6687 2019-01-10 Tom Tromey <tom@tromey.com>
6689 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6690 * psymtab.c (allocate_psymtab): Add comment.
6691 * psympriv.h (allocate_psymtab): Add comment.
6692 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6694 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6696 2019-01-10 Tom Tromey <tom@tromey.com>
6698 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6700 * mipsread.c: Include mdebugread.h.
6701 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6703 * elfread.c: Include mdebugread.h.
6705 2019-01-09 Tom Tromey <tom@tromey.com>
6707 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6708 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6709 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6710 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6711 (psym_lookup_symbol, psym_find_last_source_symtab)
6712 (psym_forget_cached_source_info, psym_print_stats)
6713 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6714 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6715 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6716 (psym_find_compunit_symtab_by_address)
6717 (maintenance_print_psymbols, maintenance_info_psymtabs)
6718 (maintenance_check_psymtabs): Use ranged for.
6719 * psymtab.h (class objfile_psymtabs): New.
6720 (require_partial_symbols): Return objfile_psymtabs.
6721 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6723 2019-01-09 Tom Tromey <tom@tromey.com>
6725 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6726 (find_pc_mapped_section, list_overlays_command)
6727 (map_overlay_command, unmap_overlay_command)
6728 (simple_overlay_update): Use all_objfiles.
6729 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6730 * printcmd.c (info_symbol_command): Use all_objfiles.
6731 * objfiles.h (ALL_OBJSECTIONS): Remove.
6732 * maint.c (maintenance_translate_address): Use all_objfiles.
6733 * gcore.c (gcore_create_callback): Use all_objfiles.
6734 (objfile_find_memory_regions): Likewise.
6736 2019-01-09 Tom Tromey <tom@tromey.com>
6738 * symtab.c (find_line_symtab, info_sources_command)
6739 (make_source_files_completion_list): Use objfile_compunits.
6740 * source.c (select_source_symtab): Use objfile_compunits.
6741 * objfiles.h (struct objfile): Update comment.
6742 (ALL_OBJFILES): Remove.
6743 (ALL_FILETABS): Remove.
6744 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6747 2019-01-09 Tom Tromey <tom@tromey.com>
6749 * symmisc.c (print_objfile_statistics, dump_objfile)
6750 (maintenance_print_symbols): Use compunit_filetabs.
6751 * source.c (forget_cached_source_info_for_objfile): Use
6753 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6754 (ALL_FILETABS): Use compunit_filetabs.
6755 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6756 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6758 2019-01-09 Tom Tromey <tom@tromey.com>
6760 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6761 (compunit_filetabs): New.
6762 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6764 (info_sources_command, make_source_files_completion_list): Remove
6766 * symmisc.c (print_objfile_statistics, dump_objfile)
6767 (maintenance_print_symbols): Remove declaration.
6768 (maintenance_info_symtabs): Use compunit_filetabs.
6769 (maintenance_info_line_tables): Likewise.
6770 * source.c (select_source_symtab): Change local variable name.
6771 (forget_cached_source_info_for_objfile): Remove declaration.
6772 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6773 * objfiles.c (objfile_relocate1): Remove declaration.
6774 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6776 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6777 * coffread.c (coff_symtab_read): Remove declaration.
6778 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6781 2019-01-09 Tom Tromey <tom@tromey.com>
6783 * symtab.c (lookup_objfile_from_block)
6784 (find_pc_sect_compunit_symtab, search_symbols)
6785 (default_collect_symbol_completion_matches_break_on): Use
6787 * objfiles.h (ALL_COMPUNITS): Remove.
6788 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6789 * cp-support.c (add_symbol_overload_list_qualified): Use
6791 * ada-lang.c (ada_collect_symbol_completion_matches)
6792 (ada_add_global_exceptions): Use objfile_compunits.
6794 2019-01-09 Tom Tromey <tom@tromey.com>
6796 * source.c (select_source_symtab)
6797 (forget_cached_source_info_for_objfile): Remove declaration.
6798 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6800 * maint.c (count_symtabs_and_blocks): Remove declaration.
6801 * cp-support.c (add_symbol_overload_list_qualified): Remove
6803 * coffread.c (coff_symtab_read): Remove declaration.
6804 * symtab.c (lookup_symbol_in_objfile_symtabs)
6805 (basic_lookup_transparent_type_1): Use objfile_compunits.
6806 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6807 (info_sources_command, search_symbols)
6808 (default_collect_symbol_completion_matches_break_on)
6809 (make_source_files_completion_list): Remove declaration.
6810 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6811 (ada_collect_symbol_completion_matches)
6812 (ada_add_global_exceptions): Remove declaration.
6813 * linespec.c (iterate_over_all_matching_symtabs): Use
6815 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6816 (class objfile_compunits): New.
6817 (ALL_COMPUNITS): Use objfile_compunits.
6818 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6819 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6821 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6823 2019-01-09 Tom Tromey <tom@tromey.com>
6825 * symtab.c (search_symbols)
6826 (default_collect_symbol_completion_matches_break_on): Use
6828 * ada-lang.c (ada_lookup_simple_minsym)
6829 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6830 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6831 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6833 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6834 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6835 * objc-lang.c (find_methods): Use objfile_msymbols.
6836 (info_selectors_command, info_classes_command): Likewise.
6837 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6838 * objfiles.h (class objfile_msymbols): New.
6839 (ALL_OBJFILE_MSYMBOLS): Remove.
6840 (ALL_MSYMBOLS): Remove.
6842 2019-01-09 Tom Tromey <tom@tromey.com>
6844 * common/next-iterator.h (next_adapter): Add Iterator template
6846 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6847 (class all_objfiles_safe): New.
6848 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6849 * objfiles.c (put_objfile_before): Update comment.
6850 (add_separate_debug_objfile): Likewise.
6851 (free_all_objfiles): Use all_objfiles_safe.
6852 (objfile_purge_solibs): Likewise.
6854 2019-01-09 Tom Tromey <tom@tromey.com>
6856 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6857 (expand_symtab_containing_pc, lookup_static_symbol)
6858 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6859 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6861 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6862 * breakpoint.c (create_overlay_event_breakpoint)
6863 (create_longjmp_master_breakpoint)
6864 (create_std_terminate_master_breakpoint)
6865 (create_exception_master_breakpoint): Use all_objfiles.
6866 * linux-thread-db.c (try_thread_db_load_from_pdir)
6867 (has_libpthread): Use all_objfiles.
6868 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6869 * linespec.c (iterate_over_all_matching_symtabs)
6870 (search_minsyms_for_name): Use all_objfiles.
6871 * maint.c (maintenance_info_sections): Use all_objfiles.
6872 * main.c (captured_main_1): Use all_objfiles.
6873 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6874 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6875 * guile/scm-pretty-print.c
6876 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6877 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6878 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6879 (maintenance_print_msymbols): Use all_objfiles.
6880 * source.c (select_source_symtab): Use all_objfiles.
6881 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6882 * symfile.c (remove_symbol_file_command)
6883 (expand_symtabs_matching, map_symbol_filenames): Use
6885 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6887 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6888 * objc-lang.c (find_methods): Use all_objfiles.
6889 * objfiles.c (have_partial_symbols, have_full_symbols)
6890 (have_minimal_symbols, qsort_cmp)
6891 (default_iterate_over_objfiles_in_search_order): Use
6893 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6894 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6895 (maintenance_check_psymtabs): Use all_objfiles.
6896 (ALL_PSYMTABS): Remove.
6897 * compile/compile-object-run.c (do_module_cleanup): Use
6899 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6900 * cp-support.c (add_symbol_overload_list_qualified): Use
6902 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6904 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6905 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6907 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6908 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6909 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6911 * solib.c (solib_read_symbols): Use all_objfiles
6913 2019-01-09 Tom Tromey <tom@tromey.com>
6915 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6916 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6918 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6919 * symmisc.c (print_symbol_bcache_statistics)
6920 (print_objfile_statistics, maintenance_print_objfiles)
6921 (maintenance_info_symtabs, maintenance_check_symtabs)
6922 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6924 * source.c (forget_cached_source_info): Use all_objfiles.
6925 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6926 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6927 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6928 * objfiles.c (update_section_map): Use all_objfiles.
6929 (shared_objfile_contains_address_p): Likewise.
6930 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6931 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6933 2019-01-09 Tom Tromey <tom@tromey.com>
6935 * common/next-iterator.h: New file.
6936 * objfiles.h (class all_objfiles): New.
6937 (struct objfile_iterator): New.
6939 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6941 * NEWS: Move the description of the changed "frame", "select-frame",
6942 and "info frame" commands to the Changed commands section.
6944 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6946 * gdbtypes.c (check_stub_method_group): Remove handling of old
6948 * linespec.c (find_methods): Likewise.
6949 * stabsread.c (read_member_functions): Likewise.
6950 * valops.c (search_struct_method): Likewise.
6951 (value_struct_elt_for_reference): Likewise.
6952 * NEWS: Mention this change.
6954 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6956 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6958 * source.c (print_source_lines_base): Update line number check.
6959 (print_source_lines): New function.
6960 (source_lines_range::source_lines_range): New function.
6961 * source.h (class source_lines_range): New class.
6962 (print_source_lines): New declaration.
6964 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6966 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6968 2019-01-08 Tom Tromey <tom@tromey.com>
6969 Simon Marchi <simon.marchi@ericsson.com>
6972 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6973 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6974 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6975 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6976 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6977 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6979 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6981 * source.c (select_source_symtab): Move header comment to
6982 declaration in source.h.
6983 (forget_cached_source_info_for_objfile): Likewise.
6984 (forget_cached_source_info): Likewise.
6985 (identify_source_line): Likewise.
6986 * source.h (identify_source_line): Move declaration from symtab.h
6987 and add comment from source.c
6988 (print_source_lines): Likewise.
6989 (forget_cached_source_info_for_objfile): Likewise.
6990 (forget_cached_source_info): Likewise.
6991 (select_source_symtab): Likewise.
6992 (enum print_source_lines_flag): Move definition from symtab.h.
6993 * symtab.h (identify_source_line): Move declaration to source.h.
6994 (print_source_lines): Likewise.
6995 (forget_cached_source_info_for_objfile): Likewise.
6996 (forget_cached_source_info): Likewise.
6997 (select_source_symtab): Likewise.
6998 (enum print_source_lines_flag): Move definition to source.h.
6999 * tui/tui-hooks.c: Add 'source.h' include.
7001 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7003 * source.c (print_source_lines_base): Handle requests to print
7004 reverse line number sequences, and guard against empty lines
7007 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7009 * source.c (print_source_lines_base): Fix skip of '\r' if next
7012 2019-01-06 Tom Tromey <tom@tromey.com>
7014 * c-exp.y (struct c_parse_state) <macro_original_text,
7015 expansion_obstack>: New member.
7016 (macro_original_text, expansion_obstack): Remove globals.
7017 (scan_macro_expansion, scanning_macro_expansion)
7018 (finished_macro_expansion): Update.
7019 (scan_macro_cleanup): Remove.
7020 (yylex, c_parse): Update.
7022 2019-01-06 Tom Tromey <tom@tromey.com>
7024 * c-exp.y (struct c_parse_state) <strings>: New member.
7025 (operator_stoken): Update.
7027 2019-01-06 Tom Tromey <tom@tromey.com>
7029 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7030 (union type_stack_elt) <typelist_val>: Now a pointer to
7032 (type_stack_cleanup): Don't declare.
7033 (push_typelist): Update.
7034 * parse.c (pop_typelist): Return a std::vector.
7035 (push_typelist): Take a std::vector.
7036 (follow_types): Update. Do not free args.
7037 (type_stack_cleanup): Remove.
7038 * c-exp.y (struct c_parse_state): New.
7039 (cpstate): New global.
7040 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7041 (nonempty_typelist): Update.
7042 (func_mod): Create a new vector.
7043 (c_parse): Create a c_parse_state.
7044 (check_parameter_typelist): Do not delete params.
7045 (function_method): Update. Do not delete type_list.
7047 2019-01-06 Tom Tromey <tom@tromey.com>
7050 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7052 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7053 (print_return_value): Likewise.
7055 2019-01-05 Tom Tromey <tom@tromey.com>
7057 * contrib/cleanup_check.py: Remove.
7058 * contrib/gcc-with-excheck: Remove.
7059 * contrib/exsummary.py: Remove.
7060 * contrib/excheck.py: Remove.
7062 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7064 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7065 NULL. Initialize tpprev to NULL instead of assigning it
7066 to NULL on the next statement.
7067 * windows-nat.c (windows_delete_thread): Remove check for
7068 main_thread_id before printing thread exit notifications.
7069 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7070 Remove thread ID check against main_thread_id.
7071 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7072 windows_delete_thread.
7073 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7075 2019-01-04 Tom Tromey <tom@tromey.com>
7077 * compile/compile.c (_initialize_compile): Use upper case for
7078 metasyntactic variables.
7079 * symmisc.c (_initialize_symmisc): Use upper case for
7080 metasyntactic variables.
7081 * psymtab.c (_initialize_psymtab): Use upper case for
7082 metasyntactic variables.
7083 * demangle.c (demangle_command): Use upper case for metasyntactic
7085 (_initialize_demangler): Likewise.
7086 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7089 2019-01-03 Tom Tromey <tom@tromey.com>
7091 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7093 2019-01-03 Tom Tromey <tom@tromey.com>
7095 * python/py-symtab.c (salpy_str): Update.
7096 (struct salpy_sal_object) <symtab>: Now a PyObject.
7097 (salpy_dealloc): Update.
7098 (del_objfile_sal): Use gdbpy_ref.
7100 2019-01-03 Tom Tromey <tom@tromey.com>
7102 * python/py-type.c (convert_field): Use new_reference. Return
7104 (make_fielditem): Return gdbpy_ref.
7105 (typy_fields): Update.
7106 (typy_getitem): Update.
7107 (field_name): Return gdbpy_ref. Use new_reference.
7108 (typy_iterator_iternext): Update.
7110 2019-01-03 Tom Tromey <tom@tromey.com>
7112 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7114 2019-01-03 Tom Tromey <tom@tromey.com>
7116 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7117 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7118 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7119 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7120 (pspy_set_type_printers): Likewise.
7121 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7122 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7123 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7124 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7125 (objfpy_set_type_printers): Likewise.
7127 2019-01-03 Tom Tromey <tom@tromey.com>
7129 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7130 (gdbpy_print_stack): Use gdbpy_err_fetch.
7131 * python/python-internal.h (class gdbpy_err_fetch): New class.
7132 (class gdbpy_enter) <m_error_type, m_error_value,
7133 m_error_traceback>: Remove.
7134 <m_error>: New member.
7135 (gdbpy_exception_to_string): Don't declare.
7136 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7137 * python/py-value.c (convert_value_from_python): Use
7139 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7140 gdbpy_exception_to_string.
7141 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7142 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7145 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7147 * linux-nat.c (delete_lwp_cleanup): Delete.
7148 (struct lwp_deleter): New struct.
7149 (lwp_info_up): New typedef.
7150 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7153 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7155 * linux-fork.c (class scoped_switch_fork_info): New class.
7156 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7158 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7160 * valops.c (find_overload_match): Remove use of null_cleanup, and
7161 calls to do_cleanups.
7163 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7165 * compile/compile-cplus-types.c
7166 (compile_cplus_instance::decl_name): Handle changes to
7168 * cp-support.c (cp_func_name): Update header comment, update
7170 * cp-support.h (cp_func_name): Update return type in declaration.
7171 * valops.c (find_overload_match): Move temp_func local to top
7172 level of function and change its type. Use temp_func to hold and
7173 delete temporary string obtained from cp_func_name.
7175 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7177 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7178 gdb::char_vector, remove cleanup, and update uses of `msg`.
7180 2019-01-03 Jim Wilson <jimw@sifive.com>
7182 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7184 2019-01-02 Tom Tromey <tom@tromey.com>
7186 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7187 (tdesc_parse_xml): Remove cleanups.
7188 * target-descriptions.h (make_cleanup_free_target_description):
7190 (target_desc_deleter): New struct.
7191 (target_desc_up): New typedef.
7192 * target-descriptions.c (target_desc_deleter::operator()): Rename
7193 from free_target_description.
7194 (make_cleanup_free_target_description): Remove.
7196 2019-01-02 Tom Tromey <tom@tromey.com>
7198 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7199 constructor, destructor.
7200 (linespec_parser): Remove typedef.
7201 (~linespec_parser): Rename from linespec_parser_delete.
7202 (linespec_lex_to_end, linespec_complete_label)
7203 (linespec_complete): Update.
7204 (decode_line_full): Remove cleanups.
7205 (decode_line_1): Update.
7207 2019-01-02 Tom Tromey <tom@tromey.com>
7209 * python/python-internal.h (inferior_to_inferior_object): Change
7211 * python/py-exitedevent.c (create_exited_event_object): Update.
7212 * python/py-inferior.c (inferior_to_inferior_object): Return
7214 (python_new_inferior, python_inferior_deleted)
7215 (thread_to_thread_object, delete_thread_object)
7216 (build_inferior_list, gdbpy_selected_inferior): Update.
7217 * python/py-infthread.c (create_thread_object): Update. Also fail
7218 if inferior_to_inferior_object fails.
7220 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7222 * inferior.h (class inferior) <displaced_step_state>: New field.
7223 * infrun.h (struct displaced_step_state): Move here from
7224 infrun.c. Initialize fields, add constructor.
7225 <inf>: Remove field.
7226 <reset>: New method.
7227 * infrun.c (struct displaced_step_inferior_state): Move to
7229 (displaced_step_inferior_states): Remove.
7230 (get_displaced_stepping_state): Adust.
7231 (displaced_step_in_progress_any_inferior): Adjust.
7232 (displaced_step_in_progress_thread): Adjust.
7233 (displaced_step_in_progress): Adjust.
7234 (add_displaced_stepping_state): Remove.
7235 (get_displaced_step_closure_by_addr): Adjust.
7236 (remove_displaced_stepping_state): Remove.
7237 (infrun_inferior_exit): Call displaced_step_state.reset.
7238 (use_displaced_stepping): Don't check for NULL.
7239 (displaced_step_prepare_throw): Call
7240 get_displaced_stepping_state.
7241 (displaced_step_fixup): Don't check for NULL.
7242 (prepare_for_detach): Don't check for NULL.
7244 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7246 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7247 in case of call that did not complete.
7249 2019-01-02 Andrey Utkin <autkin@undo.io>
7251 * symfile.c (find_separate_debug_file): Fix search of debug files for
7254 2019-01-02 Tom Tromey <tom@tromey.com>
7256 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7258 * python/py-frame.c (frapy_older): Remove cast.
7259 (frapy_newer): Likewise.
7260 * python/py-breakpoint.c (local_setattro): Remove cast.
7261 * python/py-arch.c (archpy_name): Remove local variable.
7262 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7264 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7266 * unittests/basic_string_view/element_access/char/empty.cc:
7267 Fix year range in copyright header.
7269 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7271 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7273 <operator==>: Update with for removed field.
7275 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7276 <isa_features>: ...this.
7277 <abi_features>: New field.
7278 (riscv_isa_flen): Update comment.
7279 (riscv_abi_xlen): New declaration.
7280 (riscv_abi_flen): New declaration.
7281 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7283 (riscv_abi_xlen): New function.
7284 (riscv_isa_flen): Update to get answer from isa_features.
7285 (riscv_abi_flen): New function.
7286 (riscv_has_fp_abi): Update to get answer from abi_features.
7287 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7289 (riscv_call_info) <xlen, flen>: Update comment.
7290 (riscv_call_arg_struct): Remove invalid assertions
7291 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7293 (riscv_gdbarch_init): Gather isa features and abi features
7294 separately, ensure both match on the gdbarch when reusing an old
7295 gdbarch. Relax an error check to allow 32-bit abi float to run on
7296 a target with 64-bit float hardware.
7298 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7300 * source.c (search_command_helper): Stop reverse search
7301 when line 1 has been searched.
7303 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7305 * record-full.c (record_full_base_target::close): Rewrite
7306 record_full_core_buf_list free logic.
7308 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7310 * break-catch-syscall.c (print_one_catch_syscall): xfree
7313 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7315 * top.c (print_gdb_version): Update Copyright year in version
7318 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7320 Update copyright year range in all GDB files.
7322 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7324 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7326 For older changes see ChangeLog-2018.
7332 version-control: never