1 2019-06-22 Tom Tromey <tom@tromey.com>
3 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7 2019-06-22 Tom de Vries <tdevries@suse.de>
9 * dwarf2read.c (create_addrmap_from_aranges)
10 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
13 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
15 * dwarf2read.h (dwarf2_section_info_def): Remove.
16 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
17 * dwarf2read.c (struct dwo_sections) <types>: Change type to
18 std::vector<dwarf2_section_info>.
19 (struct dwo_file) <~dwo_file>: Remove.
20 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
22 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
23 (dwarf2_read_debug_names): Likewise.
24 (create_debug_types_hash_table): Change parameter type to
25 array_view, adjust code accordingly.
26 (dwarf2_locate_dwo_sections): Adjust to std::vector.
27 (partial_die_info::fixup): Likewise.
28 (determine_prefix): Likewise.
29 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
31 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
33 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
35 <~dwo_file>: Remove call to gdb_bfd_unref.
36 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
39 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
41 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
43 * dwarf2read.c (struct dwo_file): Initialize fields.
45 (free_dwo_file): Remove, move content to ~dwo_file.
46 (struct dwo_file_deleter): Remove.
47 (dwo_file_up>: Remove custom deleter.
48 (free_dwo_files): Remove.
49 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
51 (process_skeletonless_type_units): Call unique_ptr::get.
52 (allocate_dwo_file_hash_table): Add deleter to created hash
53 table. Change return type to htab_up.
54 (lookup_dwo_file_slot): Don't memset dwo_file, call
56 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
57 (create_dwo_unit_in_dwp_v2): Likewise.
58 (open_and_init_dwo_file): Likewise.
59 (free_dwo_file_from_slot): Remove.
61 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
63 * dwarf2read.h (struct dwarf2_section_info) <readin,
64 is_virtual>: Change type to bool.
65 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
68 2019-06-19 Tom Tromey <tom@tromey.com>
70 * tui/tui-data.h (tui_init_content_element): Don't declare.
72 2019-06-19 Tom Tromey <tom@tromey.com>
74 * tui/tui-data.h (tui_init_win_info): Don't declare.
76 2019-06-19 Tom de Vries <tdevries@suse.de>
78 * dwarf2read.h (abstract_to_concrete): Change type to
79 std::unordered_map<sect_offset, std::vector<sect_offset>,
80 gdb::hash_enum<sect_offset>>.
82 2019-06-19 Tom Tromey <tromey@adacore.com>
84 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
85 EVAL_AVOID_SIDE_EFFECTS specially.
87 2019-06-19 Tom Tromey <tromey@adacore.com>
89 * source-cache.c (highlighter): New global.
90 (source_cache::get_source_lines): Create a highlighter on demand.
92 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
94 * defs.h (deprecated_interactive_hook): Delete declaration.
95 * interps.c (clear_interpreter_hooks): Remove use of
96 deprecated_interactive_hook.
97 * top.c (deprecated_interactive_hook): Delete definition.
98 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
100 2019-06-18 Tom de Vries <tdevries@suse.de>
103 * dwarf2read.h (abstract_to_concrete): Change type from
104 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
105 std::unordered_map<sect_offset, std::vector<sect_offset>>.
106 * dwarf2read.c (read_variable): Update.
107 (dwarf2_fetch_die_loc_sect_off): Update.
109 2019-06-17 Tom de Vries <tdevries@suse.de>
112 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
113 accessing parent[parent_len - 1].
115 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
118 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
119 call dtrace_process_dof with NULL dof.
121 2019-06-16 Tom de Vries <tdevries@suse.de>
124 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
126 2019-06-16 Tom Tromey <tom@tromey.com>
128 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
129 (make_all_visible): Use address of member.
131 2019-06-16 Tom Tromey <tom@tromey.com>
133 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
134 (tui_free_window, free_content, free_content_elements): Remove
136 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
138 * tui/tui-regs.c (tui_show_register_group)
139 (tui_display_registers_from, tui_display_reg_element_at_line):
140 Remove unnecessary cast.
142 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
144 * linux-nat.c (normal_mask): Delete.
145 (_initialize_linux_nat): Don't initialise normal_mask.
147 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
150 * dwarf-index-write.h (write_psymtabs_to_index): Add
151 dwz_basename parameter.
152 * dwarf-index-write.c (write_gdbindex): Move file writing to
153 write_gdbindex_1. Change return type void.
154 (assert_file_size): Move up, remove filename parameter.
155 (write_gdbindex_1): New function.
156 (write_debug_names): Change return type to void, call
158 (struct index_wip_file): New struct.
159 (write_psymtabs_to_index): Add dwz_basename parameter. Move
160 file logic to index_wip_file. Write index for dwz file if
162 (save_gdb_index_command): Pass basename of dwz file, if present.
163 * dwarf-index-cache.c (index_cache::store): Obtain and pass
164 build-id of dwz file, if present.
165 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
166 (dwarf2_get_dwz_file): Likewise.
167 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
168 (dwarf2_get_dwz_file): Likewise.
170 2019-06-16 Tom Tromey <tom@tromey.com>
172 * coffread.c (process_coff_symbol): Use xstrdup.
173 * value.c (create_internalvar): Use xstrdup.
175 2019-06-16 Tom Tromey <tom@tromey.com>
177 * valops.c (value_cast, value_slice): Remove unnecessary cast.
178 * breakpoint.c (stopin_command, stopat_command)
179 (until_break_command, decode_location_default): Remove unnecessary
181 * utils.c (subset_compare): Remove unnecessary cast.
182 * ada-lang.c (ada_update_initial_language): Remove unnecessary
184 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
186 * infcmd.c (path_command): Remove unnecessary cast.
187 * coffread.c (decode_type): Remove unnecessary cast.
188 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
189 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
190 * tui/tui-stack.c (tui_show_locator_content)
191 (tui_show_frame_info): Remove unnecessary cast.
192 * tui/tui-win.c (tui_scroll_forward_command)
193 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
194 (parse_scrolling_args): Remove unnecessary cast.
195 * tui/tui-data.c (init_win_info, tui_del_window)
196 (tui_free_window, tui_del_data_windows, tui_free_data_content)
197 (free_content_elements): Remove unnecessary cast.
198 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
200 * tui/tui-source.c (tui_set_source_content)
201 (tui_vertical_source_scroll): Remove unnecessary cast.
202 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
204 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
205 * tui/tui-regs.c (tui_display_registers_from)
206 (tui_display_register): Remove unnecessary cast.
207 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
208 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
209 (make_visible): Remove unnecessary cast.
210 * tui/tui-winsource.c (tui_erase_source_content)
211 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
213 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
214 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
215 * stabsread.c (read_type, read_array_type, read_range_type):
216 Remove unnecessary cast.
217 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
218 (parse_symbol, parse_type, upgrade_type, parse_external)
219 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
221 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
223 2019-06-16 Tom Tromey <tom@tromey.com>
225 * tui/tui-data.c (tui_alloc_generic_win_info)
226 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
229 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
230 Andrew Burgess <andrew.burgess@embecosm.com>
232 * f-typeprint.c (f_print_type): Don't return early for not
233 associated or not allocated types.
234 (f_type_print_varspec_suffix): Add print_rank parameter and print
235 ranks of array types in case they dangling.
236 (f_type_print_base): Add print_rank parameter.
238 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
240 * NEWS: Mention new MI commands.
241 * break-catch-throw.c (enum exception_event_kind): Move to
243 (print_mention_exception_catchpoint): Output text as a single
245 (catch_exception_command_1): Rename to...
246 (catch_exception_event): ...this, make non-static, update header
247 command, and change some parameter types.
248 (catch_catch_command): Update for changes to
249 catch_exception_command_1.
250 (catch_throw_command): Likewise.
251 (catch_rethrow_command): Likewise.
252 * breakpoint.c (enum exception_event_kind): Delete.
253 * breakpoint.h (enum exception_event_kind): Moved here from
255 (catch_exception_event): Declare.
256 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
257 (mi_cmd_catch_throw): New function.
258 (mi_cmd_catch_rethrow): New function.
259 (mi_cmd_catch_catch): New function.
260 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
261 'catch-catch' entries.
262 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
263 (mi_cmd_catch_rethrow): Declare.
264 (mi_cmd_catch_catch): Declare.
266 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
268 * annotate.c (annotate_source_line): Change return type to void,
269 update implementation to match.
270 * annotate.h (annotate_source_line): Change return type to void,
271 update header comment.
272 * stack.c (print_frame_info): Don't change what frame information
273 is printed based on whether annotations are on or not.
275 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
277 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
278 (annotate_source): Make static.
279 (annotate_source_line): Moved from source.c and renamed from
280 identify_source_line. Update the return type.
281 * annotate.h (annotate_source): Delete declaration.
282 (annotate_source_line): Declaration moved from source.h, and
283 renamed from identify_source_line. Return type updated.
284 * source.c (identify_source_line): Moved to annotate.c and renamed
285 to annotate_source_line.
286 (info_line_command): Remove check of annotation_level.
287 * source.h (identify_source_line): Move declaration to annotate.h
288 and rename to annotate_source_line.
289 * stack.c: Add 'annotate.h' include.
290 (print_frame_info): Remove check of annotation_level before
291 calling annotate_source_line.
293 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
295 * source-cache.c (source_cache::get_plain_source_lines): Use
296 open_source_file_with_line_charpos instead of just
297 open_source_file, remove call to find_source_lines.
298 (source_cache::get_source_lines): Likewise.
299 * source.c (find_source_lines): Make static.
300 (get_filename_and_charpos): Renamed into...
301 (open_source_file_with_line_charpos): ..this along with changes to
302 return a scoped_fd, and some other minor clean ups.
303 (identify_source_line): Use open_source_file_with_line_charpos.
304 (search_command_helper): Use open_source_file_with_line_charpos
305 instead of just open_source_file, remove call to
307 * source.h (open_source_file_with_line_charpos): Declare new
309 (find_source_lines): Delete declaration.
311 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
313 * source.c (get_filename_and_charpos): Remove fullname
315 (identify_source_line): Update call to get_filename_and_charpos.
317 2019-06-14 Tom Tromey <tromey@adacore.com>
320 * ui-style.h (skip_ansi_escape): Update comment.
321 * ui-file.h (class no_terminal_escape_file): New class.
322 * ui-file.c (no_terminal_escape_file::write)
323 (no_terminal_escape_file::puts): New methods.
324 * cli/cli-logging.c (handle_redirections): Use
325 no_terminal_escape_file.
327 2019-06-14 Tom Tromey <tromey@adacore.com>
329 * NEWS: Move convenience variable news above Python news.
331 2019-06-14 Tom Tromey <tom@tromey.com>
333 * gnulib: Move directory to top-level.
334 * configure.ac: Don't configure gnulib.
335 * configure: Rebuild.
336 * common/common-defs.h: Use new path to gnulib.
337 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
339 (INCGNU): Look in new gnulib location.
340 (HFILES_NO_SRCDIR): Remove gnulib files.
341 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
342 (generated_files): Remove GNULIB_H.
343 ($(LIBGNU), all-lib): Remove targets.
344 (distclean): Don't mention GNULIB_BUILDDIR.
345 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
347 2019-06-14 Tom Tromey <tromey@adacore.com>
349 * symfile.c (add_symbol_file_command): Remove obsolete comment.
350 Warn if symbol file does not provide any symbols.
352 2019-06-14 Tom Tromey <tromey@adacore.com>
354 * source.c (find_and_open_source): Respect basenames_may_differ.
356 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
358 * annotate.c (annotate_breakpoints_invalid): Make use of
359 scoped_restore_terminal_state.
360 (annotate_frames_invalid): Likewise.
362 2019-06-14 Tom Tromey <tromey@adacore.com>
364 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
365 allow assignment to an internalvar.
367 2019-06-14 Tom Tromey <tromey@adacore.com>
369 * ada-lex.l: Allow "_" in attribute names.
371 2019-06-14 Tom Tromey <tromey@adacore.com>
374 * regcache.c (registers_changed): Don't call alloca.
375 * top.c (execute_command): Don't call alloca.
377 2019-06-13 Pedro Alves <palves@redhat.com>
379 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
380 'expression'. When parsing an expression, error out if there's
381 junk after "unlimited".
382 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
383 (do_set_command): Adjust calls to is_unlimited_literal.
385 2019-06-13 Pedro Alves <palves@redhat.com>
387 * compile/compile.c (make_compile_options_def_group): Add braces
388 around array_view initializer.
389 * thread.c (make_thread_apply_all_options_def_group)
390 (make_thread_apply_all_options_def_group): Likewise.
392 2019-06-13 Pedro Alves <palves@redhat.com>
394 * NEWS (New commands): Mention "maint test-options
395 require-delimiter", "maint test-options unknown-is-error", "maint
396 test-options unknown-is-operand" and "maint show
397 test-options-completion-result".
398 (New command options, command completion): New section.
399 (Completion improvements): New section.
400 Mention that you can abbreviate "unlimited".
402 2019-06-13 Pedro Alves <palves@redhat.com>
404 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
405 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
406 * unittests/cli-utils-selftests.c (test_parse_flags)
407 (test_parse_flags_qcs): Delete.
408 (test_cli_utils): Don't call deleted functions.
410 2019-06-13 Pedro Alves <palves@redhat.com>
412 * thread.c: Include "cli/cli-option.h".
413 (tp_array_compar_ascending): Global.
414 (tp_array_compar): Delete function.
415 (tp_array_compar_ascending, tp_array_compar_descending): New
417 (ascending_option_def, qcs_flag_option_def)
418 (thr_qcs_flags_option_defs)
419 (make_thread_apply_all_options_def_group)
420 (make_thread_apply_options_def_group): New.
421 (thread_apply_all_command): Use gdb::option::process_options.
422 (thread_apply_command_completer)
423 (thread_apply_all_command_completer): New.
424 (thread_apply_command): Use gdb::option::process_options.
425 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
426 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
427 to generate help text of "thread apply". Adjust "taas"'s help.
428 * tid-parse.c (tid_range_parser::in_thread_range): New method.
429 * tid-parse.h (tid_range_parser::in_thread_range): New method.
431 2019-06-13 Pedro Alves <palves@redhat.com>
433 * thread.c (thread_apply_command): Check for invalid TID with
434 isdigit instead of !isalpha.
436 2019-06-13 Pedro Alves <palves@redhat.com>
438 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
439 (validate_flags_qcs): New.
440 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
441 (validate_flags_qcs): Declare.
442 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
443 (make_frame_apply_options_def_group): New.
444 (frame_apply_command_count): Process options with
445 gdb::option::process_options.
446 (frame_apply_completer): New.
447 (frame_apply_level_completer, frame_apply_all_completer)
448 (frame_apply_completer): New.
449 (_initialize_stack): Update help of "frame apply", "frame apply
450 level", "frame apply all" and "faas" to mention supported options
451 and install command completers.
452 * stack.h (frame_apply_all_completer): Declare.
453 * thread.c: Include "stack.h".
454 (tfaas_command): Add "--".
455 (_initialize_thread): Update help "tfaas" to mention supported
456 options and install command completer.
458 2019-06-13 Pedro Alves <palves@redhat.com>
460 * completer.c (complete_nested_command_line): New.
461 (gdb_completion_word_break_characters_throw): Add assertion.
462 * completer.h (complete_nested_command_line): Declare.
464 2019-06-13 Pedro Alves <palves@redhat.com>
466 * stack.c (parse_backtrace_qualifiers): New.
467 (backtrace_command): Use it.
468 (backtrace_command_completer): Complete on qualifiers.
470 2019-06-13 Pedro Alves <palves@redhat.com>
472 * frame.c: Include "cli/cli-option.h.
473 (user_set_backtrace_options): New.
474 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
476 (get_prev_frame): Adjust.
477 (boolean_option_def, uinteger_option_def)
478 (set_backtrace_option_defs): New.
479 (_initialize_frame): Adjust and use
480 gdb::option::add_setshow_cmds_for_options to install "set
481 backtrace past-main" and "set backtrace past-entry".
482 * frame.h: Include "cli/cli-option.h".
483 (struct frame_print_options): Forward declare.
484 (print_frame_arguments_all, print_frame_arguments_scalars)
485 (print_frame_arguments_none): Declare.
486 (print_entry_values): Delete declaration.
487 (struct frame_print_options, user_frame_print_options): New.
488 (struct set_backtrace_options): New.
489 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
490 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
491 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
492 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
493 (list_args_or_locals): Add frame_print_options parameter.
494 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
495 * python/py-framefilter.c (enumerate_args): Pass down
496 USER_FRAME_PRINT_OPTIONS.
497 * stack.c: Include "cli/cli-option.h".
498 (print_frame_arguments_all, print_frame_arguments_scalars)
499 (print_frame_arguments_none): Declare.
500 (print_raw_frame_arguments, print_entry_values): Delete.
501 (user_frame_print_options): New.
502 (boolean_option_def, enum_option_def, frame_print_option_defs):
504 (struct backtrace_cmd_options): New.
505 (bt_flag_option_def): New.
506 (backtrace_command_option_defs): New.
507 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
508 (print_frame_arg, read_frame_arg, print_frame_args)
509 (print_frame_info, print_frame): Add frame_print_options parameter
511 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
512 (backtrace_command_1): Add frame_print_options and
513 backtrace_cmd_options parameters and use them.
514 (make_backtrace_options_def_group): New.
515 (backtrace_command): Process command options with
516 gdb::option::process_options.
517 (backtrace_command_completer): New.
518 (_initialize_stack): Extend "backtrace"'s help to mention
519 supported options. Install completer for "backtrace".
520 Install some settings commands with add_setshow_cmds_for_options.
522 2019-06-13 Pedro Alves <palves@redhat.com>
524 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
525 and that "set/show print raw frame-arguments" are now deprecated.
527 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
529 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
530 * stack.c (_initialize_stack): Install "set/show print
531 raw-frame-arguments", and deprecate "set/show print raw
533 * valprint.c (_initialize_valprint): Deprecate "set/show print
536 2019-06-13 Pedro Alves <palves@redhat.com>
538 * compile/compile.c (struct compile_options): New.
539 (compile_flag_option_def, compile_command_option_defs)
540 (make_compile_options_def_group): New.
541 (compile_file_command): Handle options with
542 gdb::option::process_options.
543 (compile_file_command_completer): New function.
544 (compile_code_command): Handle options with
545 gdb::option::process_options.
546 (compile_code_command_completer): New function.
547 (_initialize_compiler): Install completers for "compile code" and
548 "compile file". Mention available options in "compile code" and
549 "compile code"'s help.
550 * completer.c (advance_to_completion_word): New, factored out from
552 (advance_to_expression_complete_word_point): ... this.
553 (advance_to_filename_complete_word_point): New.
554 * completer.h (advance_to_filename_complete_word_point): New
557 2019-06-13 Pedro Alves <palves@redhat.com>
559 * compile/compile.c: Include "cli/cli-option.h".
560 (compile_print_value): Scope data pointer is now a
561 value_print_options pointer; adjust.
562 (compile_print_command): Process options. Scope data pointer is
563 now a value_print_options pointer; adjust.
564 (_initialize_compile): Update "compile print"'s help to include
565 supported options. Install a completer for "compile print".
566 * cp-valprint.c (show_vtblprint, show_objectprint)
567 (show_static_field_print): Delete.
568 (_initialize_cp_valprint): Don't install "set print
569 static-members", "set print vtbl", "set print object" here.
570 * printcmd.c: Include "cli/cli-option.h" and
571 "common/gdb_optional.h".
572 (print_command_parse_format): Rework to fill in a
573 value_print_options instead of a format_data.
574 (print_value): Change parameter type from format_data pointer to
575 value_print_options reference. Adjust.
576 (print_command_1): Process options. Adjust to pass down a
578 (print_command_completer): New.
579 (_initialize_printcmd): Install print_command_completer as
580 handle_brkchars completer for the "print" command. Update
581 "print"'s help to include supported options.
582 * valprint.c: Include "cli/cli-option.h".
583 (show_vtblprint, show_objectprint, show_static_field_print): Moved
584 here from cp-valprint.c.
585 (boolean_option_def, uinteger_option_def)
586 (value_print_option_defs, make_value_print_options_def_group):
587 New. Use gdb::option::add_setshow_cmds_for_options to install
588 "set print elements", "set print null-stop", "set print repeats",
589 "set print pretty", "set print union", "set print array", "set
590 print address", "set print symbol", "set print array-indexes".
591 * valprint.h: Include <string> and "cli/cli-option.h".
592 (make_value_print_options_def_group): Declare.
593 (print_value): Change parameter type from format_data pointer to
594 value_print_options reference.
595 (print_command_completer): Declare.
597 2019-06-13 Pedro Alves <palves@redhat.com>
599 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
600 (COMMON_SFILES): Add maint-test-settings.c.
601 * cli/cli-decode.c (boolean_enums): New global, factored out from
603 (add_setshow_boolean_cmd): ... here.
604 * cli/cli-decode.h (boolean_enums): Declare.
605 * cli/cli-option.c: New file.
606 * cli/cli-option.h: New file.
607 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
608 factored out from ...
609 (parse_cli_boolean_value(const char *)): ... this.
610 (is_unlimited_literal): Change parameter type to pointer to
611 pointer. Adjust and advance ARG pointer.
612 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
613 (parse_cli_var_enum): New, factored out from ...
614 (do_set_command): ... this. Adjust.
615 * cli/cli-setshow.h (parse_cli_boolean_value)
616 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
617 (parse_cli_var_enum): Declare.
618 * cli/cli-utils.c: Include "cli/cli-option.h".
620 * cli/cli-utils.h (get_ulongest): Declare.
621 (check_for_argument): New overloads.
622 * maint-test-options.c: New file.
624 2019-06-13 Pedro Alves <palves@redhat.com>
626 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
627 parse a range if "-" is at the end of the string.
629 2019-06-13 Pedro Alves <palves@redhat.com>
631 * cli/cli-setshow.c (parse_auto_binary_operation)
632 (parse_cli_boolean_value): Don't allow "o".
634 2019-06-13 Pedro Alves <palves@redhat.com>
636 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
637 * NEWS: Mention maint test-settings KIND.
638 * maint-test-settings.c: New file.
640 2019-06-13 Pedro Alves <palves@redhat.com>
642 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
644 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
647 2019-06-13 Pedro Alves <palves@redhat.com>
649 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
652 2019-06-13 Pedro Alves <palves@redhat.com>
654 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
656 2019-06-13 Pedro Alves <palves@redhat.com>
658 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
659 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
661 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
662 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
664 (check_for_argument): Skip spaces after argument.
666 2019-06-13 Pedro Alves <palves@redhat.com>
668 * thread.c (thread_apply_command): Adjust TID parsing.
669 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
670 detected before end of string.
671 (tid_is_in_list): Error out if LIST is invalid.
673 2019-06-13 Pedro Alves <palves@redhat.com>
675 * completer.c (complete_line_internal_1): Rewind completion word
677 (completion_tracker::advance_custom_word_point_by): Change
678 parameter type to int.
679 * completer.h (completion_tracker::advance_custom_word_point_by):
682 2019-06-13 Pedro Alves <palves@redhat.com>
684 * completer.c (advance_to_completion_word): Handle delimiters.
686 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
688 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
690 2019-06-11 Tom Tromey <tom@tromey.com>
692 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
693 (xmalloc_failed): Move to alloc.c.
695 * Makefile.in (COMMON_SFILES): Add alloc.c.
697 2019-06-11 Tom Tromey <tom@tromey.com>
699 * nat/linux-waitpid.c: Don't include server.h.
700 (linux_debug): Remove.
701 (my_waitpid): Update.
703 2019-06-11 Tom Tromey <tromey@adacore.com>
705 * infcall.c (_initialize_infcall): Remove trailing newline from
707 * user-regs.c (_initialize_user_regs): Remove trailing newline
709 * typeprint.c (_initialize_typeprint): Remove trailing newline
711 * reverse.c (_initialize_reverse): Remove trailing newlines from
713 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
715 * language.c (add_set_language_command): Remove trailing newline
717 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
719 * disasm.c (_initialize_disasm): Remove trailing newline from
721 * top.c (init_main): Remove trailing newline from help.
722 * interps.c (_initialize_interpreter): Remove trailing newline
724 * btrace.c (_initialize_btrace): Remove trailing newlines from
726 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
728 * python/python.c (_initialize_python): Remove trailing newline
730 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
732 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
733 from help. Reformat some text.
734 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
736 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
739 2019-06-11 Tom Tromey <tromey@adacore.com>
741 * darwin-nat.c (darwin_decode_exception_message)
742 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
744 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
746 * valops.c (value_slice): Check for not allocated or not
749 2019-06-10 Tom de Vries <tdevries@suse.de>
752 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
753 sure an empty slot (defined by a 32-bit zero pair) is recognized as
756 2019-06-10 Tom de Vries <tdevries@suse.de>
759 * linespec.c (linespec_lexer_lex_string): Remove incorrect
760 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
762 2019-06-10 Tom de Vries <tdevries@suse.de>
765 * symtab.c (struct demangled_name_entry): Add language field.
766 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
767 static minimal symbol". Set and use language field.
769 2019-06-10 Tom Tromey <tromey@adacore.com>
771 * ada-lang.c (_initialize_ada_language): Update help text.
773 2019-06-10 Tom Tromey <tromey@adacore.com>
775 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
777 * guile/guile.c (handle_boot_error): Don't end warning with a
779 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
780 warning with a newline.
781 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
783 (s12z_frame_cache): Likewise.
784 * dwarf-index-cache.c (index_cache::store): Don't end warning with
786 * solib-svr4.c (disable_probes_interface): Don't end warning with
788 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
790 * python/python.c (do_finish_initialization): Don't end warning
793 2019-06-10 Tom Tromey <tom@tromey.com>
795 * python/py-breakpoint.c (gdbpy_breakpoint_created)
796 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
799 2019-06-10 Tom Tromey <tromey@adacore.com>
801 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
803 (elf_new_init): Don't call stabsread_new_init.
804 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
805 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
806 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
808 2019-06-10 Tom de Vries <tdevries@suse.de>
812 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
814 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
816 * source.c (find_and_open_source): Also rewrite relative file
819 2019-04-26 Amos Bird <amosbird@gmail.com>
821 * annotate.c (annotate_thread_exited): Add "thread-exited"
824 2019-06-06 Tom Tromey <tromey@adacore.com>
826 * maint.h (class scoped_command_stats): Use
827 DISABLE_COPY_AND_ASSIGN.
828 <print_time>: New method.
829 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
831 (scoped_command_stats::print_time): New method.
833 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
835 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
836 instructions of lengths 6 or 8 bytes.
838 2019-06-04 Pedro Alves <palves@redhat.com>
840 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
842 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
843 * breakpoint.c (condition_completer): Likewise.
844 * cli/cli-dump.c (scan_expression): Likewise.
845 * common/filestuff.c (mkdir_recursive): Likewise.
846 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
847 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
848 (gdb_abspath): Likewise.
849 * compile/compile-cplus-types.c
850 (compile_cplus_instance::decl_name): Likewise.
851 * completer.c (complete_explicit_location):
852 (signal_completer, reg_or_group_completer_1): Likewise.
853 * cp-support.c (cp_remove_params_if_any): Likewise.
854 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
855 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
856 * infcmd.c (strip_bg_char): Likewise.
857 * linespec.c (copy_token_string): Likewise.
858 * mi/mi-main.c (output_cores): Likewise.
859 * psymtab.c (psymtab_search_name):
860 * symfile.c (test_set_ext_lang_command): Likewise.
861 * target.c (target_fileio_read_stralloc): Likewise.
862 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
863 * value.c (complete_internalvar): Likewise.
865 2019-06-04 Christian Biesinger <cbiesinger@google.com>
867 Add objfile property to gdb.Type.
868 * NEWS: Mention Python API addition.
869 * python/py-type.c (typy_get_objfile): New method.
871 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
873 * NEWS: Mention the new set|show style [title|highlight].
874 Mention changes to "show style", "help" and "apropos".
876 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
878 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
879 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
880 instead of print_help_for_command.
881 (print_doc_of_command): New function.
882 (help_list): Add 'apropos -v word' suggestion.
883 (print_help_for_command): Style the command name using title style.
884 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
885 (_initialize_cli_cmds): Describe -v in apropos_command help.
887 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
889 * cli/cli-style.h (cli_style_option): Add name in constructor,
890 add m_name class member, add constructor with intensity,
891 add name class function.
892 (cli_style_option::add_setshow_commands): Remove name argument.
893 (highlight_style, title_style): New styles.
894 * cli/cli-style.c (do_show): New function that shows a style
895 characteristic styling the style name with itself.
896 (set_style_name): New function.
897 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
898 Update all callers according to the changes in cli/cli-style.h.
899 * utils.h (fputs_highlighted): New function.
900 * utils.c (fputs_highlighted): Likewise.
902 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
904 * NEWS: Mention new pipe command and new convenience variables.
906 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
908 * cli/cli-cmds.c (pipe_command): New function.
909 (_initialize_cli_cmds): Call add_com for pipe_command.
910 Define | as an alias for pipe.
911 (exit_status_set_internal_vars): New function.
912 (shell_escape): Call exit_status_set_internal_vars.
913 cli/cli-decode.c (find_command_name_length): Recognize | as
914 a single character command.
916 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
918 * gdbcmd.h (execute_command_to_ui_file): New declaration.
919 top.c (execute_command_to_ui_file): New function, mostly a copy
920 of execute_command_to_string.
921 (execute_command_to_string): Implement by calling
922 execute_command_to_ui_file.
924 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
926 * top.h (saved_command_line): Remove declaration.
927 * top.c (previous_saved_command_line, previous_repeat_arguments):
929 (saved_command_line): Make static, define together with other
931 (dont_repeat): Clear repeat_arguments.
932 (repeat_previous, get_saved_command_line, save_command_line):
934 (gdb_init): Initialize saved_command_line
935 and previous_saved_command_line.
936 * main.c (captured_main_1): Remove saved_command_line initialization.
937 * event-top.c (handle_line_of_input): Update to use
938 the new 'repeat' related functions instead of direct access to
940 * command.h (repeat_previous, get_saved_command_line,
941 save_command_line): New declarations.
942 (dont_repeat): Add comment.
944 2019-05-30 Tom Tromey <tromey@adacore.com>
946 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
948 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
950 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
953 * completer.c (complete): Initialize variable word.
955 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
957 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
958 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
959 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
960 'body' is NULL to the outter 'if', protecting the '!is_define'
963 2019-05-29 Tom Tromey <tromey@adacore.com>
965 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
966 (dwarf_unknown): New function.
967 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
968 (dwarf_type_encoding_name): Use dwarf_unknown.
970 2019-05-29 Tom Tromey <tromey@adacore.com>
973 * cp-valprint.c (cp_print_value_fields): Call
974 cp_print_static_field inside "try".
976 2019-05-29 Tom Tromey <tromey@adacore.com>
978 * inflow.c (struct terminal_info): Add default operator=.
979 * configure: Rebuild.
980 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
981 -Wdeprecated-copy-dtor, -Wredundant-move.
983 2019-05-29 Tom Tromey <tromey@adacore.com>
986 * infcmd.c (print_return_value_1): Handle finish_print
988 (show_print_finish): New function.
989 (_initialize_infcmd): Add "set/show print finish" commands.
990 * valprint.c (user_print_options): Initialize new member.
991 * valprint.h (struct value_print_options) <finish_print>: New
994 2019-05-28 Tom Tromey <tromey@adacore.com>
996 * ada-lang.c (ada_remove_Xbn_suffix)
997 (find_old_style_renaming_symbol)
998 (parse_old_style_renaming): Remove.
999 (ada_find_renaming_symbol): Don't call
1000 find_old_style_renaming_symbol.
1001 (ada_is_renaming_symbol): Rename from
1002 ada_find_renaming_symbol. Remove "block" parameter. Return
1004 (ada_read_var_value): Update and simplify.
1005 * ada-exp.y (write_var_or_type): Remove old code.
1007 2019-05-28 Alan Hayward <alan.hayward@arm.com>
1009 * event-top.c: Remove include comment.
1010 * inflow.c (class scoped_ignore_sigttou): Move from here...
1011 * inflow.h (class scoped_ignore_sigttou): ...to here.
1012 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
1013 * top.c: Remove include comment.
1015 2019-05-27 Tom Tromey <tom@tromey.com>
1019 2019-05-22 Tom Tromey <tromey@adacore.com>
1021 * target.c (target_follow_exec): Constify parameter.
1022 * target-delegates.c: Rebuild.
1023 * remote.c (remote_target::follow_exec): Constify parameter.
1024 * infrun.c (follow_exec): Constify parameter.
1025 * target.h (struct target_ops) <follow_exec>: Constify parameter.
1026 (target_follow_exec): Likewise.
1028 2019-05-22 Alan Hayward <alan.hayward@arm.com>
1030 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
1031 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
1033 2019-05-22 Alan Hayward <alan.hayward@arm.com>
1035 * NEWS: Add debugredirect and testsuite sections.
1037 2019-05-22 Simon Cook <simon.cook@embecosm.com>
1039 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
1040 target descriptions using exclusively floating point register name
1043 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1046 * f-lang.c (build_fortran_types): Handle the case where
1047 gdbarch_floatformat_for_type returns a nullptr.
1049 2019-05-21 Tom de Vries <tdevries@suse.de>
1052 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
1054 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1057 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
1059 * i386-tdep.c (i386_floatformat_for_type): Use
1060 floatformats_ia64_quad for the 16-byte floating point component
1061 within a fortran 32-byte complex number.
1063 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1065 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
1066 delete default constructor.
1067 (find_partial_die): Update to return const struct.
1068 (partial_die_parent_scope): Move variable declaration into scope
1069 of its use and change its type to auto.
1070 (guess_partial_die_structure_name): Likewise.
1071 (partial_die_info::fixup): Likewise.
1073 2019-05-17 Tom Tromey <tromey@adacore.com>
1075 * source.c (find_and_open_source): Remove cast.
1077 2019-05-17 Tom Tromey <tromey@adacore.com>
1079 * annotate.c (annotate_source): Make "filename" const.
1080 * annotate.h (annotate_source): Use const.
1082 2019-05-17 Alan Hayward <alan.hayward@arm.com>
1084 * disasm.c (set_disassembler_options): Send errors to stderr.
1086 2019-05-17 Alan Hayward <alan.hayward@arm.com>
1088 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
1089 (cli_interp_base::set_logging): Check debug_redirect.
1090 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
1091 * cli/cli-logging.c (debug_redirect): Add static variable.
1092 (pop_output_files): Add default param.
1093 (handle_redirections): Print debug setting.
1094 (show_logging_command): Likewise.
1095 (_initialize_cli_logging): Add debugredirect command.
1096 * interps.c (current_interp_set_logging): Add debug_redirect
1098 * interps.h (set_logging): Add debug_redirect parameter.
1099 (current_interp_set_logging): Likewise.
1100 * mi/mi-common.h: Likewise.
1101 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
1103 2019-05-17 Alan Hayward <alan.hayward@arm.com>
1104 Tom Tromey <tromey@adacore.com>
1106 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
1108 * cli/cli-interp.h (make_logging_output): Remove declaration.
1109 * cli/cli-logging.c (make_logging_output): Remove function.
1110 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
1112 * ui-file.c (tee_file::tee_file): Remove bools.
1113 (tee_file::~tee_file): Remove deletes.
1114 * ui-file.h (tee_file): Remove bools.
1116 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
1118 * mi/mi-cmds.h (mi_cmd_complete): New function.
1119 * mi/mi-main.c (mi_cmd_complete): Likewise.
1120 * mi/mi-cmds.c: Define new MI command -complete.
1121 * NEWS: Mention new -complete command.
1123 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
1125 * completer.h (complete): New function.
1126 * completer.c (complete): Likewise.
1127 * cli/cli-cmds.c: (complete_command): Update to use new complete()
1128 function defined in completer.h.
1130 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
1132 * MAINTAINERS (Write After Approval): Add myself.
1134 2019-05-17 Tom de Vries <tdevries@suse.de>
1137 * dwarf2read.c (struct cu_partial_die_info): New struct.
1138 (find_partial_die): Return cu_partial_die_info.
1139 (partial_die_parent_scope, guess_partial_die_structure_name)
1140 (partial_die_info::fixup): Handle new return type of find_partial_die.
1142 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1144 * stap-probe.c (stap_parse_register_operand): Make "regname" an
1145 "std::string", simplifying the algorithm.
1147 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1149 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
1150 (stap_static_probe_ops::get_probes): Likewise.
1152 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1154 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
1155 '-')" and "else if".
1156 (stap_parse_single_operand): Join checks for
1157 "gdbarch_stap_parse_special_token_p" and
1158 "gdbarch_stap_parse_special_token" in the same "if" statement.
1159 Invert check when verifying for operation on register
1162 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1164 * stap-probe.c (stap_get_opcode): Update comment.
1165 (stap_get_expected_argument_type): Likewise.
1166 (handle_stap_probe): Likewise.
1168 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1170 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
1171 return type to 'bool'. Adjust comment. Use 'bool' when
1173 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1174 * stap-probe.c (stap_parse_argument_1): Likewise.
1175 (stap_is_operator): Likewise.
1176 (stap_is_generic_prefix): Likewise.
1177 (stap_is_register_prefix): Likewise.
1178 (stap_is_register_indirection_prefix): Likewise.
1179 (stap_is_integer_prefix): Likewise.
1180 (stap_generic_check_suffix): Likewise.
1181 (stap_check_integer_suffix): Likewise.
1182 (stap_check_register_suffix): Likewise.
1183 (stap_check_register_indirection_suffix): Likewise.
1184 (stap_parse_register_operand): Likewise.
1185 (stap_parse_single_operand): Likewise.
1186 (stap_parse_argument_1): Likewise.
1187 (stap_probe::get_argument_count): Likewise.
1188 (stap_is_operator): Likewise.
1190 2019-05-16 Tom Tromey <tromey@adacore.com>
1192 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
1195 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
1197 * linux-thread-db.c (try_thread_db_load_1): Change return type
1199 (try_thread_db_load): Likewise.
1200 (try_thread_db_load_from_pdir_1): Likewise.
1201 (try_thread_db_load_from_pdir): Likewise.
1202 (try_thread_db_load_from_sdir): Likewise.
1203 (try_thread_db_load_from_dir): Likewise.
1204 (thread_db_load_search): Likewise.
1205 (has_libpthread): Likewise.
1206 (thread_db_load): Likewise.
1208 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
1210 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
1211 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
1212 NULL, and complain/return if that's the case.
1214 2019-05-15 John Darrington <john@darrington.wattle.id.au>
1216 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
1217 (advance, posn, abstract_read_memory): New functions.
1218 [struct mem_read_abstraction]: New struct.
1219 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
1221 2019-05-14 Tom Tromey <tromey@adacore.com>
1223 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
1224 value is not lval_memory.
1226 2019-05-14 Tom Tromey <tromey@adacore.com>
1228 * solib.c (info_sharedlibrary_command): Style the file name.
1230 2019-05-14 Alan Hayward <alan.hayward@arm.com>
1232 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
1233 (aarch64_vnv_type): Likewise.
1234 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
1235 * common/tdesc.c: Likewise.
1236 * common/tdesc.h (enum tdesc_type_kind): Likewise.
1237 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1238 * features/aarch64-fpu.xml: Add ieee half view.
1239 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
1240 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
1241 * gdbtypes.h (struct builtin_type): Likewise.
1242 (struct objfile_type): Likewise.
1244 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
1246 * language.c (language_sniff_from_mangled_name): Fix "langauge"
1248 * location.h (string_to_event_location): Likewise.
1250 2019-05-11 Joel Brobecker <brobecker@adacore.com>
1254 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
1256 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
1257 New variable declaration.
1258 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
1260 (print_one_breakpoint): Use ui_out::test_flags and new global
1261 variable to compute use_fixed_output.
1262 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
1264 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
1265 (mi_multi_location_breakpoint_output_fixed): Remove.
1266 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
1268 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
1269 fix_multi_location_breakpoint_output flag if version >= 3.
1270 * ui-out.h (enum ui_out_flag)
1271 <fix_multi_location_breakpoint_output>: New enumerator.
1273 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
1275 * contrib/cc-with-tweaks.sh: Validate dwz's work.
1277 2019-05-10 Tom Tromey <tromey@adacore.com>
1279 * ada-lang.c (catch_ada_completer): New function.
1280 (_initialize_ada_language): Use it.
1282 2019-05-10 Tom Tromey <tromey@adacore.com>
1284 * thread.c (print_thread_info): Make "requested_threads" const.
1285 * gdbthread.h (print_thread_info): Make "requested_threads"
1287 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
1288 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
1290 2019-05-08 Tom Tromey <tom@tromey.com>
1292 * gdbtypes.c (objfile_type_data): Change type.
1293 (objfile_type, _initialize_gdbtypes): Update.
1295 2019-05-08 Tom Tromey <tom@tromey.com>
1297 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
1298 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
1299 (_initialize_dwarf2_frame): Update.
1301 2019-05-08 Tom Tromey <tom@tromey.com>
1303 * objc-lang.c (objc_objfile_data): Change type.
1304 (find_methods): Update.
1305 (_initialize_objc_lang): Remove.
1307 2019-05-08 Tom Tromey <tom@tromey.com>
1309 * stabsread.c (rs6000_builtin_type_data): Change type.
1310 (rs6000_builtin_type, _initialize_stabsread): Update.
1312 2019-05-08 Tom Tromey <tom@tromey.com>
1314 * mips-tdep.c (mips_pdr_data): Remove.
1315 (_initialize_mips_tdep): Update.
1317 2019-05-08 Tom Tromey <tom@tromey.com>
1319 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
1320 (hppa_init_objfile_priv_data, read_unwind_info)
1321 (find_unwind_entry, _initialize_hppa_tdep): Update.
1323 2019-05-08 Tom Tromey <tom@tromey.com>
1325 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
1326 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
1328 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
1330 2019-05-08 Tom Tromey <tom@tromey.com>
1332 * mdebugread.c (basic_type_data): Change type.
1333 (basic_type, _initialize_mdebugread): Update.
1335 2019-05-08 Tom Tromey <tom@tromey.com>
1337 * common/gdb_unique_ptr.h (struct noop_deleter): New.
1339 2019-05-08 Tom Tromey <tom@tromey.com>
1341 * nto-tdep.c (nto_inferior_data_reg): Change type.
1342 (nto_inferior_data): Update.
1343 (nto_inferior_data_cleanup, nto_new_inferior_data)
1344 (_initialize_nto_tdep): Remove.
1345 * nto-tdep.h (struct nto_inferior_data): Add initializers.
1347 2019-05-08 Tom Tromey <tom@tromey.com>
1349 * ada-lang.c (struct ada_inferior_data): Add initializers.
1350 (ada_inferior_data): Change type.
1351 (ada_inferior_data_cleanup): Remove.
1352 (get_ada_inferior_data, ada_inferior_exit)
1353 (struct ada_pspace_data): Add initializers, destructor.
1354 (ada_pspace_data_handle): Change type.
1355 (get_ada_pspace_data): Update.
1356 (ada_pspace_data_cleanup): Remove.
1358 2019-05-08 Tom Tromey <tom@tromey.com>
1360 * coffread.c (struct coff_symfile_info): Add initializers.
1361 (coff_objfile_data_key): Move lower. Change type.
1362 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
1364 (coff_free_info): Remove.
1366 2019-05-08 Tom Tromey <tom@tromey.com>
1368 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
1369 (fbsd_pspace_data_handle): Move lower. Change type.
1370 (get_fbsd_pspace_data): Update.
1371 (fbsd_pspace_data_cleanup): Remove.
1372 (_initialize_fbsd_tdep): Update.
1374 2019-05-08 Tom Tromey <tom@tromey.com>
1376 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
1377 (get_ada_tasks_pspace_data): Update.
1378 (ada_tasks_pspace_data_cleanup): Remove.
1379 (_initialize_tasks): Update.
1380 (ada_tasks_inferior_data_handle): Change type.
1381 (get_ada_tasks_inferior_data): Update.
1382 (ada_tasks_inferior_data_cleanup): Remove.
1383 (struct ada_tasks_pspace_data): Add initializers.
1385 2019-05-08 Tom Tromey <tom@tromey.com>
1387 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
1388 * symfile-debug.c (debug_sym_get_probes): Change type.
1389 * stap-probe.c (handle_stap_probe):
1390 (stap_static_probe_ops::get_probes): Change type.
1391 * probe.h (class static_probe_ops) <get_probes>: Change type.
1392 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
1393 (parse_probes_in_pspace): Update.
1394 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
1396 (any_static_probe_ops::get_probes): Change type.
1397 * elfread.c (elfread_data): New typedef.
1398 (probe_key): Change type.
1399 (elf_get_probes): Likewise. Update.
1400 (probe_key_free): Remove.
1401 (_initialize_elfread): Update.
1402 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
1404 (dtrace_process_dof_probe, dtrace_process_dof)
1405 (dtrace_static_probe_ops::get_probe): Change type.
1407 2019-05-08 Tom Tromey <tom@tromey.com>
1409 * xcoffread.c (struct xcoff_symfile_info): Rename from
1410 coff_symfile_info. Add initializers.
1411 (xcoff_objfile_data_key): Move lower. Change type.
1412 (XCOFF_DATA): Rewrite.
1413 (xcoff_free_info): Remove.
1414 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
1415 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
1416 (xcoff_initial_scan): Update.
1418 2019-05-08 Tom Tromey <tom@tromey.com>
1420 * solib-svr4.c (struct svr4_info): Add initializers and
1422 <probes_table>: Now an htab_up.
1423 (solib_svr4_pspace_data): Change type.
1424 (free_probes_table): Simplify.
1425 (~svr4_info): Rename from svr4_pspace_data_cleanup.
1426 (get_svr4_info, probes_table_htab_remove_objfile_probes)
1427 (probes_table_remove_objfile_probes, register_solib_event_probe)
1428 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
1429 (_initialize_svr4_solib): Update.
1431 2019-05-08 Tom Tromey <tom@tromey.com>
1433 * remote.c (remote_pspace_data): Change type.
1434 (remote_pspace_data_cleanup): Remove.
1435 (get_remote_exec_file, set_pspace_remote_exec_file)
1436 (_initialize_remote): Update.
1438 2019-05-08 Tom Tromey <tom@tromey.com>
1440 * breakpoint.c (breakpoint_objfile_key): Change type.
1441 (get_breakpoint_objfile_data): Update.
1442 (free_breakpoint_objfile_data): Remove.
1443 (_initialize_breakpoint): Update.
1445 2019-05-08 Tom Tromey <tom@tromey.com>
1447 * linux-tdep.c (struct linux_info): Add initializers.
1448 (linux_inferior_data): Move. Change type.
1449 (invalidate_linux_cache_inf): Update.
1450 (linux_inferior_data_cleanup): Remove.
1451 (get_linux_inferior_data, _initialize_linux_tdep): Update.
1453 2019-05-08 Tom Tromey <tom@tromey.com>
1455 * auxv.c (auxv_inferior_data): Move. Change type.
1456 (auxv_inferior_data_cleanup): Remove.
1457 (invalidate_auxv_cache_inf): Rewrite.
1458 (get_auxv_inferior_data, _initialize_auxv): Update.
1460 2019-05-08 Tom Tromey <tom@tromey.com>
1462 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
1463 (symfile_debug_objfile_data_key): Change type.
1464 (symfile_debug_installed, debug_qf_has_symbols)
1465 (debug_qf_find_last_source_symtab)
1466 (debug_qf_forget_cached_source_info)
1467 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
1468 (debug_qf_print_stats, debug_qf_dump)
1469 (debug_qf_expand_symtabs_for_function)
1470 (debug_qf_expand_all_symtabs)
1471 (debug_qf_expand_symtabs_with_fullname)
1472 (debug_qf_map_matching_symbols)
1473 (debug_qf_expand_symtabs_matching)
1474 (debug_qf_find_pc_sect_compunit_symtab)
1475 (debug_qf_map_symbol_filenames)
1476 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
1477 (debug_sym_new_init, debug_sym_init, debug_sym_read)
1478 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
1479 (debug_sym_read_linetable, debug_sym_relocate): Update.
1480 (symfile_debug_free_objfile): Remove.
1481 (install_symfile_debug_logging, _initialize_symfile_debug):
1484 2019-05-08 Tom Tromey <tom@tromey.com>
1486 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
1487 allocate_on_obstack.
1488 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
1489 (get_dwarf2_per_objfile): Update.
1490 (set_dwarf2_per_objfile): Remove.
1491 (dwarf2_has_info, dwarf2_get_section_info): Update.
1492 (dwarf2_free_objfile): Remove.
1493 (_initialize_dwarf2_read): Update.
1495 2019-05-08 Tom Tromey <tom@tromey.com>
1497 * auto-load.c (struct auto_load_pspace_info): Add destructor and
1499 <unsupported_script_warning_printed,
1500 script_not_found_warning_printed>: Now bool.
1501 (auto_load_pspace_data): Change type.
1502 (~auto_load_pspace_info): Rename from
1503 auto_load_pspace_data_cleanup.
1504 (get_auto_load_pspace_data, init_loaded_scripts_info)
1505 (clear_section_scripts, maybe_print_unsupported_script_warning)
1506 (maybe_print_script_not_found_warning, _initialize_auto_load):
1509 2019-05-08 Tom Tromey <tom@tromey.com>
1511 * objfiles.c (objfile_pspace_info): Add destructor and
1513 (objfiles_pspace_data): Change type.
1514 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
1515 (get_objfile_pspace_data): Update.
1516 (objfiles_bfd_data): Change type.
1517 (get_objfile_bfd_data): Update.
1518 (objfile_bfd_data_free, _initialize_objfiles): Remove.
1520 2019-05-08 Tom Tromey <tom@tromey.com>
1522 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
1524 (get_catch_syscall_inferior_data): Update.
1525 (catch_syscall_inferior_data_cleanup): Remove.
1526 (_initialize_break_catch_syscall): Update.
1528 2019-05-08 Tom Tromey <tom@tromey.com>
1530 * inflow.c (struct terminal_info): Add destructor and
1532 (inflow_inferior_data): Change type.
1533 (~terminal_info): Rename from inflow_inferior_data_cleanup.
1534 (get_inflow_inferior_data, inflow_inferior_exit)
1535 (swap_terminal_info, _initialize_inflow): Update.
1537 2019-05-08 Tom Tromey <tom@tromey.com>
1539 * target-dcache.c (target_dcache_cleanup): Remove.
1540 (target_dcache_aspace_key): Change type.
1541 (target_dcache_init_p, target_dcache_invalidate)
1542 (target_dcache_get, target_dcache_get_or_init)
1543 (_initialize_target_dcache): Update.
1544 * dcache.h (struct dcache_deleter): New.
1546 2019-05-08 Tom Tromey <tom@tromey.com>
1548 * symtab.c (struct symbol_cache): Add destructor and
1550 (symbol_cache_key): Move. Change type.
1551 (make_symbol_cache, free_symbol_cache): Remove.
1552 (get_symbol_cache): Update.
1553 (symbol_cache_cleanup): Remove.
1554 (ALL_PSPACES, symbol_cache_flush)
1555 (maintenance_print_symbol_cache)
1556 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
1559 2019-05-08 Tom Tromey <tom@tromey.com>
1561 * symtab.c (struct main_info): Add destructor and initializers.
1562 (main_progspace_key): Move. Change type.
1563 (get_main_info): Update.
1564 (main_info_cleanup): Remove.
1565 (_initialize_symtab): Update.
1567 2019-05-08 Tom Tromey <tom@tromey.com>
1569 * registry.h (DECLARE_REGISTRY): Define the _key class.
1571 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1573 * NEWS: Merge two 'New commands' sections.
1575 2019-05-08 Joel Brobecker <brobecker@adacore.com>
1577 * ada-valprint.c (ada_val_print_gnat_array): Remove language
1578 parameter and use Ada language definition instead.
1579 (ada_val_print_ptr): Remove unused language parameter.
1580 (ada_val_print_num): Remove language parameter and use Ada language
1582 (ada_val_print_enum, ada_val_print_flt): Remove unused language
1584 (ada_val_print_struct_union, ada_val_print_ref): Remove language
1585 parameter and use Ada language definition instead.
1586 (ada_val_print_1): Update all ada_val_print_xxx calls.
1587 Remove language parameter.
1588 (ada_val_print): Update ada_val_print_1 call.
1590 2019-05-08 Tom Tromey <tromey@adacore.com>
1592 * remote.c (remote_hw_watchpoint_limit)
1593 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
1596 2019-05-08 Tom Tromey <tromey@adacore.com>
1598 * maint.c (_initialize_maint_cmds): Move initialization code to
1600 (watchdog, show_watchdog): Move to remote.c.
1601 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
1603 (_initialize_remote): Move initialization code from maint.c.
1604 * defs.h (watchdog): Don't declare.
1606 2019-05-08 Tom Tromey <tromey@adacore.com>
1608 * tui/tui-interp.c: Include main.h.
1609 * interps.c: Include main.h.
1610 * main.h (interpreter_p): Declare.
1611 * defs.h (interpreter_p): Don't declare.
1613 2019-05-08 Tom Tromey <tromey@adacore.com>
1615 * dwarf2loc.c: Include dwarf2read.h.
1616 * defs.h (read_unsigned_leb128): Don't declare.
1617 * dwarf2read.h (read_unsigned_leb128): Declare.
1619 2019-05-08 Tom Tromey <tromey@adacore.com>
1621 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
1624 2019-05-08 Tom Tromey <tromey@adacore.com>
1626 * utils.c (fputs_maybe_filtered): Reset style after paging, even
1627 when no wrap column is set.
1629 2019-05-08 Tom Tromey <tromey@adacore.com>
1631 * c-lang.c (c_get_string): Handle non-C-style arrays.
1633 2019-05-08 Tom Tromey <tromey@adacore.com>
1635 * typeprint.c (print_offset_data::update): Print the bit offset,
1636 not the number of bits remaining.
1638 2019-05-08 Tom Tromey <tromey@adacore.com>
1640 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
1641 padding at end of comment.
1643 2019-05-08 Tom Tromey <tromey@adacore.com>
1645 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
1648 2019-05-06 Tom Tromey <tom@tromey.com>
1650 * common/scoped_mmap.c: Include common-defs.h.
1651 * common/scoped_mmap.h: Don't include config.h.
1653 2019-05-04 Tom Tromey <tom@tromey.com>
1655 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
1656 (struct aarch64_call_info): Add initializers.
1657 <si>: Now a std::vector.
1658 (pass_on_stack, aarch64_push_dummy_call): Update.
1660 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
1661 Tom Tromey <tom@tromey.com>
1663 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
1664 (ppc_threads): Now a std::vector. Now static.
1665 (hwdebug_find_thread_points_by_tid)
1666 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
1669 2019-05-04 Tom Tromey <tom@tromey.com>
1671 * arc-tdep.c (arc_tdesc_init): Return bool.
1673 2019-05-04 Tom Tromey <tom@tromey.com>
1675 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1676 Use gdb_assert_not_reached.
1678 2019-05-04 Tom Tromey <tom@tromey.com>
1680 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1683 2019-05-04 Tom Tromey <tom@tromey.com>
1685 * arc-tdep.c (arc_tdesc_init): Use bool.
1687 2019-05-04 Tom Tromey <tom@tromey.com>
1689 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1691 2019-05-04 Tom Tromey <tom@tromey.com>
1693 * cli/cli-cmds.c (valid_command_p): Return bool.
1695 2019-05-04 Tom Tromey <tom@tromey.com>
1697 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1698 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1700 2019-05-04 Raul Tambre <raul@tambre.ee>
1702 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1703 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1704 operator for comparison.
1706 2019-05-04 Tom Tromey <tom@tromey.com>
1708 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1709 (lookup_partial_symbol, print_partial_symbols)
1710 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1711 (psymbol_compare): Update.
1712 (add_psymbol_to_bcache): Clear the entire psymbol.
1713 (maintenance_check_psymtabs): Update.
1714 * psympriv.h (struct partial_symbol): Don't derive from
1715 general_symbol_info.
1716 <obj_section, unrelocated_address, address,
1717 set_unrelocated_address>: Update.
1718 <ginfo>: New member.
1719 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1720 (debug_names::write_psymbols): Update.
1722 2019-05-04 Tom de Vries <tdevries@suse.de>
1724 * contrib/cc-with-tweaks.sh: Support -n arg.
1726 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1728 * corelow.c (core_target::detach): Ensure frame cache and
1729 register caches are cleared.
1730 inferior.c (exit_inferior_1): Likewise.
1732 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1733 Tom Tromey <tom@tromey.com>
1735 * dictionary.c (collate_pending_symbols_by_language): Remove
1736 "struct" from foreach.
1737 * symtab.c (lookup_global_symbol_from_objfile)
1738 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1740 * ser-tcp.c (net_open): Remove "struct" from foreach.
1741 * objfiles.c (objfile_relocate, objfile_rebase)
1742 (objfile_has_symbols): Remove "struct" from foreach.
1743 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1745 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1747 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1748 "struct" from foreach.
1749 * ada-lang.c (create_excep_cond_exprs)
1750 (ada_exception_catchpoint_cond_string): Remove "struct" from
1753 2019-05-03 Tom Tromey <tromey@adacore.com>
1755 * ada-exp.y (convert_char_literal): Check suffix of each
1758 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1761 * ada-exp.y (yywrap): Don't define.
1762 * ada-lex.l (%option): Add noyywrap
1765 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1767 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1768 _WIN32_WINNT to the XP level, unless already defined to a higher
1771 * unittests/parse-connection-spec-selftests.c:
1773 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1776 * symfile.c (find_separate_debug_file): Remove colon from the
1777 drive spec of DOS/Windows file names of the target, so that the
1778 file name produced from DEBUGDIR and the target's directory will
1779 be valid on DOS/Windows systems.
1781 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1783 * rust-lang.c (val_print_struct): Handle printing structures
1786 2019-05-02 Tom Tromey <tromey@adacore.com>
1788 * valarith.c (_initialize_valarith): Remove.
1790 2019-05-01 Tom Tromey <tromey@adacore.com>
1792 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1795 2019-05-01 Tom Tromey <tromey@adacore.com>
1797 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1798 for big-endian copies.
1800 2019-04-30 Ali Tamur <tamur@google.com>
1801 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1802 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1803 (read_3_bytes): New function.
1805 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1807 * windows-nat.c (main_thread_id): Delete.
1808 (handle_output_debug_string): Replace main_thread_id by
1809 current_event.dwThreadId.
1810 (fake_create_process): Likewise.
1811 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1812 Do not set main_thread_id.
1813 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1814 current_event.dwThreadId.
1815 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1817 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1819 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1820 Use current_event.dwThreadId instead of main_thread_id.
1822 2019-04-30 Tom Tromey <tromey@adacore.com>
1824 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1825 (create_excep_cond_exprs): Iterate over program spaces.
1826 (ada_exception_catchpoint_cond_string): Examine all minimal
1827 symbols for exception types.
1829 2019-04-30 Tom Tromey <tromey@adacore.com>
1832 * dwarf2read.c (process_structure_scope): Handle case where type
1833 has template parameters but no symbol was created.
1835 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1836 Chris January <chris.january@arm.com>
1838 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1840 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1842 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1844 * f-typeprint.c (f_print_type): Update rules for printing
1846 (f_type_print_varspec_suffix): Likewise.
1848 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1849 Chris January <chris.january@arm.com>
1851 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1854 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1856 * f-lang.c (build_fortran_types): Change name of void type to
1858 * f-typeprint.c (f_type_print_base): Print the name of the void
1859 type, rather than a fixed string.
1860 * f-valprint.c (f_decorations): Use lower case void string.
1862 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1863 Chris January <chris.january@arm.com>
1865 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1868 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1869 Chris January <chris.january@arm.com>
1870 David Lecomber <david.lecomber@arm.com>
1872 * f-exp.y (BINOP_INTRINSIC): New token.
1873 (exp): New parser rule handling BINOP_INTRINSIC.
1874 (f77_keywords): Add new builtin procedures.
1875 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1876 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1877 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1878 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1879 (print_unop_subexp_f): New function.
1880 (print_binop_subexp_f): New function.
1881 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1882 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1883 (dump_subexp_body_f): Likewise.
1884 (operator_check_f): Likewise.
1885 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1886 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1888 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1890 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1892 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1893 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1894 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1895 (operator_length_f): New fuction.
1896 (print_subexp_f): New function.
1897 (op_name_f): New function.
1898 (dump_subexp_body_f): New function.
1899 (operator_check_f): New function.
1900 (exp_descriptor_f): Replace standard expression handling functions
1902 * gdb/fortran-operator.def: New file.
1903 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1904 * gdb/std-operator.def: Remove UNOP_KIND.
1906 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1908 * std-operator.def: Remove unbalanced, stray double quote
1911 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1912 Chris January <chris.january@arm.com>
1913 Daniel Everett <daniel.everett@arm.com>
1914 Nick Forrington <nick.forrington@arm.com>
1915 Richard Bunt <richard.bunt@arm.com>
1917 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1918 of depth when printing anonymous structs or unions.
1919 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1920 Don't print either the top-level value, or the children if the
1921 max-depth is exceeded.
1922 (ppscm_print_children): When printing the key of a map, allow one
1923 extra level of depth.
1924 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1925 print either the top-level value, or the children if the max-depth
1927 (print_children): When printing the key of a map, allow one extra
1929 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1930 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1931 (user_print_options): Initialise max_depth field.
1932 (val_print_scalar_or_string_type_p): New function.
1933 (val_print): Check to see if the max depth has been reached.
1934 (val_print_check_max_depth): Define new function.
1935 (show_print_max_depth): New function.
1936 (_initialize_valprint): Add 'print max-depth' option.
1937 * valprint.h (struct value_print_options) <max_depth>: New field.
1938 (val_print_check_max_depth): Declare new function.
1939 * NEWS: Document new feature.
1941 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1943 * ada-lang.c (ada_language_defn): Initialise new field.
1944 * c-lang.c (c_is_string_type_p): New function.
1945 (c_language_defn): Initialise new field.
1946 (cplus_language_defn): Initialise new field.
1947 (asm_language_defn): Initialise new field.
1948 (minimal_language_defn): Initialise new field.
1949 * c-lang.h (c_is_string_type_p): Declare new function.
1950 * d-lang.c (d_language_defn): Initialise new field.
1951 * f-lang.c (f_is_string_type_p): New function.
1952 (f_language_defn): Initialise new field.
1953 * go-lang.c (go_is_string_type_p): New function.
1954 (go_language_defn): Initialise new field.
1955 * language.c (default_is_string_type_p): New function.
1956 (unknown_language_defn): Initialise new field.
1957 (auto_language_defn): Initialise new field.
1958 * language.h (struct language_defn) <la_is_string_type_p>: New
1960 (default_is_string_type_p): Declare new function.
1961 * m2-lang.c (m2_language_defn): Initialise new field.
1962 * objc-lang.c (objc_language_defn): Initialise new field.
1963 * opencl-lang.c (opencl_language_defn): Initialise new field.
1964 * p-lang.c (pascal_is_string_type_p): New function.
1965 (pascal_language_defn): Initialise new field.
1966 * rust-lang.c (rust_is_string_type_p): New function.
1967 (rust_language_defn): Initialise new field.
1969 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1971 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1973 * ada-lang.c (ada_language_defn): Initialise new field.
1974 * c-lang.c (c_language_defn): Likewise.
1975 (cplus_language_defn): Likewise.
1976 (asm_language_defn): Likewise.
1977 (minimal_language_defn): Likewise.
1978 * d-lang.c (d_language_defn): Likewise.
1979 * f-lang.c (f_language_defn): Likewise.
1980 * go-lang.c (go_language_defn): Likewise.
1981 * language.c (unknown_language_defn): Likewise.
1982 (auto_language_defn): Likewise.
1983 * m2-lang.c (m2_language_defn): Likewise.
1984 * objc-lang.c (objc_language_defn): Likewise.
1985 * opencl-lang.c (opencl_language_defn): Likewise.
1986 * p-lang.c (pascal_language_defn): Likewise.
1987 * rust-lang.c (rust_language_defn): Likewise.
1989 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1991 * ada-lang.c (ada_is_character_type): Change return type to bool.
1992 (ada_is_string_type): Likewise.
1993 * ada-lang.h (ada_is_character_type): Update declaration
1994 (ada_is_string_type): Likewise.
1996 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1998 Support style in 'frame|thread apply'
2000 * gdbcmd.h (execute_command_to_string): New term_out parameter.
2001 * record.c (record_start, record_stop): Update callers of
2002 execute_command_to_string with false.
2003 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
2004 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
2006 (class string_file): New constructor with term_out parameter.
2007 Override methods term_out and can_emit_style_escape. New member
2009 (class stdio_file): Override can_emit_style_escape.
2010 (class tee_file): Override term_out and can_emit_style_escape.
2011 * utils.h (can_emit_style_escape): Remove.
2012 * utils.c (can_emit_style_escape): Likewise.
2013 Update all callers of can_emit_style_escape (SOMESTREAM) to
2014 SOMESTREAM->can_emit_style_escape.
2015 * source-cache.c (source_cache::get_source_lines): Likewise.
2016 * stack.c (frame_apply_command_count): Call execute_command_to_string
2017 passing the term_out characteristic of the current gdb_stdout.
2018 * thread.c (thr_try_catch_cmd): Likewise.
2019 * top.c (execute_command_to_string): pass term_out parameter
2020 to construct the string_file for the command output.
2021 * ui-file.c (term_cli_styling): New function (most code moved
2022 from utils.c can_emit_style_escape).
2023 (string_file::string_file, string_file::can_emit_style_escape,
2024 stdio_file::can_emit_style_escape, tee_file::term_out,
2025 tee_file::can_emit_style_escape): New functions.
2027 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2029 * NEWS: Mention the new set|show may-call-functions.
2030 * infcall.c (may_call_functions_p): New variable.
2031 (show_may_call_functions_p): New function.
2032 (call_function_by_hand_dummy): Throws an error if not
2034 (_initialize_infcall): Call add_setshow_boolean_cmd for
2037 2019-04-25 Keith Seitz <keiths@redhat.com>
2040 * cp-support.c (inspect_type): Don't attempt substitutions
2041 of symbol with the same name.
2043 2019-04-25 Tom Tromey <tromey@adacore.com>
2046 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
2049 2019-04-25 Tom Tromey <tromey@adacore.com>
2051 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
2053 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
2054 (gdb_xml_parser::parse): Use std::move.
2055 * python/python-internal.h (gdbpy_convert_exception): Take a const
2057 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
2059 * python/py-utils.c (gdbpy_convert_exception): Take a const
2061 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
2063 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2065 * mi/mi-main.c (mi_print_exception): Take a const reference.
2066 * main.c (handle_command_errors): Take a const reference.
2067 * linespec.c (parse_linespec): Use std::move.
2068 * infcall.c (run_inferior_call): Use std::move.
2069 (call_function_by_hand_dummy): Use std::move.
2070 * exec.c (try_open_exec_file): Use std::move.
2071 * exceptions.h (exception_print, exception_fprintf)
2072 (exception_print_same): Update.
2073 * exceptions.c (print_exception, exception_print)
2074 (exception_fprintf, exception_print_same): Change parameters to
2076 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
2077 * common/new-op.c: Use std::move.
2078 * common/common-exceptions.h (struct gdb_exception): Add move
2080 (struct gdb_exception_error, struct gdb_exception_quit, struct
2081 gdb_quit_bad_alloc): Change constructor to move constructor.
2082 (throw_exception): Change parameter to rvalue reference.
2083 * common/common-exceptions.c (throw_exception): Take rvalue
2085 * cli/cli-interp.c (safe_execute_command): Use std::move.
2086 * breakpoint.c (insert_bp_location, location_to_sals): Use
2089 2019-04-25 Tom Tromey <tromey@adacore.com>
2091 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
2092 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
2093 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
2094 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
2095 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
2096 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
2097 guile/scm-value.c: Use unpack.
2098 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
2099 gdbscm_gdb_exception.
2100 (gdbscm_throw_gdb_exception): Likewise.
2101 (struct gdbscm_gdb_exception): New.
2102 (unpack): New function.
2103 (gdbscm_wrap): Use unpack.
2105 2019-04-25 Tom Tromey <tromey@adacore.com>
2107 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
2108 (gdb_rl_callback_handler): Use std::move.
2109 * common/common-exceptions.h (struct gdb_exception): Add move
2110 assignment operator.
2111 (throw_exception_sjlj): Change "exception" to const reference.
2112 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
2113 (throw_exception_sjlj): Change "exception" to const reference.
2115 2019-04-25 Tom Tromey <tromey@adacore.com>
2117 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
2118 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
2119 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
2121 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2123 * mi/mi-interp.c (mi_interp::exec): Update.
2124 * linespec.c (parse_linespec): Update.
2125 * infcall.c (run_inferior_call): Update.
2126 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
2127 * guile/scm-symbol.c (gdbscm_lookup_symbol)
2128 (gdbscm_lookup_global_symbol): Update.
2129 * guile/scm-param.c (gdbscm_parameter_value): Update.
2130 * guile/scm-frame.c (gdbscm_frame_read_register)
2131 (gdbscm_frame_read_var): Update.
2132 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2133 * exec.c (try_open_exec_file): Update.
2134 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
2135 (gdb_rl_callback_handler): Update.
2136 * common/common-exceptions.h (exception_none): Don't declare.
2137 * common/common-exceptions.c (exception_none): Don't define.
2138 (struct catcher) <exception>: Update.
2139 * cli/cli-interp.c (safe_execute_command): Update.
2140 * breakpoint.c (insert_bp_location, location_to_sals): Update.
2142 2019-04-25 Ali Tamur <tamur@google.com>
2144 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
2145 (read_attribute_value): Likewise.
2146 (dwarf2_read_addr_index): Update comment.
2147 (read_str_index): Add DW_FORM_strx.
2148 (dwarf2_string_attr): Likewise.
2149 (dwarf2_const_value_attr): Likewise.
2150 (dump_die_shallow): Likewise.
2151 (dwarf2_fetch_constant_bytes): Likewise.
2152 (skip_form_bytes): Likewise.
2153 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
2155 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2159 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
2160 OFFSET. Verify if current mapping contains an ELF header.
2161 (linux_find_memory_regions_full): Adjust call to
2164 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
2165 Kang Li <kanglictf@gmail.com>
2169 * dwarf2-frame.c (read_initial_length): Be consistent about using
2170 unsigned representation of length.
2171 (decode_frame_entry_1): Likewise. Check for wraparound of
2172 end pointer as well as buffer overflow.
2174 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2176 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
2179 2019-04-24 Tom Tromey <tromey@adacore.com>
2181 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
2183 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2185 * s12z-tdep.c (s12z_unwind_pc): Delete.
2186 (s12z_unwind_sp): Delete.
2187 (s12z_gdbarch_init): Don't register deleted functions with
2190 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2192 * rl78-tdep.c (rl78_unwind_sp): Delete.
2193 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
2195 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2197 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
2198 (xstormy16_unwind_pc): Delete.
2199 (xstormy16_dummy_id): Delete.
2200 (xstormy16_gdbarch_init): Don't register deleted functions with
2203 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2205 * vax-tdep.c (vax_unwind_pc): Delete.
2206 (vax_gdbarch_init): Don't register deleted function with gdbarch.
2208 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2210 * v850-tdep.c (v850_unwind_sp): Delete.
2211 (v850_unwind_pc): Delete.
2212 (v850_dummy_id): Delete.
2213 (v850_gdbarch_init): Don't register deleted functions with
2216 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2218 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
2219 (tilegx_unwind_pc): Delete.
2220 (tilegx_unwind_dummy_id): Delete.
2221 (tilegx_gdbarch_init): Don't register deleted functions with
2224 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2226 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
2227 (tic6x_dummy_id): Delete.
2228 (tic6x_gdbarch_init): Don't register deleted functions with
2231 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2233 * sparc-tdep.c (sparc_unwind_pc): Delete.
2234 (sparc32_gdbarch_init): Don't register deleted function with
2237 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2239 * sh-tdep.c (sh_unwind_sp): Delete.
2240 (sh_unwind_pc): Delete.
2241 (sh_dummy_id): Delete.
2242 (sh_gdbarch_init): Don't register deleted functions with
2245 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2247 * score-tdep.c (score_unwind_sp): Delete.
2248 (score_unwind_pc): Delete.
2249 (score_dummy_id): Delete.
2250 (score_gdbarch_init): Don't register deleted functions with
2253 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2255 * rx-tdep.c (rx_unwind_pc): Delete.
2256 (rx_unwind_sp): Delete.
2257 (rx_dummy_id): Delete.
2258 (rx_gdbarch_init): Don't register deleted functions with
2259 gdbarch. Update comment.
2261 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2263 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
2264 (rs6000_dummy_id): Delete.
2265 (rs6000_gdbarch_init): Don't register deleted functions with
2268 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2270 * or1k-tdep.c (or1k_dummy_id): Delete.
2271 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
2273 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2275 * nios2-tdep.c (nios2_dummy_id): Delete.
2276 (nios2_unwind_sp): Delete.
2277 (nios2_gdbarch_init): Don't register deleted functions with
2280 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2282 * nds32-tdep.c (nds32_dummy_id): Delete.
2283 (nds32_unwind_pc): Delete.
2284 (nds32_unwind_sp): Delete.
2285 (nds32_gdbarch_init): Don't register deleted functions with
2288 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2290 * msp430-tdep.c (msp430_unwind_pc): Delete.
2291 (msp430_unwind_sp): Delete.
2292 (msp430_dummy_id): Delete.
2293 (msp430_gdbarch_init): Don't register deleted functions with
2296 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2298 * moxie-tdep.c (moxie_unwind_sp): Delete.
2299 (moxie_unwind_pc): Delete.
2300 (moxie_dummy_id): Delete.
2301 (moxie_gdbarch_init): Don't register deleted functions with
2304 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2306 * mn10300-tdep.c (mn10300_dummy_id): Delete.
2307 (mn10300_unwind_pc): Delete.
2308 (mn10300_unwind_sp): Delete.
2309 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
2311 (mn10300_frame_unwind_init): Don't register deleted functions with
2314 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2316 * mep-tdep.c (mep_unwind_pc): Delete.
2317 (mep_unwind_sp): Delete.
2318 (mep_dummy_id): Delete.
2319 (mep_gdbarch_init): Don't register deleted functions with
2322 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2324 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
2325 (m68hc11_unwind_sp): Delete.
2326 (m68hc11_gdbarch_init): Don't register deleted functions with
2329 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2331 * m32r-tdep.c (m32r_unwind_sp): Delete.
2332 (m32r_unwind_pc): Delete.
2333 (m32r_dummy_id): Delete.
2334 (m32r_gdbarch_init): Don't register deleted functions with
2337 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2339 * m32c-tdep.c (m32c_unwind_pc): Delete.
2340 (m32c_unwind_sp): Delete.
2341 (m32c_dummy_id): Delete.
2342 (m32c_gdbarch_init): Don't register deleted functions with
2345 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2347 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
2348 (lm32_unwind_pc): Delete.
2349 (lm32_dummy_id): Delete.
2350 (lm32_gdbarch_init): Don't register deleted functions with
2353 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2355 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
2356 (iq2000_unwind_pc): Delete.
2357 (iq2000_dummy_id): Delete.
2358 (iq2000_gdbarch_init): Don't register deleted functions with
2361 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2363 * nds32-tdep.c (nds32_type_align): Delete.
2364 (nds32_push_dummy_call): Use type_align instead.
2366 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2368 * arm-tdep.c (arm_type_align): Only handle vector override case.
2369 (arm_push_dummy_call): Use type_align.
2370 (arm_gdbarch_init): Register arm_type_align gdbarch function.
2372 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2374 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
2376 (pass_on_stack): Use type_align.
2377 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
2380 2019-04-23 Tom Tromey <tromey@adacore.com>
2382 * dwarf2read.c (line_header::file_name_at): Remove unused
2385 2019-04-23 Tom de Vries <tdevries@suse.de>
2388 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
2392 2019-03-27 Ali Tamur <tamur@google.com>
2394 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
2395 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
2396 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
2397 (dwarf_expr_context::get_addr_index): Likewise
2398 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
2399 (symbol_needs_eval_context::get_addr_index): Likewise
2400 (disassemble_dwarf_expression): Add DW_OP_addrx
2401 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
2402 (read_cutu_die_from_dwo): Update comment
2403 (skip_one_die): Add DW_FORM_addrx
2404 (read_attribute_value): Likewise
2405 (var_decode_location): Add DW_OP_addrx
2406 (dwarf2_const_value_attr): Add DW_FORM_addrx
2407 (dump_die_shallow): Likewise
2408 (dwarf2_fetch_constant_bytes): Likewise
2409 (decode_locdesc): Add DW_OP_addrx
2410 (skip_form_bytes): Add DW_FORM_addrx
2412 2019-04-22 Ali Tamur <tamur@google.com>
2414 * MAINTAINERS (Write After Approval): Add self.
2416 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
2418 * solib-svr4.c (get_svr4_info): Add pspace parameter.
2419 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
2420 (open_symbol_file_object): Likewise.
2421 (svr4_default_sos): Add info parameter.
2422 (svr4_read_so_list): Likewise.
2423 (svr4_current_sos_direct): Adjust functions calls to pass down
2425 (svr4_current_sos_1): Add info parameter.
2426 (svr4_current_sos): Call get_svr4_info, pass info down to
2428 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
2430 (svr4_in_dynsym_resolve_code): Pass current_program_space to
2432 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
2434 (probes_table_remove_objfile_probes): Likewise.
2435 (register_solib_event_probe): Add info parameter.
2436 (solist_update_incremental): Pass info parameter down to
2438 (disable_probes_interface): Add info parameter.
2439 (svr4_handle_solib_event): Pass current_program_space to
2440 get_svr4_info. Adjust disable_probes_interface cleanup.
2441 (svr4_create_probe_breakpoints): Add info parameter, pass it
2442 down to register_solib_event_probe.
2443 (svr4_create_solib_event_breakpoints): Add info parameter,
2444 pass it down to svr4_create_probe_breakpoints.
2445 (enable_break): Pass info down to
2446 svr4_create_solib_event_breakpoints.
2447 (svr4_solib_create_inferior_hook): Pass current_program_space to
2449 (svr4_clear_solib): Likewise.
2451 2019-04-22 Pedro Alves <palves@redhat.com>
2453 * solib-svr4.c (svr4_free_objfile_observer): New.
2454 (probe_and_action::objfile): New field.
2455 (probes_table_htab_remove_objfile_probes)
2456 (probes_table_remove_objfile_probes): New functions.
2457 (register_solib_event_probe): Add 'objfile' parameter. Store it
2458 in the new probe_and_action. Don't store the probe in 'lookup'.
2459 (svr4_create_probe_breakpoints): Pass objfile to
2460 register_solib_event_probe.
2461 (_initialize_svr4_solib): Register a free_objfile observer.
2463 2019-04-19 Tom Tromey <tom@tromey.com>
2465 * common/queue.h: Remove.
2467 2019-04-19 Tom Tromey <tom@tromey.com>
2469 * event-loop.c: Don't include "common/queue.h".
2471 2019-04-19 Tom Tromey <tom@tromey.com>
2473 * remote.c (remote_target): Use delete.
2474 * remote-notif.h: Include <list>, not "common/queue.h".
2475 (notif_client_p): Remove typedef.
2476 (remote_notif_state): Add constructor, destructor, initializer.
2477 <notif_queue>: Now a std::list.
2478 (remote_notif_state_xfree): Don't declare.
2479 * remote-notif.c (remote_notif_process, handle_notification)
2480 (remote_notif_state_allocate): Update.
2481 (~remote_notif_state): Rename from remote_notif_state_xfree.
2483 2019-04-19 Tom Tromey <tom@tromey.com>
2485 * symfile.c (reread_symbols): Update.
2486 * objfiles.c (objfile_register_static_link)
2487 (objfile_lookup_static_link): Update
2488 (~objfile) Don't delete static_links.
2489 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
2491 2019-04-19 Tom Tromey <tom@tromey.com>
2493 * type-stack.h (struct type_stack) <insert>: Constify string.
2494 * type-stack.c (type_stack::insert): Constify string.
2495 * gdbtypes.h (lookup_template_type): Update.
2496 (address_space_name_to_int): Update.
2497 * gdbtypes.c (address_space_name_to_int): Make space_identifier
2499 (lookup_template_type): Make name const.
2500 * c-exp.y: Update rules.
2501 (lex_one_token, classify_name, classify_inner_name)
2502 (c_print_token): Update.
2503 * p-exp.y: Update rules.
2505 * f-exp.y: Update rules.
2507 * d-exp.y: Update rules.
2508 (lex_one_token, classify_name, classify_inner_name): Update.
2509 * parse.c (write_dollar_variable, copy_name): Return std::string.
2510 * parser-defs.h (copy_name): Change return type.
2511 * m2-exp.y: Update rules.
2513 * go-exp.y (lex_one_token): Update.
2515 (classify_unsafe_function, classify_packaged_name)
2516 (classify_name, yylex): Update.
2518 2019-04-19 Sergei Trofimovich <siarheit@google.com>
2520 * configure.ac: add --enable-source-highlight switch.
2521 * configure: Regenerate.
2522 * top.c (print_gdb_version): plumb --enable-source-highlight
2523 status to "show configuration".
2525 2019-04-19 Tom Tromey <tromey@adacore.com>
2527 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
2529 (empty_record, ada_template_to_fixed_record_type_1)
2530 (template_to_static_fixed_type)
2531 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
2532 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
2533 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
2536 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2539 * source.c (print_source_lines_base): Advance "iter" when a
2540 control character is seen.
2542 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2544 * inferior.h (struct infcall_suspend_state_deleter):
2545 Catch exception in destructor to avoid crash.
2547 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2549 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
2550 close to the add_com "shell".
2552 2019-04-18 Tom Tromey <tromey@adacore.com>
2554 * process-stratum-target.h (class process_stratum_target)
2555 <stratum>: Add "final".
2557 2019-04-17 Tom Tromey <tromey@adacore.com>
2559 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
2560 against nullptr before use.
2562 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2564 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
2566 2019-04-17 Jim Wilson <jimw@sifive.com>
2567 Andrew Burgess <andrew.burgess@embecosm.com>
2569 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
2570 code read might fail, assume 4-byte breakpoint in that case.
2572 2019-04-15 Leszek Swirski <leszeks@google.com>
2574 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
2575 rather than a hand-rolled POD check when checking for forced MEMORY
2578 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2580 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
2581 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
2583 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
2584 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
2585 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
2588 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2590 * aarch64-linux-nat.c
2591 (aarch64_linux_nat_target::thread_architecture): Add override.
2592 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
2595 2019-04-15 Alan Hayward <alan.hayward@arm.com>
2597 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
2599 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
2601 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
2602 target types of size 96-bits, add some additional comments, and
2603 check that the builtin type we found was the correct size.
2605 2019-04-12 Eli Zaretskii <eliz@gnu.org>
2607 * utils.c (prompt_for_continue): Don't restore the styling at the
2608 end, as applied_style has the wrong value. This fixes styling in
2609 long lists of file names that are interrupted by the "Continue?"
2612 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
2614 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
2615 * c-lang.c (c_language_defn): Likewise.
2616 (cplus_language_defn): Likewise.
2617 (asm_language_defn): Likewise.
2618 (minimal_language_defn): Likewise.
2619 * d-lang.c (d_language_defn): Likewise.
2620 * f-lang.c (f_language_defn): Likewise.
2621 * go-lang.c (go_language_defn): Likewise.
2622 * language.c (unknown_language_defn): Likewise.
2623 (auto_language_defn): Likewise.
2624 * language.h (struct language_defn): Remove la_magic field.
2625 (LANG_MAGIC): Delete.
2626 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
2627 * objc-lang.c (objc_language_defn): Likewise.
2628 * opencl-lang.c (opencl_language_defn): Likewise.
2629 * p-lang.c (pascal_language_defn): Likewise.
2630 * rust-lang.c (rust_language_defn): Likewise.
2632 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2634 * riscv-tdep.c (riscv_type_align): New function.
2635 (riscv_type_alignment): Delete.
2636 (riscv_arg_location): Use 'type_align'.
2637 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
2639 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2641 * gdbtypes.c (type_align): A struct with no non-static fields also
2644 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2646 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
2648 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
2650 (riscv_struct_info::analyse): New implementation using new
2651 analyse_inner member function.
2652 (riscv_struct_info::field_offset): New member function.
2653 (riscv_struct_info::m_offsets): New member variable.
2654 (riscv_struct_info::analyse_inner): New private member function,
2655 takes the old implementation of riscv_struct_info::analyse but
2656 extended to track field offsets.
2657 (riscv_call_arg_struct): Update the struct folding special cases
2658 to handle cases where empty C++ structs, which are non-zero
2660 (riscv_arg_location): Initialise the length of each location, a
2661 non-zero length now indicates the location is in use.
2662 (riscv_push_dummy_call): Allow for the first location having a
2663 non-zero offset when setting up arguments.
2664 (riscv_return_value): Likewise, but for return values.
2666 2019-04-11 Tom Tromey <tromey@adacore.com>
2668 * utils.c (internal_vproblem): Make "msg" const.
2670 2019-04-11 Alan Hayward <alan.hayward@arm.com>
2672 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2673 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2674 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2675 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2677 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2679 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2681 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2682 of amd64_collect_native_gregset.
2683 (amd64_linux_nat_target::store_registers): Likewise.
2685 2019-04-10 Tom Tromey <tom@tromey.com>
2687 * symtab.c (lookup_global_symbol_from_objfile)
2688 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2689 * objfiles.h (class separate_debug_iterator): New.
2690 (class separate_debug_range): New.
2691 (struct objfile) <separate_debug_objfiles>: New method.
2692 (objfile_separate_debug_iterate): Don't declare.
2693 * objfiles.c (separate_debug_iterator::operator++): Rename from
2694 objfile_separate_debug_iterate.
2695 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2697 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2700 2019-04-10 Tom Tromey <tom@tromey.com>
2702 * symfile.c (reread_symbols): Remove old comment.
2703 * objfiles.c (free_all_objfiles): Fix a typo.
2705 2019-04-10 Tom Tromey <tom@tromey.com>
2707 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2708 * minsyms.c (lookup_minimal_symbol): Use foreach.
2709 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2710 (lookup_minimal_symbol_solib_trampoline): Likewise.
2711 * symfile.c (reread_symbols): Use foreach.
2713 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
2714 Tom Tromey <tromey@adacore.com>
2717 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2718 (rust_lex_int_test): Change "value" to be LONGEST.
2719 (rust_lex_tests): Add test for long integer literal.
2721 2019-04-09 Tom Tromey <tromey@adacore.com>
2723 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2725 (extended_remote_target::attach): Update.
2726 (remote_target::remote_notice_new_inferior): Update.
2727 (remote_target::add_current_inferior_and_thread): Update.
2728 * inferior.c (exit_inferior_1): Use "false".
2729 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2731 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
2733 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
2734 the "start" command.
2736 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2738 * python/py-inferior.c (infpy_thread_from_thread_handle):
2739 Adjust comments to reflect renaming of thread_from_thread_handle
2740 to thread_from_handle. Adjust keywords. Fix type error message.
2741 (inferior_object_methods): Add thread_from_handle. Retain
2742 thread_from_thread_handle, but mark it as deprecated.
2744 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2746 * gdbthread.h (find_thread_by_handle): Revise declaration.
2747 * thread.c (find_thread_by_handle): Likewise. Adjust
2749 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2750 support for buffer objects as handles.
2752 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2754 * python/py-infthread.c (thpy_thread_handle): New function.
2755 (thread_object_methods): Register thpy_thread_handle.
2757 2019-04-08 Kevin Buettner <kevinb@redhat.com>
2759 * gdbthread.h (thread_to_thread_handle): Declare.
2760 * thread.c (gdbtypes.h): Include.
2761 (thread_to_thread_handle): New function.
2763 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2764 (target_thread_info_to_thread_handle): Declare.
2765 * target.c (target_thread_info_to_thread_handle): New function.
2766 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2767 * target-delegates.c: Regenerate.
2769 * linux-thread-db.c (class thread_db_target): Add method
2770 thread_info_to_thread_handle.
2771 (thread_db_target::thread_info_to_thread_handle): Define.
2772 * remote.c (class remote_target): Add new method
2773 thread_info_to_thread_handle.
2774 (remote_target::thread_info_to_thread_handle): Define.
2776 2019-04-08 Pedro Alves <palves@redhat.com>
2778 * common/common-exceptions.c (throw_exception): Don't create
2779 named object to throw; throw directly.
2780 (throw_it): Likewise. Don't initialize gdb_exception::message
2781 here, with new; pass FMT and AP to the ctor instead.
2782 * common/common-exceptions.h: Include <string>.
2783 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2784 const char *, va_list)): New ctor. Use std::make_shared.
2785 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2787 (gdb_exception_error::gdb_exception_error(enum errors, const char
2789 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2791 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2793 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2794 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2797 2019-04-08 Tom Tromey <tom@tromey.com>
2799 * valops.c (value_rtti_indirect_type): Replace throw_exception
2801 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2803 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2805 * target.c (target_translate_tls_address): Replace throw_exception
2807 * stack.c (frame_apply_command_count): Replace throw_exception
2809 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2811 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2813 * rs6000-tdep.c (rs6000_frame_cache)
2814 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2815 * remote.c: Replace throw_exception with throw.
2816 * record-full.c (record_full_message, record_full_wait_1)
2817 (record_full_restore): Replace throw_exception with throw.
2819 (get_thread_current_frame_id, record_btrace_start_replaying)
2820 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2821 (cmd_record_btrace_start): Replace throw_exception with throw.
2822 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2824 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2825 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2827 (find_linespec_symbols): Replace throw_exception with throw.
2828 * infrun.c (displaced_step_prepare, resume): Replace
2829 throw_exception with throw.
2830 * infcmd.c (post_create_inferior): Replace throw_exception with
2832 * inf-loop.c (inferior_event_handler): Replace throw_exception
2834 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2835 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2836 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2837 (get_prev_frame_always, get_frame_pc_if_available)
2838 (get_frame_address_in_block_if_available, get_frame_language):
2839 Replace throw_exception with throw.
2840 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2841 throw_exception with throw.
2842 * eval.c (fetch_subexp_value, evaluate_var_value)
2843 (evaluate_funcall, evaluate_subexp_standard): Replace
2844 throw_exception with throw.
2845 * dwarf2loc.c (call_site_find_chain)
2846 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2847 Replace throw_exception with throw.
2848 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2850 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2852 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2853 * completer.c (complete_line_internal): Replace throw_exception
2855 * compile/compile-object-run.c (compile_object_run): Replace
2856 throw_exception with throw.
2857 * cli/cli-script.c (process_next_line): Replace throw_exception
2859 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2860 (btrace_enable, btrace_maint_update_pt_packets): Replace
2861 throw_exception with throw.
2862 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2863 throw_exception with throw.
2864 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2865 throw_exception with throw.
2866 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2867 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2868 * aarch64-tdep.c (aarch64_make_prologue_cache)
2869 (aarch64_make_stub_cache): Replace throw_exception with throw.
2871 2019-04-08 Tom Tromey <tom@tromey.com>
2873 * common/common-exceptions.c (throw_exception): Rename from
2874 throw_exception_cxx. Remove old copy. Make argument const.
2875 (throw_it): Create and throw exception objects directly.
2876 * common/common-exceptions.h (throw_exception): Make argument
2878 (struct gdb_exception_error): Add constructor.
2879 (struct gdb_exception_quit): Add constructor.
2881 2019-04-08 Tom Tromey <tom@tromey.com>
2883 * common/common-exceptions.h (exception_rethrow): Don't declare.
2884 (TRY_SJLJ): Update comment.
2885 (TRY, CATCH, END_CATCH): Remove.
2886 * common/common-exceptions.c (exception_rethrow): Remove.
2888 2019-04-08 Tom Tromey <tom@tromey.com>
2890 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2892 (gdb_exception_error): Rename from
2893 gdb_exception_RETURN_MASK_ERROR.
2894 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2895 (gdb_quit_bad_alloc): Update.
2896 * aarch64-tdep.c: Update.
2897 * ada-lang.c: Update.
2898 * ada-typeprint.c: Update.
2899 * ada-valprint.c: Update.
2900 * amd64-tdep.c: Update.
2901 * arch-utils.c: Update.
2902 * break-catch-throw.c: Update.
2903 * breakpoint.c: Update.
2905 * c-varobj.c: Update.
2906 * cli/cli-cmds.c: Update.
2907 * cli/cli-interp.c: Update.
2908 * cli/cli-script.c: Update.
2909 * common/common-exceptions.c: Update.
2910 * common/new-op.c: Update.
2911 * common/selftest.c: Update.
2912 * compile/compile-c-symbols.c: Update.
2913 * compile/compile-cplus-symbols.c: Update.
2914 * compile/compile-object-load.c: Update.
2915 * compile/compile-object-run.c: Update.
2916 * completer.c: Update.
2917 * corelow.c: Update.
2919 * cp-support.c: Update.
2920 * cp-valprint.c: Update.
2921 * darwin-nat.c: Update.
2922 * disasm-selftests.c: Update.
2923 * dtrace-probe.c: Update.
2924 * dwarf-index-cache.c: Update.
2925 * dwarf-index-write.c: Update.
2926 * dwarf2-frame-tailcall.c: Update.
2927 * dwarf2-frame.c: Update.
2928 * dwarf2loc.c: Update.
2929 * dwarf2read.c: Update.
2931 * event-loop.c: Update.
2932 * event-top.c: Update.
2934 * f-valprint.c: Update.
2935 * fbsd-tdep.c: Update.
2936 * frame-unwind.c: Update.
2938 * gdbtypes.c: Update.
2939 * gnu-v3-abi.c: Update.
2940 * guile/guile-internal.h: Update.
2941 * guile/scm-block.c: Update.
2942 * guile/scm-breakpoint.c: Update.
2943 * guile/scm-cmd.c: Update.
2944 * guile/scm-disasm.c: Update.
2945 * guile/scm-frame.c: Update.
2946 * guile/scm-lazy-string.c: Update.
2947 * guile/scm-math.c: Update.
2948 * guile/scm-param.c: Update.
2949 * guile/scm-ports.c: Update.
2950 * guile/scm-pretty-print.c: Update.
2951 * guile/scm-symbol.c: Update.
2952 * guile/scm-symtab.c: Update.
2953 * guile/scm-type.c: Update.
2954 * guile/scm-value.c: Update.
2955 * i386-linux-tdep.c: Update.
2956 * i386-tdep.c: Update.
2957 * inf-loop.c: Update.
2958 * infcall.c: Update.
2962 * language.c: Update.
2963 * linespec.c: Update.
2964 * linux-fork.c: Update.
2965 * linux-nat.c: Update.
2966 * linux-tdep.c: Update.
2967 * linux-thread-db.c: Update.
2969 * mi/mi-cmd-break.c: Update.
2970 * mi/mi-cmd-stack.c: Update.
2971 * mi/mi-interp.c: Update.
2972 * mi/mi-main.c: Update.
2973 * objc-lang.c: Update.
2974 * p-valprint.c: Update.
2976 * ppc-linux-tdep.c: Update.
2977 * printcmd.c: Update.
2978 * python/py-arch.c: Update.
2979 * python/py-breakpoint.c: Update.
2980 * python/py-cmd.c: Update.
2981 * python/py-finishbreakpoint.c: Update.
2982 * python/py-frame.c: Update.
2983 * python/py-framefilter.c: Update.
2984 * python/py-gdb-readline.c: Update.
2985 * python/py-inferior.c: Update.
2986 * python/py-infthread.c: Update.
2987 * python/py-lazy-string.c: Update.
2988 * python/py-linetable.c: Update.
2989 * python/py-objfile.c: Update.
2990 * python/py-param.c: Update.
2991 * python/py-prettyprint.c: Update.
2992 * python/py-progspace.c: Update.
2993 * python/py-record-btrace.c: Update.
2994 * python/py-record.c: Update.
2995 * python/py-symbol.c: Update.
2996 * python/py-type.c: Update.
2997 * python/py-unwind.c: Update.
2998 * python/py-utils.c: Update.
2999 * python/py-value.c: Update.
3000 * python/python.c: Update.
3001 * record-btrace.c: Update.
3002 * record-full.c: Update.
3003 * remote-fileio.c: Update.
3005 * riscv-tdep.c: Update.
3006 * rs6000-aix-tdep.c: Update.
3007 * rs6000-tdep.c: Update.
3008 * rust-exp.y: Update.
3009 * rust-lang.c: Update.
3010 * s390-tdep.c: Update.
3011 * selftest-arch.c: Update.
3012 * solib-dsbt.c: Update.
3013 * solib-frv.c: Update.
3014 * solib-spu.c: Update.
3015 * solib-svr4.c: Update.
3017 * sparc64-linux-tdep.c: Update.
3019 * symfile-mem.c: Update.
3020 * symmisc.c: Update.
3024 * tracefile-tfile.c: Update.
3025 * tui/tui.c: Update.
3026 * typeprint.c: Update.
3027 * unittests/cli-utils-selftests.c: Update.
3028 * unittests/parse-connection-spec-selftests.c: Update.
3030 * valprint.c: Update.
3033 * windows-nat.c: Update.
3034 * x86-linux-nat.c: Update.
3035 * xml-support.c: Update.
3037 2019-04-08 Tom Tromey <tom@tromey.com>
3039 * xml-support.c: Use C++ exception handling.
3040 * x86-linux-nat.c: Use C++ exception handling.
3041 * windows-nat.c: Use C++ exception handling.
3042 * varobj.c: Use C++ exception handling.
3043 * value.c: Use C++ exception handling.
3044 * valprint.c: Use C++ exception handling.
3045 * valops.c: Use C++ exception handling.
3046 * unittests/parse-connection-spec-selftests.c: Use C++ exception
3048 * unittests/cli-utils-selftests.c: Use C++ exception handling.
3049 * typeprint.c: Use C++ exception handling.
3050 * tui/tui.c: Use C++ exception handling.
3051 * tracefile-tfile.c: Use C++ exception handling.
3052 * top.c: Use C++ exception handling.
3053 * thread.c: Use C++ exception handling.
3054 * target.c: Use C++ exception handling.
3055 * symmisc.c: Use C++ exception handling.
3056 * symfile-mem.c: Use C++ exception handling.
3057 * stack.c: Use C++ exception handling.
3058 * sparc64-linux-tdep.c: Use C++ exception handling.
3059 * solib.c: Use C++ exception handling.
3060 * solib-svr4.c: Use C++ exception handling.
3061 * solib-spu.c: Use C++ exception handling.
3062 * solib-frv.c: Use C++ exception handling.
3063 * solib-dsbt.c: Use C++ exception handling.
3064 * selftest-arch.c: Use C++ exception handling.
3065 * s390-tdep.c: Use C++ exception handling.
3066 * rust-lang.c: Use C++ exception handling.
3067 * rust-exp.y: Use C++ exception handling.
3068 * rs6000-tdep.c: Use C++ exception handling.
3069 * rs6000-aix-tdep.c: Use C++ exception handling.
3070 * riscv-tdep.c: Use C++ exception handling.
3071 * remote.c: Use C++ exception handling.
3072 * remote-fileio.c: Use C++ exception handling.
3073 * record-full.c: Use C++ exception handling.
3074 * record-btrace.c: Use C++ exception handling.
3075 * python/python.c: Use C++ exception handling.
3076 * python/py-value.c: Use C++ exception handling.
3077 * python/py-utils.c: Use C++ exception handling.
3078 * python/py-unwind.c: Use C++ exception handling.
3079 * python/py-type.c: Use C++ exception handling.
3080 * python/py-symbol.c: Use C++ exception handling.
3081 * python/py-record.c: Use C++ exception handling.
3082 * python/py-record-btrace.c: Use C++ exception handling.
3083 * python/py-progspace.c: Use C++ exception handling.
3084 * python/py-prettyprint.c: Use C++ exception handling.
3085 * python/py-param.c: Use C++ exception handling.
3086 * python/py-objfile.c: Use C++ exception handling.
3087 * python/py-linetable.c: Use C++ exception handling.
3088 * python/py-lazy-string.c: Use C++ exception handling.
3089 * python/py-infthread.c: Use C++ exception handling.
3090 * python/py-inferior.c: Use C++ exception handling.
3091 * python/py-gdb-readline.c: Use C++ exception handling.
3092 * python/py-framefilter.c: Use C++ exception handling.
3093 * python/py-frame.c: Use C++ exception handling.
3094 * python/py-finishbreakpoint.c: Use C++ exception handling.
3095 * python/py-cmd.c: Use C++ exception handling.
3096 * python/py-breakpoint.c: Use C++ exception handling.
3097 * python/py-arch.c: Use C++ exception handling.
3098 * printcmd.c: Use C++ exception handling.
3099 * ppc-linux-tdep.c: Use C++ exception handling.
3100 * parse.c: Use C++ exception handling.
3101 * p-valprint.c: Use C++ exception handling.
3102 * objc-lang.c: Use C++ exception handling.
3103 * mi/mi-main.c: Use C++ exception handling.
3104 * mi/mi-interp.c: Use C++ exception handling.
3105 * mi/mi-cmd-stack.c: Use C++ exception handling.
3106 * mi/mi-cmd-break.c: Use C++ exception handling.
3107 * main.c: Use C++ exception handling.
3108 * linux-thread-db.c: Use C++ exception handling.
3109 * linux-tdep.c: Use C++ exception handling.
3110 * linux-nat.c: Use C++ exception handling.
3111 * linux-fork.c: Use C++ exception handling.
3112 * linespec.c: Use C++ exception handling.
3113 * language.c: Use C++ exception handling.
3114 * jit.c: Use C++ exception handling.
3115 * infrun.c: Use C++ exception handling.
3116 * infcmd.c: Use C++ exception handling.
3117 * infcall.c: Use C++ exception handling.
3118 * inf-loop.c: Use C++ exception handling.
3119 * i386-tdep.c: Use C++ exception handling.
3120 * i386-linux-tdep.c: Use C++ exception handling.
3121 * guile/scm-value.c: Use C++ exception handling.
3122 * guile/scm-type.c: Use C++ exception handling.
3123 * guile/scm-symtab.c: Use C++ exception handling.
3124 * guile/scm-symbol.c: Use C++ exception handling.
3125 * guile/scm-pretty-print.c: Use C++ exception handling.
3126 * guile/scm-ports.c: Use C++ exception handling.
3127 * guile/scm-param.c: Use C++ exception handling.
3128 * guile/scm-math.c: Use C++ exception handling.
3129 * guile/scm-lazy-string.c: Use C++ exception handling.
3130 * guile/scm-frame.c: Use C++ exception handling.
3131 * guile/scm-disasm.c: Use C++ exception handling.
3132 * guile/scm-cmd.c: Use C++ exception handling.
3133 * guile/scm-breakpoint.c: Use C++ exception handling.
3134 * guile/scm-block.c: Use C++ exception handling.
3135 * guile/guile-internal.h: Use C++ exception handling.
3136 * gnu-v3-abi.c: Use C++ exception handling.
3137 * gdbtypes.c: Use C++ exception handling.
3138 * frame.c: Use C++ exception handling.
3139 * frame-unwind.c: Use C++ exception handling.
3140 * fbsd-tdep.c: Use C++ exception handling.
3141 * f-valprint.c: Use C++ exception handling.
3142 * exec.c: Use C++ exception handling.
3143 * event-top.c: Use C++ exception handling.
3144 * event-loop.c: Use C++ exception handling.
3145 * eval.c: Use C++ exception handling.
3146 * dwarf2read.c: Use C++ exception handling.
3147 * dwarf2loc.c: Use C++ exception handling.
3148 * dwarf2-frame.c: Use C++ exception handling.
3149 * dwarf2-frame-tailcall.c: Use C++ exception handling.
3150 * dwarf-index-write.c: Use C++ exception handling.
3151 * dwarf-index-cache.c: Use C++ exception handling.
3152 * dtrace-probe.c: Use C++ exception handling.
3153 * disasm-selftests.c: Use C++ exception handling.
3154 * darwin-nat.c: Use C++ exception handling.
3155 * cp-valprint.c: Use C++ exception handling.
3156 * cp-support.c: Use C++ exception handling.
3157 * cp-abi.c: Use C++ exception handling.
3158 * corelow.c: Use C++ exception handling.
3159 * completer.c: Use C++ exception handling.
3160 * compile/compile-object-run.c: Use C++ exception handling.
3161 * compile/compile-object-load.c: Use C++ exception handling.
3162 * compile/compile-cplus-symbols.c: Use C++ exception handling.
3163 * compile/compile-c-symbols.c: Use C++ exception handling.
3164 * common/selftest.c: Use C++ exception handling.
3165 * common/new-op.c: Use C++ exception handling.
3166 * cli/cli-script.c: Use C++ exception handling.
3167 * cli/cli-interp.c: Use C++ exception handling.
3168 * cli/cli-cmds.c: Use C++ exception handling.
3169 * c-varobj.c: Use C++ exception handling.
3170 * btrace.c: Use C++ exception handling.
3171 * breakpoint.c: Use C++ exception handling.
3172 * break-catch-throw.c: Use C++ exception handling.
3173 * arch-utils.c: Use C++ exception handling.
3174 * amd64-tdep.c: Use C++ exception handling.
3175 * ada-valprint.c: Use C++ exception handling.
3176 * ada-typeprint.c: Use C++ exception handling.
3177 * ada-lang.c: Use C++ exception handling.
3178 * aarch64-tdep.c: Use C++ exception handling.
3180 2019-04-08 Tom Tromey <tom@tromey.com>
3182 * xml-support.c (gdb_xml_parser::parse): Update.
3183 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3184 * value.c (show_convenience): Update.
3185 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
3186 (test_parse_flags_qcs): Update.
3187 * thread.c (thr_try_catch_cmd): Update.
3188 * target.c (target_translate_tls_address): Update.
3189 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3190 (info_frame_command_core, frame_apply_command_count): Update.
3191 * rust-exp.y (rust_lex_exception_test): Update.
3192 * riscv-tdep.c (riscv_print_one_register_info): Update.
3193 * remote.c (remote_target::enable_btrace): Update.
3194 * record-btrace.c (record_btrace_enable_warn): Update.
3195 * python/py-utils.c (gdbpy_convert_exception): Update.
3196 * printcmd.c (do_one_display, print_variable_and_value): Update.
3197 * mi/mi-main.c (mi_print_exception): Update.
3198 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
3199 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3200 * linux-nat.c (linux_nat_target::attach): Update.
3201 * linux-fork.c (class scoped_switch_fork_info): Update.
3202 * infrun.c (displaced_step_prepare): Update.
3203 * infcall.c (call_function_by_hand_dummy): Update.
3204 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
3205 * gnu-v3-abi.c (print_one_vtable): Update.
3206 * frame.c (get_prev_frame_always): Update.
3207 * f-valprint.c (info_common_command_for_block): Update.
3208 * exec.c (try_open_exec_file): Update.
3209 * exceptions.c (print_exception, exception_print)
3210 (exception_fprintf, exception_print_same): Update.
3211 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
3212 * dwarf-index-cache.c (index_cache::store)
3213 (index_cache::lookup_gdb_index): Update.
3214 * darwin-nat.c (maybe_cache_shell): Update.
3215 * cp-valprint.c (cp_print_value_fields): Update.
3216 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
3217 (gcc_cplus_symbol_address): Update.
3218 * compile/compile-c-symbols.c (gcc_convert_symbol)
3219 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
3220 * common/selftest.c: Update.
3221 * common/common-exceptions.h (struct gdb_exception) <message>: Now
3223 (exception_try_scope_entry, exception_try_scope_exit): Don't
3225 (struct exception_try_scope): Remove.
3226 (TRY): Don't use exception_try_scope.
3227 (struct gdb_exception): Add constructor, operator=.
3229 (struct gdb_exception_RETURN_MASK_ALL)
3230 (struct gdb_exception_RETURN_MASK_ERROR)
3231 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
3232 (struct gdb_quit_bad_alloc): Update.
3233 * common/common-exceptions.c (exception_none): Change
3235 (struct catcher) <state, exception>: Initialize inline.
3236 <prev>: Remove member.
3237 (current_catcher): Remove.
3238 (catchers): New global.
3239 (exceptions_state_mc_init): Simplify.
3240 (catcher_pop): Remove.
3241 (exceptions_state_mc, exceptions_state_mc_catch): Update.
3242 (try_scope_depth, exception_try_scope_entry)
3243 (exception_try_scope_exit): Remove.
3244 (throw_exception_sjlj): Update.
3245 (exception_messages, exception_messages_size): Remove.
3246 (throw_it): Simplify.
3247 (gdb_exception_sliced_copy): Remove.
3248 (throw_exception_cxx): Update.
3249 * cli/cli-script.c (script_from_file): Update.
3250 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
3252 * ada-valprint.c (ada_val_print): Update.
3253 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
3254 (create_excep_cond_exprs): Update.
3256 2019-04-08 Tom Tromey <tom@tromey.com>
3258 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
3259 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
3260 (TRY, CATCH, END_CATCH): Remove some definitions.
3261 * common/common-exceptions.c: Don't use GDB_XCPT.
3262 (catcher_list_size): Remove.
3263 (throw_exception, throw_it): Simplify.
3265 2019-04-05 Tom Tromey <tom@tromey.com>
3267 Revert the header-sorting patch.
3268 * ft32-tdep.c: Revert.
3269 * frv-tdep.c: Revert.
3270 * frv-linux-tdep.c: Revert.
3272 * frame-unwind.c: Revert.
3273 * frame-base.c: Revert.
3274 * fork-child.c: Revert.
3275 * findvar.c: Revert.
3276 * findcmd.c: Revert.
3277 * filesystem.c: Revert.
3278 * filename-seen-cache.h: Revert.
3279 * filename-seen-cache.c: Revert.
3280 * fbsd-tdep.c: Revert.
3281 * fbsd-nat.h: Revert.
3282 * fbsd-nat.c: Revert.
3283 * f-valprint.c: Revert.
3284 * f-typeprint.c: Revert.
3286 * extension.h: Revert.
3287 * extension.c: Revert.
3288 * extension-priv.h: Revert.
3289 * expprint.c: Revert.
3292 * exceptions.c: Revert.
3293 * event-top.c: Revert.
3294 * event-loop.c: Revert.
3296 * elfread.c: Revert.
3297 * dwarf2read.h: Revert.
3298 * dwarf2read.c: Revert.
3299 * dwarf2loc.c: Revert.
3300 * dwarf2expr.h: Revert.
3301 * dwarf2expr.c: Revert.
3302 * dwarf2-frame.c: Revert.
3303 * dwarf2-frame-tailcall.c: Revert.
3304 * dwarf-index-write.h: Revert.
3305 * dwarf-index-write.c: Revert.
3306 * dwarf-index-common.c: Revert.
3307 * dwarf-index-cache.h: Revert.
3308 * dwarf-index-cache.c: Revert.
3309 * dummy-frame.c: Revert.
3310 * dtrace-probe.c: Revert.
3313 * disasm-selftests.c: Revert.
3314 * dictionary.c: Revert.
3315 * dicos-tdep.c: Revert.
3316 * demangle.c: Revert.
3319 * darwin-nat.h: Revert.
3320 * darwin-nat.c: Revert.
3321 * darwin-nat-info.c: Revert.
3322 * d-valprint.c: Revert.
3323 * d-namespace.c: Revert.
3326 * csky-tdep.c: Revert.
3327 * csky-linux-tdep.c: Revert.
3328 * cris-tdep.c: Revert.
3329 * cris-linux-tdep.c: Revert.
3330 * cp-valprint.c: Revert.
3331 * cp-support.c: Revert.
3332 * cp-namespace.c: Revert.
3334 * corelow.c: Revert.
3335 * corefile.c: Revert.
3336 * continuations.c: Revert.
3337 * completer.h: Revert.
3338 * completer.c: Revert.
3339 * complaints.c: Revert.
3340 * coffread.c: Revert.
3341 * coff-pe-read.c: Revert.
3342 * cli-out.h: Revert.
3343 * cli-out.c: Revert.
3344 * charset.c: Revert.
3345 * c-varobj.c: Revert.
3346 * c-valprint.c: Revert.
3347 * c-typeprint.c: Revert.
3349 * buildsym.c: Revert.
3350 * buildsym-legacy.c: Revert.
3351 * build-id.h: Revert.
3352 * build-id.c: Revert.
3354 * bsd-uthread.c: Revert.
3355 * breakpoint.h: Revert.
3356 * breakpoint.c: Revert.
3357 * break-catch-throw.c: Revert.
3358 * break-catch-syscall.c: Revert.
3359 * break-catch-sig.c: Revert.
3360 * blockframe.c: Revert.
3362 * bfin-tdep.c: Revert.
3363 * bfin-linux-tdep.c: Revert.
3364 * bfd-target.c: Revert.
3366 * ax-general.c: Revert.
3369 * avr-tdep.c: Revert.
3371 * auto-load.c: Revert.
3372 * arm-wince-tdep.c: Revert.
3373 * arm-tdep.c: Revert.
3374 * arm-symbian-tdep.c: Revert.
3375 * arm-pikeos-tdep.c: Revert.
3376 * arm-obsd-tdep.c: Revert.
3377 * arm-nbsd-tdep.c: Revert.
3378 * arm-nbsd-nat.c: Revert.
3379 * arm-linux-tdep.c: Revert.
3380 * arm-linux-nat.c: Revert.
3381 * arm-fbsd-tdep.c: Revert.
3382 * arm-fbsd-nat.c: Revert.
3383 * arm-bsd-tdep.c: Revert.
3384 * arch-utils.c: Revert.
3385 * arc-tdep.c: Revert.
3386 * arc-newlib-tdep.c: Revert.
3387 * annotate.h: Revert.
3388 * annotate.c: Revert.
3389 * amd64-windows-tdep.c: Revert.
3390 * amd64-windows-nat.c: Revert.
3391 * amd64-tdep.c: Revert.
3392 * amd64-sol2-tdep.c: Revert.
3393 * amd64-obsd-tdep.c: Revert.
3394 * amd64-obsd-nat.c: Revert.
3395 * amd64-nbsd-tdep.c: Revert.
3396 * amd64-nbsd-nat.c: Revert.
3397 * amd64-nat.c: Revert.
3398 * amd64-linux-tdep.c: Revert.
3399 * amd64-linux-nat.c: Revert.
3400 * amd64-fbsd-tdep.c: Revert.
3401 * amd64-fbsd-nat.c: Revert.
3402 * amd64-dicos-tdep.c: Revert.
3403 * amd64-darwin-tdep.c: Revert.
3404 * amd64-bsd-nat.c: Revert.
3405 * alpha-tdep.c: Revert.
3406 * alpha-obsd-tdep.c: Revert.
3407 * alpha-nbsd-tdep.c: Revert.
3408 * alpha-mdebug-tdep.c: Revert.
3409 * alpha-linux-tdep.c: Revert.
3410 * alpha-linux-nat.c: Revert.
3411 * alpha-bsd-tdep.c: Revert.
3412 * alpha-bsd-nat.c: Revert.
3413 * aix-thread.c: Revert.
3415 * addrmap.c: Revert.
3416 * ada-varobj.c: Revert.
3417 * ada-valprint.c: Revert.
3418 * ada-typeprint.c: Revert.
3419 * ada-tasks.c: Revert.
3420 * ada-lang.c: Revert.
3421 * aarch64-tdep.c: Revert.
3422 * aarch64-ravenscar-thread.c: Revert.
3423 * aarch64-newlib-tdep.c: Revert.
3424 * aarch64-linux-tdep.c: Revert.
3425 * aarch64-linux-nat.c: Revert.
3426 * aarch64-fbsd-tdep.c: Revert.
3427 * aarch64-fbsd-nat.c: Revert.
3428 * aarch32-linux-nat.c: Revert.
3430 2019-04-05 Tom Tromey <tom@tromey.com>
3432 * ft32-tdep.c: Sort headers.
3433 * frv-tdep.c: Sort headers.
3434 * frv-linux-tdep.c: Sort headers.
3435 * frame.c: Sort headers.
3436 * frame-unwind.c: Sort headers.
3437 * frame-base.c: Sort headers.
3438 * fork-child.c: Sort headers.
3439 * findvar.c: Sort headers.
3440 * findcmd.c: Sort headers.
3441 * filesystem.c: Sort headers.
3442 * filename-seen-cache.h: Sort headers.
3443 * filename-seen-cache.c: Sort headers.
3444 * fbsd-tdep.c: Sort headers.
3445 * fbsd-nat.h: Sort headers.
3446 * fbsd-nat.c: Sort headers.
3447 * f-valprint.c: Sort headers.
3448 * f-typeprint.c: Sort headers.
3449 * f-lang.c: Sort headers.
3450 * extension.h: Sort headers.
3451 * extension.c: Sort headers.
3452 * extension-priv.h: Sort headers.
3453 * expprint.c: Sort headers.
3454 * exec.h: Sort headers.
3455 * exec.c: Sort headers.
3456 * exceptions.c: Sort headers.
3457 * event-top.c: Sort headers.
3458 * event-loop.c: Sort headers.
3459 * eval.c: Sort headers.
3460 * elfread.c: Sort headers.
3461 * dwarf2read.h: Sort headers.
3462 * dwarf2read.c: Sort headers.
3463 * dwarf2loc.c: Sort headers.
3464 * dwarf2expr.h: Sort headers.
3465 * dwarf2expr.c: Sort headers.
3466 * dwarf2-frame.c: Sort headers.
3467 * dwarf2-frame-tailcall.c: Sort headers.
3468 * dwarf-index-write.h: Sort headers.
3469 * dwarf-index-write.c: Sort headers.
3470 * dwarf-index-common.c: Sort headers.
3471 * dwarf-index-cache.h: Sort headers.
3472 * dwarf-index-cache.c: Sort headers.
3473 * dummy-frame.c: Sort headers.
3474 * dtrace-probe.c: Sort headers.
3475 * disasm.h: Sort headers.
3476 * disasm.c: Sort headers.
3477 * disasm-selftests.c: Sort headers.
3478 * dictionary.c: Sort headers.
3479 * dicos-tdep.c: Sort headers.
3480 * demangle.c: Sort headers.
3481 * dcache.h: Sort headers.
3482 * dcache.c: Sort headers.
3483 * darwin-nat.h: Sort headers.
3484 * darwin-nat.c: Sort headers.
3485 * darwin-nat-info.c: Sort headers.
3486 * d-valprint.c: Sort headers.
3487 * d-namespace.c: Sort headers.
3488 * d-lang.c: Sort headers.
3489 * ctf.c: Sort headers.
3490 * csky-tdep.c: Sort headers.
3491 * csky-linux-tdep.c: Sort headers.
3492 * cris-tdep.c: Sort headers.
3493 * cris-linux-tdep.c: Sort headers.
3494 * cp-valprint.c: Sort headers.
3495 * cp-support.c: Sort headers.
3496 * cp-namespace.c: Sort headers.
3497 * cp-abi.c: Sort headers.
3498 * corelow.c: Sort headers.
3499 * corefile.c: Sort headers.
3500 * continuations.c: Sort headers.
3501 * completer.h: Sort headers.
3502 * completer.c: Sort headers.
3503 * complaints.c: Sort headers.
3504 * coffread.c: Sort headers.
3505 * coff-pe-read.c: Sort headers.
3506 * cli-out.h: Sort headers.
3507 * cli-out.c: Sort headers.
3508 * charset.c: Sort headers.
3509 * c-varobj.c: Sort headers.
3510 * c-valprint.c: Sort headers.
3511 * c-typeprint.c: Sort headers.
3512 * c-lang.c: Sort headers.
3513 * buildsym.c: Sort headers.
3514 * buildsym-legacy.c: Sort headers.
3515 * build-id.h: Sort headers.
3516 * build-id.c: Sort headers.
3517 * btrace.c: Sort headers.
3518 * bsd-uthread.c: Sort headers.
3519 * breakpoint.h: Sort headers.
3520 * breakpoint.c: Sort headers.
3521 * break-catch-throw.c: Sort headers.
3522 * break-catch-syscall.c: Sort headers.
3523 * break-catch-sig.c: Sort headers.
3524 * blockframe.c: Sort headers.
3525 * block.c: Sort headers.
3526 * bfin-tdep.c: Sort headers.
3527 * bfin-linux-tdep.c: Sort headers.
3528 * bfd-target.c: Sort headers.
3529 * bcache.c: Sort headers.
3530 * ax-general.c: Sort headers.
3531 * ax-gdb.h: Sort headers.
3532 * ax-gdb.c: Sort headers.
3533 * avr-tdep.c: Sort headers.
3534 * auxv.c: Sort headers.
3535 * auto-load.c: Sort headers.
3536 * arm-wince-tdep.c: Sort headers.
3537 * arm-tdep.c: Sort headers.
3538 * arm-symbian-tdep.c: Sort headers.
3539 * arm-pikeos-tdep.c: Sort headers.
3540 * arm-obsd-tdep.c: Sort headers.
3541 * arm-nbsd-tdep.c: Sort headers.
3542 * arm-nbsd-nat.c: Sort headers.
3543 * arm-linux-tdep.c: Sort headers.
3544 * arm-linux-nat.c: Sort headers.
3545 * arm-fbsd-tdep.c: Sort headers.
3546 * arm-fbsd-nat.c: Sort headers.
3547 * arm-bsd-tdep.c: Sort headers.
3548 * arch-utils.c: Sort headers.
3549 * arc-tdep.c: Sort headers.
3550 * arc-newlib-tdep.c: Sort headers.
3551 * annotate.h: Sort headers.
3552 * annotate.c: Sort headers.
3553 * amd64-windows-tdep.c: Sort headers.
3554 * amd64-windows-nat.c: Sort headers.
3555 * amd64-tdep.c: Sort headers.
3556 * amd64-sol2-tdep.c: Sort headers.
3557 * amd64-obsd-tdep.c: Sort headers.
3558 * amd64-obsd-nat.c: Sort headers.
3559 * amd64-nbsd-tdep.c: Sort headers.
3560 * amd64-nbsd-nat.c: Sort headers.
3561 * amd64-nat.c: Sort headers.
3562 * amd64-linux-tdep.c: Sort headers.
3563 * amd64-linux-nat.c: Sort headers.
3564 * amd64-fbsd-tdep.c: Sort headers.
3565 * amd64-fbsd-nat.c: Sort headers.
3566 * amd64-dicos-tdep.c: Sort headers.
3567 * amd64-darwin-tdep.c: Sort headers.
3568 * amd64-bsd-nat.c: Sort headers.
3569 * alpha-tdep.c: Sort headers.
3570 * alpha-obsd-tdep.c: Sort headers.
3571 * alpha-nbsd-tdep.c: Sort headers.
3572 * alpha-mdebug-tdep.c: Sort headers.
3573 * alpha-linux-tdep.c: Sort headers.
3574 * alpha-linux-nat.c: Sort headers.
3575 * alpha-bsd-tdep.c: Sort headers.
3576 * alpha-bsd-nat.c: Sort headers.
3577 * aix-thread.c: Sort headers.
3578 * agent.c: Sort headers.
3579 * addrmap.c: Sort headers.
3580 * ada-varobj.c: Sort headers.
3581 * ada-valprint.c: Sort headers.
3582 * ada-typeprint.c: Sort headers.
3583 * ada-tasks.c: Sort headers.
3584 * ada-lang.c: Sort headers.
3585 * aarch64-tdep.c: Sort headers.
3586 * aarch64-ravenscar-thread.c: Sort headers.
3587 * aarch64-newlib-tdep.c: Sort headers.
3588 * aarch64-linux-tdep.c: Sort headers.
3589 * aarch64-linux-nat.c: Sort headers.
3590 * aarch64-fbsd-tdep.c: Sort headers.
3591 * aarch64-fbsd-nat.c: Sort headers.
3592 * aarch32-linux-nat.c: Sort headers.
3594 2019-04-04 Tom Tromey <tom@tromey.com>
3596 * varobj.c (varobj_create): Update.
3597 * rust-exp.y (struct rust_parser) <update_innermost_block,
3598 lookup_symbol>: New methods.
3599 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
3601 (rust_parser::rust_lookup_type)
3602 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3603 * printcmd.c (display_command, do_one_display): Update.
3604 * parser-defs.h (struct parser_state) <parser_state>: Add
3605 "tracker" parameter.
3606 (block_tracker): New member.
3607 (class innermost_block_tracker) <innermost_block_tracker>: Add
3609 <reset>: Remove method.
3610 (innermost_block): Don't declare.
3611 (null_post_parser): Update.
3612 * parse.c (innermost_block): Remove global.
3613 (write_dollar_variable): Update.
3614 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
3615 Remove "tracker_types" parameter.
3616 (parse_expression): Add "tracker" parameter.
3617 (parse_expression_for_completion): Update.
3618 (null_post_parser): Add "tracker" parameter.
3619 * p-exp.y: Update rules.
3620 * m2-exp.y: Update rules.
3621 * language.h (struct language_defn) <la_post_parser>: Add
3622 "tracker" parameter.
3623 * go-exp.y: Update rules.
3624 * f-exp.y: Update rules.
3625 * expression.h (parse_expression, parse_exp_1): Add "tracker"
3627 * d-exp.y: Update rules.
3628 * c-exp.y: Update rules.
3629 * breakpoint.c (set_breakpoint_condition): Create an
3630 innermost_block_tracker.
3631 (watch_command_1): Likewise.
3632 * ada-lang.c (resolve): Add "tracker" parameter.
3633 (resolve_subexp): Likewise.
3634 * ada-exp.y (write_var_from_sym): Update.
3636 2019-04-04 Tom Tromey <tom@tromey.com>
3638 * type-stack.h: New file.
3639 * type-stack.c: New file.
3640 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
3642 (insert_into_type_stack, insert_type, push_type, push_type_int)
3643 (insert_type_address_space, pop_type, pop_type_int)
3644 (pop_typelist, pop_type_stack, append_type_stack)
3645 (push_type_stack, get_type_stack, push_typelist)
3646 (follow_type_instance_flags, follow_types): Don't declare.
3647 * parse.c (type_stack): Remove global.
3648 (parse_exp_in_context): Update.
3649 (insert_into_type_stack, insert_type, push_type, push_type_int)
3650 (insert_type_address_space, pop_type, pop_type_int)
3651 (pop_typelist, pop_type_stack, append_type_stack)
3652 (push_type_stack, get_type_stack, push_typelist)
3653 (follow_type_instance_flags, follow_types): Remove (moved to
3655 * f-exp.y (type_stack): New global.
3657 (push_kind_type, f_parse): Update.
3658 * d-exp.y (type_stack): New global.
3661 * c-exp.y (struct c_parse_state) <type_stack>: New member.
3663 * Makefile.in (COMMON_SFILES): Add type-stack.c.
3664 (HFILES_NO_SRCDIR): Add type-stack.h.
3666 2019-04-04 Tom Tromey <tom@tromey.com>
3668 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
3669 (rust_parser::convert_ast_to_expression, rust_parse)
3670 (rust_lex_test_completion, rust_lex_tests): Update.
3671 * parser-defs.h (struct expr_completion_state): New.
3672 (struct parser_state) <parser_state>: Add completion parameter.
3673 <mark_struct_expression, mark_completion_tag>: New methods.
3674 <parse_completion, m_completion_state>: New members.
3675 (prefixify_expression, null_post_parser): Update.
3676 (mark_struct_expression, mark_completion_tag): Don't declare.
3677 * parse.c (parse_completion, expout_last_struct)
3678 (expout_tag_completion_type, expout_completion_name): Remove
3680 (parser_state::mark_struct_expression)
3681 (parser_state::mark_completion_tag): Now methods.
3682 (prefixify_expression): Add last_struct parameter.
3683 (prefixify_subexp): Likewise.
3684 (parse_exp_1): Update.
3685 (parse_exp_in_context): Add cstate parameter. Update.
3686 (parse_expression_for_completion): Create an
3687 expr_completion_state.
3688 (null_post_parser): Add "completion" parameter.
3689 * p-exp.y: Update rules.
3691 * language.h (struct language_defn) <la_post_parser>: Add
3692 "completing" parameter.
3693 * go-exp.y: Update rules.
3694 (lex_one_token): Update.
3695 * expression.h (parse_completion): Don't declare.
3696 * d-exp.y: Update rules.
3697 (lex_one_token): Update rules.
3698 * c-exp.y: Update rules.
3699 (lex_one_token): Update.
3700 * ada-lang.c (resolve): Add "parse_completion" parameter.
3701 (resolve_subexp): Likewise.
3702 (ada_resolve_function): Likewise.
3704 2019-04-04 Tom Tromey <tom@tromey.com>
3706 * parser-defs.h (struct parser_state) <start_arglist,
3707 end_arglist>: New methods.
3708 <arglist_len, m_funcall_chain>: New members.
3709 (arglist_len, start_arglist, end_arglist): Don't declare.
3710 * parse.c (arglist_len, funcall_chain): Remove global.
3711 (start_arglist, end_arglist): Remove functions.
3712 (parse_exp_in_context): Update.
3713 * p-exp.y: Update rules.
3714 * m2-exp.y: Update rules.
3715 * go-exp.y: Update rules.
3716 * f-exp.y: Update rules.
3717 * d-exp.y: Update rules.
3718 * c-exp.y: Update rules.
3720 2019-04-04 Tom Tromey <tom@tromey.com>
3722 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3723 lex_operator, push_back>: New methods.
3725 (rust_parser::lex_hex, lex_escape): Rename and update.
3726 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3727 (rust_parser::lex_operator): Rename and update.
3728 (rust_parser::lex_number, rustyylex, rustyyerror)
3729 (rust_lex_test_init, rust_lex_test_sequence)
3730 (rust_lex_test_push_back, rust_lex_tests): Update.
3731 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3733 <lexptr, prev_lexptr>: New members.
3734 (lexptr, prev_lexptr): Don't declare.
3735 * parse.c (lexptr, prev_lexptr): Remove globals.
3736 (parse_exp_in_context): Update.
3737 * p-exp.y (yylex, yyerror): Update.
3738 * m2-exp.y (parse_number, yylex, yyerror): Update.
3739 * go-exp.y (lex_one_token, yyerror): Update.
3740 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3741 * d-exp.y (lex_one_token, yyerror): Update.
3742 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3743 (lex_one_token, yyerror): Update.
3744 * ada-lex.l (YY_INPUT): Update.
3745 (rewind_to_char): Update.
3746 * ada-exp.y (yyerror): Update.
3748 2019-04-04 Tom Tromey <tom@tromey.com>
3750 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3751 * parser-defs.h (struct parser_state) <parser_state>: Add new
3753 <comma_terminates>: New member.
3754 (comma_terminates): Don't declare global.
3755 * parse.c (comma_terminates): Remove global.
3756 (parse_exp_in_context): Update.
3757 * p-exp.y (yylex): Update.
3758 * m2-exp.y (yylex): Update.
3759 * go-exp.y (lex_one_token): Update.
3760 * f-exp.y (yylex): Update.
3761 * d-exp.y (lex_one_token): Update.
3762 * c-exp.y (lex_one_token): Update.
3763 * ada-lex.l: Update.
3765 2019-04-04 Tom Tromey <tom@tromey.com>
3767 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3768 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3769 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3770 * parser-defs.h (paren_depth): Don't declare.
3771 * parse.c (paren_depth): Remove global.
3772 (parse_exp_in_context): Update.
3773 * p-exp.y (paren_depth): New global.
3774 (pascal_parse): Initialize it.
3775 * m2-exp.y (paren_depth): New global.
3776 (m2_parse): Initialize it.
3777 * go-exp.y (paren_depth): New global.
3778 (go_parse): Initialize it.
3779 * f-exp.y (paren_depth): New global.
3780 (f_parse): Initialize it.
3781 * d-exp.y (paren_depth): New global.
3782 (d_parse): Initialize it.
3783 * c-exp.y (paren_depth): New global.
3784 (c_parse): Initialize it.
3785 * ada-lex.l (paren_depth): New global.
3786 (lexer_init): Initialize it.
3788 2019-04-04 Tom Tromey <tom@tromey.com>
3790 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3791 (rust_parser::convert_ast_to_type)
3792 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3793 * parser-defs.h (struct parser_state) <parser_state>: Add
3794 parameters. Initialize new members.
3795 <expression_context_block, expression_context_pc>: New members.
3796 * parse.c (expression_context_block, expression_context_pc):
3798 (parse_exp_in_context): Update.
3799 * p-exp.y: Update all rules.
3801 * m2-exp.y: Update all rules.
3803 * go-exp.y (yylex): Update.
3804 * f-exp.y (yylex): Update.
3805 * d-exp.y: Update all rules.
3807 * c-exp.y: Update all rules.
3808 (lex_one_token, classify_name, yylex, c_parse): Update.
3809 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3811 2019-04-04 Tom Tromey <tom@tromey.com>
3813 * gdbarch.h, gdbarch.c: Rebuild.
3814 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3816 (struct stap_parse_info): Replace "parser_state" with
3818 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3819 (parser_state): New class.
3820 * parse.c (expr_builder): Rename.
3821 (expr_builder::release): Rename.
3822 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3823 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3824 (write_exp_elt_longcst, write_exp_elt_floatcst)
3825 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3826 (write_exp_string_vector, write_exp_bitstring)
3827 (write_exp_msymbol, mark_struct_expression)
3828 (write_dollar_variable)
3829 (insert_type_address_space, increase_expout_size): Replace
3830 "parser_state" with "expr_builder".
3831 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3832 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3833 "parser_state" with "expr_builder".
3835 2019-04-04 Tom Tromey <tom@tromey.com>
3837 * rust-exp.y: Replace "parse_language" with method call.
3839 (yylex): Replace "parse_language" with method call.
3841 (yylex): Replace "parse_language" with method call.
3842 * go-exp.y (classify_name): Replace "parse_language" with method
3844 * f-exp.y (yylex): Replace "parse_language" with method call.
3845 * d-exp.y (lex_one_token): Replace "parse_language" with method
3848 (lex_one_token, classify_name, yylex): Replace "parse_language"
3850 * ada-exp.y (find_primitive_type, type_char)
3851 (type_system_address): Replace "parse_language" with method call.
3853 2019-04-04 Tom Tromey <tom@tromey.com>
3855 * rust-exp.y: Replace "parse_gdbarch" with method call.
3856 * parse.c (write_dollar_variable, insert_type_address_space):
3857 Replace "parse_gdbarch" with method call.
3858 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3860 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3862 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3863 "parse_gdbarch" with method call.
3864 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3866 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3867 "parse_gdbarch" with method call.
3868 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3869 "parse_gdbarch" with method call.
3870 * c-exp.y (parse_type, parse_number, classify_name): Replace
3871 "parse_gdbarch" with method call.
3872 * ada-lex.l: Replace "parse_gdbarch" with method call.
3873 * ada-exp.y (parse_type, find_primitive_type, type_char)
3874 (type_system_address): Replace "parse_gdbarch" with method call.
3876 2019-04-04 Tom Tromey <tom@tromey.com>
3878 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3879 * stap-probe.c (stap_parse_argument): Update.
3880 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3881 initial_size parameter.
3882 * rust-exp.y (rust_lex_tests): Update.
3883 * parse.c (parser_state): Update.
3884 (parse_exp_in_context): Update.
3885 * parser-defs.h (struct parser_state) <parser_state>: Remove
3886 "initial_size" parameter.
3888 2019-04-04 Tom Tromey <tom@tromey.com>
3890 * parser-defs.h (increase_expout_size): Don't declare.
3891 * parse.c (increase_expout_size): Now static.
3893 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3895 * gnu-nat.c (gnu_nat_target::wait): Fix
3896 target_waitstatus_to_string call.
3898 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3900 * eval.c (evaluate_subexp_standard): Handle internal functions
3901 during Fortran function call handling.
3903 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3905 * NEWS: Mention new internal functions.
3906 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3907 (read_base_type): Use dwarf2_init_complex_target_type.
3908 * value.c (creal_internal_fn): New function.
3909 (cimag_internal_fn): New function.
3910 (_initialize_values): Register new internal functions.
3912 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3914 * infrun.c (stop_all_threads): If debug_infrun, always
3915 trace the wait status after wait_one, using
3916 target_waitstatus_to_string and target_pid_to_str.
3917 (handle_inferior_event): Replace various trace of
3918 wait status kind by a single trace.
3919 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3920 wait status kind image by target_waitstatus_to_string.
3921 * target/waitstatus.c (target_waitstatus_to_string): Fix
3924 2019-04-01 Tom Tromey <tromey@adacore.com>
3927 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3929 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3930 Pedro Alves <palves@redhat.com>
3932 * top.c (quit_force): Call 'finalize_values'.
3933 * value.c (finalize_values): New function.
3934 * value.h (finalize_values): Declare.
3936 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3938 * NEWS: Announce $_gdb_major and $_gdb_minor.
3940 * top.c (init_gdb_version_vars): New function.
3941 (gdb_init): Call init_gdb_version_vars.
3943 2019-03-29 Tom Tromey <tromey@adacore.com>
3945 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3946 help text. Remove dead code.
3948 2019-03-29 Keith Seitz <keiths@redhat.com>
3950 From Siddhesh Poyarekar:
3951 * f-lang.h (f77_get_upperbound): Return LONGEST.
3952 (f77_get_lowerbound): Likewise.
3953 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3954 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3956 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3957 plongest to format print it.
3958 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3959 (f77_get_upperbound): Likewise.
3960 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3961 LOWER_BOUND to LONGEST.
3962 (f77_create_arrayprint_offset_tbl): Likewise.
3964 2019-03-29 Keith Seitz <keiths@redhat.com>
3966 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3967 %s/pulongest for TYPE_LENGTH instead of %d in format
3969 * ada-typerint.c (ada_print_type): Likewise.
3970 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3971 * compile/compile-c-support.c (generate_register_struct): Likewise.
3972 * gdbtypes.c (recursive_dump_type): Likewise.
3973 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3974 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3975 instead of %d in format strings.
3976 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3977 to std::min to ULONGEST.
3978 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3979 instead of %d in format strings.
3980 * tracepoint.c (info_scope_command): Likewise.
3981 * typeprint.c (print_offset_data::update)
3982 (print_offset_data::finish): Likewise.
3983 * xtensa-tdep.c (xtensa_store_return_value)
3984 (xtensa_push_dummy_call): Likewise.
3986 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3988 * windows-nat.c (display_selector): Fixed format specifications
3991 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3993 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3995 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3997 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3998 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3999 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
4000 (nios2_linux_init_abi): Install it.
4002 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4004 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
4006 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4008 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
4010 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4011 Tom Tromey <tromey@adacore.com>
4013 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
4015 2019-03-26 Joel Brobecker <brobecker@adacore.com>
4017 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
4018 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
4019 method to compute the bounds of range types. Also print "[evaluated]"
4020 if the bounds' values come from a dynamic evaluation.
4022 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
4024 * cp-valprint.c (cp_print_value_fields): Don't print trailing
4025 whitespace when pretty printing is on.
4027 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4029 * ppc-linux-nat.c: Add include.
4031 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4033 * NEWS: Mention AArch64 Pointer Authentication.
4035 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4037 * arm-linux-nat.c: Add include.
4039 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
4041 * source-cache.c (source_cache::get_source_lines): Re-read
4042 fullname after calling open_source_file.
4044 2019-03-25 John Baldwin <jhb@FreeBSD.org>
4046 * NEWS: Mention TLS support for FreeBSD.
4048 2019-03-25 Tom Tromey <tromey@adacore.com>
4050 * minsyms.c (BUNCH_SIZE): Update comment.
4051 (~minimal_symbol_reader): Remove old comment.
4052 (compact_minimal_symbols): Update comment.
4053 (minimal_symbol_reader::install): Remove old comment. Update
4056 2019-03-25 Alan Hayward <alan.hayward@arm.com>
4058 * s390-linux-nat.c: Add include.
4060 2019-03-25 Alan Hayward <alan.hayward@arm.com>
4062 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4063 Call linux_get_hwcap.
4064 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4066 (aarch64_linux_get_hwcap): Remove function.
4067 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
4069 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
4071 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4072 * linux-tdep.c (linux_get_hwcap): Add function.
4073 (linux_get_hwcap2): Likewise.
4074 * linux-tdep.h (linux_get_hwcap): Add declaration.
4075 (linux_get_hwcap2): Likewise.
4076 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
4077 (ppc_linux_get_hwcap2): Likewise.
4078 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
4080 (ppc_linux_nat_target::insert_watchpoint): Likewise.
4081 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
4082 (ppc_linux_nat_target::read_description): Likewise.
4083 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
4084 * s390-linux-nat.c: Likewise.
4085 * s390-linux-tdep.c (s390_core_read_description): Likewise.
4087 2019-03-24 Tom Tromey <tom@tromey.com>
4089 * ada-lang.c (standard_lookup): Simplify initialization.
4090 (ada_lookup_symbol_nonlocal): Simplify return.
4091 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
4092 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
4093 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
4094 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
4096 * solib.c (solib_global_lookup): Simplify.
4097 * symtab.c (null_block_symbol): Remove.
4098 (symbol_cache_lookup): Simplify returns.
4099 (lookup_language_this): Simplify returns.
4100 (lookup_symbol_aux): Simplify return.
4101 (lookup_local_symbol): Simplify returns.
4102 (lookup_global_symbol_from_objfile): Simplify return.
4103 (lookup_symbol_in_objfile_symtabs)
4104 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
4105 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
4106 (lookup_static_symbol, lookup_global_symbol): Simplify return.
4107 * cp-namespace.c (cp_lookup_bare_symbol)
4108 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
4109 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
4110 (cp_lookup_nested_symbol): Don't use null_block_symbol.
4111 (cp_lookup_symbol_via_imports): Simplify initialization.
4112 (find_symbol_in_baseclass): Likewise.
4113 * symtab.h (null_block_symbol): Remove.
4114 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
4115 (d_lookup_nested_symbol, d_lookup_symbol_imports)
4116 (d_lookup_symbol_module): Likewise.
4117 (find_symbol_in_baseclass): Simplify initialization.
4119 2019-03-24 Tom Tromey <tom@tromey.com>
4121 * expression.h: Don't include symtab.h.
4122 (struct block): Forward declare.
4124 2019-03-24 Tom Tromey <tom@tromey.com>
4126 * c-exp.y (typebase): Remove casts.
4127 * gdbtypes.c (lookup_unsigned_typename, )
4128 (lookup_signed_typename): Remove cast.
4129 * eval.c (parse_to_comma_and_eval): Remove cast.
4130 * parse.c (write_dollar_variable): Remove cast.
4131 * block.h (struct block) <superblock>: Now const.
4132 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
4133 * psymtab.c (psym_map_matching_symbols): Make "block" const.
4134 (map_block): Make "block" const.
4135 * symfile.h (struct quick_symbol_functions)
4136 <map_matching_symbols>: Constify block argument to "callback".
4137 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
4139 (find_pc_sect_compunit_symtab): Make "b" const.
4140 (find_symbol_at_address): Likewise.
4141 (search_symbols): Likewise.
4142 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
4143 (dw2_debug_names_lookup_symbol): Likewise.
4144 (dw2_map_matching_symbols): Update.
4145 * p-valprint.c (pascal_val_print): Remove "block".
4146 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
4147 (aux_add_nonlocal_symbols): Make "block" const.
4148 (resolve_subexp): Remove cast.
4149 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
4151 (iterate_over_file_blocks): Likewise.
4152 * f-exp.y (%union) <bval>: Remove.
4153 * coffread.c (patch_opaque_types): Make "b" const.
4154 * spu-tdep.c (spu_catch_start): Make "block" const.
4155 * c-valprint.c (print_unpacked_pointer): Remove "block".
4156 * symmisc.c (dump_symtab_1): Make "b" const.
4157 (block_depth): Make "block" const.
4158 * d-exp.y (%union) <bval>: Remove.
4159 * cp-support.h (cp_lookup_rtti_type): Update.
4160 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
4161 * psymtab.c (psym_lookup_symbol): Make "block" const.
4162 (maintenance_check_psymtabs): Make "b" const.
4163 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
4164 (enumerate_locals, enumerate_args): Update.
4165 * python/py-symtab.c (stpy_global_block): Make "block" const.
4166 (stpy_static_block): Likewise.
4167 * inline-frame.c (block_starting_point_at): Make "new_block"
4169 * block.c (find_block_in_blockvector): Make return type const.
4170 (blockvector_for_pc_sect): Make "b" const.
4171 (find_block_in_blockvector): Make "b" const.
4173 2019-03-23 Tom Tromey <tom@tromey.com>
4175 * varobj.c (varobj_create): Update.
4176 * symfile.c (clear_symtab_users): Don't reset innermost_block.
4177 * printcmd.c (display_command, do_one_display): Don't reset
4179 * parser-defs.h (enum innermost_block_tracker_type): Move to
4181 (innermost_block): Update comment.
4182 * parse.c (parse_exp_1): Add tracker_types parameter.
4183 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
4184 tracker_types parameter. Reset innermost_block.
4185 (parse_exp_in_context): Remove.
4186 (parse_expression_for_completion): Update.
4187 * objfiles.c (~objfile): Don't reset expression_context_block or
4189 * expression.h (enum innermost_block_tracker_type): Move from
4191 (parse_exp_1): Add tracker_types parameter.
4192 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
4193 reset innermost_block.
4195 2019-03-23 Tom Tromey <tom@tromey.com>
4197 * objfiles.h: Include bcache.h.
4199 2019-03-23 Tom Tromey <tom@tromey.com>
4201 * linespec.c (get_current_search_block): Use
4202 scoped_restore_current_language.
4203 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
4205 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4206 Jiong Wang <jiong.wang@arm.com>
4208 * aarch64-linux-tdep.c
4209 (aarch64_linux_iterate_over_regset_sections): Check for pauth
4211 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
4213 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4214 Jiong Wang <jiong.wang@arm.com>
4216 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
4218 (aarch64_analyze_prologue_test): Add PACIASP test.
4219 (aarch64_prologue_prev_register): Unmask PC value.
4221 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4222 Jiong Wang <jiong.wang@arm.com>
4224 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
4225 (aarch64_dwarf2_prev_register): Unmask PC value.
4226 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
4227 (aarch64_execute_dwarf_cfa_vendor_op): Check for
4228 DW_CFA_AARCH64_negate_ra_state.
4229 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
4231 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4232 Jiong Wang <jiong.wang@arm.com>
4234 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
4236 (aarch64_pseudo_register_name): Likewise.
4237 (aarch64_pseudo_register_type): Likewise.
4238 (aarch64_pseudo_register_reggroup_p): Likewise.
4239 (aarch64_gdbarch_init): Add pauth registers.
4240 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
4241 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
4242 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
4243 (struct gdbarch_tdep): Add regnum for ra_state.
4245 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4246 Jiong Wang <jiong.wang@arm.com>
4248 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
4250 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4251 Jiong Wang <jiong.wang@arm.com>
4253 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
4255 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
4256 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
4257 (aarch64_gdbarch_init): Add puth registers.
4258 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
4259 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
4260 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
4262 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4263 Jiong Wang <jiong.wang@arm.com>
4265 * aarch64-linux-nat.c
4266 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
4267 * aarch64-linux-tdep.c
4268 (aarch64_linux_core_read_description): Likewise.
4269 (aarch64_linux_get_hwcap): New function.
4270 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
4271 (aarch64_linux_get_hwcap): New declaration.
4273 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4274 Jiong Wang <jiong.wang@arm.com>
4276 * aarch64-linux-nat.c
4277 (aarch64_linux_nat_target::read_description): Add pauth param.
4278 * aarch64-linux-tdep.c
4279 (aarch64_linux_core_read_description): Likewise.
4280 * aarch64-tdep.c (struct target_desc): Add in pauth.
4281 (aarch64_read_description): Add pauth param.
4282 (aarch64_gdbarch_init): Likewise.
4283 * aarch64-tdep.h (aarch64_read_description): Likewise.
4284 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4285 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4286 * features/Makefile: Add new files.
4287 * features/aarch64-pauth.c: New file.
4288 * features/aarch64-pauth.xml: New file.
4290 2019-03-20 Tom Tromey <tromey@adacore.com>
4292 * infrun.c (handle_inferior_event): Rename from
4293 handle_inferior_event_1. Create a scoped_value_mark.
4294 (handle_inferior_event): Remove.
4296 2019-03-19 Tom Tromey <tromey@adacore.com>
4298 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
4299 * infrun.h (print_stop_event): Add "displays" parameter.
4300 * infrun.c (print_stop_event): Add "displays" parameter.
4302 2019-03-19 Pedro Alves <palves@redhat.com>
4304 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
4305 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
4306 to -1. Fix TABs vs spaces.
4307 (tui_ui_out::tui_ui_out): Don't initialize fields here.
4308 * tui/tui-out.h (tui_ui_out) Add intro comments.
4309 <m_line, m_start_of_line>: In-class initialize, and add describing
4312 2019-03-18 Alan Hayward <alan.hayward@arm.com>
4314 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
4316 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
4318 2019-03-18 Pedro Alves <palves@redhat.com>
4319 Eli Zaretskii <eliz@gnu.org>
4321 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
4322 m_line and m_start_of_line.
4324 2019-03-18 Eli Zaretskii <eliz@gnu.org>
4326 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
4327 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
4328 it returns a newline. This fixes a regression in TU mode, whereby
4329 the next line is output on the same screen line as the user input.
4331 2019-03-18 Tom Tromey <tromey@adacore.com>
4333 * minsyms.c (minimal_symbol_reader::install): Remove call to
4336 2019-03-18 Pedro Alves <palves@redhat.com>
4338 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
4340 (apply_style): New, factored out from ...
4341 (apply_ansi_escape): ... this. Handle reverse video mode.
4342 (tui_set_reverse_mode): New function.
4343 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
4344 * tui/tui-winsource.c (tui_show_source_line): Use
4345 tui_set_reverse_mode instead of setting A_STANDOUT.
4346 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
4349 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
4351 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
4354 2019-03-18 Tom Tromey <tromey@adacore.com>
4356 * ada-lang.c (empty_array): Add "high" parameter.
4357 (ada_evaluate_subexp): Update.
4359 2019-03-17 Sergei Trofimovich <siarheit@google.com>
4361 * unittests/string_view-selftests.c: Define
4362 _initialize_string_view_selftests unconditionally.
4364 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4367 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
4369 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4372 * windows-nat.c (display_selector): Fix format specifiers.
4374 2019-03-17 Eli Zaretskii <eliz@gnu.org>
4376 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
4377 tui_refill_source_window instead of tui_refresh_win, to update the
4378 current execution line. This fixes redisplay of the current line
4379 when stepping through the code with "next" or "step".
4381 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4383 * source-cache.c (source_cache::get_source_lines): Call
4384 find_source_lines to initialize s->nlines. This fixes vertical
4385 scrolling of TUI source window when the DOWN arrow is pressed.
4387 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4389 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
4390 linux-thread-db.c (_initialize_thread_db): Likewise.
4392 2019-03-16 Eli Zaretskii <eliz@gnu.org>
4394 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
4395 wclrtoeol in tui_show_source_line". This reverts changes made in
4396 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
4398 2019-03-15 Tom Tromey <tom@tromey.com>
4400 * symtab.h (struct minimal_symbol): Derive from
4401 general_symbol_info.
4402 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
4403 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4404 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4405 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4406 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
4407 (MSYMBOL_SEARCH_NAME): Update.
4408 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
4409 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
4410 * minsyms.c (minimal_symbol_reader::record_full): Update.
4412 2019-03-15 Tom Tromey <tom@tromey.com>
4414 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
4416 2019-03-15 Tom Tromey <tom@tromey.com>
4418 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
4420 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
4422 * minsyms.c (lookup_minimal_symbol_by_pc_section)
4423 (build_minimal_symbol_hash_tables)
4424 (minimal_symbol_reader::install): Update.
4426 2019-03-15 Tom Tromey <tom@tromey.com>
4428 * symtab.c (create_demangled_names_hash): Update.
4429 (symbol_set_names): Update.
4430 * objfiles.h (struct objfile_per_bfd_storage)
4431 <demangled_names_hash>: Now an htab_up.
4432 * objfiles.c (objfile_per_bfd_storage): Simplify.
4434 2019-03-15 Tom Tromey <tom@tromey.com>
4436 * objfiles.h (struct objfile_per_bfd_storage): Declare
4438 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
4440 (get_objfile_bfd_data): Use new. Don't initialize
4442 (free_objfile_per_bfd_storage): Remove.
4443 (objfile_bfd_data_free, objfile::~objfile): Use delete.
4445 2019-03-15 Tom Tromey <tom@tromey.com>
4447 * symfile.c (reread_symbols): Update.
4448 * objfiles.c (objfile::objfile): Update.
4449 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
4450 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
4452 (minimal_symbol_reader::install): Update.
4453 (terminate_minimal_symbol_table): Remove.
4454 * jit.c (jit_object_close_impl): Update.
4456 2019-03-15 Tom Tromey <tom@tromey.com>
4458 * minsyms.c (minimal_symbol_reader::record_full): Remove some
4461 2019-03-15 Tom Tromey <tom@tromey.com>
4463 * objfiles.h (struct objfile_per_bfd_storage)
4464 <demangled_hash_languages>: Now a bitset.
4465 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
4466 (lookup_minimal_symbol): Update.
4468 2019-03-15 Tom Tromey <tom@tromey.com>
4470 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
4471 Don't return the symbol.
4472 * coffread.c (record_minimal_symbol): Use record_full.
4474 2019-03-14 Eli Zaretskii <eliz@gnu.org>
4476 The MS-Windows port of ncurses fails to switch to a color pair if
4477 one or both of the colors are the implicit default colors. This
4478 change records the default colors when TUI is initialized, and
4479 then specifies them explicitly when a color pair uses the default
4480 colors. This allows color styling in TUI mode on MS-Windows.
4482 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
4484 (tui_initialize_io) [__MINGW32__]: Record the default terminal
4485 colors in ncurses_norm_attr.
4486 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
4487 "none", replace it with the default color recorded in
4490 2019-03-14 Tom Tromey <tromey@adacore.com>
4492 * source-cache.h (class source_cache) <get_source_lines>: Return
4494 * source-cache.c (source_cache::extract_lines): Handle case where
4495 first_pos==npos. Return std::string.
4496 (source_cache::get_source_lines): Update.
4498 2019-03-14 Tom Tromey <tromey@adacore.com>
4500 * NEWS: Add item for "style sources" commands.
4501 * source-cache.c (source_cache::get_source_lines): Check
4503 * cli/cli-style.c (source_styling): New global.
4504 (_initialize_cli_style): Add "style sources" commands.
4505 (show_style_sources): New function.
4506 * cli/cli-style.h (source_styling): Declare.
4508 2019-03-14 Pedro Alves <palves@redhat.com>
4509 Tom Tromey <tromey@adacore.com>
4511 * tui/tui-winsource.h (tui_refill_source_window): Declare.
4512 * tui/tui-winsource.c (tui_refill_source_window): New function,
4514 (tui_horizontal_source_scroll): ... here. Move some logic.
4515 * cli/cli-style.c (set_style_enabled): Notify new observable.
4516 * tui/tui-hooks.c (tui_redisplay_source): New function.
4517 (tui_attach_detach_observers): Attach or detach
4518 tui_redisplay_source.
4519 * observable.h (source_styling_changed): New observable.
4520 * observable.c: Define source_styling_changed observable.
4522 2019-03-13 Tom Tromey <tromey@adacore.com>
4524 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
4525 (i386_gnu_nat_target::store_registers): Update.
4526 * target-debug.h (target_debug_print_std_string): New macro.
4527 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4528 * windows-tdep.c (display_one_tib): Update.
4529 * tui/tui-stack.c (tui_make_status_line): Update.
4530 * top.c (print_inferior_quit_action): Update.
4531 * thread.c (thr_try_catch_cmd): Update.
4532 (add_thread_with_info): Update.
4533 (thread_target_id_str): Update.
4534 (thr_try_catch_cmd): Update.
4535 (thread_command): Update.
4536 (thread_find_command): Update.
4537 * record-btrace.c (record_btrace_target::info_record)
4538 (record_btrace_resume_thread, record_btrace_target::resume)
4539 (record_btrace_cancel_resume, record_btrace_step_thread)
4540 (record_btrace_target::wait, record_btrace_target::wait)
4541 (record_btrace_target::wait, record_btrace_target::stop): Update.
4542 * progspace.c (print_program_space): Update.
4543 * process-stratum-target.c
4544 (process_stratum_target::thread_address_space): Update.
4545 * linux-fork.c (linux_fork_mourn_inferior)
4546 (detach_checkpoint_command, info_checkpoints_command)
4547 (linux_fork_context): Update.
4548 (linux_fork_detach): Update.
4549 (class scoped_switch_fork_info): Update.
4550 (delete_checkpoint_command): Update.
4551 * infrun.c (follow_fork_inferior): Update.
4552 (follow_fork_inferior): Update.
4553 (proceed_after_vfork_done): Update.
4554 (handle_vfork_child_exec_or_exit): Update.
4555 (follow_exec): Update.
4556 (displaced_step_prepare_throw): Update.
4557 (displaced_step_restore): Update.
4558 (start_step_over): Update.
4560 (clear_proceed_status_thread): Update.
4562 (print_target_wait_results): Update.
4563 (do_target_wait): Update.
4564 (context_switch): Update.
4565 (stop_all_threads): Update.
4566 (restart_threads): Update.
4567 (finish_step_over): Update.
4568 (handle_signal_stop): Update.
4569 (switch_back_to_stepped_thread): Update.
4570 (keep_going_pass_signal): Update.
4571 (print_exited_reason): Update.
4572 (normal_stop): Update.
4573 * inferior.c (inferior_pid_to_str): Change return type.
4574 (print_selected_inferior): Update.
4575 (add_inferior): Update.
4576 (detach_inferior): Update.
4577 * dummy-frame.c (fprint_dummy_frames): Update.
4578 * dcache.c (dcache_info_1): Update.
4579 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4580 (btrace_fetch, btrace_clear): Update.
4581 * linux-tdep.c (linux_core_pid_to_str): Change return type.
4582 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
4584 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
4585 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
4586 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
4587 * gdbarch.c, gdbarch.h: Rebuild.
4588 * gdbarch.sh (core_pid_to_str): Change return type.
4589 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
4591 (windows_nat_target::pid_to_str): Change return type.
4592 (windows_delete_thread): Update.
4593 (windows_nat_target::attach): Update.
4594 (windows_nat_target::files_info): Update.
4595 * target-delegates.c: Rebuild.
4596 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
4598 (sol_thread_target::pid_to_str): Change return type.
4599 * remote.c (class remote_target) <pid_to_str>: Change return
4601 (remote_target::pid_to_str): Change return type.
4602 (extended_remote_target::attach, remote_target::remote_stop_ns)
4603 (remote_target::remote_notif_remove_queued_reply)
4604 (remote_target::push_stop_reply, remote_target::disable_btrace):
4606 (extended_remote_target::attach): Update.
4607 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
4609 (gdbsim_target::pid_to_str): Change return type.
4610 * ravenscar-thread.c (struct ravenscar_thread_target)
4611 <pid_to_str>: Change return type.
4612 (ravenscar_thread_target::pid_to_str): Change return type.
4613 * procfs.c (class procfs_target) <pid_to_str>: Change return
4615 (procfs_target::pid_to_str): Change return type.
4616 (procfs_target::attach): Update.
4617 (procfs_target::detach): Update.
4618 (procfs_target::fetch_registers): Update.
4619 (procfs_target::store_registers): Update.
4620 (procfs_target::wait): Update.
4621 (procfs_target::files_info): Update.
4622 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
4623 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
4625 (nto_procfs_target::pid_to_str): Change return type.
4626 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
4627 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
4629 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
4631 (attach_proc_task_lwp_callback, get_detach_signal)
4632 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
4633 (linux_nat_target::resume, wait_lwp, stop_callback)
4634 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
4635 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
4636 (linux_nat_wait_1, resume_stopped_resumed_lwps)
4637 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
4638 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
4640 (inf_ptrace_target::attach): Update.
4641 (inf_ptrace_target::files_info): Update.
4642 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
4644 (go32_nat_target::pid_to_str): Change return type.
4645 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
4646 (gnu_nat_target::wait): Update.
4647 (gnu_nat_target::wait): Update.
4648 (gnu_nat_target::resume): Update.
4649 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
4650 (fbsd_nat_target::wait): Update.
4651 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
4653 (darwin_nat_target::attach): Update.
4654 * corelow.c (class core_target) <pid_to_str>: Change return type.
4655 (core_target::pid_to_str): Change return type.
4656 * target.c (normal_pid_to_str): Change return type.
4657 (default_pid_to_str): Likewise.
4658 (target_pid_to_str): Change return type.
4659 (target_translate_tls_address): Update.
4660 (target_announce_detach): Update.
4661 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
4663 (bsd_uthread_target::pid_to_str): Change return type.
4664 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
4666 (bsd_kvm_target::pid_to_str): Change return type.
4667 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
4669 (aix_thread_target::pid_to_str): Change return type.
4670 * target.h (struct target_ops) <pid_to_str>: Change return type.
4671 (target_pid_to_str, normal_pid_to_str): Likewise.
4672 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4674 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4676 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4678 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4680 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4682 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4685 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4687 * NEWS: Mention that the new default MI version is 3. Mention
4688 changes to the output of commands and events that deal with
4689 multi-location breakpoints.
4690 * breakpoint.c: Include "mi/mi-out.h".
4691 (print_one_breakpoint): Change output syntax if using MI version
4693 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4695 (mi_multi_location_breakpoint_output_fixed): New.
4696 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4697 (mi_cmd_fix_multi_location_breakpoint_output): New.
4698 (mi_multi_location_breakpoint_output_fixed): New.
4699 * mi/mi-cmds.c (mi_cmds): Register command
4700 -fix-multi-location-breakpoint-output.
4701 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4704 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4706 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4707 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4708 instantiate mi_ui_out based on interpreter name.
4709 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4710 * mi/mi-main.c (mi_load_progress): Likewise.
4712 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4714 * NEWS: Combine separate "New targets" sections for 8.3.
4716 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4718 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4719 (ppcfbsd_init_abi): Install gdbarch
4720 "fetch_tls_load_module_address" and "get_thread_local_address"
4723 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4725 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4726 (riscv_fbsd_init_abi): Install gdbarch
4727 "fetch_tls_load_module_address" and "get_thread_local_address"
4730 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4732 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4733 (i386fbsd_init_abi): Install gdbarch
4734 "fetch_tls_load_module_address" and "get_thread_local_address"
4737 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4739 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4740 (amd64fbsd_init_abi): Install gdbarch
4741 "fetch_tls_load_module_address" and "get_thread_local_address"
4744 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4746 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4747 (struct fbsd_pspace_data): New type.
4748 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4749 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4750 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4751 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4752 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4754 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4756 * gdbtypes.c (lookup_struct_elt): New function.
4757 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4758 * gdbtypes.h (struct struct_elt): New type.
4759 (lookup_struct_elt): New prototype.
4761 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4763 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4764 remove disabled code block.
4766 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4768 * gdbarch.sh (get_thread_local_address): New method.
4769 * gdbarch.h, gdbarch.c: Regenerate.
4770 * target.c (target_translate_tls_address): Use
4771 gdbarch_get_thread_local_address if present instead of
4772 target::get_thread_local_address.
4774 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4776 * target.h (target::get_thread_local_address): Update comment.
4778 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4780 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4781 objfile->separate_debug_objfile_backlink if not NULL.
4783 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4785 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4786 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4787 (amd64bsd_store_inferior_registers): Likewise.
4788 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4789 Enable segment base registers.
4790 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4791 PT_GETFSBASE and PT_GETGSBASE.
4792 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4794 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4795 segment base registers.
4796 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4798 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4800 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4801 Update calls to i386_target_description to add 'segments'
4803 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4804 add segment base registers.
4805 * arch/i386.c (i386_create_target_description): Add 'segments'
4806 parameter to enable segment base registers.
4807 * arch/i386.h (i386_create_target_description): Likewise.
4808 * features/i386/32bit-segments.xml: New file.
4809 * features/i386/32bit-segments.c: Generate.
4810 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4811 call to i386_target_description to add 'segments' parameter.
4812 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4813 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4814 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4815 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4816 if feature is present.
4817 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4818 Add 'segments' parameter to call to i386_target_description.
4819 (i386_target_description): Add 'segments' parameter to enable
4820 segment base registers.
4821 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4822 to call to i386_target_description.
4823 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4824 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4825 Define I386_NUM_REGS.
4826 (i386_target_description): Add 'segments' parameter to enable
4827 segment base registers.
4829 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4832 * source-cache.c: #undef open and close, to avoid unresolved
4833 externals during linking.
4835 2019-03-12 Tom Tromey <tromey@adacore.com>
4837 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4838 const. Add initializers.
4839 (_initialize_remote): Don't initialize ptid globals.
4841 2019-03-12 Pedro Alves <palves@redhat.com>
4843 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4845 2019-03-12 Pedro Alves <palves@redhat.com>
4847 * cp-name-parser.y (main): Remove unused 'len' variable.
4849 2019-03-12 Tom Tromey <tromey@adacore.com>
4851 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4852 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4854 2019-03-12 Tom Tromey <tromey@adacore.com>
4856 * linux-nat.c (iterate_over_lwps): Update.
4857 (stop_callback): Remove parameter.
4858 (stop_wait_callback, detach_callback, resume_set_callback)
4859 (select_singlestep_lwp_callback, set_ignore_sigint)
4860 (status_callback, resumed_callback, resume_clear_callback)
4861 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4863 (linux_nat_target::detach, linux_nat_target::resume)
4864 (linux_stop_and_wait_all_lwps, select_event_lwp)
4865 (linux_nat_filter_event, linux_nat_wait_1)
4866 (linux_nat_target::kill, linux_nat_target::stop)
4867 (linux_nat_target::stop): Update.
4868 (linux_nat_resume_callback): Change type.
4869 (resume_stopped_resumed_lwps, count_events_callback)
4870 (select_event_lwp_callback): Likewise.
4871 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4872 * arm-linux-nat.c (struct update_registers_data): Remove.
4873 (update_registers_callback): Change type.
4874 (arm_linux_insert_hw_breakpoint1): Update.
4875 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4877 (x86_linux_dr_set_addr): Update.
4878 (x86_linux_dr_set_control): Update.
4879 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4880 (iterate_over_lwps): Use gdb::function_view.
4881 * nat/aarch64-linux-hw-point.c (struct
4882 aarch64_dr_update_callback_param): Remove.
4883 (debug_reg_change_callback): Change type.
4884 (aarch64_notify_debug_reg_change): Update.
4885 * s390-linux-nat.c (s390_refresh_per_info): Update.
4887 2019-03-11 Tom Tromey <tromey@adacore.com>
4889 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4890 redundant assignment to "this_cu".
4892 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4894 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4896 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4898 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4900 (rank_one_type): ... this.
4902 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4904 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4906 (rank_one_type): ... this.
4908 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4910 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4912 (rank_one_type): ... this.
4914 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4916 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4918 (rank_one_type): ... this.
4920 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4922 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4924 (rank_one_type): ... this.
4926 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4928 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4930 (rank_one_type): ... this.
4932 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4934 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4936 (rank_one_type): ... this.
4938 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4940 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4942 (rank_one_type): ... this.
4944 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4946 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4948 (rank_one_type): ... this.
4950 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4952 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4954 (rank_one_type): ... this.
4956 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4958 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4960 (rank_one_type): ... this.
4962 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4964 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4966 (rank_one_type): ... this.
4968 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4970 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4971 inferior-events' shows the example events.
4973 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4975 Support styling on native MS-Windows console
4978 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4979 on MS-Windows if $TERM is not defined.
4981 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4983 * posix-hdep.c (gdb_console_fputs):
4984 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4986 * ui-file.h (gdb_console_fputs): Add prototype.
4988 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4989 back to fputs only if the former returns zero.
4991 2019-03-07 Tom Tromey <tom@tromey.com>
4993 * symmisc.c (print_symbol_bcache_statistics): Update.
4994 (print_objfile_statistics): Update.
4995 * symfile.c (allocate_symtab): Update.
4996 * stabsread.c: Don't include bcache.h.
4997 * psymtab.h (struct psymbol_bcache): Don't declare.
4998 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4999 (psymbol_bcache_init, psymbol_bcache_free)
5000 (psymbol_bcache_get_bcache): Don't declare.
5001 * psymtab.c (struct psymbol_bcache): Remove.
5002 (psymtab_storage::psymtab_storage): Update.
5003 (psymtab_storage::~psymtab_storage): Update.
5004 (psymbol_bcache_init, psymbol_bcache_free)
5005 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
5006 (add_psymbol_to_bcache): Update.
5007 (allocate_psymtab): Update.
5008 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
5009 macro_cache>: No longer pointers.
5010 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
5011 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
5012 * macrotab.c (macro_bcache): Update.
5013 * macroexp.c: Don't include bcache.h.
5014 * gdbtypes.c (check_types_worklist): Update.
5015 (types_deeply_equal): Remove TRY/CATCH. Update.
5016 * elfread.c (elf_symtab_read): Update.
5017 * dwarf2read.c: Don't include bcache.h.
5018 * buildsym.c (buildsym_compunit::get_macro_table): Update.
5019 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
5020 (print_bcache_statistics, bcache_memory_used): Don't declare.
5021 (struct bcache): Move from bcache.c. Add constructor, destructor,
5022 methods. Rename all data members.
5023 * bcache.c (struct bcache): Move to bcache.h.
5024 (bcache::expand_hash_table): Rename from expand_hash_table.
5026 (bcache::insert): Rename from bcache_full.
5027 (bcache::compare): Rename from bcache_compare.
5028 (bcache_xmalloc): Remove.
5029 (bcache::~bcache): Rename from bcache_xfree.
5030 (bcache::print_statistics): Rename from print_bcache_statistics.
5031 (bcache::memory_used): Rename from bcache_memory_used.
5033 2019-03-07 Pedro Alves <palves@redhat.com>
5035 * infrun.c (normal_stop): Also check for
5036 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
5038 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
5040 * f-lang.c (value_from_host_double): Moved to...
5041 * value.c (value_from_host_double): ...here.
5042 * value.h (value_from_host_double): Declare.
5043 * guile/scm-math.c (vlscm_convert_typed_number): Use
5044 value_from_host_double.
5045 (vlscm_convert_number): Likewise.
5046 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
5047 * python/py-value.c (convert_value_from_python): Likewise.
5049 2019-03-06 Tom Tromey <tom@tromey.com>
5051 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
5053 2019-03-06 Tom Tromey <tom@tromey.com>
5055 * utils.h (free_current_contents): Don't declare.
5056 * utils.c (free_current_contents): Remove.
5058 2019-03-06 Tom Tromey <tom@tromey.com>
5060 * top.c (quit_force): Update.
5061 * main.c (captured_command_loop): Update.
5062 * common/new-op.c (operator new): Update.
5063 * common/common-exceptions.c (struct catcher)
5064 <save_cleanup_chain>: Remove member.
5065 (exceptions_state_mc_init): Update.
5066 (exception_try_scope_entry): Return nullptr.
5067 (exception_try_scope_exit, exception_rethrow)
5068 (throw_exception_sjlj, throw_exception_cxx): Update.
5069 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
5070 (all_cleanups, do_cleanups, discard_cleanups)
5071 (discard_final_cleanups, save_cleanups, save_final_cleanups)
5072 (restore_cleanups, restore_final_cleanups): Don't declare.
5073 (do_final_cleanups): Remove parameter.
5074 * common/cleanups.c (cleanup_chain, make_cleanup)
5075 (make_cleanup_dtor, all_cleanups, do_cleanups)
5076 (discard_my_cleanups, discard_cleanups)
5077 (discard_final_cleanups, save_my_cleanups, save_cleanups)
5078 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
5079 (null_cleanup): Remove.
5080 (do_final_cleanups): Remove parameter.
5082 2019-03-06 Tom Tromey <tom@tromey.com>
5084 * remote.c (remote_target::remote_parse_stop_reply): Use
5087 2019-03-06 Tom Tromey <tom@tromey.com>
5089 * stabsread.c (struct stabs_field_info): Rename from field_info.
5090 <list, fnlist>: Add initializers.
5091 <obstack>: New member.
5092 (read_member_functions, read_struct_fields, read_baseclasses):
5093 Allocate on obstack. Don't use cleanups.
5094 (read_one_struct_field, read_member_functions, read_struct_fields)
5095 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
5096 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
5097 (read_struct_type): Update.
5099 2019-03-06 Tom Tromey <tom@tromey.com>
5101 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
5102 * common/filestuff.h (make_cleanup_close): Don't declare.
5103 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
5106 2019-03-06 Tom Tromey <tom@tromey.com>
5108 * solib-aix.c: Use make_scope_exit.
5110 2019-03-06 Tom Tromey <tom@tromey.com>
5112 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
5113 Use make_scope_exit.
5115 2019-03-06 Tom Tromey <tom@tromey.com>
5117 * solib-svr4.c (disable_probes_interface): Remove parameter.
5118 (svr4_handle_solib_event): Use make_scope_exit.
5120 2019-03-06 Tom Tromey <tom@tromey.com>
5122 * remote.c (struct stop_reply_deleter): Remove.
5123 (stop_reply_up): Update.
5124 (struct stop_reply): Derive from notif_event. Don't typedef.
5125 <regcache>: Now a std::vector.
5126 (stop_reply_xfree): Remove.
5127 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
5128 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
5129 (remote_target::discard_pending_stop_replies): Use delete.
5130 (remote_target::remote_parse_stop_reply): Update.
5131 (remote_target::process_stop_reply): Update.
5132 * remote-notif.h (struct notif_event): Add virtual destructor.
5133 Remove "dtr" member.
5134 (struct notif_client) <alloc_event>: Return a unique_ptr.
5135 (notif_event_xfree): Don't declare.
5136 (notif_event_up): New typedef.
5137 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
5138 (notif_event_xfree, do_notif_event_xfree): Remove.
5139 (remote_notif_state_xfree): Update.
5141 2019-03-06 Tom Tromey <tom@tromey.com>
5143 * infrun.c (displaced_step_clear_cleanup): Now a
5144 forward_scope_exit type.
5145 (displaced_step_prepare_throw): Update.
5146 (displaced_step_fixup): Update.
5148 2019-03-06 Tom Tromey <tom@tromey.com>
5150 * inferior.h (class inferior): Update comment.
5151 * gdbthread.h (class thread_info): Update comment.
5153 2019-03-06 Joel Brobecker <brobecker@adacore.com>
5154 Tom Tromey <tom@tromey.com>
5156 * stabsread.h (struct stab_section_list): Remove.
5157 (coffstab_build_psymtabs): Update.
5158 * dbxread.c (symbuf_sections): Now a std::vector.
5159 (sect_idx): New global.
5160 (fill_symbuf): Update.
5161 (coffstab_build_psymtabs): Change type of stabsects parameter.
5163 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
5165 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
5166 (coff_locate_sections): Update.
5167 (coff_symfile_read): Remove cleanups. Update.
5168 (init_stringtab): Add storage parameter.
5169 (free_stringtab, free_stringtab_cleanup): Remove.
5170 (init_lineno): Add storage parameter.
5171 (free_linetab, free_linetab_cleanup): Remove.
5173 2019-03-06 Pedro Alves <palves@redhat.com>
5175 * linux-fork.c (fork_info::clobber_regs): Delete.
5176 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
5177 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
5179 (scoped_switch_fork_info::scoped_switch_fork_info)
5180 (checkpoint_command, linux_fork_context): Adjust
5181 fork_save_infrun_state calls.
5183 2019-03-06 Pedro Alves <palves@redhat.com>
5185 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
5186 (inf_has_multiple_threads): Return 'bool' and rewrite using
5187 inferior_info::threads().
5189 2019-03-06 Pedro Alves <palves@redhat.com>
5191 * linux-fork.c: Include <list>.
5192 (fork_list): Now a std::list instance.
5193 (fork_info): Add ctor, dtor, and in-class initialize all fields.
5194 (forks_exist_p, find_last_fork): Adjust.
5198 (free_fork): Delete, folded into fork_info::~fork_info().
5199 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
5201 (init_fork_list): Delete.
5202 (linux_fork_killall, linux_fork_mourn_inferior)
5203 (linux_fork_detach, info_checkpoints_command): Adjust.
5204 (_initialize_linux_fork): No longer call init_fork_list.
5206 2019-03-06 Pedro Alves <palves@redhat.com>
5208 * linux-fork.c (new_fork): New, split out of ...
5209 (add_fork): ... this. Return void. Move "first fork" special
5210 case from here, to ...
5211 (checkpoint_command): ... here.
5212 * linux-linux.h (add_fork): Return void.
5214 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5216 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
5218 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5219 Chris January <chris.january@arm.com>
5220 David Lecomber <david.lecomber@arm.com>
5222 * f-exp.y: New token, UNOP_INTRINSIC.
5223 (exp): New pattern using UNOP_INTRINSIC token.
5224 (f77_keywords): Add 'abs' keyword.
5225 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
5226 (value_from_host_double): New function.
5227 (evaluate_subexp_f): Support UNOP_ABS.
5229 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5231 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
5234 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5236 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
5237 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
5238 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
5240 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5242 * f-exp.y (convert_to_kind_type): Handle more type kinds.
5244 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5245 Chris January <chris.january@arm.com>
5247 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
5248 * f-exp.y: Define 'KIND' token.
5249 (exp): New pattern for KIND expressions.
5250 (ptype): Handle types with a kind extension.
5251 (direct_abs_decl): Extend to spot kind extensions.
5252 (f77_keywords): Add 'kind' to the list.
5253 (push_kind_type): New function.
5254 (convert_to_kind_type): New function.
5255 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
5256 * parse.c (operator_length_standard): Likewise.
5257 * parser-defs.h (enum type_pieces): Add tp_kind.
5258 * std-operator.def: Add UNOP_KIND.
5260 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5262 * f-exp.y (f_parse): Set yydebug.
5264 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5266 * f-lang.c (evaluate_subexp_f): New function.
5267 (exp_descriptor_f): New global.
5268 (f_language_defn): Use exp_descriptor_f instead of
5269 exp_descriptor_standard.
5271 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5273 * f-exp.y (struct token): Add comments.
5274 (dot_ops): Remove uppercase versions and the end marker.
5275 (f77_keywords): Likewise.
5276 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
5277 entries in the dot_ops array are case insensitive, and use
5278 strncasecmp to compare strings. Also some whitespace cleanup in
5279 this area. Similar for the f77_keywords array, except entries in
5280 this list might be case sensitive.
5282 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5284 * f-exp.y (struct f77_boolean_val): Add comments.
5285 (boolean_values): Remove uppercase versions, and end marker.
5286 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
5287 and use strncasecmp to achieve case insensitivity. Additionally,
5288 perform whitespace cleanup around this code.
5290 2019-03-06 Tom Tromey <tromey@adacore.com>
5292 * remote-sim.c (gdbsim_target_open): Use result of
5295 2019-03-06 Richard Bunt <richard.bunt@arm.com>
5296 Dirk Schubert <dirk.schubert@arm.com>
5297 Chris January <chris.january@arm.com>
5299 * eval.c (evaluate_subexp_standard): Call Fortran argument
5301 * f-lang.c (struct value): A value which can be passed into a
5302 Fortran function call.
5303 (fortran_argument_convert): Wrap Fortran arguments in a pointer
5305 (struct type): Value ready for a Fortran function call.
5306 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
5308 * f-lang.h (fortran_argument_convert): Declaration.
5309 (fortran_preserve_arg_pointer): Declaration.
5310 * infcall.c (value_arg_coerce): Call Fortran argument logic.
5312 2019-03-05 Tom Tromey <tromey@adacore.com>
5314 * python/py-prettyprint.c (print_string_repr): Remove #if.
5315 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
5317 2019-03-05 Tom Tromey <tromey@adacore.com>
5319 * target.c (the_dummy_target): Move later. Change type to
5321 (initialize_targets): Don't initialize the_dummy_target.
5323 2019-03-05 Tom Tromey <tromey@adacore.com>
5325 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
5326 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
5328 2019-03-05 Tom Tromey <tromey@adacore.com>
5330 * windows-nat.c (windows_nat_target::attach)
5331 (windows_nat_target::detach): Don't call gdb_flush.
5332 * valprint.c (generic_val_print, val_print, val_print_string):
5333 Don't call gdb_flush.
5334 * utils.c (defaulted_query): Don't call gdb_flush.
5335 * typeprint.c (print_type_scalar): Don't call gdb_flush.
5336 * target.c (target_announce_detach): Don't call gdb_flush.
5337 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
5338 * remote.c (extended_remote_target::attach): Don't call
5340 * procfs.c (procfs_target::detach): Don't call gdb_flush.
5341 * printcmd.c (do_examine): Don't call gdb_flush.
5342 (info_display_command): Don't call gdb_flush.
5343 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
5344 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
5345 * memattr.c (info_mem_command): Don't call gdb_flush.
5346 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
5347 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
5348 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
5349 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
5350 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
5351 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
5352 (gnu_nat_target::detach): Don't call gdb_flush.
5353 * f-valprint.c (f_val_print): Don't call gdb_flush.
5354 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
5355 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
5356 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
5358 * c-valprint.c (c_val_print): Don't call gdb_flush.
5359 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
5361 2019-03-05 Tom Tromey <tromey@adacore.com>
5363 * varobj.c (update_dynamic_varobj_children): Update.
5364 (install_default_visualizer): Use reset, not release.
5365 * value.c (set_internalvar): Update.
5366 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
5367 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
5368 ATTRIBUTE_UNUSED_RESULT.
5370 2019-03-05 Tom Tromey <tromey@adacore.com>
5372 * remote.c (class scoped_remote_fd) <release>: Add
5373 ATTRIBUTE_UNUSED_RESULT.
5375 2019-03-05 Tom Tromey <tromey@adacore.com>
5377 * macroexp.c (struct macro_buffer) <release>: Add
5378 ATTRIBUTE_UNUSED_RESULT.
5380 2019-03-05 Tom Tromey <tromey@adacore.com>
5382 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
5383 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
5384 ATTRIBUTE_UNUSED_RESULT.
5386 2019-03-05 Tom Tromey <tromey@adacore.com>
5388 * common/scoped_fd.h (class scoped_fd) <release>: Add
5389 ATTRIBUTE_UNUSED_RESULT.
5391 2019-03-05 Tom Tromey <tromey@adacore.com>
5393 * parser-defs.h (struct parser_state) <release>: Add
5394 ATTRIBUTE_UNUSED_RESULT.
5396 2019-03-05 Tom Tromey <tromey@adacore.com>
5398 * utils.h (class gdb_argv) <release>: Add
5399 ATTRIBUTE_UNUSED_RESULT.
5400 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
5402 2019-03-02 Eli Zaretskii <eliz@gnu.org>
5404 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
5405 for-loop range, to avoid compiler warnings.
5407 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
5408 avoid compiler warnings about unused variables.
5410 * NEWS: Mention end of support for native debugging on MS-Windows
5414 * common/netstuff.c:
5415 * gdbserver/gdbreplay.c
5416 * gdbserver/remote-utils.c:
5418 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
5419 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
5420 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
5421 'getaddrinfo' and 'freeaddrinfo' were not available before
5422 Windows XP, and mingw.org's MinGW headers by default define
5423 _WIN32_WINNT to 0x500.
5425 2019-03-01 Gary Benson <gbenson@redhat.com>
5427 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
5429 2019-02-28 Brian Vandenberg <phantall@gmail.com>
5430 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5433 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
5434 set_sigint_trap, clear_sigint_trap.
5436 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5438 * target.c (target_detach): Clear the regcache and the
5441 2019-02-27 Pedro Alves <palves@redhat.com>
5443 * utils.c (set_screen_size): When we cap the height/width sizes,
5444 tweak the corresponding command variable to show "unlimited":
5446 2019-02-27 Saagar Jha <saagar@saagarjha.com>
5447 Pedro Alves <palves@redhat.com>
5449 * utils.c (set_screen_size): Reduce "infinite" rows and columns
5450 before calling rl_set_screen_size.
5452 2019-02-27 Tom Tromey <tromey@adacore.com>
5454 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
5456 * python/py-value.c: Remove Python 2.4 workaround.
5457 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
5459 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
5460 Python 2.4 workaround.
5461 * python/python-internal.h: Remove Python 2.4 comment.
5462 (Py_ssize_t): Don't define.
5463 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
5464 (gdb_Py_DECREF): Remove Python 2.4 workaround.
5465 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
5466 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
5467 * python/python.c (do_start_initialization): Remove Python 2.4
5469 * python/py-prettyprint.c (class dummy_python_frame): Remove.
5470 (print_children): Remove Python 2.4 workaround.
5471 * python/py-inferior.c (buffer_procs): Remove Python 2.4
5473 (CHARBUFFERPROC_NAME): Remove.
5474 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
5475 Python 2.4 workaround.
5477 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5479 * NEWS: Note minimum Python version.
5481 2019-02-27 Kevin Buettner <kevinb@redhat.com>
5483 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
5484 code from these functions. Remove corresponding ifdefs. Use
5485 Py_buffer_up instead of explicit calls to PyBuffer_Release.
5486 Remove gotos and target of gotos.
5487 (infpy_search_memory): Likewise.
5489 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5491 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
5492 (hppa_gdbarch_init): Don't register deleted functions with
5495 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5497 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
5498 (h8300_unwind_sp): Delete.
5499 (h8300_dummy_id): Delete.
5500 (h8300_gdbarch_init): Don't register deleted functions with
5503 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5505 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
5506 (ft32_unwind_pc): Delete.
5507 (ft32_unwind_sp): Delete.
5508 (ft32_gdbarch_init): Don't register deleted functions with
5511 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5513 * gdb/frv-tdep.c (frv_dummy_id): Delete.
5514 (frv_unwind_pc): Delete.
5515 (frv_unwind_sp): Delete.
5516 (frv_gdbarch_init): Don't register deleted functions with
5519 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5521 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
5522 (riscv_unwind_pc): Delete.
5523 (riscv_unwind_sp): Delete.
5524 (riscv_gdbarch_init): Don't register deleted functions with
5527 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5529 * gdb/csky-tdep.c (csky_dummy_id): Delete.
5530 (csky_unwind_pc): Delete.
5531 (csky_unwind_sp): Delete.
5532 (csky_gdbarch_init): Don't register deleted functions with
5535 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5537 * gdb/cris-tdep.c (cris_dummy_id): Delete.
5538 (cris_unwind_pc): Delete.
5539 (cris_unwind_sp): Delete.
5540 (cris_gdbarch_init): Don't register deleted functions with
5543 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5545 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
5546 (bfin_unwind_pc): Delete.
5547 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
5549 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5551 * gdb/arm-tdep.c (arm_dummy_id): Delete.
5552 (arm_unwind_pc): Delete.
5553 (arm_unwind_sp): Delete.
5554 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
5556 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5558 * gdb/arc-tdep.c (arc_dummy_id): Delete.
5559 (arc_unwind_pc): Delete.
5560 (arc_unwind_sp): Delete.
5561 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
5563 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5565 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
5566 (alpha_unwind_pc): Delete.
5567 (alpha_gdbarch_init): Don't register deleted functions with
5570 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5572 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
5573 (aarch64_unwind_pc): Delete.
5574 (aarch64_unwind_sp): Delete.
5575 (aarch64_gdbarch_init): Don't register deleted functions with
5578 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5580 * gdbtypes.c (type_align): Don't consider static members when
5581 computing structure alignment.
5583 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5585 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
5586 return 0 for other types.
5587 * arch-utils.c (default_type_align): Always return 0.
5588 * gdbarch.h: Regenerate.
5589 * gdbarch.sh (type_align): Extend comment.
5590 * gdbtypes.c (type_align): Add additional comments, always call
5591 gdbarch_type_align before applying the default rules.
5592 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
5593 generic code will then apply a suitable default.
5594 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
5595 types, return 0 for other types.
5597 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5599 * NEWS: Create a new section for the next release branch.
5600 Rename the section of the current branch, now that it has
5603 2019-02-27 Joel Brobecker <brobecker@adacore.com>
5605 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
5606 * version.in: Bump version to 8.3.50.DATE-git.
5608 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
5610 * aix-thread.c (ptid_cmp): Remove unused variable.
5611 (get_signaled_thread): Likewise.
5612 (store_regs_user_thread): Likewise.
5613 (store_regs_kernel_thread): Likewise.
5614 (fetch_regs_kernel_thread): Remove shadowed variable.
5616 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
5618 * features/riscv/32bit-cpu.xml: Add register numbers.
5619 * features/riscv/32bit-fpu.c: Regenerate.
5620 * features/riscv/32bit-fpu.xml: Add register numbers.
5621 * features/riscv/64bit-cpu.xml: Add register numbers.
5622 * features/riscv/64bit-fpu.c: Regenerate.
5623 * features/riscv/64bit-fpu.xml: Add register numbers.
5625 2019-02-26 Kevin Buettner <kevinb@redhat.com>
5627 * NEWS: Mention two argument form of gdb.Value constructor.
5628 * python/py-value.c (convert_buffer_and_type_to_value): New
5630 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
5631 Add support for handling an optional second argument. Call
5632 convert_buffer_and_type_to_value as appropriate.
5633 * python/python-internal.h (Py_buffer_deleter): New struct.
5634 (Py_buffer_up): New typedef.
5636 2019-02-25 John Baldwin <jhb@FreeBSD.org>
5638 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
5639 instead of releasing ownership.
5641 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
5643 * dwarf2read.c (open_and_init_dwp_file): Call
5644 elf_numsections instead of bfd_count_sections to initialize
5645 dwp_file->num_sections.
5647 2019-02-25 Tom Tromey <tromey@adacore.com>
5649 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
5651 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
5653 * gcore.in: Add '--readnever' option when invoking GDB.
5655 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5657 * MAINTAINERS: Update my email address.
5659 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5661 * build-id.c (build_id_to_debug_bfd_1): New function.
5662 (build_id_to_debug_bfd): Look for separate debug file in
5665 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
5667 * gdbarch.sh: Update the copyright year range that is placed into
5670 2019-02-22 Keith Seitz <keiths@redhat.com>
5673 * linespec.c (create_sals_line_offset): Search for the default
5674 symtab's filename instead of its fullname.
5676 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5678 * NEWS: Update style defaults.
5680 2019-02-21 Alan Hayward <alan.hayward@arm.com>
5682 * main.c (captured_main_1): Disable styling in batch mode.
5684 2019-02-20 Tom Tromey <tom@tromey.com>
5686 * symtab.c (symtab_symbol_info): Fix typos.
5688 2019-02-20 Tom Tromey <tromey@adacore.com>
5690 * findcmd.c (_initialize_mem_search): Use upper case for
5691 metasyntactic variables.
5693 2019-02-20 Alan Hayward <alan.hayward@arm.com>
5695 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5696 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5698 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5700 * top.h (source_file_name): Change to std::string.
5701 * top.c (source_file_name): Likewise.
5702 (command_line_input): Adjust.
5703 * cli/cli-script.c (script_from_file): Adjust.
5705 2019-02-19 Tom Tromey <tromey@adacore.com>
5707 * ravenscar-thread.c
5708 (ravenscar_thread_target::update_thread_list): Don't call
5709 ada_build_task_list.
5710 * ada-lang.h (ada_build_task_list): Don't declare.
5711 * ada-tasks.c (struct ada_tasks_inferior_data)
5712 <task_list_valid_p>: Now bool.
5713 (read_known_tasks, ada_task_list_changed)
5714 (ada_tasks_invalidate_inferior_data): Update.
5715 (read_known_tasks_array): Return bool.
5716 (read_known_tasks_list): Likewise.
5717 (read_known_tasks): Return void.
5718 (ada_build_task_list): Now static.
5720 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5722 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5723 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5725 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5727 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5728 variant for ada_tasks_pspace_data_handle and
5729 ada_tasks_inferior_data_handle.
5730 (ada_tasks_pspace_data_cleanup): New function.
5731 (ada_tasks_inferior_data_cleanup): New function.
5733 2019-02-17 Tom Tromey <tom@tromey.com>
5735 * macrotab.h (macro_source_fullname): Return a std::string.
5736 * macrotab.c (macro_include, check_for_redefinition)
5737 (macro_undef, macro_lookup_definition, foreach_macro)
5738 (foreach_macro_in_scope): Update.
5739 (macro_source_fullname): Return a std::string.
5740 * macrocmd.c (show_pp_source_pos): Update.
5742 2019-02-17 Tom Tromey <tom@tromey.com>
5744 * macrocmd.c (show_pp_source_pos): Style the file names.
5746 2019-02-17 Tom Tromey <tom@tromey.com>
5749 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5751 2019-02-17 Tom Tromey <tom@tromey.com>
5753 * ada-lang.c (user_select_syms): Use filtered printing.
5754 * utils.c (wrap_style): New global.
5755 (desired_style): Remove.
5756 (emit_style_escape): Add stream parameter.
5757 (set_output_style, reset_terminal_style, prompt_for_continue):
5759 (flush_wrap_buffer): Only flush gdb_stdout.
5760 (wrap_here): Set wrap_style.
5761 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5762 treat escape sequences as a character. Change when wrap buffer is
5764 (fputs_styled): Do not set the output style when the default is
5766 * ui-style.h (struct ui_file_style) <is_default>: New method.
5767 * source.c (print_source_lines_base): Emit escape sequences in one
5770 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5772 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5773 integers and enumeration types.
5775 2019-02-17 Joel Brobecker <brobecker@adacore.com>
5777 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5778 instead of lookup_symbol_in_language
5779 (do_exact_match): New function.
5780 (ada_get_symbol_name_matcher): Return do_exact_match when
5781 doing a verbatim match.
5783 2019-02-15 Tom Tromey <tromey@adacore.com>
5785 * ravenscar-thread.c (ravenscar_thread_target::resume)
5786 (ravenscar_thread_target::wait): Special case wildcard requests.
5788 2019-02-15 Tom Tromey <tromey@adacore.com>
5790 * ravenscar-thread.c (base_ptid): Remove.
5791 (struct ravenscar_thread_target) <close>: New method.
5792 <m_base_ptid>: New member.
5793 <update_inferior_ptid, active_task, task_is_currently_active,
5794 runtime_initialized>: Declare methods.
5795 <ravenscar_thread_target>: Add constructor.
5796 (ravenscar_thread_target::task_is_currently_active)
5797 (ravenscar_thread_target::update_inferior_ptid)
5798 (ravenscar_runtime_initialized): Rename. Now methods.
5799 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5800 (ravenscar_thread_target::update_thread_list): Update.
5801 (ravenscar_thread_target::active_task): Now method.
5802 (ravenscar_thread_target::store_registers)
5803 (ravenscar_thread_target::prepare_to_store)
5804 (ravenscar_thread_target::prepare_to_store)
5805 (ravenscar_thread_target::mourn_inferior): Update.
5806 (ravenscar_inferior_created): Use "new" to create target.
5807 (ravenscar_thread_target::get_ada_task_ptid): Update.
5808 (_initialize_ravenscar): Don't initialize base_ptid.
5809 (ravenscar_ops): Remove global.
5811 2019-02-15 Tom Tromey <tromey@adacore.com>
5813 * target.h (push_target): Declare new overload.
5814 * target.c (push_target): New overload, taking an rvalue reference.
5815 * remote.c (remote_target::open_1): Use push_target overload.
5816 * corelow.c (core_target_open): Use push_target overload.
5818 2019-02-15 Tom Tromey <tromey@adacore.com>
5820 * ravenscar-thread.c (is_ravenscar_task)
5821 (ravenscar_task_is_currently_active): Return bool.
5822 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5823 (_initialize_ravenscar): Remove "(void)".
5824 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5827 2019-02-15 Tom Tromey <tromey@adacore.com>
5829 * ravenscar-thread.c (ravenscar_runtime_initializer)
5830 (has_ravenscar_runtime, get_running_thread_id)
5831 (ravenscar_thread_target::resume): Fix indentation.
5833 2019-02-15 Tom Tromey <tromey@adacore.com>
5835 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5836 from ravenscar_arch_ops.
5837 (sparc_ravenscar_ops::fetch_registers)
5838 (sparc_ravenscar_ops::store_registers): Now methods.
5839 (sparc_ravenscar_prepare_to_store): Remove.
5840 (sparc_ravenscar_ops): Redefine.
5841 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5842 methods and destructor. Remove members.
5843 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5844 (ravenscar_thread_target::store_registers)
5845 (ravenscar_thread_target::prepare_to_store): Update.
5846 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5848 (struct ppc_ravenscar_powerpc_ops): Derive from
5850 (ppc_ravenscar_powerpc_ops::fetch_registers)
5851 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5852 (ppc_ravenscar_powerpc_ops): Redefine.
5853 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5854 (ppc_ravenscar_e500_ops::fetch_registers)
5855 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5856 (ppc_ravenscar_e500_ops): Redefine.
5857 * aarch64-ravenscar-thread.c
5858 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5859 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5860 (aarch64_ravenscar_fetch_registers)
5861 (aarch64_ravenscar_store_registers): Now methods.
5862 (aarch64_ravenscar_ops): Redefine.
5864 2019-02-15 Tom Tromey <tromey@adacore.com>
5866 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5867 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5868 (ravenscar_thread_target::stopped_by_watchpoint)
5869 (ravenscar_thread_target::stopped_data_address)
5870 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5872 2019-02-15 Tom Tromey <tromey@adacore.com>
5874 * ravenscar-thread.c: Fix some typos.
5876 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5877 Tom Tromey <tromey@adacore.com>
5879 * ada-lang.c (ada_exception_sal): Change addr_string to a
5881 (create_ada_exception_catchpoint): Update.
5883 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5884 Tom Tromey <tromey@adacore.com>
5886 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5887 (bp_location_ops): Remove.
5888 (base_breakpoint_allocate_location): Update.
5889 (free_bp_location): Update.
5890 * ada-lang.c (class ada_catchpoint_location)
5891 <ada_catchpoint_location>: Remove ops parameter.
5892 (ada_catchpoint_location_dtor): Remove.
5893 (ada_catchpoint_location_ops): Remove.
5894 (allocate_location_exception): Update.
5895 * breakpoint.h (struct bp_location_ops): Remove.
5896 (class bp_location) <bp_location>: Remove bp_location_ops
5898 <~bp_location>: Add destructor.
5901 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5902 Pedro Alves <palves@redhat.com>
5904 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5907 2019-02-14 David Michael <fedora.dm0@gmail.com>
5908 Samuel Thibault <samuel.thibault@gnu.org>
5909 Thomas Schwinge <thomas@codesourcery.com>
5911 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5912 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5914 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5916 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5917 (check_empty): Use "const char *".
5919 * gnu-nat.c (gnu_nat_target::detach): Instead of
5920 'detach_inferior (pid)' call
5921 'detach_inferior (find_inferior_pid (pid))'.
5923 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5924 'nat/fork-inferior.o'.
5925 * gnu-nat.c: #include "nat/fork-inferior.h".
5927 * gnu-nat.c (gnu_nat_target::detach): Instead of
5928 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5929 * gnu-nat.h: #include "inf-child.h".
5930 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5931 'i386_gnu_nat_target::fetch_registers'.
5932 (gnu_store_registers): Rename/move to
5933 'i386_gnu_nat_target::store_registers'.
5935 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5936 * gnu-nat.h (mach_thread_info): New function.
5937 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5939 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5941 2019-02-14 Frederic Konrad <konrad@adacore.com>
5943 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5945 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5947 * windows-nat.c (windows_add_thread): Add new parameter
5948 "main_thread_p" with default value set to false. Update
5949 function documentation as well as all callers.
5950 (windows_delete_thread): Likewise.
5951 (fake_create_process): Update call to windows_add_thread.
5952 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5953 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5954 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5955 call to windows_delete_thread.
5957 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5959 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5961 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5963 * symfile.c (find_separate_debug_file): Use canonical path of
5964 sysroot with child_path instead of gdb_sysroot if it is valid.
5966 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5968 * symfile.c (find_separate_debug_file): Use child_path to
5969 determine if an object file is under a sysroot.
5971 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5973 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5974 unittests/child-path-selftests.c.
5975 * common/pathstuff.c (child_path): New function.
5976 * common/pathstuff.h (child_path): New prototype.
5977 * unittests/child-path-selftests.c: New file.
5979 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5981 * symfile.c (find_separate_debug_file): Look for separate debug
5982 files in debug directories under the sysroot.
5984 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5986 * symtab.h (struct minimal_symbol data_p): New const method.
5987 (struct minimal_symbol text_p): Likewise.
5988 * symtab.c (output_source_filename): Use file name style
5990 (print_symbol_info): Likewise.
5991 (print_msymbol_info): Use address style to print addresses.
5992 Use function name style to print executable text symbols.
5993 (expand_symtab_containing_pc): Use data_p.
5994 (find_pc_sect_compunit_symtab): Likewise.
5996 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5998 * breakpoint.c (describe_other_breakpoints): Use address style
6000 (say_where): Likewise.
6002 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6004 * ada-typeprint.c (print_func_type): Print function name
6005 style to print function name.
6006 * c-typeprint.c (c_print_type_1): Likewise.
6008 2019-02-11 Alan Hayward <alan.hayward@arm.com>
6010 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
6013 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6015 * c-exp.y (direct_abs_decl): Use emplace_back to record the
6018 2019-02-10 Joel Brobecker <brobecker@adacore.com>
6020 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
6021 TYPE_CODE_REF types.
6023 2019-02-08 Jim Wilson <jimw@sifive.com>
6025 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
6026 (riscv_linux_fregset): New.
6027 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
6029 2019-02-07 Tom Tromey <tom@tromey.com>
6031 * thread.c (thread_cancel_execution_command): Update.
6032 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
6034 (struct thread_fsm_ops): Remove.
6035 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
6036 (thread_fsm_should_stop, thread_fsm_return_value)
6037 (thread_fsm_set_finished, thread_fsm_finished_p)
6038 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
6040 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
6041 * infrun.c (clear_proceed_status_thread)
6042 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
6043 (print_stop_event): Update.
6044 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
6046 (step_command_fsm_ops): Remove.
6047 (new_step_command_fsm): Remove.
6049 (step_command_fsm::should_stop): Rename from
6050 step_command_fsm_should_stop.
6051 (step_command_fsm::clean_up): Rename from
6052 step_command_fsm_clean_up.
6053 (step_command_fsm::do_async_reply_reason): Rename from
6054 step_command_fsm_async_reply_reason.
6055 (struct until_next_fsm): Inherit from thread_fsm. Add
6057 (until_next_fsm_ops): Remove.
6058 (new_until_next_fsm): Remove.
6059 (until_next_fsm::should_stop): Rename from
6060 until_next_fsm_should_stop.
6061 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
6062 (until_next_fsm::do_async_reply_reason): Rename from
6063 until_next_fsm_async_reply_reason.
6064 (struct finish_command_fsm): Inherit from thread_fsm. Add
6065 constructor. Change type of breakpoint.
6066 (finish_command_fsm_ops): Remove.
6067 (new_finish_command_fsm): Remove.
6068 (finish_command_fsm::should_stop): Rename from
6069 finish_command_fsm_should_stop.
6070 (finish_command_fsm::clean_up): Rename from
6071 finish_command_fsm_clean_up.
6072 (finish_command_fsm::return_value): Rename from
6073 finish_command_fsm_return_value.
6074 (finish_command_fsm::do_async_reply_reason): Rename from
6075 finish_command_fsm_async_reply_reason.
6076 (finish_command): Update.
6077 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
6079 (call_thread_fsm_ops): Remove.
6080 (call_thread_fsm::call_thread_fsm): Rename from
6081 new_call_thread_fsm.
6082 (call_thread_fsm::should_stop): Rename from
6083 call_thread_fsm_should_stop.
6084 (call_thread_fsm::should_notify_stop): Rename from
6085 call_thread_fsm_should_notify_stop.
6086 (run_inferior_call, call_function_by_hand_dummy): Update.
6087 * cli/cli-interp.c (should_print_stop_to_console): Update.
6088 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
6089 Add constructor. Change type of location_breakpoint,
6091 (until_break_fsm_ops): Remove.
6092 (new_until_break_fsm): Remove.
6093 (until_break_fsm::should_stop): Rename from
6094 until_break_fsm_should_stop.
6095 (until_break_fsm::clean_up): Rename from
6096 until_break_fsm_clean_up.
6097 (until_break_fsm::do_async_reply_reason): Rename from
6098 until_break_fsm_async_reply_reason.
6099 (until_break_command): Update.
6100 * thread-fsm.c: Remove.
6101 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
6103 2019-02-07 Tom Tromey <tom@tromey.com>
6105 * yy-remap.h: Add include guard.
6106 * xtensa-tdep.h: Add include guard.
6107 * xcoffread.h: Rename include guard.
6108 * varobj-iter.h: Add include guard.
6109 * tui/tui.h: Rename include guard.
6110 * tui/tui-winsource.h: Rename include guard.
6111 * tui/tui-wingeneral.h: Rename include guard.
6112 * tui/tui-windata.h: Rename include guard.
6113 * tui/tui-win.h: Rename include guard.
6114 * tui/tui-stack.h: Rename include guard.
6115 * tui/tui-source.h: Rename include guard.
6116 * tui/tui-regs.h: Rename include guard.
6117 * tui/tui-out.h: Rename include guard.
6118 * tui/tui-layout.h: Rename include guard.
6119 * tui/tui-io.h: Rename include guard.
6120 * tui/tui-hooks.h: Rename include guard.
6121 * tui/tui-file.h: Rename include guard.
6122 * tui/tui-disasm.h: Rename include guard.
6123 * tui/tui-data.h: Rename include guard.
6124 * tui/tui-command.h: Rename include guard.
6125 * tic6x-tdep.h: Add include guard.
6126 * target/waitstatus.h: Rename include guard.
6127 * target/wait.h: Rename include guard.
6128 * target/target.h: Rename include guard.
6129 * target/resume.h: Rename include guard.
6130 * target-float.h: Rename include guard.
6131 * stabsread.h: Add include guard.
6132 * rs6000-tdep.h: Add include guard.
6133 * riscv-fbsd-tdep.h: Add include guard.
6134 * regformats/regdef.h: Rename include guard.
6135 * record.h: Rename include guard.
6136 * python/python.h: Rename include guard.
6137 * python/python-internal.h: Rename include guard.
6138 * python/py-stopevent.h: Rename include guard.
6139 * python/py-ref.h: Rename include guard.
6140 * python/py-record.h: Rename include guard.
6141 * python/py-record-full.h: Rename include guard.
6142 * python/py-record-btrace.h: Rename include guard.
6143 * python/py-instruction.h: Rename include guard.
6144 * python/py-events.h: Rename include guard.
6145 * python/py-event.h: Rename include guard.
6146 * procfs.h: Add include guard.
6147 * proc-utils.h: Add include guard.
6148 * p-lang.h: Add include guard.
6149 * or1k-tdep.h: Rename include guard.
6150 * observable.h: Rename include guard.
6151 * nto-tdep.h: Rename include guard.
6152 * nat/x86-linux.h: Rename include guard.
6153 * nat/x86-linux-dregs.h: Rename include guard.
6154 * nat/x86-gcc-cpuid.h: Add include guard.
6155 * nat/x86-dregs.h: Rename include guard.
6156 * nat/x86-cpuid.h: Rename include guard.
6157 * nat/ppc-linux.h: Rename include guard.
6158 * nat/mips-linux-watch.h: Rename include guard.
6159 * nat/linux-waitpid.h: Rename include guard.
6160 * nat/linux-ptrace.h: Rename include guard.
6161 * nat/linux-procfs.h: Rename include guard.
6162 * nat/linux-osdata.h: Rename include guard.
6163 * nat/linux-nat.h: Rename include guard.
6164 * nat/linux-namespaces.h: Rename include guard.
6165 * nat/linux-btrace.h: Rename include guard.
6166 * nat/glibc_thread_db.h: Rename include guard.
6167 * nat/gdb_thread_db.h: Rename include guard.
6168 * nat/gdb_ptrace.h: Rename include guard.
6169 * nat/fork-inferior.h: Rename include guard.
6170 * nat/amd64-linux-siginfo.h: Rename include guard.
6171 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
6172 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
6173 * nat/aarch64-linux.h: Rename include guard.
6174 * nat/aarch64-linux-hw-point.h: Rename include guard.
6175 * mn10300-tdep.h: Add include guard.
6176 * mips-linux-tdep.h: Add include guard.
6177 * mi/mi-parse.h: Rename include guard.
6178 * mi/mi-out.h: Rename include guard.
6179 * mi/mi-main.h: Rename include guard.
6180 * mi/mi-interp.h: Rename include guard.
6181 * mi/mi-getopt.h: Rename include guard.
6182 * mi/mi-console.h: Rename include guard.
6183 * mi/mi-common.h: Rename include guard.
6184 * mi/mi-cmds.h: Rename include guard.
6185 * mi/mi-cmd-break.h: Rename include guard.
6186 * m2-lang.h: Add include guard.
6187 * location.h: Rename include guard.
6188 * linux-record.h: Rename include guard.
6189 * linux-nat.h: Add include guard.
6190 * linux-fork.h: Add include guard.
6191 * i386-darwin-tdep.h: Rename include guard.
6192 * hppa-linux-offsets.h: Add include guard.
6193 * guile/guile.h: Rename include guard.
6194 * guile/guile-internal.h: Rename include guard.
6195 * gnu-nat.h: Rename include guard.
6196 * gdb-stabs.h: Rename include guard.
6197 * frv-tdep.h: Add include guard.
6198 * f-lang.h: Add include guard.
6199 * event-loop.h: Add include guard.
6200 * darwin-nat.h: Rename include guard.
6201 * cp-abi.h: Rename include guard.
6202 * config/sparc/nm-sol2.h: Rename include guard.
6203 * config/nm-nto.h: Rename include guard.
6204 * config/nm-linux.h: Add include guard.
6205 * config/i386/nm-i386gnu.h: Rename include guard.
6206 * config/djgpp/nl_types.h: Rename include guard.
6207 * config/djgpp/langinfo.h: Rename include guard.
6208 * compile/gcc-cp-plugin.h: Add include guard.
6209 * compile/gcc-c-plugin.h: Add include guard.
6210 * compile/compile.h: Rename include guard.
6211 * compile/compile-object-run.h: Rename include guard.
6212 * compile/compile-object-load.h: Rename include guard.
6213 * compile/compile-internal.h: Rename include guard.
6214 * compile/compile-cplus.h: Rename include guard.
6215 * compile/compile-c.h: Rename include guard.
6216 * common/xml-utils.h: Rename include guard.
6217 * common/x86-xstate.h: Rename include guard.
6218 * common/version.h: Rename include guard.
6219 * common/vec.h: Rename include guard.
6220 * common/tdesc.h: Rename include guard.
6221 * common/selftest.h: Rename include guard.
6222 * common/scoped_restore.h: Rename include guard.
6223 * common/scoped_mmap.h: Rename include guard.
6224 * common/scoped_fd.h: Rename include guard.
6225 * common/safe-iterator.h: Rename include guard.
6226 * common/run-time-clock.h: Rename include guard.
6227 * common/refcounted-object.h: Rename include guard.
6228 * common/queue.h: Rename include guard.
6229 * common/ptid.h: Rename include guard.
6230 * common/print-utils.h: Rename include guard.
6231 * common/preprocessor.h: Rename include guard.
6232 * common/pathstuff.h: Rename include guard.
6233 * common/observable.h: Rename include guard.
6234 * common/netstuff.h: Rename include guard.
6235 * common/job-control.h: Rename include guard.
6236 * common/host-defs.h: Rename include guard.
6237 * common/gdb_wait.h: Rename include guard.
6238 * common/gdb_vecs.h: Rename include guard.
6239 * common/gdb_unlinker.h: Rename include guard.
6240 * common/gdb_unique_ptr.h: Rename include guard.
6241 * common/gdb_tilde_expand.h: Rename include guard.
6242 * common/gdb_sys_time.h: Rename include guard.
6243 * common/gdb_string_view.h: Rename include guard.
6244 * common/gdb_splay_tree.h: Rename include guard.
6245 * common/gdb_setjmp.h: Rename include guard.
6246 * common/gdb_ref_ptr.h: Rename include guard.
6247 * common/gdb_optional.h: Rename include guard.
6248 * common/gdb_locale.h: Rename include guard.
6249 * common/gdb_assert.h: Rename include guard.
6250 * common/filtered-iterator.h: Rename include guard.
6251 * common/filestuff.h: Rename include guard.
6252 * common/fileio.h: Rename include guard.
6253 * common/environ.h: Rename include guard.
6254 * common/common-utils.h: Rename include guard.
6255 * common/common-types.h: Rename include guard.
6256 * common/common-regcache.h: Rename include guard.
6257 * common/common-inferior.h: Rename include guard.
6258 * common/common-gdbthread.h: Rename include guard.
6259 * common/common-exceptions.h: Rename include guard.
6260 * common/common-defs.h: Rename include guard.
6261 * common/common-debug.h: Rename include guard.
6262 * common/cleanups.h: Rename include guard.
6263 * common/buffer.h: Rename include guard.
6264 * common/btrace-common.h: Rename include guard.
6265 * common/break-common.h: Rename include guard.
6266 * cli/cli-utils.h: Rename include guard.
6267 * cli/cli-style.h: Rename include guard.
6268 * cli/cli-setshow.h: Rename include guard.
6269 * cli/cli-script.h: Rename include guard.
6270 * cli/cli-interp.h: Rename include guard.
6271 * cli/cli-decode.h: Rename include guard.
6272 * cli/cli-cmds.h: Rename include guard.
6273 * charset-list.h: Add include guard.
6274 * buildsym-legacy.h: Rename include guard.
6275 * bfin-tdep.h: Add include guard.
6276 * ax.h: Rename include guard.
6277 * arm-linux-tdep.h: Add include guard.
6278 * arm-fbsd-tdep.h: Add include guard.
6279 * arch/xtensa.h: Rename include guard.
6280 * arch/tic6x.h: Add include guard.
6281 * arch/i386.h: Add include guard.
6282 * arch/arm.h: Rename include guard.
6283 * arch/arm-linux.h: Rename include guard.
6284 * arch/arm-get-next-pcs.h: Rename include guard.
6285 * arch/amd64.h: Add include guard.
6286 * arch/aarch64-insn.h: Rename include guard.
6287 * arch-utils.h: Rename include guard.
6288 * annotate.h: Add include guard.
6289 * amd64-darwin-tdep.h: Rename include guard.
6290 * aarch64-linux-tdep.h: Add include guard.
6291 * aarch64-fbsd-tdep.h: Add include guard.
6292 * aarch32-linux-nat.h: Add include guard.
6294 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6296 * macrotab.c (macro_define_internal): New function that
6297 factorizes macro_define_object_internal and macro_define_function
6299 (macro_define_object_internal): Use macro_define_internal.
6300 (macro_define_function): Likewise.
6302 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6304 * macrocmd.c (extract_identifier): Return
6305 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
6308 2019-02-06 John Baldwin <jhb@FreeBSD.org>
6310 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
6312 2019-02-05 Tom Tromey <tom@tromey.com>
6314 * target.c (target_stack::unpush): Move assertion earlier.
6316 2019-01-30 Tom Tromey <tom@tromey.com>
6319 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
6320 (gdbpy_parse_and_eval): Likewise.
6321 * python/python-internal.h (gdbpy_allow_threads): New class.
6323 2019-01-28 John Baldwin <jhb@FreeBSD.org>
6325 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
6326 (aarch64_fbsd_fpregmap): Move earlier.
6327 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
6328 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6329 instead of individual calls to trad_frame_set_reg_addr.
6330 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
6332 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
6333 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6334 instead of individual calls to trad_frame_set_reg_addr.
6336 2019-01-28 Alan Hayward <alan.hayward@arm.com>
6338 * CONTRIBUTE: Replace contribution list with wiki link.
6340 2019-01-25 Tom Tromey <tom@tromey.com>
6342 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
6344 2019-01-25 Tom Tromey <tom@tromey.com>
6346 * xtensa-linux-nat.c: Fix common/ includes.
6347 * xml-support.h: Fix common/ includes.
6348 * xml-support.c: Fix common/ includes.
6349 * x86-linux-nat.c: Fix common/ includes.
6350 * windows-nat.c: Fix common/ includes.
6351 * varobj.h: Fix common/ includes.
6352 * varobj.c: Fix common/ includes.
6353 * value.c: Fix common/ includes.
6354 * valops.c: Fix common/ includes.
6355 * utils.c: Fix common/ includes.
6356 * unittests/xml-utils-selftests.c: Fix common/ includes.
6357 * unittests/utils-selftests.c: Fix common/ includes.
6358 * unittests/unpack-selftests.c: Fix common/ includes.
6359 * unittests/tracepoint-selftests.c: Fix common/ includes.
6360 * unittests/style-selftests.c: Fix common/ includes.
6361 * unittests/string_view-selftests.c: Fix common/ includes.
6362 * unittests/scoped_restore-selftests.c: Fix common/ includes.
6363 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
6364 * unittests/scoped_fd-selftests.c: Fix common/ includes.
6365 * unittests/rsp-low-selftests.c: Fix common/ includes.
6366 * unittests/parse-connection-spec-selftests.c: Fix common/
6368 * unittests/optional-selftests.c: Fix common/ includes.
6369 * unittests/offset-type-selftests.c: Fix common/ includes.
6370 * unittests/observable-selftests.c: Fix common/ includes.
6371 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
6372 * unittests/memrange-selftests.c: Fix common/ includes.
6373 * unittests/memory-map-selftests.c: Fix common/ includes.
6374 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
6375 * unittests/function-view-selftests.c: Fix common/ includes.
6376 * unittests/environ-selftests.c: Fix common/ includes.
6377 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
6378 * unittests/common-utils-selftests.c: Fix common/ includes.
6379 * unittests/cli-utils-selftests.c: Fix common/ includes.
6380 * unittests/array-view-selftests.c: Fix common/ includes.
6381 * ui-file.c: Fix common/ includes.
6382 * tui/tui-io.c: Fix common/ includes.
6383 * tracepoint.h: Fix common/ includes.
6384 * tracepoint.c: Fix common/ includes.
6385 * tracefile-tfile.c: Fix common/ includes.
6386 * top.h: Fix common/ includes.
6387 * top.c: Fix common/ includes.
6388 * thread.c: Fix common/ includes.
6389 * target/waitstatus.h: Fix common/ includes.
6390 * target/waitstatus.c: Fix common/ includes.
6391 * target.h: Fix common/ includes.
6392 * target.c: Fix common/ includes.
6393 * target-memory.c: Fix common/ includes.
6394 * target-descriptions.c: Fix common/ includes.
6395 * symtab.h: Fix common/ includes.
6396 * symfile.c: Fix common/ includes.
6397 * stap-probe.c: Fix common/ includes.
6398 * spu-linux-nat.c: Fix common/ includes.
6399 * sparc-nat.c: Fix common/ includes.
6400 * source.c: Fix common/ includes.
6401 * solib.c: Fix common/ includes.
6402 * solib-target.c: Fix common/ includes.
6403 * ser-unix.c: Fix common/ includes.
6404 * ser-tcp.c: Fix common/ includes.
6405 * ser-pipe.c: Fix common/ includes.
6406 * ser-base.c: Fix common/ includes.
6407 * selftest-arch.c: Fix common/ includes.
6408 * s12z-tdep.c: Fix common/ includes.
6409 * rust-exp.y: Fix common/ includes.
6410 * rs6000-aix-tdep.c: Fix common/ includes.
6411 * riscv-tdep.c: Fix common/ includes.
6412 * remote.c: Fix common/ includes.
6413 * remote-notif.h: Fix common/ includes.
6414 * remote-fileio.h: Fix common/ includes.
6415 * remote-fileio.c: Fix common/ includes.
6416 * regcache.h: Fix common/ includes.
6417 * regcache.c: Fix common/ includes.
6418 * record-btrace.c: Fix common/ includes.
6419 * python/python.c: Fix common/ includes.
6420 * python/py-type.c: Fix common/ includes.
6421 * python/py-inferior.c: Fix common/ includes.
6422 * progspace.h: Fix common/ includes.
6423 * producer.c: Fix common/ includes.
6424 * procfs.c: Fix common/ includes.
6425 * proc-api.c: Fix common/ includes.
6426 * printcmd.c: Fix common/ includes.
6427 * ppc-linux-nat.c: Fix common/ includes.
6428 * parser-defs.h: Fix common/ includes.
6429 * osdata.c: Fix common/ includes.
6430 * obsd-nat.c: Fix common/ includes.
6431 * nat/x86-linux.c: Fix common/ includes.
6432 * nat/x86-linux-dregs.c: Fix common/ includes.
6433 * nat/x86-dregs.h: Fix common/ includes.
6434 * nat/x86-dregs.c: Fix common/ includes.
6435 * nat/ppc-linux.c: Fix common/ includes.
6436 * nat/mips-linux-watch.h: Fix common/ includes.
6437 * nat/mips-linux-watch.c: Fix common/ includes.
6438 * nat/linux-waitpid.c: Fix common/ includes.
6439 * nat/linux-ptrace.h: Fix common/ includes.
6440 * nat/linux-ptrace.c: Fix common/ includes.
6441 * nat/linux-procfs.c: Fix common/ includes.
6442 * nat/linux-personality.c: Fix common/ includes.
6443 * nat/linux-osdata.c: Fix common/ includes.
6444 * nat/linux-namespaces.c: Fix common/ includes.
6445 * nat/linux-btrace.h: Fix common/ includes.
6446 * nat/linux-btrace.c: Fix common/ includes.
6447 * nat/fork-inferior.c: Fix common/ includes.
6448 * nat/amd64-linux-siginfo.c: Fix common/ includes.
6449 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
6450 * nat/aarch64-linux.c: Fix common/ includes.
6451 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
6452 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
6453 * namespace.h: Fix common/ includes.
6454 * mips-linux-tdep.c: Fix common/ includes.
6455 * minsyms.c: Fix common/ includes.
6456 * mi/mi-parse.h: Fix common/ includes.
6457 * mi/mi-main.c: Fix common/ includes.
6458 * mi/mi-cmd-env.c: Fix common/ includes.
6459 * memrange.h: Fix common/ includes.
6460 * memattr.c: Fix common/ includes.
6461 * maint.h: Fix common/ includes.
6462 * maint.c: Fix common/ includes.
6463 * main.c: Fix common/ includes.
6464 * machoread.c: Fix common/ includes.
6465 * location.c: Fix common/ includes.
6466 * linux-thread-db.c: Fix common/ includes.
6467 * linux-nat.c: Fix common/ includes.
6468 * linux-fork.c: Fix common/ includes.
6469 * inline-frame.c: Fix common/ includes.
6470 * infrun.c: Fix common/ includes.
6471 * inflow.c: Fix common/ includes.
6472 * inferior.h: Fix common/ includes.
6473 * inferior.c: Fix common/ includes.
6474 * infcmd.c: Fix common/ includes.
6475 * inf-ptrace.c: Fix common/ includes.
6476 * inf-child.c: Fix common/ includes.
6477 * ia64-linux-nat.c: Fix common/ includes.
6478 * i387-tdep.c: Fix common/ includes.
6479 * i386-tdep.c: Fix common/ includes.
6480 * i386-linux-tdep.c: Fix common/ includes.
6481 * i386-linux-nat.c: Fix common/ includes.
6482 * i386-go32-tdep.c: Fix common/ includes.
6483 * i386-fbsd-tdep.c: Fix common/ includes.
6484 * i386-fbsd-nat.c: Fix common/ includes.
6485 * guile/scm-type.c: Fix common/ includes.
6486 * guile/guile.c: Fix common/ includes.
6487 * go32-nat.c: Fix common/ includes.
6488 * gnu-nat.c: Fix common/ includes.
6489 * gdbthread.h: Fix common/ includes.
6490 * gdbarch-selftests.c: Fix common/ includes.
6491 * gdb_usleep.c: Fix common/ includes.
6492 * gdb_select.h: Fix common/ includes.
6493 * gdb_bfd.c: Fix common/ includes.
6494 * gcore.c: Fix common/ includes.
6495 * fork-child.c: Fix common/ includes.
6496 * findvar.c: Fix common/ includes.
6497 * fbsd-nat.c: Fix common/ includes.
6498 * event-top.c: Fix common/ includes.
6499 * event-loop.c: Fix common/ includes.
6500 * dwarf2read.c: Fix common/ includes.
6501 * dwarf2loc.c: Fix common/ includes.
6502 * dwarf2-frame.c: Fix common/ includes.
6503 * dwarf-index-cache.c: Fix common/ includes.
6504 * dtrace-probe.c: Fix common/ includes.
6505 * disasm-selftests.c: Fix common/ includes.
6506 * defs.h: Fix common/ includes.
6507 * csky-tdep.c: Fix common/ includes.
6508 * cp-valprint.c: Fix common/ includes.
6509 * cp-support.h: Fix common/ includes.
6510 * cp-support.c: Fix common/ includes.
6511 * corelow.c: Fix common/ includes.
6512 * completer.h: Fix common/ includes.
6513 * completer.c: Fix common/ includes.
6514 * compile/compile.c: Fix common/ includes.
6515 * compile/compile-loc2c.c: Fix common/ includes.
6516 * compile/compile-cplus-types.c: Fix common/ includes.
6517 * compile/compile-cplus-symbols.c: Fix common/ includes.
6518 * command.h: Fix common/ includes.
6519 * cli/cli-dump.c: Fix common/ includes.
6520 * cli/cli-cmds.c: Fix common/ includes.
6521 * charset.c: Fix common/ includes.
6522 * build-id.c: Fix common/ includes.
6523 * btrace.h: Fix common/ includes.
6524 * btrace.c: Fix common/ includes.
6525 * breakpoint.h: Fix common/ includes.
6526 * breakpoint.c: Fix common/ includes.
6528 (enum agent_op): Fix common/ includes.
6529 * ax-general.c (struct aop_map): Fix common/ includes.
6530 * ax-gdb.c: Fix common/ includes.
6531 * auxv.c: Fix common/ includes.
6532 * auto-load.c: Fix common/ includes.
6533 * arm-tdep.c: Fix common/ includes.
6534 * arch/riscv.c: Fix common/ includes.
6535 * arch/ppc-linux-common.c: Fix common/ includes.
6536 * arch/i386.c: Fix common/ includes.
6537 * arch/arm.c: Fix common/ includes.
6538 * arch/arm-linux.c: Fix common/ includes.
6539 * arch/arm-get-next-pcs.c: Fix common/ includes.
6540 * arch/amd64.c: Fix common/ includes.
6541 * arch/aarch64.c: Fix common/ includes.
6542 * arch/aarch64-insn.c: Fix common/ includes.
6543 * arch-utils.c: Fix common/ includes.
6544 * amd64-windows-tdep.c: Fix common/ includes.
6545 * amd64-tdep.c: Fix common/ includes.
6546 * amd64-sol2-tdep.c: Fix common/ includes.
6547 * amd64-obsd-tdep.c: Fix common/ includes.
6548 * amd64-nbsd-tdep.c: Fix common/ includes.
6549 * amd64-linux-tdep.c: Fix common/ includes.
6550 * amd64-linux-nat.c: Fix common/ includes.
6551 * amd64-fbsd-tdep.c: Fix common/ includes.
6552 * amd64-fbsd-nat.c: Fix common/ includes.
6553 * amd64-dicos-tdep.c: Fix common/ includes.
6554 * amd64-darwin-tdep.c: Fix common/ includes.
6555 * agent.c: Fix common/ includes.
6556 * ada-lang.h: Fix common/ includes.
6557 * ada-lang.c: Fix common/ includes.
6558 * aarch64-tdep.c: Fix common/ includes.
6560 2019-01-25 Tom Tromey <tom@tromey.com>
6562 * common/create-version.sh: Use common/version.h.
6564 2019-01-24 Pedro Alves <palves@redhat.com>
6566 * infrun.c (signal_stop, signal_print, signal_program)
6567 (signal_catch, signal_pass): Now arrays instead of pointers.
6568 (update_signals_program_target, do_target_resume)
6569 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
6570 * linux-nat.c (linux_nat_target::pass_signals)
6571 (linux_nat_target::create_inferior, linux_nat_target::attach):
6573 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
6574 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
6575 * procfs.c (procfs_target::pass_signals): Adjust.
6576 * record-full.c (record_full_target::resume): Adjust.
6577 * remote.c (remote_target::pass_signals)
6578 (remote_target::program_signals): Adjust.
6579 * target-debug.h (target_debug_print_signals): Now takes a
6580 gdb::array_view as parameter. Adjust.
6581 * target.h (target_ops) <pass_signals, program_signals>: Replace
6582 pointer and length parameters with gdb::array_view.
6583 (target_pass_signals, target_program_signals): Likewise.
6584 * target-delegates.c: Regenerate.
6586 2019-01-24 Pedro Alves <palves@redhat.com>
6588 * common/forward-scope-exit.h
6589 (forward_scope_exit::forward_scope_exit): Pass arguments to
6590 m_bind_function directly, instead of creating a std::bind and
6593 2019-01-24 Alan Hayward <alan.hayward@arm.com>
6595 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6597 (pass_in_v_vfp_candidate): Likewise.
6599 2019-01-23 Tom Tromey <tom@tromey.com>
6600 Pedro Alves <palves@redhat.com>
6602 * regcache.c (class regcache_invalidator): Remove.
6603 (regcache::raw_write): Use make_scope_exit.
6605 2019-01-23 Tom Tromey <tom@tromey.com>
6607 * ui-out.h (class ui_out_emit_type): Update comment.
6609 2019-01-23 Tom Tromey <tom@tromey.com>
6611 * infrun.c (fetch_inferior_event): Update comment.
6613 2019-01-23 Tom Tromey <tom@tromey.com>
6614 Pedro Alves <palves@redhat.com>
6616 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
6618 (fetch_inferior_event): Use SCOPE_EXIT.
6621 2019-01-23 Tom Tromey <tom@tromey.com>
6622 Pedro Alves <palves@redhat.com>
6624 * infrun.c (disable_thread_events): Delete.
6625 (stop_all_threads): Use SCOPE_EXIT.
6627 2019-01-23 Tom Tromey <tom@tromey.com>
6628 Pedro Alves <palves@redhat.com>
6630 * symfile.c: Include forward-scope-exit.h.
6631 (clear_symtab_users_cleanup): Replace forward declaration with
6632 a FORWARD_SCOPE_EXIT.
6633 (syms_from_objfile_1): Use the forward_scope_exit and
6634 gdb::optional instead of cleanup_function.
6635 (reread_symbols): Use the forward_scope_exit instead of
6637 (clear_symtab_users_cleanup): Remove function.
6639 2019-01-23 Tom Tromey <tom@tromey.com>
6640 Pedro Alves <palves@redhat.com>
6642 * linux-nat.c: Include scope-exit.h.
6643 (cleanup_target_stop): Remove.
6644 (linux_nat_target::static_tracepoint_markers_by_strid): Use
6647 2019-01-23 Tom Tromey <tom@tromey.com>
6648 Pedro Alves <palves@redhat.com>
6650 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
6651 (call_function_by_hand_dummy): Use SCOPE_EXIT.
6653 2019-01-23 Tom Tromey <tom@tromey.com>
6654 Andrew Burgess <andrew.burgess@embecosm.com>
6655 Pedro Alves <palves@redhat.com>
6657 * infrun.c (fetch_inferior_event): Use scope_exit.
6658 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
6659 * top.c (execute_command): Use scope_exit.
6660 * breakpoint.c (bpstat_do_actions): Use scope_exit.
6661 * utils.c (do_bpstat_clear_actions_cleanup)
6662 (make_bpstat_clear_actions_cleanup): Remove.
6664 2019-01-23 Tom Tromey <tom@tromey.com>
6665 Pedro Alves <palves@redhat.com>
6667 * infrun.c: Include "common/scope-exit.h"
6668 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
6669 (wait_for_inferior): Use SCOPE_EXIT.
6670 (fetch_inferior_event): Use scope_exit.
6672 2019-01-23 Tom Tromey <tom@tromey.com>
6673 Pedro Alves <palves@redhat.com>
6675 * breakpoint.c (create_breakpoint): Remove cleanup.
6677 2019-01-23 Tom Tromey <tom@tromey.com>
6678 Andrew Burgess <andrew.burgess@embecosm.com>
6679 Pedro Alves <palves@redhat.com>
6681 2019-01-23 Pedro Alves <palves@redhat.com>
6683 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6685 2019-01-23 Pedro Alves <palves@redhat.com>
6686 Andrew Burgess <andrew.burgess@embecosm.com>
6688 * gdbthread.h: Include "common/forward-scope-exit.h".
6689 (scoped_finish_thread_state): Redefine custom class in terms of
6692 2019-01-23 Pedro Alves <palves@redhat.com>
6693 Andrew Burgess <andrew.burgess@embecosm.com>
6695 * common/forward-scope-exit.h: New file.
6697 2019-01-23 Pedro Alves <palves@redhat.com>
6698 Andrew Burgess <andrew.burgess@embecosm.com>
6699 Tom Tromey <tom@tromey.com>
6701 * common/scope-exit.h: New file.
6703 2019-01-23 Pedro Alves <palves@redhat.com>
6705 * common/preprocessor.h (ESC): Rename to ...
6706 (ESC_PARENS): ... this.
6707 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6708 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6710 2019-01-23 Tom Tromey <tom@tromey.com>
6712 * language.h (class scoped_switch_to_sym_language_if_auto):
6713 Initialize m_lang in both cases.
6715 2019-01-23 Alan Hayward <alan.hayward@arm.com>
6717 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6720 2019-01-22 Tom Tromey <tom@tromey.com>
6722 * corelow.c: Do not include sys/file.h.
6724 2019-01-22 Tom Tromey <tom@tromey.com>
6726 * tui/tui-wingeneral.h: Include gdb_curses.h.
6728 2019-01-22 Tom Tromey <tom@tromey.com>
6730 * source-cache.h (class source_cache) <get_source_lines,
6731 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6733 2019-01-22 Tom Tromey <tom@tromey.com>
6735 * remote-fileio.h (struct remote_target): Declare.
6737 2019-01-22 Tom Tromey <tom@tromey.com>
6739 * python/py-arch.c: Do not include py-ref.h.
6740 * python/py-bpevent.c: Do not include py-ref.h.
6741 * python/py-cmd.c: Do not include py-ref.h.
6742 * python/py-continueevent.c: Do not include py-ref.h.
6743 * python/py-event.h: Do not include py-ref.h.
6744 * python/py-evtregistry.c: Do not include py-ref.h.
6745 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6746 * python/py-frame.c: Do not include py-ref.h.
6747 * python/py-framefilter.c: Do not include py-ref.h.
6748 * python/py-function.c: Do not include py-ref.h.
6749 * python/py-infevents.c: Do not include py-ref.h.
6750 * python/py-linetable.c: Do not include py-ref.h.
6751 * python/py-objfile.c: Do not include py-ref.h.
6752 * python/py-param.c: Do not include py-ref.h.
6753 * python/py-prettyprint.c: Do not include py-ref.h.
6754 * python/py-progspace.c: Do not include py-ref.h.
6755 * python/py-symbol.c: Do not include py-ref.h.
6756 * python/py-symtab.c: Do not include py-ref.h.
6757 * python/py-type.c: Do not include py-ref.h.
6758 * python/py-unwind.c: Do not include py-ref.h.
6759 * python/py-utils.c: Do not include py-ref.h.
6760 * python/py-value.c: Do not include py-ref.h.
6761 * python/py-varobj.c: Do not include py-ref.h.
6762 * python/py-xmethods.c: Do not include py-ref.h.
6763 * python/python.c: Do not include py-ref.h.
6764 * varobj.c: Do not include py-ref.h.
6766 2019-01-22 Tom Tromey <tom@tromey.com>
6768 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6771 2019-01-22 Tom Tromey <tom@tromey.com>
6773 * compile/compile-cplus-types.c: Remove a comment by #include.
6775 2019-01-22 Tom Tromey <tom@tromey.com>
6777 * compile/gcc-c-plugin.h: Include compile-internal.h.
6779 2019-01-22 Tom Tromey <tom@tromey.com>
6781 * stabsread.c (EXTERN): Do not define.
6782 (symnum, next_symbol_text_func, processing_gcc_compilation)
6783 (within_function, global_sym_chain, global_stabs)
6784 (previous_stab_code, this_object_header_files)
6785 (n_this_object_header_files)
6786 (n_allocated_this_object_header_files): Define.
6787 * stabsread.h (EXTERN): Never define. Use "extern".
6789 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6791 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6794 2019-01-21 Tom Tromey <tom@tromey.com>
6796 * ui-out.c: Fix includes.
6797 * tui/tui-source.c: Fix includes.
6798 * target.c: Fix includes.
6799 * remote.c: Fix includes.
6800 * regcache.c: Fix includes.
6801 * python/py-block.c: Fix includes.
6802 * printcmd.c: Fix includes.
6803 * or1k-tdep.c: Fix includes.
6804 * mi/mi-main.c: Fix includes.
6805 * m32r-tdep.c: Fix includes.
6806 * csky-tdep.c: Fix includes.
6807 * compile/compile-cplus-types.c: Fix includes.
6808 * cli/cli-interp.c: Fix includes.
6810 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6812 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6815 2019-01-16 Tom Tromey <tom@tromey.com>
6817 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6819 (struct objfile) <msymbols_range>: Move from top level.
6820 <msymbols>: New method.
6821 (class objfile_msymbols): Remove.
6822 * symtab.c (default_collect_symbol_completion_matches_break_on):
6824 * symmisc.c (dump_msymbols): Update.
6825 * stabsread.c (scan_file_globals): Update.
6826 * objc-lang.c (info_selectors_command, info_classes_command)
6827 (find_methods): Update.
6828 * minsyms.c (find_solib_trampoline_target): Update.
6829 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6830 * coffread.c (coff_symfile_read): Update.
6831 * ada-lang.c (ada_lookup_simple_minsym)
6832 (ada_collect_symbol_completion_matches): Update.
6834 2019-01-16 Tom Tromey <tom@tromey.com>
6836 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6837 type. Remove no-argument constructor.
6838 <iterator::operator++>: Simplify.
6840 <end>: Use minimal_symbol_count.
6842 2019-01-16 Tom Tromey <tom@tromey.com>
6844 * objfiles.h (struct objfile) <psymtabs>: New method.
6845 (class objfile_psymtabs): Remove.
6846 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6848 <range>: New method.
6849 (require_partial_symbols): Change return type.
6850 * psymtab.c (require_partial_symbols)
6851 (psym_expand_symtabs_matching): Update.
6852 * mdebugread.c (parse_partial_symbols): Update.
6853 * dbxread.c (dbx_end_psymtab): Update.
6855 2019-01-15 Tom Tromey <tom@tromey.com>
6857 * symtab.c (lookup_objfile_from_block)
6858 (lookup_symbol_in_objfile_symtabs)
6859 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6860 (find_line_symtab, info_sources_command)
6861 (default_collect_symbol_completion_matches_break_on)
6862 (make_source_files_completion_list): Update.
6863 * symmisc.c (print_objfile_statistics, dump_objfile)
6864 (maintenance_print_symbols, maintenance_info_symtabs)
6865 (maintenance_check_symtabs, maintenance_info_line_tables):
6867 * source.c (select_source_symtab)
6868 (forget_cached_source_info_for_objfile): Update.
6869 * objfiles.h (class objfile_compunits): Remove.
6870 (struct objfile) <compunits_range>: New typedef.
6871 (compunits): New method.
6872 * objfiles.c (objfile_relocate1): Update.
6873 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6874 * maint.c (count_symtabs_and_blocks): Update.
6875 * linespec.c (iterate_over_all_matching_symtabs): Update.
6876 * cp-support.c (add_symbol_overload_list_qualified): Update.
6877 * coffread.c (coff_symtab_read): Update.
6878 * ada-lang.c (add_nonlocal_symbols)
6879 (ada_collect_symbol_completion_matches)
6880 (ada_add_global_exceptions): Update.
6882 2019-01-15 Tom Tromey <tom@tromey.com>
6884 * progspace.h (program_space) <objfiles_safe_range>: New
6886 <objfiles_safe>: New method.
6887 * objfiles.h (class all_objfiles_safe): Remove.
6888 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6889 * jit.c (jit_inferior_exit_hook): Update.
6891 2019-01-17 Tom Tromey <tom@tromey.com>
6893 * progspace.h (program_space) <objfiles_range>: New typedef.
6894 <objfiles>: New method.
6895 <objfiles_head>: Rename from objfiles.
6896 (object_files): Update.
6897 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6898 * guile/scm-pretty-print.c
6899 (ppscm_find_pretty_printer_from_objfiles): Update.
6900 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6901 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6903 * python/py-progspace.c (pspy_get_objfiles): Update.
6904 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6906 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6907 (objfpy_lookup_objfile_by_build_id): Update.
6908 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6909 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6911 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6912 (expand_symtab_containing_pc, lookup_objfile_from_block)
6913 (lookup_static_symbol, basic_lookup_transparent_type)
6914 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6915 (find_line_symtab, info_sources_command)
6916 (default_collect_symbol_completion_matches_break_on)
6917 (make_source_files_completion_list, find_main_name): Update.
6918 * symmisc.c (print_symbol_bcache_statistics)
6919 (print_objfile_statistics, maintenance_print_symbols)
6920 (maintenance_print_msymbols, maintenance_print_objfiles)
6921 (maintenance_info_symtabs, maintenance_check_symtabs)
6922 (maintenance_expand_symtabs, maintenance_info_line_tables):
6924 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6925 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6926 (map_overlay_command, unmap_overlay_command)
6927 (simple_overlay_update, expand_symtabs_matching)
6928 (map_symbol_filenames): Update.
6929 * symfile-debug.c (set_debug_symfile): Update.
6930 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6932 * source.c (select_source_symtab, forget_cached_source_info):
6934 * solib.c (solib_read_symbols): Update.
6935 * solib-spu.c (append_ocl_sos): Update.
6936 * psymtab.c (maintenance_print_psymbols)
6937 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6938 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6939 * printcmd.c (info_symbol_command): Update.
6940 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6942 * objfiles.h (class all_objfiles): Remove.
6943 * objfiles.c (have_partial_symbols, have_full_symbols)
6944 (have_minimal_symbols, qsort_cmp, update_section_map)
6945 (shared_objfile_contains_address_p)
6946 (default_iterate_over_objfiles_in_search_order): Update.
6947 * objc-lang.c (info_selectors_command, info_classes_command)
6948 (find_methods): Update.
6949 * minsyms.c (find_solib_trampoline_target): Update.
6950 * maint.c (maintenance_info_sections)
6951 (maintenance_translate_address, count_symtabs_and_blocks):
6953 * main.c (captured_main_1): Update.
6954 * linux-thread-db.c (try_thread_db_load_from_pdir)
6955 (has_libpthread): Update.
6956 * linespec.c (iterate_over_all_matching_symtabs)
6957 (search_minsyms_for_name): Update.
6958 * jit.c (jit_find_objf_with_entry_addr): Update.
6959 * hppa-tdep.c (find_unwind_entry)
6960 (hppa_lookup_stub_minimal_symbol): Update.
6961 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6963 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6964 (elf_gnu_ifunc_resolve_by_got): Update.
6965 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6966 * dwarf-index-write.c (save_gdb_index_command): Update.
6967 * cp-support.c (add_symbol_overload_list_qualified): Update.
6968 * breakpoint.c (create_overlay_event_breakpoint)
6969 (create_longjmp_master_breakpoint)
6970 (create_std_terminate_master_breakpoint)
6971 (create_exception_master_breakpoint): Update.
6972 * blockframe.c (find_pc_partial_function): Update.
6973 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6974 (ada_collect_symbol_completion_matches)
6975 (ada_add_global_exceptions): Update.
6977 2019-01-17 Tom Tromey <tom@tromey.com>
6979 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6981 (solib_target_parse_libraries): Change return type.
6982 (library_list_start_segment, library_list_start_section)
6983 (library_list_end_library, library_list_start_library); Update.
6984 (solib_target_free_library_list): Remove.
6985 (solib_target_parse_libraries): Remove cleanup. Change return
6987 (solib_target_current_sos): Update.
6989 2019-01-17 Tom Tromey <tromey@bapiya>
6991 * valprint.c: Replace "the the" with "the".
6992 * symtab.c: Replace "the the" with "the".
6993 * solib.c: Replace "the the" with "the".
6994 * solib-dsbt.c: Replace "the the" with "the".
6995 * linespec.c: Replace "the the" with "the".
6996 * dwarf2loc.h: Replace "the the" with "the".
6997 * amd64-windows-tdep.c: Replace "the the" with "the".
6998 * aarch64-tdep.c: Replace "the the" with "the".
7000 2019-01-16 Keith Seitz <keiths@redhat.com>
7003 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
7004 <builder>: Rename to ..
7005 <m_builder>: ... this and make private.
7006 (dwarf2_cu::get_builder): New method. Change all users of
7007 `builder' to use this method.
7008 (dwarf2_start_symtab): Move to ...
7009 (dwarf2_cu::start_symtab): ... here. Update all callers
7010 (setup_type_unit_groups): Move to ...
7011 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
7013 (dwarf2_cu::reset_builder): New method.
7014 (process_full_compunit, process_full_type_unit): Use
7015 dwarf2_cu::reset_builder.
7016 (follow_die_offset): Record the ancestor CU if it is different
7017 from the followed DIE's CU.
7018 (follow_die_sig_1): Likewise.
7020 2019-01-15 Tom Tromey <tom@tromey.com>
7022 * remote.c (class remote_state) <buf>: Now a char_vector.
7024 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
7026 (remote_target::getpkt_or_notif_sane_1)
7027 (remote_target::getpkt_sane)
7028 (remote_target::getpkt_or_notif_sane): Likewise.
7029 (class remote_target) <putpkt>: New overload.
7030 (remote_target::read_frame): Change type of "buf_p". Remove
7032 (packet_ok): New overload.
7033 (packet_check_result): New overload.
7036 2019-01-14 Tom Tromey <tom@tromey.com>
7038 * remote-notif.c (handle_notification, remote_notif_ack)
7039 (remote_notif_parse): Make "buf" const.
7040 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
7042 (remote_notif_parse, remote_notif_ack, handle_notification):
7044 * remote.c (remote_notif_stop_parse): Make "buf" const.
7045 (remote_target::remote_parse_stop_reply): Make "buf" const.
7046 (remote_notif_stop_ack): Make "buf" const.
7048 2019-01-14 Tom Tromey <tom@tromey.com>
7050 * remote.c (remote_console_output): Make parameter const.
7052 2019-01-14 Tom Tromey <tom@tromey.com>
7054 * target-debug.h (target_debug_print_signals): Constify.
7055 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
7056 * procfs.c (procfs_target::pass_signals): Update.
7057 * linux-nat.c (linux_nat_target::pass_signals): Update.
7058 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
7059 * target-delegates.c: Rebuild.
7060 * remote.c (remote_target::program_signals): Update.
7061 (remote_target::pass_signals): Update.
7062 * target.c (target_pass_signals): Constify argument.
7063 (target_program_signals): Likewise.
7064 * target.h (struct target_ops) <pass_signals, program_signals>:
7066 (target_pass_signals, target_program_signals): Constify argument.
7068 2019-01-14 Tom Tromey <tom@tromey.com>
7071 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
7073 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7075 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
7077 * rs6000-tdep.c: Include reggroups.h.
7078 (IS_V_ALIAS_PSEUDOREG): Define.
7079 (rs6000_register_name): Return names for the "vX" aliases.
7080 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
7081 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
7082 aliases. Call default_register_reggroup_p for all other
7084 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
7086 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
7087 Handle "vX" aliases.
7088 (v_alias_pseudo_register_collect): New function.
7089 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
7090 (rs6000_gdbarch_init): Initialize "vX" aliases as
7091 pseudo-registers. Restore registration of
7092 rs6000_pseudo_register_reggroup_p with
7093 set_tdesc_pseudo_register_reggroup_p.
7095 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
7097 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
7098 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
7099 set_gdbarch_num_pseudo_regs.
7101 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7103 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
7104 Remove arg prefixname, add do_set and do_show.
7105 Add member functions set_list and show_list.
7106 * cli/cli-style.c (class cli_style_option): Update accordingly.
7107 (style_set_list): Move to file scope.
7108 (style_show_list): Likewise.
7109 (set_style): Call help_list.
7110 (show_style): Call cmd_show_list.
7111 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
7112 Update to use the new macro.
7114 2019-10-12 Joel Brobecker <brobecker@adacore.com>
7116 * ada-lang.c (_initialize_ada_language): Expand the help text
7117 for the "catch exception" command.
7119 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7121 * symtab.c (matching_obj_sections): Initialize obj,
7122 declare it closer to its usage.
7124 2019-01-10 Tom Tromey <tom@tromey.com>
7126 * thread-iter.h (inf_threads_iterator): Use next_iterator.
7127 (basic_inf_threads_range): Remove.
7128 (inf_threads_range, inf_non_exited_threads_range)
7129 (safe_inf_threads_range): Use next_adapter.
7131 2019-01-10 Keith Seitz <keiths@redhat.com>
7135 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
7136 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
7138 2019-01-10 Keith Seitz <keiths@redhat.com>
7142 * dictionary.c (pending_to_vector): Remove.
7143 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7144 Remove _1 suffix, replacing functions of the same name. Update
7146 (dict_create_hashed, dict_create_hashed_expandable)
7147 (dict_create_linear, dict_create_linear_expandable, dict_free)
7148 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
7149 Make functions static.
7151 2019-01-10 Keith Seitz <keiths@redhat.com>
7155 * dictionary.h (struct dictionary): Replace declaration with
7157 (dict_create_hashed, dict_create_hashed_expandable)
7158 (dict_create_linear, dict_create_linear_expandable)
7159 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
7160 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
7161 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
7162 taking multidictionary argument.
7163 [ALL_DICT_SYMBOLS]: Update for multidictionary.
7164 * block.h (struct block) <dict>: Change to multidictionary
7165 and rename `multidict'.
7166 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
7167 symmisc.c: Update all dictionary references to multidictionary.
7169 2019-01-10 Keith Seitz <keiths@redhat.com>
7173 * dictionary.c: Include unordered_map.
7174 (pending_to_vector): New function.
7175 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7176 Rewrite the non-"_1" functions to take vector instead
7178 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
7179 "new" _1 versions of the same name.
7180 (multidictionary): Define.
7181 (std::hash<enum language): New definition.
7182 (collate_pending_symbols_by_language, mdict_create_hashed)
7183 (mdict_create_hashed_expandable, mdict_create_linear)
7184 (mdict_create_linear_expandable, mdict_free)
7185 (find_language_dictionary, create_new_language_dictionary)
7186 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
7187 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
7188 (mdict_size, mdict_empty): New functions.
7189 * dictionary.h (mdict_iterator): Define.
7191 2019-01-10 Pedro Alves <palves@redhat.com>
7193 * breakpoint.c (read_uploaded_action)
7194 (create_tracepoint_from_upload): Adjust to use
7195 gdb::unique_xmalloc_ptr.
7196 * ctf.c (ctf_write_uploaded_tp):
7197 (SET_ARRAY_FIELD): Use emplace_back.
7198 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
7199 * tracefile-tfile.c (tfile_write_uploaded_tp):
7200 * tracepoint.c (parse_tracepoint_definition): Adjust to use
7201 gdb::unique_xmalloc_ptr.
7202 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
7203 at_string, cond_string, cmd_strings>: Replace char pointers
7204 with gdb::unique_xmalloc_ptr.
7206 2019-01-10 Pedro Alves <palves@redhat.com>
7208 * solib-target.c (library_list_start_library): Don't xstrdup name.
7210 2019-01-10 Pedro Alves <palves@redhat.com>
7212 * mdebugread.c (parse_partial_symbols): Use
7213 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
7215 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7217 * linux-fork.c (scoped_switch_fork_info)
7218 <~scoped_switch_fork_info>: Fix incorrect variable name.
7220 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7222 * linux-fork.c (scoped_switch_fork_info)
7223 <scoped_switch_fork_info>: Make explicit.
7224 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
7226 2019-01-10 Tom Tromey <tom@tromey.com>
7228 * objfiles.h (objfile::reset_psymtabs): Update.
7229 * objfiles.c (objfile::objfile): Update.
7230 * psymtab.h (psymtab_storage::obstack): Update.
7231 (psymtab_storage::m_obstack): Use gdb::optional.
7232 (class psymtab_storage): Update comment. Remove objfile
7234 * psymtab.c (psymtab_storage::psymtab_storage): Update.
7236 2019-01-10 Tom Tromey <tom@tromey.com>
7238 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
7239 <free_psymtabs>: Now private.
7240 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
7241 (allocate_psymtab): Use new method.
7243 2019-01-10 Tom Tromey <tom@tromey.com>
7245 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
7246 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
7247 * mdebugread.c (parse_partial_symbols): Use
7248 allocate_dependencies.
7249 * dwarf2read.c (dwarf2_create_include_psymtab): Use
7250 allocate_dependencies.
7251 (process_psymtab_comp_unit_reader)
7252 (build_type_psymtab_dependencies): Likewise.
7253 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
7255 2019-01-10 Tom Tromey <tom@tromey.com>
7257 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
7258 PSYMBOL_SET_LANGUAGE.
7259 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
7261 2019-01-10 Tom Tromey <tom@tromey.com>
7263 * psymtab.h (psymtab_storage::obstack): New method.
7264 <m_obstack>: Rename from obstack; now private.
7265 * psymtab.c (psymtab_storage): Update.
7266 * dwarf2read.c (create_addrmap_from_index)
7267 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
7270 2019-01-10 Tom Tromey <tom@tromey.com>
7272 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
7273 * objfiles.h (objfile::reset_psymtabs): New method.
7275 2019-01-10 Tom Tromey <tom@tromey.com>
7277 * symmisc.c (print_symbol_bcache_statistics): Update.
7278 (print_objfile_statistics): Update.
7279 * symfile.c (reread_symbols): Update.
7280 * psymtab.h (class psymtab_storage): New.
7281 * psymtab.c (psymtab_storage): New constructor.
7282 (~psymtab_storage): New destructor.
7283 (require_partial_symbols): Update.
7284 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
7285 (find_pc_sect_psymtab, find_pc_sect_psymbol)
7286 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
7287 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
7288 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
7289 (start_psymtab_common, end_psymtab_common)
7290 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
7291 (allocate_psymtab): Update.
7292 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
7294 (dump_psymtab_addrmap, maintenance_print_psymbols)
7295 (maintenance_check_psymtabs): Update.
7296 (class objfile_psymtabs): Move to objfiles.h.
7297 * psympriv.h (discard_psymtab): Now inline.
7298 (psymtab_discarder::psymtab_discarder): Update.
7299 (psymtab_discarder::~psymtab_discarder): Update.
7300 (ALL_OBJFILE_PSYMTABS): Rewrite.
7301 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
7302 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
7304 <partial_symtabs>: New field.
7305 (class objfile_psymtabs): Move from psymtab.h. Update.
7306 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
7308 (objfile::~objfile): Don't destroy psymbol_cache.
7309 * mdebugread.c (parse_partial_symbols): Update.
7310 * dwarf2read.c (create_addrmap_from_index)
7311 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7312 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
7313 (add_partial_subprogram, dwarf2_ranges_read): Update.
7314 * dwarf-index-write.c (write_address_map)
7315 (write_one_signatured_type, recursively_write_psymbols)
7316 (class debug_names, class debug_names, write_psymtabs_to_index):
7319 2019-01-10 Tom Tromey <tom@tromey.com>
7321 * symtab.h (SYMBOL_SET_NAMES): Update.
7322 (symbol_set_names): Update.
7323 (MSYMBOL_SET_NAMES): Update.
7324 * symtab.c (symbol_set_names): Change argument to be an
7325 objfile_per_bfd_storage.
7326 * psymtab.c (add_psymbol_to_bcache): Update.
7327 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
7329 2019-01-10 Tom Tromey <tom@tromey.com>
7331 * symtab.c (create_demangled_names_hash): Change argument to be an
7332 objfile_per_bfd_storage.
7333 (symbol_set_names): Update.
7335 2019-01-10 Tom Tromey <tom@tromey.com>
7337 * xcoffread.c (xcoff_initial_scan): Unconditionally call
7339 * psymtab.c (init_psymbol_list): Do nothing if already called.
7340 * psympriv.h (init_psymbol_list): Add comment.
7341 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
7343 * dbxread.c (dbx_symfile_read): Unconditionally call
7346 2019-01-10 Tom Tromey <tom@tromey.com>
7348 * xcoffread.c (scan_xcoff_symtab): Update.
7349 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
7351 * mdebugread.c (parse_partial_symbols)
7352 (handle_psymbol_enumerators): Update.
7353 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
7354 * dbxread.c (read_dbx_symtab): Update.
7355 * psympriv.h (psymbol_placement): New enum.
7356 (add_psymbol_to_list): Update.
7358 2019-01-10 Tom Tromey <tom@tromey.com>
7360 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
7361 static_psymbols parameters.
7362 (scan_xcoff_symtab): Update.
7363 * psymtab.c (start_psymtab_common): Remove global_psymbols and
7364 static_psymbols parameters.
7365 * psympriv.h (start_psymtab_common): Update.
7366 * mdebugread.c (parse_partial_symbols): Update.
7367 * dwarf2read.c (create_partial_symtab): Update.
7368 * dbxread.c (read_dbx_symtab): Update.
7369 (start_psymtab): Remove global_psymbols and static_psymbols
7372 2019-01-10 Tom Tromey <tom@tromey.com>
7374 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
7375 * psymtab.c (allocate_psymtab): Add comment.
7376 * psympriv.h (allocate_psymtab): Add comment.
7377 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
7379 * dbxread.c (dbx_end_psymtab): Remove some initializations.
7381 2019-01-10 Tom Tromey <tom@tromey.com>
7383 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7385 * mipsread.c: Include mdebugread.h.
7386 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7388 * elfread.c: Include mdebugread.h.
7390 2019-01-09 Tom Tromey <tom@tromey.com>
7392 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
7393 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
7394 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
7395 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
7396 (psym_lookup_symbol, psym_find_last_source_symtab)
7397 (psym_forget_cached_source_info, psym_print_stats)
7398 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
7399 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
7400 (psym_map_matching_symbols, psym_expand_symtabs_matching)
7401 (psym_find_compunit_symtab_by_address)
7402 (maintenance_print_psymbols, maintenance_info_psymtabs)
7403 (maintenance_check_psymtabs): Use ranged for.
7404 * psymtab.h (class objfile_psymtabs): New.
7405 (require_partial_symbols): Return objfile_psymtabs.
7406 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
7408 2019-01-09 Tom Tromey <tom@tromey.com>
7410 * symfile.c (overlay_invalidate_all, find_pc_overlay)
7411 (find_pc_mapped_section, list_overlays_command)
7412 (map_overlay_command, unmap_overlay_command)
7413 (simple_overlay_update): Use all_objfiles.
7414 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
7415 * printcmd.c (info_symbol_command): Use all_objfiles.
7416 * objfiles.h (ALL_OBJSECTIONS): Remove.
7417 * maint.c (maintenance_translate_address): Use all_objfiles.
7418 * gcore.c (gcore_create_callback): Use all_objfiles.
7419 (objfile_find_memory_regions): Likewise.
7421 2019-01-09 Tom Tromey <tom@tromey.com>
7423 * symtab.c (find_line_symtab, info_sources_command)
7424 (make_source_files_completion_list): Use objfile_compunits.
7425 * source.c (select_source_symtab): Use objfile_compunits.
7426 * objfiles.h (struct objfile): Update comment.
7427 (ALL_OBJFILES): Remove.
7428 (ALL_FILETABS): Remove.
7429 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
7432 2019-01-09 Tom Tromey <tom@tromey.com>
7434 * symmisc.c (print_objfile_statistics, dump_objfile)
7435 (maintenance_print_symbols): Use compunit_filetabs.
7436 * source.c (forget_cached_source_info_for_objfile): Use
7438 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
7439 (ALL_FILETABS): Use compunit_filetabs.
7440 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
7441 * coffread.c (coff_symtab_read): Use compunit_filetabs.
7443 2019-01-09 Tom Tromey <tom@tromey.com>
7445 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
7446 (compunit_filetabs): New.
7447 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
7449 (info_sources_command, make_source_files_completion_list): Remove
7451 * symmisc.c (print_objfile_statistics, dump_objfile)
7452 (maintenance_print_symbols): Remove declaration.
7453 (maintenance_info_symtabs): Use compunit_filetabs.
7454 (maintenance_info_line_tables): Likewise.
7455 * source.c (select_source_symtab): Change local variable name.
7456 (forget_cached_source_info_for_objfile): Remove declaration.
7457 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
7458 * objfiles.c (objfile_relocate1): Remove declaration.
7459 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7461 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
7462 * coffread.c (coff_symtab_read): Remove declaration.
7463 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
7466 2019-01-09 Tom Tromey <tom@tromey.com>
7468 * symtab.c (lookup_objfile_from_block)
7469 (find_pc_sect_compunit_symtab, search_symbols)
7470 (default_collect_symbol_completion_matches_break_on): Use
7472 * objfiles.h (ALL_COMPUNITS): Remove.
7473 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
7474 * cp-support.c (add_symbol_overload_list_qualified): Use
7476 * ada-lang.c (ada_collect_symbol_completion_matches)
7477 (ada_add_global_exceptions): Use objfile_compunits.
7479 2019-01-09 Tom Tromey <tom@tromey.com>
7481 * source.c (select_source_symtab)
7482 (forget_cached_source_info_for_objfile): Remove declaration.
7483 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7485 * maint.c (count_symtabs_and_blocks): Remove declaration.
7486 * cp-support.c (add_symbol_overload_list_qualified): Remove
7488 * coffread.c (coff_symtab_read): Remove declaration.
7489 * symtab.c (lookup_symbol_in_objfile_symtabs)
7490 (basic_lookup_transparent_type_1): Use objfile_compunits.
7491 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
7492 (info_sources_command, search_symbols)
7493 (default_collect_symbol_completion_matches_break_on)
7494 (make_source_files_completion_list): Remove declaration.
7495 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
7496 (ada_collect_symbol_completion_matches)
7497 (ada_add_global_exceptions): Remove declaration.
7498 * linespec.c (iterate_over_all_matching_symtabs): Use
7500 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
7501 (class objfile_compunits): New.
7502 (ALL_COMPUNITS): Use objfile_compunits.
7503 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
7504 (maintenance_check_symtabs, maintenance_info_line_tables): Use
7506 * objfiles.c (objfile_relocate1): Use objfile_compunits.
7508 2019-01-09 Tom Tromey <tom@tromey.com>
7510 * symtab.c (search_symbols)
7511 (default_collect_symbol_completion_matches_break_on): Use
7513 * ada-lang.c (ada_lookup_simple_minsym)
7514 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
7515 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
7516 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
7518 * coffread.c (coff_symfile_read): Use objfile_msymbols.
7519 * symmisc.c (dump_msymbols): Use objfile_msymbols.
7520 * objc-lang.c (find_methods): Use objfile_msymbols.
7521 (info_selectors_command, info_classes_command): Likewise.
7522 * stabsread.c (scan_file_globals): Use objfile_msymbols.
7523 * objfiles.h (class objfile_msymbols): New.
7524 (ALL_OBJFILE_MSYMBOLS): Remove.
7525 (ALL_MSYMBOLS): Remove.
7527 2019-01-09 Tom Tromey <tom@tromey.com>
7529 * common/next-iterator.h (next_adapter): Add Iterator template
7531 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
7532 (class all_objfiles_safe): New.
7533 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
7534 * objfiles.c (put_objfile_before): Update comment.
7535 (add_separate_debug_objfile): Likewise.
7536 (free_all_objfiles): Use all_objfiles_safe.
7537 (objfile_purge_solibs): Likewise.
7539 2019-01-09 Tom Tromey <tom@tromey.com>
7541 * symtab.c (iterate_over_symtabs, matching_obj_sections)
7542 (expand_symtab_containing_pc, lookup_static_symbol)
7543 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
7544 (find_symbol_at_address, find_line_symtab, find_main_name): Use
7546 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
7547 * breakpoint.c (create_overlay_event_breakpoint)
7548 (create_longjmp_master_breakpoint)
7549 (create_std_terminate_master_breakpoint)
7550 (create_exception_master_breakpoint): Use all_objfiles.
7551 * linux-thread-db.c (try_thread_db_load_from_pdir)
7552 (has_libpthread): Use all_objfiles.
7553 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
7554 * linespec.c (iterate_over_all_matching_symtabs)
7555 (search_minsyms_for_name): Use all_objfiles.
7556 * maint.c (maintenance_info_sections): Use all_objfiles.
7557 * main.c (captured_main_1): Use all_objfiles.
7558 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
7559 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
7560 * guile/scm-pretty-print.c
7561 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
7562 * solib-spu.c (append_ocl_sos): Use all_objfiles.
7563 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
7564 (maintenance_print_msymbols): Use all_objfiles.
7565 * source.c (select_source_symtab): Use all_objfiles.
7566 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
7567 * symfile.c (remove_symbol_file_command)
7568 (expand_symtabs_matching, map_symbol_filenames): Use
7570 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
7572 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
7573 * objc-lang.c (find_methods): Use all_objfiles.
7574 * objfiles.c (have_partial_symbols, have_full_symbols)
7575 (have_minimal_symbols, qsort_cmp)
7576 (default_iterate_over_objfiles_in_search_order): Use
7578 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
7579 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
7580 (maintenance_check_psymtabs): Use all_objfiles.
7581 (ALL_PSYMTABS): Remove.
7582 * compile/compile-object-run.c (do_module_cleanup): Use
7584 * blockframe.c (find_pc_partial_function): Use all_objfiles.
7585 * cp-support.c (add_symbol_overload_list_qualified): Use
7587 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
7589 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
7590 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
7592 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
7593 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
7594 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7596 * solib.c (solib_read_symbols): Use all_objfiles
7598 2019-01-09 Tom Tromey <tom@tromey.com>
7600 * probe.c (parse_probes_in_pspace): Use all_objfiles.
7601 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
7603 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
7604 * symmisc.c (print_symbol_bcache_statistics)
7605 (print_objfile_statistics, maintenance_print_objfiles)
7606 (maintenance_info_symtabs, maintenance_check_symtabs)
7607 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
7609 * source.c (forget_cached_source_info): Use all_objfiles.
7610 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
7611 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
7612 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
7613 * objfiles.c (update_section_map): Use all_objfiles.
7614 (shared_objfile_contains_address_p): Likewise.
7615 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
7616 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
7618 2019-01-09 Tom Tromey <tom@tromey.com>
7620 * common/next-iterator.h: New file.
7621 * objfiles.h (class all_objfiles): New.
7622 (struct objfile_iterator): New.
7624 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7626 * NEWS: Move the description of the changed "frame", "select-frame",
7627 and "info frame" commands to the Changed commands section.
7629 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
7631 * gdbtypes.c (check_stub_method_group): Remove handling of old
7633 * linespec.c (find_methods): Likewise.
7634 * stabsread.c (read_member_functions): Likewise.
7635 * valops.c (search_struct_method): Likewise.
7636 (value_struct_elt_for_reference): Likewise.
7637 * NEWS: Mention this change.
7639 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7641 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
7643 * source.c (print_source_lines_base): Update line number check.
7644 (print_source_lines): New function.
7645 (source_lines_range::source_lines_range): New function.
7646 * source.h (class source_lines_range): New class.
7647 (print_source_lines): New declaration.
7649 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7651 * linespec.c (linespec_state_destructor): Free self->canonical_names.
7653 2019-01-08 Tom Tromey <tom@tromey.com>
7654 Simon Marchi <simon.marchi@ericsson.com>
7657 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
7658 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
7659 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7660 * f-exp.y (DOLLAR_VARIABLE): Likewise.
7661 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
7662 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7664 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7666 * source.c (select_source_symtab): Move header comment to
7667 declaration in source.h.
7668 (forget_cached_source_info_for_objfile): Likewise.
7669 (forget_cached_source_info): Likewise.
7670 (identify_source_line): Likewise.
7671 * source.h (identify_source_line): Move declaration from symtab.h
7672 and add comment from source.c
7673 (print_source_lines): Likewise.
7674 (forget_cached_source_info_for_objfile): Likewise.
7675 (forget_cached_source_info): Likewise.
7676 (select_source_symtab): Likewise.
7677 (enum print_source_lines_flag): Move definition from symtab.h.
7678 * symtab.h (identify_source_line): Move declaration to source.h.
7679 (print_source_lines): Likewise.
7680 (forget_cached_source_info_for_objfile): Likewise.
7681 (forget_cached_source_info): Likewise.
7682 (select_source_symtab): Likewise.
7683 (enum print_source_lines_flag): Move definition to source.h.
7684 * tui/tui-hooks.c: Add 'source.h' include.
7686 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7688 * source.c (print_source_lines_base): Handle requests to print
7689 reverse line number sequences, and guard against empty lines
7692 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7694 * source.c (print_source_lines_base): Fix skip of '\r' if next
7697 2019-01-06 Tom Tromey <tom@tromey.com>
7699 * c-exp.y (struct c_parse_state) <macro_original_text,
7700 expansion_obstack>: New member.
7701 (macro_original_text, expansion_obstack): Remove globals.
7702 (scan_macro_expansion, scanning_macro_expansion)
7703 (finished_macro_expansion): Update.
7704 (scan_macro_cleanup): Remove.
7705 (yylex, c_parse): Update.
7707 2019-01-06 Tom Tromey <tom@tromey.com>
7709 * c-exp.y (struct c_parse_state) <strings>: New member.
7710 (operator_stoken): Update.
7712 2019-01-06 Tom Tromey <tom@tromey.com>
7714 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7715 (union type_stack_elt) <typelist_val>: Now a pointer to
7717 (type_stack_cleanup): Don't declare.
7718 (push_typelist): Update.
7719 * parse.c (pop_typelist): Return a std::vector.
7720 (push_typelist): Take a std::vector.
7721 (follow_types): Update. Do not free args.
7722 (type_stack_cleanup): Remove.
7723 * c-exp.y (struct c_parse_state): New.
7724 (cpstate): New global.
7725 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7726 (nonempty_typelist): Update.
7727 (func_mod): Create a new vector.
7728 (c_parse): Create a c_parse_state.
7729 (check_parameter_typelist): Do not delete params.
7730 (function_method): Update. Do not delete type_list.
7732 2019-01-06 Tom Tromey <tom@tromey.com>
7735 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7737 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7738 (print_return_value): Likewise.
7740 2019-01-05 Tom Tromey <tom@tromey.com>
7742 * contrib/cleanup_check.py: Remove.
7743 * contrib/gcc-with-excheck: Remove.
7744 * contrib/exsummary.py: Remove.
7745 * contrib/excheck.py: Remove.
7747 2019-01-05 Joel Brobecker <brobecker@adacore.com>
7749 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7750 NULL. Initialize tpprev to NULL instead of assigning it
7751 to NULL on the next statement.
7752 * windows-nat.c (windows_delete_thread): Remove check for
7753 main_thread_id before printing thread exit notifications.
7754 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7755 Remove thread ID check against main_thread_id.
7756 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7757 windows_delete_thread.
7758 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7760 2019-01-04 Tom Tromey <tom@tromey.com>
7762 * compile/compile.c (_initialize_compile): Use upper case for
7763 metasyntactic variables.
7764 * symmisc.c (_initialize_symmisc): Use upper case for
7765 metasyntactic variables.
7766 * psymtab.c (_initialize_psymtab): Use upper case for
7767 metasyntactic variables.
7768 * demangle.c (demangle_command): Use upper case for metasyntactic
7770 (_initialize_demangler): Likewise.
7771 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7774 2019-01-03 Tom Tromey <tom@tromey.com>
7776 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7778 2019-01-03 Tom Tromey <tom@tromey.com>
7780 * python/py-symtab.c (salpy_str): Update.
7781 (struct salpy_sal_object) <symtab>: Now a PyObject.
7782 (salpy_dealloc): Update.
7783 (del_objfile_sal): Use gdbpy_ref.
7785 2019-01-03 Tom Tromey <tom@tromey.com>
7787 * python/py-type.c (convert_field): Use new_reference. Return
7789 (make_fielditem): Return gdbpy_ref.
7790 (typy_fields): Update.
7791 (typy_getitem): Update.
7792 (field_name): Return gdbpy_ref. Use new_reference.
7793 (typy_iterator_iternext): Update.
7795 2019-01-03 Tom Tromey <tom@tromey.com>
7797 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7799 2019-01-03 Tom Tromey <tom@tromey.com>
7801 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7802 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7803 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7804 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7805 (pspy_set_type_printers): Likewise.
7806 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7807 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7808 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7809 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7810 (objfpy_set_type_printers): Likewise.
7812 2019-01-03 Tom Tromey <tom@tromey.com>
7814 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7815 (gdbpy_print_stack): Use gdbpy_err_fetch.
7816 * python/python-internal.h (class gdbpy_err_fetch): New class.
7817 (class gdbpy_enter) <m_error_type, m_error_value,
7818 m_error_traceback>: Remove.
7819 <m_error>: New member.
7820 (gdbpy_exception_to_string): Don't declare.
7821 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7822 * python/py-value.c (convert_value_from_python): Use
7824 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7825 gdbpy_exception_to_string.
7826 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7827 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7830 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7832 * linux-nat.c (delete_lwp_cleanup): Delete.
7833 (struct lwp_deleter): New struct.
7834 (lwp_info_up): New typedef.
7835 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7838 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7840 * linux-fork.c (class scoped_switch_fork_info): New class.
7841 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7843 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7845 * valops.c (find_overload_match): Remove use of null_cleanup, and
7846 calls to do_cleanups.
7848 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7850 * compile/compile-cplus-types.c
7851 (compile_cplus_instance::decl_name): Handle changes to
7853 * cp-support.c (cp_func_name): Update header comment, update
7855 * cp-support.h (cp_func_name): Update return type in declaration.
7856 * valops.c (find_overload_match): Move temp_func local to top
7857 level of function and change its type. Use temp_func to hold and
7858 delete temporary string obtained from cp_func_name.
7860 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7862 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7863 gdb::char_vector, remove cleanup, and update uses of `msg`.
7865 2019-01-03 Jim Wilson <jimw@sifive.com>
7867 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7869 2019-01-02 Tom Tromey <tom@tromey.com>
7871 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7872 (tdesc_parse_xml): Remove cleanups.
7873 * target-descriptions.h (make_cleanup_free_target_description):
7875 (target_desc_deleter): New struct.
7876 (target_desc_up): New typedef.
7877 * target-descriptions.c (target_desc_deleter::operator()): Rename
7878 from free_target_description.
7879 (make_cleanup_free_target_description): Remove.
7881 2019-01-02 Tom Tromey <tom@tromey.com>
7883 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7884 constructor, destructor.
7885 (linespec_parser): Remove typedef.
7886 (~linespec_parser): Rename from linespec_parser_delete.
7887 (linespec_lex_to_end, linespec_complete_label)
7888 (linespec_complete): Update.
7889 (decode_line_full): Remove cleanups.
7890 (decode_line_1): Update.
7892 2019-01-02 Tom Tromey <tom@tromey.com>
7894 * python/python-internal.h (inferior_to_inferior_object): Change
7896 * python/py-exitedevent.c (create_exited_event_object): Update.
7897 * python/py-inferior.c (inferior_to_inferior_object): Return
7899 (python_new_inferior, python_inferior_deleted)
7900 (thread_to_thread_object, delete_thread_object)
7901 (build_inferior_list, gdbpy_selected_inferior): Update.
7902 * python/py-infthread.c (create_thread_object): Update. Also fail
7903 if inferior_to_inferior_object fails.
7905 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7907 * inferior.h (class inferior) <displaced_step_state>: New field.
7908 * infrun.h (struct displaced_step_state): Move here from
7909 infrun.c. Initialize fields, add constructor.
7910 <inf>: Remove field.
7911 <reset>: New method.
7912 * infrun.c (struct displaced_step_inferior_state): Move to
7914 (displaced_step_inferior_states): Remove.
7915 (get_displaced_stepping_state): Adust.
7916 (displaced_step_in_progress_any_inferior): Adjust.
7917 (displaced_step_in_progress_thread): Adjust.
7918 (displaced_step_in_progress): Adjust.
7919 (add_displaced_stepping_state): Remove.
7920 (get_displaced_step_closure_by_addr): Adjust.
7921 (remove_displaced_stepping_state): Remove.
7922 (infrun_inferior_exit): Call displaced_step_state.reset.
7923 (use_displaced_stepping): Don't check for NULL.
7924 (displaced_step_prepare_throw): Call
7925 get_displaced_stepping_state.
7926 (displaced_step_fixup): Don't check for NULL.
7927 (prepare_for_detach): Don't check for NULL.
7929 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7931 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7932 in case of call that did not complete.
7934 2019-01-02 Andrey Utkin <autkin@undo.io>
7936 * symfile.c (find_separate_debug_file): Fix search of debug files for
7939 2019-01-02 Tom Tromey <tom@tromey.com>
7941 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7943 * python/py-frame.c (frapy_older): Remove cast.
7944 (frapy_newer): Likewise.
7945 * python/py-breakpoint.c (local_setattro): Remove cast.
7946 * python/py-arch.c (archpy_name): Remove local variable.
7947 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7949 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7951 * unittests/basic_string_view/element_access/char/empty.cc:
7952 Fix year range in copyright header.
7954 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7956 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7958 <operator==>: Update with for removed field.
7960 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7961 <isa_features>: ...this.
7962 <abi_features>: New field.
7963 (riscv_isa_flen): Update comment.
7964 (riscv_abi_xlen): New declaration.
7965 (riscv_abi_flen): New declaration.
7966 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7968 (riscv_abi_xlen): New function.
7969 (riscv_isa_flen): Update to get answer from isa_features.
7970 (riscv_abi_flen): New function.
7971 (riscv_has_fp_abi): Update to get answer from abi_features.
7972 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7974 (riscv_call_info) <xlen, flen>: Update comment.
7975 (riscv_call_arg_struct): Remove invalid assertions
7976 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7978 (riscv_gdbarch_init): Gather isa features and abi features
7979 separately, ensure both match on the gdbarch when reusing an old
7980 gdbarch. Relax an error check to allow 32-bit abi float to run on
7981 a target with 64-bit float hardware.
7983 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7985 * source.c (search_command_helper): Stop reverse search
7986 when line 1 has been searched.
7988 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7990 * record-full.c (record_full_base_target::close): Rewrite
7991 record_full_core_buf_list free logic.
7993 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7995 * break-catch-syscall.c (print_one_catch_syscall): xfree
7998 2019-01-01 Joel Brobecker <brobecker@adacore.com>
8000 * top.c (print_gdb_version): Update Copyright year in version
8003 2019-01-01 Joel Brobecker <brobecker@adacore.com>
8005 Update copyright year range in all GDB files.
8007 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
8009 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
8011 For older changes see ChangeLog-2018.
8017 version-control: never